Subversion Repositories SmartDukaan

Rev

Rev 12895 | Rev 19413 | 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
 
412 ashish 153
  }
154
 
3430 rajveer 155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
156
 
157
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
160
 
4630 mandeep.dh 161
    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 162
 
7256 rajveer 163
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
164
 
5766 rajveer 165
    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 166
 
5247 rajveer 167
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 168
 
6643 rajveer 169
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 170
 
6643 rajveer 171
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
172
 
3430 rajveer 173
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
178
 
4934 amit.gupta 179
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
180
 
5527 anupam.sin 181
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
182
 
5553 rajveer 183
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
186
 
5719 rajveer 187
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
188
 
6524 rajveer 189
    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 190
 
6524 rajveer 191
    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 192
 
13146 manish.sha 193
    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 194
 
7788 manish.sha 195
    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 196
 
7888 rajveer 197
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
198
 
12895 manish.sha 199
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
200
 
13146 manish.sha 201
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
204
 
3430 rajveer 205
  }
206
 
3374 rajveer 207
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 208
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
209
      public Factory() {}
210
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
211
        return new Client(prot);
212
      }
213
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
214
        return new Client(iprot, oprot);
215
      }
216
    }
217
 
218
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 219
    {
3430 rajveer 220
      super(prot, prot);
412 ashish 221
    }
222
 
3430 rajveer 223
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 224
      super(iprot, oprot);
412 ashish 225
    }
226
 
3430 rajveer 227
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 228
    {
229
      send_getProvider(providerId);
230
      return recv_getProvider();
231
    }
232
 
3430 rajveer 233
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 234
    {
235
      getProvider_args args = new getProvider_args();
3430 rajveer 236
      args.setProviderId(providerId);
237
      sendBase("getProvider", args);
668 chandransh 238
    }
239
 
3430 rajveer 240
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 241
    {
242
      getProvider_result result = new getProvider_result();
3430 rajveer 243
      receiveBase(result, "getProvider");
668 chandransh 244
      if (result.isSetSuccess()) {
245
        return result.success;
246
      }
247
      if (result.lse != null) {
248
        throw result.lse;
249
      }
3430 rajveer 250
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 251
    }
252
 
3430 rajveer 253
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 254
    {
255
      send_getAllProviders();
256
      return recv_getAllProviders();
257
    }
258
 
3430 rajveer 259
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 260
    {
261
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 262
      sendBase("getAllProviders", args);
674 chandransh 263
    }
264
 
3430 rajveer 265
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 266
    {
267
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 268
      receiveBase(result, "getAllProviders");
674 chandransh 269
      if (result.isSetSuccess()) {
270
        return result.success;
271
      }
272
      if (result.lse != null) {
273
        throw result.lse;
274
      }
3430 rajveer 275
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 276
    }
277
 
4630 mandeep.dh 278
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 279
    {
4630 mandeep.dh 280
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 281
      return recv_getLogisticsEstimation();
282
    }
283
 
4630 mandeep.dh 284
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 285
    {
286
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 287
      args.setItemId(itemId);
288
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 289
      args.setType(type);
3430 rajveer 290
      sendBase("getLogisticsEstimation", args);
471 rajveer 291
    }
292
 
3430 rajveer 293
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 294
    {
295
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 296
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 297
      if (result.isSetSuccess()) {
298
        return result.success;
299
      }
300
      if (result.se != null) {
301
        throw result.se;
302
      }
3430 rajveer 303
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 304
    }
305
 
7256 rajveer 306
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
307
    {
308
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
309
      return recv_getLogisticsEstimationForStore();
310
    }
311
 
312
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
313
    {
314
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
315
      args.setItemId(itemId);
316
      args.setDestination_pin(destination_pin);
317
      args.setType(type);
318
      sendBase("getLogisticsEstimationForStore", args);
319
    }
320
 
321
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
322
    {
323
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
324
      receiveBase(result, "getLogisticsEstimationForStore");
325
      if (result.isSetSuccess()) {
326
        return result.success;
327
      }
328
      if (result.se != null) {
329
        throw result.se;
330
      }
331
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
332
    }
333
 
5766 rajveer 334
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 335
    {
5766 rajveer 336
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 337
      return recv_getLogisticsInfo();
471 rajveer 338
    }
339
 
5766 rajveer 340
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 341
    {
648 chandransh 342
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 343
      args.setDestination_pincode(destination_pincode);
344
      args.setItem_id(item_id);
345
      args.setType(type);
5766 rajveer 346
      args.setPickUp(pickUp);
3430 rajveer 347
      sendBase("getLogisticsInfo", args);
471 rajveer 348
    }
349
 
3430 rajveer 350
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 351
    {
648 chandransh 352
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 353
      receiveBase(result, "getLogisticsInfo");
648 chandransh 354
      if (result.isSetSuccess()) {
355
        return result.success;
477 rajveer 356
      }
648 chandransh 357
      if (result.se != null) {
358
        throw result.se;
412 ashish 359
      }
3430 rajveer 360
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 361
    }
362
 
5247 rajveer 363
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 364
    {
5247 rajveer 365
      send_getEmptyAWB(providerId, type);
412 ashish 366
      return recv_getEmptyAWB();
367
    }
368
 
5247 rajveer 369
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 370
    {
371
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 372
      args.setProviderId(providerId);
5247 rajveer 373
      args.setType(type);
3430 rajveer 374
      sendBase("getEmptyAWB", args);
412 ashish 375
    }
376
 
3430 rajveer 377
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 378
    {
379
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 380
      receiveBase(result, "getEmptyAWB");
412 ashish 381
      if (result.isSetSuccess()) {
382
        return result.success;
383
      }
648 chandransh 384
      if (result.se != null) {
385
        throw result.se;
386
      }
3430 rajveer 387
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 388
    }
389
 
6643 rajveer 390
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 391
    {
6643 rajveer 392
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 393
      return recv_getShipmentInfo();
394
    }
395
 
6643 rajveer 396
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 397
    {
398
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 399
      args.setAwbNumber(awbNumber);
3430 rajveer 400
      args.setProviderId(providerId);
401
      sendBase("getShipmentInfo", args);
412 ashish 402
    }
403
 
3430 rajveer 404
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 405
    {
406
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 407
      receiveBase(result, "getShipmentInfo");
412 ashish 408
      if (result.isSetSuccess()) {
409
        return result.success;
410
      }
648 chandransh 411
      if (result.se != null) {
412
        throw result.se;
413
      }
3430 rajveer 414
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 415
    }
416
 
6643 rajveer 417
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
418
    {
419
      send_storeShipmentInfo(update);
420
      recv_storeShipmentInfo();
421
    }
422
 
423
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
424
    {
425
      storeShipmentInfo_args args = new storeShipmentInfo_args();
426
      args.setUpdate(update);
427
      sendBase("storeShipmentInfo", args);
428
    }
429
 
430
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
431
    {
432
      storeShipmentInfo_result result = new storeShipmentInfo_result();
433
      receiveBase(result, "storeShipmentInfo");
434
      if (result.se != null) {
435
        throw result.se;
436
      }
437
      return;
438
    }
439
 
3430 rajveer 440
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 441
    {
442
      send_getDestinationCode(providerId, pinCode);
443
      return recv_getDestinationCode();
444
    }
445
 
3430 rajveer 446
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 447
    {
448
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 449
      args.setProviderId(providerId);
450
      args.setPinCode(pinCode);
451
      sendBase("getDestinationCode", args);
730 chandransh 452
    }
453
 
3430 rajveer 454
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 455
    {
456
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 457
      receiveBase(result, "getDestinationCode");
730 chandransh 458
      if (result.isSetSuccess()) {
459
        return result.success;
460
      }
461
      if (result.se != null) {
462
        throw result.se;
463
      }
3430 rajveer 464
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 465
    }
466
 
3430 rajveer 467
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 468
    {
3103 chandransh 469
      send_getFreeAwbCount(providerId, type);
1139 chandransh 470
      return recv_getFreeAwbCount();
471
    }
472
 
3430 rajveer 473
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 474
    {
475
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 476
      args.setProviderId(providerId);
477
      args.setType(type);
478
      sendBase("getFreeAwbCount", args);
1139 chandransh 479
    }
480
 
3430 rajveer 481
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 482
    {
483
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 484
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 485
      if (result.isSetSuccess()) {
486
        return result.success;
487
      }
3430 rajveer 488
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 489
    }
490
 
3430 rajveer 491
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 492
    {
493
      send_getHolidays(fromDate, toDate);
494
      return recv_getHolidays();
495
    }
496
 
3430 rajveer 497
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 498
    {
499
      getHolidays_args args = new getHolidays_args();
3430 rajveer 500
      args.setFromDate(fromDate);
501
      args.setToDate(toDate);
502
      sendBase("getHolidays", args);
1730 ankur.sing 503
    }
504
 
3430 rajveer 505
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 506
    {
507
      getHolidays_result result = new getHolidays_result();
3430 rajveer 508
      receiveBase(result, "getHolidays");
1730 ankur.sing 509
      if (result.isSetSuccess()) {
510
        return result.success;
511
      }
3430 rajveer 512
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 513
    }
514
 
9840 amit.gupta 515
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 516
    {
517
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
518
      return recv_getEntityLogisticsEstimation();
519
    }
520
 
521
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
522
    {
523
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
524
      args.setCatalogItemId(catalogItemId);
525
      args.setDestination_pin(destination_pin);
526
      args.setType(type);
527
      sendBase("getEntityLogisticsEstimation", args);
528
    }
529
 
9840 amit.gupta 530
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 531
    {
532
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
533
      receiveBase(result, "getEntityLogisticsEstimation");
534
      if (result.isSetSuccess()) {
535
        return result.success;
536
      }
537
      if (result.se != null) {
538
        throw result.se;
539
      }
540
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
541
    }
542
 
5527 anupam.sin 543
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
544
    {
545
      send_getProviderForPickupType(pickUp);
546
      return recv_getProviderForPickupType();
547
    }
548
 
549
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
550
    {
551
      getProviderForPickupType_args args = new getProviderForPickupType_args();
552
      args.setPickUp(pickUp);
553
      sendBase("getProviderForPickupType", args);
554
    }
555
 
556
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
557
    {
558
      getProviderForPickupType_result result = new getProviderForPickupType_result();
559
      receiveBase(result, "getProviderForPickupType");
560
      if (result.isSetSuccess()) {
561
        return result.success;
562
      }
563
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
564
    }
565
 
5553 rajveer 566
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
567
    {
568
      send_getAllPickupStores();
569
      return recv_getAllPickupStores();
570
    }
571
 
572
    public void send_getAllPickupStores() throws org.apache.thrift.TException
573
    {
574
      getAllPickupStores_args args = new getAllPickupStores_args();
575
      sendBase("getAllPickupStores", args);
576
    }
577
 
578
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
579
    {
580
      getAllPickupStores_result result = new getAllPickupStores_result();
581
      receiveBase(result, "getAllPickupStores");
582
      if (result.isSetSuccess()) {
583
        return result.success;
584
      }
585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
586
    }
587
 
588
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
589
    {
590
      send_getPickupStore(storeId);
591
      return recv_getPickupStore();
592
    }
593
 
594
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
595
    {
596
      getPickupStore_args args = new getPickupStore_args();
597
      args.setStoreId(storeId);
598
      sendBase("getPickupStore", args);
599
    }
600
 
601
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
602
    {
603
      getPickupStore_result result = new getPickupStore_result();
604
      receiveBase(result, "getPickupStore");
605
      if (result.isSetSuccess()) {
606
        return result.success;
607
      }
608
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
609
    }
610
 
5719 rajveer 611
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
612
    {
613
      send_getPickupStoreByHotspotId(hotspotId);
614
      return recv_getPickupStoreByHotspotId();
615
    }
616
 
617
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
618
    {
619
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
620
      args.setHotspotId(hotspotId);
621
      sendBase("getPickupStoreByHotspotId", args);
622
    }
623
 
624
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
625
    {
626
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
627
      receiveBase(result, "getPickupStoreByHotspotId");
628
      if (result.isSetSuccess()) {
629
        return result.success;
630
      }
631
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
632
    }
633
 
6524 rajveer 634
    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 635
    {
6524 rajveer 636
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 637
      recv_addPincode();
638
    }
639
 
6524 rajveer 640
    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 641
    {
642
      addPincode_args args = new addPincode_args();
643
      args.setProviderId(providerId);
644
      args.setPincode(pincode);
645
      args.setDestCode(destCode);
646
      args.setExp(exp);
647
      args.setCod(cod);
648
      args.setStationType(stationType);
6524 rajveer 649
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 650
      sendBase("addPincode", args);
651
    }
652
 
653
    public void recv_addPincode() throws org.apache.thrift.TException
654
    {
655
      addPincode_result result = new addPincode_result();
656
      receiveBase(result, "addPincode");
657
      return;
658
    }
659
 
6524 rajveer 660
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 661
    {
6524 rajveer 662
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 663
      recv_updatePincode();
664
    }
665
 
6524 rajveer 666
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 667
    {
668
      updatePincode_args args = new updatePincode_args();
669
      args.setProviderId(providerId);
670
      args.setPincode(pincode);
671
      args.setExp(exp);
672
      args.setCod(cod);
6524 rajveer 673
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 674
      sendBase("updatePincode", args);
675
    }
676
 
677
    public void recv_updatePincode() throws org.apache.thrift.TException
678
    {
679
      updatePincode_result result = new updatePincode_result();
680
      receiveBase(result, "updatePincode");
681
      return;
682
    }
683
 
13146 manish.sha 684
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 685
    {
13146 manish.sha 686
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
7567 rajveer 687
      return recv_addNewAwbs();
688
    }
689
 
13146 manish.sha 690
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 691
    {
692
      addNewAwbs_args args = new addNewAwbs_args();
693
      args.setProviderId(providerId);
694
      args.setCod(cod);
695
      args.setAwbs(awbs);
13146 manish.sha 696
      args.setAwbUsedFor(awbUsedFor);
7567 rajveer 697
      sendBase("addNewAwbs", args);
698
    }
699
 
700
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
701
    {
702
      addNewAwbs_result result = new addNewAwbs_result();
703
      receiveBase(result, "addNewAwbs");
704
      if (result.isSetSuccess()) {
705
        return result.success;
706
      }
707
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
708
    }
709
 
7788 manish.sha 710
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 711
    {
7788 manish.sha 712
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
713
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 714
    }
715
 
7788 manish.sha 716
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 717
    {
7788 manish.sha 718
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
719
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
720
      args.setRunCompleteUpdate(runCompleteUpdate);
721
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 722
    }
723
 
7788 manish.sha 724
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 725
    {
7788 manish.sha 726
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
727
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 728
      return;
729
    }
730
 
7888 rajveer 731
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
732
    {
733
      send_adjustDeliveryDays(startDate, days);
734
      return recv_adjustDeliveryDays();
735
    }
736
 
737
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
738
    {
739
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
740
      args.setStartDate(startDate);
741
      args.setDays(days);
742
      sendBase("adjustDeliveryDays", args);
743
    }
744
 
745
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
746
    {
747
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
748
      receiveBase(result, "adjustDeliveryDays");
749
      if (result.isSetSuccess()) {
750
        return result.success;
751
      }
752
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
753
    }
754
 
12895 manish.sha 755
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
756
    {
757
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
758
      return recv_getFirstDeliveryEstimateForWhLocation();
759
    }
760
 
761
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
762
    {
763
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
764
      args.setPincode(pincode);
765
      args.setWhLocation(whLocation);
766
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
767
    }
768
 
769
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
770
    {
771
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
772
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
773
      if (result.isSetSuccess()) {
774
        return result.success;
775
      }
776
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
777
    }
778
 
13146 manish.sha 779
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
780
    {
781
      send_getNewEmptyAwb(providerId, type, orderQuantity);
782
      return recv_getNewEmptyAwb();
783
    }
784
 
785
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
786
    {
787
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
788
      args.setProviderId(providerId);
789
      args.setType(type);
790
      args.setOrderQuantity(orderQuantity);
791
      sendBase("getNewEmptyAwb", args);
792
    }
793
 
794
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
795
    {
796
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
797
      receiveBase(result, "getNewEmptyAwb");
798
      if (result.isSetSuccess()) {
799
        return result.success;
800
      }
801
      if (result.se != null) {
802
        throw result.se;
803
      }
804
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
805
    }
806
 
807
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
808
    {
809
      send_getProviderLimitDetailsForPincode(providerId, pincode);
810
      return recv_getProviderLimitDetailsForPincode();
811
    }
812
 
813
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
814
    {
815
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
816
      args.setProviderId(providerId);
817
      args.setPincode(pincode);
818
      sendBase("getProviderLimitDetailsForPincode", args);
819
    }
820
 
821
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
822
    {
823
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
824
      receiveBase(result, "getProviderLimitDetailsForPincode");
825
      if (result.isSetSuccess()) {
826
        return result.success;
827
      }
828
      if (result.se != null) {
829
        throw result.se;
830
      }
831
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
832
    }
833
 
412 ashish 834
  }
3430 rajveer 835
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
836
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
837
      private org.apache.thrift.async.TAsyncClientManager clientManager;
838
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
839
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
840
        this.clientManager = clientManager;
841
        this.protocolFactory = protocolFactory;
842
      }
843
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
844
        return new AsyncClient(protocolFactory, clientManager, transport);
845
      }
412 ashish 846
    }
847
 
3430 rajveer 848
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
849
      super(protocolFactory, clientManager, transport);
850
    }
412 ashish 851
 
3430 rajveer 852
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
853
      checkReady();
854
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
855
      this.___currentMethod = method_call;
856
      ___manager.call(method_call);
857
    }
858
 
859
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
860
      private long providerId;
861
      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 {
862
        super(client, protocolFactory, transport, resultHandler, false);
863
        this.providerId = providerId;
412 ashish 864
      }
3430 rajveer 865
 
866
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
867
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
868
        getProvider_args args = new getProvider_args();
869
        args.setProviderId(providerId);
870
        args.write(prot);
871
        prot.writeMessageEnd();
872
      }
873
 
874
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
875
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
876
          throw new IllegalStateException("Method call not finished!");
877
        }
878
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
879
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
880
        return (new Client(prot)).recv_getProvider();
881
      }
412 ashish 882
    }
883
 
3430 rajveer 884
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
885
      checkReady();
886
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
887
      this.___currentMethod = method_call;
888
      ___manager.call(method_call);
889
    }
890
 
891
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
892
      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 {
893
        super(client, protocolFactory, transport, resultHandler, false);
894
      }
895
 
896
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
897
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
898
        getAllProviders_args args = new getAllProviders_args();
899
        args.write(prot);
900
        prot.writeMessageEnd();
901
      }
902
 
903
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
904
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
905
          throw new IllegalStateException("Method call not finished!");
906
        }
907
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
909
        return (new Client(prot)).recv_getAllProviders();
910
      }
911
    }
912
 
4630 mandeep.dh 913
    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 914
      checkReady();
4630 mandeep.dh 915
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 916
      this.___currentMethod = method_call;
917
      ___manager.call(method_call);
918
    }
919
 
920
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
921
      private long itemId;
922
      private String destination_pin;
4630 mandeep.dh 923
      private DeliveryType type;
924
      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 925
        super(client, protocolFactory, transport, resultHandler, false);
926
        this.itemId = itemId;
927
        this.destination_pin = destination_pin;
4630 mandeep.dh 928
        this.type = type;
3430 rajveer 929
      }
930
 
931
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
932
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
933
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
934
        args.setItemId(itemId);
935
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 936
        args.setType(type);
3430 rajveer 937
        args.write(prot);
938
        prot.writeMessageEnd();
939
      }
940
 
941
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
942
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
943
          throw new IllegalStateException("Method call not finished!");
944
        }
945
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
946
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
947
        return (new Client(prot)).recv_getLogisticsEstimation();
948
      }
949
    }
950
 
7256 rajveer 951
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
952
      checkReady();
953
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
954
      this.___currentMethod = method_call;
955
      ___manager.call(method_call);
956
    }
957
 
958
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
959
      private long itemId;
960
      private String destination_pin;
961
      private DeliveryType type;
962
      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 {
963
        super(client, protocolFactory, transport, resultHandler, false);
964
        this.itemId = itemId;
965
        this.destination_pin = destination_pin;
966
        this.type = type;
967
      }
968
 
969
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
970
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
971
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
972
        args.setItemId(itemId);
973
        args.setDestination_pin(destination_pin);
974
        args.setType(type);
975
        args.write(prot);
976
        prot.writeMessageEnd();
977
      }
978
 
979
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
980
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
981
          throw new IllegalStateException("Method call not finished!");
982
        }
983
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
984
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
985
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
986
      }
987
    }
988
 
5766 rajveer 989
    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 990
      checkReady();
5766 rajveer 991
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 992
      this.___currentMethod = method_call;
993
      ___manager.call(method_call);
994
    }
995
 
996
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
997
      private String destination_pincode;
998
      private long item_id;
999
      private DeliveryType type;
5766 rajveer 1000
      private PickUpType pickUp;
1001
      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 1002
        super(client, protocolFactory, transport, resultHandler, false);
1003
        this.destination_pincode = destination_pincode;
1004
        this.item_id = item_id;
1005
        this.type = type;
5766 rajveer 1006
        this.pickUp = pickUp;
3430 rajveer 1007
      }
1008
 
1009
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1010
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1011
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1012
        args.setDestination_pincode(destination_pincode);
1013
        args.setItem_id(item_id);
1014
        args.setType(type);
5766 rajveer 1015
        args.setPickUp(pickUp);
3430 rajveer 1016
        args.write(prot);
1017
        prot.writeMessageEnd();
1018
      }
1019
 
1020
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1021
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1022
          throw new IllegalStateException("Method call not finished!");
1023
        }
1024
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1025
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1026
        return (new Client(prot)).recv_getLogisticsInfo();
1027
      }
1028
    }
1029
 
5247 rajveer 1030
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1031
      checkReady();
5247 rajveer 1032
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1033
      this.___currentMethod = method_call;
1034
      ___manager.call(method_call);
1035
    }
1036
 
1037
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1038
      private long providerId;
5247 rajveer 1039
      private DeliveryType type;
1040
      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 1041
        super(client, protocolFactory, transport, resultHandler, false);
1042
        this.providerId = providerId;
5247 rajveer 1043
        this.type = type;
3430 rajveer 1044
      }
1045
 
1046
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1047
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1048
        getEmptyAWB_args args = new getEmptyAWB_args();
1049
        args.setProviderId(providerId);
5247 rajveer 1050
        args.setType(type);
3430 rajveer 1051
        args.write(prot);
1052
        prot.writeMessageEnd();
1053
      }
1054
 
1055
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1056
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1057
          throw new IllegalStateException("Method call not finished!");
1058
        }
1059
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1060
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1061
        return (new Client(prot)).recv_getEmptyAWB();
1062
      }
1063
    }
1064
 
6643 rajveer 1065
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1066
      checkReady();
6643 rajveer 1067
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1068
      this.___currentMethod = method_call;
1069
      ___manager.call(method_call);
1070
    }
1071
 
1072
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1073
      private String awbNumber;
3430 rajveer 1074
      private long providerId;
6643 rajveer 1075
      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 1076
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1077
        this.awbNumber = awbNumber;
3430 rajveer 1078
        this.providerId = providerId;
1079
      }
1080
 
1081
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1082
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1083
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1084
        args.setAwbNumber(awbNumber);
3430 rajveer 1085
        args.setProviderId(providerId);
1086
        args.write(prot);
1087
        prot.writeMessageEnd();
1088
      }
1089
 
1090
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1091
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1092
          throw new IllegalStateException("Method call not finished!");
1093
        }
1094
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1095
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1096
        return (new Client(prot)).recv_getShipmentInfo();
1097
      }
1098
    }
1099
 
6643 rajveer 1100
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1101
      checkReady();
1102
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1103
      this.___currentMethod = method_call;
1104
      ___manager.call(method_call);
1105
    }
1106
 
1107
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1108
      private AwbUpdate update;
1109
      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 {
1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
        this.update = update;
1112
      }
1113
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1117
        args.setUpdate(update);
1118
        args.write(prot);
1119
        prot.writeMessageEnd();
1120
      }
1121
 
1122
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1123
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1124
          throw new IllegalStateException("Method call not finished!");
1125
        }
1126
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1127
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1128
        (new Client(prot)).recv_storeShipmentInfo();
1129
      }
1130
    }
1131
 
3430 rajveer 1132
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1133
      checkReady();
1134
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1135
      this.___currentMethod = method_call;
1136
      ___manager.call(method_call);
1137
    }
1138
 
1139
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1140
      private long providerId;
1141
      private String pinCode;
1142
      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 {
1143
        super(client, protocolFactory, transport, resultHandler, false);
1144
        this.providerId = providerId;
1145
        this.pinCode = pinCode;
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("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1150
        getDestinationCode_args args = new getDestinationCode_args();
1151
        args.setProviderId(providerId);
1152
        args.setPinCode(pinCode);
1153
        args.write(prot);
1154
        prot.writeMessageEnd();
1155
      }
1156
 
1157
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1158
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1159
          throw new IllegalStateException("Method call not finished!");
1160
        }
1161
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1162
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1163
        return (new Client(prot)).recv_getDestinationCode();
1164
      }
1165
    }
1166
 
1167
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1168
      checkReady();
1169
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1170
      this.___currentMethod = method_call;
1171
      ___manager.call(method_call);
1172
    }
1173
 
1174
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1175
      private long providerId;
1176
      private String type;
1177
      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 {
1178
        super(client, protocolFactory, transport, resultHandler, false);
1179
        this.providerId = providerId;
1180
        this.type = type;
1181
      }
1182
 
1183
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1184
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1185
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1186
        args.setProviderId(providerId);
1187
        args.setType(type);
1188
        args.write(prot);
1189
        prot.writeMessageEnd();
1190
      }
1191
 
1192
      public long getResult() throws org.apache.thrift.TException {
1193
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1194
          throw new IllegalStateException("Method call not finished!");
1195
        }
1196
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1198
        return (new Client(prot)).recv_getFreeAwbCount();
1199
      }
1200
    }
1201
 
1202
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1203
      checkReady();
1204
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1205
      this.___currentMethod = method_call;
1206
      ___manager.call(method_call);
1207
    }
1208
 
1209
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1210
      private long fromDate;
1211
      private long toDate;
1212
      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 {
1213
        super(client, protocolFactory, transport, resultHandler, false);
1214
        this.fromDate = fromDate;
1215
        this.toDate = toDate;
1216
      }
1217
 
1218
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1219
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1220
        getHolidays_args args = new getHolidays_args();
1221
        args.setFromDate(fromDate);
1222
        args.setToDate(toDate);
1223
        args.write(prot);
1224
        prot.writeMessageEnd();
1225
      }
1226
 
1227
      public List<Long> getResult() throws org.apache.thrift.TException {
1228
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1229
          throw new IllegalStateException("Method call not finished!");
1230
        }
1231
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1232
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1233
        return (new Client(prot)).recv_getHolidays();
1234
      }
1235
    }
1236
 
4934 amit.gupta 1237
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1238
      checkReady();
1239
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1240
      this.___currentMethod = method_call;
1241
      ___manager.call(method_call);
1242
    }
1243
 
1244
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1245
      private long catalogItemId;
1246
      private String destination_pin;
1247
      private DeliveryType type;
1248
      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 {
1249
        super(client, protocolFactory, transport, resultHandler, false);
1250
        this.catalogItemId = catalogItemId;
1251
        this.destination_pin = destination_pin;
1252
        this.type = type;
1253
      }
1254
 
1255
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1256
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1257
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1258
        args.setCatalogItemId(catalogItemId);
1259
        args.setDestination_pin(destination_pin);
1260
        args.setType(type);
1261
        args.write(prot);
1262
        prot.writeMessageEnd();
1263
      }
1264
 
9840 amit.gupta 1265
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1266
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1267
          throw new IllegalStateException("Method call not finished!");
1268
        }
1269
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1270
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1271
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1272
      }
1273
    }
1274
 
5527 anupam.sin 1275
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1276
      checkReady();
1277
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1278
      this.___currentMethod = method_call;
1279
      ___manager.call(method_call);
1280
    }
1281
 
1282
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1283
      private long pickUp;
1284
      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 {
1285
        super(client, protocolFactory, transport, resultHandler, false);
1286
        this.pickUp = pickUp;
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("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1291
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1292
        args.setPickUp(pickUp);
1293
        args.write(prot);
1294
        prot.writeMessageEnd();
1295
      }
1296
 
1297
      public long getResult() throws org.apache.thrift.TException {
1298
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1299
          throw new IllegalStateException("Method call not finished!");
1300
        }
1301
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1302
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1303
        return (new Client(prot)).recv_getProviderForPickupType();
1304
      }
1305
    }
1306
 
5553 rajveer 1307
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1308
      checkReady();
1309
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1310
      this.___currentMethod = method_call;
1311
      ___manager.call(method_call);
1312
    }
1313
 
1314
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1315
      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 {
1316
        super(client, protocolFactory, transport, resultHandler, false);
1317
      }
1318
 
1319
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1320
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1321
        getAllPickupStores_args args = new getAllPickupStores_args();
1322
        args.write(prot);
1323
        prot.writeMessageEnd();
1324
      }
1325
 
1326
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1327
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1328
          throw new IllegalStateException("Method call not finished!");
1329
        }
1330
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1331
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1332
        return (new Client(prot)).recv_getAllPickupStores();
1333
      }
1334
    }
1335
 
1336
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1337
      checkReady();
1338
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1339
      this.___currentMethod = method_call;
1340
      ___manager.call(method_call);
1341
    }
1342
 
1343
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1344
      private long storeId;
1345
      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 {
1346
        super(client, protocolFactory, transport, resultHandler, false);
1347
        this.storeId = storeId;
1348
      }
1349
 
1350
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1351
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1352
        getPickupStore_args args = new getPickupStore_args();
1353
        args.setStoreId(storeId);
1354
        args.write(prot);
1355
        prot.writeMessageEnd();
1356
      }
1357
 
1358
      public PickupStore getResult() throws org.apache.thrift.TException {
1359
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1360
          throw new IllegalStateException("Method call not finished!");
1361
        }
1362
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1363
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1364
        return (new Client(prot)).recv_getPickupStore();
1365
      }
1366
    }
1367
 
5719 rajveer 1368
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1369
      checkReady();
1370
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1371
      this.___currentMethod = method_call;
1372
      ___manager.call(method_call);
1373
    }
1374
 
1375
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1376
      private String hotspotId;
1377
      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 {
1378
        super(client, protocolFactory, transport, resultHandler, false);
1379
        this.hotspotId = hotspotId;
1380
      }
1381
 
1382
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1383
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1384
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1385
        args.setHotspotId(hotspotId);
1386
        args.write(prot);
1387
        prot.writeMessageEnd();
1388
      }
1389
 
1390
      public PickupStore getResult() throws org.apache.thrift.TException {
1391
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1392
          throw new IllegalStateException("Method call not finished!");
1393
        }
1394
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1395
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1396
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1397
      }
1398
    }
1399
 
6524 rajveer 1400
    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 1401
      checkReady();
6524 rajveer 1402
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1403
      this.___currentMethod = method_call;
1404
      ___manager.call(method_call);
1405
    }
1406
 
1407
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1408
      private long providerId;
1409
      private String pincode;
1410
      private String destCode;
1411
      private boolean exp;
1412
      private boolean cod;
1413
      private int stationType;
6524 rajveer 1414
      private boolean otgAvailable;
1415
      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 1416
        super(client, protocolFactory, transport, resultHandler, false);
1417
        this.providerId = providerId;
1418
        this.pincode = pincode;
1419
        this.destCode = destCode;
1420
        this.exp = exp;
1421
        this.cod = cod;
1422
        this.stationType = stationType;
6524 rajveer 1423
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1424
      }
1425
 
1426
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1427
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1428
        addPincode_args args = new addPincode_args();
1429
        args.setProviderId(providerId);
1430
        args.setPincode(pincode);
1431
        args.setDestCode(destCode);
1432
        args.setExp(exp);
1433
        args.setCod(cod);
1434
        args.setStationType(stationType);
6524 rajveer 1435
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1436
        args.write(prot);
1437
        prot.writeMessageEnd();
1438
      }
1439
 
1440
      public void getResult() throws org.apache.thrift.TException {
1441
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1442
          throw new IllegalStateException("Method call not finished!");
1443
        }
1444
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1445
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1446
        (new Client(prot)).recv_addPincode();
1447
      }
1448
    }
1449
 
6524 rajveer 1450
    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 1451
      checkReady();
6524 rajveer 1452
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1453
      this.___currentMethod = method_call;
1454
      ___manager.call(method_call);
1455
    }
1456
 
1457
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1458
      private long providerId;
1459
      private String pincode;
1460
      private boolean exp;
1461
      private boolean cod;
6524 rajveer 1462
      private boolean otgAvailable;
1463
      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 1464
        super(client, protocolFactory, transport, resultHandler, false);
1465
        this.providerId = providerId;
1466
        this.pincode = pincode;
1467
        this.exp = exp;
1468
        this.cod = cod;
6524 rajveer 1469
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1470
      }
1471
 
1472
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1473
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1474
        updatePincode_args args = new updatePincode_args();
1475
        args.setProviderId(providerId);
1476
        args.setPincode(pincode);
1477
        args.setExp(exp);
1478
        args.setCod(cod);
6524 rajveer 1479
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1480
        args.write(prot);
1481
        prot.writeMessageEnd();
1482
      }
1483
 
1484
      public void getResult() throws org.apache.thrift.TException {
1485
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1486
          throw new IllegalStateException("Method call not finished!");
1487
        }
1488
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1489
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1490
        (new Client(prot)).recv_updatePincode();
1491
      }
1492
    }
1493
 
13146 manish.sha 1494
    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 1495
      checkReady();
13146 manish.sha 1496
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1497
      this.___currentMethod = method_call;
1498
      ___manager.call(method_call);
1499
    }
1500
 
1501
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1502
      private long providerId;
1503
      private boolean cod;
1504
      private List<String> awbs;
13146 manish.sha 1505
      private long awbUsedFor;
1506
      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 1507
        super(client, protocolFactory, transport, resultHandler, false);
1508
        this.providerId = providerId;
1509
        this.cod = cod;
1510
        this.awbs = awbs;
13146 manish.sha 1511
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1512
      }
1513
 
1514
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1515
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1516
        addNewAwbs_args args = new addNewAwbs_args();
1517
        args.setProviderId(providerId);
1518
        args.setCod(cod);
1519
        args.setAwbs(awbs);
13146 manish.sha 1520
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1521
        args.write(prot);
1522
        prot.writeMessageEnd();
1523
      }
1524
 
1525
      public boolean getResult() throws org.apache.thrift.TException {
1526
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1527
          throw new IllegalStateException("Method call not finished!");
1528
        }
1529
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1530
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1531
        return (new Client(prot)).recv_addNewAwbs();
1532
      }
1533
    }
1534
 
7788 manish.sha 1535
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1536
      checkReady();
7788 manish.sha 1537
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1538
      this.___currentMethod = method_call;
1539
      ___manager.call(method_call);
1540
    }
1541
 
7788 manish.sha 1542
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1543
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1544
      private boolean runCompleteUpdate;
1545
      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 1546
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1547
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1548
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1549
      }
1550
 
1551
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1552
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1553
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1554
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1555
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1556
        args.write(prot);
1557
        prot.writeMessageEnd();
1558
      }
1559
 
1560
      public void getResult() throws org.apache.thrift.TException {
1561
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1562
          throw new IllegalStateException("Method call not finished!");
1563
        }
1564
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1565
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1566
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1567
      }
1568
    }
1569
 
7888 rajveer 1570
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1571
      checkReady();
1572
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1573
      this.___currentMethod = method_call;
1574
      ___manager.call(method_call);
1575
    }
1576
 
1577
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1578
      private long startDate;
1579
      private long days;
1580
      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 {
1581
        super(client, protocolFactory, transport, resultHandler, false);
1582
        this.startDate = startDate;
1583
        this.days = days;
1584
      }
1585
 
1586
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1587
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1588
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1589
        args.setStartDate(startDate);
1590
        args.setDays(days);
1591
        args.write(prot);
1592
        prot.writeMessageEnd();
1593
      }
1594
 
1595
      public long getResult() throws org.apache.thrift.TException {
1596
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1597
          throw new IllegalStateException("Method call not finished!");
1598
        }
1599
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1600
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1601
        return (new Client(prot)).recv_adjustDeliveryDays();
1602
      }
1603
    }
1604
 
12895 manish.sha 1605
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1606
      checkReady();
1607
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1608
      this.___currentMethod = method_call;
1609
      ___manager.call(method_call);
1610
    }
1611
 
1612
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1613
      private String pincode;
1614
      private long whLocation;
1615
      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 {
1616
        super(client, protocolFactory, transport, resultHandler, false);
1617
        this.pincode = pincode;
1618
        this.whLocation = whLocation;
1619
      }
1620
 
1621
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1622
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1623
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1624
        args.setPincode(pincode);
1625
        args.setWhLocation(whLocation);
1626
        args.write(prot);
1627
        prot.writeMessageEnd();
1628
      }
1629
 
1630
      public long getResult() throws org.apache.thrift.TException {
1631
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1632
          throw new IllegalStateException("Method call not finished!");
1633
        }
1634
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1635
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1636
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1637
      }
1638
    }
1639
 
13146 manish.sha 1640
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1641
      checkReady();
1642
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1643
      this.___currentMethod = method_call;
1644
      ___manager.call(method_call);
1645
    }
1646
 
1647
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1648
      private long providerId;
1649
      private DeliveryType type;
1650
      private long orderQuantity;
1651
      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 {
1652
        super(client, protocolFactory, transport, resultHandler, false);
1653
        this.providerId = providerId;
1654
        this.type = type;
1655
        this.orderQuantity = orderQuantity;
1656
      }
1657
 
1658
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1659
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1660
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1661
        args.setProviderId(providerId);
1662
        args.setType(type);
1663
        args.setOrderQuantity(orderQuantity);
1664
        args.write(prot);
1665
        prot.writeMessageEnd();
1666
      }
1667
 
1668
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1670
          throw new IllegalStateException("Method call not finished!");
1671
        }
1672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1674
        return (new Client(prot)).recv_getNewEmptyAwb();
1675
      }
1676
    }
1677
 
1678
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1679
      checkReady();
1680
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1681
      this.___currentMethod = method_call;
1682
      ___manager.call(method_call);
1683
    }
1684
 
1685
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1686
      private long providerId;
1687
      private String pincode;
1688
      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 {
1689
        super(client, protocolFactory, transport, resultHandler, false);
1690
        this.providerId = providerId;
1691
        this.pincode = pincode;
1692
      }
1693
 
1694
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1695
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1696
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1697
        args.setProviderId(providerId);
1698
        args.setPincode(pincode);
1699
        args.write(prot);
1700
        prot.writeMessageEnd();
1701
      }
1702
 
1703
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1704
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1705
          throw new IllegalStateException("Method call not finished!");
1706
        }
1707
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1709
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1710
      }
1711
    }
1712
 
3430 rajveer 1713
  }
1714
 
1715
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1716
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1717
    public Processor(I iface) {
1718
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1719
    }
1720
 
1721
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1722
      super(iface, getProcessMap(processMap));
1723
    }
1724
 
1725
    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) {
1726
      processMap.put("getProvider", new getProvider());
1727
      processMap.put("getAllProviders", new getAllProviders());
1728
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1729
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1730
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1731
      processMap.put("getEmptyAWB", new getEmptyAWB());
1732
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1733
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1734
      processMap.put("getDestinationCode", new getDestinationCode());
1735
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1736
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1737
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1738
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1739
      processMap.put("getAllPickupStores", new getAllPickupStores());
1740
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1741
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1742
      processMap.put("addPincode", new addPincode());
1743
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1744
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1745
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1746
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 1747
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 1748
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1749
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
3430 rajveer 1750
      return processMap;
1751
    }
1752
 
1753
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1754
      public getProvider() {
1755
        super("getProvider");
1756
      }
1757
 
1758
      protected getProvider_args getEmptyArgsInstance() {
1759
        return new getProvider_args();
1760
      }
1761
 
1762
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1763
        getProvider_result result = new getProvider_result();
1764
        try {
3430 rajveer 1765
          result.success = iface.getProvider(args.providerId);
668 chandransh 1766
        } catch (LogisticsServiceException lse) {
1767
          result.lse = lse;
1768
        }
3430 rajveer 1769
        return result;
668 chandransh 1770
      }
1771
    }
1772
 
3430 rajveer 1773
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1774
      public getAllProviders() {
1775
        super("getAllProviders");
1776
      }
1777
 
1778
      protected getAllProviders_args getEmptyArgsInstance() {
1779
        return new getAllProviders_args();
1780
      }
1781
 
1782
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1783
        getAllProviders_result result = new getAllProviders_result();
1784
        try {
3430 rajveer 1785
          result.success = iface.getAllProviders();
674 chandransh 1786
        } catch (LogisticsServiceException lse) {
1787
          result.lse = lse;
1788
        }
3430 rajveer 1789
        return result;
674 chandransh 1790
      }
1791
    }
1792
 
3430 rajveer 1793
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1794
      public getLogisticsEstimation() {
1795
        super("getLogisticsEstimation");
1796
      }
1797
 
1798
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1799
        return new getLogisticsEstimation_args();
1800
      }
1801
 
1802
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1803
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1804
        try {
4630 mandeep.dh 1805
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1806
        } catch (LogisticsServiceException se) {
1807
          result.se = se;
1808
        }
3430 rajveer 1809
        return result;
483 rajveer 1810
      }
1811
    }
1812
 
7256 rajveer 1813
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1814
      public getLogisticsEstimationForStore() {
1815
        super("getLogisticsEstimationForStore");
1816
      }
1817
 
1818
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1819
        return new getLogisticsEstimationForStore_args();
1820
      }
1821
 
1822
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1823
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1824
        try {
1825
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1826
        } catch (LogisticsServiceException se) {
1827
          result.se = se;
1828
        }
1829
        return result;
1830
      }
1831
    }
1832
 
3430 rajveer 1833
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1834
      public getLogisticsInfo() {
1835
        super("getLogisticsInfo");
1836
      }
1837
 
1838
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1839
        return new getLogisticsInfo_args();
1840
      }
1841
 
1842
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1843
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1844
        try {
5766 rajveer 1845
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1846
        } catch (LogisticsServiceException se) {
1847
          result.se = se;
1848
        }
3430 rajveer 1849
        return result;
471 rajveer 1850
      }
1851
    }
1852
 
3430 rajveer 1853
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1854
      public getEmptyAWB() {
1855
        super("getEmptyAWB");
1856
      }
1857
 
1858
      protected getEmptyAWB_args getEmptyArgsInstance() {
1859
        return new getEmptyAWB_args();
1860
      }
1861
 
1862
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1863
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1864
        try {
5247 rajveer 1865
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1866
        } catch (LogisticsServiceException se) {
1867
          result.se = se;
1868
        }
3430 rajveer 1869
        return result;
412 ashish 1870
      }
1871
    }
1872
 
3430 rajveer 1873
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1874
      public getShipmentInfo() {
1875
        super("getShipmentInfo");
1876
      }
1877
 
1878
      protected getShipmentInfo_args getEmptyArgsInstance() {
1879
        return new getShipmentInfo_args();
1880
      }
1881
 
1882
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1883
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1884
        try {
6643 rajveer 1885
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1886
        } catch (LogisticsServiceException se) {
1887
          result.se = se;
1888
        }
3430 rajveer 1889
        return result;
412 ashish 1890
      }
1891
    }
1892
 
6643 rajveer 1893
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1894
      public storeShipmentInfo() {
1895
        super("storeShipmentInfo");
1896
      }
1897
 
1898
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1899
        return new storeShipmentInfo_args();
1900
      }
1901
 
1902
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1903
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1904
        try {
1905
          iface.storeShipmentInfo(args.update);
1906
        } catch (LogisticsServiceException se) {
1907
          result.se = se;
1908
        }
1909
        return result;
1910
      }
1911
    }
1912
 
3430 rajveer 1913
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1914
      public getDestinationCode() {
1915
        super("getDestinationCode");
1916
      }
1917
 
1918
      protected getDestinationCode_args getEmptyArgsInstance() {
1919
        return new getDestinationCode_args();
1920
      }
1921
 
1922
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1923
        getDestinationCode_result result = new getDestinationCode_result();
1924
        try {
3430 rajveer 1925
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1926
        } catch (LogisticsServiceException se) {
1927
          result.se = se;
1928
        }
3430 rajveer 1929
        return result;
730 chandransh 1930
      }
1931
    }
1932
 
3430 rajveer 1933
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1934
      public getFreeAwbCount() {
1935
        super("getFreeAwbCount");
1936
      }
1937
 
1938
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1939
        return new getFreeAwbCount_args();
1940
      }
1941
 
1942
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1943
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1944
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1945
        result.setSuccessIsSet(true);
3430 rajveer 1946
        return result;
1139 chandransh 1947
      }
1948
    }
1949
 
3430 rajveer 1950
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1951
      public getHolidays() {
1952
        super("getHolidays");
1953
      }
1954
 
1955
      protected getHolidays_args getEmptyArgsInstance() {
1956
        return new getHolidays_args();
1957
      }
1958
 
1959
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1960
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1961
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1962
        return result;
1730 ankur.sing 1963
      }
1964
    }
1965
 
4934 amit.gupta 1966
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1967
      public getEntityLogisticsEstimation() {
1968
        super("getEntityLogisticsEstimation");
1969
      }
1970
 
1971
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1972
        return new getEntityLogisticsEstimation_args();
1973
      }
1974
 
1975
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1976
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1977
        try {
1978
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1979
        } catch (LogisticsServiceException se) {
1980
          result.se = se;
1981
        }
1982
        return result;
1983
      }
1984
    }
1985
 
5527 anupam.sin 1986
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1987
      public getProviderForPickupType() {
1988
        super("getProviderForPickupType");
1989
      }
1990
 
1991
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1992
        return new getProviderForPickupType_args();
1993
      }
1994
 
1995
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1996
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1997
        result.success = iface.getProviderForPickupType(args.pickUp);
1998
        result.setSuccessIsSet(true);
1999
        return result;
2000
      }
2001
    }
2002
 
5553 rajveer 2003
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2004
      public getAllPickupStores() {
2005
        super("getAllPickupStores");
2006
      }
2007
 
2008
      protected getAllPickupStores_args getEmptyArgsInstance() {
2009
        return new getAllPickupStores_args();
2010
      }
2011
 
2012
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2013
        getAllPickupStores_result result = new getAllPickupStores_result();
2014
        result.success = iface.getAllPickupStores();
2015
        return result;
2016
      }
2017
    }
2018
 
2019
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2020
      public getPickupStore() {
2021
        super("getPickupStore");
2022
      }
2023
 
2024
      protected getPickupStore_args getEmptyArgsInstance() {
2025
        return new getPickupStore_args();
2026
      }
2027
 
2028
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2029
        getPickupStore_result result = new getPickupStore_result();
2030
        result.success = iface.getPickupStore(args.storeId);
2031
        return result;
2032
      }
2033
    }
2034
 
5719 rajveer 2035
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2036
      public getPickupStoreByHotspotId() {
2037
        super("getPickupStoreByHotspotId");
2038
      }
2039
 
2040
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2041
        return new getPickupStoreByHotspotId_args();
2042
      }
2043
 
2044
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2045
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2046
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2047
        return result;
2048
      }
2049
    }
2050
 
6322 amar.kumar 2051
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2052
      public addPincode() {
2053
        super("addPincode");
2054
      }
2055
 
2056
      protected addPincode_args getEmptyArgsInstance() {
2057
        return new addPincode_args();
2058
      }
2059
 
2060
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2061
        addPincode_result result = new addPincode_result();
6524 rajveer 2062
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2063
        return result;
2064
      }
2065
    }
2066
 
2067
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2068
      public updatePincode() {
2069
        super("updatePincode");
2070
      }
2071
 
2072
      protected updatePincode_args getEmptyArgsInstance() {
2073
        return new updatePincode_args();
2074
      }
2075
 
2076
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2077
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2078
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2079
        return result;
2080
      }
2081
    }
2082
 
7567 rajveer 2083
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2084
      public addNewAwbs() {
2085
        super("addNewAwbs");
2086
      }
2087
 
2088
      protected addNewAwbs_args getEmptyArgsInstance() {
2089
        return new addNewAwbs_args();
2090
      }
2091
 
2092
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2093
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2094
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2095
        result.setSuccessIsSet(true);
2096
        return result;
2097
      }
2098
    }
2099
 
7788 manish.sha 2100
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2101
      public runLogisticsLocationInfoUpdate() {
2102
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2103
      }
2104
 
7788 manish.sha 2105
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2106
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2107
      }
2108
 
7788 manish.sha 2109
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2110
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
2111
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 2112
        return result;
2113
      }
2114
    }
2115
 
7888 rajveer 2116
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2117
      public adjustDeliveryDays() {
2118
        super("adjustDeliveryDays");
2119
      }
2120
 
2121
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2122
        return new adjustDeliveryDays_args();
2123
      }
2124
 
2125
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2126
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2127
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2128
        result.setSuccessIsSet(true);
2129
        return result;
2130
      }
2131
    }
2132
 
12895 manish.sha 2133
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2134
      public getFirstDeliveryEstimateForWhLocation() {
2135
        super("getFirstDeliveryEstimateForWhLocation");
2136
      }
2137
 
2138
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2139
        return new getFirstDeliveryEstimateForWhLocation_args();
2140
      }
2141
 
2142
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2143
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2144
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2145
        result.setSuccessIsSet(true);
2146
        return result;
2147
      }
2148
    }
2149
 
13146 manish.sha 2150
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2151
      public getNewEmptyAwb() {
2152
        super("getNewEmptyAwb");
2153
      }
2154
 
2155
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2156
        return new getNewEmptyAwb_args();
2157
      }
2158
 
2159
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2160
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2161
        try {
2162
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2163
        } catch (LogisticsServiceException se) {
2164
          result.se = se;
2165
        }
2166
        return result;
2167
      }
2168
    }
2169
 
2170
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2171
      public getProviderLimitDetailsForPincode() {
2172
        super("getProviderLimitDetailsForPincode");
2173
      }
2174
 
2175
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2176
        return new getProviderLimitDetailsForPincode_args();
2177
      }
2178
 
2179
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2180
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2181
        try {
2182
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2183
        } catch (LogisticsServiceException se) {
2184
          result.se = se;
2185
        }
2186
        return result;
2187
      }
2188
    }
2189
 
412 ashish 2190
  }
2191
 
3430 rajveer 2192
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2194
 
3430 rajveer 2195
    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 2196
 
3430 rajveer 2197
    private long providerId; // required
668 chandransh 2198
 
2199
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2200
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2201
      PROVIDER_ID((short)1, "providerId");
2202
 
2203
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2204
 
2205
      static {
2206
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2207
          byName.put(field.getFieldName(), field);
2208
        }
2209
      }
2210
 
2211
      /**
2212
       * Find the _Fields constant that matches fieldId, or null if its not found.
2213
       */
2214
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2215
        switch(fieldId) {
2216
          case 1: // PROVIDER_ID
2217
            return PROVIDER_ID;
2218
          default:
2219
            return null;
2220
        }
668 chandransh 2221
      }
2222
 
2223
      /**
2224
       * Find the _Fields constant that matches fieldId, throwing an exception
2225
       * if it is not found.
2226
       */
2227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2228
        _Fields fields = findByThriftId(fieldId);
2229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2230
        return fields;
2231
      }
2232
 
2233
      /**
2234
       * Find the _Fields constant that matches name, or null if its not found.
2235
       */
2236
      public static _Fields findByName(String name) {
2237
        return byName.get(name);
2238
      }
2239
 
2240
      private final short _thriftId;
2241
      private final String _fieldName;
2242
 
2243
      _Fields(short thriftId, String fieldName) {
2244
        _thriftId = thriftId;
2245
        _fieldName = fieldName;
2246
      }
2247
 
2248
      public short getThriftFieldId() {
2249
        return _thriftId;
2250
      }
2251
 
2252
      public String getFieldName() {
2253
        return _fieldName;
2254
      }
2255
    }
2256
 
2257
    // isset id assignments
2258
    private static final int __PROVIDERID_ISSET_ID = 0;
2259
    private BitSet __isset_bit_vector = new BitSet(1);
2260
 
3430 rajveer 2261
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2262
    static {
3430 rajveer 2263
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2264
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2268
    }
2269
 
2270
    public getProvider_args() {
2271
    }
2272
 
2273
    public getProvider_args(
2274
      long providerId)
2275
    {
2276
      this();
2277
      this.providerId = providerId;
2278
      setProviderIdIsSet(true);
2279
    }
2280
 
2281
    /**
2282
     * Performs a deep copy on <i>other</i>.
2283
     */
2284
    public getProvider_args(getProvider_args other) {
2285
      __isset_bit_vector.clear();
2286
      __isset_bit_vector.or(other.__isset_bit_vector);
2287
      this.providerId = other.providerId;
2288
    }
2289
 
2290
    public getProvider_args deepCopy() {
2291
      return new getProvider_args(this);
2292
    }
2293
 
3430 rajveer 2294
    @Override
2295
    public void clear() {
2296
      setProviderIdIsSet(false);
2297
      this.providerId = 0;
668 chandransh 2298
    }
2299
 
2300
    public long getProviderId() {
2301
      return this.providerId;
2302
    }
2303
 
3430 rajveer 2304
    public void setProviderId(long providerId) {
668 chandransh 2305
      this.providerId = providerId;
2306
      setProviderIdIsSet(true);
2307
    }
2308
 
2309
    public void unsetProviderId() {
2310
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2311
    }
2312
 
3430 rajveer 2313
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2314
    public boolean isSetProviderId() {
2315
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2316
    }
2317
 
2318
    public void setProviderIdIsSet(boolean value) {
2319
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2320
    }
2321
 
2322
    public void setFieldValue(_Fields field, Object value) {
2323
      switch (field) {
2324
      case PROVIDER_ID:
2325
        if (value == null) {
2326
          unsetProviderId();
2327
        } else {
2328
          setProviderId((Long)value);
2329
        }
2330
        break;
2331
 
2332
      }
2333
    }
2334
 
2335
    public Object getFieldValue(_Fields field) {
2336
      switch (field) {
2337
      case PROVIDER_ID:
3430 rajveer 2338
        return Long.valueOf(getProviderId());
668 chandransh 2339
 
2340
      }
2341
      throw new IllegalStateException();
2342
    }
2343
 
3430 rajveer 2344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2345
    public boolean isSet(_Fields field) {
2346
      if (field == null) {
2347
        throw new IllegalArgumentException();
2348
      }
668 chandransh 2349
 
2350
      switch (field) {
2351
      case PROVIDER_ID:
2352
        return isSetProviderId();
2353
      }
2354
      throw new IllegalStateException();
2355
    }
2356
 
2357
    @Override
2358
    public boolean equals(Object that) {
2359
      if (that == null)
2360
        return false;
2361
      if (that instanceof getProvider_args)
2362
        return this.equals((getProvider_args)that);
2363
      return false;
2364
    }
2365
 
2366
    public boolean equals(getProvider_args that) {
2367
      if (that == null)
2368
        return false;
2369
 
2370
      boolean this_present_providerId = true;
2371
      boolean that_present_providerId = true;
2372
      if (this_present_providerId || that_present_providerId) {
2373
        if (!(this_present_providerId && that_present_providerId))
2374
          return false;
2375
        if (this.providerId != that.providerId)
2376
          return false;
2377
      }
2378
 
2379
      return true;
2380
    }
2381
 
2382
    @Override
2383
    public int hashCode() {
2384
      return 0;
2385
    }
2386
 
2387
    public int compareTo(getProvider_args other) {
2388
      if (!getClass().equals(other.getClass())) {
2389
        return getClass().getName().compareTo(other.getClass().getName());
2390
      }
2391
 
2392
      int lastComparison = 0;
2393
      getProvider_args typedOther = (getProvider_args)other;
2394
 
3430 rajveer 2395
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2396
      if (lastComparison != 0) {
2397
        return lastComparison;
2398
      }
3430 rajveer 2399
      if (isSetProviderId()) {
2400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2401
        if (lastComparison != 0) {
2402
          return lastComparison;
2403
        }
668 chandransh 2404
      }
2405
      return 0;
2406
    }
2407
 
3430 rajveer 2408
    public _Fields fieldForId(int fieldId) {
2409
      return _Fields.findByThriftId(fieldId);
2410
    }
2411
 
2412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2413
      org.apache.thrift.protocol.TField field;
668 chandransh 2414
      iprot.readStructBegin();
2415
      while (true)
2416
      {
2417
        field = iprot.readFieldBegin();
3430 rajveer 2418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2419
          break;
2420
        }
3430 rajveer 2421
        switch (field.id) {
2422
          case 1: // PROVIDER_ID
2423
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2424
              this.providerId = iprot.readI64();
2425
              setProviderIdIsSet(true);
2426
            } else { 
2427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2428
            }
2429
            break;
2430
          default:
2431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2432
        }
3430 rajveer 2433
        iprot.readFieldEnd();
668 chandransh 2434
      }
2435
      iprot.readStructEnd();
2436
      validate();
2437
    }
2438
 
3430 rajveer 2439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2440
      validate();
2441
 
2442
      oprot.writeStructBegin(STRUCT_DESC);
2443
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2444
      oprot.writeI64(this.providerId);
2445
      oprot.writeFieldEnd();
2446
      oprot.writeFieldStop();
2447
      oprot.writeStructEnd();
2448
    }
2449
 
2450
    @Override
2451
    public String toString() {
2452
      StringBuilder sb = new StringBuilder("getProvider_args(");
2453
      boolean first = true;
2454
 
2455
      sb.append("providerId:");
2456
      sb.append(this.providerId);
2457
      first = false;
2458
      sb.append(")");
2459
      return sb.toString();
2460
    }
2461
 
3430 rajveer 2462
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2463
      // check for required fields
2464
    }
2465
 
3430 rajveer 2466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2467
      try {
2468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2469
      } catch (org.apache.thrift.TException te) {
2470
        throw new java.io.IOException(te);
2471
      }
2472
    }
2473
 
2474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2475
      try {
2476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2477
      } catch (org.apache.thrift.TException te) {
2478
        throw new java.io.IOException(te);
2479
      }
2480
    }
2481
 
668 chandransh 2482
  }
2483
 
3430 rajveer 2484
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2486
 
3430 rajveer 2487
    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);
2488
    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 2489
 
3430 rajveer 2490
    private Provider success; // required
2491
    private LogisticsServiceException lse; // required
668 chandransh 2492
 
2493
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2494
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2495
      SUCCESS((short)0, "success"),
2496
      LSE((short)1, "lse");
2497
 
2498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2499
 
2500
      static {
2501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2502
          byName.put(field.getFieldName(), field);
2503
        }
2504
      }
2505
 
2506
      /**
2507
       * Find the _Fields constant that matches fieldId, or null if its not found.
2508
       */
2509
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2510
        switch(fieldId) {
2511
          case 0: // SUCCESS
2512
            return SUCCESS;
2513
          case 1: // LSE
2514
            return LSE;
2515
          default:
2516
            return null;
2517
        }
668 chandransh 2518
      }
2519
 
2520
      /**
2521
       * Find the _Fields constant that matches fieldId, throwing an exception
2522
       * if it is not found.
2523
       */
2524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2525
        _Fields fields = findByThriftId(fieldId);
2526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2527
        return fields;
2528
      }
2529
 
2530
      /**
2531
       * Find the _Fields constant that matches name, or null if its not found.
2532
       */
2533
      public static _Fields findByName(String name) {
2534
        return byName.get(name);
2535
      }
2536
 
2537
      private final short _thriftId;
2538
      private final String _fieldName;
2539
 
2540
      _Fields(short thriftId, String fieldName) {
2541
        _thriftId = thriftId;
2542
        _fieldName = fieldName;
2543
      }
2544
 
2545
      public short getThriftFieldId() {
2546
        return _thriftId;
2547
      }
2548
 
2549
      public String getFieldName() {
2550
        return _fieldName;
2551
      }
2552
    }
2553
 
2554
    // isset id assignments
2555
 
3430 rajveer 2556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2557
    static {
3430 rajveer 2558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2559
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2560
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2561
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2562
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2565
    }
2566
 
2567
    public getProvider_result() {
2568
    }
2569
 
2570
    public getProvider_result(
2571
      Provider success,
2572
      LogisticsServiceException lse)
2573
    {
2574
      this();
2575
      this.success = success;
2576
      this.lse = lse;
2577
    }
2578
 
2579
    /**
2580
     * Performs a deep copy on <i>other</i>.
2581
     */
2582
    public getProvider_result(getProvider_result other) {
2583
      if (other.isSetSuccess()) {
2584
        this.success = new Provider(other.success);
2585
      }
2586
      if (other.isSetLse()) {
2587
        this.lse = new LogisticsServiceException(other.lse);
2588
      }
2589
    }
2590
 
2591
    public getProvider_result deepCopy() {
2592
      return new getProvider_result(this);
2593
    }
2594
 
3430 rajveer 2595
    @Override
2596
    public void clear() {
2597
      this.success = null;
2598
      this.lse = null;
668 chandransh 2599
    }
2600
 
2601
    public Provider getSuccess() {
2602
      return this.success;
2603
    }
2604
 
3430 rajveer 2605
    public void setSuccess(Provider success) {
668 chandransh 2606
      this.success = success;
2607
    }
2608
 
2609
    public void unsetSuccess() {
2610
      this.success = null;
2611
    }
2612
 
3430 rajveer 2613
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2614
    public boolean isSetSuccess() {
2615
      return this.success != null;
2616
    }
2617
 
2618
    public void setSuccessIsSet(boolean value) {
2619
      if (!value) {
2620
        this.success = null;
2621
      }
2622
    }
2623
 
2624
    public LogisticsServiceException getLse() {
2625
      return this.lse;
2626
    }
2627
 
3430 rajveer 2628
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2629
      this.lse = lse;
2630
    }
2631
 
2632
    public void unsetLse() {
2633
      this.lse = null;
2634
    }
2635
 
3430 rajveer 2636
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2637
    public boolean isSetLse() {
2638
      return this.lse != null;
2639
    }
2640
 
2641
    public void setLseIsSet(boolean value) {
2642
      if (!value) {
2643
        this.lse = null;
2644
      }
2645
    }
2646
 
2647
    public void setFieldValue(_Fields field, Object value) {
2648
      switch (field) {
2649
      case SUCCESS:
2650
        if (value == null) {
2651
          unsetSuccess();
2652
        } else {
2653
          setSuccess((Provider)value);
2654
        }
2655
        break;
2656
 
2657
      case LSE:
2658
        if (value == null) {
2659
          unsetLse();
2660
        } else {
2661
          setLse((LogisticsServiceException)value);
2662
        }
2663
        break;
2664
 
2665
      }
2666
    }
2667
 
2668
    public Object getFieldValue(_Fields field) {
2669
      switch (field) {
2670
      case SUCCESS:
2671
        return getSuccess();
2672
 
2673
      case LSE:
2674
        return getLse();
2675
 
2676
      }
2677
      throw new IllegalStateException();
2678
    }
2679
 
3430 rajveer 2680
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2681
    public boolean isSet(_Fields field) {
2682
      if (field == null) {
2683
        throw new IllegalArgumentException();
2684
      }
668 chandransh 2685
 
2686
      switch (field) {
2687
      case SUCCESS:
2688
        return isSetSuccess();
2689
      case LSE:
2690
        return isSetLse();
2691
      }
2692
      throw new IllegalStateException();
2693
    }
2694
 
2695
    @Override
2696
    public boolean equals(Object that) {
2697
      if (that == null)
2698
        return false;
2699
      if (that instanceof getProvider_result)
2700
        return this.equals((getProvider_result)that);
2701
      return false;
2702
    }
2703
 
2704
    public boolean equals(getProvider_result that) {
2705
      if (that == null)
2706
        return false;
2707
 
2708
      boolean this_present_success = true && this.isSetSuccess();
2709
      boolean that_present_success = true && that.isSetSuccess();
2710
      if (this_present_success || that_present_success) {
2711
        if (!(this_present_success && that_present_success))
2712
          return false;
2713
        if (!this.success.equals(that.success))
2714
          return false;
2715
      }
2716
 
2717
      boolean this_present_lse = true && this.isSetLse();
2718
      boolean that_present_lse = true && that.isSetLse();
2719
      if (this_present_lse || that_present_lse) {
2720
        if (!(this_present_lse && that_present_lse))
2721
          return false;
2722
        if (!this.lse.equals(that.lse))
2723
          return false;
2724
      }
2725
 
2726
      return true;
2727
    }
2728
 
2729
    @Override
2730
    public int hashCode() {
2731
      return 0;
2732
    }
2733
 
3430 rajveer 2734
    public int compareTo(getProvider_result other) {
2735
      if (!getClass().equals(other.getClass())) {
2736
        return getClass().getName().compareTo(other.getClass().getName());
2737
      }
2738
 
2739
      int lastComparison = 0;
2740
      getProvider_result typedOther = (getProvider_result)other;
2741
 
2742
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2743
      if (lastComparison != 0) {
2744
        return lastComparison;
2745
      }
2746
      if (isSetSuccess()) {
2747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2748
        if (lastComparison != 0) {
2749
          return lastComparison;
2750
        }
2751
      }
2752
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2753
      if (lastComparison != 0) {
2754
        return lastComparison;
2755
      }
2756
      if (isSetLse()) {
2757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2758
        if (lastComparison != 0) {
2759
          return lastComparison;
2760
        }
2761
      }
2762
      return 0;
2763
    }
2764
 
2765
    public _Fields fieldForId(int fieldId) {
2766
      return _Fields.findByThriftId(fieldId);
2767
    }
2768
 
2769
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2770
      org.apache.thrift.protocol.TField field;
668 chandransh 2771
      iprot.readStructBegin();
2772
      while (true)
2773
      {
2774
        field = iprot.readFieldBegin();
3430 rajveer 2775
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2776
          break;
2777
        }
3430 rajveer 2778
        switch (field.id) {
2779
          case 0: // SUCCESS
2780
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2781
              this.success = new Provider();
2782
              this.success.read(iprot);
2783
            } else { 
2784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2785
            }
2786
            break;
2787
          case 1: // LSE
2788
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2789
              this.lse = new LogisticsServiceException();
2790
              this.lse.read(iprot);
2791
            } else { 
2792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2793
            }
2794
            break;
2795
          default:
2796
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2797
        }
3430 rajveer 2798
        iprot.readFieldEnd();
668 chandransh 2799
      }
2800
      iprot.readStructEnd();
2801
      validate();
2802
    }
2803
 
3430 rajveer 2804
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2805
      oprot.writeStructBegin(STRUCT_DESC);
2806
 
2807
      if (this.isSetSuccess()) {
2808
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2809
        this.success.write(oprot);
2810
        oprot.writeFieldEnd();
2811
      } else if (this.isSetLse()) {
2812
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2813
        this.lse.write(oprot);
2814
        oprot.writeFieldEnd();
2815
      }
2816
      oprot.writeFieldStop();
2817
      oprot.writeStructEnd();
2818
    }
2819
 
2820
    @Override
2821
    public String toString() {
2822
      StringBuilder sb = new StringBuilder("getProvider_result(");
2823
      boolean first = true;
2824
 
2825
      sb.append("success:");
2826
      if (this.success == null) {
2827
        sb.append("null");
2828
      } else {
2829
        sb.append(this.success);
2830
      }
2831
      first = false;
2832
      if (!first) sb.append(", ");
2833
      sb.append("lse:");
2834
      if (this.lse == null) {
2835
        sb.append("null");
2836
      } else {
2837
        sb.append(this.lse);
2838
      }
2839
      first = false;
2840
      sb.append(")");
2841
      return sb.toString();
2842
    }
2843
 
3430 rajveer 2844
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2845
      // check for required fields
2846
    }
2847
 
3430 rajveer 2848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2849
      try {
2850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2851
      } catch (org.apache.thrift.TException te) {
2852
        throw new java.io.IOException(te);
2853
      }
2854
    }
2855
 
2856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2857
      try {
2858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2859
      } catch (org.apache.thrift.TException te) {
2860
        throw new java.io.IOException(te);
2861
      }
2862
    }
2863
 
668 chandransh 2864
  }
2865
 
3430 rajveer 2866
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2868
 
2869
 
2870
 
2871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2873
;
2874
 
2875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2876
 
2877
      static {
2878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2879
          byName.put(field.getFieldName(), field);
2880
        }
2881
      }
2882
 
2883
      /**
2884
       * Find the _Fields constant that matches fieldId, or null if its not found.
2885
       */
2886
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2887
        switch(fieldId) {
2888
          default:
2889
            return null;
2890
        }
674 chandransh 2891
      }
2892
 
2893
      /**
2894
       * Find the _Fields constant that matches fieldId, throwing an exception
2895
       * if it is not found.
2896
       */
2897
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2898
        _Fields fields = findByThriftId(fieldId);
2899
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2900
        return fields;
2901
      }
2902
 
2903
      /**
2904
       * Find the _Fields constant that matches name, or null if its not found.
2905
       */
2906
      public static _Fields findByName(String name) {
2907
        return byName.get(name);
2908
      }
2909
 
2910
      private final short _thriftId;
2911
      private final String _fieldName;
2912
 
2913
      _Fields(short thriftId, String fieldName) {
2914
        _thriftId = thriftId;
2915
        _fieldName = fieldName;
2916
      }
2917
 
2918
      public short getThriftFieldId() {
2919
        return _thriftId;
2920
      }
2921
 
2922
      public String getFieldName() {
2923
        return _fieldName;
2924
      }
2925
    }
3430 rajveer 2926
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2927
    static {
3430 rajveer 2928
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2931
    }
2932
 
2933
    public getAllProviders_args() {
2934
    }
2935
 
2936
    /**
2937
     * Performs a deep copy on <i>other</i>.
2938
     */
2939
    public getAllProviders_args(getAllProviders_args other) {
2940
    }
2941
 
2942
    public getAllProviders_args deepCopy() {
2943
      return new getAllProviders_args(this);
2944
    }
2945
 
3430 rajveer 2946
    @Override
2947
    public void clear() {
674 chandransh 2948
    }
2949
 
2950
    public void setFieldValue(_Fields field, Object value) {
2951
      switch (field) {
2952
      }
2953
    }
2954
 
2955
    public Object getFieldValue(_Fields field) {
2956
      switch (field) {
2957
      }
2958
      throw new IllegalStateException();
2959
    }
2960
 
3430 rajveer 2961
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2962
    public boolean isSet(_Fields field) {
2963
      if (field == null) {
2964
        throw new IllegalArgumentException();
2965
      }
674 chandransh 2966
 
2967
      switch (field) {
2968
      }
2969
      throw new IllegalStateException();
2970
    }
2971
 
2972
    @Override
2973
    public boolean equals(Object that) {
2974
      if (that == null)
2975
        return false;
2976
      if (that instanceof getAllProviders_args)
2977
        return this.equals((getAllProviders_args)that);
2978
      return false;
2979
    }
2980
 
2981
    public boolean equals(getAllProviders_args that) {
2982
      if (that == null)
2983
        return false;
2984
 
2985
      return true;
2986
    }
2987
 
2988
    @Override
2989
    public int hashCode() {
2990
      return 0;
2991
    }
2992
 
2993
    public int compareTo(getAllProviders_args other) {
2994
      if (!getClass().equals(other.getClass())) {
2995
        return getClass().getName().compareTo(other.getClass().getName());
2996
      }
2997
 
2998
      int lastComparison = 0;
2999
      getAllProviders_args typedOther = (getAllProviders_args)other;
3000
 
3001
      return 0;
3002
    }
3003
 
3430 rajveer 3004
    public _Fields fieldForId(int fieldId) {
3005
      return _Fields.findByThriftId(fieldId);
3006
    }
3007
 
3008
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3009
      org.apache.thrift.protocol.TField field;
674 chandransh 3010
      iprot.readStructBegin();
3011
      while (true)
3012
      {
3013
        field = iprot.readFieldBegin();
3430 rajveer 3014
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3015
          break;
3016
        }
3430 rajveer 3017
        switch (field.id) {
3018
          default:
3019
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3020
        }
3430 rajveer 3021
        iprot.readFieldEnd();
674 chandransh 3022
      }
3023
      iprot.readStructEnd();
3024
      validate();
3025
    }
3026
 
3430 rajveer 3027
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3028
      validate();
3029
 
3030
      oprot.writeStructBegin(STRUCT_DESC);
3031
      oprot.writeFieldStop();
3032
      oprot.writeStructEnd();
3033
    }
3034
 
3035
    @Override
3036
    public String toString() {
3037
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3038
      boolean first = true;
3039
 
3040
      sb.append(")");
3041
      return sb.toString();
3042
    }
3043
 
3430 rajveer 3044
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3045
      // check for required fields
3046
    }
3047
 
3430 rajveer 3048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3049
      try {
3050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3051
      } catch (org.apache.thrift.TException te) {
3052
        throw new java.io.IOException(te);
3053
      }
3054
    }
3055
 
3056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3057
      try {
3058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3059
      } catch (org.apache.thrift.TException te) {
3060
        throw new java.io.IOException(te);
3061
      }
3062
    }
3063
 
674 chandransh 3064
  }
3065
 
3430 rajveer 3066
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3068
 
3430 rajveer 3069
    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);
3070
    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 3071
 
3430 rajveer 3072
    private List<Provider> success; // required
3073
    private LogisticsServiceException lse; // required
674 chandransh 3074
 
3075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3077
      SUCCESS((short)0, "success"),
3078
      LSE((short)1, "lse");
3079
 
3080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3081
 
3082
      static {
3083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3084
          byName.put(field.getFieldName(), field);
3085
        }
3086
      }
3087
 
3088
      /**
3089
       * Find the _Fields constant that matches fieldId, or null if its not found.
3090
       */
3091
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3092
        switch(fieldId) {
3093
          case 0: // SUCCESS
3094
            return SUCCESS;
3095
          case 1: // LSE
3096
            return LSE;
3097
          default:
3098
            return null;
3099
        }
674 chandransh 3100
      }
3101
 
3102
      /**
3103
       * Find the _Fields constant that matches fieldId, throwing an exception
3104
       * if it is not found.
3105
       */
3106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3107
        _Fields fields = findByThriftId(fieldId);
3108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3109
        return fields;
3110
      }
3111
 
3112
      /**
3113
       * Find the _Fields constant that matches name, or null if its not found.
3114
       */
3115
      public static _Fields findByName(String name) {
3116
        return byName.get(name);
3117
      }
3118
 
3119
      private final short _thriftId;
3120
      private final String _fieldName;
3121
 
3122
      _Fields(short thriftId, String fieldName) {
3123
        _thriftId = thriftId;
3124
        _fieldName = fieldName;
3125
      }
3126
 
3127
      public short getThriftFieldId() {
3128
        return _thriftId;
3129
      }
3130
 
3131
      public String getFieldName() {
3132
        return _fieldName;
3133
      }
3134
    }
3135
 
3136
    // isset id assignments
3137
 
3430 rajveer 3138
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3139
    static {
3430 rajveer 3140
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3141
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3142
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3143
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3144
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3146
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3147
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3148
    }
3149
 
3150
    public getAllProviders_result() {
3151
    }
3152
 
3153
    public getAllProviders_result(
3154
      List<Provider> success,
3155
      LogisticsServiceException lse)
3156
    {
3157
      this();
3158
      this.success = success;
3159
      this.lse = lse;
3160
    }
3161
 
3162
    /**
3163
     * Performs a deep copy on <i>other</i>.
3164
     */
3165
    public getAllProviders_result(getAllProviders_result other) {
3166
      if (other.isSetSuccess()) {
3167
        List<Provider> __this__success = new ArrayList<Provider>();
3168
        for (Provider other_element : other.success) {
3169
          __this__success.add(new Provider(other_element));
3170
        }
3171
        this.success = __this__success;
3172
      }
3173
      if (other.isSetLse()) {
3174
        this.lse = new LogisticsServiceException(other.lse);
3175
      }
3176
    }
3177
 
3178
    public getAllProviders_result deepCopy() {
3179
      return new getAllProviders_result(this);
3180
    }
3181
 
3430 rajveer 3182
    @Override
3183
    public void clear() {
3184
      this.success = null;
3185
      this.lse = null;
674 chandransh 3186
    }
3187
 
3188
    public int getSuccessSize() {
3189
      return (this.success == null) ? 0 : this.success.size();
3190
    }
3191
 
3192
    public java.util.Iterator<Provider> getSuccessIterator() {
3193
      return (this.success == null) ? null : this.success.iterator();
3194
    }
3195
 
3196
    public void addToSuccess(Provider elem) {
3197
      if (this.success == null) {
3198
        this.success = new ArrayList<Provider>();
3199
      }
3200
      this.success.add(elem);
3201
    }
3202
 
3203
    public List<Provider> getSuccess() {
3204
      return this.success;
3205
    }
3206
 
3430 rajveer 3207
    public void setSuccess(List<Provider> success) {
674 chandransh 3208
      this.success = success;
3209
    }
3210
 
3211
    public void unsetSuccess() {
3212
      this.success = null;
3213
    }
3214
 
3430 rajveer 3215
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3216
    public boolean isSetSuccess() {
3217
      return this.success != null;
3218
    }
3219
 
3220
    public void setSuccessIsSet(boolean value) {
3221
      if (!value) {
3222
        this.success = null;
3223
      }
3224
    }
3225
 
3226
    public LogisticsServiceException getLse() {
3227
      return this.lse;
3228
    }
3229
 
3430 rajveer 3230
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3231
      this.lse = lse;
3232
    }
3233
 
3234
    public void unsetLse() {
3235
      this.lse = null;
3236
    }
3237
 
3430 rajveer 3238
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3239
    public boolean isSetLse() {
3240
      return this.lse != null;
3241
    }
3242
 
3243
    public void setLseIsSet(boolean value) {
3244
      if (!value) {
3245
        this.lse = null;
3246
      }
3247
    }
3248
 
3249
    public void setFieldValue(_Fields field, Object value) {
3250
      switch (field) {
3251
      case SUCCESS:
3252
        if (value == null) {
3253
          unsetSuccess();
3254
        } else {
3255
          setSuccess((List<Provider>)value);
3256
        }
3257
        break;
3258
 
3259
      case LSE:
3260
        if (value == null) {
3261
          unsetLse();
3262
        } else {
3263
          setLse((LogisticsServiceException)value);
3264
        }
3265
        break;
3266
 
3267
      }
3268
    }
3269
 
3270
    public Object getFieldValue(_Fields field) {
3271
      switch (field) {
3272
      case SUCCESS:
3273
        return getSuccess();
3274
 
3275
      case LSE:
3276
        return getLse();
3277
 
3278
      }
3279
      throw new IllegalStateException();
3280
    }
3281
 
3430 rajveer 3282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3283
    public boolean isSet(_Fields field) {
3284
      if (field == null) {
3285
        throw new IllegalArgumentException();
3286
      }
674 chandransh 3287
 
3288
      switch (field) {
3289
      case SUCCESS:
3290
        return isSetSuccess();
3291
      case LSE:
3292
        return isSetLse();
3293
      }
3294
      throw new IllegalStateException();
3295
    }
3296
 
3297
    @Override
3298
    public boolean equals(Object that) {
3299
      if (that == null)
3300
        return false;
3301
      if (that instanceof getAllProviders_result)
3302
        return this.equals((getAllProviders_result)that);
3303
      return false;
3304
    }
3305
 
3306
    public boolean equals(getAllProviders_result that) {
3307
      if (that == null)
3308
        return false;
3309
 
3310
      boolean this_present_success = true && this.isSetSuccess();
3311
      boolean that_present_success = true && that.isSetSuccess();
3312
      if (this_present_success || that_present_success) {
3313
        if (!(this_present_success && that_present_success))
3314
          return false;
3315
        if (!this.success.equals(that.success))
3316
          return false;
3317
      }
3318
 
3319
      boolean this_present_lse = true && this.isSetLse();
3320
      boolean that_present_lse = true && that.isSetLse();
3321
      if (this_present_lse || that_present_lse) {
3322
        if (!(this_present_lse && that_present_lse))
3323
          return false;
3324
        if (!this.lse.equals(that.lse))
3325
          return false;
3326
      }
3327
 
3328
      return true;
3329
    }
3330
 
3331
    @Override
3332
    public int hashCode() {
3333
      return 0;
3334
    }
3335
 
3430 rajveer 3336
    public int compareTo(getAllProviders_result other) {
3337
      if (!getClass().equals(other.getClass())) {
3338
        return getClass().getName().compareTo(other.getClass().getName());
3339
      }
3340
 
3341
      int lastComparison = 0;
3342
      getAllProviders_result typedOther = (getAllProviders_result)other;
3343
 
3344
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3345
      if (lastComparison != 0) {
3346
        return lastComparison;
3347
      }
3348
      if (isSetSuccess()) {
3349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3350
        if (lastComparison != 0) {
3351
          return lastComparison;
3352
        }
3353
      }
3354
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3355
      if (lastComparison != 0) {
3356
        return lastComparison;
3357
      }
3358
      if (isSetLse()) {
3359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3360
        if (lastComparison != 0) {
3361
          return lastComparison;
3362
        }
3363
      }
3364
      return 0;
3365
    }
3366
 
3367
    public _Fields fieldForId(int fieldId) {
3368
      return _Fields.findByThriftId(fieldId);
3369
    }
3370
 
3371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3372
      org.apache.thrift.protocol.TField field;
674 chandransh 3373
      iprot.readStructBegin();
3374
      while (true)
3375
      {
3376
        field = iprot.readFieldBegin();
3430 rajveer 3377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3378
          break;
3379
        }
3430 rajveer 3380
        switch (field.id) {
3381
          case 0: // SUCCESS
3382
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3383
              {
7792 anupam.sin 3384
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3385
                this.success = new ArrayList<Provider>(_list4.size);
3386
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3387
                {
7792 anupam.sin 3388
                  Provider _elem6; // required
3389
                  _elem6 = new Provider();
3390
                  _elem6.read(iprot);
3391
                  this.success.add(_elem6);
674 chandransh 3392
                }
3430 rajveer 3393
                iprot.readListEnd();
674 chandransh 3394
              }
3430 rajveer 3395
            } else { 
3396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3397
            }
3398
            break;
3399
          case 1: // LSE
3400
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3401
              this.lse = new LogisticsServiceException();
3402
              this.lse.read(iprot);
3403
            } else { 
3404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3405
            }
3406
            break;
3407
          default:
3408
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3409
        }
3430 rajveer 3410
        iprot.readFieldEnd();
674 chandransh 3411
      }
3412
      iprot.readStructEnd();
3413
      validate();
3414
    }
3415
 
3430 rajveer 3416
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3417
      oprot.writeStructBegin(STRUCT_DESC);
3418
 
3419
      if (this.isSetSuccess()) {
3420
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3421
        {
3430 rajveer 3422
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3423
          for (Provider _iter7 : this.success)
674 chandransh 3424
          {
7792 anupam.sin 3425
            _iter7.write(oprot);
674 chandransh 3426
          }
3427
          oprot.writeListEnd();
3428
        }
3429
        oprot.writeFieldEnd();
3430
      } else if (this.isSetLse()) {
3431
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3432
        this.lse.write(oprot);
3433
        oprot.writeFieldEnd();
3434
      }
3435
      oprot.writeFieldStop();
3436
      oprot.writeStructEnd();
3437
    }
3438
 
3439
    @Override
3440
    public String toString() {
3441
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3442
      boolean first = true;
3443
 
3444
      sb.append("success:");
3445
      if (this.success == null) {
3446
        sb.append("null");
3447
      } else {
3448
        sb.append(this.success);
3449
      }
3450
      first = false;
3451
      if (!first) sb.append(", ");
3452
      sb.append("lse:");
3453
      if (this.lse == null) {
3454
        sb.append("null");
3455
      } else {
3456
        sb.append(this.lse);
3457
      }
3458
      first = false;
3459
      sb.append(")");
3460
      return sb.toString();
3461
    }
3462
 
3430 rajveer 3463
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3464
      // check for required fields
3465
    }
3466
 
3430 rajveer 3467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3468
      try {
3469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3470
      } catch (org.apache.thrift.TException te) {
3471
        throw new java.io.IOException(te);
3472
      }
3473
    }
3474
 
3475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3476
      try {
3477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3478
      } catch (org.apache.thrift.TException te) {
3479
        throw new java.io.IOException(te);
3480
      }
3481
    }
3482
 
674 chandransh 3483
  }
3484
 
3430 rajveer 3485
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3487
 
3430 rajveer 3488
    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);
3489
    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 3490
    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 3491
 
3430 rajveer 3492
    private long itemId; // required
3493
    private String destination_pin; // required
4630 mandeep.dh 3494
    private DeliveryType type; // required
471 rajveer 3495
 
3496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3498
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3499
      DESTINATION_PIN((short)2, "destination_pin"),
3500
      /**
3501
       * 
3502
       * @see DeliveryType
3503
       */
3504
      TYPE((short)3, "type");
471 rajveer 3505
 
3506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3507
 
3508
      static {
3509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3510
          byName.put(field.getFieldName(), field);
3511
        }
3512
      }
3513
 
3514
      /**
3515
       * Find the _Fields constant that matches fieldId, or null if its not found.
3516
       */
3517
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3518
        switch(fieldId) {
3519
          case 1: // ITEM_ID
3520
            return ITEM_ID;
3521
          case 2: // DESTINATION_PIN
3522
            return DESTINATION_PIN;
4630 mandeep.dh 3523
          case 3: // TYPE
3524
            return TYPE;
3430 rajveer 3525
          default:
3526
            return null;
3527
        }
471 rajveer 3528
      }
3529
 
3530
      /**
3531
       * Find the _Fields constant that matches fieldId, throwing an exception
3532
       * if it is not found.
3533
       */
3534
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3535
        _Fields fields = findByThriftId(fieldId);
3536
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3537
        return fields;
3538
      }
3539
 
3540
      /**
3541
       * Find the _Fields constant that matches name, or null if its not found.
3542
       */
3543
      public static _Fields findByName(String name) {
3544
        return byName.get(name);
3545
      }
3546
 
3547
      private final short _thriftId;
3548
      private final String _fieldName;
3549
 
3550
      _Fields(short thriftId, String fieldName) {
3551
        _thriftId = thriftId;
3552
        _fieldName = fieldName;
3553
      }
3554
 
3555
      public short getThriftFieldId() {
3556
        return _thriftId;
3557
      }
3558
 
3559
      public String getFieldName() {
3560
        return _fieldName;
3561
      }
3562
    }
3563
 
3564
    // isset id assignments
3565
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3566
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3567
 
3430 rajveer 3568
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3569
    static {
3430 rajveer 3570
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3571
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3573
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3575
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3576
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3579
    }
3580
 
3581
    public getLogisticsEstimation_args() {
3582
    }
3583
 
3584
    public getLogisticsEstimation_args(
3585
      long itemId,
4630 mandeep.dh 3586
      String destination_pin,
3587
      DeliveryType type)
471 rajveer 3588
    {
3589
      this();
3590
      this.itemId = itemId;
3591
      setItemIdIsSet(true);
3592
      this.destination_pin = destination_pin;
4630 mandeep.dh 3593
      this.type = type;
471 rajveer 3594
    }
3595
 
3596
    /**
3597
     * Performs a deep copy on <i>other</i>.
3598
     */
3599
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3600
      __isset_bit_vector.clear();
3601
      __isset_bit_vector.or(other.__isset_bit_vector);
3602
      this.itemId = other.itemId;
3603
      if (other.isSetDestination_pin()) {
3604
        this.destination_pin = other.destination_pin;
3605
      }
4630 mandeep.dh 3606
      if (other.isSetType()) {
3607
        this.type = other.type;
3608
      }
471 rajveer 3609
    }
3610
 
3611
    public getLogisticsEstimation_args deepCopy() {
3612
      return new getLogisticsEstimation_args(this);
3613
    }
3614
 
3430 rajveer 3615
    @Override
3616
    public void clear() {
3617
      setItemIdIsSet(false);
3618
      this.itemId = 0;
3619
      this.destination_pin = null;
4630 mandeep.dh 3620
      this.type = null;
471 rajveer 3621
    }
3622
 
3623
    public long getItemId() {
3624
      return this.itemId;
3625
    }
3626
 
3430 rajveer 3627
    public void setItemId(long itemId) {
471 rajveer 3628
      this.itemId = itemId;
3629
      setItemIdIsSet(true);
3630
    }
3631
 
3632
    public void unsetItemId() {
3633
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3634
    }
3635
 
3430 rajveer 3636
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3637
    public boolean isSetItemId() {
3638
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3639
    }
3640
 
3641
    public void setItemIdIsSet(boolean value) {
3642
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3643
    }
3644
 
3645
    public String getDestination_pin() {
3646
      return this.destination_pin;
3647
    }
3648
 
3430 rajveer 3649
    public void setDestination_pin(String destination_pin) {
471 rajveer 3650
      this.destination_pin = destination_pin;
3651
    }
3652
 
3653
    public void unsetDestination_pin() {
3654
      this.destination_pin = null;
3655
    }
3656
 
3430 rajveer 3657
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3658
    public boolean isSetDestination_pin() {
3659
      return this.destination_pin != null;
3660
    }
3661
 
3662
    public void setDestination_pinIsSet(boolean value) {
3663
      if (!value) {
3664
        this.destination_pin = null;
3665
      }
3666
    }
3667
 
4630 mandeep.dh 3668
    /**
3669
     * 
3670
     * @see DeliveryType
3671
     */
3672
    public DeliveryType getType() {
3673
      return this.type;
3674
    }
3675
 
3676
    /**
3677
     * 
3678
     * @see DeliveryType
3679
     */
3680
    public void setType(DeliveryType type) {
3681
      this.type = type;
3682
    }
3683
 
3684
    public void unsetType() {
3685
      this.type = null;
3686
    }
3687
 
3688
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3689
    public boolean isSetType() {
3690
      return this.type != null;
3691
    }
3692
 
3693
    public void setTypeIsSet(boolean value) {
3694
      if (!value) {
3695
        this.type = null;
3696
      }
3697
    }
3698
 
471 rajveer 3699
    public void setFieldValue(_Fields field, Object value) {
3700
      switch (field) {
3701
      case ITEM_ID:
3702
        if (value == null) {
3703
          unsetItemId();
3704
        } else {
3705
          setItemId((Long)value);
3706
        }
3707
        break;
3708
 
3709
      case DESTINATION_PIN:
3710
        if (value == null) {
3711
          unsetDestination_pin();
3712
        } else {
3713
          setDestination_pin((String)value);
3714
        }
3715
        break;
3716
 
4630 mandeep.dh 3717
      case TYPE:
3718
        if (value == null) {
3719
          unsetType();
3720
        } else {
3721
          setType((DeliveryType)value);
3722
        }
3723
        break;
3724
 
471 rajveer 3725
      }
3726
    }
3727
 
3728
    public Object getFieldValue(_Fields field) {
3729
      switch (field) {
3730
      case ITEM_ID:
3430 rajveer 3731
        return Long.valueOf(getItemId());
471 rajveer 3732
 
3733
      case DESTINATION_PIN:
3734
        return getDestination_pin();
3735
 
4630 mandeep.dh 3736
      case TYPE:
3737
        return getType();
3738
 
471 rajveer 3739
      }
3740
      throw new IllegalStateException();
3741
    }
3742
 
3430 rajveer 3743
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3744
    public boolean isSet(_Fields field) {
3745
      if (field == null) {
3746
        throw new IllegalArgumentException();
3747
      }
471 rajveer 3748
 
3749
      switch (field) {
3750
      case ITEM_ID:
3751
        return isSetItemId();
3752
      case DESTINATION_PIN:
3753
        return isSetDestination_pin();
4630 mandeep.dh 3754
      case TYPE:
3755
        return isSetType();
471 rajveer 3756
      }
3757
      throw new IllegalStateException();
3758
    }
3759
 
3760
    @Override
3761
    public boolean equals(Object that) {
3762
      if (that == null)
3763
        return false;
3764
      if (that instanceof getLogisticsEstimation_args)
3765
        return this.equals((getLogisticsEstimation_args)that);
3766
      return false;
3767
    }
3768
 
3769
    public boolean equals(getLogisticsEstimation_args that) {
3770
      if (that == null)
3771
        return false;
3772
 
3773
      boolean this_present_itemId = true;
3774
      boolean that_present_itemId = true;
3775
      if (this_present_itemId || that_present_itemId) {
3776
        if (!(this_present_itemId && that_present_itemId))
3777
          return false;
3778
        if (this.itemId != that.itemId)
3779
          return false;
3780
      }
3781
 
3782
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3783
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3784
      if (this_present_destination_pin || that_present_destination_pin) {
3785
        if (!(this_present_destination_pin && that_present_destination_pin))
3786
          return false;
3787
        if (!this.destination_pin.equals(that.destination_pin))
3788
          return false;
3789
      }
3790
 
4630 mandeep.dh 3791
      boolean this_present_type = true && this.isSetType();
3792
      boolean that_present_type = true && that.isSetType();
3793
      if (this_present_type || that_present_type) {
3794
        if (!(this_present_type && that_present_type))
3795
          return false;
3796
        if (!this.type.equals(that.type))
3797
          return false;
3798
      }
3799
 
471 rajveer 3800
      return true;
3801
    }
3802
 
3803
    @Override
3804
    public int hashCode() {
3805
      return 0;
3806
    }
3807
 
3808
    public int compareTo(getLogisticsEstimation_args other) {
3809
      if (!getClass().equals(other.getClass())) {
3810
        return getClass().getName().compareTo(other.getClass().getName());
3811
      }
3812
 
3813
      int lastComparison = 0;
3814
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3815
 
3430 rajveer 3816
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3817
      if (lastComparison != 0) {
3818
        return lastComparison;
3819
      }
3430 rajveer 3820
      if (isSetItemId()) {
3821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3822
        if (lastComparison != 0) {
3823
          return lastComparison;
3824
        }
471 rajveer 3825
      }
3430 rajveer 3826
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3827
      if (lastComparison != 0) {
3828
        return lastComparison;
3829
      }
3430 rajveer 3830
      if (isSetDestination_pin()) {
3831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3832
        if (lastComparison != 0) {
3833
          return lastComparison;
3834
        }
471 rajveer 3835
      }
4630 mandeep.dh 3836
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3837
      if (lastComparison != 0) {
3838
        return lastComparison;
3839
      }
3840
      if (isSetType()) {
3841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3842
        if (lastComparison != 0) {
3843
          return lastComparison;
3844
        }
3845
      }
471 rajveer 3846
      return 0;
3847
    }
3848
 
3430 rajveer 3849
    public _Fields fieldForId(int fieldId) {
3850
      return _Fields.findByThriftId(fieldId);
3851
    }
3852
 
3853
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3854
      org.apache.thrift.protocol.TField field;
471 rajveer 3855
      iprot.readStructBegin();
3856
      while (true)
3857
      {
3858
        field = iprot.readFieldBegin();
3430 rajveer 3859
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3860
          break;
3861
        }
3430 rajveer 3862
        switch (field.id) {
3863
          case 1: // ITEM_ID
3864
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3865
              this.itemId = iprot.readI64();
3866
              setItemIdIsSet(true);
3867
            } else { 
3868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3869
            }
3870
            break;
3871
          case 2: // DESTINATION_PIN
3872
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3873
              this.destination_pin = iprot.readString();
3874
            } else { 
3875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3876
            }
3877
            break;
4630 mandeep.dh 3878
          case 3: // TYPE
3879
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3880
              this.type = DeliveryType.findByValue(iprot.readI32());
3881
            } else { 
3882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3883
            }
3884
            break;
3430 rajveer 3885
          default:
3886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3887
        }
3430 rajveer 3888
        iprot.readFieldEnd();
471 rajveer 3889
      }
3890
      iprot.readStructEnd();
3891
      validate();
3892
    }
3893
 
3430 rajveer 3894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3895
      validate();
3896
 
3897
      oprot.writeStructBegin(STRUCT_DESC);
3898
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3899
      oprot.writeI64(this.itemId);
3900
      oprot.writeFieldEnd();
3901
      if (this.destination_pin != null) {
3902
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3903
        oprot.writeString(this.destination_pin);
3904
        oprot.writeFieldEnd();
3905
      }
4630 mandeep.dh 3906
      if (this.type != null) {
3907
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3908
        oprot.writeI32(this.type.getValue());
3909
        oprot.writeFieldEnd();
3910
      }
471 rajveer 3911
      oprot.writeFieldStop();
3912
      oprot.writeStructEnd();
3913
    }
3914
 
3915
    @Override
3916
    public String toString() {
3917
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3918
      boolean first = true;
3919
 
3920
      sb.append("itemId:");
3921
      sb.append(this.itemId);
3922
      first = false;
3923
      if (!first) sb.append(", ");
3924
      sb.append("destination_pin:");
3925
      if (this.destination_pin == null) {
3926
        sb.append("null");
3927
      } else {
3928
        sb.append(this.destination_pin);
3929
      }
3930
      first = false;
4630 mandeep.dh 3931
      if (!first) sb.append(", ");
3932
      sb.append("type:");
3933
      if (this.type == null) {
3934
        sb.append("null");
3935
      } else {
3936
        sb.append(this.type);
3937
      }
3938
      first = false;
471 rajveer 3939
      sb.append(")");
3940
      return sb.toString();
3941
    }
3942
 
3430 rajveer 3943
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3944
      // check for required fields
3945
    }
3946
 
3430 rajveer 3947
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3948
      try {
3949
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3950
      } catch (org.apache.thrift.TException te) {
3951
        throw new java.io.IOException(te);
3952
      }
3953
    }
3954
 
3955
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3956
      try {
3957
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3958
      } catch (org.apache.thrift.TException te) {
3959
        throw new java.io.IOException(te);
3960
      }
3961
    }
3962
 
471 rajveer 3963
  }
3964
 
3430 rajveer 3965
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3966
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3967
 
3430 rajveer 3968
    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);
3969
    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 3970
 
3430 rajveer 3971
    private LogisticsInfo success; // required
3972
    private LogisticsServiceException se; // required
471 rajveer 3973
 
3974
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3975
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3976
      SUCCESS((short)0, "success"),
3977
      SE((short)1, "se");
3978
 
3979
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3980
 
3981
      static {
3982
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3983
          byName.put(field.getFieldName(), field);
3984
        }
3985
      }
3986
 
3987
      /**
3988
       * Find the _Fields constant that matches fieldId, or null if its not found.
3989
       */
3990
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3991
        switch(fieldId) {
3992
          case 0: // SUCCESS
3993
            return SUCCESS;
3994
          case 1: // SE
3995
            return SE;
3996
          default:
3997
            return null;
3998
        }
471 rajveer 3999
      }
4000
 
4001
      /**
4002
       * Find the _Fields constant that matches fieldId, throwing an exception
4003
       * if it is not found.
4004
       */
4005
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4006
        _Fields fields = findByThriftId(fieldId);
4007
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4008
        return fields;
4009
      }
4010
 
4011
      /**
4012
       * Find the _Fields constant that matches name, or null if its not found.
4013
       */
4014
      public static _Fields findByName(String name) {
4015
        return byName.get(name);
4016
      }
4017
 
4018
      private final short _thriftId;
4019
      private final String _fieldName;
4020
 
4021
      _Fields(short thriftId, String fieldName) {
4022
        _thriftId = thriftId;
4023
        _fieldName = fieldName;
4024
      }
4025
 
4026
      public short getThriftFieldId() {
4027
        return _thriftId;
4028
      }
4029
 
4030
      public String getFieldName() {
4031
        return _fieldName;
4032
      }
4033
    }
4034
 
4035
    // isset id assignments
4036
 
3430 rajveer 4037
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4038
    static {
3430 rajveer 4039
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4040
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4041
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4042
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4046
    }
4047
 
4048
    public getLogisticsEstimation_result() {
4049
    }
4050
 
4051
    public getLogisticsEstimation_result(
648 chandransh 4052
      LogisticsInfo success,
471 rajveer 4053
      LogisticsServiceException se)
4054
    {
4055
      this();
4056
      this.success = success;
4057
      this.se = se;
4058
    }
4059
 
4060
    /**
4061
     * Performs a deep copy on <i>other</i>.
4062
     */
4063
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4064
      if (other.isSetSuccess()) {
648 chandransh 4065
        this.success = new LogisticsInfo(other.success);
471 rajveer 4066
      }
4067
      if (other.isSetSe()) {
4068
        this.se = new LogisticsServiceException(other.se);
4069
      }
4070
    }
4071
 
4072
    public getLogisticsEstimation_result deepCopy() {
4073
      return new getLogisticsEstimation_result(this);
4074
    }
4075
 
3430 rajveer 4076
    @Override
4077
    public void clear() {
4078
      this.success = null;
4079
      this.se = null;
471 rajveer 4080
    }
4081
 
648 chandransh 4082
    public LogisticsInfo getSuccess() {
471 rajveer 4083
      return this.success;
4084
    }
4085
 
3430 rajveer 4086
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4087
      this.success = success;
4088
    }
4089
 
4090
    public void unsetSuccess() {
4091
      this.success = null;
4092
    }
4093
 
3430 rajveer 4094
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4095
    public boolean isSetSuccess() {
4096
      return this.success != null;
4097
    }
4098
 
4099
    public void setSuccessIsSet(boolean value) {
4100
      if (!value) {
4101
        this.success = null;
4102
      }
4103
    }
4104
 
4105
    public LogisticsServiceException getSe() {
4106
      return this.se;
4107
    }
4108
 
3430 rajveer 4109
    public void setSe(LogisticsServiceException se) {
471 rajveer 4110
      this.se = se;
4111
    }
4112
 
4113
    public void unsetSe() {
4114
      this.se = null;
4115
    }
4116
 
3430 rajveer 4117
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4118
    public boolean isSetSe() {
4119
      return this.se != null;
4120
    }
4121
 
4122
    public void setSeIsSet(boolean value) {
4123
      if (!value) {
4124
        this.se = null;
4125
      }
4126
    }
4127
 
4128
    public void setFieldValue(_Fields field, Object value) {
4129
      switch (field) {
4130
      case SUCCESS:
4131
        if (value == null) {
4132
          unsetSuccess();
4133
        } else {
648 chandransh 4134
          setSuccess((LogisticsInfo)value);
471 rajveer 4135
        }
4136
        break;
4137
 
4138
      case SE:
4139
        if (value == null) {
4140
          unsetSe();
4141
        } else {
4142
          setSe((LogisticsServiceException)value);
4143
        }
4144
        break;
4145
 
4146
      }
4147
    }
4148
 
4149
    public Object getFieldValue(_Fields field) {
4150
      switch (field) {
4151
      case SUCCESS:
4152
        return getSuccess();
4153
 
4154
      case SE:
4155
        return getSe();
4156
 
4157
      }
4158
      throw new IllegalStateException();
4159
    }
4160
 
3430 rajveer 4161
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4162
    public boolean isSet(_Fields field) {
4163
      if (field == null) {
4164
        throw new IllegalArgumentException();
4165
      }
471 rajveer 4166
 
4167
      switch (field) {
4168
      case SUCCESS:
4169
        return isSetSuccess();
4170
      case SE:
4171
        return isSetSe();
4172
      }
4173
      throw new IllegalStateException();
4174
    }
4175
 
4176
    @Override
4177
    public boolean equals(Object that) {
4178
      if (that == null)
4179
        return false;
4180
      if (that instanceof getLogisticsEstimation_result)
4181
        return this.equals((getLogisticsEstimation_result)that);
4182
      return false;
4183
    }
4184
 
4185
    public boolean equals(getLogisticsEstimation_result that) {
4186
      if (that == null)
4187
        return false;
4188
 
4189
      boolean this_present_success = true && this.isSetSuccess();
4190
      boolean that_present_success = true && that.isSetSuccess();
4191
      if (this_present_success || that_present_success) {
4192
        if (!(this_present_success && that_present_success))
4193
          return false;
4194
        if (!this.success.equals(that.success))
4195
          return false;
4196
      }
4197
 
4198
      boolean this_present_se = true && this.isSetSe();
4199
      boolean that_present_se = true && that.isSetSe();
4200
      if (this_present_se || that_present_se) {
4201
        if (!(this_present_se && that_present_se))
4202
          return false;
4203
        if (!this.se.equals(that.se))
4204
          return false;
4205
      }
4206
 
4207
      return true;
4208
    }
4209
 
4210
    @Override
4211
    public int hashCode() {
4212
      return 0;
4213
    }
4214
 
4215
    public int compareTo(getLogisticsEstimation_result other) {
4216
      if (!getClass().equals(other.getClass())) {
4217
        return getClass().getName().compareTo(other.getClass().getName());
4218
      }
4219
 
4220
      int lastComparison = 0;
4221
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4222
 
3430 rajveer 4223
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4224
      if (lastComparison != 0) {
4225
        return lastComparison;
4226
      }
3430 rajveer 4227
      if (isSetSuccess()) {
4228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4229
        if (lastComparison != 0) {
4230
          return lastComparison;
4231
        }
471 rajveer 4232
      }
3430 rajveer 4233
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4234
      if (lastComparison != 0) {
4235
        return lastComparison;
4236
      }
3430 rajveer 4237
      if (isSetSe()) {
4238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4239
        if (lastComparison != 0) {
4240
          return lastComparison;
4241
        }
471 rajveer 4242
      }
4243
      return 0;
4244
    }
4245
 
3430 rajveer 4246
    public _Fields fieldForId(int fieldId) {
4247
      return _Fields.findByThriftId(fieldId);
4248
    }
4249
 
4250
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4251
      org.apache.thrift.protocol.TField field;
471 rajveer 4252
      iprot.readStructBegin();
4253
      while (true)
4254
      {
4255
        field = iprot.readFieldBegin();
3430 rajveer 4256
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4257
          break;
4258
        }
3430 rajveer 4259
        switch (field.id) {
4260
          case 0: // SUCCESS
4261
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4262
              this.success = new LogisticsInfo();
4263
              this.success.read(iprot);
4264
            } else { 
4265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4266
            }
4267
            break;
4268
          case 1: // SE
4269
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4270
              this.se = new LogisticsServiceException();
4271
              this.se.read(iprot);
4272
            } else { 
4273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4274
            }
4275
            break;
4276
          default:
4277
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4278
        }
3430 rajveer 4279
        iprot.readFieldEnd();
471 rajveer 4280
      }
4281
      iprot.readStructEnd();
4282
      validate();
4283
    }
4284
 
3430 rajveer 4285
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4286
      oprot.writeStructBegin(STRUCT_DESC);
4287
 
4288
      if (this.isSetSuccess()) {
4289
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4290
        this.success.write(oprot);
4291
        oprot.writeFieldEnd();
4292
      } else if (this.isSetSe()) {
4293
        oprot.writeFieldBegin(SE_FIELD_DESC);
4294
        this.se.write(oprot);
4295
        oprot.writeFieldEnd();
4296
      }
4297
      oprot.writeFieldStop();
4298
      oprot.writeStructEnd();
4299
    }
4300
 
4301
    @Override
4302
    public String toString() {
4303
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4304
      boolean first = true;
4305
 
4306
      sb.append("success:");
4307
      if (this.success == null) {
4308
        sb.append("null");
4309
      } else {
4310
        sb.append(this.success);
4311
      }
4312
      first = false;
4313
      if (!first) sb.append(", ");
4314
      sb.append("se:");
4315
      if (this.se == null) {
4316
        sb.append("null");
4317
      } else {
4318
        sb.append(this.se);
4319
      }
4320
      first = false;
4321
      sb.append(")");
4322
      return sb.toString();
4323
    }
4324
 
3430 rajveer 4325
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4326
      // check for required fields
4327
    }
4328
 
3430 rajveer 4329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4330
      try {
4331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4332
      } catch (org.apache.thrift.TException te) {
4333
        throw new java.io.IOException(te);
4334
      }
4335
    }
4336
 
4337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4338
      try {
4339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4340
      } catch (org.apache.thrift.TException te) {
4341
        throw new java.io.IOException(te);
4342
      }
4343
    }
4344
 
471 rajveer 4345
  }
4346
 
7256 rajveer 4347
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4349
 
4350
    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);
4351
    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);
4352
    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);
4353
 
4354
    private long itemId; // required
4355
    private String destination_pin; // required
4356
    private DeliveryType type; // required
4357
 
4358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4360
      ITEM_ID((short)1, "itemId"),
4361
      DESTINATION_PIN((short)2, "destination_pin"),
4362
      /**
4363
       * 
4364
       * @see DeliveryType
4365
       */
4366
      TYPE((short)3, "type");
4367
 
4368
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4369
 
4370
      static {
4371
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4372
          byName.put(field.getFieldName(), field);
4373
        }
4374
      }
4375
 
4376
      /**
4377
       * Find the _Fields constant that matches fieldId, or null if its not found.
4378
       */
4379
      public static _Fields findByThriftId(int fieldId) {
4380
        switch(fieldId) {
4381
          case 1: // ITEM_ID
4382
            return ITEM_ID;
4383
          case 2: // DESTINATION_PIN
4384
            return DESTINATION_PIN;
4385
          case 3: // TYPE
4386
            return TYPE;
4387
          default:
4388
            return null;
4389
        }
4390
      }
4391
 
4392
      /**
4393
       * Find the _Fields constant that matches fieldId, throwing an exception
4394
       * if it is not found.
4395
       */
4396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4397
        _Fields fields = findByThriftId(fieldId);
4398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4399
        return fields;
4400
      }
4401
 
4402
      /**
4403
       * Find the _Fields constant that matches name, or null if its not found.
4404
       */
4405
      public static _Fields findByName(String name) {
4406
        return byName.get(name);
4407
      }
4408
 
4409
      private final short _thriftId;
4410
      private final String _fieldName;
4411
 
4412
      _Fields(short thriftId, String fieldName) {
4413
        _thriftId = thriftId;
4414
        _fieldName = fieldName;
4415
      }
4416
 
4417
      public short getThriftFieldId() {
4418
        return _thriftId;
4419
      }
4420
 
4421
      public String getFieldName() {
4422
        return _fieldName;
4423
      }
4424
    }
4425
 
4426
    // isset id assignments
4427
    private static final int __ITEMID_ISSET_ID = 0;
4428
    private BitSet __isset_bit_vector = new BitSet(1);
4429
 
4430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4431
    static {
4432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4433
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4435
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4437
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4438
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4441
    }
4442
 
4443
    public getLogisticsEstimationForStore_args() {
4444
    }
4445
 
4446
    public getLogisticsEstimationForStore_args(
4447
      long itemId,
4448
      String destination_pin,
4449
      DeliveryType type)
4450
    {
4451
      this();
4452
      this.itemId = itemId;
4453
      setItemIdIsSet(true);
4454
      this.destination_pin = destination_pin;
4455
      this.type = type;
4456
    }
4457
 
4458
    /**
4459
     * Performs a deep copy on <i>other</i>.
4460
     */
4461
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4462
      __isset_bit_vector.clear();
4463
      __isset_bit_vector.or(other.__isset_bit_vector);
4464
      this.itemId = other.itemId;
4465
      if (other.isSetDestination_pin()) {
4466
        this.destination_pin = other.destination_pin;
4467
      }
4468
      if (other.isSetType()) {
4469
        this.type = other.type;
4470
      }
4471
    }
4472
 
4473
    public getLogisticsEstimationForStore_args deepCopy() {
4474
      return new getLogisticsEstimationForStore_args(this);
4475
    }
4476
 
4477
    @Override
4478
    public void clear() {
4479
      setItemIdIsSet(false);
4480
      this.itemId = 0;
4481
      this.destination_pin = null;
4482
      this.type = null;
4483
    }
4484
 
4485
    public long getItemId() {
4486
      return this.itemId;
4487
    }
4488
 
4489
    public void setItemId(long itemId) {
4490
      this.itemId = itemId;
4491
      setItemIdIsSet(true);
4492
    }
4493
 
4494
    public void unsetItemId() {
4495
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4496
    }
4497
 
4498
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4499
    public boolean isSetItemId() {
4500
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4501
    }
4502
 
4503
    public void setItemIdIsSet(boolean value) {
4504
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4505
    }
4506
 
4507
    public String getDestination_pin() {
4508
      return this.destination_pin;
4509
    }
4510
 
4511
    public void setDestination_pin(String destination_pin) {
4512
      this.destination_pin = destination_pin;
4513
    }
4514
 
4515
    public void unsetDestination_pin() {
4516
      this.destination_pin = null;
4517
    }
4518
 
4519
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4520
    public boolean isSetDestination_pin() {
4521
      return this.destination_pin != null;
4522
    }
4523
 
4524
    public void setDestination_pinIsSet(boolean value) {
4525
      if (!value) {
4526
        this.destination_pin = null;
4527
      }
4528
    }
4529
 
4530
    /**
4531
     * 
4532
     * @see DeliveryType
4533
     */
4534
    public DeliveryType getType() {
4535
      return this.type;
4536
    }
4537
 
4538
    /**
4539
     * 
4540
     * @see DeliveryType
4541
     */
4542
    public void setType(DeliveryType type) {
4543
      this.type = type;
4544
    }
4545
 
4546
    public void unsetType() {
4547
      this.type = null;
4548
    }
4549
 
4550
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4551
    public boolean isSetType() {
4552
      return this.type != null;
4553
    }
4554
 
4555
    public void setTypeIsSet(boolean value) {
4556
      if (!value) {
4557
        this.type = null;
4558
      }
4559
    }
4560
 
4561
    public void setFieldValue(_Fields field, Object value) {
4562
      switch (field) {
4563
      case ITEM_ID:
4564
        if (value == null) {
4565
          unsetItemId();
4566
        } else {
4567
          setItemId((Long)value);
4568
        }
4569
        break;
4570
 
4571
      case DESTINATION_PIN:
4572
        if (value == null) {
4573
          unsetDestination_pin();
4574
        } else {
4575
          setDestination_pin((String)value);
4576
        }
4577
        break;
4578
 
4579
      case TYPE:
4580
        if (value == null) {
4581
          unsetType();
4582
        } else {
4583
          setType((DeliveryType)value);
4584
        }
4585
        break;
4586
 
4587
      }
4588
    }
4589
 
4590
    public Object getFieldValue(_Fields field) {
4591
      switch (field) {
4592
      case ITEM_ID:
4593
        return Long.valueOf(getItemId());
4594
 
4595
      case DESTINATION_PIN:
4596
        return getDestination_pin();
4597
 
4598
      case TYPE:
4599
        return getType();
4600
 
4601
      }
4602
      throw new IllegalStateException();
4603
    }
4604
 
4605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4606
    public boolean isSet(_Fields field) {
4607
      if (field == null) {
4608
        throw new IllegalArgumentException();
4609
      }
4610
 
4611
      switch (field) {
4612
      case ITEM_ID:
4613
        return isSetItemId();
4614
      case DESTINATION_PIN:
4615
        return isSetDestination_pin();
4616
      case TYPE:
4617
        return isSetType();
4618
      }
4619
      throw new IllegalStateException();
4620
    }
4621
 
4622
    @Override
4623
    public boolean equals(Object that) {
4624
      if (that == null)
4625
        return false;
4626
      if (that instanceof getLogisticsEstimationForStore_args)
4627
        return this.equals((getLogisticsEstimationForStore_args)that);
4628
      return false;
4629
    }
4630
 
4631
    public boolean equals(getLogisticsEstimationForStore_args that) {
4632
      if (that == null)
4633
        return false;
4634
 
4635
      boolean this_present_itemId = true;
4636
      boolean that_present_itemId = true;
4637
      if (this_present_itemId || that_present_itemId) {
4638
        if (!(this_present_itemId && that_present_itemId))
4639
          return false;
4640
        if (this.itemId != that.itemId)
4641
          return false;
4642
      }
4643
 
4644
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4645
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4646
      if (this_present_destination_pin || that_present_destination_pin) {
4647
        if (!(this_present_destination_pin && that_present_destination_pin))
4648
          return false;
4649
        if (!this.destination_pin.equals(that.destination_pin))
4650
          return false;
4651
      }
4652
 
4653
      boolean this_present_type = true && this.isSetType();
4654
      boolean that_present_type = true && that.isSetType();
4655
      if (this_present_type || that_present_type) {
4656
        if (!(this_present_type && that_present_type))
4657
          return false;
4658
        if (!this.type.equals(that.type))
4659
          return false;
4660
      }
4661
 
4662
      return true;
4663
    }
4664
 
4665
    @Override
4666
    public int hashCode() {
4667
      return 0;
4668
    }
4669
 
4670
    public int compareTo(getLogisticsEstimationForStore_args other) {
4671
      if (!getClass().equals(other.getClass())) {
4672
        return getClass().getName().compareTo(other.getClass().getName());
4673
      }
4674
 
4675
      int lastComparison = 0;
4676
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4677
 
4678
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4679
      if (lastComparison != 0) {
4680
        return lastComparison;
4681
      }
4682
      if (isSetItemId()) {
4683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4684
        if (lastComparison != 0) {
4685
          return lastComparison;
4686
        }
4687
      }
4688
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4689
      if (lastComparison != 0) {
4690
        return lastComparison;
4691
      }
4692
      if (isSetDestination_pin()) {
4693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4694
        if (lastComparison != 0) {
4695
          return lastComparison;
4696
        }
4697
      }
4698
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4699
      if (lastComparison != 0) {
4700
        return lastComparison;
4701
      }
4702
      if (isSetType()) {
4703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4704
        if (lastComparison != 0) {
4705
          return lastComparison;
4706
        }
4707
      }
4708
      return 0;
4709
    }
4710
 
4711
    public _Fields fieldForId(int fieldId) {
4712
      return _Fields.findByThriftId(fieldId);
4713
    }
4714
 
4715
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4716
      org.apache.thrift.protocol.TField field;
4717
      iprot.readStructBegin();
4718
      while (true)
4719
      {
4720
        field = iprot.readFieldBegin();
4721
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4722
          break;
4723
        }
4724
        switch (field.id) {
4725
          case 1: // ITEM_ID
4726
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4727
              this.itemId = iprot.readI64();
4728
              setItemIdIsSet(true);
4729
            } else { 
4730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4731
            }
4732
            break;
4733
          case 2: // DESTINATION_PIN
4734
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4735
              this.destination_pin = iprot.readString();
4736
            } else { 
4737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4738
            }
4739
            break;
4740
          case 3: // TYPE
4741
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4742
              this.type = DeliveryType.findByValue(iprot.readI32());
4743
            } else { 
4744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4745
            }
4746
            break;
4747
          default:
4748
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4749
        }
4750
        iprot.readFieldEnd();
4751
      }
4752
      iprot.readStructEnd();
4753
      validate();
4754
    }
4755
 
4756
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4757
      validate();
4758
 
4759
      oprot.writeStructBegin(STRUCT_DESC);
4760
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4761
      oprot.writeI64(this.itemId);
4762
      oprot.writeFieldEnd();
4763
      if (this.destination_pin != null) {
4764
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4765
        oprot.writeString(this.destination_pin);
4766
        oprot.writeFieldEnd();
4767
      }
4768
      if (this.type != null) {
4769
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4770
        oprot.writeI32(this.type.getValue());
4771
        oprot.writeFieldEnd();
4772
      }
4773
      oprot.writeFieldStop();
4774
      oprot.writeStructEnd();
4775
    }
4776
 
4777
    @Override
4778
    public String toString() {
4779
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4780
      boolean first = true;
4781
 
4782
      sb.append("itemId:");
4783
      sb.append(this.itemId);
4784
      first = false;
4785
      if (!first) sb.append(", ");
4786
      sb.append("destination_pin:");
4787
      if (this.destination_pin == null) {
4788
        sb.append("null");
4789
      } else {
4790
        sb.append(this.destination_pin);
4791
      }
4792
      first = false;
4793
      if (!first) sb.append(", ");
4794
      sb.append("type:");
4795
      if (this.type == null) {
4796
        sb.append("null");
4797
      } else {
4798
        sb.append(this.type);
4799
      }
4800
      first = false;
4801
      sb.append(")");
4802
      return sb.toString();
4803
    }
4804
 
4805
    public void validate() throws org.apache.thrift.TException {
4806
      // check for required fields
4807
    }
4808
 
4809
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4810
      try {
4811
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4812
      } catch (org.apache.thrift.TException te) {
4813
        throw new java.io.IOException(te);
4814
      }
4815
    }
4816
 
4817
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4818
      try {
4819
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4820
        __isset_bit_vector = new BitSet(1);
4821
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4822
      } catch (org.apache.thrift.TException te) {
4823
        throw new java.io.IOException(te);
4824
      }
4825
    }
4826
 
4827
  }
4828
 
4829
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4830
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4831
 
4832
    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);
4833
    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);
4834
 
4835
    private LogisticsInfo success; // required
4836
    private LogisticsServiceException se; // required
4837
 
4838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4839
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4840
      SUCCESS((short)0, "success"),
4841
      SE((short)1, "se");
4842
 
4843
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4844
 
4845
      static {
4846
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4847
          byName.put(field.getFieldName(), field);
4848
        }
4849
      }
4850
 
4851
      /**
4852
       * Find the _Fields constant that matches fieldId, or null if its not found.
4853
       */
4854
      public static _Fields findByThriftId(int fieldId) {
4855
        switch(fieldId) {
4856
          case 0: // SUCCESS
4857
            return SUCCESS;
4858
          case 1: // SE
4859
            return SE;
4860
          default:
4861
            return null;
4862
        }
4863
      }
4864
 
4865
      /**
4866
       * Find the _Fields constant that matches fieldId, throwing an exception
4867
       * if it is not found.
4868
       */
4869
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4870
        _Fields fields = findByThriftId(fieldId);
4871
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4872
        return fields;
4873
      }
4874
 
4875
      /**
4876
       * Find the _Fields constant that matches name, or null if its not found.
4877
       */
4878
      public static _Fields findByName(String name) {
4879
        return byName.get(name);
4880
      }
4881
 
4882
      private final short _thriftId;
4883
      private final String _fieldName;
4884
 
4885
      _Fields(short thriftId, String fieldName) {
4886
        _thriftId = thriftId;
4887
        _fieldName = fieldName;
4888
      }
4889
 
4890
      public short getThriftFieldId() {
4891
        return _thriftId;
4892
      }
4893
 
4894
      public String getFieldName() {
4895
        return _fieldName;
4896
      }
4897
    }
4898
 
4899
    // isset id assignments
4900
 
4901
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4902
    static {
4903
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4904
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4905
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4906
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4908
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4909
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4910
    }
4911
 
4912
    public getLogisticsEstimationForStore_result() {
4913
    }
4914
 
4915
    public getLogisticsEstimationForStore_result(
4916
      LogisticsInfo success,
4917
      LogisticsServiceException se)
4918
    {
4919
      this();
4920
      this.success = success;
4921
      this.se = se;
4922
    }
4923
 
4924
    /**
4925
     * Performs a deep copy on <i>other</i>.
4926
     */
4927
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4928
      if (other.isSetSuccess()) {
4929
        this.success = new LogisticsInfo(other.success);
4930
      }
4931
      if (other.isSetSe()) {
4932
        this.se = new LogisticsServiceException(other.se);
4933
      }
4934
    }
4935
 
4936
    public getLogisticsEstimationForStore_result deepCopy() {
4937
      return new getLogisticsEstimationForStore_result(this);
4938
    }
4939
 
4940
    @Override
4941
    public void clear() {
4942
      this.success = null;
4943
      this.se = null;
4944
    }
4945
 
4946
    public LogisticsInfo getSuccess() {
4947
      return this.success;
4948
    }
4949
 
4950
    public void setSuccess(LogisticsInfo success) {
4951
      this.success = success;
4952
    }
4953
 
4954
    public void unsetSuccess() {
4955
      this.success = null;
4956
    }
4957
 
4958
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4959
    public boolean isSetSuccess() {
4960
      return this.success != null;
4961
    }
4962
 
4963
    public void setSuccessIsSet(boolean value) {
4964
      if (!value) {
4965
        this.success = null;
4966
      }
4967
    }
4968
 
4969
    public LogisticsServiceException getSe() {
4970
      return this.se;
4971
    }
4972
 
4973
    public void setSe(LogisticsServiceException se) {
4974
      this.se = se;
4975
    }
4976
 
4977
    public void unsetSe() {
4978
      this.se = null;
4979
    }
4980
 
4981
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4982
    public boolean isSetSe() {
4983
      return this.se != null;
4984
    }
4985
 
4986
    public void setSeIsSet(boolean value) {
4987
      if (!value) {
4988
        this.se = null;
4989
      }
4990
    }
4991
 
4992
    public void setFieldValue(_Fields field, Object value) {
4993
      switch (field) {
4994
      case SUCCESS:
4995
        if (value == null) {
4996
          unsetSuccess();
4997
        } else {
4998
          setSuccess((LogisticsInfo)value);
4999
        }
5000
        break;
5001
 
5002
      case SE:
5003
        if (value == null) {
5004
          unsetSe();
5005
        } else {
5006
          setSe((LogisticsServiceException)value);
5007
        }
5008
        break;
5009
 
5010
      }
5011
    }
5012
 
5013
    public Object getFieldValue(_Fields field) {
5014
      switch (field) {
5015
      case SUCCESS:
5016
        return getSuccess();
5017
 
5018
      case SE:
5019
        return getSe();
5020
 
5021
      }
5022
      throw new IllegalStateException();
5023
    }
5024
 
5025
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5026
    public boolean isSet(_Fields field) {
5027
      if (field == null) {
5028
        throw new IllegalArgumentException();
5029
      }
5030
 
5031
      switch (field) {
5032
      case SUCCESS:
5033
        return isSetSuccess();
5034
      case SE:
5035
        return isSetSe();
5036
      }
5037
      throw new IllegalStateException();
5038
    }
5039
 
5040
    @Override
5041
    public boolean equals(Object that) {
5042
      if (that == null)
5043
        return false;
5044
      if (that instanceof getLogisticsEstimationForStore_result)
5045
        return this.equals((getLogisticsEstimationForStore_result)that);
5046
      return false;
5047
    }
5048
 
5049
    public boolean equals(getLogisticsEstimationForStore_result that) {
5050
      if (that == null)
5051
        return false;
5052
 
5053
      boolean this_present_success = true && this.isSetSuccess();
5054
      boolean that_present_success = true && that.isSetSuccess();
5055
      if (this_present_success || that_present_success) {
5056
        if (!(this_present_success && that_present_success))
5057
          return false;
5058
        if (!this.success.equals(that.success))
5059
          return false;
5060
      }
5061
 
5062
      boolean this_present_se = true && this.isSetSe();
5063
      boolean that_present_se = true && that.isSetSe();
5064
      if (this_present_se || that_present_se) {
5065
        if (!(this_present_se && that_present_se))
5066
          return false;
5067
        if (!this.se.equals(that.se))
5068
          return false;
5069
      }
5070
 
5071
      return true;
5072
    }
5073
 
5074
    @Override
5075
    public int hashCode() {
5076
      return 0;
5077
    }
5078
 
5079
    public int compareTo(getLogisticsEstimationForStore_result other) {
5080
      if (!getClass().equals(other.getClass())) {
5081
        return getClass().getName().compareTo(other.getClass().getName());
5082
      }
5083
 
5084
      int lastComparison = 0;
5085
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5086
 
5087
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5088
      if (lastComparison != 0) {
5089
        return lastComparison;
5090
      }
5091
      if (isSetSuccess()) {
5092
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5093
        if (lastComparison != 0) {
5094
          return lastComparison;
5095
        }
5096
      }
5097
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5098
      if (lastComparison != 0) {
5099
        return lastComparison;
5100
      }
5101
      if (isSetSe()) {
5102
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5103
        if (lastComparison != 0) {
5104
          return lastComparison;
5105
        }
5106
      }
5107
      return 0;
5108
    }
5109
 
5110
    public _Fields fieldForId(int fieldId) {
5111
      return _Fields.findByThriftId(fieldId);
5112
    }
5113
 
5114
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5115
      org.apache.thrift.protocol.TField field;
5116
      iprot.readStructBegin();
5117
      while (true)
5118
      {
5119
        field = iprot.readFieldBegin();
5120
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5121
          break;
5122
        }
5123
        switch (field.id) {
5124
          case 0: // SUCCESS
5125
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5126
              this.success = new LogisticsInfo();
5127
              this.success.read(iprot);
5128
            } else { 
5129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5130
            }
5131
            break;
5132
          case 1: // SE
5133
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5134
              this.se = new LogisticsServiceException();
5135
              this.se.read(iprot);
5136
            } else { 
5137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5138
            }
5139
            break;
5140
          default:
5141
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5142
        }
5143
        iprot.readFieldEnd();
5144
      }
5145
      iprot.readStructEnd();
5146
      validate();
5147
    }
5148
 
5149
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5150
      oprot.writeStructBegin(STRUCT_DESC);
5151
 
5152
      if (this.isSetSuccess()) {
5153
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5154
        this.success.write(oprot);
5155
        oprot.writeFieldEnd();
5156
      } else if (this.isSetSe()) {
5157
        oprot.writeFieldBegin(SE_FIELD_DESC);
5158
        this.se.write(oprot);
5159
        oprot.writeFieldEnd();
5160
      }
5161
      oprot.writeFieldStop();
5162
      oprot.writeStructEnd();
5163
    }
5164
 
5165
    @Override
5166
    public String toString() {
5167
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5168
      boolean first = true;
5169
 
5170
      sb.append("success:");
5171
      if (this.success == null) {
5172
        sb.append("null");
5173
      } else {
5174
        sb.append(this.success);
5175
      }
5176
      first = false;
5177
      if (!first) sb.append(", ");
5178
      sb.append("se:");
5179
      if (this.se == null) {
5180
        sb.append("null");
5181
      } else {
5182
        sb.append(this.se);
5183
      }
5184
      first = false;
5185
      sb.append(")");
5186
      return sb.toString();
5187
    }
5188
 
5189
    public void validate() throws org.apache.thrift.TException {
5190
      // check for required fields
5191
    }
5192
 
5193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5194
      try {
5195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5196
      } catch (org.apache.thrift.TException te) {
5197
        throw new java.io.IOException(te);
5198
      }
5199
    }
5200
 
5201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5202
      try {
5203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5204
      } catch (org.apache.thrift.TException te) {
5205
        throw new java.io.IOException(te);
5206
      }
5207
    }
5208
 
5209
  }
5210
 
3430 rajveer 5211
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5213
 
3430 rajveer 5214
    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);
5215
    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);
5216
    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 5217
    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 5218
 
3430 rajveer 5219
    private String destination_pincode; // required
5220
    private long item_id; // required
5221
    private DeliveryType type; // required
5766 rajveer 5222
    private PickUpType pickUp; // required
471 rajveer 5223
 
5224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5226
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5227
      ITEM_ID((short)2, "item_id"),
5228
      /**
5229
       * 
5230
       * @see DeliveryType
5231
       */
5766 rajveer 5232
      TYPE((short)3, "type"),
5233
      /**
5234
       * 
5235
       * @see PickUpType
5236
       */
5237
      PICK_UP((short)4, "pickUp");
471 rajveer 5238
 
5239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5240
 
5241
      static {
5242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5243
          byName.put(field.getFieldName(), field);
5244
        }
5245
      }
5246
 
5247
      /**
5248
       * Find the _Fields constant that matches fieldId, or null if its not found.
5249
       */
5250
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5251
        switch(fieldId) {
5252
          case 1: // DESTINATION_PINCODE
5253
            return DESTINATION_PINCODE;
5254
          case 2: // ITEM_ID
5255
            return ITEM_ID;
5256
          case 3: // TYPE
5257
            return TYPE;
5766 rajveer 5258
          case 4: // PICK_UP
5259
            return PICK_UP;
3430 rajveer 5260
          default:
5261
            return null;
5262
        }
471 rajveer 5263
      }
5264
 
5265
      /**
5266
       * Find the _Fields constant that matches fieldId, throwing an exception
5267
       * if it is not found.
5268
       */
5269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5270
        _Fields fields = findByThriftId(fieldId);
5271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5272
        return fields;
5273
      }
5274
 
5275
      /**
5276
       * Find the _Fields constant that matches name, or null if its not found.
5277
       */
5278
      public static _Fields findByName(String name) {
5279
        return byName.get(name);
5280
      }
5281
 
5282
      private final short _thriftId;
5283
      private final String _fieldName;
5284
 
5285
      _Fields(short thriftId, String fieldName) {
5286
        _thriftId = thriftId;
5287
        _fieldName = fieldName;
5288
      }
5289
 
5290
      public short getThriftFieldId() {
5291
        return _thriftId;
5292
      }
5293
 
5294
      public String getFieldName() {
5295
        return _fieldName;
5296
      }
5297
    }
5298
 
5299
    // isset id assignments
715 rajveer 5300
    private static final int __ITEM_ID_ISSET_ID = 0;
5301
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5302
 
3430 rajveer 5303
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5304
    static {
3430 rajveer 5305
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5306
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5308
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5310
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5311
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5312
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5313
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5316
    }
5317
 
648 chandransh 5318
    public getLogisticsInfo_args() {
477 rajveer 5319
    }
5320
 
648 chandransh 5321
    public getLogisticsInfo_args(
5322
      String destination_pincode,
3044 chandransh 5323
      long item_id,
5766 rajveer 5324
      DeliveryType type,
5325
      PickUpType pickUp)
477 rajveer 5326
    {
5327
      this();
648 chandransh 5328
      this.destination_pincode = destination_pincode;
5329
      this.item_id = item_id;
715 rajveer 5330
      setItem_idIsSet(true);
3044 chandransh 5331
      this.type = type;
5766 rajveer 5332
      this.pickUp = pickUp;
477 rajveer 5333
    }
5334
 
5335
    /**
5336
     * Performs a deep copy on <i>other</i>.
5337
     */
648 chandransh 5338
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5339
      __isset_bit_vector.clear();
5340
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5341
      if (other.isSetDestination_pincode()) {
5342
        this.destination_pincode = other.destination_pincode;
477 rajveer 5343
      }
715 rajveer 5344
      this.item_id = other.item_id;
3044 chandransh 5345
      if (other.isSetType()) {
5346
        this.type = other.type;
5347
      }
5766 rajveer 5348
      if (other.isSetPickUp()) {
5349
        this.pickUp = other.pickUp;
5350
      }
477 rajveer 5351
    }
5352
 
648 chandransh 5353
    public getLogisticsInfo_args deepCopy() {
5354
      return new getLogisticsInfo_args(this);
477 rajveer 5355
    }
5356
 
3430 rajveer 5357
    @Override
5358
    public void clear() {
5359
      this.destination_pincode = null;
5360
      setItem_idIsSet(false);
5361
      this.item_id = 0;
5362
      this.type = null;
5766 rajveer 5363
      this.pickUp = null;
477 rajveer 5364
    }
5365
 
648 chandransh 5366
    public String getDestination_pincode() {
5367
      return this.destination_pincode;
477 rajveer 5368
    }
5369
 
3430 rajveer 5370
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5371
      this.destination_pincode = destination_pincode;
477 rajveer 5372
    }
5373
 
648 chandransh 5374
    public void unsetDestination_pincode() {
5375
      this.destination_pincode = null;
477 rajveer 5376
    }
5377
 
3430 rajveer 5378
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5379
    public boolean isSetDestination_pincode() {
5380
      return this.destination_pincode != null;
477 rajveer 5381
    }
5382
 
648 chandransh 5383
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5384
      if (!value) {
648 chandransh 5385
        this.destination_pincode = null;
477 rajveer 5386
      }
5387
    }
5388
 
715 rajveer 5389
    public long getItem_id() {
648 chandransh 5390
      return this.item_id;
477 rajveer 5391
    }
5392
 
3430 rajveer 5393
    public void setItem_id(long item_id) {
648 chandransh 5394
      this.item_id = item_id;
715 rajveer 5395
      setItem_idIsSet(true);
477 rajveer 5396
    }
5397
 
648 chandransh 5398
    public void unsetItem_id() {
715 rajveer 5399
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5400
    }
5401
 
3430 rajveer 5402
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5403
    public boolean isSetItem_id() {
715 rajveer 5404
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5405
    }
5406
 
648 chandransh 5407
    public void setItem_idIsSet(boolean value) {
715 rajveer 5408
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5409
    }
5410
 
3044 chandransh 5411
    /**
5412
     * 
5413
     * @see DeliveryType
5414
     */
5415
    public DeliveryType getType() {
5416
      return this.type;
5417
    }
5418
 
5419
    /**
5420
     * 
5421
     * @see DeliveryType
5422
     */
3430 rajveer 5423
    public void setType(DeliveryType type) {
3044 chandransh 5424
      this.type = type;
5425
    }
5426
 
5427
    public void unsetType() {
5428
      this.type = null;
5429
    }
5430
 
3430 rajveer 5431
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5432
    public boolean isSetType() {
5433
      return this.type != null;
5434
    }
5435
 
5436
    public void setTypeIsSet(boolean value) {
5437
      if (!value) {
5438
        this.type = null;
5439
      }
5440
    }
5441
 
5766 rajveer 5442
    /**
5443
     * 
5444
     * @see PickUpType
5445
     */
5446
    public PickUpType getPickUp() {
5447
      return this.pickUp;
5448
    }
5449
 
5450
    /**
5451
     * 
5452
     * @see PickUpType
5453
     */
5454
    public void setPickUp(PickUpType pickUp) {
5455
      this.pickUp = pickUp;
5456
    }
5457
 
5458
    public void unsetPickUp() {
5459
      this.pickUp = null;
5460
    }
5461
 
5462
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5463
    public boolean isSetPickUp() {
5464
      return this.pickUp != null;
5465
    }
5466
 
5467
    public void setPickUpIsSet(boolean value) {
5468
      if (!value) {
5469
        this.pickUp = null;
5470
      }
5471
    }
5472
 
477 rajveer 5473
    public void setFieldValue(_Fields field, Object value) {
5474
      switch (field) {
648 chandransh 5475
      case DESTINATION_PINCODE:
477 rajveer 5476
        if (value == null) {
648 chandransh 5477
          unsetDestination_pincode();
477 rajveer 5478
        } else {
648 chandransh 5479
          setDestination_pincode((String)value);
477 rajveer 5480
        }
5481
        break;
5482
 
648 chandransh 5483
      case ITEM_ID:
477 rajveer 5484
        if (value == null) {
648 chandransh 5485
          unsetItem_id();
477 rajveer 5486
        } else {
715 rajveer 5487
          setItem_id((Long)value);
477 rajveer 5488
        }
5489
        break;
5490
 
3044 chandransh 5491
      case TYPE:
5492
        if (value == null) {
5493
          unsetType();
5494
        } else {
5495
          setType((DeliveryType)value);
5496
        }
5497
        break;
5498
 
5766 rajveer 5499
      case PICK_UP:
5500
        if (value == null) {
5501
          unsetPickUp();
5502
        } else {
5503
          setPickUp((PickUpType)value);
5504
        }
5505
        break;
5506
 
477 rajveer 5507
      }
5508
    }
5509
 
5510
    public Object getFieldValue(_Fields field) {
5511
      switch (field) {
648 chandransh 5512
      case DESTINATION_PINCODE:
5513
        return getDestination_pincode();
477 rajveer 5514
 
648 chandransh 5515
      case ITEM_ID:
3430 rajveer 5516
        return Long.valueOf(getItem_id());
477 rajveer 5517
 
3044 chandransh 5518
      case TYPE:
5519
        return getType();
5520
 
5766 rajveer 5521
      case PICK_UP:
5522
        return getPickUp();
5523
 
477 rajveer 5524
      }
5525
      throw new IllegalStateException();
5526
    }
5527
 
3430 rajveer 5528
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5529
    public boolean isSet(_Fields field) {
5530
      if (field == null) {
5531
        throw new IllegalArgumentException();
5532
      }
477 rajveer 5533
 
5534
      switch (field) {
648 chandransh 5535
      case DESTINATION_PINCODE:
5536
        return isSetDestination_pincode();
5537
      case ITEM_ID:
5538
        return isSetItem_id();
3044 chandransh 5539
      case TYPE:
5540
        return isSetType();
5766 rajveer 5541
      case PICK_UP:
5542
        return isSetPickUp();
477 rajveer 5543
      }
5544
      throw new IllegalStateException();
5545
    }
5546
 
5547
    @Override
5548
    public boolean equals(Object that) {
5549
      if (that == null)
5550
        return false;
648 chandransh 5551
      if (that instanceof getLogisticsInfo_args)
5552
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5553
      return false;
5554
    }
5555
 
648 chandransh 5556
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5557
      if (that == null)
5558
        return false;
5559
 
648 chandransh 5560
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5561
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5562
      if (this_present_destination_pincode || that_present_destination_pincode) {
5563
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5564
          return false;
648 chandransh 5565
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5566
          return false;
5567
      }
5568
 
715 rajveer 5569
      boolean this_present_item_id = true;
5570
      boolean that_present_item_id = true;
648 chandransh 5571
      if (this_present_item_id || that_present_item_id) {
5572
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5573
          return false;
715 rajveer 5574
        if (this.item_id != that.item_id)
477 rajveer 5575
          return false;
5576
      }
5577
 
3044 chandransh 5578
      boolean this_present_type = true && this.isSetType();
5579
      boolean that_present_type = true && that.isSetType();
5580
      if (this_present_type || that_present_type) {
5581
        if (!(this_present_type && that_present_type))
5582
          return false;
5583
        if (!this.type.equals(that.type))
5584
          return false;
5585
      }
5586
 
5766 rajveer 5587
      boolean this_present_pickUp = true && this.isSetPickUp();
5588
      boolean that_present_pickUp = true && that.isSetPickUp();
5589
      if (this_present_pickUp || that_present_pickUp) {
5590
        if (!(this_present_pickUp && that_present_pickUp))
5591
          return false;
5592
        if (!this.pickUp.equals(that.pickUp))
5593
          return false;
5594
      }
5595
 
477 rajveer 5596
      return true;
5597
    }
5598
 
5599
    @Override
5600
    public int hashCode() {
5601
      return 0;
5602
    }
5603
 
648 chandransh 5604
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5605
      if (!getClass().equals(other.getClass())) {
5606
        return getClass().getName().compareTo(other.getClass().getName());
5607
      }
5608
 
5609
      int lastComparison = 0;
648 chandransh 5610
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5611
 
3430 rajveer 5612
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5613
      if (lastComparison != 0) {
5614
        return lastComparison;
5615
      }
3430 rajveer 5616
      if (isSetDestination_pincode()) {
5617
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5618
        if (lastComparison != 0) {
5619
          return lastComparison;
5620
        }
477 rajveer 5621
      }
3430 rajveer 5622
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5623
      if (lastComparison != 0) {
5624
        return lastComparison;
5625
      }
3430 rajveer 5626
      if (isSetItem_id()) {
5627
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5628
        if (lastComparison != 0) {
5629
          return lastComparison;
5630
        }
477 rajveer 5631
      }
3430 rajveer 5632
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5633
      if (lastComparison != 0) {
5634
        return lastComparison;
5635
      }
3430 rajveer 5636
      if (isSetType()) {
5637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5638
        if (lastComparison != 0) {
5639
          return lastComparison;
5640
        }
3044 chandransh 5641
      }
5766 rajveer 5642
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5643
      if (lastComparison != 0) {
5644
        return lastComparison;
5645
      }
5646
      if (isSetPickUp()) {
5647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5648
        if (lastComparison != 0) {
5649
          return lastComparison;
5650
        }
5651
      }
477 rajveer 5652
      return 0;
5653
    }
5654
 
3430 rajveer 5655
    public _Fields fieldForId(int fieldId) {
5656
      return _Fields.findByThriftId(fieldId);
5657
    }
5658
 
5659
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5660
      org.apache.thrift.protocol.TField field;
477 rajveer 5661
      iprot.readStructBegin();
5662
      while (true)
5663
      {
5664
        field = iprot.readFieldBegin();
3430 rajveer 5665
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5666
          break;
5667
        }
3430 rajveer 5668
        switch (field.id) {
5669
          case 1: // DESTINATION_PINCODE
5670
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5671
              this.destination_pincode = iprot.readString();
5672
            } else { 
5673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5674
            }
5675
            break;
5676
          case 2: // ITEM_ID
5677
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5678
              this.item_id = iprot.readI64();
5679
              setItem_idIsSet(true);
5680
            } else { 
5681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5682
            }
5683
            break;
5684
          case 3: // TYPE
5685
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5686
              this.type = DeliveryType.findByValue(iprot.readI32());
5687
            } else { 
5688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5689
            }
5690
            break;
5766 rajveer 5691
          case 4: // PICK_UP
5692
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5693
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5694
            } else { 
5695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5696
            }
5697
            break;
3430 rajveer 5698
          default:
5699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5700
        }
3430 rajveer 5701
        iprot.readFieldEnd();
477 rajveer 5702
      }
5703
      iprot.readStructEnd();
5704
      validate();
5705
    }
5706
 
3430 rajveer 5707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5708
      validate();
5709
 
5710
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5711
      if (this.destination_pincode != null) {
5712
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5713
        oprot.writeString(this.destination_pincode);
477 rajveer 5714
        oprot.writeFieldEnd();
5715
      }
715 rajveer 5716
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5717
      oprot.writeI64(this.item_id);
5718
      oprot.writeFieldEnd();
3044 chandransh 5719
      if (this.type != null) {
5720
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5721
        oprot.writeI32(this.type.getValue());
5722
        oprot.writeFieldEnd();
5723
      }
5766 rajveer 5724
      if (this.pickUp != null) {
5725
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5726
        oprot.writeI32(this.pickUp.getValue());
5727
        oprot.writeFieldEnd();
5728
      }
477 rajveer 5729
      oprot.writeFieldStop();
5730
      oprot.writeStructEnd();
5731
    }
5732
 
5733
    @Override
5734
    public String toString() {
648 chandransh 5735
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5736
      boolean first = true;
5737
 
648 chandransh 5738
      sb.append("destination_pincode:");
5739
      if (this.destination_pincode == null) {
477 rajveer 5740
        sb.append("null");
5741
      } else {
648 chandransh 5742
        sb.append(this.destination_pincode);
477 rajveer 5743
      }
5744
      first = false;
5745
      if (!first) sb.append(", ");
648 chandransh 5746
      sb.append("item_id:");
715 rajveer 5747
      sb.append(this.item_id);
477 rajveer 5748
      first = false;
3044 chandransh 5749
      if (!first) sb.append(", ");
5750
      sb.append("type:");
5751
      if (this.type == null) {
5752
        sb.append("null");
5753
      } else {
5754
        sb.append(this.type);
5755
      }
5756
      first = false;
5766 rajveer 5757
      if (!first) sb.append(", ");
5758
      sb.append("pickUp:");
5759
      if (this.pickUp == null) {
5760
        sb.append("null");
5761
      } else {
5762
        sb.append(this.pickUp);
5763
      }
5764
      first = false;
477 rajveer 5765
      sb.append(")");
5766
      return sb.toString();
5767
    }
5768
 
3430 rajveer 5769
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5770
      // check for required fields
5771
    }
5772
 
3430 rajveer 5773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5774
      try {
5775
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5776
      } catch (org.apache.thrift.TException te) {
5777
        throw new java.io.IOException(te);
5778
      }
5779
    }
5780
 
5781
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5782
      try {
5783
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5784
      } catch (org.apache.thrift.TException te) {
5785
        throw new java.io.IOException(te);
5786
      }
5787
    }
5788
 
477 rajveer 5789
  }
5790
 
3430 rajveer 5791
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5792
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5793
 
3430 rajveer 5794
    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);
5795
    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 5796
 
3430 rajveer 5797
    private LogisticsInfo success; // required
5798
    private LogisticsServiceException se; // required
477 rajveer 5799
 
5800
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5801
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5802
      SUCCESS((short)0, "success"),
5803
      SE((short)1, "se");
477 rajveer 5804
 
5805
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5806
 
5807
      static {
5808
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5809
          byName.put(field.getFieldName(), field);
5810
        }
5811
      }
5812
 
5813
      /**
5814
       * Find the _Fields constant that matches fieldId, or null if its not found.
5815
       */
5816
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5817
        switch(fieldId) {
5818
          case 0: // SUCCESS
5819
            return SUCCESS;
5820
          case 1: // SE
5821
            return SE;
5822
          default:
5823
            return null;
5824
        }
477 rajveer 5825
      }
5826
 
5827
      /**
5828
       * Find the _Fields constant that matches fieldId, throwing an exception
5829
       * if it is not found.
5830
       */
5831
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5832
        _Fields fields = findByThriftId(fieldId);
5833
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5834
        return fields;
5835
      }
5836
 
5837
      /**
5838
       * Find the _Fields constant that matches name, or null if its not found.
5839
       */
5840
      public static _Fields findByName(String name) {
5841
        return byName.get(name);
5842
      }
5843
 
5844
      private final short _thriftId;
5845
      private final String _fieldName;
5846
 
5847
      _Fields(short thriftId, String fieldName) {
5848
        _thriftId = thriftId;
5849
        _fieldName = fieldName;
5850
      }
5851
 
5852
      public short getThriftFieldId() {
5853
        return _thriftId;
5854
      }
5855
 
5856
      public String getFieldName() {
5857
        return _fieldName;
5858
      }
5859
    }
5860
 
412 ashish 5861
    // isset id assignments
5862
 
3430 rajveer 5863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5864
    static {
3430 rajveer 5865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5866
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5867
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5868
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5870
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5871
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5872
    }
5873
 
648 chandransh 5874
    public getLogisticsInfo_result() {
412 ashish 5875
    }
5876
 
648 chandransh 5877
    public getLogisticsInfo_result(
5878
      LogisticsInfo success,
5879
      LogisticsServiceException se)
412 ashish 5880
    {
5881
      this();
648 chandransh 5882
      this.success = success;
5883
      this.se = se;
412 ashish 5884
    }
5885
 
5886
    /**
5887
     * Performs a deep copy on <i>other</i>.
5888
     */
648 chandransh 5889
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5890
      if (other.isSetSuccess()) {
5891
        this.success = new LogisticsInfo(other.success);
412 ashish 5892
      }
648 chandransh 5893
      if (other.isSetSe()) {
5894
        this.se = new LogisticsServiceException(other.se);
5895
      }
412 ashish 5896
    }
5897
 
648 chandransh 5898
    public getLogisticsInfo_result deepCopy() {
5899
      return new getLogisticsInfo_result(this);
412 ashish 5900
    }
5901
 
3430 rajveer 5902
    @Override
5903
    public void clear() {
5904
      this.success = null;
5905
      this.se = null;
412 ashish 5906
    }
5907
 
648 chandransh 5908
    public LogisticsInfo getSuccess() {
5909
      return this.success;
412 ashish 5910
    }
5911
 
3430 rajveer 5912
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5913
      this.success = success;
412 ashish 5914
    }
5915
 
648 chandransh 5916
    public void unsetSuccess() {
5917
      this.success = null;
412 ashish 5918
    }
5919
 
3430 rajveer 5920
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5921
    public boolean isSetSuccess() {
5922
      return this.success != null;
412 ashish 5923
    }
5924
 
648 chandransh 5925
    public void setSuccessIsSet(boolean value) {
412 ashish 5926
      if (!value) {
648 chandransh 5927
        this.success = null;
412 ashish 5928
      }
5929
    }
5930
 
648 chandransh 5931
    public LogisticsServiceException getSe() {
5932
      return this.se;
412 ashish 5933
    }
5934
 
3430 rajveer 5935
    public void setSe(LogisticsServiceException se) {
648 chandransh 5936
      this.se = se;
412 ashish 5937
    }
5938
 
648 chandransh 5939
    public void unsetSe() {
5940
      this.se = null;
412 ashish 5941
    }
5942
 
3430 rajveer 5943
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5944
    public boolean isSetSe() {
5945
      return this.se != null;
412 ashish 5946
    }
5947
 
648 chandransh 5948
    public void setSeIsSet(boolean value) {
5949
      if (!value) {
5950
        this.se = null;
5951
      }
412 ashish 5952
    }
5953
 
5954
    public void setFieldValue(_Fields field, Object value) {
5955
      switch (field) {
648 chandransh 5956
      case SUCCESS:
412 ashish 5957
        if (value == null) {
648 chandransh 5958
          unsetSuccess();
412 ashish 5959
        } else {
648 chandransh 5960
          setSuccess((LogisticsInfo)value);
412 ashish 5961
        }
5962
        break;
5963
 
648 chandransh 5964
      case SE:
412 ashish 5965
        if (value == null) {
648 chandransh 5966
          unsetSe();
412 ashish 5967
        } else {
648 chandransh 5968
          setSe((LogisticsServiceException)value);
412 ashish 5969
        }
5970
        break;
5971
 
5972
      }
5973
    }
5974
 
5975
    public Object getFieldValue(_Fields field) {
5976
      switch (field) {
648 chandransh 5977
      case SUCCESS:
5978
        return getSuccess();
412 ashish 5979
 
648 chandransh 5980
      case SE:
5981
        return getSe();
412 ashish 5982
 
5983
      }
5984
      throw new IllegalStateException();
5985
    }
5986
 
3430 rajveer 5987
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5988
    public boolean isSet(_Fields field) {
5989
      if (field == null) {
5990
        throw new IllegalArgumentException();
5991
      }
412 ashish 5992
 
5993
      switch (field) {
648 chandransh 5994
      case SUCCESS:
5995
        return isSetSuccess();
5996
      case SE:
5997
        return isSetSe();
412 ashish 5998
      }
5999
      throw new IllegalStateException();
6000
    }
6001
 
6002
    @Override
6003
    public boolean equals(Object that) {
6004
      if (that == null)
6005
        return false;
648 chandransh 6006
      if (that instanceof getLogisticsInfo_result)
6007
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6008
      return false;
6009
    }
6010
 
648 chandransh 6011
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6012
      if (that == null)
6013
        return false;
6014
 
648 chandransh 6015
      boolean this_present_success = true && this.isSetSuccess();
6016
      boolean that_present_success = true && that.isSetSuccess();
6017
      if (this_present_success || that_present_success) {
6018
        if (!(this_present_success && that_present_success))
412 ashish 6019
          return false;
648 chandransh 6020
        if (!this.success.equals(that.success))
412 ashish 6021
          return false;
6022
      }
6023
 
648 chandransh 6024
      boolean this_present_se = true && this.isSetSe();
6025
      boolean that_present_se = true && that.isSetSe();
6026
      if (this_present_se || that_present_se) {
6027
        if (!(this_present_se && that_present_se))
412 ashish 6028
          return false;
648 chandransh 6029
        if (!this.se.equals(that.se))
412 ashish 6030
          return false;
6031
      }
6032
 
6033
      return true;
6034
    }
6035
 
6036
    @Override
6037
    public int hashCode() {
6038
      return 0;
6039
    }
6040
 
648 chandransh 6041
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6042
      if (!getClass().equals(other.getClass())) {
6043
        return getClass().getName().compareTo(other.getClass().getName());
6044
      }
6045
 
6046
      int lastComparison = 0;
648 chandransh 6047
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6048
 
3430 rajveer 6049
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6050
      if (lastComparison != 0) {
6051
        return lastComparison;
6052
      }
3430 rajveer 6053
      if (isSetSuccess()) {
6054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6055
        if (lastComparison != 0) {
6056
          return lastComparison;
6057
        }
412 ashish 6058
      }
3430 rajveer 6059
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6060
      if (lastComparison != 0) {
6061
        return lastComparison;
6062
      }
3430 rajveer 6063
      if (isSetSe()) {
6064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6065
        if (lastComparison != 0) {
6066
          return lastComparison;
6067
        }
412 ashish 6068
      }
6069
      return 0;
6070
    }
6071
 
3430 rajveer 6072
    public _Fields fieldForId(int fieldId) {
6073
      return _Fields.findByThriftId(fieldId);
6074
    }
6075
 
6076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6077
      org.apache.thrift.protocol.TField field;
412 ashish 6078
      iprot.readStructBegin();
6079
      while (true)
6080
      {
6081
        field = iprot.readFieldBegin();
3430 rajveer 6082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6083
          break;
6084
        }
3430 rajveer 6085
        switch (field.id) {
6086
          case 0: // SUCCESS
6087
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6088
              this.success = new LogisticsInfo();
6089
              this.success.read(iprot);
6090
            } else { 
6091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6092
            }
6093
            break;
6094
          case 1: // SE
6095
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6096
              this.se = new LogisticsServiceException();
6097
              this.se.read(iprot);
6098
            } else { 
6099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6100
            }
6101
            break;
6102
          default:
6103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6104
        }
3430 rajveer 6105
        iprot.readFieldEnd();
412 ashish 6106
      }
6107
      iprot.readStructEnd();
6108
      validate();
6109
    }
6110
 
3430 rajveer 6111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6112
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6113
 
648 chandransh 6114
      if (this.isSetSuccess()) {
6115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6116
        this.success.write(oprot);
412 ashish 6117
        oprot.writeFieldEnd();
648 chandransh 6118
      } else if (this.isSetSe()) {
6119
        oprot.writeFieldBegin(SE_FIELD_DESC);
6120
        this.se.write(oprot);
6121
        oprot.writeFieldEnd();
412 ashish 6122
      }
6123
      oprot.writeFieldStop();
6124
      oprot.writeStructEnd();
6125
    }
6126
 
6127
    @Override
6128
    public String toString() {
648 chandransh 6129
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6130
      boolean first = true;
6131
 
648 chandransh 6132
      sb.append("success:");
6133
      if (this.success == null) {
412 ashish 6134
        sb.append("null");
6135
      } else {
648 chandransh 6136
        sb.append(this.success);
412 ashish 6137
      }
6138
      first = false;
6139
      if (!first) sb.append(", ");
648 chandransh 6140
      sb.append("se:");
6141
      if (this.se == null) {
6142
        sb.append("null");
6143
      } else {
6144
        sb.append(this.se);
6145
      }
412 ashish 6146
      first = false;
6147
      sb.append(")");
6148
      return sb.toString();
6149
    }
6150
 
3430 rajveer 6151
    public void validate() throws org.apache.thrift.TException {
412 ashish 6152
      // check for required fields
6153
    }
6154
 
3430 rajveer 6155
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6156
      try {
6157
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6158
      } catch (org.apache.thrift.TException te) {
6159
        throw new java.io.IOException(te);
6160
      }
6161
    }
6162
 
6163
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6164
      try {
6165
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6166
      } catch (org.apache.thrift.TException te) {
6167
        throw new java.io.IOException(te);
6168
      }
6169
    }
6170
 
412 ashish 6171
  }
6172
 
3430 rajveer 6173
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6174
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6175
 
3430 rajveer 6176
    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 6177
    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 6178
 
3430 rajveer 6179
    private long providerId; // required
5247 rajveer 6180
    private DeliveryType type; // required
412 ashish 6181
 
6182
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6183
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6184
      PROVIDER_ID((short)1, "providerId"),
6185
      /**
6186
       * 
6187
       * @see DeliveryType
6188
       */
6189
      TYPE((short)-1, "type");
412 ashish 6190
 
6191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6192
 
6193
      static {
6194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6195
          byName.put(field.getFieldName(), field);
6196
        }
6197
      }
6198
 
6199
      /**
6200
       * Find the _Fields constant that matches fieldId, or null if its not found.
6201
       */
6202
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6203
        switch(fieldId) {
6204
          case 1: // PROVIDER_ID
6205
            return PROVIDER_ID;
5247 rajveer 6206
          case -1: // TYPE
6207
            return TYPE;
3430 rajveer 6208
          default:
6209
            return null;
6210
        }
412 ashish 6211
      }
6212
 
6213
      /**
6214
       * Find the _Fields constant that matches fieldId, throwing an exception
6215
       * if it is not found.
6216
       */
6217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6218
        _Fields fields = findByThriftId(fieldId);
6219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6220
        return fields;
6221
      }
6222
 
6223
      /**
6224
       * Find the _Fields constant that matches name, or null if its not found.
6225
       */
6226
      public static _Fields findByName(String name) {
6227
        return byName.get(name);
6228
      }
6229
 
6230
      private final short _thriftId;
6231
      private final String _fieldName;
6232
 
6233
      _Fields(short thriftId, String fieldName) {
6234
        _thriftId = thriftId;
6235
        _fieldName = fieldName;
6236
      }
6237
 
6238
      public short getThriftFieldId() {
6239
        return _thriftId;
6240
      }
6241
 
6242
      public String getFieldName() {
6243
        return _fieldName;
6244
      }
6245
    }
6246
 
6247
    // isset id assignments
648 chandransh 6248
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6249
    private BitSet __isset_bit_vector = new BitSet(1);
6250
 
3430 rajveer 6251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6252
    static {
3430 rajveer 6253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6254
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 6256
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6257
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 6258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6260
    }
6261
 
6262
    public getEmptyAWB_args() {
6263
    }
6264
 
6265
    public getEmptyAWB_args(
5247 rajveer 6266
      long providerId,
6267
      DeliveryType type)
412 ashish 6268
    {
6269
      this();
648 chandransh 6270
      this.providerId = providerId;
6271
      setProviderIdIsSet(true);
5247 rajveer 6272
      this.type = type;
412 ashish 6273
    }
6274
 
6275
    /**
6276
     * Performs a deep copy on <i>other</i>.
6277
     */
6278
    public getEmptyAWB_args(getEmptyAWB_args other) {
6279
      __isset_bit_vector.clear();
6280
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6281
      this.providerId = other.providerId;
5247 rajveer 6282
      if (other.isSetType()) {
6283
        this.type = other.type;
6284
      }
412 ashish 6285
    }
6286
 
6287
    public getEmptyAWB_args deepCopy() {
6288
      return new getEmptyAWB_args(this);
6289
    }
6290
 
3430 rajveer 6291
    @Override
6292
    public void clear() {
6293
      setProviderIdIsSet(false);
6294
      this.providerId = 0;
5247 rajveer 6295
      this.type = null;
412 ashish 6296
    }
6297
 
648 chandransh 6298
    public long getProviderId() {
6299
      return this.providerId;
412 ashish 6300
    }
6301
 
3430 rajveer 6302
    public void setProviderId(long providerId) {
648 chandransh 6303
      this.providerId = providerId;
6304
      setProviderIdIsSet(true);
412 ashish 6305
    }
6306
 
648 chandransh 6307
    public void unsetProviderId() {
6308
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6309
    }
6310
 
3430 rajveer 6311
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6312
    public boolean isSetProviderId() {
6313
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6314
    }
6315
 
648 chandransh 6316
    public void setProviderIdIsSet(boolean value) {
6317
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6318
    }
6319
 
5247 rajveer 6320
    /**
6321
     * 
6322
     * @see DeliveryType
6323
     */
6324
    public DeliveryType getType() {
6325
      return this.type;
6326
    }
6327
 
6328
    /**
6329
     * 
6330
     * @see DeliveryType
6331
     */
6332
    public void setType(DeliveryType type) {
6333
      this.type = type;
6334
    }
6335
 
6336
    public void unsetType() {
6337
      this.type = null;
6338
    }
6339
 
6340
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6341
    public boolean isSetType() {
6342
      return this.type != null;
6343
    }
6344
 
6345
    public void setTypeIsSet(boolean value) {
6346
      if (!value) {
6347
        this.type = null;
6348
      }
6349
    }
6350
 
412 ashish 6351
    public void setFieldValue(_Fields field, Object value) {
6352
      switch (field) {
6353
      case PROVIDER_ID:
6354
        if (value == null) {
648 chandransh 6355
          unsetProviderId();
412 ashish 6356
        } else {
648 chandransh 6357
          setProviderId((Long)value);
412 ashish 6358
        }
6359
        break;
6360
 
5247 rajveer 6361
      case TYPE:
6362
        if (value == null) {
6363
          unsetType();
6364
        } else {
6365
          setType((DeliveryType)value);
6366
        }
6367
        break;
6368
 
412 ashish 6369
      }
6370
    }
6371
 
6372
    public Object getFieldValue(_Fields field) {
6373
      switch (field) {
6374
      case PROVIDER_ID:
3430 rajveer 6375
        return Long.valueOf(getProviderId());
412 ashish 6376
 
5247 rajveer 6377
      case TYPE:
6378
        return getType();
6379
 
412 ashish 6380
      }
6381
      throw new IllegalStateException();
6382
    }
6383
 
3430 rajveer 6384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6385
    public boolean isSet(_Fields field) {
6386
      if (field == null) {
6387
        throw new IllegalArgumentException();
6388
      }
412 ashish 6389
 
6390
      switch (field) {
6391
      case PROVIDER_ID:
648 chandransh 6392
        return isSetProviderId();
5247 rajveer 6393
      case TYPE:
6394
        return isSetType();
412 ashish 6395
      }
6396
      throw new IllegalStateException();
6397
    }
6398
 
6399
    @Override
6400
    public boolean equals(Object that) {
6401
      if (that == null)
6402
        return false;
6403
      if (that instanceof getEmptyAWB_args)
6404
        return this.equals((getEmptyAWB_args)that);
6405
      return false;
6406
    }
6407
 
6408
    public boolean equals(getEmptyAWB_args that) {
6409
      if (that == null)
6410
        return false;
6411
 
648 chandransh 6412
      boolean this_present_providerId = true;
6413
      boolean that_present_providerId = true;
6414
      if (this_present_providerId || that_present_providerId) {
6415
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6416
          return false;
648 chandransh 6417
        if (this.providerId != that.providerId)
412 ashish 6418
          return false;
6419
      }
6420
 
5247 rajveer 6421
      boolean this_present_type = true && this.isSetType();
6422
      boolean that_present_type = true && that.isSetType();
6423
      if (this_present_type || that_present_type) {
6424
        if (!(this_present_type && that_present_type))
6425
          return false;
6426
        if (!this.type.equals(that.type))
6427
          return false;
6428
      }
6429
 
412 ashish 6430
      return true;
6431
    }
6432
 
6433
    @Override
6434
    public int hashCode() {
6435
      return 0;
6436
    }
6437
 
6438
    public int compareTo(getEmptyAWB_args other) {
6439
      if (!getClass().equals(other.getClass())) {
6440
        return getClass().getName().compareTo(other.getClass().getName());
6441
      }
6442
 
6443
      int lastComparison = 0;
6444
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6445
 
3430 rajveer 6446
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6447
      if (lastComparison != 0) {
6448
        return lastComparison;
6449
      }
3430 rajveer 6450
      if (isSetProviderId()) {
6451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6452
        if (lastComparison != 0) {
6453
          return lastComparison;
6454
        }
412 ashish 6455
      }
5247 rajveer 6456
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6457
      if (lastComparison != 0) {
6458
        return lastComparison;
6459
      }
6460
      if (isSetType()) {
6461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6462
        if (lastComparison != 0) {
6463
          return lastComparison;
6464
        }
6465
      }
412 ashish 6466
      return 0;
6467
    }
6468
 
3430 rajveer 6469
    public _Fields fieldForId(int fieldId) {
6470
      return _Fields.findByThriftId(fieldId);
6471
    }
6472
 
6473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6474
      org.apache.thrift.protocol.TField field;
412 ashish 6475
      iprot.readStructBegin();
6476
      while (true)
6477
      {
6478
        field = iprot.readFieldBegin();
3430 rajveer 6479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6480
          break;
6481
        }
3430 rajveer 6482
        switch (field.id) {
6483
          case 1: // PROVIDER_ID
6484
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6485
              this.providerId = iprot.readI64();
6486
              setProviderIdIsSet(true);
6487
            } else { 
6488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6489
            }
6490
            break;
5247 rajveer 6491
          case -1: // TYPE
6492
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6493
              this.type = DeliveryType.findByValue(iprot.readI32());
6494
            } else { 
6495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6496
            }
6497
            break;
3430 rajveer 6498
          default:
6499
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6500
        }
3430 rajveer 6501
        iprot.readFieldEnd();
412 ashish 6502
      }
6503
      iprot.readStructEnd();
6504
      validate();
6505
    }
6506
 
3430 rajveer 6507
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6508
      validate();
6509
 
6510
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6511
      if (this.type != null) {
6512
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6513
        oprot.writeI32(this.type.getValue());
6514
        oprot.writeFieldEnd();
6515
      }
412 ashish 6516
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6517
      oprot.writeI64(this.providerId);
412 ashish 6518
      oprot.writeFieldEnd();
6519
      oprot.writeFieldStop();
6520
      oprot.writeStructEnd();
6521
    }
6522
 
6523
    @Override
6524
    public String toString() {
6525
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6526
      boolean first = true;
6527
 
648 chandransh 6528
      sb.append("providerId:");
6529
      sb.append(this.providerId);
412 ashish 6530
      first = false;
5247 rajveer 6531
      if (!first) sb.append(", ");
6532
      sb.append("type:");
6533
      if (this.type == null) {
6534
        sb.append("null");
6535
      } else {
6536
        sb.append(this.type);
6537
      }
6538
      first = false;
412 ashish 6539
      sb.append(")");
6540
      return sb.toString();
6541
    }
6542
 
3430 rajveer 6543
    public void validate() throws org.apache.thrift.TException {
412 ashish 6544
      // check for required fields
6545
    }
6546
 
3430 rajveer 6547
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6548
      try {
6549
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6550
      } catch (org.apache.thrift.TException te) {
6551
        throw new java.io.IOException(te);
6552
      }
6553
    }
6554
 
6555
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6556
      try {
6557
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6558
        __isset_bit_vector = new BitSet(1);
6559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6560
      } catch (org.apache.thrift.TException te) {
6561
        throw new java.io.IOException(te);
6562
      }
6563
    }
6564
 
412 ashish 6565
  }
6566
 
3430 rajveer 6567
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6569
 
3430 rajveer 6570
    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);
6571
    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 6572
 
3430 rajveer 6573
    private String success; // required
6574
    private LogisticsServiceException se; // required
412 ashish 6575
 
6576
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6577
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6578
      SUCCESS((short)0, "success"),
6579
      SE((short)1, "se");
412 ashish 6580
 
6581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6582
 
6583
      static {
6584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6585
          byName.put(field.getFieldName(), field);
6586
        }
6587
      }
6588
 
6589
      /**
6590
       * Find the _Fields constant that matches fieldId, or null if its not found.
6591
       */
6592
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6593
        switch(fieldId) {
6594
          case 0: // SUCCESS
6595
            return SUCCESS;
6596
          case 1: // SE
6597
            return SE;
6598
          default:
6599
            return null;
6600
        }
412 ashish 6601
      }
6602
 
6603
      /**
6604
       * Find the _Fields constant that matches fieldId, throwing an exception
6605
       * if it is not found.
6606
       */
6607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6608
        _Fields fields = findByThriftId(fieldId);
6609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6610
        return fields;
6611
      }
6612
 
6613
      /**
6614
       * Find the _Fields constant that matches name, or null if its not found.
6615
       */
6616
      public static _Fields findByName(String name) {
6617
        return byName.get(name);
6618
      }
6619
 
6620
      private final short _thriftId;
6621
      private final String _fieldName;
6622
 
6623
      _Fields(short thriftId, String fieldName) {
6624
        _thriftId = thriftId;
6625
        _fieldName = fieldName;
6626
      }
6627
 
6628
      public short getThriftFieldId() {
6629
        return _thriftId;
6630
      }
6631
 
6632
      public String getFieldName() {
6633
        return _fieldName;
6634
      }
6635
    }
6636
 
6637
    // isset id assignments
6638
 
3430 rajveer 6639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6640
    static {
3430 rajveer 6641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6642
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6643
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6644
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6645
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6648
    }
6649
 
6650
    public getEmptyAWB_result() {
6651
    }
6652
 
6653
    public getEmptyAWB_result(
648 chandransh 6654
      String success,
6655
      LogisticsServiceException se)
412 ashish 6656
    {
6657
      this();
6658
      this.success = success;
648 chandransh 6659
      this.se = se;
412 ashish 6660
    }
6661
 
6662
    /**
6663
     * Performs a deep copy on <i>other</i>.
6664
     */
6665
    public getEmptyAWB_result(getEmptyAWB_result other) {
6666
      if (other.isSetSuccess()) {
6667
        this.success = other.success;
6668
      }
648 chandransh 6669
      if (other.isSetSe()) {
6670
        this.se = new LogisticsServiceException(other.se);
6671
      }
412 ashish 6672
    }
6673
 
6674
    public getEmptyAWB_result deepCopy() {
6675
      return new getEmptyAWB_result(this);
6676
    }
6677
 
3430 rajveer 6678
    @Override
6679
    public void clear() {
6680
      this.success = null;
6681
      this.se = null;
412 ashish 6682
    }
6683
 
6684
    public String getSuccess() {
6685
      return this.success;
6686
    }
6687
 
3430 rajveer 6688
    public void setSuccess(String success) {
412 ashish 6689
      this.success = success;
6690
    }
6691
 
6692
    public void unsetSuccess() {
6693
      this.success = null;
6694
    }
6695
 
3430 rajveer 6696
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6697
    public boolean isSetSuccess() {
6698
      return this.success != null;
6699
    }
6700
 
6701
    public void setSuccessIsSet(boolean value) {
6702
      if (!value) {
6703
        this.success = null;
6704
      }
6705
    }
6706
 
648 chandransh 6707
    public LogisticsServiceException getSe() {
6708
      return this.se;
412 ashish 6709
    }
6710
 
3430 rajveer 6711
    public void setSe(LogisticsServiceException se) {
648 chandransh 6712
      this.se = se;
412 ashish 6713
    }
6714
 
648 chandransh 6715
    public void unsetSe() {
6716
      this.se = null;
412 ashish 6717
    }
6718
 
3430 rajveer 6719
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6720
    public boolean isSetSe() {
6721
      return this.se != null;
412 ashish 6722
    }
6723
 
648 chandransh 6724
    public void setSeIsSet(boolean value) {
412 ashish 6725
      if (!value) {
648 chandransh 6726
        this.se = null;
412 ashish 6727
      }
6728
    }
6729
 
6730
    public void setFieldValue(_Fields field, Object value) {
6731
      switch (field) {
6732
      case SUCCESS:
6733
        if (value == null) {
6734
          unsetSuccess();
6735
        } else {
648 chandransh 6736
          setSuccess((String)value);
412 ashish 6737
        }
6738
        break;
6739
 
648 chandransh 6740
      case SE:
6741
        if (value == null) {
6742
          unsetSe();
6743
        } else {
6744
          setSe((LogisticsServiceException)value);
6745
        }
6746
        break;
6747
 
412 ashish 6748
      }
6749
    }
6750
 
6751
    public Object getFieldValue(_Fields field) {
6752
      switch (field) {
6753
      case SUCCESS:
6754
        return getSuccess();
6755
 
648 chandransh 6756
      case SE:
6757
        return getSe();
6758
 
412 ashish 6759
      }
6760
      throw new IllegalStateException();
6761
    }
6762
 
3430 rajveer 6763
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6764
    public boolean isSet(_Fields field) {
6765
      if (field == null) {
6766
        throw new IllegalArgumentException();
6767
      }
412 ashish 6768
 
6769
      switch (field) {
6770
      case SUCCESS:
6771
        return isSetSuccess();
648 chandransh 6772
      case SE:
6773
        return isSetSe();
412 ashish 6774
      }
6775
      throw new IllegalStateException();
6776
    }
6777
 
6778
    @Override
6779
    public boolean equals(Object that) {
6780
      if (that == null)
6781
        return false;
648 chandransh 6782
      if (that instanceof getEmptyAWB_result)
6783
        return this.equals((getEmptyAWB_result)that);
412 ashish 6784
      return false;
6785
    }
6786
 
648 chandransh 6787
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6788
      if (that == null)
6789
        return false;
6790
 
6791
      boolean this_present_success = true && this.isSetSuccess();
6792
      boolean that_present_success = true && that.isSetSuccess();
6793
      if (this_present_success || that_present_success) {
6794
        if (!(this_present_success && that_present_success))
6795
          return false;
6796
        if (!this.success.equals(that.success))
6797
          return false;
6798
      }
6799
 
648 chandransh 6800
      boolean this_present_se = true && this.isSetSe();
6801
      boolean that_present_se = true && that.isSetSe();
6802
      if (this_present_se || that_present_se) {
6803
        if (!(this_present_se && that_present_se))
6804
          return false;
6805
        if (!this.se.equals(that.se))
6806
          return false;
6807
      }
6808
 
412 ashish 6809
      return true;
6810
    }
6811
 
6812
    @Override
6813
    public int hashCode() {
6814
      return 0;
6815
    }
6816
 
648 chandransh 6817
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6818
      if (!getClass().equals(other.getClass())) {
6819
        return getClass().getName().compareTo(other.getClass().getName());
6820
      }
6821
 
6822
      int lastComparison = 0;
648 chandransh 6823
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6824
 
3430 rajveer 6825
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6826
      if (lastComparison != 0) {
6827
        return lastComparison;
6828
      }
3430 rajveer 6829
      if (isSetSuccess()) {
6830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6831
        if (lastComparison != 0) {
6832
          return lastComparison;
6833
        }
412 ashish 6834
      }
3430 rajveer 6835
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6836
      if (lastComparison != 0) {
6837
        return lastComparison;
6838
      }
3430 rajveer 6839
      if (isSetSe()) {
6840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6841
        if (lastComparison != 0) {
6842
          return lastComparison;
6843
        }
412 ashish 6844
      }
6845
      return 0;
6846
    }
6847
 
3430 rajveer 6848
    public _Fields fieldForId(int fieldId) {
6849
      return _Fields.findByThriftId(fieldId);
6850
    }
6851
 
6852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6853
      org.apache.thrift.protocol.TField field;
412 ashish 6854
      iprot.readStructBegin();
6855
      while (true)
6856
      {
6857
        field = iprot.readFieldBegin();
3430 rajveer 6858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6859
          break;
6860
        }
3430 rajveer 6861
        switch (field.id) {
6862
          case 0: // SUCCESS
6863
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6864
              this.success = iprot.readString();
6865
            } else { 
6866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6867
            }
6868
            break;
6869
          case 1: // SE
6870
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6871
              this.se = new LogisticsServiceException();
6872
              this.se.read(iprot);
6873
            } else { 
6874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6875
            }
6876
            break;
6877
          default:
6878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6879
        }
3430 rajveer 6880
        iprot.readFieldEnd();
412 ashish 6881
      }
6882
      iprot.readStructEnd();
6883
      validate();
6884
    }
6885
 
3430 rajveer 6886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6887
      oprot.writeStructBegin(STRUCT_DESC);
6888
 
6889
      if (this.isSetSuccess()) {
6890
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6891
        oprot.writeString(this.success);
412 ashish 6892
        oprot.writeFieldEnd();
648 chandransh 6893
      } else if (this.isSetSe()) {
6894
        oprot.writeFieldBegin(SE_FIELD_DESC);
6895
        this.se.write(oprot);
6896
        oprot.writeFieldEnd();
412 ashish 6897
      }
6898
      oprot.writeFieldStop();
6899
      oprot.writeStructEnd();
6900
    }
6901
 
6902
    @Override
6903
    public String toString() {
648 chandransh 6904
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6905
      boolean first = true;
6906
 
6907
      sb.append("success:");
6908
      if (this.success == null) {
6909
        sb.append("null");
6910
      } else {
6911
        sb.append(this.success);
6912
      }
6913
      first = false;
648 chandransh 6914
      if (!first) sb.append(", ");
6915
      sb.append("se:");
6916
      if (this.se == null) {
442 rajveer 6917
        sb.append("null");
6918
      } else {
648 chandransh 6919
        sb.append(this.se);
442 rajveer 6920
      }
6921
      first = false;
6922
      sb.append(")");
6923
      return sb.toString();
6924
    }
6925
 
3430 rajveer 6926
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6927
      // check for required fields
6928
    }
6929
 
3430 rajveer 6930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6931
      try {
6932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6933
      } catch (org.apache.thrift.TException te) {
6934
        throw new java.io.IOException(te);
6935
      }
6936
    }
6937
 
6938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6939
      try {
6940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6941
      } catch (org.apache.thrift.TException te) {
6942
        throw new java.io.IOException(te);
6943
      }
6944
    }
6945
 
442 rajveer 6946
  }
6947
 
3430 rajveer 6948
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6950
 
6643 rajveer 6951
    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 6952
    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 6953
 
6643 rajveer 6954
    private String awbNumber; // required
3430 rajveer 6955
    private long providerId; // required
442 rajveer 6956
 
6957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6959
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6960
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6961
 
6962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6963
 
6964
      static {
6965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6966
          byName.put(field.getFieldName(), field);
6967
        }
6968
      }
6969
 
6970
      /**
6971
       * Find the _Fields constant that matches fieldId, or null if its not found.
6972
       */
6973
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6974
        switch(fieldId) {
6643 rajveer 6975
          case 1: // AWB_NUMBER
6976
            return AWB_NUMBER;
3430 rajveer 6977
          case 2: // PROVIDER_ID
6978
            return PROVIDER_ID;
6979
          default:
6980
            return null;
6981
        }
442 rajveer 6982
      }
6983
 
6984
      /**
6985
       * Find the _Fields constant that matches fieldId, throwing an exception
6986
       * if it is not found.
6987
       */
6988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6989
        _Fields fields = findByThriftId(fieldId);
6990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6991
        return fields;
6992
      }
6993
 
6994
      /**
6995
       * Find the _Fields constant that matches name, or null if its not found.
6996
       */
6997
      public static _Fields findByName(String name) {
6998
        return byName.get(name);
6999
      }
7000
 
7001
      private final short _thriftId;
7002
      private final String _fieldName;
7003
 
7004
      _Fields(short thriftId, String fieldName) {
7005
        _thriftId = thriftId;
7006
        _fieldName = fieldName;
7007
      }
7008
 
7009
      public short getThriftFieldId() {
7010
        return _thriftId;
7011
      }
7012
 
7013
      public String getFieldName() {
7014
        return _fieldName;
7015
      }
7016
    }
7017
 
7018
    // isset id assignments
648 chandransh 7019
    private static final int __PROVIDERID_ISSET_ID = 0;
7020
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7021
 
3430 rajveer 7022
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7023
    static {
3430 rajveer 7024
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7025
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7027
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7029
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7030
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7031
    }
7032
 
648 chandransh 7033
    public getShipmentInfo_args() {
442 rajveer 7034
    }
7035
 
648 chandransh 7036
    public getShipmentInfo_args(
6643 rajveer 7037
      String awbNumber,
648 chandransh 7038
      long providerId)
442 rajveer 7039
    {
7040
      this();
6643 rajveer 7041
      this.awbNumber = awbNumber;
648 chandransh 7042
      this.providerId = providerId;
7043
      setProviderIdIsSet(true);
442 rajveer 7044
    }
7045
 
7046
    /**
7047
     * Performs a deep copy on <i>other</i>.
7048
     */
648 chandransh 7049
    public getShipmentInfo_args(getShipmentInfo_args other) {
7050
      __isset_bit_vector.clear();
7051
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7052
      if (other.isSetAwbNumber()) {
7053
        this.awbNumber = other.awbNumber;
442 rajveer 7054
      }
648 chandransh 7055
      this.providerId = other.providerId;
442 rajveer 7056
    }
7057
 
648 chandransh 7058
    public getShipmentInfo_args deepCopy() {
7059
      return new getShipmentInfo_args(this);
442 rajveer 7060
    }
7061
 
3430 rajveer 7062
    @Override
7063
    public void clear() {
6643 rajveer 7064
      this.awbNumber = null;
3430 rajveer 7065
      setProviderIdIsSet(false);
7066
      this.providerId = 0;
442 rajveer 7067
    }
7068
 
6643 rajveer 7069
    public String getAwbNumber() {
7070
      return this.awbNumber;
442 rajveer 7071
    }
7072
 
6643 rajveer 7073
    public void setAwbNumber(String awbNumber) {
7074
      this.awbNumber = awbNumber;
442 rajveer 7075
    }
7076
 
6643 rajveer 7077
    public void unsetAwbNumber() {
7078
      this.awbNumber = null;
442 rajveer 7079
    }
7080
 
6643 rajveer 7081
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7082
    public boolean isSetAwbNumber() {
7083
      return this.awbNumber != null;
442 rajveer 7084
    }
7085
 
6643 rajveer 7086
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7087
      if (!value) {
6643 rajveer 7088
        this.awbNumber = null;
442 rajveer 7089
      }
7090
    }
7091
 
648 chandransh 7092
    public long getProviderId() {
7093
      return this.providerId;
442 rajveer 7094
    }
7095
 
3430 rajveer 7096
    public void setProviderId(long providerId) {
648 chandransh 7097
      this.providerId = providerId;
7098
      setProviderIdIsSet(true);
442 rajveer 7099
    }
7100
 
648 chandransh 7101
    public void unsetProviderId() {
7102
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7103
    }
7104
 
3430 rajveer 7105
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7106
    public boolean isSetProviderId() {
7107
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7108
    }
7109
 
648 chandransh 7110
    public void setProviderIdIsSet(boolean value) {
7111
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7112
    }
7113
 
7114
    public void setFieldValue(_Fields field, Object value) {
7115
      switch (field) {
6643 rajveer 7116
      case AWB_NUMBER:
442 rajveer 7117
        if (value == null) {
6643 rajveer 7118
          unsetAwbNumber();
442 rajveer 7119
        } else {
6643 rajveer 7120
          setAwbNumber((String)value);
442 rajveer 7121
        }
7122
        break;
7123
 
648 chandransh 7124
      case PROVIDER_ID:
442 rajveer 7125
        if (value == null) {
648 chandransh 7126
          unsetProviderId();
442 rajveer 7127
        } else {
648 chandransh 7128
          setProviderId((Long)value);
442 rajveer 7129
        }
7130
        break;
7131
 
7132
      }
7133
    }
7134
 
7135
    public Object getFieldValue(_Fields field) {
7136
      switch (field) {
6643 rajveer 7137
      case AWB_NUMBER:
7138
        return getAwbNumber();
442 rajveer 7139
 
648 chandransh 7140
      case PROVIDER_ID:
3430 rajveer 7141
        return Long.valueOf(getProviderId());
442 rajveer 7142
 
7143
      }
7144
      throw new IllegalStateException();
7145
    }
7146
 
3430 rajveer 7147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7148
    public boolean isSet(_Fields field) {
7149
      if (field == null) {
7150
        throw new IllegalArgumentException();
7151
      }
442 rajveer 7152
 
7153
      switch (field) {
6643 rajveer 7154
      case AWB_NUMBER:
7155
        return isSetAwbNumber();
648 chandransh 7156
      case PROVIDER_ID:
7157
        return isSetProviderId();
442 rajveer 7158
      }
7159
      throw new IllegalStateException();
7160
    }
7161
 
7162
    @Override
7163
    public boolean equals(Object that) {
7164
      if (that == null)
7165
        return false;
648 chandransh 7166
      if (that instanceof getShipmentInfo_args)
7167
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7168
      return false;
7169
    }
7170
 
648 chandransh 7171
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7172
      if (that == null)
7173
        return false;
7174
 
6643 rajveer 7175
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7176
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7177
      if (this_present_awbNumber || that_present_awbNumber) {
7178
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7179
          return false;
6643 rajveer 7180
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7181
          return false;
7182
      }
7183
 
648 chandransh 7184
      boolean this_present_providerId = true;
7185
      boolean that_present_providerId = true;
7186
      if (this_present_providerId || that_present_providerId) {
7187
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7188
          return false;
648 chandransh 7189
        if (this.providerId != that.providerId)
442 rajveer 7190
          return false;
7191
      }
7192
 
7193
      return true;
7194
    }
7195
 
7196
    @Override
7197
    public int hashCode() {
7198
      return 0;
7199
    }
7200
 
648 chandransh 7201
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7202
      if (!getClass().equals(other.getClass())) {
7203
        return getClass().getName().compareTo(other.getClass().getName());
7204
      }
7205
 
7206
      int lastComparison = 0;
648 chandransh 7207
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7208
 
6643 rajveer 7209
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7210
      if (lastComparison != 0) {
7211
        return lastComparison;
7212
      }
6643 rajveer 7213
      if (isSetAwbNumber()) {
7214
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7215
        if (lastComparison != 0) {
7216
          return lastComparison;
7217
        }
442 rajveer 7218
      }
3430 rajveer 7219
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7220
      if (lastComparison != 0) {
7221
        return lastComparison;
7222
      }
3430 rajveer 7223
      if (isSetProviderId()) {
7224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7225
        if (lastComparison != 0) {
7226
          return lastComparison;
7227
        }
442 rajveer 7228
      }
7229
      return 0;
7230
    }
7231
 
3430 rajveer 7232
    public _Fields fieldForId(int fieldId) {
7233
      return _Fields.findByThriftId(fieldId);
7234
    }
7235
 
7236
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7237
      org.apache.thrift.protocol.TField field;
442 rajveer 7238
      iprot.readStructBegin();
7239
      while (true)
7240
      {
7241
        field = iprot.readFieldBegin();
3430 rajveer 7242
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7243
          break;
7244
        }
3430 rajveer 7245
        switch (field.id) {
6643 rajveer 7246
          case 1: // AWB_NUMBER
3430 rajveer 7247
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7248
              this.awbNumber = iprot.readString();
3430 rajveer 7249
            } else { 
7250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7251
            }
7252
            break;
7253
          case 2: // PROVIDER_ID
7254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7255
              this.providerId = iprot.readI64();
7256
              setProviderIdIsSet(true);
7257
            } else { 
7258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7259
            }
7260
            break;
7261
          default:
7262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7263
        }
3430 rajveer 7264
        iprot.readFieldEnd();
442 rajveer 7265
      }
7266
      iprot.readStructEnd();
7267
      validate();
7268
    }
7269
 
3430 rajveer 7270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7271
      validate();
7272
 
7273
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7274
      if (this.awbNumber != null) {
7275
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7276
        oprot.writeString(this.awbNumber);
442 rajveer 7277
        oprot.writeFieldEnd();
7278
      }
648 chandransh 7279
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7280
      oprot.writeI64(this.providerId);
7281
      oprot.writeFieldEnd();
442 rajveer 7282
      oprot.writeFieldStop();
7283
      oprot.writeStructEnd();
7284
    }
7285
 
7286
    @Override
7287
    public String toString() {
648 chandransh 7288
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7289
      boolean first = true;
7290
 
6643 rajveer 7291
      sb.append("awbNumber:");
7292
      if (this.awbNumber == null) {
442 rajveer 7293
        sb.append("null");
7294
      } else {
6643 rajveer 7295
        sb.append(this.awbNumber);
442 rajveer 7296
      }
7297
      first = false;
7298
      if (!first) sb.append(", ");
648 chandransh 7299
      sb.append("providerId:");
7300
      sb.append(this.providerId);
442 rajveer 7301
      first = false;
7302
      sb.append(")");
7303
      return sb.toString();
7304
    }
7305
 
3430 rajveer 7306
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7307
      // check for required fields
7308
    }
7309
 
3430 rajveer 7310
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7311
      try {
7312
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7313
      } catch (org.apache.thrift.TException te) {
7314
        throw new java.io.IOException(te);
7315
      }
7316
    }
7317
 
7318
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7319
      try {
7320
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7321
      } catch (org.apache.thrift.TException te) {
7322
        throw new java.io.IOException(te);
7323
      }
7324
    }
7325
 
442 rajveer 7326
  }
7327
 
3430 rajveer 7328
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7329
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7330
 
3430 rajveer 7331
    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);
7332
    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 7333
 
3430 rajveer 7334
    private List<AwbUpdate> success; // required
7335
    private LogisticsServiceException se; // required
412 ashish 7336
 
7337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7338
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7339
      SUCCESS((short)0, "success"),
7340
      SE((short)1, "se");
412 ashish 7341
 
7342
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7343
 
7344
      static {
7345
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7346
          byName.put(field.getFieldName(), field);
7347
        }
7348
      }
7349
 
7350
      /**
7351
       * Find the _Fields constant that matches fieldId, or null if its not found.
7352
       */
7353
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7354
        switch(fieldId) {
7355
          case 0: // SUCCESS
7356
            return SUCCESS;
7357
          case 1: // SE
7358
            return SE;
7359
          default:
7360
            return null;
7361
        }
412 ashish 7362
      }
7363
 
7364
      /**
7365
       * Find the _Fields constant that matches fieldId, throwing an exception
7366
       * if it is not found.
7367
       */
7368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7369
        _Fields fields = findByThriftId(fieldId);
7370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7371
        return fields;
7372
      }
7373
 
7374
      /**
7375
       * Find the _Fields constant that matches name, or null if its not found.
7376
       */
7377
      public static _Fields findByName(String name) {
7378
        return byName.get(name);
7379
      }
7380
 
7381
      private final short _thriftId;
7382
      private final String _fieldName;
7383
 
7384
      _Fields(short thriftId, String fieldName) {
7385
        _thriftId = thriftId;
7386
        _fieldName = fieldName;
7387
      }
7388
 
7389
      public short getThriftFieldId() {
7390
        return _thriftId;
7391
      }
7392
 
7393
      public String getFieldName() {
7394
        return _fieldName;
7395
      }
7396
    }
7397
 
7398
    // isset id assignments
7399
 
3430 rajveer 7400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7401
    static {
3430 rajveer 7402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7403
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7404
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7405
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7406
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7410
    }
7411
 
7412
    public getShipmentInfo_result() {
7413
    }
7414
 
7415
    public getShipmentInfo_result(
648 chandransh 7416
      List<AwbUpdate> success,
7417
      LogisticsServiceException se)
412 ashish 7418
    {
7419
      this();
7420
      this.success = success;
648 chandransh 7421
      this.se = se;
412 ashish 7422
    }
7423
 
7424
    /**
7425
     * Performs a deep copy on <i>other</i>.
7426
     */
7427
    public getShipmentInfo_result(getShipmentInfo_result other) {
7428
      if (other.isSetSuccess()) {
648 chandransh 7429
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7430
        for (AwbUpdate other_element : other.success) {
7431
          __this__success.add(new AwbUpdate(other_element));
7432
        }
7433
        this.success = __this__success;
412 ashish 7434
      }
648 chandransh 7435
      if (other.isSetSe()) {
7436
        this.se = new LogisticsServiceException(other.se);
7437
      }
412 ashish 7438
    }
7439
 
7440
    public getShipmentInfo_result deepCopy() {
7441
      return new getShipmentInfo_result(this);
7442
    }
7443
 
3430 rajveer 7444
    @Override
7445
    public void clear() {
7446
      this.success = null;
7447
      this.se = null;
412 ashish 7448
    }
7449
 
7450
    public int getSuccessSize() {
7451
      return (this.success == null) ? 0 : this.success.size();
7452
    }
7453
 
648 chandransh 7454
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7455
      return (this.success == null) ? null : this.success.iterator();
7456
    }
7457
 
648 chandransh 7458
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7459
      if (this.success == null) {
648 chandransh 7460
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7461
      }
7462
      this.success.add(elem);
7463
    }
7464
 
648 chandransh 7465
    public List<AwbUpdate> getSuccess() {
412 ashish 7466
      return this.success;
7467
    }
7468
 
3430 rajveer 7469
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7470
      this.success = success;
7471
    }
7472
 
7473
    public void unsetSuccess() {
7474
      this.success = null;
7475
    }
7476
 
3430 rajveer 7477
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7478
    public boolean isSetSuccess() {
7479
      return this.success != null;
7480
    }
7481
 
7482
    public void setSuccessIsSet(boolean value) {
7483
      if (!value) {
7484
        this.success = null;
7485
      }
7486
    }
7487
 
648 chandransh 7488
    public LogisticsServiceException getSe() {
7489
      return this.se;
412 ashish 7490
    }
7491
 
3430 rajveer 7492
    public void setSe(LogisticsServiceException se) {
648 chandransh 7493
      this.se = se;
412 ashish 7494
    }
7495
 
648 chandransh 7496
    public void unsetSe() {
7497
      this.se = null;
412 ashish 7498
    }
7499
 
3430 rajveer 7500
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7501
    public boolean isSetSe() {
7502
      return this.se != null;
412 ashish 7503
    }
7504
 
648 chandransh 7505
    public void setSeIsSet(boolean value) {
7506
      if (!value) {
7507
        this.se = null;
412 ashish 7508
      }
7509
    }
7510
 
7511
    public void setFieldValue(_Fields field, Object value) {
7512
      switch (field) {
648 chandransh 7513
      case SUCCESS:
412 ashish 7514
        if (value == null) {
648 chandransh 7515
          unsetSuccess();
412 ashish 7516
        } else {
648 chandransh 7517
          setSuccess((List<AwbUpdate>)value);
412 ashish 7518
        }
7519
        break;
7520
 
648 chandransh 7521
      case SE:
412 ashish 7522
        if (value == null) {
648 chandransh 7523
          unsetSe();
412 ashish 7524
        } else {
648 chandransh 7525
          setSe((LogisticsServiceException)value);
412 ashish 7526
        }
7527
        break;
7528
 
7529
      }
7530
    }
7531
 
7532
    public Object getFieldValue(_Fields field) {
7533
      switch (field) {
648 chandransh 7534
      case SUCCESS:
7535
        return getSuccess();
412 ashish 7536
 
648 chandransh 7537
      case SE:
7538
        return getSe();
412 ashish 7539
 
7540
      }
7541
      throw new IllegalStateException();
7542
    }
7543
 
3430 rajveer 7544
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7545
    public boolean isSet(_Fields field) {
7546
      if (field == null) {
7547
        throw new IllegalArgumentException();
7548
      }
412 ashish 7549
 
7550
      switch (field) {
648 chandransh 7551
      case SUCCESS:
7552
        return isSetSuccess();
7553
      case SE:
7554
        return isSetSe();
412 ashish 7555
      }
7556
      throw new IllegalStateException();
7557
    }
7558
 
7559
    @Override
7560
    public boolean equals(Object that) {
7561
      if (that == null)
7562
        return false;
648 chandransh 7563
      if (that instanceof getShipmentInfo_result)
7564
        return this.equals((getShipmentInfo_result)that);
412 ashish 7565
      return false;
7566
    }
7567
 
648 chandransh 7568
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7569
      if (that == null)
7570
        return false;
7571
 
648 chandransh 7572
      boolean this_present_success = true && this.isSetSuccess();
7573
      boolean that_present_success = true && that.isSetSuccess();
7574
      if (this_present_success || that_present_success) {
7575
        if (!(this_present_success && that_present_success))
412 ashish 7576
          return false;
648 chandransh 7577
        if (!this.success.equals(that.success))
412 ashish 7578
          return false;
7579
      }
7580
 
648 chandransh 7581
      boolean this_present_se = true && this.isSetSe();
7582
      boolean that_present_se = true && that.isSetSe();
7583
      if (this_present_se || that_present_se) {
7584
        if (!(this_present_se && that_present_se))
412 ashish 7585
          return false;
648 chandransh 7586
        if (!this.se.equals(that.se))
412 ashish 7587
          return false;
7588
      }
7589
 
7590
      return true;
7591
    }
7592
 
7593
    @Override
7594
    public int hashCode() {
7595
      return 0;
7596
    }
7597
 
648 chandransh 7598
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7599
      if (!getClass().equals(other.getClass())) {
7600
        return getClass().getName().compareTo(other.getClass().getName());
7601
      }
7602
 
7603
      int lastComparison = 0;
648 chandransh 7604
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7605
 
3430 rajveer 7606
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7607
      if (lastComparison != 0) {
7608
        return lastComparison;
7609
      }
3430 rajveer 7610
      if (isSetSuccess()) {
7611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7612
        if (lastComparison != 0) {
7613
          return lastComparison;
7614
        }
412 ashish 7615
      }
3430 rajveer 7616
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7617
      if (lastComparison != 0) {
7618
        return lastComparison;
7619
      }
3430 rajveer 7620
      if (isSetSe()) {
7621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7622
        if (lastComparison != 0) {
7623
          return lastComparison;
7624
        }
412 ashish 7625
      }
7626
      return 0;
7627
    }
7628
 
3430 rajveer 7629
    public _Fields fieldForId(int fieldId) {
7630
      return _Fields.findByThriftId(fieldId);
7631
    }
7632
 
7633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7634
      org.apache.thrift.protocol.TField field;
412 ashish 7635
      iprot.readStructBegin();
7636
      while (true)
7637
      {
7638
        field = iprot.readFieldBegin();
3430 rajveer 7639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7640
          break;
7641
        }
3430 rajveer 7642
        switch (field.id) {
7643
          case 0: // SUCCESS
7644
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7645
              {
7792 anupam.sin 7646
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7647
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7648
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7649
                {
7792 anupam.sin 7650
                  AwbUpdate _elem10; // required
7651
                  _elem10 = new AwbUpdate();
7652
                  _elem10.read(iprot);
7653
                  this.success.add(_elem10);
412 ashish 7654
                }
3430 rajveer 7655
                iprot.readListEnd();
412 ashish 7656
              }
3430 rajveer 7657
            } else { 
7658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7659
            }
7660
            break;
7661
          case 1: // SE
7662
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7663
              this.se = new LogisticsServiceException();
7664
              this.se.read(iprot);
7665
            } else { 
7666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7667
            }
7668
            break;
7669
          default:
7670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7671
        }
3430 rajveer 7672
        iprot.readFieldEnd();
412 ashish 7673
      }
7674
      iprot.readStructEnd();
7675
      validate();
7676
    }
7677
 
3430 rajveer 7678
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7679
      oprot.writeStructBegin(STRUCT_DESC);
7680
 
7681
      if (this.isSetSuccess()) {
7682
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7683
        {
3430 rajveer 7684
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7685
          for (AwbUpdate _iter11 : this.success)
412 ashish 7686
          {
7792 anupam.sin 7687
            _iter11.write(oprot);
412 ashish 7688
          }
7689
          oprot.writeListEnd();
7690
        }
7691
        oprot.writeFieldEnd();
648 chandransh 7692
      } else if (this.isSetSe()) {
7693
        oprot.writeFieldBegin(SE_FIELD_DESC);
7694
        this.se.write(oprot);
7695
        oprot.writeFieldEnd();
412 ashish 7696
      }
7697
      oprot.writeFieldStop();
7698
      oprot.writeStructEnd();
7699
    }
7700
 
7701
    @Override
7702
    public String toString() {
648 chandransh 7703
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7704
      boolean first = true;
7705
 
7706
      sb.append("success:");
7707
      if (this.success == null) {
7708
        sb.append("null");
7709
      } else {
7710
        sb.append(this.success);
7711
      }
7712
      first = false;
648 chandransh 7713
      if (!first) sb.append(", ");
7714
      sb.append("se:");
7715
      if (this.se == null) {
7716
        sb.append("null");
7717
      } else {
7718
        sb.append(this.se);
7719
      }
7720
      first = false;
412 ashish 7721
      sb.append(")");
7722
      return sb.toString();
7723
    }
7724
 
3430 rajveer 7725
    public void validate() throws org.apache.thrift.TException {
412 ashish 7726
      // check for required fields
7727
    }
7728
 
3430 rajveer 7729
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7730
      try {
7731
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7732
      } catch (org.apache.thrift.TException te) {
7733
        throw new java.io.IOException(te);
7734
      }
7735
    }
7736
 
7737
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7738
      try {
7739
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7740
      } catch (org.apache.thrift.TException te) {
7741
        throw new java.io.IOException(te);
7742
      }
7743
    }
7744
 
412 ashish 7745
  }
7746
 
6643 rajveer 7747
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7748
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7749
 
7750
    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);
7751
 
7752
    private AwbUpdate update; // required
7753
 
7754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7755
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7756
      UPDATE((short)1, "update");
7757
 
7758
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7759
 
7760
      static {
7761
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7762
          byName.put(field.getFieldName(), field);
7763
        }
7764
      }
7765
 
7766
      /**
7767
       * Find the _Fields constant that matches fieldId, or null if its not found.
7768
       */
7769
      public static _Fields findByThriftId(int fieldId) {
7770
        switch(fieldId) {
7771
          case 1: // UPDATE
7772
            return UPDATE;
7773
          default:
7774
            return null;
7775
        }
7776
      }
7777
 
7778
      /**
7779
       * Find the _Fields constant that matches fieldId, throwing an exception
7780
       * if it is not found.
7781
       */
7782
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7783
        _Fields fields = findByThriftId(fieldId);
7784
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7785
        return fields;
7786
      }
7787
 
7788
      /**
7789
       * Find the _Fields constant that matches name, or null if its not found.
7790
       */
7791
      public static _Fields findByName(String name) {
7792
        return byName.get(name);
7793
      }
7794
 
7795
      private final short _thriftId;
7796
      private final String _fieldName;
7797
 
7798
      _Fields(short thriftId, String fieldName) {
7799
        _thriftId = thriftId;
7800
        _fieldName = fieldName;
7801
      }
7802
 
7803
      public short getThriftFieldId() {
7804
        return _thriftId;
7805
      }
7806
 
7807
      public String getFieldName() {
7808
        return _fieldName;
7809
      }
7810
    }
7811
 
7812
    // isset id assignments
7813
 
7814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7815
    static {
7816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7817
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7818
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7821
    }
7822
 
7823
    public storeShipmentInfo_args() {
7824
    }
7825
 
7826
    public storeShipmentInfo_args(
7827
      AwbUpdate update)
7828
    {
7829
      this();
7830
      this.update = update;
7831
    }
7832
 
7833
    /**
7834
     * Performs a deep copy on <i>other</i>.
7835
     */
7836
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7837
      if (other.isSetUpdate()) {
7838
        this.update = new AwbUpdate(other.update);
7839
      }
7840
    }
7841
 
7842
    public storeShipmentInfo_args deepCopy() {
7843
      return new storeShipmentInfo_args(this);
7844
    }
7845
 
7846
    @Override
7847
    public void clear() {
7848
      this.update = null;
7849
    }
7850
 
7851
    public AwbUpdate getUpdate() {
7852
      return this.update;
7853
    }
7854
 
7855
    public void setUpdate(AwbUpdate update) {
7856
      this.update = update;
7857
    }
7858
 
7859
    public void unsetUpdate() {
7860
      this.update = null;
7861
    }
7862
 
7863
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7864
    public boolean isSetUpdate() {
7865
      return this.update != null;
7866
    }
7867
 
7868
    public void setUpdateIsSet(boolean value) {
7869
      if (!value) {
7870
        this.update = null;
7871
      }
7872
    }
7873
 
7874
    public void setFieldValue(_Fields field, Object value) {
7875
      switch (field) {
7876
      case UPDATE:
7877
        if (value == null) {
7878
          unsetUpdate();
7879
        } else {
7880
          setUpdate((AwbUpdate)value);
7881
        }
7882
        break;
7883
 
7884
      }
7885
    }
7886
 
7887
    public Object getFieldValue(_Fields field) {
7888
      switch (field) {
7889
      case UPDATE:
7890
        return getUpdate();
7891
 
7892
      }
7893
      throw new IllegalStateException();
7894
    }
7895
 
7896
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7897
    public boolean isSet(_Fields field) {
7898
      if (field == null) {
7899
        throw new IllegalArgumentException();
7900
      }
7901
 
7902
      switch (field) {
7903
      case UPDATE:
7904
        return isSetUpdate();
7905
      }
7906
      throw new IllegalStateException();
7907
    }
7908
 
7909
    @Override
7910
    public boolean equals(Object that) {
7911
      if (that == null)
7912
        return false;
7913
      if (that instanceof storeShipmentInfo_args)
7914
        return this.equals((storeShipmentInfo_args)that);
7915
      return false;
7916
    }
7917
 
7918
    public boolean equals(storeShipmentInfo_args that) {
7919
      if (that == null)
7920
        return false;
7921
 
7922
      boolean this_present_update = true && this.isSetUpdate();
7923
      boolean that_present_update = true && that.isSetUpdate();
7924
      if (this_present_update || that_present_update) {
7925
        if (!(this_present_update && that_present_update))
7926
          return false;
7927
        if (!this.update.equals(that.update))
7928
          return false;
7929
      }
7930
 
7931
      return true;
7932
    }
7933
 
7934
    @Override
7935
    public int hashCode() {
7936
      return 0;
7937
    }
7938
 
7939
    public int compareTo(storeShipmentInfo_args other) {
7940
      if (!getClass().equals(other.getClass())) {
7941
        return getClass().getName().compareTo(other.getClass().getName());
7942
      }
7943
 
7944
      int lastComparison = 0;
7945
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7946
 
7947
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7948
      if (lastComparison != 0) {
7949
        return lastComparison;
7950
      }
7951
      if (isSetUpdate()) {
7952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7953
        if (lastComparison != 0) {
7954
          return lastComparison;
7955
        }
7956
      }
7957
      return 0;
7958
    }
7959
 
7960
    public _Fields fieldForId(int fieldId) {
7961
      return _Fields.findByThriftId(fieldId);
7962
    }
7963
 
7964
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7965
      org.apache.thrift.protocol.TField field;
7966
      iprot.readStructBegin();
7967
      while (true)
7968
      {
7969
        field = iprot.readFieldBegin();
7970
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7971
          break;
7972
        }
7973
        switch (field.id) {
7974
          case 1: // UPDATE
7975
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7976
              this.update = new AwbUpdate();
7977
              this.update.read(iprot);
7978
            } else { 
7979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7980
            }
7981
            break;
7982
          default:
7983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7984
        }
7985
        iprot.readFieldEnd();
7986
      }
7987
      iprot.readStructEnd();
7988
      validate();
7989
    }
7990
 
7991
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7992
      validate();
7993
 
7994
      oprot.writeStructBegin(STRUCT_DESC);
7995
      if (this.update != null) {
7996
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7997
        this.update.write(oprot);
7998
        oprot.writeFieldEnd();
7999
      }
8000
      oprot.writeFieldStop();
8001
      oprot.writeStructEnd();
8002
    }
8003
 
8004
    @Override
8005
    public String toString() {
8006
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8007
      boolean first = true;
8008
 
8009
      sb.append("update:");
8010
      if (this.update == null) {
8011
        sb.append("null");
8012
      } else {
8013
        sb.append(this.update);
8014
      }
8015
      first = false;
8016
      sb.append(")");
8017
      return sb.toString();
8018
    }
8019
 
8020
    public void validate() throws org.apache.thrift.TException {
8021
      // check for required fields
8022
    }
8023
 
8024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8025
      try {
8026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8027
      } catch (org.apache.thrift.TException te) {
8028
        throw new java.io.IOException(te);
8029
      }
8030
    }
8031
 
8032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8033
      try {
8034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8035
      } catch (org.apache.thrift.TException te) {
8036
        throw new java.io.IOException(te);
8037
      }
8038
    }
8039
 
8040
  }
8041
 
8042
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8044
 
8045
    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);
8046
 
8047
    private LogisticsServiceException se; // required
8048
 
8049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8051
      SE((short)1, "se");
8052
 
8053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8054
 
8055
      static {
8056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8057
          byName.put(field.getFieldName(), field);
8058
        }
8059
      }
8060
 
8061
      /**
8062
       * Find the _Fields constant that matches fieldId, or null if its not found.
8063
       */
8064
      public static _Fields findByThriftId(int fieldId) {
8065
        switch(fieldId) {
8066
          case 1: // SE
8067
            return SE;
8068
          default:
8069
            return null;
8070
        }
8071
      }
8072
 
8073
      /**
8074
       * Find the _Fields constant that matches fieldId, throwing an exception
8075
       * if it is not found.
8076
       */
8077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8078
        _Fields fields = findByThriftId(fieldId);
8079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8080
        return fields;
8081
      }
8082
 
8083
      /**
8084
       * Find the _Fields constant that matches name, or null if its not found.
8085
       */
8086
      public static _Fields findByName(String name) {
8087
        return byName.get(name);
8088
      }
8089
 
8090
      private final short _thriftId;
8091
      private final String _fieldName;
8092
 
8093
      _Fields(short thriftId, String fieldName) {
8094
        _thriftId = thriftId;
8095
        _fieldName = fieldName;
8096
      }
8097
 
8098
      public short getThriftFieldId() {
8099
        return _thriftId;
8100
      }
8101
 
8102
      public String getFieldName() {
8103
        return _fieldName;
8104
      }
8105
    }
8106
 
8107
    // isset id assignments
8108
 
8109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8110
    static {
8111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8112
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8116
    }
8117
 
8118
    public storeShipmentInfo_result() {
8119
    }
8120
 
8121
    public storeShipmentInfo_result(
8122
      LogisticsServiceException se)
8123
    {
8124
      this();
8125
      this.se = se;
8126
    }
8127
 
8128
    /**
8129
     * Performs a deep copy on <i>other</i>.
8130
     */
8131
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8132
      if (other.isSetSe()) {
8133
        this.se = new LogisticsServiceException(other.se);
8134
      }
8135
    }
8136
 
8137
    public storeShipmentInfo_result deepCopy() {
8138
      return new storeShipmentInfo_result(this);
8139
    }
8140
 
8141
    @Override
8142
    public void clear() {
8143
      this.se = null;
8144
    }
8145
 
8146
    public LogisticsServiceException getSe() {
8147
      return this.se;
8148
    }
8149
 
8150
    public void setSe(LogisticsServiceException se) {
8151
      this.se = se;
8152
    }
8153
 
8154
    public void unsetSe() {
8155
      this.se = null;
8156
    }
8157
 
8158
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8159
    public boolean isSetSe() {
8160
      return this.se != null;
8161
    }
8162
 
8163
    public void setSeIsSet(boolean value) {
8164
      if (!value) {
8165
        this.se = null;
8166
      }
8167
    }
8168
 
8169
    public void setFieldValue(_Fields field, Object value) {
8170
      switch (field) {
8171
      case SE:
8172
        if (value == null) {
8173
          unsetSe();
8174
        } else {
8175
          setSe((LogisticsServiceException)value);
8176
        }
8177
        break;
8178
 
8179
      }
8180
    }
8181
 
8182
    public Object getFieldValue(_Fields field) {
8183
      switch (field) {
8184
      case SE:
8185
        return getSe();
8186
 
8187
      }
8188
      throw new IllegalStateException();
8189
    }
8190
 
8191
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8192
    public boolean isSet(_Fields field) {
8193
      if (field == null) {
8194
        throw new IllegalArgumentException();
8195
      }
8196
 
8197
      switch (field) {
8198
      case SE:
8199
        return isSetSe();
8200
      }
8201
      throw new IllegalStateException();
8202
    }
8203
 
8204
    @Override
8205
    public boolean equals(Object that) {
8206
      if (that == null)
8207
        return false;
8208
      if (that instanceof storeShipmentInfo_result)
8209
        return this.equals((storeShipmentInfo_result)that);
8210
      return false;
8211
    }
8212
 
8213
    public boolean equals(storeShipmentInfo_result that) {
8214
      if (that == null)
8215
        return false;
8216
 
8217
      boolean this_present_se = true && this.isSetSe();
8218
      boolean that_present_se = true && that.isSetSe();
8219
      if (this_present_se || that_present_se) {
8220
        if (!(this_present_se && that_present_se))
8221
          return false;
8222
        if (!this.se.equals(that.se))
8223
          return false;
8224
      }
8225
 
8226
      return true;
8227
    }
8228
 
8229
    @Override
8230
    public int hashCode() {
8231
      return 0;
8232
    }
8233
 
8234
    public int compareTo(storeShipmentInfo_result other) {
8235
      if (!getClass().equals(other.getClass())) {
8236
        return getClass().getName().compareTo(other.getClass().getName());
8237
      }
8238
 
8239
      int lastComparison = 0;
8240
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8241
 
8242
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8243
      if (lastComparison != 0) {
8244
        return lastComparison;
8245
      }
8246
      if (isSetSe()) {
8247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8248
        if (lastComparison != 0) {
8249
          return lastComparison;
8250
        }
8251
      }
8252
      return 0;
8253
    }
8254
 
8255
    public _Fields fieldForId(int fieldId) {
8256
      return _Fields.findByThriftId(fieldId);
8257
    }
8258
 
8259
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8260
      org.apache.thrift.protocol.TField field;
8261
      iprot.readStructBegin();
8262
      while (true)
8263
      {
8264
        field = iprot.readFieldBegin();
8265
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8266
          break;
8267
        }
8268
        switch (field.id) {
8269
          case 1: // SE
8270
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8271
              this.se = new LogisticsServiceException();
8272
              this.se.read(iprot);
8273
            } else { 
8274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8275
            }
8276
            break;
8277
          default:
8278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8279
        }
8280
        iprot.readFieldEnd();
8281
      }
8282
      iprot.readStructEnd();
8283
      validate();
8284
    }
8285
 
8286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8287
      oprot.writeStructBegin(STRUCT_DESC);
8288
 
8289
      if (this.isSetSe()) {
8290
        oprot.writeFieldBegin(SE_FIELD_DESC);
8291
        this.se.write(oprot);
8292
        oprot.writeFieldEnd();
8293
      }
8294
      oprot.writeFieldStop();
8295
      oprot.writeStructEnd();
8296
    }
8297
 
8298
    @Override
8299
    public String toString() {
8300
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8301
      boolean first = true;
8302
 
8303
      sb.append("se:");
8304
      if (this.se == null) {
8305
        sb.append("null");
8306
      } else {
8307
        sb.append(this.se);
8308
      }
8309
      first = false;
8310
      sb.append(")");
8311
      return sb.toString();
8312
    }
8313
 
8314
    public void validate() throws org.apache.thrift.TException {
8315
      // check for required fields
8316
    }
8317
 
8318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8319
      try {
8320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8321
      } catch (org.apache.thrift.TException te) {
8322
        throw new java.io.IOException(te);
8323
      }
8324
    }
8325
 
8326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8327
      try {
8328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8329
      } catch (org.apache.thrift.TException te) {
8330
        throw new java.io.IOException(te);
8331
      }
8332
    }
8333
 
8334
  }
8335
 
3430 rajveer 8336
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8337
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8338
 
3430 rajveer 8339
    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);
8340
    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 8341
 
3430 rajveer 8342
    private long providerId; // required
8343
    private String pinCode; // required
730 chandransh 8344
 
8345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8347
      PROVIDER_ID((short)1, "providerId"),
8348
      PIN_CODE((short)2, "pinCode");
8349
 
8350
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8351
 
8352
      static {
8353
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8354
          byName.put(field.getFieldName(), field);
8355
        }
8356
      }
8357
 
8358
      /**
8359
       * Find the _Fields constant that matches fieldId, or null if its not found.
8360
       */
8361
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8362
        switch(fieldId) {
8363
          case 1: // PROVIDER_ID
8364
            return PROVIDER_ID;
8365
          case 2: // PIN_CODE
8366
            return PIN_CODE;
8367
          default:
8368
            return null;
8369
        }
730 chandransh 8370
      }
8371
 
8372
      /**
8373
       * Find the _Fields constant that matches fieldId, throwing an exception
8374
       * if it is not found.
8375
       */
8376
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8377
        _Fields fields = findByThriftId(fieldId);
8378
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8379
        return fields;
8380
      }
8381
 
8382
      /**
8383
       * Find the _Fields constant that matches name, or null if its not found.
8384
       */
8385
      public static _Fields findByName(String name) {
8386
        return byName.get(name);
8387
      }
8388
 
8389
      private final short _thriftId;
8390
      private final String _fieldName;
8391
 
8392
      _Fields(short thriftId, String fieldName) {
8393
        _thriftId = thriftId;
8394
        _fieldName = fieldName;
8395
      }
8396
 
8397
      public short getThriftFieldId() {
8398
        return _thriftId;
8399
      }
8400
 
8401
      public String getFieldName() {
8402
        return _fieldName;
8403
      }
8404
    }
8405
 
8406
    // isset id assignments
8407
    private static final int __PROVIDERID_ISSET_ID = 0;
8408
    private BitSet __isset_bit_vector = new BitSet(1);
8409
 
3430 rajveer 8410
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8411
    static {
3430 rajveer 8412
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8413
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8414
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8415
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8416
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8417
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8418
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8419
    }
8420
 
8421
    public getDestinationCode_args() {
8422
    }
8423
 
8424
    public getDestinationCode_args(
8425
      long providerId,
8426
      String pinCode)
8427
    {
8428
      this();
8429
      this.providerId = providerId;
8430
      setProviderIdIsSet(true);
8431
      this.pinCode = pinCode;
8432
    }
8433
 
8434
    /**
8435
     * Performs a deep copy on <i>other</i>.
8436
     */
8437
    public getDestinationCode_args(getDestinationCode_args other) {
8438
      __isset_bit_vector.clear();
8439
      __isset_bit_vector.or(other.__isset_bit_vector);
8440
      this.providerId = other.providerId;
8441
      if (other.isSetPinCode()) {
8442
        this.pinCode = other.pinCode;
8443
      }
8444
    }
8445
 
8446
    public getDestinationCode_args deepCopy() {
8447
      return new getDestinationCode_args(this);
8448
    }
8449
 
3430 rajveer 8450
    @Override
8451
    public void clear() {
8452
      setProviderIdIsSet(false);
8453
      this.providerId = 0;
8454
      this.pinCode = null;
730 chandransh 8455
    }
8456
 
8457
    public long getProviderId() {
8458
      return this.providerId;
8459
    }
8460
 
3430 rajveer 8461
    public void setProviderId(long providerId) {
730 chandransh 8462
      this.providerId = providerId;
8463
      setProviderIdIsSet(true);
8464
    }
8465
 
8466
    public void unsetProviderId() {
8467
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8468
    }
8469
 
3430 rajveer 8470
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8471
    public boolean isSetProviderId() {
8472
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8473
    }
8474
 
8475
    public void setProviderIdIsSet(boolean value) {
8476
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8477
    }
8478
 
8479
    public String getPinCode() {
8480
      return this.pinCode;
8481
    }
8482
 
3430 rajveer 8483
    public void setPinCode(String pinCode) {
730 chandransh 8484
      this.pinCode = pinCode;
8485
    }
8486
 
8487
    public void unsetPinCode() {
8488
      this.pinCode = null;
8489
    }
8490
 
3430 rajveer 8491
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8492
    public boolean isSetPinCode() {
8493
      return this.pinCode != null;
8494
    }
8495
 
8496
    public void setPinCodeIsSet(boolean value) {
8497
      if (!value) {
8498
        this.pinCode = null;
8499
      }
8500
    }
8501
 
8502
    public void setFieldValue(_Fields field, Object value) {
8503
      switch (field) {
8504
      case PROVIDER_ID:
8505
        if (value == null) {
8506
          unsetProviderId();
8507
        } else {
8508
          setProviderId((Long)value);
8509
        }
8510
        break;
8511
 
8512
      case PIN_CODE:
8513
        if (value == null) {
8514
          unsetPinCode();
8515
        } else {
8516
          setPinCode((String)value);
8517
        }
8518
        break;
8519
 
8520
      }
8521
    }
8522
 
8523
    public Object getFieldValue(_Fields field) {
8524
      switch (field) {
8525
      case PROVIDER_ID:
3430 rajveer 8526
        return Long.valueOf(getProviderId());
730 chandransh 8527
 
8528
      case PIN_CODE:
8529
        return getPinCode();
8530
 
8531
      }
8532
      throw new IllegalStateException();
8533
    }
8534
 
3430 rajveer 8535
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8536
    public boolean isSet(_Fields field) {
8537
      if (field == null) {
8538
        throw new IllegalArgumentException();
8539
      }
730 chandransh 8540
 
8541
      switch (field) {
8542
      case PROVIDER_ID:
8543
        return isSetProviderId();
8544
      case PIN_CODE:
8545
        return isSetPinCode();
8546
      }
8547
      throw new IllegalStateException();
8548
    }
8549
 
8550
    @Override
8551
    public boolean equals(Object that) {
8552
      if (that == null)
8553
        return false;
8554
      if (that instanceof getDestinationCode_args)
8555
        return this.equals((getDestinationCode_args)that);
8556
      return false;
8557
    }
8558
 
8559
    public boolean equals(getDestinationCode_args that) {
8560
      if (that == null)
8561
        return false;
8562
 
8563
      boolean this_present_providerId = true;
8564
      boolean that_present_providerId = true;
8565
      if (this_present_providerId || that_present_providerId) {
8566
        if (!(this_present_providerId && that_present_providerId))
8567
          return false;
8568
        if (this.providerId != that.providerId)
8569
          return false;
8570
      }
8571
 
8572
      boolean this_present_pinCode = true && this.isSetPinCode();
8573
      boolean that_present_pinCode = true && that.isSetPinCode();
8574
      if (this_present_pinCode || that_present_pinCode) {
8575
        if (!(this_present_pinCode && that_present_pinCode))
8576
          return false;
8577
        if (!this.pinCode.equals(that.pinCode))
8578
          return false;
8579
      }
8580
 
8581
      return true;
8582
    }
8583
 
8584
    @Override
8585
    public int hashCode() {
8586
      return 0;
8587
    }
8588
 
8589
    public int compareTo(getDestinationCode_args other) {
8590
      if (!getClass().equals(other.getClass())) {
8591
        return getClass().getName().compareTo(other.getClass().getName());
8592
      }
8593
 
8594
      int lastComparison = 0;
8595
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8596
 
3430 rajveer 8597
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8598
      if (lastComparison != 0) {
8599
        return lastComparison;
8600
      }
3430 rajveer 8601
      if (isSetProviderId()) {
8602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8603
        if (lastComparison != 0) {
8604
          return lastComparison;
8605
        }
730 chandransh 8606
      }
3430 rajveer 8607
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8608
      if (lastComparison != 0) {
8609
        return lastComparison;
8610
      }
3430 rajveer 8611
      if (isSetPinCode()) {
8612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8613
        if (lastComparison != 0) {
8614
          return lastComparison;
8615
        }
730 chandransh 8616
      }
8617
      return 0;
8618
    }
8619
 
3430 rajveer 8620
    public _Fields fieldForId(int fieldId) {
8621
      return _Fields.findByThriftId(fieldId);
8622
    }
8623
 
8624
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8625
      org.apache.thrift.protocol.TField field;
730 chandransh 8626
      iprot.readStructBegin();
8627
      while (true)
8628
      {
8629
        field = iprot.readFieldBegin();
3430 rajveer 8630
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8631
          break;
8632
        }
3430 rajveer 8633
        switch (field.id) {
8634
          case 1: // PROVIDER_ID
8635
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8636
              this.providerId = iprot.readI64();
8637
              setProviderIdIsSet(true);
8638
            } else { 
8639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8640
            }
8641
            break;
8642
          case 2: // PIN_CODE
8643
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8644
              this.pinCode = iprot.readString();
8645
            } else { 
8646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8647
            }
8648
            break;
8649
          default:
8650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8651
        }
3430 rajveer 8652
        iprot.readFieldEnd();
730 chandransh 8653
      }
8654
      iprot.readStructEnd();
8655
      validate();
8656
    }
8657
 
3430 rajveer 8658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8659
      validate();
8660
 
8661
      oprot.writeStructBegin(STRUCT_DESC);
8662
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8663
      oprot.writeI64(this.providerId);
8664
      oprot.writeFieldEnd();
8665
      if (this.pinCode != null) {
8666
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8667
        oprot.writeString(this.pinCode);
8668
        oprot.writeFieldEnd();
8669
      }
8670
      oprot.writeFieldStop();
8671
      oprot.writeStructEnd();
8672
    }
8673
 
8674
    @Override
8675
    public String toString() {
8676
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8677
      boolean first = true;
8678
 
8679
      sb.append("providerId:");
8680
      sb.append(this.providerId);
8681
      first = false;
8682
      if (!first) sb.append(", ");
8683
      sb.append("pinCode:");
8684
      if (this.pinCode == null) {
8685
        sb.append("null");
8686
      } else {
8687
        sb.append(this.pinCode);
8688
      }
8689
      first = false;
8690
      sb.append(")");
8691
      return sb.toString();
8692
    }
8693
 
3430 rajveer 8694
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8695
      // check for required fields
8696
    }
8697
 
3430 rajveer 8698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8699
      try {
8700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8701
      } catch (org.apache.thrift.TException te) {
8702
        throw new java.io.IOException(te);
8703
      }
8704
    }
8705
 
8706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8707
      try {
8708
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8709
      } catch (org.apache.thrift.TException te) {
8710
        throw new java.io.IOException(te);
8711
      }
8712
    }
8713
 
730 chandransh 8714
  }
8715
 
3430 rajveer 8716
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8718
 
3430 rajveer 8719
    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);
8720
    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 8721
 
3430 rajveer 8722
    private String success; // required
8723
    private LogisticsServiceException se; // required
730 chandransh 8724
 
8725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8727
      SUCCESS((short)0, "success"),
8728
      SE((short)1, "se");
8729
 
8730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8731
 
8732
      static {
8733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8734
          byName.put(field.getFieldName(), field);
8735
        }
8736
      }
8737
 
8738
      /**
8739
       * Find the _Fields constant that matches fieldId, or null if its not found.
8740
       */
8741
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8742
        switch(fieldId) {
8743
          case 0: // SUCCESS
8744
            return SUCCESS;
8745
          case 1: // SE
8746
            return SE;
8747
          default:
8748
            return null;
8749
        }
730 chandransh 8750
      }
8751
 
8752
      /**
8753
       * Find the _Fields constant that matches fieldId, throwing an exception
8754
       * if it is not found.
8755
       */
8756
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8757
        _Fields fields = findByThriftId(fieldId);
8758
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8759
        return fields;
8760
      }
8761
 
8762
      /**
8763
       * Find the _Fields constant that matches name, or null if its not found.
8764
       */
8765
      public static _Fields findByName(String name) {
8766
        return byName.get(name);
8767
      }
8768
 
8769
      private final short _thriftId;
8770
      private final String _fieldName;
8771
 
8772
      _Fields(short thriftId, String fieldName) {
8773
        _thriftId = thriftId;
8774
        _fieldName = fieldName;
8775
      }
8776
 
8777
      public short getThriftFieldId() {
8778
        return _thriftId;
8779
      }
8780
 
8781
      public String getFieldName() {
8782
        return _fieldName;
8783
      }
8784
    }
8785
 
8786
    // isset id assignments
8787
 
3430 rajveer 8788
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8789
    static {
3430 rajveer 8790
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8791
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8793
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8797
    }
8798
 
8799
    public getDestinationCode_result() {
8800
    }
8801
 
8802
    public getDestinationCode_result(
8803
      String success,
8804
      LogisticsServiceException se)
8805
    {
8806
      this();
8807
      this.success = success;
8808
      this.se = se;
8809
    }
8810
 
8811
    /**
8812
     * Performs a deep copy on <i>other</i>.
8813
     */
8814
    public getDestinationCode_result(getDestinationCode_result other) {
8815
      if (other.isSetSuccess()) {
8816
        this.success = other.success;
8817
      }
8818
      if (other.isSetSe()) {
8819
        this.se = new LogisticsServiceException(other.se);
8820
      }
8821
    }
8822
 
8823
    public getDestinationCode_result deepCopy() {
8824
      return new getDestinationCode_result(this);
8825
    }
8826
 
3430 rajveer 8827
    @Override
8828
    public void clear() {
8829
      this.success = null;
8830
      this.se = null;
730 chandransh 8831
    }
8832
 
8833
    public String getSuccess() {
8834
      return this.success;
8835
    }
8836
 
3430 rajveer 8837
    public void setSuccess(String success) {
730 chandransh 8838
      this.success = success;
8839
    }
8840
 
8841
    public void unsetSuccess() {
8842
      this.success = null;
8843
    }
8844
 
3430 rajveer 8845
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8846
    public boolean isSetSuccess() {
8847
      return this.success != null;
8848
    }
8849
 
8850
    public void setSuccessIsSet(boolean value) {
8851
      if (!value) {
8852
        this.success = null;
8853
      }
8854
    }
8855
 
8856
    public LogisticsServiceException getSe() {
8857
      return this.se;
8858
    }
8859
 
3430 rajveer 8860
    public void setSe(LogisticsServiceException se) {
730 chandransh 8861
      this.se = se;
8862
    }
8863
 
8864
    public void unsetSe() {
8865
      this.se = null;
8866
    }
8867
 
3430 rajveer 8868
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8869
    public boolean isSetSe() {
8870
      return this.se != null;
8871
    }
8872
 
8873
    public void setSeIsSet(boolean value) {
8874
      if (!value) {
8875
        this.se = null;
8876
      }
8877
    }
8878
 
8879
    public void setFieldValue(_Fields field, Object value) {
8880
      switch (field) {
8881
      case SUCCESS:
8882
        if (value == null) {
8883
          unsetSuccess();
8884
        } else {
8885
          setSuccess((String)value);
8886
        }
8887
        break;
8888
 
8889
      case SE:
8890
        if (value == null) {
8891
          unsetSe();
8892
        } else {
8893
          setSe((LogisticsServiceException)value);
8894
        }
8895
        break;
8896
 
8897
      }
8898
    }
8899
 
8900
    public Object getFieldValue(_Fields field) {
8901
      switch (field) {
8902
      case SUCCESS:
8903
        return getSuccess();
8904
 
8905
      case SE:
8906
        return getSe();
8907
 
8908
      }
8909
      throw new IllegalStateException();
8910
    }
8911
 
3430 rajveer 8912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8913
    public boolean isSet(_Fields field) {
8914
      if (field == null) {
8915
        throw new IllegalArgumentException();
8916
      }
730 chandransh 8917
 
8918
      switch (field) {
8919
      case SUCCESS:
8920
        return isSetSuccess();
8921
      case SE:
8922
        return isSetSe();
8923
      }
8924
      throw new IllegalStateException();
8925
    }
8926
 
8927
    @Override
8928
    public boolean equals(Object that) {
8929
      if (that == null)
8930
        return false;
8931
      if (that instanceof getDestinationCode_result)
8932
        return this.equals((getDestinationCode_result)that);
8933
      return false;
8934
    }
8935
 
8936
    public boolean equals(getDestinationCode_result that) {
8937
      if (that == null)
8938
        return false;
8939
 
8940
      boolean this_present_success = true && this.isSetSuccess();
8941
      boolean that_present_success = true && that.isSetSuccess();
8942
      if (this_present_success || that_present_success) {
8943
        if (!(this_present_success && that_present_success))
8944
          return false;
8945
        if (!this.success.equals(that.success))
8946
          return false;
8947
      }
8948
 
8949
      boolean this_present_se = true && this.isSetSe();
8950
      boolean that_present_se = true && that.isSetSe();
8951
      if (this_present_se || that_present_se) {
8952
        if (!(this_present_se && that_present_se))
8953
          return false;
8954
        if (!this.se.equals(that.se))
8955
          return false;
8956
      }
8957
 
8958
      return true;
8959
    }
8960
 
8961
    @Override
8962
    public int hashCode() {
8963
      return 0;
8964
    }
8965
 
8966
    public int compareTo(getDestinationCode_result other) {
8967
      if (!getClass().equals(other.getClass())) {
8968
        return getClass().getName().compareTo(other.getClass().getName());
8969
      }
8970
 
8971
      int lastComparison = 0;
8972
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8973
 
3430 rajveer 8974
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8975
      if (lastComparison != 0) {
8976
        return lastComparison;
8977
      }
3430 rajveer 8978
      if (isSetSuccess()) {
8979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8980
        if (lastComparison != 0) {
8981
          return lastComparison;
8982
        }
730 chandransh 8983
      }
3430 rajveer 8984
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8985
      if (lastComparison != 0) {
8986
        return lastComparison;
8987
      }
3430 rajveer 8988
      if (isSetSe()) {
8989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8990
        if (lastComparison != 0) {
8991
          return lastComparison;
8992
        }
730 chandransh 8993
      }
8994
      return 0;
8995
    }
8996
 
3430 rajveer 8997
    public _Fields fieldForId(int fieldId) {
8998
      return _Fields.findByThriftId(fieldId);
8999
    }
9000
 
9001
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9002
      org.apache.thrift.protocol.TField field;
730 chandransh 9003
      iprot.readStructBegin();
9004
      while (true)
9005
      {
9006
        field = iprot.readFieldBegin();
3430 rajveer 9007
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9008
          break;
9009
        }
3430 rajveer 9010
        switch (field.id) {
9011
          case 0: // SUCCESS
9012
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9013
              this.success = iprot.readString();
9014
            } else { 
9015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9016
            }
9017
            break;
9018
          case 1: // SE
9019
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9020
              this.se = new LogisticsServiceException();
9021
              this.se.read(iprot);
9022
            } else { 
9023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9024
            }
9025
            break;
9026
          default:
9027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9028
        }
3430 rajveer 9029
        iprot.readFieldEnd();
730 chandransh 9030
      }
9031
      iprot.readStructEnd();
9032
      validate();
9033
    }
9034
 
3430 rajveer 9035
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9036
      oprot.writeStructBegin(STRUCT_DESC);
9037
 
9038
      if (this.isSetSuccess()) {
9039
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9040
        oprot.writeString(this.success);
9041
        oprot.writeFieldEnd();
9042
      } else if (this.isSetSe()) {
9043
        oprot.writeFieldBegin(SE_FIELD_DESC);
9044
        this.se.write(oprot);
9045
        oprot.writeFieldEnd();
9046
      }
9047
      oprot.writeFieldStop();
9048
      oprot.writeStructEnd();
9049
    }
9050
 
9051
    @Override
9052
    public String toString() {
9053
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9054
      boolean first = true;
9055
 
9056
      sb.append("success:");
9057
      if (this.success == null) {
9058
        sb.append("null");
9059
      } else {
9060
        sb.append(this.success);
9061
      }
9062
      first = false;
9063
      if (!first) sb.append(", ");
9064
      sb.append("se:");
9065
      if (this.se == null) {
9066
        sb.append("null");
9067
      } else {
9068
        sb.append(this.se);
9069
      }
9070
      first = false;
9071
      sb.append(")");
9072
      return sb.toString();
9073
    }
9074
 
3430 rajveer 9075
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9076
      // check for required fields
9077
    }
9078
 
3430 rajveer 9079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9080
      try {
9081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9082
      } catch (org.apache.thrift.TException te) {
9083
        throw new java.io.IOException(te);
9084
      }
9085
    }
9086
 
9087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9088
      try {
9089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9090
      } catch (org.apache.thrift.TException te) {
9091
        throw new java.io.IOException(te);
9092
      }
9093
    }
9094
 
730 chandransh 9095
  }
9096
 
3430 rajveer 9097
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9099
 
3430 rajveer 9100
    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);
9101
    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 9102
 
3430 rajveer 9103
    private long providerId; // required
9104
    private String type; // required
1139 chandransh 9105
 
9106
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9107
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9108
      PROVIDER_ID((short)1, "providerId"),
9109
      TYPE((short)2, "type");
1139 chandransh 9110
 
9111
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9112
 
9113
      static {
9114
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9115
          byName.put(field.getFieldName(), field);
9116
        }
9117
      }
9118
 
9119
      /**
9120
       * Find the _Fields constant that matches fieldId, or null if its not found.
9121
       */
9122
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9123
        switch(fieldId) {
9124
          case 1: // PROVIDER_ID
9125
            return PROVIDER_ID;
9126
          case 2: // TYPE
9127
            return TYPE;
9128
          default:
9129
            return null;
9130
        }
1139 chandransh 9131
      }
9132
 
9133
      /**
9134
       * Find the _Fields constant that matches fieldId, throwing an exception
9135
       * if it is not found.
9136
       */
9137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9138
        _Fields fields = findByThriftId(fieldId);
9139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9140
        return fields;
9141
      }
9142
 
9143
      /**
9144
       * Find the _Fields constant that matches name, or null if its not found.
9145
       */
9146
      public static _Fields findByName(String name) {
9147
        return byName.get(name);
9148
      }
9149
 
9150
      private final short _thriftId;
9151
      private final String _fieldName;
9152
 
9153
      _Fields(short thriftId, String fieldName) {
9154
        _thriftId = thriftId;
9155
        _fieldName = fieldName;
9156
      }
9157
 
9158
      public short getThriftFieldId() {
9159
        return _thriftId;
9160
      }
9161
 
9162
      public String getFieldName() {
9163
        return _fieldName;
9164
      }
9165
    }
9166
 
9167
    // isset id assignments
9168
    private static final int __PROVIDERID_ISSET_ID = 0;
9169
    private BitSet __isset_bit_vector = new BitSet(1);
9170
 
3430 rajveer 9171
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9172
    static {
3430 rajveer 9173
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9174
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9175
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9176
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9177
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9180
    }
9181
 
9182
    public getFreeAwbCount_args() {
9183
    }
9184
 
9185
    public getFreeAwbCount_args(
3103 chandransh 9186
      long providerId,
9187
      String type)
1139 chandransh 9188
    {
9189
      this();
9190
      this.providerId = providerId;
9191
      setProviderIdIsSet(true);
3103 chandransh 9192
      this.type = type;
1139 chandransh 9193
    }
9194
 
9195
    /**
9196
     * Performs a deep copy on <i>other</i>.
9197
     */
9198
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9199
      __isset_bit_vector.clear();
9200
      __isset_bit_vector.or(other.__isset_bit_vector);
9201
      this.providerId = other.providerId;
3103 chandransh 9202
      if (other.isSetType()) {
9203
        this.type = other.type;
9204
      }
1139 chandransh 9205
    }
9206
 
9207
    public getFreeAwbCount_args deepCopy() {
9208
      return new getFreeAwbCount_args(this);
9209
    }
9210
 
3430 rajveer 9211
    @Override
9212
    public void clear() {
9213
      setProviderIdIsSet(false);
9214
      this.providerId = 0;
9215
      this.type = null;
1139 chandransh 9216
    }
9217
 
9218
    public long getProviderId() {
9219
      return this.providerId;
9220
    }
9221
 
3430 rajveer 9222
    public void setProviderId(long providerId) {
1139 chandransh 9223
      this.providerId = providerId;
9224
      setProviderIdIsSet(true);
9225
    }
9226
 
9227
    public void unsetProviderId() {
9228
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9229
    }
9230
 
3430 rajveer 9231
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9232
    public boolean isSetProviderId() {
9233
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9234
    }
9235
 
9236
    public void setProviderIdIsSet(boolean value) {
9237
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9238
    }
9239
 
3103 chandransh 9240
    public String getType() {
9241
      return this.type;
9242
    }
9243
 
3430 rajveer 9244
    public void setType(String type) {
3103 chandransh 9245
      this.type = type;
9246
    }
9247
 
9248
    public void unsetType() {
9249
      this.type = null;
9250
    }
9251
 
3430 rajveer 9252
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9253
    public boolean isSetType() {
9254
      return this.type != null;
9255
    }
9256
 
9257
    public void setTypeIsSet(boolean value) {
9258
      if (!value) {
9259
        this.type = null;
9260
      }
9261
    }
9262
 
1139 chandransh 9263
    public void setFieldValue(_Fields field, Object value) {
9264
      switch (field) {
9265
      case PROVIDER_ID:
9266
        if (value == null) {
9267
          unsetProviderId();
9268
        } else {
9269
          setProviderId((Long)value);
9270
        }
9271
        break;
9272
 
3103 chandransh 9273
      case TYPE:
9274
        if (value == null) {
9275
          unsetType();
9276
        } else {
9277
          setType((String)value);
9278
        }
9279
        break;
9280
 
1139 chandransh 9281
      }
9282
    }
9283
 
9284
    public Object getFieldValue(_Fields field) {
9285
      switch (field) {
9286
      case PROVIDER_ID:
3430 rajveer 9287
        return Long.valueOf(getProviderId());
1139 chandransh 9288
 
3103 chandransh 9289
      case TYPE:
9290
        return getType();
9291
 
1139 chandransh 9292
      }
9293
      throw new IllegalStateException();
9294
    }
9295
 
3430 rajveer 9296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9297
    public boolean isSet(_Fields field) {
9298
      if (field == null) {
9299
        throw new IllegalArgumentException();
9300
      }
1139 chandransh 9301
 
9302
      switch (field) {
9303
      case PROVIDER_ID:
9304
        return isSetProviderId();
3103 chandransh 9305
      case TYPE:
9306
        return isSetType();
1139 chandransh 9307
      }
9308
      throw new IllegalStateException();
9309
    }
9310
 
9311
    @Override
9312
    public boolean equals(Object that) {
9313
      if (that == null)
9314
        return false;
9315
      if (that instanceof getFreeAwbCount_args)
9316
        return this.equals((getFreeAwbCount_args)that);
9317
      return false;
9318
    }
9319
 
9320
    public boolean equals(getFreeAwbCount_args that) {
9321
      if (that == null)
9322
        return false;
9323
 
9324
      boolean this_present_providerId = true;
9325
      boolean that_present_providerId = true;
9326
      if (this_present_providerId || that_present_providerId) {
9327
        if (!(this_present_providerId && that_present_providerId))
9328
          return false;
9329
        if (this.providerId != that.providerId)
9330
          return false;
9331
      }
9332
 
3103 chandransh 9333
      boolean this_present_type = true && this.isSetType();
9334
      boolean that_present_type = true && that.isSetType();
9335
      if (this_present_type || that_present_type) {
9336
        if (!(this_present_type && that_present_type))
9337
          return false;
9338
        if (!this.type.equals(that.type))
9339
          return false;
9340
      }
9341
 
1139 chandransh 9342
      return true;
9343
    }
9344
 
9345
    @Override
9346
    public int hashCode() {
9347
      return 0;
9348
    }
9349
 
9350
    public int compareTo(getFreeAwbCount_args other) {
9351
      if (!getClass().equals(other.getClass())) {
9352
        return getClass().getName().compareTo(other.getClass().getName());
9353
      }
9354
 
9355
      int lastComparison = 0;
9356
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9357
 
3430 rajveer 9358
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9359
      if (lastComparison != 0) {
9360
        return lastComparison;
9361
      }
3430 rajveer 9362
      if (isSetProviderId()) {
9363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9364
        if (lastComparison != 0) {
9365
          return lastComparison;
9366
        }
1139 chandransh 9367
      }
3430 rajveer 9368
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9369
      if (lastComparison != 0) {
9370
        return lastComparison;
9371
      }
3430 rajveer 9372
      if (isSetType()) {
9373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9374
        if (lastComparison != 0) {
9375
          return lastComparison;
9376
        }
3103 chandransh 9377
      }
1139 chandransh 9378
      return 0;
9379
    }
9380
 
3430 rajveer 9381
    public _Fields fieldForId(int fieldId) {
9382
      return _Fields.findByThriftId(fieldId);
9383
    }
9384
 
9385
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9386
      org.apache.thrift.protocol.TField field;
1139 chandransh 9387
      iprot.readStructBegin();
9388
      while (true)
9389
      {
9390
        field = iprot.readFieldBegin();
3430 rajveer 9391
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9392
          break;
9393
        }
3430 rajveer 9394
        switch (field.id) {
9395
          case 1: // PROVIDER_ID
9396
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9397
              this.providerId = iprot.readI64();
9398
              setProviderIdIsSet(true);
9399
            } else { 
9400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9401
            }
9402
            break;
9403
          case 2: // TYPE
9404
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9405
              this.type = iprot.readString();
9406
            } else { 
9407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9408
            }
9409
            break;
9410
          default:
9411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9412
        }
3430 rajveer 9413
        iprot.readFieldEnd();
1139 chandransh 9414
      }
9415
      iprot.readStructEnd();
9416
      validate();
9417
    }
9418
 
3430 rajveer 9419
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9420
      validate();
9421
 
9422
      oprot.writeStructBegin(STRUCT_DESC);
9423
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9424
      oprot.writeI64(this.providerId);
9425
      oprot.writeFieldEnd();
3103 chandransh 9426
      if (this.type != null) {
9427
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9428
        oprot.writeString(this.type);
9429
        oprot.writeFieldEnd();
9430
      }
1139 chandransh 9431
      oprot.writeFieldStop();
9432
      oprot.writeStructEnd();
9433
    }
9434
 
9435
    @Override
9436
    public String toString() {
9437
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9438
      boolean first = true;
9439
 
9440
      sb.append("providerId:");
9441
      sb.append(this.providerId);
9442
      first = false;
3103 chandransh 9443
      if (!first) sb.append(", ");
9444
      sb.append("type:");
9445
      if (this.type == null) {
9446
        sb.append("null");
9447
      } else {
9448
        sb.append(this.type);
9449
      }
9450
      first = false;
1139 chandransh 9451
      sb.append(")");
9452
      return sb.toString();
9453
    }
9454
 
3430 rajveer 9455
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9456
      // check for required fields
9457
    }
9458
 
3430 rajveer 9459
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9460
      try {
9461
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9462
      } catch (org.apache.thrift.TException te) {
9463
        throw new java.io.IOException(te);
9464
      }
9465
    }
9466
 
9467
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9468
      try {
9469
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9470
      } catch (org.apache.thrift.TException te) {
9471
        throw new java.io.IOException(te);
9472
      }
9473
    }
9474
 
1139 chandransh 9475
  }
9476
 
3430 rajveer 9477
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9478
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9479
 
3430 rajveer 9480
    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 9481
 
3430 rajveer 9482
    private long success; // required
1139 chandransh 9483
 
9484
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9485
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9486
      SUCCESS((short)0, "success");
9487
 
9488
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9489
 
9490
      static {
9491
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9492
          byName.put(field.getFieldName(), field);
9493
        }
9494
      }
9495
 
9496
      /**
9497
       * Find the _Fields constant that matches fieldId, or null if its not found.
9498
       */
9499
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9500
        switch(fieldId) {
9501
          case 0: // SUCCESS
9502
            return SUCCESS;
9503
          default:
9504
            return null;
9505
        }
1139 chandransh 9506
      }
9507
 
9508
      /**
9509
       * Find the _Fields constant that matches fieldId, throwing an exception
9510
       * if it is not found.
9511
       */
9512
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9513
        _Fields fields = findByThriftId(fieldId);
9514
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9515
        return fields;
9516
      }
9517
 
9518
      /**
9519
       * Find the _Fields constant that matches name, or null if its not found.
9520
       */
9521
      public static _Fields findByName(String name) {
9522
        return byName.get(name);
9523
      }
9524
 
9525
      private final short _thriftId;
9526
      private final String _fieldName;
9527
 
9528
      _Fields(short thriftId, String fieldName) {
9529
        _thriftId = thriftId;
9530
        _fieldName = fieldName;
9531
      }
9532
 
9533
      public short getThriftFieldId() {
9534
        return _thriftId;
9535
      }
9536
 
9537
      public String getFieldName() {
9538
        return _fieldName;
9539
      }
9540
    }
9541
 
9542
    // isset id assignments
9543
    private static final int __SUCCESS_ISSET_ID = 0;
9544
    private BitSet __isset_bit_vector = new BitSet(1);
9545
 
3430 rajveer 9546
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9547
    static {
3430 rajveer 9548
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9549
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9553
    }
9554
 
9555
    public getFreeAwbCount_result() {
9556
    }
9557
 
9558
    public getFreeAwbCount_result(
9559
      long success)
9560
    {
9561
      this();
9562
      this.success = success;
9563
      setSuccessIsSet(true);
9564
    }
9565
 
9566
    /**
9567
     * Performs a deep copy on <i>other</i>.
9568
     */
9569
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9570
      __isset_bit_vector.clear();
9571
      __isset_bit_vector.or(other.__isset_bit_vector);
9572
      this.success = other.success;
9573
    }
9574
 
9575
    public getFreeAwbCount_result deepCopy() {
9576
      return new getFreeAwbCount_result(this);
9577
    }
9578
 
3430 rajveer 9579
    @Override
9580
    public void clear() {
9581
      setSuccessIsSet(false);
9582
      this.success = 0;
1139 chandransh 9583
    }
9584
 
9585
    public long getSuccess() {
9586
      return this.success;
9587
    }
9588
 
3430 rajveer 9589
    public void setSuccess(long success) {
1139 chandransh 9590
      this.success = success;
9591
      setSuccessIsSet(true);
9592
    }
9593
 
9594
    public void unsetSuccess() {
9595
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9596
    }
9597
 
3430 rajveer 9598
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9599
    public boolean isSetSuccess() {
9600
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9601
    }
9602
 
9603
    public void setSuccessIsSet(boolean value) {
9604
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9605
    }
9606
 
9607
    public void setFieldValue(_Fields field, Object value) {
9608
      switch (field) {
9609
      case SUCCESS:
9610
        if (value == null) {
9611
          unsetSuccess();
9612
        } else {
9613
          setSuccess((Long)value);
9614
        }
9615
        break;
9616
 
9617
      }
9618
    }
9619
 
9620
    public Object getFieldValue(_Fields field) {
9621
      switch (field) {
9622
      case SUCCESS:
3430 rajveer 9623
        return Long.valueOf(getSuccess());
1139 chandransh 9624
 
9625
      }
9626
      throw new IllegalStateException();
9627
    }
9628
 
3430 rajveer 9629
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9630
    public boolean isSet(_Fields field) {
9631
      if (field == null) {
9632
        throw new IllegalArgumentException();
9633
      }
1139 chandransh 9634
 
9635
      switch (field) {
9636
      case SUCCESS:
9637
        return isSetSuccess();
9638
      }
9639
      throw new IllegalStateException();
9640
    }
9641
 
9642
    @Override
9643
    public boolean equals(Object that) {
9644
      if (that == null)
9645
        return false;
9646
      if (that instanceof getFreeAwbCount_result)
9647
        return this.equals((getFreeAwbCount_result)that);
9648
      return false;
9649
    }
9650
 
9651
    public boolean equals(getFreeAwbCount_result that) {
9652
      if (that == null)
9653
        return false;
9654
 
9655
      boolean this_present_success = true;
9656
      boolean that_present_success = true;
9657
      if (this_present_success || that_present_success) {
9658
        if (!(this_present_success && that_present_success))
9659
          return false;
9660
        if (this.success != that.success)
9661
          return false;
9662
      }
9663
 
9664
      return true;
9665
    }
9666
 
9667
    @Override
9668
    public int hashCode() {
9669
      return 0;
9670
    }
9671
 
9672
    public int compareTo(getFreeAwbCount_result other) {
9673
      if (!getClass().equals(other.getClass())) {
9674
        return getClass().getName().compareTo(other.getClass().getName());
9675
      }
9676
 
9677
      int lastComparison = 0;
9678
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9679
 
3430 rajveer 9680
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9681
      if (lastComparison != 0) {
9682
        return lastComparison;
9683
      }
3430 rajveer 9684
      if (isSetSuccess()) {
9685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9686
        if (lastComparison != 0) {
9687
          return lastComparison;
9688
        }
1139 chandransh 9689
      }
9690
      return 0;
9691
    }
9692
 
3430 rajveer 9693
    public _Fields fieldForId(int fieldId) {
9694
      return _Fields.findByThriftId(fieldId);
9695
    }
9696
 
9697
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9698
      org.apache.thrift.protocol.TField field;
1139 chandransh 9699
      iprot.readStructBegin();
9700
      while (true)
9701
      {
9702
        field = iprot.readFieldBegin();
3430 rajveer 9703
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9704
          break;
9705
        }
3430 rajveer 9706
        switch (field.id) {
9707
          case 0: // SUCCESS
9708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9709
              this.success = iprot.readI64();
9710
              setSuccessIsSet(true);
9711
            } else { 
9712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9713
            }
9714
            break;
9715
          default:
9716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9717
        }
3430 rajveer 9718
        iprot.readFieldEnd();
1139 chandransh 9719
      }
9720
      iprot.readStructEnd();
9721
      validate();
9722
    }
9723
 
3430 rajveer 9724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9725
      oprot.writeStructBegin(STRUCT_DESC);
9726
 
9727
      if (this.isSetSuccess()) {
9728
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9729
        oprot.writeI64(this.success);
9730
        oprot.writeFieldEnd();
9731
      }
9732
      oprot.writeFieldStop();
9733
      oprot.writeStructEnd();
9734
    }
9735
 
9736
    @Override
9737
    public String toString() {
9738
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9739
      boolean first = true;
9740
 
9741
      sb.append("success:");
9742
      sb.append(this.success);
9743
      first = false;
9744
      sb.append(")");
9745
      return sb.toString();
9746
    }
9747
 
3430 rajveer 9748
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9749
      // check for required fields
9750
    }
9751
 
3430 rajveer 9752
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9753
      try {
9754
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9755
      } catch (org.apache.thrift.TException te) {
9756
        throw new java.io.IOException(te);
9757
      }
9758
    }
9759
 
9760
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9761
      try {
9762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9763
      } catch (org.apache.thrift.TException te) {
9764
        throw new java.io.IOException(te);
9765
      }
9766
    }
9767
 
1139 chandransh 9768
  }
9769
 
3430 rajveer 9770
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9772
 
3430 rajveer 9773
    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);
9774
    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 9775
 
3430 rajveer 9776
    private long fromDate; // required
9777
    private long toDate; // required
1730 ankur.sing 9778
 
9779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9781
      FROM_DATE((short)1, "fromDate"),
9782
      TO_DATE((short)2, "toDate");
9783
 
9784
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9785
 
9786
      static {
9787
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9788
          byName.put(field.getFieldName(), field);
9789
        }
9790
      }
9791
 
9792
      /**
9793
       * Find the _Fields constant that matches fieldId, or null if its not found.
9794
       */
9795
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9796
        switch(fieldId) {
9797
          case 1: // FROM_DATE
9798
            return FROM_DATE;
9799
          case 2: // TO_DATE
9800
            return TO_DATE;
9801
          default:
9802
            return null;
9803
        }
1730 ankur.sing 9804
      }
9805
 
9806
      /**
9807
       * Find the _Fields constant that matches fieldId, throwing an exception
9808
       * if it is not found.
9809
       */
9810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9811
        _Fields fields = findByThriftId(fieldId);
9812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9813
        return fields;
9814
      }
9815
 
9816
      /**
9817
       * Find the _Fields constant that matches name, or null if its not found.
9818
       */
9819
      public static _Fields findByName(String name) {
9820
        return byName.get(name);
9821
      }
9822
 
9823
      private final short _thriftId;
9824
      private final String _fieldName;
9825
 
9826
      _Fields(short thriftId, String fieldName) {
9827
        _thriftId = thriftId;
9828
        _fieldName = fieldName;
9829
      }
9830
 
9831
      public short getThriftFieldId() {
9832
        return _thriftId;
9833
      }
9834
 
9835
      public String getFieldName() {
9836
        return _fieldName;
9837
      }
9838
    }
9839
 
9840
    // isset id assignments
9841
    private static final int __FROMDATE_ISSET_ID = 0;
9842
    private static final int __TODATE_ISSET_ID = 1;
9843
    private BitSet __isset_bit_vector = new BitSet(2);
9844
 
3430 rajveer 9845
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9846
    static {
3430 rajveer 9847
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9848
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9849
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9850
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9854
    }
9855
 
9856
    public getHolidays_args() {
9857
    }
9858
 
9859
    public getHolidays_args(
9860
      long fromDate,
9861
      long toDate)
9862
    {
9863
      this();
9864
      this.fromDate = fromDate;
9865
      setFromDateIsSet(true);
9866
      this.toDate = toDate;
9867
      setToDateIsSet(true);
9868
    }
9869
 
9870
    /**
9871
     * Performs a deep copy on <i>other</i>.
9872
     */
9873
    public getHolidays_args(getHolidays_args other) {
9874
      __isset_bit_vector.clear();
9875
      __isset_bit_vector.or(other.__isset_bit_vector);
9876
      this.fromDate = other.fromDate;
9877
      this.toDate = other.toDate;
9878
    }
9879
 
9880
    public getHolidays_args deepCopy() {
9881
      return new getHolidays_args(this);
9882
    }
9883
 
3430 rajveer 9884
    @Override
9885
    public void clear() {
9886
      setFromDateIsSet(false);
9887
      this.fromDate = 0;
9888
      setToDateIsSet(false);
9889
      this.toDate = 0;
1730 ankur.sing 9890
    }
9891
 
9892
    public long getFromDate() {
9893
      return this.fromDate;
9894
    }
9895
 
3430 rajveer 9896
    public void setFromDate(long fromDate) {
1730 ankur.sing 9897
      this.fromDate = fromDate;
9898
      setFromDateIsSet(true);
9899
    }
9900
 
9901
    public void unsetFromDate() {
9902
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9903
    }
9904
 
3430 rajveer 9905
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9906
    public boolean isSetFromDate() {
9907
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9908
    }
9909
 
9910
    public void setFromDateIsSet(boolean value) {
9911
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9912
    }
9913
 
9914
    public long getToDate() {
9915
      return this.toDate;
9916
    }
9917
 
3430 rajveer 9918
    public void setToDate(long toDate) {
1730 ankur.sing 9919
      this.toDate = toDate;
9920
      setToDateIsSet(true);
9921
    }
9922
 
9923
    public void unsetToDate() {
9924
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9925
    }
9926
 
3430 rajveer 9927
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9928
    public boolean isSetToDate() {
9929
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9930
    }
9931
 
9932
    public void setToDateIsSet(boolean value) {
9933
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9934
    }
9935
 
9936
    public void setFieldValue(_Fields field, Object value) {
9937
      switch (field) {
9938
      case FROM_DATE:
9939
        if (value == null) {
9940
          unsetFromDate();
9941
        } else {
9942
          setFromDate((Long)value);
9943
        }
9944
        break;
9945
 
9946
      case TO_DATE:
9947
        if (value == null) {
9948
          unsetToDate();
9949
        } else {
9950
          setToDate((Long)value);
9951
        }
9952
        break;
9953
 
9954
      }
9955
    }
9956
 
9957
    public Object getFieldValue(_Fields field) {
9958
      switch (field) {
9959
      case FROM_DATE:
3430 rajveer 9960
        return Long.valueOf(getFromDate());
1730 ankur.sing 9961
 
9962
      case TO_DATE:
3430 rajveer 9963
        return Long.valueOf(getToDate());
1730 ankur.sing 9964
 
9965
      }
9966
      throw new IllegalStateException();
9967
    }
9968
 
3430 rajveer 9969
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9970
    public boolean isSet(_Fields field) {
9971
      if (field == null) {
9972
        throw new IllegalArgumentException();
9973
      }
1730 ankur.sing 9974
 
9975
      switch (field) {
9976
      case FROM_DATE:
9977
        return isSetFromDate();
9978
      case TO_DATE:
9979
        return isSetToDate();
9980
      }
9981
      throw new IllegalStateException();
9982
    }
9983
 
9984
    @Override
9985
    public boolean equals(Object that) {
9986
      if (that == null)
9987
        return false;
9988
      if (that instanceof getHolidays_args)
9989
        return this.equals((getHolidays_args)that);
9990
      return false;
9991
    }
9992
 
9993
    public boolean equals(getHolidays_args that) {
9994
      if (that == null)
9995
        return false;
9996
 
9997
      boolean this_present_fromDate = true;
9998
      boolean that_present_fromDate = true;
9999
      if (this_present_fromDate || that_present_fromDate) {
10000
        if (!(this_present_fromDate && that_present_fromDate))
10001
          return false;
10002
        if (this.fromDate != that.fromDate)
10003
          return false;
10004
      }
10005
 
10006
      boolean this_present_toDate = true;
10007
      boolean that_present_toDate = true;
10008
      if (this_present_toDate || that_present_toDate) {
10009
        if (!(this_present_toDate && that_present_toDate))
10010
          return false;
10011
        if (this.toDate != that.toDate)
10012
          return false;
10013
      }
10014
 
10015
      return true;
10016
    }
10017
 
10018
    @Override
10019
    public int hashCode() {
10020
      return 0;
10021
    }
10022
 
10023
    public int compareTo(getHolidays_args other) {
10024
      if (!getClass().equals(other.getClass())) {
10025
        return getClass().getName().compareTo(other.getClass().getName());
10026
      }
10027
 
10028
      int lastComparison = 0;
10029
      getHolidays_args typedOther = (getHolidays_args)other;
10030
 
3430 rajveer 10031
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10032
      if (lastComparison != 0) {
10033
        return lastComparison;
10034
      }
3430 rajveer 10035
      if (isSetFromDate()) {
10036
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10037
        if (lastComparison != 0) {
10038
          return lastComparison;
10039
        }
1730 ankur.sing 10040
      }
3430 rajveer 10041
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10042
      if (lastComparison != 0) {
10043
        return lastComparison;
10044
      }
3430 rajveer 10045
      if (isSetToDate()) {
10046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10047
        if (lastComparison != 0) {
10048
          return lastComparison;
10049
        }
1730 ankur.sing 10050
      }
10051
      return 0;
10052
    }
10053
 
3430 rajveer 10054
    public _Fields fieldForId(int fieldId) {
10055
      return _Fields.findByThriftId(fieldId);
10056
    }
10057
 
10058
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10059
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10060
      iprot.readStructBegin();
10061
      while (true)
10062
      {
10063
        field = iprot.readFieldBegin();
3430 rajveer 10064
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10065
          break;
10066
        }
3430 rajveer 10067
        switch (field.id) {
10068
          case 1: // FROM_DATE
10069
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10070
              this.fromDate = iprot.readI64();
10071
              setFromDateIsSet(true);
10072
            } else { 
10073
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10074
            }
10075
            break;
10076
          case 2: // TO_DATE
10077
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10078
              this.toDate = iprot.readI64();
10079
              setToDateIsSet(true);
10080
            } else { 
10081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10082
            }
10083
            break;
10084
          default:
10085
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10086
        }
3430 rajveer 10087
        iprot.readFieldEnd();
1730 ankur.sing 10088
      }
10089
      iprot.readStructEnd();
10090
      validate();
10091
    }
10092
 
3430 rajveer 10093
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10094
      validate();
10095
 
10096
      oprot.writeStructBegin(STRUCT_DESC);
10097
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10098
      oprot.writeI64(this.fromDate);
10099
      oprot.writeFieldEnd();
10100
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10101
      oprot.writeI64(this.toDate);
10102
      oprot.writeFieldEnd();
10103
      oprot.writeFieldStop();
10104
      oprot.writeStructEnd();
10105
    }
10106
 
10107
    @Override
10108
    public String toString() {
10109
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10110
      boolean first = true;
10111
 
10112
      sb.append("fromDate:");
10113
      sb.append(this.fromDate);
10114
      first = false;
10115
      if (!first) sb.append(", ");
10116
      sb.append("toDate:");
10117
      sb.append(this.toDate);
10118
      first = false;
10119
      sb.append(")");
10120
      return sb.toString();
10121
    }
10122
 
3430 rajveer 10123
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10124
      // check for required fields
10125
    }
10126
 
3430 rajveer 10127
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10128
      try {
10129
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10130
      } catch (org.apache.thrift.TException te) {
10131
        throw new java.io.IOException(te);
10132
      }
10133
    }
10134
 
10135
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10136
      try {
10137
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10138
      } catch (org.apache.thrift.TException te) {
10139
        throw new java.io.IOException(te);
10140
      }
10141
    }
10142
 
1730 ankur.sing 10143
  }
10144
 
3430 rajveer 10145
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10146
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10147
 
3430 rajveer 10148
    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 10149
 
3430 rajveer 10150
    private List<Long> success; // required
1730 ankur.sing 10151
 
10152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10154
      SUCCESS((short)0, "success");
10155
 
10156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10157
 
10158
      static {
10159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10160
          byName.put(field.getFieldName(), field);
10161
        }
10162
      }
10163
 
10164
      /**
10165
       * Find the _Fields constant that matches fieldId, or null if its not found.
10166
       */
10167
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10168
        switch(fieldId) {
10169
          case 0: // SUCCESS
10170
            return SUCCESS;
10171
          default:
10172
            return null;
10173
        }
1730 ankur.sing 10174
      }
10175
 
10176
      /**
10177
       * Find the _Fields constant that matches fieldId, throwing an exception
10178
       * if it is not found.
10179
       */
10180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10181
        _Fields fields = findByThriftId(fieldId);
10182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10183
        return fields;
10184
      }
10185
 
10186
      /**
10187
       * Find the _Fields constant that matches name, or null if its not found.
10188
       */
10189
      public static _Fields findByName(String name) {
10190
        return byName.get(name);
10191
      }
10192
 
10193
      private final short _thriftId;
10194
      private final String _fieldName;
10195
 
10196
      _Fields(short thriftId, String fieldName) {
10197
        _thriftId = thriftId;
10198
        _fieldName = fieldName;
10199
      }
10200
 
10201
      public short getThriftFieldId() {
10202
        return _thriftId;
10203
      }
10204
 
10205
      public String getFieldName() {
10206
        return _fieldName;
10207
      }
10208
    }
10209
 
10210
    // isset id assignments
10211
 
3430 rajveer 10212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10213
    static {
3430 rajveer 10214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10216
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10217
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10220
    }
10221
 
10222
    public getHolidays_result() {
10223
    }
10224
 
10225
    public getHolidays_result(
10226
      List<Long> success)
10227
    {
10228
      this();
10229
      this.success = success;
10230
    }
10231
 
10232
    /**
10233
     * Performs a deep copy on <i>other</i>.
10234
     */
10235
    public getHolidays_result(getHolidays_result other) {
10236
      if (other.isSetSuccess()) {
10237
        List<Long> __this__success = new ArrayList<Long>();
10238
        for (Long other_element : other.success) {
10239
          __this__success.add(other_element);
10240
        }
10241
        this.success = __this__success;
10242
      }
10243
    }
10244
 
10245
    public getHolidays_result deepCopy() {
10246
      return new getHolidays_result(this);
10247
    }
10248
 
3430 rajveer 10249
    @Override
10250
    public void clear() {
10251
      this.success = null;
1730 ankur.sing 10252
    }
10253
 
10254
    public int getSuccessSize() {
10255
      return (this.success == null) ? 0 : this.success.size();
10256
    }
10257
 
10258
    public java.util.Iterator<Long> getSuccessIterator() {
10259
      return (this.success == null) ? null : this.success.iterator();
10260
    }
10261
 
10262
    public void addToSuccess(long elem) {
10263
      if (this.success == null) {
10264
        this.success = new ArrayList<Long>();
10265
      }
10266
      this.success.add(elem);
10267
    }
10268
 
10269
    public List<Long> getSuccess() {
10270
      return this.success;
10271
    }
10272
 
3430 rajveer 10273
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10274
      this.success = success;
10275
    }
10276
 
10277
    public void unsetSuccess() {
10278
      this.success = null;
10279
    }
10280
 
3430 rajveer 10281
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10282
    public boolean isSetSuccess() {
10283
      return this.success != null;
10284
    }
10285
 
10286
    public void setSuccessIsSet(boolean value) {
10287
      if (!value) {
10288
        this.success = null;
10289
      }
10290
    }
10291
 
10292
    public void setFieldValue(_Fields field, Object value) {
10293
      switch (field) {
10294
      case SUCCESS:
10295
        if (value == null) {
10296
          unsetSuccess();
10297
        } else {
10298
          setSuccess((List<Long>)value);
10299
        }
10300
        break;
10301
 
10302
      }
10303
    }
10304
 
10305
    public Object getFieldValue(_Fields field) {
10306
      switch (field) {
10307
      case SUCCESS:
10308
        return getSuccess();
10309
 
10310
      }
10311
      throw new IllegalStateException();
10312
    }
10313
 
3430 rajveer 10314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10315
    public boolean isSet(_Fields field) {
10316
      if (field == null) {
10317
        throw new IllegalArgumentException();
10318
      }
1730 ankur.sing 10319
 
10320
      switch (field) {
10321
      case SUCCESS:
10322
        return isSetSuccess();
10323
      }
10324
      throw new IllegalStateException();
10325
    }
10326
 
10327
    @Override
10328
    public boolean equals(Object that) {
10329
      if (that == null)
10330
        return false;
10331
      if (that instanceof getHolidays_result)
10332
        return this.equals((getHolidays_result)that);
10333
      return false;
10334
    }
10335
 
10336
    public boolean equals(getHolidays_result that) {
10337
      if (that == null)
10338
        return false;
10339
 
10340
      boolean this_present_success = true && this.isSetSuccess();
10341
      boolean that_present_success = true && that.isSetSuccess();
10342
      if (this_present_success || that_present_success) {
10343
        if (!(this_present_success && that_present_success))
10344
          return false;
10345
        if (!this.success.equals(that.success))
10346
          return false;
10347
      }
10348
 
10349
      return true;
10350
    }
10351
 
10352
    @Override
10353
    public int hashCode() {
10354
      return 0;
10355
    }
10356
 
10357
    public int compareTo(getHolidays_result other) {
10358
      if (!getClass().equals(other.getClass())) {
10359
        return getClass().getName().compareTo(other.getClass().getName());
10360
      }
10361
 
10362
      int lastComparison = 0;
10363
      getHolidays_result typedOther = (getHolidays_result)other;
10364
 
3430 rajveer 10365
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10366
      if (lastComparison != 0) {
10367
        return lastComparison;
10368
      }
3430 rajveer 10369
      if (isSetSuccess()) {
10370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10371
        if (lastComparison != 0) {
10372
          return lastComparison;
10373
        }
1730 ankur.sing 10374
      }
10375
      return 0;
10376
    }
10377
 
3430 rajveer 10378
    public _Fields fieldForId(int fieldId) {
10379
      return _Fields.findByThriftId(fieldId);
10380
    }
10381
 
10382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10383
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10384
      iprot.readStructBegin();
10385
      while (true)
10386
      {
10387
        field = iprot.readFieldBegin();
3430 rajveer 10388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10389
          break;
10390
        }
3430 rajveer 10391
        switch (field.id) {
10392
          case 0: // SUCCESS
10393
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10394
              {
7792 anupam.sin 10395
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10396
                this.success = new ArrayList<Long>(_list12.size);
10397
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10398
                {
7792 anupam.sin 10399
                  long _elem14; // required
10400
                  _elem14 = iprot.readI64();
10401
                  this.success.add(_elem14);
1730 ankur.sing 10402
                }
3430 rajveer 10403
                iprot.readListEnd();
1730 ankur.sing 10404
              }
3430 rajveer 10405
            } else { 
10406
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10407
            }
10408
            break;
10409
          default:
10410
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10411
        }
3430 rajveer 10412
        iprot.readFieldEnd();
1730 ankur.sing 10413
      }
10414
      iprot.readStructEnd();
10415
      validate();
10416
    }
10417
 
3430 rajveer 10418
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10419
      oprot.writeStructBegin(STRUCT_DESC);
10420
 
10421
      if (this.isSetSuccess()) {
10422
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10423
        {
3430 rajveer 10424
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10425
          for (long _iter15 : this.success)
1730 ankur.sing 10426
          {
7792 anupam.sin 10427
            oprot.writeI64(_iter15);
1730 ankur.sing 10428
          }
10429
          oprot.writeListEnd();
10430
        }
10431
        oprot.writeFieldEnd();
10432
      }
10433
      oprot.writeFieldStop();
10434
      oprot.writeStructEnd();
10435
    }
10436
 
10437
    @Override
10438
    public String toString() {
10439
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10440
      boolean first = true;
10441
 
10442
      sb.append("success:");
10443
      if (this.success == null) {
10444
        sb.append("null");
10445
      } else {
10446
        sb.append(this.success);
10447
      }
10448
      first = false;
10449
      sb.append(")");
10450
      return sb.toString();
10451
    }
10452
 
3430 rajveer 10453
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10454
      // check for required fields
10455
    }
10456
 
3430 rajveer 10457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10458
      try {
10459
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10460
      } catch (org.apache.thrift.TException te) {
10461
        throw new java.io.IOException(te);
10462
      }
10463
    }
10464
 
10465
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10466
      try {
10467
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10468
      } catch (org.apache.thrift.TException te) {
10469
        throw new java.io.IOException(te);
10470
      }
10471
    }
10472
 
1730 ankur.sing 10473
  }
10474
 
4934 amit.gupta 10475
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10476
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10477
 
10478
    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);
10479
    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);
10480
    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);
10481
 
10482
    private long catalogItemId; // required
10483
    private String destination_pin; // required
10484
    private DeliveryType type; // required
10485
 
10486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10488
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10489
      DESTINATION_PIN((short)2, "destination_pin"),
10490
      /**
10491
       * 
10492
       * @see DeliveryType
10493
       */
10494
      TYPE((short)3, "type");
10495
 
10496
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10497
 
10498
      static {
10499
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10500
          byName.put(field.getFieldName(), field);
10501
        }
10502
      }
10503
 
10504
      /**
10505
       * Find the _Fields constant that matches fieldId, or null if its not found.
10506
       */
10507
      public static _Fields findByThriftId(int fieldId) {
10508
        switch(fieldId) {
10509
          case 1: // CATALOG_ITEM_ID
10510
            return CATALOG_ITEM_ID;
10511
          case 2: // DESTINATION_PIN
10512
            return DESTINATION_PIN;
10513
          case 3: // TYPE
10514
            return TYPE;
10515
          default:
10516
            return null;
10517
        }
10518
      }
10519
 
10520
      /**
10521
       * Find the _Fields constant that matches fieldId, throwing an exception
10522
       * if it is not found.
10523
       */
10524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10525
        _Fields fields = findByThriftId(fieldId);
10526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10527
        return fields;
10528
      }
10529
 
10530
      /**
10531
       * Find the _Fields constant that matches name, or null if its not found.
10532
       */
10533
      public static _Fields findByName(String name) {
10534
        return byName.get(name);
10535
      }
10536
 
10537
      private final short _thriftId;
10538
      private final String _fieldName;
10539
 
10540
      _Fields(short thriftId, String fieldName) {
10541
        _thriftId = thriftId;
10542
        _fieldName = fieldName;
10543
      }
10544
 
10545
      public short getThriftFieldId() {
10546
        return _thriftId;
10547
      }
10548
 
10549
      public String getFieldName() {
10550
        return _fieldName;
10551
      }
10552
    }
10553
 
10554
    // isset id assignments
10555
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10556
    private BitSet __isset_bit_vector = new BitSet(1);
10557
 
10558
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10559
    static {
10560
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10561
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10562
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10563
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10564
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10565
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10566
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10567
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10568
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10569
    }
10570
 
10571
    public getEntityLogisticsEstimation_args() {
10572
    }
10573
 
10574
    public getEntityLogisticsEstimation_args(
10575
      long catalogItemId,
10576
      String destination_pin,
10577
      DeliveryType type)
10578
    {
10579
      this();
10580
      this.catalogItemId = catalogItemId;
10581
      setCatalogItemIdIsSet(true);
10582
      this.destination_pin = destination_pin;
10583
      this.type = type;
10584
    }
10585
 
10586
    /**
10587
     * Performs a deep copy on <i>other</i>.
10588
     */
10589
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10590
      __isset_bit_vector.clear();
10591
      __isset_bit_vector.or(other.__isset_bit_vector);
10592
      this.catalogItemId = other.catalogItemId;
10593
      if (other.isSetDestination_pin()) {
10594
        this.destination_pin = other.destination_pin;
10595
      }
10596
      if (other.isSetType()) {
10597
        this.type = other.type;
10598
      }
10599
    }
10600
 
10601
    public getEntityLogisticsEstimation_args deepCopy() {
10602
      return new getEntityLogisticsEstimation_args(this);
10603
    }
10604
 
10605
    @Override
10606
    public void clear() {
10607
      setCatalogItemIdIsSet(false);
10608
      this.catalogItemId = 0;
10609
      this.destination_pin = null;
10610
      this.type = null;
10611
    }
10612
 
10613
    public long getCatalogItemId() {
10614
      return this.catalogItemId;
10615
    }
10616
 
10617
    public void setCatalogItemId(long catalogItemId) {
10618
      this.catalogItemId = catalogItemId;
10619
      setCatalogItemIdIsSet(true);
10620
    }
10621
 
10622
    public void unsetCatalogItemId() {
10623
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10624
    }
10625
 
10626
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10627
    public boolean isSetCatalogItemId() {
10628
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10629
    }
10630
 
10631
    public void setCatalogItemIdIsSet(boolean value) {
10632
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10633
    }
10634
 
10635
    public String getDestination_pin() {
10636
      return this.destination_pin;
10637
    }
10638
 
10639
    public void setDestination_pin(String destination_pin) {
10640
      this.destination_pin = destination_pin;
10641
    }
10642
 
10643
    public void unsetDestination_pin() {
10644
      this.destination_pin = null;
10645
    }
10646
 
10647
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10648
    public boolean isSetDestination_pin() {
10649
      return this.destination_pin != null;
10650
    }
10651
 
10652
    public void setDestination_pinIsSet(boolean value) {
10653
      if (!value) {
10654
        this.destination_pin = null;
10655
      }
10656
    }
10657
 
10658
    /**
10659
     * 
10660
     * @see DeliveryType
10661
     */
10662
    public DeliveryType getType() {
10663
      return this.type;
10664
    }
10665
 
10666
    /**
10667
     * 
10668
     * @see DeliveryType
10669
     */
10670
    public void setType(DeliveryType type) {
10671
      this.type = type;
10672
    }
10673
 
10674
    public void unsetType() {
10675
      this.type = null;
10676
    }
10677
 
10678
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10679
    public boolean isSetType() {
10680
      return this.type != null;
10681
    }
10682
 
10683
    public void setTypeIsSet(boolean value) {
10684
      if (!value) {
10685
        this.type = null;
10686
      }
10687
    }
10688
 
10689
    public void setFieldValue(_Fields field, Object value) {
10690
      switch (field) {
10691
      case CATALOG_ITEM_ID:
10692
        if (value == null) {
10693
          unsetCatalogItemId();
10694
        } else {
10695
          setCatalogItemId((Long)value);
10696
        }
10697
        break;
10698
 
10699
      case DESTINATION_PIN:
10700
        if (value == null) {
10701
          unsetDestination_pin();
10702
        } else {
10703
          setDestination_pin((String)value);
10704
        }
10705
        break;
10706
 
10707
      case TYPE:
10708
        if (value == null) {
10709
          unsetType();
10710
        } else {
10711
          setType((DeliveryType)value);
10712
        }
10713
        break;
10714
 
10715
      }
10716
    }
10717
 
10718
    public Object getFieldValue(_Fields field) {
10719
      switch (field) {
10720
      case CATALOG_ITEM_ID:
10721
        return Long.valueOf(getCatalogItemId());
10722
 
10723
      case DESTINATION_PIN:
10724
        return getDestination_pin();
10725
 
10726
      case TYPE:
10727
        return getType();
10728
 
10729
      }
10730
      throw new IllegalStateException();
10731
    }
10732
 
10733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10734
    public boolean isSet(_Fields field) {
10735
      if (field == null) {
10736
        throw new IllegalArgumentException();
10737
      }
10738
 
10739
      switch (field) {
10740
      case CATALOG_ITEM_ID:
10741
        return isSetCatalogItemId();
10742
      case DESTINATION_PIN:
10743
        return isSetDestination_pin();
10744
      case TYPE:
10745
        return isSetType();
10746
      }
10747
      throw new IllegalStateException();
10748
    }
10749
 
10750
    @Override
10751
    public boolean equals(Object that) {
10752
      if (that == null)
10753
        return false;
10754
      if (that instanceof getEntityLogisticsEstimation_args)
10755
        return this.equals((getEntityLogisticsEstimation_args)that);
10756
      return false;
10757
    }
10758
 
10759
    public boolean equals(getEntityLogisticsEstimation_args that) {
10760
      if (that == null)
10761
        return false;
10762
 
10763
      boolean this_present_catalogItemId = true;
10764
      boolean that_present_catalogItemId = true;
10765
      if (this_present_catalogItemId || that_present_catalogItemId) {
10766
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10767
          return false;
10768
        if (this.catalogItemId != that.catalogItemId)
10769
          return false;
10770
      }
10771
 
10772
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10773
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10774
      if (this_present_destination_pin || that_present_destination_pin) {
10775
        if (!(this_present_destination_pin && that_present_destination_pin))
10776
          return false;
10777
        if (!this.destination_pin.equals(that.destination_pin))
10778
          return false;
10779
      }
10780
 
10781
      boolean this_present_type = true && this.isSetType();
10782
      boolean that_present_type = true && that.isSetType();
10783
      if (this_present_type || that_present_type) {
10784
        if (!(this_present_type && that_present_type))
10785
          return false;
10786
        if (!this.type.equals(that.type))
10787
          return false;
10788
      }
10789
 
10790
      return true;
10791
    }
10792
 
10793
    @Override
10794
    public int hashCode() {
10795
      return 0;
10796
    }
10797
 
10798
    public int compareTo(getEntityLogisticsEstimation_args other) {
10799
      if (!getClass().equals(other.getClass())) {
10800
        return getClass().getName().compareTo(other.getClass().getName());
10801
      }
10802
 
10803
      int lastComparison = 0;
10804
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10805
 
10806
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10807
      if (lastComparison != 0) {
10808
        return lastComparison;
10809
      }
10810
      if (isSetCatalogItemId()) {
10811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10812
        if (lastComparison != 0) {
10813
          return lastComparison;
10814
        }
10815
      }
10816
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10817
      if (lastComparison != 0) {
10818
        return lastComparison;
10819
      }
10820
      if (isSetDestination_pin()) {
10821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10822
        if (lastComparison != 0) {
10823
          return lastComparison;
10824
        }
10825
      }
10826
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10827
      if (lastComparison != 0) {
10828
        return lastComparison;
10829
      }
10830
      if (isSetType()) {
10831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10832
        if (lastComparison != 0) {
10833
          return lastComparison;
10834
        }
10835
      }
10836
      return 0;
10837
    }
10838
 
10839
    public _Fields fieldForId(int fieldId) {
10840
      return _Fields.findByThriftId(fieldId);
10841
    }
10842
 
10843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10844
      org.apache.thrift.protocol.TField field;
10845
      iprot.readStructBegin();
10846
      while (true)
10847
      {
10848
        field = iprot.readFieldBegin();
10849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10850
          break;
10851
        }
10852
        switch (field.id) {
10853
          case 1: // CATALOG_ITEM_ID
10854
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10855
              this.catalogItemId = iprot.readI64();
10856
              setCatalogItemIdIsSet(true);
10857
            } else { 
10858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10859
            }
10860
            break;
10861
          case 2: // DESTINATION_PIN
10862
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10863
              this.destination_pin = iprot.readString();
10864
            } else { 
10865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10866
            }
10867
            break;
10868
          case 3: // TYPE
10869
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10870
              this.type = DeliveryType.findByValue(iprot.readI32());
10871
            } else { 
10872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10873
            }
10874
            break;
10875
          default:
10876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10877
        }
10878
        iprot.readFieldEnd();
10879
      }
10880
      iprot.readStructEnd();
10881
      validate();
10882
    }
10883
 
10884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10885
      validate();
10886
 
10887
      oprot.writeStructBegin(STRUCT_DESC);
10888
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10889
      oprot.writeI64(this.catalogItemId);
10890
      oprot.writeFieldEnd();
10891
      if (this.destination_pin != null) {
10892
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10893
        oprot.writeString(this.destination_pin);
10894
        oprot.writeFieldEnd();
10895
      }
10896
      if (this.type != null) {
10897
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10898
        oprot.writeI32(this.type.getValue());
10899
        oprot.writeFieldEnd();
10900
      }
10901
      oprot.writeFieldStop();
10902
      oprot.writeStructEnd();
10903
    }
10904
 
10905
    @Override
10906
    public String toString() {
10907
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10908
      boolean first = true;
10909
 
10910
      sb.append("catalogItemId:");
10911
      sb.append(this.catalogItemId);
10912
      first = false;
10913
      if (!first) sb.append(", ");
10914
      sb.append("destination_pin:");
10915
      if (this.destination_pin == null) {
10916
        sb.append("null");
10917
      } else {
10918
        sb.append(this.destination_pin);
10919
      }
10920
      first = false;
10921
      if (!first) sb.append(", ");
10922
      sb.append("type:");
10923
      if (this.type == null) {
10924
        sb.append("null");
10925
      } else {
10926
        sb.append(this.type);
10927
      }
10928
      first = false;
10929
      sb.append(")");
10930
      return sb.toString();
10931
    }
10932
 
10933
    public void validate() throws org.apache.thrift.TException {
10934
      // check for required fields
10935
    }
10936
 
10937
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10938
      try {
10939
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10940
      } catch (org.apache.thrift.TException te) {
10941
        throw new java.io.IOException(te);
10942
      }
10943
    }
10944
 
10945
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10946
      try {
10947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10948
      } catch (org.apache.thrift.TException te) {
10949
        throw new java.io.IOException(te);
10950
      }
10951
    }
10952
 
10953
  }
10954
 
10955
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10957
 
10958
    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);
10959
    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);
10960
 
9840 amit.gupta 10961
    private List<ItemText> success; // required
4934 amit.gupta 10962
    private LogisticsServiceException se; // required
10963
 
10964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10966
      SUCCESS((short)0, "success"),
10967
      SE((short)1, "se");
10968
 
10969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10970
 
10971
      static {
10972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10973
          byName.put(field.getFieldName(), field);
10974
        }
10975
      }
10976
 
10977
      /**
10978
       * Find the _Fields constant that matches fieldId, or null if its not found.
10979
       */
10980
      public static _Fields findByThriftId(int fieldId) {
10981
        switch(fieldId) {
10982
          case 0: // SUCCESS
10983
            return SUCCESS;
10984
          case 1: // SE
10985
            return SE;
10986
          default:
10987
            return null;
10988
        }
10989
      }
10990
 
10991
      /**
10992
       * Find the _Fields constant that matches fieldId, throwing an exception
10993
       * if it is not found.
10994
       */
10995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10996
        _Fields fields = findByThriftId(fieldId);
10997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10998
        return fields;
10999
      }
11000
 
11001
      /**
11002
       * Find the _Fields constant that matches name, or null if its not found.
11003
       */
11004
      public static _Fields findByName(String name) {
11005
        return byName.get(name);
11006
      }
11007
 
11008
      private final short _thriftId;
11009
      private final String _fieldName;
11010
 
11011
      _Fields(short thriftId, String fieldName) {
11012
        _thriftId = thriftId;
11013
        _fieldName = fieldName;
11014
      }
11015
 
11016
      public short getThriftFieldId() {
11017
        return _thriftId;
11018
      }
11019
 
11020
      public String getFieldName() {
11021
        return _fieldName;
11022
      }
11023
    }
11024
 
11025
    // isset id assignments
11026
 
11027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11028
    static {
11029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11030
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11031
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11032
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11033
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11037
    }
11038
 
11039
    public getEntityLogisticsEstimation_result() {
11040
    }
11041
 
11042
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11043
      List<ItemText> success,
4934 amit.gupta 11044
      LogisticsServiceException se)
11045
    {
11046
      this();
11047
      this.success = success;
11048
      this.se = se;
11049
    }
11050
 
11051
    /**
11052
     * Performs a deep copy on <i>other</i>.
11053
     */
11054
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11055
      if (other.isSetSuccess()) {
9840 amit.gupta 11056
        List<ItemText> __this__success = new ArrayList<ItemText>();
11057
        for (ItemText other_element : other.success) {
11058
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11059
        }
11060
        this.success = __this__success;
11061
      }
11062
      if (other.isSetSe()) {
11063
        this.se = new LogisticsServiceException(other.se);
11064
      }
11065
    }
11066
 
11067
    public getEntityLogisticsEstimation_result deepCopy() {
11068
      return new getEntityLogisticsEstimation_result(this);
11069
    }
11070
 
11071
    @Override
11072
    public void clear() {
11073
      this.success = null;
11074
      this.se = null;
11075
    }
11076
 
11077
    public int getSuccessSize() {
11078
      return (this.success == null) ? 0 : this.success.size();
11079
    }
11080
 
9840 amit.gupta 11081
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11082
      return (this.success == null) ? null : this.success.iterator();
11083
    }
11084
 
9840 amit.gupta 11085
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11086
      if (this.success == null) {
9840 amit.gupta 11087
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11088
      }
11089
      this.success.add(elem);
11090
    }
11091
 
9840 amit.gupta 11092
    public List<ItemText> getSuccess() {
4934 amit.gupta 11093
      return this.success;
11094
    }
11095
 
9840 amit.gupta 11096
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11097
      this.success = success;
11098
    }
11099
 
11100
    public void unsetSuccess() {
11101
      this.success = null;
11102
    }
11103
 
11104
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11105
    public boolean isSetSuccess() {
11106
      return this.success != null;
11107
    }
11108
 
11109
    public void setSuccessIsSet(boolean value) {
11110
      if (!value) {
11111
        this.success = null;
11112
      }
11113
    }
11114
 
11115
    public LogisticsServiceException getSe() {
11116
      return this.se;
11117
    }
11118
 
11119
    public void setSe(LogisticsServiceException se) {
11120
      this.se = se;
11121
    }
11122
 
11123
    public void unsetSe() {
11124
      this.se = null;
11125
    }
11126
 
11127
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11128
    public boolean isSetSe() {
11129
      return this.se != null;
11130
    }
11131
 
11132
    public void setSeIsSet(boolean value) {
11133
      if (!value) {
11134
        this.se = null;
11135
      }
11136
    }
11137
 
11138
    public void setFieldValue(_Fields field, Object value) {
11139
      switch (field) {
11140
      case SUCCESS:
11141
        if (value == null) {
11142
          unsetSuccess();
11143
        } else {
9840 amit.gupta 11144
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11145
        }
11146
        break;
11147
 
11148
      case SE:
11149
        if (value == null) {
11150
          unsetSe();
11151
        } else {
11152
          setSe((LogisticsServiceException)value);
11153
        }
11154
        break;
11155
 
11156
      }
11157
    }
11158
 
11159
    public Object getFieldValue(_Fields field) {
11160
      switch (field) {
11161
      case SUCCESS:
11162
        return getSuccess();
11163
 
11164
      case SE:
11165
        return getSe();
11166
 
11167
      }
11168
      throw new IllegalStateException();
11169
    }
11170
 
11171
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11172
    public boolean isSet(_Fields field) {
11173
      if (field == null) {
11174
        throw new IllegalArgumentException();
11175
      }
11176
 
11177
      switch (field) {
11178
      case SUCCESS:
11179
        return isSetSuccess();
11180
      case SE:
11181
        return isSetSe();
11182
      }
11183
      throw new IllegalStateException();
11184
    }
11185
 
11186
    @Override
11187
    public boolean equals(Object that) {
11188
      if (that == null)
11189
        return false;
11190
      if (that instanceof getEntityLogisticsEstimation_result)
11191
        return this.equals((getEntityLogisticsEstimation_result)that);
11192
      return false;
11193
    }
11194
 
11195
    public boolean equals(getEntityLogisticsEstimation_result that) {
11196
      if (that == null)
11197
        return false;
11198
 
11199
      boolean this_present_success = true && this.isSetSuccess();
11200
      boolean that_present_success = true && that.isSetSuccess();
11201
      if (this_present_success || that_present_success) {
11202
        if (!(this_present_success && that_present_success))
11203
          return false;
11204
        if (!this.success.equals(that.success))
11205
          return false;
11206
      }
11207
 
11208
      boolean this_present_se = true && this.isSetSe();
11209
      boolean that_present_se = true && that.isSetSe();
11210
      if (this_present_se || that_present_se) {
11211
        if (!(this_present_se && that_present_se))
11212
          return false;
11213
        if (!this.se.equals(that.se))
11214
          return false;
11215
      }
11216
 
11217
      return true;
11218
    }
11219
 
11220
    @Override
11221
    public int hashCode() {
11222
      return 0;
11223
    }
11224
 
11225
    public int compareTo(getEntityLogisticsEstimation_result other) {
11226
      if (!getClass().equals(other.getClass())) {
11227
        return getClass().getName().compareTo(other.getClass().getName());
11228
      }
11229
 
11230
      int lastComparison = 0;
11231
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11232
 
11233
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11234
      if (lastComparison != 0) {
11235
        return lastComparison;
11236
      }
11237
      if (isSetSuccess()) {
11238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11239
        if (lastComparison != 0) {
11240
          return lastComparison;
11241
        }
11242
      }
11243
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11244
      if (lastComparison != 0) {
11245
        return lastComparison;
11246
      }
11247
      if (isSetSe()) {
11248
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11249
        if (lastComparison != 0) {
11250
          return lastComparison;
11251
        }
11252
      }
11253
      return 0;
11254
    }
11255
 
11256
    public _Fields fieldForId(int fieldId) {
11257
      return _Fields.findByThriftId(fieldId);
11258
    }
11259
 
11260
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11261
      org.apache.thrift.protocol.TField field;
11262
      iprot.readStructBegin();
11263
      while (true)
11264
      {
11265
        field = iprot.readFieldBegin();
11266
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11267
          break;
11268
        }
11269
        switch (field.id) {
11270
          case 0: // SUCCESS
11271
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11272
              {
7792 anupam.sin 11273
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11274
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11275
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11276
                {
9840 amit.gupta 11277
                  ItemText _elem18; // required
11278
                  _elem18 = new ItemText();
11279
                  _elem18.read(iprot);
7792 anupam.sin 11280
                  this.success.add(_elem18);
4934 amit.gupta 11281
                }
11282
                iprot.readListEnd();
11283
              }
11284
            } else { 
11285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11286
            }
11287
            break;
11288
          case 1: // SE
11289
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11290
              this.se = new LogisticsServiceException();
11291
              this.se.read(iprot);
11292
            } else { 
11293
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11294
            }
11295
            break;
11296
          default:
11297
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11298
        }
11299
        iprot.readFieldEnd();
11300
      }
11301
      iprot.readStructEnd();
11302
      validate();
11303
    }
11304
 
11305
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11306
      oprot.writeStructBegin(STRUCT_DESC);
11307
 
11308
      if (this.isSetSuccess()) {
11309
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11310
        {
9840 amit.gupta 11311
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11312
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11313
          {
9840 amit.gupta 11314
            _iter19.write(oprot);
4934 amit.gupta 11315
          }
11316
          oprot.writeListEnd();
11317
        }
11318
        oprot.writeFieldEnd();
11319
      } else if (this.isSetSe()) {
11320
        oprot.writeFieldBegin(SE_FIELD_DESC);
11321
        this.se.write(oprot);
11322
        oprot.writeFieldEnd();
11323
      }
11324
      oprot.writeFieldStop();
11325
      oprot.writeStructEnd();
11326
    }
11327
 
11328
    @Override
11329
    public String toString() {
11330
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11331
      boolean first = true;
11332
 
11333
      sb.append("success:");
11334
      if (this.success == null) {
11335
        sb.append("null");
11336
      } else {
11337
        sb.append(this.success);
11338
      }
11339
      first = false;
11340
      if (!first) sb.append(", ");
11341
      sb.append("se:");
11342
      if (this.se == null) {
11343
        sb.append("null");
11344
      } else {
11345
        sb.append(this.se);
11346
      }
11347
      first = false;
11348
      sb.append(")");
11349
      return sb.toString();
11350
    }
11351
 
11352
    public void validate() throws org.apache.thrift.TException {
11353
      // check for required fields
11354
    }
11355
 
11356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11357
      try {
11358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11359
      } catch (org.apache.thrift.TException te) {
11360
        throw new java.io.IOException(te);
11361
      }
11362
    }
11363
 
11364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11365
      try {
11366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11367
      } catch (org.apache.thrift.TException te) {
11368
        throw new java.io.IOException(te);
11369
      }
11370
    }
11371
 
11372
  }
11373
 
5527 anupam.sin 11374
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11376
 
11377
    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);
11378
 
11379
    private long pickUp; // required
11380
 
11381
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11382
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11383
      PICK_UP((short)1, "pickUp");
11384
 
11385
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11386
 
11387
      static {
11388
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11389
          byName.put(field.getFieldName(), field);
11390
        }
11391
      }
11392
 
11393
      /**
11394
       * Find the _Fields constant that matches fieldId, or null if its not found.
11395
       */
11396
      public static _Fields findByThriftId(int fieldId) {
11397
        switch(fieldId) {
11398
          case 1: // PICK_UP
11399
            return PICK_UP;
11400
          default:
11401
            return null;
11402
        }
11403
      }
11404
 
11405
      /**
11406
       * Find the _Fields constant that matches fieldId, throwing an exception
11407
       * if it is not found.
11408
       */
11409
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11410
        _Fields fields = findByThriftId(fieldId);
11411
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11412
        return fields;
11413
      }
11414
 
11415
      /**
11416
       * Find the _Fields constant that matches name, or null if its not found.
11417
       */
11418
      public static _Fields findByName(String name) {
11419
        return byName.get(name);
11420
      }
11421
 
11422
      private final short _thriftId;
11423
      private final String _fieldName;
11424
 
11425
      _Fields(short thriftId, String fieldName) {
11426
        _thriftId = thriftId;
11427
        _fieldName = fieldName;
11428
      }
11429
 
11430
      public short getThriftFieldId() {
11431
        return _thriftId;
11432
      }
11433
 
11434
      public String getFieldName() {
11435
        return _fieldName;
11436
      }
11437
    }
11438
 
11439
    // isset id assignments
11440
    private static final int __PICKUP_ISSET_ID = 0;
11441
    private BitSet __isset_bit_vector = new BitSet(1);
11442
 
11443
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11444
    static {
11445
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11446
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11447
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11448
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11449
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11450
    }
11451
 
11452
    public getProviderForPickupType_args() {
11453
    }
11454
 
11455
    public getProviderForPickupType_args(
11456
      long pickUp)
11457
    {
11458
      this();
11459
      this.pickUp = pickUp;
11460
      setPickUpIsSet(true);
11461
    }
11462
 
11463
    /**
11464
     * Performs a deep copy on <i>other</i>.
11465
     */
11466
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11467
      __isset_bit_vector.clear();
11468
      __isset_bit_vector.or(other.__isset_bit_vector);
11469
      this.pickUp = other.pickUp;
11470
    }
11471
 
11472
    public getProviderForPickupType_args deepCopy() {
11473
      return new getProviderForPickupType_args(this);
11474
    }
11475
 
11476
    @Override
11477
    public void clear() {
11478
      setPickUpIsSet(false);
11479
      this.pickUp = 0;
11480
    }
11481
 
11482
    public long getPickUp() {
11483
      return this.pickUp;
11484
    }
11485
 
11486
    public void setPickUp(long pickUp) {
11487
      this.pickUp = pickUp;
11488
      setPickUpIsSet(true);
11489
    }
11490
 
11491
    public void unsetPickUp() {
11492
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11493
    }
11494
 
11495
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11496
    public boolean isSetPickUp() {
11497
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11498
    }
11499
 
11500
    public void setPickUpIsSet(boolean value) {
11501
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11502
    }
11503
 
11504
    public void setFieldValue(_Fields field, Object value) {
11505
      switch (field) {
11506
      case PICK_UP:
11507
        if (value == null) {
11508
          unsetPickUp();
11509
        } else {
11510
          setPickUp((Long)value);
11511
        }
11512
        break;
11513
 
11514
      }
11515
    }
11516
 
11517
    public Object getFieldValue(_Fields field) {
11518
      switch (field) {
11519
      case PICK_UP:
11520
        return Long.valueOf(getPickUp());
11521
 
11522
      }
11523
      throw new IllegalStateException();
11524
    }
11525
 
11526
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11527
    public boolean isSet(_Fields field) {
11528
      if (field == null) {
11529
        throw new IllegalArgumentException();
11530
      }
11531
 
11532
      switch (field) {
11533
      case PICK_UP:
11534
        return isSetPickUp();
11535
      }
11536
      throw new IllegalStateException();
11537
    }
11538
 
11539
    @Override
11540
    public boolean equals(Object that) {
11541
      if (that == null)
11542
        return false;
11543
      if (that instanceof getProviderForPickupType_args)
11544
        return this.equals((getProviderForPickupType_args)that);
11545
      return false;
11546
    }
11547
 
11548
    public boolean equals(getProviderForPickupType_args that) {
11549
      if (that == null)
11550
        return false;
11551
 
11552
      boolean this_present_pickUp = true;
11553
      boolean that_present_pickUp = true;
11554
      if (this_present_pickUp || that_present_pickUp) {
11555
        if (!(this_present_pickUp && that_present_pickUp))
11556
          return false;
11557
        if (this.pickUp != that.pickUp)
11558
          return false;
11559
      }
11560
 
11561
      return true;
11562
    }
11563
 
11564
    @Override
11565
    public int hashCode() {
11566
      return 0;
11567
    }
11568
 
11569
    public int compareTo(getProviderForPickupType_args other) {
11570
      if (!getClass().equals(other.getClass())) {
11571
        return getClass().getName().compareTo(other.getClass().getName());
11572
      }
11573
 
11574
      int lastComparison = 0;
11575
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11576
 
11577
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11578
      if (lastComparison != 0) {
11579
        return lastComparison;
11580
      }
11581
      if (isSetPickUp()) {
11582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11583
        if (lastComparison != 0) {
11584
          return lastComparison;
11585
        }
11586
      }
11587
      return 0;
11588
    }
11589
 
11590
    public _Fields fieldForId(int fieldId) {
11591
      return _Fields.findByThriftId(fieldId);
11592
    }
11593
 
11594
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11595
      org.apache.thrift.protocol.TField field;
11596
      iprot.readStructBegin();
11597
      while (true)
11598
      {
11599
        field = iprot.readFieldBegin();
11600
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11601
          break;
11602
        }
11603
        switch (field.id) {
11604
          case 1: // PICK_UP
11605
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11606
              this.pickUp = iprot.readI64();
11607
              setPickUpIsSet(true);
11608
            } else { 
11609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11610
            }
11611
            break;
11612
          default:
11613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11614
        }
11615
        iprot.readFieldEnd();
11616
      }
11617
      iprot.readStructEnd();
11618
      validate();
11619
    }
11620
 
11621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11622
      validate();
11623
 
11624
      oprot.writeStructBegin(STRUCT_DESC);
11625
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11626
      oprot.writeI64(this.pickUp);
11627
      oprot.writeFieldEnd();
11628
      oprot.writeFieldStop();
11629
      oprot.writeStructEnd();
11630
    }
11631
 
11632
    @Override
11633
    public String toString() {
11634
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11635
      boolean first = true;
11636
 
11637
      sb.append("pickUp:");
11638
      sb.append(this.pickUp);
11639
      first = false;
11640
      sb.append(")");
11641
      return sb.toString();
11642
    }
11643
 
11644
    public void validate() throws org.apache.thrift.TException {
11645
      // check for required fields
11646
    }
11647
 
11648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11649
      try {
11650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11651
      } catch (org.apache.thrift.TException te) {
11652
        throw new java.io.IOException(te);
11653
      }
11654
    }
11655
 
11656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11657
      try {
11658
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11659
        __isset_bit_vector = new BitSet(1);
11660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11661
      } catch (org.apache.thrift.TException te) {
11662
        throw new java.io.IOException(te);
11663
      }
11664
    }
11665
 
11666
  }
11667
 
11668
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11670
 
11671
    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);
11672
 
11673
    private long success; // required
11674
 
11675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11677
      SUCCESS((short)0, "success");
11678
 
11679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11680
 
11681
      static {
11682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11683
          byName.put(field.getFieldName(), field);
11684
        }
11685
      }
11686
 
11687
      /**
11688
       * Find the _Fields constant that matches fieldId, or null if its not found.
11689
       */
11690
      public static _Fields findByThriftId(int fieldId) {
11691
        switch(fieldId) {
11692
          case 0: // SUCCESS
11693
            return SUCCESS;
11694
          default:
11695
            return null;
11696
        }
11697
      }
11698
 
11699
      /**
11700
       * Find the _Fields constant that matches fieldId, throwing an exception
11701
       * if it is not found.
11702
       */
11703
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11704
        _Fields fields = findByThriftId(fieldId);
11705
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11706
        return fields;
11707
      }
11708
 
11709
      /**
11710
       * Find the _Fields constant that matches name, or null if its not found.
11711
       */
11712
      public static _Fields findByName(String name) {
11713
        return byName.get(name);
11714
      }
11715
 
11716
      private final short _thriftId;
11717
      private final String _fieldName;
11718
 
11719
      _Fields(short thriftId, String fieldName) {
11720
        _thriftId = thriftId;
11721
        _fieldName = fieldName;
11722
      }
11723
 
11724
      public short getThriftFieldId() {
11725
        return _thriftId;
11726
      }
11727
 
11728
      public String getFieldName() {
11729
        return _fieldName;
11730
      }
11731
    }
11732
 
11733
    // isset id assignments
11734
    private static final int __SUCCESS_ISSET_ID = 0;
11735
    private BitSet __isset_bit_vector = new BitSet(1);
11736
 
11737
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11738
    static {
11739
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11740
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11744
    }
11745
 
11746
    public getProviderForPickupType_result() {
11747
    }
11748
 
11749
    public getProviderForPickupType_result(
11750
      long success)
11751
    {
11752
      this();
11753
      this.success = success;
11754
      setSuccessIsSet(true);
11755
    }
11756
 
11757
    /**
11758
     * Performs a deep copy on <i>other</i>.
11759
     */
11760
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11761
      __isset_bit_vector.clear();
11762
      __isset_bit_vector.or(other.__isset_bit_vector);
11763
      this.success = other.success;
11764
    }
11765
 
11766
    public getProviderForPickupType_result deepCopy() {
11767
      return new getProviderForPickupType_result(this);
11768
    }
11769
 
11770
    @Override
11771
    public void clear() {
11772
      setSuccessIsSet(false);
11773
      this.success = 0;
11774
    }
11775
 
11776
    public long getSuccess() {
11777
      return this.success;
11778
    }
11779
 
11780
    public void setSuccess(long success) {
11781
      this.success = success;
11782
      setSuccessIsSet(true);
11783
    }
11784
 
11785
    public void unsetSuccess() {
11786
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11787
    }
11788
 
11789
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11790
    public boolean isSetSuccess() {
11791
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11792
    }
11793
 
11794
    public void setSuccessIsSet(boolean value) {
11795
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11796
    }
11797
 
11798
    public void setFieldValue(_Fields field, Object value) {
11799
      switch (field) {
11800
      case SUCCESS:
11801
        if (value == null) {
11802
          unsetSuccess();
11803
        } else {
11804
          setSuccess((Long)value);
11805
        }
11806
        break;
11807
 
11808
      }
11809
    }
11810
 
11811
    public Object getFieldValue(_Fields field) {
11812
      switch (field) {
11813
      case SUCCESS:
11814
        return Long.valueOf(getSuccess());
11815
 
11816
      }
11817
      throw new IllegalStateException();
11818
    }
11819
 
11820
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11821
    public boolean isSet(_Fields field) {
11822
      if (field == null) {
11823
        throw new IllegalArgumentException();
11824
      }
11825
 
11826
      switch (field) {
11827
      case SUCCESS:
11828
        return isSetSuccess();
11829
      }
11830
      throw new IllegalStateException();
11831
    }
11832
 
11833
    @Override
11834
    public boolean equals(Object that) {
11835
      if (that == null)
11836
        return false;
11837
      if (that instanceof getProviderForPickupType_result)
11838
        return this.equals((getProviderForPickupType_result)that);
11839
      return false;
11840
    }
11841
 
11842
    public boolean equals(getProviderForPickupType_result that) {
11843
      if (that == null)
11844
        return false;
11845
 
11846
      boolean this_present_success = true;
11847
      boolean that_present_success = true;
11848
      if (this_present_success || that_present_success) {
11849
        if (!(this_present_success && that_present_success))
11850
          return false;
11851
        if (this.success != that.success)
11852
          return false;
11853
      }
11854
 
11855
      return true;
11856
    }
11857
 
11858
    @Override
11859
    public int hashCode() {
11860
      return 0;
11861
    }
11862
 
11863
    public int compareTo(getProviderForPickupType_result other) {
11864
      if (!getClass().equals(other.getClass())) {
11865
        return getClass().getName().compareTo(other.getClass().getName());
11866
      }
11867
 
11868
      int lastComparison = 0;
11869
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11870
 
11871
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11872
      if (lastComparison != 0) {
11873
        return lastComparison;
11874
      }
11875
      if (isSetSuccess()) {
11876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11877
        if (lastComparison != 0) {
11878
          return lastComparison;
11879
        }
11880
      }
11881
      return 0;
11882
    }
11883
 
11884
    public _Fields fieldForId(int fieldId) {
11885
      return _Fields.findByThriftId(fieldId);
11886
    }
11887
 
11888
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11889
      org.apache.thrift.protocol.TField field;
11890
      iprot.readStructBegin();
11891
      while (true)
11892
      {
11893
        field = iprot.readFieldBegin();
11894
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11895
          break;
11896
        }
11897
        switch (field.id) {
11898
          case 0: // SUCCESS
11899
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11900
              this.success = iprot.readI64();
11901
              setSuccessIsSet(true);
11902
            } else { 
11903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11904
            }
11905
            break;
11906
          default:
11907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11908
        }
11909
        iprot.readFieldEnd();
11910
      }
11911
      iprot.readStructEnd();
11912
      validate();
11913
    }
11914
 
11915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11916
      oprot.writeStructBegin(STRUCT_DESC);
11917
 
11918
      if (this.isSetSuccess()) {
11919
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11920
        oprot.writeI64(this.success);
11921
        oprot.writeFieldEnd();
11922
      }
11923
      oprot.writeFieldStop();
11924
      oprot.writeStructEnd();
11925
    }
11926
 
11927
    @Override
11928
    public String toString() {
11929
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11930
      boolean first = true;
11931
 
11932
      sb.append("success:");
11933
      sb.append(this.success);
11934
      first = false;
11935
      sb.append(")");
11936
      return sb.toString();
11937
    }
11938
 
11939
    public void validate() throws org.apache.thrift.TException {
11940
      // check for required fields
11941
    }
11942
 
11943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11944
      try {
11945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11946
      } catch (org.apache.thrift.TException te) {
11947
        throw new java.io.IOException(te);
11948
      }
11949
    }
11950
 
11951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11952
      try {
11953
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11954
      } catch (org.apache.thrift.TException te) {
11955
        throw new java.io.IOException(te);
11956
      }
11957
    }
11958
 
11959
  }
11960
 
5553 rajveer 11961
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11962
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11963
 
11964
 
11965
 
11966
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11967
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11968
;
11969
 
11970
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11971
 
11972
      static {
11973
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11974
          byName.put(field.getFieldName(), field);
11975
        }
11976
      }
11977
 
11978
      /**
11979
       * Find the _Fields constant that matches fieldId, or null if its not found.
11980
       */
11981
      public static _Fields findByThriftId(int fieldId) {
11982
        switch(fieldId) {
11983
          default:
11984
            return null;
11985
        }
11986
      }
11987
 
11988
      /**
11989
       * Find the _Fields constant that matches fieldId, throwing an exception
11990
       * if it is not found.
11991
       */
11992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11993
        _Fields fields = findByThriftId(fieldId);
11994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11995
        return fields;
11996
      }
11997
 
11998
      /**
11999
       * Find the _Fields constant that matches name, or null if its not found.
12000
       */
12001
      public static _Fields findByName(String name) {
12002
        return byName.get(name);
12003
      }
12004
 
12005
      private final short _thriftId;
12006
      private final String _fieldName;
12007
 
12008
      _Fields(short thriftId, String fieldName) {
12009
        _thriftId = thriftId;
12010
        _fieldName = fieldName;
12011
      }
12012
 
12013
      public short getThriftFieldId() {
12014
        return _thriftId;
12015
      }
12016
 
12017
      public String getFieldName() {
12018
        return _fieldName;
12019
      }
12020
    }
12021
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12022
    static {
12023
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12024
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12025
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12026
    }
12027
 
12028
    public getAllPickupStores_args() {
12029
    }
12030
 
12031
    /**
12032
     * Performs a deep copy on <i>other</i>.
12033
     */
12034
    public getAllPickupStores_args(getAllPickupStores_args other) {
12035
    }
12036
 
12037
    public getAllPickupStores_args deepCopy() {
12038
      return new getAllPickupStores_args(this);
12039
    }
12040
 
12041
    @Override
12042
    public void clear() {
12043
    }
12044
 
12045
    public void setFieldValue(_Fields field, Object value) {
12046
      switch (field) {
12047
      }
12048
    }
12049
 
12050
    public Object getFieldValue(_Fields field) {
12051
      switch (field) {
12052
      }
12053
      throw new IllegalStateException();
12054
    }
12055
 
12056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12057
    public boolean isSet(_Fields field) {
12058
      if (field == null) {
12059
        throw new IllegalArgumentException();
12060
      }
12061
 
12062
      switch (field) {
12063
      }
12064
      throw new IllegalStateException();
12065
    }
12066
 
12067
    @Override
12068
    public boolean equals(Object that) {
12069
      if (that == null)
12070
        return false;
12071
      if (that instanceof getAllPickupStores_args)
12072
        return this.equals((getAllPickupStores_args)that);
12073
      return false;
12074
    }
12075
 
12076
    public boolean equals(getAllPickupStores_args that) {
12077
      if (that == null)
12078
        return false;
12079
 
12080
      return true;
12081
    }
12082
 
12083
    @Override
12084
    public int hashCode() {
12085
      return 0;
12086
    }
12087
 
12088
    public int compareTo(getAllPickupStores_args other) {
12089
      if (!getClass().equals(other.getClass())) {
12090
        return getClass().getName().compareTo(other.getClass().getName());
12091
      }
12092
 
12093
      int lastComparison = 0;
12094
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12095
 
12096
      return 0;
12097
    }
12098
 
12099
    public _Fields fieldForId(int fieldId) {
12100
      return _Fields.findByThriftId(fieldId);
12101
    }
12102
 
12103
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12104
      org.apache.thrift.protocol.TField field;
12105
      iprot.readStructBegin();
12106
      while (true)
12107
      {
12108
        field = iprot.readFieldBegin();
12109
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12110
          break;
12111
        }
12112
        switch (field.id) {
12113
          default:
12114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12115
        }
12116
        iprot.readFieldEnd();
12117
      }
12118
      iprot.readStructEnd();
12119
      validate();
12120
    }
12121
 
12122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12123
      validate();
12124
 
12125
      oprot.writeStructBegin(STRUCT_DESC);
12126
      oprot.writeFieldStop();
12127
      oprot.writeStructEnd();
12128
    }
12129
 
12130
    @Override
12131
    public String toString() {
12132
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12133
      boolean first = true;
12134
 
12135
      sb.append(")");
12136
      return sb.toString();
12137
    }
12138
 
12139
    public void validate() throws org.apache.thrift.TException {
12140
      // check for required fields
12141
    }
12142
 
12143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12144
      try {
12145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12146
      } catch (org.apache.thrift.TException te) {
12147
        throw new java.io.IOException(te);
12148
      }
12149
    }
12150
 
12151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12152
      try {
12153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12154
      } catch (org.apache.thrift.TException te) {
12155
        throw new java.io.IOException(te);
12156
      }
12157
    }
12158
 
12159
  }
12160
 
12161
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12163
 
12164
    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);
12165
 
12166
    private List<PickupStore> success; // required
12167
 
12168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12170
      SUCCESS((short)0, "success");
12171
 
12172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12173
 
12174
      static {
12175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12176
          byName.put(field.getFieldName(), field);
12177
        }
12178
      }
12179
 
12180
      /**
12181
       * Find the _Fields constant that matches fieldId, or null if its not found.
12182
       */
12183
      public static _Fields findByThriftId(int fieldId) {
12184
        switch(fieldId) {
12185
          case 0: // SUCCESS
12186
            return SUCCESS;
12187
          default:
12188
            return null;
12189
        }
12190
      }
12191
 
12192
      /**
12193
       * Find the _Fields constant that matches fieldId, throwing an exception
12194
       * if it is not found.
12195
       */
12196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12197
        _Fields fields = findByThriftId(fieldId);
12198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12199
        return fields;
12200
      }
12201
 
12202
      /**
12203
       * Find the _Fields constant that matches name, or null if its not found.
12204
       */
12205
      public static _Fields findByName(String name) {
12206
        return byName.get(name);
12207
      }
12208
 
12209
      private final short _thriftId;
12210
      private final String _fieldName;
12211
 
12212
      _Fields(short thriftId, String fieldName) {
12213
        _thriftId = thriftId;
12214
        _fieldName = fieldName;
12215
      }
12216
 
12217
      public short getThriftFieldId() {
12218
        return _thriftId;
12219
      }
12220
 
12221
      public String getFieldName() {
12222
        return _fieldName;
12223
      }
12224
    }
12225
 
12226
    // isset id assignments
12227
 
12228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12229
    static {
12230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12231
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12232
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12233
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12234
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12235
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12236
    }
12237
 
12238
    public getAllPickupStores_result() {
12239
    }
12240
 
12241
    public getAllPickupStores_result(
12242
      List<PickupStore> success)
12243
    {
12244
      this();
12245
      this.success = success;
12246
    }
12247
 
12248
    /**
12249
     * Performs a deep copy on <i>other</i>.
12250
     */
12251
    public getAllPickupStores_result(getAllPickupStores_result other) {
12252
      if (other.isSetSuccess()) {
12253
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12254
        for (PickupStore other_element : other.success) {
12255
          __this__success.add(new PickupStore(other_element));
12256
        }
12257
        this.success = __this__success;
12258
      }
12259
    }
12260
 
12261
    public getAllPickupStores_result deepCopy() {
12262
      return new getAllPickupStores_result(this);
12263
    }
12264
 
12265
    @Override
12266
    public void clear() {
12267
      this.success = null;
12268
    }
12269
 
12270
    public int getSuccessSize() {
12271
      return (this.success == null) ? 0 : this.success.size();
12272
    }
12273
 
12274
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12275
      return (this.success == null) ? null : this.success.iterator();
12276
    }
12277
 
12278
    public void addToSuccess(PickupStore elem) {
12279
      if (this.success == null) {
12280
        this.success = new ArrayList<PickupStore>();
12281
      }
12282
      this.success.add(elem);
12283
    }
12284
 
12285
    public List<PickupStore> getSuccess() {
12286
      return this.success;
12287
    }
12288
 
12289
    public void setSuccess(List<PickupStore> success) {
12290
      this.success = success;
12291
    }
12292
 
12293
    public void unsetSuccess() {
12294
      this.success = null;
12295
    }
12296
 
12297
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12298
    public boolean isSetSuccess() {
12299
      return this.success != null;
12300
    }
12301
 
12302
    public void setSuccessIsSet(boolean value) {
12303
      if (!value) {
12304
        this.success = null;
12305
      }
12306
    }
12307
 
12308
    public void setFieldValue(_Fields field, Object value) {
12309
      switch (field) {
12310
      case SUCCESS:
12311
        if (value == null) {
12312
          unsetSuccess();
12313
        } else {
12314
          setSuccess((List<PickupStore>)value);
12315
        }
12316
        break;
12317
 
12318
      }
12319
    }
12320
 
12321
    public Object getFieldValue(_Fields field) {
12322
      switch (field) {
12323
      case SUCCESS:
12324
        return getSuccess();
12325
 
12326
      }
12327
      throw new IllegalStateException();
12328
    }
12329
 
12330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12331
    public boolean isSet(_Fields field) {
12332
      if (field == null) {
12333
        throw new IllegalArgumentException();
12334
      }
12335
 
12336
      switch (field) {
12337
      case SUCCESS:
12338
        return isSetSuccess();
12339
      }
12340
      throw new IllegalStateException();
12341
    }
12342
 
12343
    @Override
12344
    public boolean equals(Object that) {
12345
      if (that == null)
12346
        return false;
12347
      if (that instanceof getAllPickupStores_result)
12348
        return this.equals((getAllPickupStores_result)that);
12349
      return false;
12350
    }
12351
 
12352
    public boolean equals(getAllPickupStores_result that) {
12353
      if (that == null)
12354
        return false;
12355
 
12356
      boolean this_present_success = true && this.isSetSuccess();
12357
      boolean that_present_success = true && that.isSetSuccess();
12358
      if (this_present_success || that_present_success) {
12359
        if (!(this_present_success && that_present_success))
12360
          return false;
12361
        if (!this.success.equals(that.success))
12362
          return false;
12363
      }
12364
 
12365
      return true;
12366
    }
12367
 
12368
    @Override
12369
    public int hashCode() {
12370
      return 0;
12371
    }
12372
 
12373
    public int compareTo(getAllPickupStores_result other) {
12374
      if (!getClass().equals(other.getClass())) {
12375
        return getClass().getName().compareTo(other.getClass().getName());
12376
      }
12377
 
12378
      int lastComparison = 0;
12379
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12380
 
12381
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12382
      if (lastComparison != 0) {
12383
        return lastComparison;
12384
      }
12385
      if (isSetSuccess()) {
12386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12387
        if (lastComparison != 0) {
12388
          return lastComparison;
12389
        }
12390
      }
12391
      return 0;
12392
    }
12393
 
12394
    public _Fields fieldForId(int fieldId) {
12395
      return _Fields.findByThriftId(fieldId);
12396
    }
12397
 
12398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12399
      org.apache.thrift.protocol.TField field;
12400
      iprot.readStructBegin();
12401
      while (true)
12402
      {
12403
        field = iprot.readFieldBegin();
12404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12405
          break;
12406
        }
12407
        switch (field.id) {
12408
          case 0: // SUCCESS
12409
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12410
              {
7792 anupam.sin 12411
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12412
                this.success = new ArrayList<PickupStore>(_list20.size);
12413
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12414
                {
7792 anupam.sin 12415
                  PickupStore _elem22; // required
12416
                  _elem22 = new PickupStore();
12417
                  _elem22.read(iprot);
12418
                  this.success.add(_elem22);
5553 rajveer 12419
                }
12420
                iprot.readListEnd();
12421
              }
12422
            } else { 
12423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12424
            }
12425
            break;
12426
          default:
12427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12428
        }
12429
        iprot.readFieldEnd();
12430
      }
12431
      iprot.readStructEnd();
12432
      validate();
12433
    }
12434
 
12435
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12436
      oprot.writeStructBegin(STRUCT_DESC);
12437
 
12438
      if (this.isSetSuccess()) {
12439
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12440
        {
12441
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12442
          for (PickupStore _iter23 : this.success)
5553 rajveer 12443
          {
7792 anupam.sin 12444
            _iter23.write(oprot);
5553 rajveer 12445
          }
12446
          oprot.writeListEnd();
12447
        }
12448
        oprot.writeFieldEnd();
12449
      }
12450
      oprot.writeFieldStop();
12451
      oprot.writeStructEnd();
12452
    }
12453
 
12454
    @Override
12455
    public String toString() {
12456
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12457
      boolean first = true;
12458
 
12459
      sb.append("success:");
12460
      if (this.success == null) {
12461
        sb.append("null");
12462
      } else {
12463
        sb.append(this.success);
12464
      }
12465
      first = false;
12466
      sb.append(")");
12467
      return sb.toString();
12468
    }
12469
 
12470
    public void validate() throws org.apache.thrift.TException {
12471
      // check for required fields
12472
    }
12473
 
12474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12475
      try {
12476
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12477
      } catch (org.apache.thrift.TException te) {
12478
        throw new java.io.IOException(te);
12479
      }
12480
    }
12481
 
12482
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12483
      try {
12484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12485
      } catch (org.apache.thrift.TException te) {
12486
        throw new java.io.IOException(te);
12487
      }
12488
    }
12489
 
12490
  }
12491
 
12492
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12494
 
12495
    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);
12496
 
12497
    private long storeId; // required
12498
 
12499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12501
      STORE_ID((short)1, "storeId");
12502
 
12503
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12504
 
12505
      static {
12506
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12507
          byName.put(field.getFieldName(), field);
12508
        }
12509
      }
12510
 
12511
      /**
12512
       * Find the _Fields constant that matches fieldId, or null if its not found.
12513
       */
12514
      public static _Fields findByThriftId(int fieldId) {
12515
        switch(fieldId) {
12516
          case 1: // STORE_ID
12517
            return STORE_ID;
12518
          default:
12519
            return null;
12520
        }
12521
      }
12522
 
12523
      /**
12524
       * Find the _Fields constant that matches fieldId, throwing an exception
12525
       * if it is not found.
12526
       */
12527
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12528
        _Fields fields = findByThriftId(fieldId);
12529
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12530
        return fields;
12531
      }
12532
 
12533
      /**
12534
       * Find the _Fields constant that matches name, or null if its not found.
12535
       */
12536
      public static _Fields findByName(String name) {
12537
        return byName.get(name);
12538
      }
12539
 
12540
      private final short _thriftId;
12541
      private final String _fieldName;
12542
 
12543
      _Fields(short thriftId, String fieldName) {
12544
        _thriftId = thriftId;
12545
        _fieldName = fieldName;
12546
      }
12547
 
12548
      public short getThriftFieldId() {
12549
        return _thriftId;
12550
      }
12551
 
12552
      public String getFieldName() {
12553
        return _fieldName;
12554
      }
12555
    }
12556
 
12557
    // isset id assignments
12558
    private static final int __STOREID_ISSET_ID = 0;
12559
    private BitSet __isset_bit_vector = new BitSet(1);
12560
 
12561
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12562
    static {
12563
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12564
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12566
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12567
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12568
    }
12569
 
12570
    public getPickupStore_args() {
12571
    }
12572
 
12573
    public getPickupStore_args(
12574
      long storeId)
12575
    {
12576
      this();
12577
      this.storeId = storeId;
12578
      setStoreIdIsSet(true);
12579
    }
12580
 
12581
    /**
12582
     * Performs a deep copy on <i>other</i>.
12583
     */
12584
    public getPickupStore_args(getPickupStore_args other) {
12585
      __isset_bit_vector.clear();
12586
      __isset_bit_vector.or(other.__isset_bit_vector);
12587
      this.storeId = other.storeId;
12588
    }
12589
 
12590
    public getPickupStore_args deepCopy() {
12591
      return new getPickupStore_args(this);
12592
    }
12593
 
12594
    @Override
12595
    public void clear() {
12596
      setStoreIdIsSet(false);
12597
      this.storeId = 0;
12598
    }
12599
 
12600
    public long getStoreId() {
12601
      return this.storeId;
12602
    }
12603
 
12604
    public void setStoreId(long storeId) {
12605
      this.storeId = storeId;
12606
      setStoreIdIsSet(true);
12607
    }
12608
 
12609
    public void unsetStoreId() {
12610
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12611
    }
12612
 
12613
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12614
    public boolean isSetStoreId() {
12615
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12616
    }
12617
 
12618
    public void setStoreIdIsSet(boolean value) {
12619
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12620
    }
12621
 
12622
    public void setFieldValue(_Fields field, Object value) {
12623
      switch (field) {
12624
      case STORE_ID:
12625
        if (value == null) {
12626
          unsetStoreId();
12627
        } else {
12628
          setStoreId((Long)value);
12629
        }
12630
        break;
12631
 
12632
      }
12633
    }
12634
 
12635
    public Object getFieldValue(_Fields field) {
12636
      switch (field) {
12637
      case STORE_ID:
12638
        return Long.valueOf(getStoreId());
12639
 
12640
      }
12641
      throw new IllegalStateException();
12642
    }
12643
 
12644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12645
    public boolean isSet(_Fields field) {
12646
      if (field == null) {
12647
        throw new IllegalArgumentException();
12648
      }
12649
 
12650
      switch (field) {
12651
      case STORE_ID:
12652
        return isSetStoreId();
12653
      }
12654
      throw new IllegalStateException();
12655
    }
12656
 
12657
    @Override
12658
    public boolean equals(Object that) {
12659
      if (that == null)
12660
        return false;
12661
      if (that instanceof getPickupStore_args)
12662
        return this.equals((getPickupStore_args)that);
12663
      return false;
12664
    }
12665
 
12666
    public boolean equals(getPickupStore_args that) {
12667
      if (that == null)
12668
        return false;
12669
 
12670
      boolean this_present_storeId = true;
12671
      boolean that_present_storeId = true;
12672
      if (this_present_storeId || that_present_storeId) {
12673
        if (!(this_present_storeId && that_present_storeId))
12674
          return false;
12675
        if (this.storeId != that.storeId)
12676
          return false;
12677
      }
12678
 
12679
      return true;
12680
    }
12681
 
12682
    @Override
12683
    public int hashCode() {
12684
      return 0;
12685
    }
12686
 
12687
    public int compareTo(getPickupStore_args other) {
12688
      if (!getClass().equals(other.getClass())) {
12689
        return getClass().getName().compareTo(other.getClass().getName());
12690
      }
12691
 
12692
      int lastComparison = 0;
12693
      getPickupStore_args typedOther = (getPickupStore_args)other;
12694
 
12695
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12696
      if (lastComparison != 0) {
12697
        return lastComparison;
12698
      }
12699
      if (isSetStoreId()) {
12700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12701
        if (lastComparison != 0) {
12702
          return lastComparison;
12703
        }
12704
      }
12705
      return 0;
12706
    }
12707
 
12708
    public _Fields fieldForId(int fieldId) {
12709
      return _Fields.findByThriftId(fieldId);
12710
    }
12711
 
12712
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12713
      org.apache.thrift.protocol.TField field;
12714
      iprot.readStructBegin();
12715
      while (true)
12716
      {
12717
        field = iprot.readFieldBegin();
12718
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12719
          break;
12720
        }
12721
        switch (field.id) {
12722
          case 1: // STORE_ID
12723
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12724
              this.storeId = iprot.readI64();
12725
              setStoreIdIsSet(true);
12726
            } else { 
12727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12728
            }
12729
            break;
12730
          default:
12731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12732
        }
12733
        iprot.readFieldEnd();
12734
      }
12735
      iprot.readStructEnd();
12736
      validate();
12737
    }
12738
 
12739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12740
      validate();
12741
 
12742
      oprot.writeStructBegin(STRUCT_DESC);
12743
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12744
      oprot.writeI64(this.storeId);
12745
      oprot.writeFieldEnd();
12746
      oprot.writeFieldStop();
12747
      oprot.writeStructEnd();
12748
    }
12749
 
12750
    @Override
12751
    public String toString() {
12752
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12753
      boolean first = true;
12754
 
12755
      sb.append("storeId:");
12756
      sb.append(this.storeId);
12757
      first = false;
12758
      sb.append(")");
12759
      return sb.toString();
12760
    }
12761
 
12762
    public void validate() throws org.apache.thrift.TException {
12763
      // check for required fields
12764
    }
12765
 
12766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12767
      try {
12768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12769
      } catch (org.apache.thrift.TException te) {
12770
        throw new java.io.IOException(te);
12771
      }
12772
    }
12773
 
12774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12775
      try {
12776
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12777
        __isset_bit_vector = new BitSet(1);
12778
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12779
      } catch (org.apache.thrift.TException te) {
12780
        throw new java.io.IOException(te);
12781
      }
12782
    }
12783
 
12784
  }
12785
 
12786
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12787
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12788
 
12789
    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);
12790
 
12791
    private PickupStore success; // required
12792
 
12793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12795
      SUCCESS((short)0, "success");
12796
 
12797
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12798
 
12799
      static {
12800
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12801
          byName.put(field.getFieldName(), field);
12802
        }
12803
      }
12804
 
12805
      /**
12806
       * Find the _Fields constant that matches fieldId, or null if its not found.
12807
       */
12808
      public static _Fields findByThriftId(int fieldId) {
12809
        switch(fieldId) {
12810
          case 0: // SUCCESS
12811
            return SUCCESS;
12812
          default:
12813
            return null;
12814
        }
12815
      }
12816
 
12817
      /**
12818
       * Find the _Fields constant that matches fieldId, throwing an exception
12819
       * if it is not found.
12820
       */
12821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12822
        _Fields fields = findByThriftId(fieldId);
12823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12824
        return fields;
12825
      }
12826
 
12827
      /**
12828
       * Find the _Fields constant that matches name, or null if its not found.
12829
       */
12830
      public static _Fields findByName(String name) {
12831
        return byName.get(name);
12832
      }
12833
 
12834
      private final short _thriftId;
12835
      private final String _fieldName;
12836
 
12837
      _Fields(short thriftId, String fieldName) {
12838
        _thriftId = thriftId;
12839
        _fieldName = fieldName;
12840
      }
12841
 
12842
      public short getThriftFieldId() {
12843
        return _thriftId;
12844
      }
12845
 
12846
      public String getFieldName() {
12847
        return _fieldName;
12848
      }
12849
    }
12850
 
12851
    // isset id assignments
12852
 
12853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12854
    static {
12855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12856
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12857
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12860
    }
12861
 
12862
    public getPickupStore_result() {
12863
    }
12864
 
12865
    public getPickupStore_result(
12866
      PickupStore success)
12867
    {
12868
      this();
12869
      this.success = success;
12870
    }
12871
 
12872
    /**
12873
     * Performs a deep copy on <i>other</i>.
12874
     */
12875
    public getPickupStore_result(getPickupStore_result other) {
12876
      if (other.isSetSuccess()) {
12877
        this.success = new PickupStore(other.success);
12878
      }
12879
    }
12880
 
12881
    public getPickupStore_result deepCopy() {
12882
      return new getPickupStore_result(this);
12883
    }
12884
 
12885
    @Override
12886
    public void clear() {
12887
      this.success = null;
12888
    }
12889
 
12890
    public PickupStore getSuccess() {
12891
      return this.success;
12892
    }
12893
 
12894
    public void setSuccess(PickupStore success) {
12895
      this.success = success;
12896
    }
12897
 
12898
    public void unsetSuccess() {
12899
      this.success = null;
12900
    }
12901
 
12902
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12903
    public boolean isSetSuccess() {
12904
      return this.success != null;
12905
    }
12906
 
12907
    public void setSuccessIsSet(boolean value) {
12908
      if (!value) {
12909
        this.success = null;
12910
      }
12911
    }
12912
 
12913
    public void setFieldValue(_Fields field, Object value) {
12914
      switch (field) {
12915
      case SUCCESS:
12916
        if (value == null) {
12917
          unsetSuccess();
12918
        } else {
12919
          setSuccess((PickupStore)value);
12920
        }
12921
        break;
12922
 
12923
      }
12924
    }
12925
 
12926
    public Object getFieldValue(_Fields field) {
12927
      switch (field) {
12928
      case SUCCESS:
12929
        return getSuccess();
12930
 
12931
      }
12932
      throw new IllegalStateException();
12933
    }
12934
 
12935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12936
    public boolean isSet(_Fields field) {
12937
      if (field == null) {
12938
        throw new IllegalArgumentException();
12939
      }
12940
 
12941
      switch (field) {
12942
      case SUCCESS:
12943
        return isSetSuccess();
12944
      }
12945
      throw new IllegalStateException();
12946
    }
12947
 
12948
    @Override
12949
    public boolean equals(Object that) {
12950
      if (that == null)
12951
        return false;
12952
      if (that instanceof getPickupStore_result)
12953
        return this.equals((getPickupStore_result)that);
12954
      return false;
12955
    }
12956
 
12957
    public boolean equals(getPickupStore_result that) {
12958
      if (that == null)
12959
        return false;
12960
 
12961
      boolean this_present_success = true && this.isSetSuccess();
12962
      boolean that_present_success = true && that.isSetSuccess();
12963
      if (this_present_success || that_present_success) {
12964
        if (!(this_present_success && that_present_success))
12965
          return false;
12966
        if (!this.success.equals(that.success))
12967
          return false;
12968
      }
12969
 
12970
      return true;
12971
    }
12972
 
12973
    @Override
12974
    public int hashCode() {
12975
      return 0;
12976
    }
12977
 
12978
    public int compareTo(getPickupStore_result other) {
12979
      if (!getClass().equals(other.getClass())) {
12980
        return getClass().getName().compareTo(other.getClass().getName());
12981
      }
12982
 
12983
      int lastComparison = 0;
12984
      getPickupStore_result typedOther = (getPickupStore_result)other;
12985
 
12986
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12987
      if (lastComparison != 0) {
12988
        return lastComparison;
12989
      }
12990
      if (isSetSuccess()) {
12991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12992
        if (lastComparison != 0) {
12993
          return lastComparison;
12994
        }
12995
      }
12996
      return 0;
12997
    }
12998
 
12999
    public _Fields fieldForId(int fieldId) {
13000
      return _Fields.findByThriftId(fieldId);
13001
    }
13002
 
13003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13004
      org.apache.thrift.protocol.TField field;
13005
      iprot.readStructBegin();
13006
      while (true)
13007
      {
13008
        field = iprot.readFieldBegin();
13009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13010
          break;
13011
        }
13012
        switch (field.id) {
13013
          case 0: // SUCCESS
13014
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13015
              this.success = new PickupStore();
13016
              this.success.read(iprot);
13017
            } else { 
13018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13019
            }
13020
            break;
13021
          default:
13022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13023
        }
13024
        iprot.readFieldEnd();
13025
      }
13026
      iprot.readStructEnd();
13027
      validate();
13028
    }
13029
 
13030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13031
      oprot.writeStructBegin(STRUCT_DESC);
13032
 
13033
      if (this.isSetSuccess()) {
13034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13035
        this.success.write(oprot);
13036
        oprot.writeFieldEnd();
13037
      }
13038
      oprot.writeFieldStop();
13039
      oprot.writeStructEnd();
13040
    }
13041
 
13042
    @Override
13043
    public String toString() {
13044
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13045
      boolean first = true;
13046
 
13047
      sb.append("success:");
13048
      if (this.success == null) {
13049
        sb.append("null");
13050
      } else {
13051
        sb.append(this.success);
13052
      }
13053
      first = false;
13054
      sb.append(")");
13055
      return sb.toString();
13056
    }
13057
 
13058
    public void validate() throws org.apache.thrift.TException {
13059
      // check for required fields
13060
    }
13061
 
13062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13063
      try {
13064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13065
      } catch (org.apache.thrift.TException te) {
13066
        throw new java.io.IOException(te);
13067
      }
13068
    }
13069
 
13070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13071
      try {
13072
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13073
      } catch (org.apache.thrift.TException te) {
13074
        throw new java.io.IOException(te);
13075
      }
13076
    }
13077
 
13078
  }
13079
 
5719 rajveer 13080
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13081
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13082
 
13083
    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);
13084
 
13085
    private String hotspotId; // required
13086
 
13087
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13088
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13089
      HOTSPOT_ID((short)1, "hotspotId");
13090
 
13091
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13092
 
13093
      static {
13094
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13095
          byName.put(field.getFieldName(), field);
13096
        }
13097
      }
13098
 
13099
      /**
13100
       * Find the _Fields constant that matches fieldId, or null if its not found.
13101
       */
13102
      public static _Fields findByThriftId(int fieldId) {
13103
        switch(fieldId) {
13104
          case 1: // HOTSPOT_ID
13105
            return HOTSPOT_ID;
13106
          default:
13107
            return null;
13108
        }
13109
      }
13110
 
13111
      /**
13112
       * Find the _Fields constant that matches fieldId, throwing an exception
13113
       * if it is not found.
13114
       */
13115
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13116
        _Fields fields = findByThriftId(fieldId);
13117
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13118
        return fields;
13119
      }
13120
 
13121
      /**
13122
       * Find the _Fields constant that matches name, or null if its not found.
13123
       */
13124
      public static _Fields findByName(String name) {
13125
        return byName.get(name);
13126
      }
13127
 
13128
      private final short _thriftId;
13129
      private final String _fieldName;
13130
 
13131
      _Fields(short thriftId, String fieldName) {
13132
        _thriftId = thriftId;
13133
        _fieldName = fieldName;
13134
      }
13135
 
13136
      public short getThriftFieldId() {
13137
        return _thriftId;
13138
      }
13139
 
13140
      public String getFieldName() {
13141
        return _fieldName;
13142
      }
13143
    }
13144
 
13145
    // isset id assignments
13146
 
13147
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13148
    static {
13149
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13150
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13152
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13153
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13154
    }
13155
 
13156
    public getPickupStoreByHotspotId_args() {
13157
    }
13158
 
13159
    public getPickupStoreByHotspotId_args(
13160
      String hotspotId)
13161
    {
13162
      this();
13163
      this.hotspotId = hotspotId;
13164
    }
13165
 
13166
    /**
13167
     * Performs a deep copy on <i>other</i>.
13168
     */
13169
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13170
      if (other.isSetHotspotId()) {
13171
        this.hotspotId = other.hotspotId;
13172
      }
13173
    }
13174
 
13175
    public getPickupStoreByHotspotId_args deepCopy() {
13176
      return new getPickupStoreByHotspotId_args(this);
13177
    }
13178
 
13179
    @Override
13180
    public void clear() {
13181
      this.hotspotId = null;
13182
    }
13183
 
13184
    public String getHotspotId() {
13185
      return this.hotspotId;
13186
    }
13187
 
13188
    public void setHotspotId(String hotspotId) {
13189
      this.hotspotId = hotspotId;
13190
    }
13191
 
13192
    public void unsetHotspotId() {
13193
      this.hotspotId = null;
13194
    }
13195
 
13196
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13197
    public boolean isSetHotspotId() {
13198
      return this.hotspotId != null;
13199
    }
13200
 
13201
    public void setHotspotIdIsSet(boolean value) {
13202
      if (!value) {
13203
        this.hotspotId = null;
13204
      }
13205
    }
13206
 
13207
    public void setFieldValue(_Fields field, Object value) {
13208
      switch (field) {
13209
      case HOTSPOT_ID:
13210
        if (value == null) {
13211
          unsetHotspotId();
13212
        } else {
13213
          setHotspotId((String)value);
13214
        }
13215
        break;
13216
 
13217
      }
13218
    }
13219
 
13220
    public Object getFieldValue(_Fields field) {
13221
      switch (field) {
13222
      case HOTSPOT_ID:
13223
        return getHotspotId();
13224
 
13225
      }
13226
      throw new IllegalStateException();
13227
    }
13228
 
13229
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13230
    public boolean isSet(_Fields field) {
13231
      if (field == null) {
13232
        throw new IllegalArgumentException();
13233
      }
13234
 
13235
      switch (field) {
13236
      case HOTSPOT_ID:
13237
        return isSetHotspotId();
13238
      }
13239
      throw new IllegalStateException();
13240
    }
13241
 
13242
    @Override
13243
    public boolean equals(Object that) {
13244
      if (that == null)
13245
        return false;
13246
      if (that instanceof getPickupStoreByHotspotId_args)
13247
        return this.equals((getPickupStoreByHotspotId_args)that);
13248
      return false;
13249
    }
13250
 
13251
    public boolean equals(getPickupStoreByHotspotId_args that) {
13252
      if (that == null)
13253
        return false;
13254
 
13255
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13256
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13257
      if (this_present_hotspotId || that_present_hotspotId) {
13258
        if (!(this_present_hotspotId && that_present_hotspotId))
13259
          return false;
13260
        if (!this.hotspotId.equals(that.hotspotId))
13261
          return false;
13262
      }
13263
 
13264
      return true;
13265
    }
13266
 
13267
    @Override
13268
    public int hashCode() {
13269
      return 0;
13270
    }
13271
 
13272
    public int compareTo(getPickupStoreByHotspotId_args other) {
13273
      if (!getClass().equals(other.getClass())) {
13274
        return getClass().getName().compareTo(other.getClass().getName());
13275
      }
13276
 
13277
      int lastComparison = 0;
13278
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13279
 
13280
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13281
      if (lastComparison != 0) {
13282
        return lastComparison;
13283
      }
13284
      if (isSetHotspotId()) {
13285
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13286
        if (lastComparison != 0) {
13287
          return lastComparison;
13288
        }
13289
      }
13290
      return 0;
13291
    }
13292
 
13293
    public _Fields fieldForId(int fieldId) {
13294
      return _Fields.findByThriftId(fieldId);
13295
    }
13296
 
13297
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13298
      org.apache.thrift.protocol.TField field;
13299
      iprot.readStructBegin();
13300
      while (true)
13301
      {
13302
        field = iprot.readFieldBegin();
13303
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13304
          break;
13305
        }
13306
        switch (field.id) {
13307
          case 1: // HOTSPOT_ID
13308
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13309
              this.hotspotId = iprot.readString();
13310
            } else { 
13311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13312
            }
13313
            break;
13314
          default:
13315
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13316
        }
13317
        iprot.readFieldEnd();
13318
      }
13319
      iprot.readStructEnd();
13320
      validate();
13321
    }
13322
 
13323
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13324
      validate();
13325
 
13326
      oprot.writeStructBegin(STRUCT_DESC);
13327
      if (this.hotspotId != null) {
13328
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13329
        oprot.writeString(this.hotspotId);
13330
        oprot.writeFieldEnd();
13331
      }
13332
      oprot.writeFieldStop();
13333
      oprot.writeStructEnd();
13334
    }
13335
 
13336
    @Override
13337
    public String toString() {
13338
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13339
      boolean first = true;
13340
 
13341
      sb.append("hotspotId:");
13342
      if (this.hotspotId == null) {
13343
        sb.append("null");
13344
      } else {
13345
        sb.append(this.hotspotId);
13346
      }
13347
      first = false;
13348
      sb.append(")");
13349
      return sb.toString();
13350
    }
13351
 
13352
    public void validate() throws org.apache.thrift.TException {
13353
      // check for required fields
13354
    }
13355
 
13356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13357
      try {
13358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13359
      } catch (org.apache.thrift.TException te) {
13360
        throw new java.io.IOException(te);
13361
      }
13362
    }
13363
 
13364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13365
      try {
13366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13367
      } catch (org.apache.thrift.TException te) {
13368
        throw new java.io.IOException(te);
13369
      }
13370
    }
13371
 
13372
  }
13373
 
13374
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13376
 
13377
    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);
13378
 
13379
    private PickupStore success; // required
13380
 
13381
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13382
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13383
      SUCCESS((short)0, "success");
13384
 
13385
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13386
 
13387
      static {
13388
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13389
          byName.put(field.getFieldName(), field);
13390
        }
13391
      }
13392
 
13393
      /**
13394
       * Find the _Fields constant that matches fieldId, or null if its not found.
13395
       */
13396
      public static _Fields findByThriftId(int fieldId) {
13397
        switch(fieldId) {
13398
          case 0: // SUCCESS
13399
            return SUCCESS;
13400
          default:
13401
            return null;
13402
        }
13403
      }
13404
 
13405
      /**
13406
       * Find the _Fields constant that matches fieldId, throwing an exception
13407
       * if it is not found.
13408
       */
13409
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13410
        _Fields fields = findByThriftId(fieldId);
13411
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13412
        return fields;
13413
      }
13414
 
13415
      /**
13416
       * Find the _Fields constant that matches name, or null if its not found.
13417
       */
13418
      public static _Fields findByName(String name) {
13419
        return byName.get(name);
13420
      }
13421
 
13422
      private final short _thriftId;
13423
      private final String _fieldName;
13424
 
13425
      _Fields(short thriftId, String fieldName) {
13426
        _thriftId = thriftId;
13427
        _fieldName = fieldName;
13428
      }
13429
 
13430
      public short getThriftFieldId() {
13431
        return _thriftId;
13432
      }
13433
 
13434
      public String getFieldName() {
13435
        return _fieldName;
13436
      }
13437
    }
13438
 
13439
    // isset id assignments
13440
 
13441
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13442
    static {
13443
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13444
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13445
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13446
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13447
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13448
    }
13449
 
13450
    public getPickupStoreByHotspotId_result() {
13451
    }
13452
 
13453
    public getPickupStoreByHotspotId_result(
13454
      PickupStore success)
13455
    {
13456
      this();
13457
      this.success = success;
13458
    }
13459
 
13460
    /**
13461
     * Performs a deep copy on <i>other</i>.
13462
     */
13463
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13464
      if (other.isSetSuccess()) {
13465
        this.success = new PickupStore(other.success);
13466
      }
13467
    }
13468
 
13469
    public getPickupStoreByHotspotId_result deepCopy() {
13470
      return new getPickupStoreByHotspotId_result(this);
13471
    }
13472
 
13473
    @Override
13474
    public void clear() {
13475
      this.success = null;
13476
    }
13477
 
13478
    public PickupStore getSuccess() {
13479
      return this.success;
13480
    }
13481
 
13482
    public void setSuccess(PickupStore success) {
13483
      this.success = success;
13484
    }
13485
 
13486
    public void unsetSuccess() {
13487
      this.success = null;
13488
    }
13489
 
13490
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13491
    public boolean isSetSuccess() {
13492
      return this.success != null;
13493
    }
13494
 
13495
    public void setSuccessIsSet(boolean value) {
13496
      if (!value) {
13497
        this.success = null;
13498
      }
13499
    }
13500
 
13501
    public void setFieldValue(_Fields field, Object value) {
13502
      switch (field) {
13503
      case SUCCESS:
13504
        if (value == null) {
13505
          unsetSuccess();
13506
        } else {
13507
          setSuccess((PickupStore)value);
13508
        }
13509
        break;
13510
 
13511
      }
13512
    }
13513
 
13514
    public Object getFieldValue(_Fields field) {
13515
      switch (field) {
13516
      case SUCCESS:
13517
        return getSuccess();
13518
 
13519
      }
13520
      throw new IllegalStateException();
13521
    }
13522
 
13523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13524
    public boolean isSet(_Fields field) {
13525
      if (field == null) {
13526
        throw new IllegalArgumentException();
13527
      }
13528
 
13529
      switch (field) {
13530
      case SUCCESS:
13531
        return isSetSuccess();
13532
      }
13533
      throw new IllegalStateException();
13534
    }
13535
 
13536
    @Override
13537
    public boolean equals(Object that) {
13538
      if (that == null)
13539
        return false;
13540
      if (that instanceof getPickupStoreByHotspotId_result)
13541
        return this.equals((getPickupStoreByHotspotId_result)that);
13542
      return false;
13543
    }
13544
 
13545
    public boolean equals(getPickupStoreByHotspotId_result that) {
13546
      if (that == null)
13547
        return false;
13548
 
13549
      boolean this_present_success = true && this.isSetSuccess();
13550
      boolean that_present_success = true && that.isSetSuccess();
13551
      if (this_present_success || that_present_success) {
13552
        if (!(this_present_success && that_present_success))
13553
          return false;
13554
        if (!this.success.equals(that.success))
13555
          return false;
13556
      }
13557
 
13558
      return true;
13559
    }
13560
 
13561
    @Override
13562
    public int hashCode() {
13563
      return 0;
13564
    }
13565
 
13566
    public int compareTo(getPickupStoreByHotspotId_result other) {
13567
      if (!getClass().equals(other.getClass())) {
13568
        return getClass().getName().compareTo(other.getClass().getName());
13569
      }
13570
 
13571
      int lastComparison = 0;
13572
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13573
 
13574
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13575
      if (lastComparison != 0) {
13576
        return lastComparison;
13577
      }
13578
      if (isSetSuccess()) {
13579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13580
        if (lastComparison != 0) {
13581
          return lastComparison;
13582
        }
13583
      }
13584
      return 0;
13585
    }
13586
 
13587
    public _Fields fieldForId(int fieldId) {
13588
      return _Fields.findByThriftId(fieldId);
13589
    }
13590
 
13591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13592
      org.apache.thrift.protocol.TField field;
13593
      iprot.readStructBegin();
13594
      while (true)
13595
      {
13596
        field = iprot.readFieldBegin();
13597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13598
          break;
13599
        }
13600
        switch (field.id) {
13601
          case 0: // SUCCESS
13602
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13603
              this.success = new PickupStore();
13604
              this.success.read(iprot);
13605
            } else { 
13606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13607
            }
13608
            break;
13609
          default:
13610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13611
        }
13612
        iprot.readFieldEnd();
13613
      }
13614
      iprot.readStructEnd();
13615
      validate();
13616
    }
13617
 
13618
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13619
      oprot.writeStructBegin(STRUCT_DESC);
13620
 
13621
      if (this.isSetSuccess()) {
13622
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13623
        this.success.write(oprot);
13624
        oprot.writeFieldEnd();
13625
      }
13626
      oprot.writeFieldStop();
13627
      oprot.writeStructEnd();
13628
    }
13629
 
13630
    @Override
13631
    public String toString() {
13632
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13633
      boolean first = true;
13634
 
13635
      sb.append("success:");
13636
      if (this.success == null) {
13637
        sb.append("null");
13638
      } else {
13639
        sb.append(this.success);
13640
      }
13641
      first = false;
13642
      sb.append(")");
13643
      return sb.toString();
13644
    }
13645
 
13646
    public void validate() throws org.apache.thrift.TException {
13647
      // check for required fields
13648
    }
13649
 
13650
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13651
      try {
13652
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13653
      } catch (org.apache.thrift.TException te) {
13654
        throw new java.io.IOException(te);
13655
      }
13656
    }
13657
 
13658
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13659
      try {
13660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13661
      } catch (org.apache.thrift.TException te) {
13662
        throw new java.io.IOException(te);
13663
      }
13664
    }
13665
 
13666
  }
13667
 
6322 amar.kumar 13668
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13670
 
13671
    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);
13672
    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);
13673
    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);
13674
    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);
13675
    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);
13676
    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 13677
    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 13678
 
13679
    private long providerId; // required
13680
    private String pincode; // required
13681
    private String destCode; // required
13682
    private boolean exp; // required
13683
    private boolean cod; // required
13684
    private int stationType; // required
6524 rajveer 13685
    private boolean otgAvailable; // required
6322 amar.kumar 13686
 
13687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13689
      PROVIDER_ID((short)1, "providerId"),
13690
      PINCODE((short)2, "pincode"),
13691
      DEST_CODE((short)3, "destCode"),
13692
      EXP((short)4, "exp"),
13693
      COD((short)5, "cod"),
6524 rajveer 13694
      STATION_TYPE((short)6, "stationType"),
13695
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13696
 
13697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13698
 
13699
      static {
13700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13701
          byName.put(field.getFieldName(), field);
13702
        }
13703
      }
13704
 
13705
      /**
13706
       * Find the _Fields constant that matches fieldId, or null if its not found.
13707
       */
13708
      public static _Fields findByThriftId(int fieldId) {
13709
        switch(fieldId) {
13710
          case 1: // PROVIDER_ID
13711
            return PROVIDER_ID;
13712
          case 2: // PINCODE
13713
            return PINCODE;
13714
          case 3: // DEST_CODE
13715
            return DEST_CODE;
13716
          case 4: // EXP
13717
            return EXP;
13718
          case 5: // COD
13719
            return COD;
13720
          case 6: // STATION_TYPE
13721
            return STATION_TYPE;
6524 rajveer 13722
          case 7: // OTG_AVAILABLE
13723
            return OTG_AVAILABLE;
6322 amar.kumar 13724
          default:
13725
            return null;
13726
        }
13727
      }
13728
 
13729
      /**
13730
       * Find the _Fields constant that matches fieldId, throwing an exception
13731
       * if it is not found.
13732
       */
13733
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13734
        _Fields fields = findByThriftId(fieldId);
13735
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13736
        return fields;
13737
      }
13738
 
13739
      /**
13740
       * Find the _Fields constant that matches name, or null if its not found.
13741
       */
13742
      public static _Fields findByName(String name) {
13743
        return byName.get(name);
13744
      }
13745
 
13746
      private final short _thriftId;
13747
      private final String _fieldName;
13748
 
13749
      _Fields(short thriftId, String fieldName) {
13750
        _thriftId = thriftId;
13751
        _fieldName = fieldName;
13752
      }
13753
 
13754
      public short getThriftFieldId() {
13755
        return _thriftId;
13756
      }
13757
 
13758
      public String getFieldName() {
13759
        return _fieldName;
13760
      }
13761
    }
13762
 
13763
    // isset id assignments
13764
    private static final int __PROVIDERID_ISSET_ID = 0;
13765
    private static final int __EXP_ISSET_ID = 1;
13766
    private static final int __COD_ISSET_ID = 2;
13767
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13768
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13769
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13770
 
13771
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13772
    static {
13773
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13774
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13775
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13776
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13778
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13780
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13782
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13784
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13786
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13787
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13788
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13789
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13790
    }
13791
 
13792
    public addPincode_args() {
13793
    }
13794
 
13795
    public addPincode_args(
13796
      long providerId,
13797
      String pincode,
13798
      String destCode,
13799
      boolean exp,
13800
      boolean cod,
6524 rajveer 13801
      int stationType,
13802
      boolean otgAvailable)
6322 amar.kumar 13803
    {
13804
      this();
13805
      this.providerId = providerId;
13806
      setProviderIdIsSet(true);
13807
      this.pincode = pincode;
13808
      this.destCode = destCode;
13809
      this.exp = exp;
13810
      setExpIsSet(true);
13811
      this.cod = cod;
13812
      setCodIsSet(true);
13813
      this.stationType = stationType;
13814
      setStationTypeIsSet(true);
6524 rajveer 13815
      this.otgAvailable = otgAvailable;
13816
      setOtgAvailableIsSet(true);
6322 amar.kumar 13817
    }
13818
 
13819
    /**
13820
     * Performs a deep copy on <i>other</i>.
13821
     */
13822
    public addPincode_args(addPincode_args other) {
13823
      __isset_bit_vector.clear();
13824
      __isset_bit_vector.or(other.__isset_bit_vector);
13825
      this.providerId = other.providerId;
13826
      if (other.isSetPincode()) {
13827
        this.pincode = other.pincode;
13828
      }
13829
      if (other.isSetDestCode()) {
13830
        this.destCode = other.destCode;
13831
      }
13832
      this.exp = other.exp;
13833
      this.cod = other.cod;
13834
      this.stationType = other.stationType;
6524 rajveer 13835
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13836
    }
13837
 
13838
    public addPincode_args deepCopy() {
13839
      return new addPincode_args(this);
13840
    }
13841
 
13842
    @Override
13843
    public void clear() {
13844
      setProviderIdIsSet(false);
13845
      this.providerId = 0;
13846
      this.pincode = null;
13847
      this.destCode = null;
13848
      setExpIsSet(false);
13849
      this.exp = false;
13850
      setCodIsSet(false);
13851
      this.cod = false;
13852
      setStationTypeIsSet(false);
13853
      this.stationType = 0;
6524 rajveer 13854
      setOtgAvailableIsSet(false);
13855
      this.otgAvailable = false;
6322 amar.kumar 13856
    }
13857
 
13858
    public long getProviderId() {
13859
      return this.providerId;
13860
    }
13861
 
13862
    public void setProviderId(long providerId) {
13863
      this.providerId = providerId;
13864
      setProviderIdIsSet(true);
13865
    }
13866
 
13867
    public void unsetProviderId() {
13868
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13869
    }
13870
 
13871
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13872
    public boolean isSetProviderId() {
13873
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13874
    }
13875
 
13876
    public void setProviderIdIsSet(boolean value) {
13877
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13878
    }
13879
 
13880
    public String getPincode() {
13881
      return this.pincode;
13882
    }
13883
 
13884
    public void setPincode(String pincode) {
13885
      this.pincode = pincode;
13886
    }
13887
 
13888
    public void unsetPincode() {
13889
      this.pincode = null;
13890
    }
13891
 
13892
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13893
    public boolean isSetPincode() {
13894
      return this.pincode != null;
13895
    }
13896
 
13897
    public void setPincodeIsSet(boolean value) {
13898
      if (!value) {
13899
        this.pincode = null;
13900
      }
13901
    }
13902
 
13903
    public String getDestCode() {
13904
      return this.destCode;
13905
    }
13906
 
13907
    public void setDestCode(String destCode) {
13908
      this.destCode = destCode;
13909
    }
13910
 
13911
    public void unsetDestCode() {
13912
      this.destCode = null;
13913
    }
13914
 
13915
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13916
    public boolean isSetDestCode() {
13917
      return this.destCode != null;
13918
    }
13919
 
13920
    public void setDestCodeIsSet(boolean value) {
13921
      if (!value) {
13922
        this.destCode = null;
13923
      }
13924
    }
13925
 
13926
    public boolean isExp() {
13927
      return this.exp;
13928
    }
13929
 
13930
    public void setExp(boolean exp) {
13931
      this.exp = exp;
13932
      setExpIsSet(true);
13933
    }
13934
 
13935
    public void unsetExp() {
13936
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13937
    }
13938
 
13939
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13940
    public boolean isSetExp() {
13941
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13942
    }
13943
 
13944
    public void setExpIsSet(boolean value) {
13945
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13946
    }
13947
 
13948
    public boolean isCod() {
13949
      return this.cod;
13950
    }
13951
 
13952
    public void setCod(boolean cod) {
13953
      this.cod = cod;
13954
      setCodIsSet(true);
13955
    }
13956
 
13957
    public void unsetCod() {
13958
      __isset_bit_vector.clear(__COD_ISSET_ID);
13959
    }
13960
 
13961
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13962
    public boolean isSetCod() {
13963
      return __isset_bit_vector.get(__COD_ISSET_ID);
13964
    }
13965
 
13966
    public void setCodIsSet(boolean value) {
13967
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13968
    }
13969
 
13970
    public int getStationType() {
13971
      return this.stationType;
13972
    }
13973
 
13974
    public void setStationType(int stationType) {
13975
      this.stationType = stationType;
13976
      setStationTypeIsSet(true);
13977
    }
13978
 
13979
    public void unsetStationType() {
13980
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13981
    }
13982
 
13983
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13984
    public boolean isSetStationType() {
13985
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13986
    }
13987
 
13988
    public void setStationTypeIsSet(boolean value) {
13989
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13990
    }
13991
 
6524 rajveer 13992
    public boolean isOtgAvailable() {
13993
      return this.otgAvailable;
13994
    }
13995
 
13996
    public void setOtgAvailable(boolean otgAvailable) {
13997
      this.otgAvailable = otgAvailable;
13998
      setOtgAvailableIsSet(true);
13999
    }
14000
 
14001
    public void unsetOtgAvailable() {
14002
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14003
    }
14004
 
14005
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14006
    public boolean isSetOtgAvailable() {
14007
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14008
    }
14009
 
14010
    public void setOtgAvailableIsSet(boolean value) {
14011
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14012
    }
14013
 
6322 amar.kumar 14014
    public void setFieldValue(_Fields field, Object value) {
14015
      switch (field) {
14016
      case PROVIDER_ID:
14017
        if (value == null) {
14018
          unsetProviderId();
14019
        } else {
14020
          setProviderId((Long)value);
14021
        }
14022
        break;
14023
 
14024
      case PINCODE:
14025
        if (value == null) {
14026
          unsetPincode();
14027
        } else {
14028
          setPincode((String)value);
14029
        }
14030
        break;
14031
 
14032
      case DEST_CODE:
14033
        if (value == null) {
14034
          unsetDestCode();
14035
        } else {
14036
          setDestCode((String)value);
14037
        }
14038
        break;
14039
 
14040
      case EXP:
14041
        if (value == null) {
14042
          unsetExp();
14043
        } else {
14044
          setExp((Boolean)value);
14045
        }
14046
        break;
14047
 
14048
      case COD:
14049
        if (value == null) {
14050
          unsetCod();
14051
        } else {
14052
          setCod((Boolean)value);
14053
        }
14054
        break;
14055
 
14056
      case STATION_TYPE:
14057
        if (value == null) {
14058
          unsetStationType();
14059
        } else {
14060
          setStationType((Integer)value);
14061
        }
14062
        break;
14063
 
6524 rajveer 14064
      case OTG_AVAILABLE:
14065
        if (value == null) {
14066
          unsetOtgAvailable();
14067
        } else {
14068
          setOtgAvailable((Boolean)value);
14069
        }
14070
        break;
14071
 
6322 amar.kumar 14072
      }
14073
    }
14074
 
14075
    public Object getFieldValue(_Fields field) {
14076
      switch (field) {
14077
      case PROVIDER_ID:
14078
        return Long.valueOf(getProviderId());
14079
 
14080
      case PINCODE:
14081
        return getPincode();
14082
 
14083
      case DEST_CODE:
14084
        return getDestCode();
14085
 
14086
      case EXP:
14087
        return Boolean.valueOf(isExp());
14088
 
14089
      case COD:
14090
        return Boolean.valueOf(isCod());
14091
 
14092
      case STATION_TYPE:
14093
        return Integer.valueOf(getStationType());
14094
 
6524 rajveer 14095
      case OTG_AVAILABLE:
14096
        return Boolean.valueOf(isOtgAvailable());
14097
 
6322 amar.kumar 14098
      }
14099
      throw new IllegalStateException();
14100
    }
14101
 
14102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14103
    public boolean isSet(_Fields field) {
14104
      if (field == null) {
14105
        throw new IllegalArgumentException();
14106
      }
14107
 
14108
      switch (field) {
14109
      case PROVIDER_ID:
14110
        return isSetProviderId();
14111
      case PINCODE:
14112
        return isSetPincode();
14113
      case DEST_CODE:
14114
        return isSetDestCode();
14115
      case EXP:
14116
        return isSetExp();
14117
      case COD:
14118
        return isSetCod();
14119
      case STATION_TYPE:
14120
        return isSetStationType();
6524 rajveer 14121
      case OTG_AVAILABLE:
14122
        return isSetOtgAvailable();
6322 amar.kumar 14123
      }
14124
      throw new IllegalStateException();
14125
    }
14126
 
14127
    @Override
14128
    public boolean equals(Object that) {
14129
      if (that == null)
14130
        return false;
14131
      if (that instanceof addPincode_args)
14132
        return this.equals((addPincode_args)that);
14133
      return false;
14134
    }
14135
 
14136
    public boolean equals(addPincode_args that) {
14137
      if (that == null)
14138
        return false;
14139
 
14140
      boolean this_present_providerId = true;
14141
      boolean that_present_providerId = true;
14142
      if (this_present_providerId || that_present_providerId) {
14143
        if (!(this_present_providerId && that_present_providerId))
14144
          return false;
14145
        if (this.providerId != that.providerId)
14146
          return false;
14147
      }
14148
 
14149
      boolean this_present_pincode = true && this.isSetPincode();
14150
      boolean that_present_pincode = true && that.isSetPincode();
14151
      if (this_present_pincode || that_present_pincode) {
14152
        if (!(this_present_pincode && that_present_pincode))
14153
          return false;
14154
        if (!this.pincode.equals(that.pincode))
14155
          return false;
14156
      }
14157
 
14158
      boolean this_present_destCode = true && this.isSetDestCode();
14159
      boolean that_present_destCode = true && that.isSetDestCode();
14160
      if (this_present_destCode || that_present_destCode) {
14161
        if (!(this_present_destCode && that_present_destCode))
14162
          return false;
14163
        if (!this.destCode.equals(that.destCode))
14164
          return false;
14165
      }
14166
 
14167
      boolean this_present_exp = true;
14168
      boolean that_present_exp = true;
14169
      if (this_present_exp || that_present_exp) {
14170
        if (!(this_present_exp && that_present_exp))
14171
          return false;
14172
        if (this.exp != that.exp)
14173
          return false;
14174
      }
14175
 
14176
      boolean this_present_cod = true;
14177
      boolean that_present_cod = true;
14178
      if (this_present_cod || that_present_cod) {
14179
        if (!(this_present_cod && that_present_cod))
14180
          return false;
14181
        if (this.cod != that.cod)
14182
          return false;
14183
      }
14184
 
14185
      boolean this_present_stationType = true;
14186
      boolean that_present_stationType = true;
14187
      if (this_present_stationType || that_present_stationType) {
14188
        if (!(this_present_stationType && that_present_stationType))
14189
          return false;
14190
        if (this.stationType != that.stationType)
14191
          return false;
14192
      }
14193
 
6524 rajveer 14194
      boolean this_present_otgAvailable = true;
14195
      boolean that_present_otgAvailable = true;
14196
      if (this_present_otgAvailable || that_present_otgAvailable) {
14197
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14198
          return false;
14199
        if (this.otgAvailable != that.otgAvailable)
14200
          return false;
14201
      }
14202
 
6322 amar.kumar 14203
      return true;
14204
    }
14205
 
14206
    @Override
14207
    public int hashCode() {
14208
      return 0;
14209
    }
14210
 
14211
    public int compareTo(addPincode_args other) {
14212
      if (!getClass().equals(other.getClass())) {
14213
        return getClass().getName().compareTo(other.getClass().getName());
14214
      }
14215
 
14216
      int lastComparison = 0;
14217
      addPincode_args typedOther = (addPincode_args)other;
14218
 
14219
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14220
      if (lastComparison != 0) {
14221
        return lastComparison;
14222
      }
14223
      if (isSetProviderId()) {
14224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14225
        if (lastComparison != 0) {
14226
          return lastComparison;
14227
        }
14228
      }
14229
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14230
      if (lastComparison != 0) {
14231
        return lastComparison;
14232
      }
14233
      if (isSetPincode()) {
14234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14235
        if (lastComparison != 0) {
14236
          return lastComparison;
14237
        }
14238
      }
14239
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14240
      if (lastComparison != 0) {
14241
        return lastComparison;
14242
      }
14243
      if (isSetDestCode()) {
14244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14245
        if (lastComparison != 0) {
14246
          return lastComparison;
14247
        }
14248
      }
14249
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14250
      if (lastComparison != 0) {
14251
        return lastComparison;
14252
      }
14253
      if (isSetExp()) {
14254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14255
        if (lastComparison != 0) {
14256
          return lastComparison;
14257
        }
14258
      }
14259
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14260
      if (lastComparison != 0) {
14261
        return lastComparison;
14262
      }
14263
      if (isSetCod()) {
14264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14265
        if (lastComparison != 0) {
14266
          return lastComparison;
14267
        }
14268
      }
14269
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14270
      if (lastComparison != 0) {
14271
        return lastComparison;
14272
      }
14273
      if (isSetStationType()) {
14274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14275
        if (lastComparison != 0) {
14276
          return lastComparison;
14277
        }
14278
      }
6524 rajveer 14279
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14280
      if (lastComparison != 0) {
14281
        return lastComparison;
14282
      }
14283
      if (isSetOtgAvailable()) {
14284
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14285
        if (lastComparison != 0) {
14286
          return lastComparison;
14287
        }
14288
      }
6322 amar.kumar 14289
      return 0;
14290
    }
14291
 
14292
    public _Fields fieldForId(int fieldId) {
14293
      return _Fields.findByThriftId(fieldId);
14294
    }
14295
 
14296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14297
      org.apache.thrift.protocol.TField field;
14298
      iprot.readStructBegin();
14299
      while (true)
14300
      {
14301
        field = iprot.readFieldBegin();
14302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14303
          break;
14304
        }
14305
        switch (field.id) {
14306
          case 1: // PROVIDER_ID
14307
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14308
              this.providerId = iprot.readI64();
14309
              setProviderIdIsSet(true);
14310
            } else { 
14311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14312
            }
14313
            break;
14314
          case 2: // PINCODE
14315
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14316
              this.pincode = iprot.readString();
14317
            } else { 
14318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14319
            }
14320
            break;
14321
          case 3: // DEST_CODE
14322
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14323
              this.destCode = iprot.readString();
14324
            } else { 
14325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14326
            }
14327
            break;
14328
          case 4: // EXP
14329
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14330
              this.exp = iprot.readBool();
14331
              setExpIsSet(true);
14332
            } else { 
14333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14334
            }
14335
            break;
14336
          case 5: // COD
14337
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14338
              this.cod = iprot.readBool();
14339
              setCodIsSet(true);
14340
            } else { 
14341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14342
            }
14343
            break;
14344
          case 6: // STATION_TYPE
14345
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14346
              this.stationType = iprot.readI32();
14347
              setStationTypeIsSet(true);
14348
            } else { 
14349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14350
            }
14351
            break;
6524 rajveer 14352
          case 7: // OTG_AVAILABLE
14353
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14354
              this.otgAvailable = iprot.readBool();
14355
              setOtgAvailableIsSet(true);
14356
            } else { 
14357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14358
            }
14359
            break;
6322 amar.kumar 14360
          default:
14361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14362
        }
14363
        iprot.readFieldEnd();
14364
      }
14365
      iprot.readStructEnd();
14366
      validate();
14367
    }
14368
 
14369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14370
      validate();
14371
 
14372
      oprot.writeStructBegin(STRUCT_DESC);
14373
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14374
      oprot.writeI64(this.providerId);
14375
      oprot.writeFieldEnd();
14376
      if (this.pincode != null) {
14377
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14378
        oprot.writeString(this.pincode);
14379
        oprot.writeFieldEnd();
14380
      }
14381
      if (this.destCode != null) {
14382
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14383
        oprot.writeString(this.destCode);
14384
        oprot.writeFieldEnd();
14385
      }
14386
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14387
      oprot.writeBool(this.exp);
14388
      oprot.writeFieldEnd();
14389
      oprot.writeFieldBegin(COD_FIELD_DESC);
14390
      oprot.writeBool(this.cod);
14391
      oprot.writeFieldEnd();
14392
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14393
      oprot.writeI32(this.stationType);
14394
      oprot.writeFieldEnd();
6524 rajveer 14395
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14396
      oprot.writeBool(this.otgAvailable);
14397
      oprot.writeFieldEnd();
6322 amar.kumar 14398
      oprot.writeFieldStop();
14399
      oprot.writeStructEnd();
14400
    }
14401
 
14402
    @Override
14403
    public String toString() {
14404
      StringBuilder sb = new StringBuilder("addPincode_args(");
14405
      boolean first = true;
14406
 
14407
      sb.append("providerId:");
14408
      sb.append(this.providerId);
14409
      first = false;
14410
      if (!first) sb.append(", ");
14411
      sb.append("pincode:");
14412
      if (this.pincode == null) {
14413
        sb.append("null");
14414
      } else {
14415
        sb.append(this.pincode);
14416
      }
14417
      first = false;
14418
      if (!first) sb.append(", ");
14419
      sb.append("destCode:");
14420
      if (this.destCode == null) {
14421
        sb.append("null");
14422
      } else {
14423
        sb.append(this.destCode);
14424
      }
14425
      first = false;
14426
      if (!first) sb.append(", ");
14427
      sb.append("exp:");
14428
      sb.append(this.exp);
14429
      first = false;
14430
      if (!first) sb.append(", ");
14431
      sb.append("cod:");
14432
      sb.append(this.cod);
14433
      first = false;
14434
      if (!first) sb.append(", ");
14435
      sb.append("stationType:");
14436
      sb.append(this.stationType);
14437
      first = false;
6524 rajveer 14438
      if (!first) sb.append(", ");
14439
      sb.append("otgAvailable:");
14440
      sb.append(this.otgAvailable);
14441
      first = false;
6322 amar.kumar 14442
      sb.append(")");
14443
      return sb.toString();
14444
    }
14445
 
14446
    public void validate() throws org.apache.thrift.TException {
14447
      // check for required fields
14448
    }
14449
 
14450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14451
      try {
14452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14453
      } catch (org.apache.thrift.TException te) {
14454
        throw new java.io.IOException(te);
14455
      }
14456
    }
14457
 
14458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14459
      try {
14460
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14461
        __isset_bit_vector = new BitSet(1);
14462
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14463
      } catch (org.apache.thrift.TException te) {
14464
        throw new java.io.IOException(te);
14465
      }
14466
    }
14467
 
14468
  }
14469
 
14470
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14471
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14472
 
14473
 
14474
 
14475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14477
;
14478
 
14479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14480
 
14481
      static {
14482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14483
          byName.put(field.getFieldName(), field);
14484
        }
14485
      }
14486
 
14487
      /**
14488
       * Find the _Fields constant that matches fieldId, or null if its not found.
14489
       */
14490
      public static _Fields findByThriftId(int fieldId) {
14491
        switch(fieldId) {
14492
          default:
14493
            return null;
14494
        }
14495
      }
14496
 
14497
      /**
14498
       * Find the _Fields constant that matches fieldId, throwing an exception
14499
       * if it is not found.
14500
       */
14501
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14502
        _Fields fields = findByThriftId(fieldId);
14503
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14504
        return fields;
14505
      }
14506
 
14507
      /**
14508
       * Find the _Fields constant that matches name, or null if its not found.
14509
       */
14510
      public static _Fields findByName(String name) {
14511
        return byName.get(name);
14512
      }
14513
 
14514
      private final short _thriftId;
14515
      private final String _fieldName;
14516
 
14517
      _Fields(short thriftId, String fieldName) {
14518
        _thriftId = thriftId;
14519
        _fieldName = fieldName;
14520
      }
14521
 
14522
      public short getThriftFieldId() {
14523
        return _thriftId;
14524
      }
14525
 
14526
      public String getFieldName() {
14527
        return _fieldName;
14528
      }
14529
    }
14530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14531
    static {
14532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14535
    }
14536
 
14537
    public addPincode_result() {
14538
    }
14539
 
14540
    /**
14541
     * Performs a deep copy on <i>other</i>.
14542
     */
14543
    public addPincode_result(addPincode_result other) {
14544
    }
14545
 
14546
    public addPincode_result deepCopy() {
14547
      return new addPincode_result(this);
14548
    }
14549
 
14550
    @Override
14551
    public void clear() {
14552
    }
14553
 
14554
    public void setFieldValue(_Fields field, Object value) {
14555
      switch (field) {
14556
      }
14557
    }
14558
 
14559
    public Object getFieldValue(_Fields field) {
14560
      switch (field) {
14561
      }
14562
      throw new IllegalStateException();
14563
    }
14564
 
14565
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14566
    public boolean isSet(_Fields field) {
14567
      if (field == null) {
14568
        throw new IllegalArgumentException();
14569
      }
14570
 
14571
      switch (field) {
14572
      }
14573
      throw new IllegalStateException();
14574
    }
14575
 
14576
    @Override
14577
    public boolean equals(Object that) {
14578
      if (that == null)
14579
        return false;
14580
      if (that instanceof addPincode_result)
14581
        return this.equals((addPincode_result)that);
14582
      return false;
14583
    }
14584
 
14585
    public boolean equals(addPincode_result that) {
14586
      if (that == null)
14587
        return false;
14588
 
14589
      return true;
14590
    }
14591
 
14592
    @Override
14593
    public int hashCode() {
14594
      return 0;
14595
    }
14596
 
14597
    public int compareTo(addPincode_result other) {
14598
      if (!getClass().equals(other.getClass())) {
14599
        return getClass().getName().compareTo(other.getClass().getName());
14600
      }
14601
 
14602
      int lastComparison = 0;
14603
      addPincode_result typedOther = (addPincode_result)other;
14604
 
14605
      return 0;
14606
    }
14607
 
14608
    public _Fields fieldForId(int fieldId) {
14609
      return _Fields.findByThriftId(fieldId);
14610
    }
14611
 
14612
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14613
      org.apache.thrift.protocol.TField field;
14614
      iprot.readStructBegin();
14615
      while (true)
14616
      {
14617
        field = iprot.readFieldBegin();
14618
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14619
          break;
14620
        }
14621
        switch (field.id) {
14622
          default:
14623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14624
        }
14625
        iprot.readFieldEnd();
14626
      }
14627
      iprot.readStructEnd();
14628
      validate();
14629
    }
14630
 
14631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14632
      oprot.writeStructBegin(STRUCT_DESC);
14633
 
14634
      oprot.writeFieldStop();
14635
      oprot.writeStructEnd();
14636
    }
14637
 
14638
    @Override
14639
    public String toString() {
14640
      StringBuilder sb = new StringBuilder("addPincode_result(");
14641
      boolean first = true;
14642
 
14643
      sb.append(")");
14644
      return sb.toString();
14645
    }
14646
 
14647
    public void validate() throws org.apache.thrift.TException {
14648
      // check for required fields
14649
    }
14650
 
14651
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14652
      try {
14653
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14654
      } catch (org.apache.thrift.TException te) {
14655
        throw new java.io.IOException(te);
14656
      }
14657
    }
14658
 
14659
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14660
      try {
14661
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14662
      } catch (org.apache.thrift.TException te) {
14663
        throw new java.io.IOException(te);
14664
      }
14665
    }
14666
 
14667
  }
14668
 
14669
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14670
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14671
 
14672
    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);
14673
    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);
14674
    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);
14675
    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 14676
    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 14677
 
14678
    private long providerId; // required
14679
    private String pincode; // required
14680
    private boolean exp; // required
14681
    private boolean cod; // required
6524 rajveer 14682
    private boolean otgAvailable; // required
6322 amar.kumar 14683
 
14684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14686
      PROVIDER_ID((short)1, "providerId"),
14687
      PINCODE((short)2, "pincode"),
14688
      EXP((short)3, "exp"),
6524 rajveer 14689
      COD((short)4, "cod"),
14690
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14691
 
14692
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14693
 
14694
      static {
14695
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14696
          byName.put(field.getFieldName(), field);
14697
        }
14698
      }
14699
 
14700
      /**
14701
       * Find the _Fields constant that matches fieldId, or null if its not found.
14702
       */
14703
      public static _Fields findByThriftId(int fieldId) {
14704
        switch(fieldId) {
14705
          case 1: // PROVIDER_ID
14706
            return PROVIDER_ID;
14707
          case 2: // PINCODE
14708
            return PINCODE;
14709
          case 3: // EXP
14710
            return EXP;
14711
          case 4: // COD
14712
            return COD;
6524 rajveer 14713
          case 5: // OTG_AVAILABLE
14714
            return OTG_AVAILABLE;
6322 amar.kumar 14715
          default:
14716
            return null;
14717
        }
14718
      }
14719
 
14720
      /**
14721
       * Find the _Fields constant that matches fieldId, throwing an exception
14722
       * if it is not found.
14723
       */
14724
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14725
        _Fields fields = findByThriftId(fieldId);
14726
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14727
        return fields;
14728
      }
14729
 
14730
      /**
14731
       * Find the _Fields constant that matches name, or null if its not found.
14732
       */
14733
      public static _Fields findByName(String name) {
14734
        return byName.get(name);
14735
      }
14736
 
14737
      private final short _thriftId;
14738
      private final String _fieldName;
14739
 
14740
      _Fields(short thriftId, String fieldName) {
14741
        _thriftId = thriftId;
14742
        _fieldName = fieldName;
14743
      }
14744
 
14745
      public short getThriftFieldId() {
14746
        return _thriftId;
14747
      }
14748
 
14749
      public String getFieldName() {
14750
        return _fieldName;
14751
      }
14752
    }
14753
 
14754
    // isset id assignments
14755
    private static final int __PROVIDERID_ISSET_ID = 0;
14756
    private static final int __EXP_ISSET_ID = 1;
14757
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14758
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14759
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14760
 
14761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14762
    static {
14763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14764
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14766
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14768
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14770
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14772
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14773
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14774
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14775
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14776
    }
14777
 
14778
    public updatePincode_args() {
14779
    }
14780
 
14781
    public updatePincode_args(
14782
      long providerId,
14783
      String pincode,
14784
      boolean exp,
6524 rajveer 14785
      boolean cod,
14786
      boolean otgAvailable)
6322 amar.kumar 14787
    {
14788
      this();
14789
      this.providerId = providerId;
14790
      setProviderIdIsSet(true);
14791
      this.pincode = pincode;
14792
      this.exp = exp;
14793
      setExpIsSet(true);
14794
      this.cod = cod;
14795
      setCodIsSet(true);
6524 rajveer 14796
      this.otgAvailable = otgAvailable;
14797
      setOtgAvailableIsSet(true);
6322 amar.kumar 14798
    }
14799
 
14800
    /**
14801
     * Performs a deep copy on <i>other</i>.
14802
     */
14803
    public updatePincode_args(updatePincode_args other) {
14804
      __isset_bit_vector.clear();
14805
      __isset_bit_vector.or(other.__isset_bit_vector);
14806
      this.providerId = other.providerId;
14807
      if (other.isSetPincode()) {
14808
        this.pincode = other.pincode;
14809
      }
14810
      this.exp = other.exp;
14811
      this.cod = other.cod;
6524 rajveer 14812
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14813
    }
14814
 
14815
    public updatePincode_args deepCopy() {
14816
      return new updatePincode_args(this);
14817
    }
14818
 
14819
    @Override
14820
    public void clear() {
14821
      setProviderIdIsSet(false);
14822
      this.providerId = 0;
14823
      this.pincode = null;
14824
      setExpIsSet(false);
14825
      this.exp = false;
14826
      setCodIsSet(false);
14827
      this.cod = false;
6524 rajveer 14828
      setOtgAvailableIsSet(false);
14829
      this.otgAvailable = false;
6322 amar.kumar 14830
    }
14831
 
14832
    public long getProviderId() {
14833
      return this.providerId;
14834
    }
14835
 
14836
    public void setProviderId(long providerId) {
14837
      this.providerId = providerId;
14838
      setProviderIdIsSet(true);
14839
    }
14840
 
14841
    public void unsetProviderId() {
14842
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14843
    }
14844
 
14845
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14846
    public boolean isSetProviderId() {
14847
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14848
    }
14849
 
14850
    public void setProviderIdIsSet(boolean value) {
14851
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14852
    }
14853
 
14854
    public String getPincode() {
14855
      return this.pincode;
14856
    }
14857
 
14858
    public void setPincode(String pincode) {
14859
      this.pincode = pincode;
14860
    }
14861
 
14862
    public void unsetPincode() {
14863
      this.pincode = null;
14864
    }
14865
 
14866
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14867
    public boolean isSetPincode() {
14868
      return this.pincode != null;
14869
    }
14870
 
14871
    public void setPincodeIsSet(boolean value) {
14872
      if (!value) {
14873
        this.pincode = null;
14874
      }
14875
    }
14876
 
14877
    public boolean isExp() {
14878
      return this.exp;
14879
    }
14880
 
14881
    public void setExp(boolean exp) {
14882
      this.exp = exp;
14883
      setExpIsSet(true);
14884
    }
14885
 
14886
    public void unsetExp() {
14887
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14888
    }
14889
 
14890
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14891
    public boolean isSetExp() {
14892
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14893
    }
14894
 
14895
    public void setExpIsSet(boolean value) {
14896
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14897
    }
14898
 
14899
    public boolean isCod() {
14900
      return this.cod;
14901
    }
14902
 
14903
    public void setCod(boolean cod) {
14904
      this.cod = cod;
14905
      setCodIsSet(true);
14906
    }
14907
 
14908
    public void unsetCod() {
14909
      __isset_bit_vector.clear(__COD_ISSET_ID);
14910
    }
14911
 
14912
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14913
    public boolean isSetCod() {
14914
      return __isset_bit_vector.get(__COD_ISSET_ID);
14915
    }
14916
 
14917
    public void setCodIsSet(boolean value) {
14918
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14919
    }
14920
 
6524 rajveer 14921
    public boolean isOtgAvailable() {
14922
      return this.otgAvailable;
14923
    }
14924
 
14925
    public void setOtgAvailable(boolean otgAvailable) {
14926
      this.otgAvailable = otgAvailable;
14927
      setOtgAvailableIsSet(true);
14928
    }
14929
 
14930
    public void unsetOtgAvailable() {
14931
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14932
    }
14933
 
14934
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14935
    public boolean isSetOtgAvailable() {
14936
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14937
    }
14938
 
14939
    public void setOtgAvailableIsSet(boolean value) {
14940
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14941
    }
14942
 
6322 amar.kumar 14943
    public void setFieldValue(_Fields field, Object value) {
14944
      switch (field) {
14945
      case PROVIDER_ID:
14946
        if (value == null) {
14947
          unsetProviderId();
14948
        } else {
14949
          setProviderId((Long)value);
14950
        }
14951
        break;
14952
 
14953
      case PINCODE:
14954
        if (value == null) {
14955
          unsetPincode();
14956
        } else {
14957
          setPincode((String)value);
14958
        }
14959
        break;
14960
 
14961
      case EXP:
14962
        if (value == null) {
14963
          unsetExp();
14964
        } else {
14965
          setExp((Boolean)value);
14966
        }
14967
        break;
14968
 
14969
      case COD:
14970
        if (value == null) {
14971
          unsetCod();
14972
        } else {
14973
          setCod((Boolean)value);
14974
        }
14975
        break;
14976
 
6524 rajveer 14977
      case OTG_AVAILABLE:
14978
        if (value == null) {
14979
          unsetOtgAvailable();
14980
        } else {
14981
          setOtgAvailable((Boolean)value);
14982
        }
14983
        break;
14984
 
6322 amar.kumar 14985
      }
14986
    }
14987
 
14988
    public Object getFieldValue(_Fields field) {
14989
      switch (field) {
14990
      case PROVIDER_ID:
14991
        return Long.valueOf(getProviderId());
14992
 
14993
      case PINCODE:
14994
        return getPincode();
14995
 
14996
      case EXP:
14997
        return Boolean.valueOf(isExp());
14998
 
14999
      case COD:
15000
        return Boolean.valueOf(isCod());
15001
 
6524 rajveer 15002
      case OTG_AVAILABLE:
15003
        return Boolean.valueOf(isOtgAvailable());
15004
 
6322 amar.kumar 15005
      }
15006
      throw new IllegalStateException();
15007
    }
15008
 
15009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15010
    public boolean isSet(_Fields field) {
15011
      if (field == null) {
15012
        throw new IllegalArgumentException();
15013
      }
15014
 
15015
      switch (field) {
15016
      case PROVIDER_ID:
15017
        return isSetProviderId();
15018
      case PINCODE:
15019
        return isSetPincode();
15020
      case EXP:
15021
        return isSetExp();
15022
      case COD:
15023
        return isSetCod();
6524 rajveer 15024
      case OTG_AVAILABLE:
15025
        return isSetOtgAvailable();
6322 amar.kumar 15026
      }
15027
      throw new IllegalStateException();
15028
    }
15029
 
15030
    @Override
15031
    public boolean equals(Object that) {
15032
      if (that == null)
15033
        return false;
15034
      if (that instanceof updatePincode_args)
15035
        return this.equals((updatePincode_args)that);
15036
      return false;
15037
    }
15038
 
15039
    public boolean equals(updatePincode_args that) {
15040
      if (that == null)
15041
        return false;
15042
 
15043
      boolean this_present_providerId = true;
15044
      boolean that_present_providerId = true;
15045
      if (this_present_providerId || that_present_providerId) {
15046
        if (!(this_present_providerId && that_present_providerId))
15047
          return false;
15048
        if (this.providerId != that.providerId)
15049
          return false;
15050
      }
15051
 
15052
      boolean this_present_pincode = true && this.isSetPincode();
15053
      boolean that_present_pincode = true && that.isSetPincode();
15054
      if (this_present_pincode || that_present_pincode) {
15055
        if (!(this_present_pincode && that_present_pincode))
15056
          return false;
15057
        if (!this.pincode.equals(that.pincode))
15058
          return false;
15059
      }
15060
 
15061
      boolean this_present_exp = true;
15062
      boolean that_present_exp = true;
15063
      if (this_present_exp || that_present_exp) {
15064
        if (!(this_present_exp && that_present_exp))
15065
          return false;
15066
        if (this.exp != that.exp)
15067
          return false;
15068
      }
15069
 
15070
      boolean this_present_cod = true;
15071
      boolean that_present_cod = true;
15072
      if (this_present_cod || that_present_cod) {
15073
        if (!(this_present_cod && that_present_cod))
15074
          return false;
15075
        if (this.cod != that.cod)
15076
          return false;
15077
      }
15078
 
6524 rajveer 15079
      boolean this_present_otgAvailable = true;
15080
      boolean that_present_otgAvailable = true;
15081
      if (this_present_otgAvailable || that_present_otgAvailable) {
15082
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15083
          return false;
15084
        if (this.otgAvailable != that.otgAvailable)
15085
          return false;
15086
      }
15087
 
6322 amar.kumar 15088
      return true;
15089
    }
15090
 
15091
    @Override
15092
    public int hashCode() {
15093
      return 0;
15094
    }
15095
 
15096
    public int compareTo(updatePincode_args other) {
15097
      if (!getClass().equals(other.getClass())) {
15098
        return getClass().getName().compareTo(other.getClass().getName());
15099
      }
15100
 
15101
      int lastComparison = 0;
15102
      updatePincode_args typedOther = (updatePincode_args)other;
15103
 
15104
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15105
      if (lastComparison != 0) {
15106
        return lastComparison;
15107
      }
15108
      if (isSetProviderId()) {
15109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15110
        if (lastComparison != 0) {
15111
          return lastComparison;
15112
        }
15113
      }
15114
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15115
      if (lastComparison != 0) {
15116
        return lastComparison;
15117
      }
15118
      if (isSetPincode()) {
15119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15120
        if (lastComparison != 0) {
15121
          return lastComparison;
15122
        }
15123
      }
15124
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15125
      if (lastComparison != 0) {
15126
        return lastComparison;
15127
      }
15128
      if (isSetExp()) {
15129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15130
        if (lastComparison != 0) {
15131
          return lastComparison;
15132
        }
15133
      }
15134
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15135
      if (lastComparison != 0) {
15136
        return lastComparison;
15137
      }
15138
      if (isSetCod()) {
15139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15140
        if (lastComparison != 0) {
15141
          return lastComparison;
15142
        }
15143
      }
6524 rajveer 15144
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15145
      if (lastComparison != 0) {
15146
        return lastComparison;
15147
      }
15148
      if (isSetOtgAvailable()) {
15149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15150
        if (lastComparison != 0) {
15151
          return lastComparison;
15152
        }
15153
      }
6322 amar.kumar 15154
      return 0;
15155
    }
15156
 
15157
    public _Fields fieldForId(int fieldId) {
15158
      return _Fields.findByThriftId(fieldId);
15159
    }
15160
 
15161
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15162
      org.apache.thrift.protocol.TField field;
15163
      iprot.readStructBegin();
15164
      while (true)
15165
      {
15166
        field = iprot.readFieldBegin();
15167
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15168
          break;
15169
        }
15170
        switch (field.id) {
15171
          case 1: // PROVIDER_ID
15172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15173
              this.providerId = iprot.readI64();
15174
              setProviderIdIsSet(true);
15175
            } else { 
15176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15177
            }
15178
            break;
15179
          case 2: // PINCODE
15180
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15181
              this.pincode = iprot.readString();
15182
            } else { 
15183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15184
            }
15185
            break;
15186
          case 3: // EXP
15187
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15188
              this.exp = iprot.readBool();
15189
              setExpIsSet(true);
15190
            } else { 
15191
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15192
            }
15193
            break;
15194
          case 4: // COD
15195
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15196
              this.cod = iprot.readBool();
15197
              setCodIsSet(true);
15198
            } else { 
15199
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15200
            }
15201
            break;
6524 rajveer 15202
          case 5: // OTG_AVAILABLE
15203
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15204
              this.otgAvailable = iprot.readBool();
15205
              setOtgAvailableIsSet(true);
15206
            } else { 
15207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15208
            }
15209
            break;
6322 amar.kumar 15210
          default:
15211
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15212
        }
15213
        iprot.readFieldEnd();
15214
      }
15215
      iprot.readStructEnd();
15216
      validate();
15217
    }
15218
 
15219
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15220
      validate();
15221
 
15222
      oprot.writeStructBegin(STRUCT_DESC);
15223
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15224
      oprot.writeI64(this.providerId);
15225
      oprot.writeFieldEnd();
15226
      if (this.pincode != null) {
15227
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15228
        oprot.writeString(this.pincode);
15229
        oprot.writeFieldEnd();
15230
      }
15231
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15232
      oprot.writeBool(this.exp);
15233
      oprot.writeFieldEnd();
15234
      oprot.writeFieldBegin(COD_FIELD_DESC);
15235
      oprot.writeBool(this.cod);
15236
      oprot.writeFieldEnd();
6524 rajveer 15237
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15238
      oprot.writeBool(this.otgAvailable);
15239
      oprot.writeFieldEnd();
6322 amar.kumar 15240
      oprot.writeFieldStop();
15241
      oprot.writeStructEnd();
15242
    }
15243
 
15244
    @Override
15245
    public String toString() {
15246
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15247
      boolean first = true;
15248
 
15249
      sb.append("providerId:");
15250
      sb.append(this.providerId);
15251
      first = false;
15252
      if (!first) sb.append(", ");
15253
      sb.append("pincode:");
15254
      if (this.pincode == null) {
15255
        sb.append("null");
15256
      } else {
15257
        sb.append(this.pincode);
15258
      }
15259
      first = false;
15260
      if (!first) sb.append(", ");
15261
      sb.append("exp:");
15262
      sb.append(this.exp);
15263
      first = false;
15264
      if (!first) sb.append(", ");
15265
      sb.append("cod:");
15266
      sb.append(this.cod);
15267
      first = false;
6524 rajveer 15268
      if (!first) sb.append(", ");
15269
      sb.append("otgAvailable:");
15270
      sb.append(this.otgAvailable);
15271
      first = false;
6322 amar.kumar 15272
      sb.append(")");
15273
      return sb.toString();
15274
    }
15275
 
15276
    public void validate() throws org.apache.thrift.TException {
15277
      // check for required fields
15278
    }
15279
 
15280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15281
      try {
15282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15283
      } catch (org.apache.thrift.TException te) {
15284
        throw new java.io.IOException(te);
15285
      }
15286
    }
15287
 
15288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15289
      try {
15290
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15291
        __isset_bit_vector = new BitSet(1);
15292
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15293
      } catch (org.apache.thrift.TException te) {
15294
        throw new java.io.IOException(te);
15295
      }
15296
    }
15297
 
15298
  }
15299
 
15300
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15301
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15302
 
15303
 
15304
 
15305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15307
;
15308
 
15309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15310
 
15311
      static {
15312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15313
          byName.put(field.getFieldName(), field);
15314
        }
15315
      }
15316
 
15317
      /**
15318
       * Find the _Fields constant that matches fieldId, or null if its not found.
15319
       */
15320
      public static _Fields findByThriftId(int fieldId) {
15321
        switch(fieldId) {
15322
          default:
15323
            return null;
15324
        }
15325
      }
15326
 
15327
      /**
15328
       * Find the _Fields constant that matches fieldId, throwing an exception
15329
       * if it is not found.
15330
       */
15331
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15332
        _Fields fields = findByThriftId(fieldId);
15333
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15334
        return fields;
15335
      }
15336
 
15337
      /**
15338
       * Find the _Fields constant that matches name, or null if its not found.
15339
       */
15340
      public static _Fields findByName(String name) {
15341
        return byName.get(name);
15342
      }
15343
 
15344
      private final short _thriftId;
15345
      private final String _fieldName;
15346
 
15347
      _Fields(short thriftId, String fieldName) {
15348
        _thriftId = thriftId;
15349
        _fieldName = fieldName;
15350
      }
15351
 
15352
      public short getThriftFieldId() {
15353
        return _thriftId;
15354
      }
15355
 
15356
      public String getFieldName() {
15357
        return _fieldName;
15358
      }
15359
    }
15360
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15361
    static {
15362
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15365
    }
15366
 
15367
    public updatePincode_result() {
15368
    }
15369
 
15370
    /**
15371
     * Performs a deep copy on <i>other</i>.
15372
     */
15373
    public updatePincode_result(updatePincode_result other) {
15374
    }
15375
 
15376
    public updatePincode_result deepCopy() {
15377
      return new updatePincode_result(this);
15378
    }
15379
 
15380
    @Override
15381
    public void clear() {
15382
    }
15383
 
15384
    public void setFieldValue(_Fields field, Object value) {
15385
      switch (field) {
15386
      }
15387
    }
15388
 
15389
    public Object getFieldValue(_Fields field) {
15390
      switch (field) {
15391
      }
15392
      throw new IllegalStateException();
15393
    }
15394
 
15395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15396
    public boolean isSet(_Fields field) {
15397
      if (field == null) {
15398
        throw new IllegalArgumentException();
15399
      }
15400
 
15401
      switch (field) {
15402
      }
15403
      throw new IllegalStateException();
15404
    }
15405
 
15406
    @Override
15407
    public boolean equals(Object that) {
15408
      if (that == null)
15409
        return false;
15410
      if (that instanceof updatePincode_result)
15411
        return this.equals((updatePincode_result)that);
15412
      return false;
15413
    }
15414
 
15415
    public boolean equals(updatePincode_result that) {
15416
      if (that == null)
15417
        return false;
15418
 
15419
      return true;
15420
    }
15421
 
15422
    @Override
15423
    public int hashCode() {
15424
      return 0;
15425
    }
15426
 
15427
    public int compareTo(updatePincode_result other) {
15428
      if (!getClass().equals(other.getClass())) {
15429
        return getClass().getName().compareTo(other.getClass().getName());
15430
      }
15431
 
15432
      int lastComparison = 0;
15433
      updatePincode_result typedOther = (updatePincode_result)other;
15434
 
15435
      return 0;
15436
    }
15437
 
15438
    public _Fields fieldForId(int fieldId) {
15439
      return _Fields.findByThriftId(fieldId);
15440
    }
15441
 
15442
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15443
      org.apache.thrift.protocol.TField field;
15444
      iprot.readStructBegin();
15445
      while (true)
15446
      {
15447
        field = iprot.readFieldBegin();
15448
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15449
          break;
15450
        }
15451
        switch (field.id) {
15452
          default:
15453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15454
        }
15455
        iprot.readFieldEnd();
15456
      }
15457
      iprot.readStructEnd();
15458
      validate();
15459
    }
15460
 
15461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15462
      oprot.writeStructBegin(STRUCT_DESC);
15463
 
15464
      oprot.writeFieldStop();
15465
      oprot.writeStructEnd();
15466
    }
15467
 
15468
    @Override
15469
    public String toString() {
15470
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15471
      boolean first = true;
15472
 
15473
      sb.append(")");
15474
      return sb.toString();
15475
    }
15476
 
15477
    public void validate() throws org.apache.thrift.TException {
15478
      // check for required fields
15479
    }
15480
 
15481
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15482
      try {
15483
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15484
      } catch (org.apache.thrift.TException te) {
15485
        throw new java.io.IOException(te);
15486
      }
15487
    }
15488
 
15489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15490
      try {
15491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15492
      } catch (org.apache.thrift.TException te) {
15493
        throw new java.io.IOException(te);
15494
      }
15495
    }
15496
 
15497
  }
15498
 
7567 rajveer 15499
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15501
 
15502
    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);
15503
    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);
15504
    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 15505
    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 15506
 
15507
    private long providerId; // required
15508
    private boolean cod; // required
15509
    private List<String> awbs; // required
13146 manish.sha 15510
    private long awbUsedFor; // required
7567 rajveer 15511
 
15512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15513
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15514
      PROVIDER_ID((short)1, "providerId"),
15515
      COD((short)2, "cod"),
13146 manish.sha 15516
      AWBS((short)3, "awbs"),
15517
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15518
 
15519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15520
 
15521
      static {
15522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15523
          byName.put(field.getFieldName(), field);
15524
        }
15525
      }
15526
 
15527
      /**
15528
       * Find the _Fields constant that matches fieldId, or null if its not found.
15529
       */
15530
      public static _Fields findByThriftId(int fieldId) {
15531
        switch(fieldId) {
15532
          case 1: // PROVIDER_ID
15533
            return PROVIDER_ID;
15534
          case 2: // COD
15535
            return COD;
15536
          case 3: // AWBS
15537
            return AWBS;
13146 manish.sha 15538
          case 4: // AWB_USED_FOR
15539
            return AWB_USED_FOR;
7567 rajveer 15540
          default:
15541
            return null;
15542
        }
15543
      }
15544
 
15545
      /**
15546
       * Find the _Fields constant that matches fieldId, throwing an exception
15547
       * if it is not found.
15548
       */
15549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15550
        _Fields fields = findByThriftId(fieldId);
15551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15552
        return fields;
15553
      }
15554
 
15555
      /**
15556
       * Find the _Fields constant that matches name, or null if its not found.
15557
       */
15558
      public static _Fields findByName(String name) {
15559
        return byName.get(name);
15560
      }
15561
 
15562
      private final short _thriftId;
15563
      private final String _fieldName;
15564
 
15565
      _Fields(short thriftId, String fieldName) {
15566
        _thriftId = thriftId;
15567
        _fieldName = fieldName;
15568
      }
15569
 
15570
      public short getThriftFieldId() {
15571
        return _thriftId;
15572
      }
15573
 
15574
      public String getFieldName() {
15575
        return _fieldName;
15576
      }
15577
    }
15578
 
15579
    // isset id assignments
15580
    private static final int __PROVIDERID_ISSET_ID = 0;
15581
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15582
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15583
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15584
 
15585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15586
    static {
15587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15588
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15590
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15592
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15593
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15594
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15595
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15599
    }
15600
 
15601
    public addNewAwbs_args() {
15602
    }
15603
 
15604
    public addNewAwbs_args(
15605
      long providerId,
15606
      boolean cod,
13146 manish.sha 15607
      List<String> awbs,
15608
      long awbUsedFor)
7567 rajveer 15609
    {
15610
      this();
15611
      this.providerId = providerId;
15612
      setProviderIdIsSet(true);
15613
      this.cod = cod;
15614
      setCodIsSet(true);
15615
      this.awbs = awbs;
13146 manish.sha 15616
      this.awbUsedFor = awbUsedFor;
15617
      setAwbUsedForIsSet(true);
7567 rajveer 15618
    }
15619
 
15620
    /**
15621
     * Performs a deep copy on <i>other</i>.
15622
     */
15623
    public addNewAwbs_args(addNewAwbs_args other) {
15624
      __isset_bit_vector.clear();
15625
      __isset_bit_vector.or(other.__isset_bit_vector);
15626
      this.providerId = other.providerId;
15627
      this.cod = other.cod;
15628
      if (other.isSetAwbs()) {
15629
        List<String> __this__awbs = new ArrayList<String>();
15630
        for (String other_element : other.awbs) {
15631
          __this__awbs.add(other_element);
15632
        }
15633
        this.awbs = __this__awbs;
15634
      }
13146 manish.sha 15635
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15636
    }
15637
 
15638
    public addNewAwbs_args deepCopy() {
15639
      return new addNewAwbs_args(this);
15640
    }
15641
 
15642
    @Override
15643
    public void clear() {
15644
      setProviderIdIsSet(false);
15645
      this.providerId = 0;
15646
      setCodIsSet(false);
15647
      this.cod = false;
15648
      this.awbs = null;
13146 manish.sha 15649
      setAwbUsedForIsSet(false);
15650
      this.awbUsedFor = 0;
7567 rajveer 15651
    }
15652
 
15653
    public long getProviderId() {
15654
      return this.providerId;
15655
    }
15656
 
15657
    public void setProviderId(long providerId) {
15658
      this.providerId = providerId;
15659
      setProviderIdIsSet(true);
15660
    }
15661
 
15662
    public void unsetProviderId() {
15663
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15664
    }
15665
 
15666
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15667
    public boolean isSetProviderId() {
15668
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15669
    }
15670
 
15671
    public void setProviderIdIsSet(boolean value) {
15672
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15673
    }
15674
 
15675
    public boolean isCod() {
15676
      return this.cod;
15677
    }
15678
 
15679
    public void setCod(boolean cod) {
15680
      this.cod = cod;
15681
      setCodIsSet(true);
15682
    }
15683
 
15684
    public void unsetCod() {
15685
      __isset_bit_vector.clear(__COD_ISSET_ID);
15686
    }
15687
 
15688
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15689
    public boolean isSetCod() {
15690
      return __isset_bit_vector.get(__COD_ISSET_ID);
15691
    }
15692
 
15693
    public void setCodIsSet(boolean value) {
15694
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15695
    }
15696
 
15697
    public int getAwbsSize() {
15698
      return (this.awbs == null) ? 0 : this.awbs.size();
15699
    }
15700
 
15701
    public java.util.Iterator<String> getAwbsIterator() {
15702
      return (this.awbs == null) ? null : this.awbs.iterator();
15703
    }
15704
 
15705
    public void addToAwbs(String elem) {
15706
      if (this.awbs == null) {
15707
        this.awbs = new ArrayList<String>();
15708
      }
15709
      this.awbs.add(elem);
15710
    }
15711
 
15712
    public List<String> getAwbs() {
15713
      return this.awbs;
15714
    }
15715
 
15716
    public void setAwbs(List<String> awbs) {
15717
      this.awbs = awbs;
15718
    }
15719
 
15720
    public void unsetAwbs() {
15721
      this.awbs = null;
15722
    }
15723
 
15724
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15725
    public boolean isSetAwbs() {
15726
      return this.awbs != null;
15727
    }
15728
 
15729
    public void setAwbsIsSet(boolean value) {
15730
      if (!value) {
15731
        this.awbs = null;
15732
      }
15733
    }
15734
 
13146 manish.sha 15735
    public long getAwbUsedFor() {
15736
      return this.awbUsedFor;
15737
    }
15738
 
15739
    public void setAwbUsedFor(long awbUsedFor) {
15740
      this.awbUsedFor = awbUsedFor;
15741
      setAwbUsedForIsSet(true);
15742
    }
15743
 
15744
    public void unsetAwbUsedFor() {
15745
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
15746
    }
15747
 
15748
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
15749
    public boolean isSetAwbUsedFor() {
15750
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
15751
    }
15752
 
15753
    public void setAwbUsedForIsSet(boolean value) {
15754
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
15755
    }
15756
 
7567 rajveer 15757
    public void setFieldValue(_Fields field, Object value) {
15758
      switch (field) {
15759
      case PROVIDER_ID:
15760
        if (value == null) {
15761
          unsetProviderId();
15762
        } else {
15763
          setProviderId((Long)value);
15764
        }
15765
        break;
15766
 
15767
      case COD:
15768
        if (value == null) {
15769
          unsetCod();
15770
        } else {
15771
          setCod((Boolean)value);
15772
        }
15773
        break;
15774
 
15775
      case AWBS:
15776
        if (value == null) {
15777
          unsetAwbs();
15778
        } else {
15779
          setAwbs((List<String>)value);
15780
        }
15781
        break;
15782
 
13146 manish.sha 15783
      case AWB_USED_FOR:
15784
        if (value == null) {
15785
          unsetAwbUsedFor();
15786
        } else {
15787
          setAwbUsedFor((Long)value);
15788
        }
15789
        break;
15790
 
7567 rajveer 15791
      }
15792
    }
15793
 
15794
    public Object getFieldValue(_Fields field) {
15795
      switch (field) {
15796
      case PROVIDER_ID:
15797
        return Long.valueOf(getProviderId());
15798
 
15799
      case COD:
15800
        return Boolean.valueOf(isCod());
15801
 
15802
      case AWBS:
15803
        return getAwbs();
15804
 
13146 manish.sha 15805
      case AWB_USED_FOR:
15806
        return Long.valueOf(getAwbUsedFor());
15807
 
7567 rajveer 15808
      }
15809
      throw new IllegalStateException();
15810
    }
15811
 
15812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15813
    public boolean isSet(_Fields field) {
15814
      if (field == null) {
15815
        throw new IllegalArgumentException();
15816
      }
15817
 
15818
      switch (field) {
15819
      case PROVIDER_ID:
15820
        return isSetProviderId();
15821
      case COD:
15822
        return isSetCod();
15823
      case AWBS:
15824
        return isSetAwbs();
13146 manish.sha 15825
      case AWB_USED_FOR:
15826
        return isSetAwbUsedFor();
7567 rajveer 15827
      }
15828
      throw new IllegalStateException();
15829
    }
15830
 
15831
    @Override
15832
    public boolean equals(Object that) {
15833
      if (that == null)
15834
        return false;
15835
      if (that instanceof addNewAwbs_args)
15836
        return this.equals((addNewAwbs_args)that);
15837
      return false;
15838
    }
15839
 
15840
    public boolean equals(addNewAwbs_args that) {
15841
      if (that == null)
15842
        return false;
15843
 
15844
      boolean this_present_providerId = true;
15845
      boolean that_present_providerId = true;
15846
      if (this_present_providerId || that_present_providerId) {
15847
        if (!(this_present_providerId && that_present_providerId))
15848
          return false;
15849
        if (this.providerId != that.providerId)
15850
          return false;
15851
      }
15852
 
15853
      boolean this_present_cod = true;
15854
      boolean that_present_cod = true;
15855
      if (this_present_cod || that_present_cod) {
15856
        if (!(this_present_cod && that_present_cod))
15857
          return false;
15858
        if (this.cod != that.cod)
15859
          return false;
15860
      }
15861
 
15862
      boolean this_present_awbs = true && this.isSetAwbs();
15863
      boolean that_present_awbs = true && that.isSetAwbs();
15864
      if (this_present_awbs || that_present_awbs) {
15865
        if (!(this_present_awbs && that_present_awbs))
15866
          return false;
15867
        if (!this.awbs.equals(that.awbs))
15868
          return false;
15869
      }
15870
 
13146 manish.sha 15871
      boolean this_present_awbUsedFor = true;
15872
      boolean that_present_awbUsedFor = true;
15873
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
15874
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
15875
          return false;
15876
        if (this.awbUsedFor != that.awbUsedFor)
15877
          return false;
15878
      }
15879
 
7567 rajveer 15880
      return true;
15881
    }
15882
 
15883
    @Override
15884
    public int hashCode() {
15885
      return 0;
15886
    }
15887
 
15888
    public int compareTo(addNewAwbs_args other) {
15889
      if (!getClass().equals(other.getClass())) {
15890
        return getClass().getName().compareTo(other.getClass().getName());
15891
      }
15892
 
15893
      int lastComparison = 0;
15894
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15895
 
15896
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15897
      if (lastComparison != 0) {
15898
        return lastComparison;
15899
      }
15900
      if (isSetProviderId()) {
15901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15902
        if (lastComparison != 0) {
15903
          return lastComparison;
15904
        }
15905
      }
15906
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15907
      if (lastComparison != 0) {
15908
        return lastComparison;
15909
      }
15910
      if (isSetCod()) {
15911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15912
        if (lastComparison != 0) {
15913
          return lastComparison;
15914
        }
15915
      }
15916
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
15917
      if (lastComparison != 0) {
15918
        return lastComparison;
15919
      }
15920
      if (isSetAwbs()) {
15921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15922
        if (lastComparison != 0) {
15923
          return lastComparison;
15924
        }
15925
      }
13146 manish.sha 15926
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
15927
      if (lastComparison != 0) {
15928
        return lastComparison;
15929
      }
15930
      if (isSetAwbUsedFor()) {
15931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
15932
        if (lastComparison != 0) {
15933
          return lastComparison;
15934
        }
15935
      }
7567 rajveer 15936
      return 0;
15937
    }
15938
 
15939
    public _Fields fieldForId(int fieldId) {
15940
      return _Fields.findByThriftId(fieldId);
15941
    }
15942
 
15943
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15944
      org.apache.thrift.protocol.TField field;
15945
      iprot.readStructBegin();
15946
      while (true)
15947
      {
15948
        field = iprot.readFieldBegin();
15949
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15950
          break;
15951
        }
15952
        switch (field.id) {
15953
          case 1: // PROVIDER_ID
15954
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15955
              this.providerId = iprot.readI64();
15956
              setProviderIdIsSet(true);
15957
            } else { 
15958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15959
            }
15960
            break;
15961
          case 2: // COD
15962
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15963
              this.cod = iprot.readBool();
15964
              setCodIsSet(true);
15965
            } else { 
15966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15967
            }
15968
            break;
15969
          case 3: // AWBS
15970
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15971
              {
7792 anupam.sin 15972
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15973
                this.awbs = new ArrayList<String>(_list24.size);
15974
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 15975
                {
7792 anupam.sin 15976
                  String _elem26; // required
15977
                  _elem26 = iprot.readString();
15978
                  this.awbs.add(_elem26);
7567 rajveer 15979
                }
15980
                iprot.readListEnd();
15981
              }
15982
            } else { 
15983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15984
            }
15985
            break;
13146 manish.sha 15986
          case 4: // AWB_USED_FOR
15987
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15988
              this.awbUsedFor = iprot.readI64();
15989
              setAwbUsedForIsSet(true);
15990
            } else { 
15991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15992
            }
15993
            break;
7567 rajveer 15994
          default:
15995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15996
        }
15997
        iprot.readFieldEnd();
15998
      }
15999
      iprot.readStructEnd();
16000
      validate();
16001
    }
16002
 
16003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16004
      validate();
16005
 
16006
      oprot.writeStructBegin(STRUCT_DESC);
16007
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16008
      oprot.writeI64(this.providerId);
16009
      oprot.writeFieldEnd();
16010
      oprot.writeFieldBegin(COD_FIELD_DESC);
16011
      oprot.writeBool(this.cod);
16012
      oprot.writeFieldEnd();
16013
      if (this.awbs != null) {
16014
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16015
        {
16016
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16017
          for (String _iter27 : this.awbs)
7567 rajveer 16018
          {
7792 anupam.sin 16019
            oprot.writeString(_iter27);
7567 rajveer 16020
          }
16021
          oprot.writeListEnd();
16022
        }
16023
        oprot.writeFieldEnd();
16024
      }
13146 manish.sha 16025
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16026
      oprot.writeI64(this.awbUsedFor);
16027
      oprot.writeFieldEnd();
7567 rajveer 16028
      oprot.writeFieldStop();
16029
      oprot.writeStructEnd();
16030
    }
16031
 
16032
    @Override
16033
    public String toString() {
16034
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16035
      boolean first = true;
16036
 
16037
      sb.append("providerId:");
16038
      sb.append(this.providerId);
16039
      first = false;
16040
      if (!first) sb.append(", ");
16041
      sb.append("cod:");
16042
      sb.append(this.cod);
16043
      first = false;
16044
      if (!first) sb.append(", ");
16045
      sb.append("awbs:");
16046
      if (this.awbs == null) {
16047
        sb.append("null");
16048
      } else {
16049
        sb.append(this.awbs);
16050
      }
16051
      first = false;
13146 manish.sha 16052
      if (!first) sb.append(", ");
16053
      sb.append("awbUsedFor:");
16054
      sb.append(this.awbUsedFor);
16055
      first = false;
7567 rajveer 16056
      sb.append(")");
16057
      return sb.toString();
16058
    }
16059
 
16060
    public void validate() throws org.apache.thrift.TException {
16061
      // check for required fields
16062
    }
16063
 
16064
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16065
      try {
16066
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16067
      } catch (org.apache.thrift.TException te) {
16068
        throw new java.io.IOException(te);
16069
      }
16070
    }
16071
 
16072
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16073
      try {
16074
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16075
        __isset_bit_vector = new BitSet(1);
16076
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16077
      } catch (org.apache.thrift.TException te) {
16078
        throw new java.io.IOException(te);
16079
      }
16080
    }
16081
 
16082
  }
16083
 
16084
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16086
 
16087
    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);
16088
 
16089
    private boolean success; // required
16090
 
16091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16093
      SUCCESS((short)0, "success");
16094
 
16095
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16096
 
16097
      static {
16098
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16099
          byName.put(field.getFieldName(), field);
16100
        }
16101
      }
16102
 
16103
      /**
16104
       * Find the _Fields constant that matches fieldId, or null if its not found.
16105
       */
16106
      public static _Fields findByThriftId(int fieldId) {
16107
        switch(fieldId) {
16108
          case 0: // SUCCESS
16109
            return SUCCESS;
16110
          default:
16111
            return null;
16112
        }
16113
      }
16114
 
16115
      /**
16116
       * Find the _Fields constant that matches fieldId, throwing an exception
16117
       * if it is not found.
16118
       */
16119
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16120
        _Fields fields = findByThriftId(fieldId);
16121
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16122
        return fields;
16123
      }
16124
 
16125
      /**
16126
       * Find the _Fields constant that matches name, or null if its not found.
16127
       */
16128
      public static _Fields findByName(String name) {
16129
        return byName.get(name);
16130
      }
16131
 
16132
      private final short _thriftId;
16133
      private final String _fieldName;
16134
 
16135
      _Fields(short thriftId, String fieldName) {
16136
        _thriftId = thriftId;
16137
        _fieldName = fieldName;
16138
      }
16139
 
16140
      public short getThriftFieldId() {
16141
        return _thriftId;
16142
      }
16143
 
16144
      public String getFieldName() {
16145
        return _fieldName;
16146
      }
16147
    }
16148
 
16149
    // isset id assignments
16150
    private static final int __SUCCESS_ISSET_ID = 0;
16151
    private BitSet __isset_bit_vector = new BitSet(1);
16152
 
16153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16154
    static {
16155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16158
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16159
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16160
    }
16161
 
16162
    public addNewAwbs_result() {
16163
    }
16164
 
16165
    public addNewAwbs_result(
16166
      boolean success)
16167
    {
16168
      this();
16169
      this.success = success;
16170
      setSuccessIsSet(true);
16171
    }
16172
 
16173
    /**
16174
     * Performs a deep copy on <i>other</i>.
16175
     */
16176
    public addNewAwbs_result(addNewAwbs_result other) {
16177
      __isset_bit_vector.clear();
16178
      __isset_bit_vector.or(other.__isset_bit_vector);
16179
      this.success = other.success;
16180
    }
16181
 
16182
    public addNewAwbs_result deepCopy() {
16183
      return new addNewAwbs_result(this);
16184
    }
16185
 
16186
    @Override
16187
    public void clear() {
16188
      setSuccessIsSet(false);
16189
      this.success = false;
16190
    }
16191
 
16192
    public boolean isSuccess() {
16193
      return this.success;
16194
    }
16195
 
16196
    public void setSuccess(boolean success) {
16197
      this.success = success;
16198
      setSuccessIsSet(true);
16199
    }
16200
 
16201
    public void unsetSuccess() {
16202
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16203
    }
16204
 
16205
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16206
    public boolean isSetSuccess() {
16207
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16208
    }
16209
 
16210
    public void setSuccessIsSet(boolean value) {
16211
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16212
    }
16213
 
16214
    public void setFieldValue(_Fields field, Object value) {
16215
      switch (field) {
16216
      case SUCCESS:
16217
        if (value == null) {
16218
          unsetSuccess();
16219
        } else {
16220
          setSuccess((Boolean)value);
16221
        }
16222
        break;
16223
 
16224
      }
16225
    }
16226
 
16227
    public Object getFieldValue(_Fields field) {
16228
      switch (field) {
16229
      case SUCCESS:
16230
        return Boolean.valueOf(isSuccess());
16231
 
16232
      }
16233
      throw new IllegalStateException();
16234
    }
16235
 
16236
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16237
    public boolean isSet(_Fields field) {
16238
      if (field == null) {
16239
        throw new IllegalArgumentException();
16240
      }
16241
 
16242
      switch (field) {
16243
      case SUCCESS:
16244
        return isSetSuccess();
16245
      }
16246
      throw new IllegalStateException();
16247
    }
16248
 
16249
    @Override
16250
    public boolean equals(Object that) {
16251
      if (that == null)
16252
        return false;
16253
      if (that instanceof addNewAwbs_result)
16254
        return this.equals((addNewAwbs_result)that);
16255
      return false;
16256
    }
16257
 
16258
    public boolean equals(addNewAwbs_result that) {
16259
      if (that == null)
16260
        return false;
16261
 
16262
      boolean this_present_success = true;
16263
      boolean that_present_success = true;
16264
      if (this_present_success || that_present_success) {
16265
        if (!(this_present_success && that_present_success))
16266
          return false;
16267
        if (this.success != that.success)
16268
          return false;
16269
      }
16270
 
16271
      return true;
16272
    }
16273
 
16274
    @Override
16275
    public int hashCode() {
16276
      return 0;
16277
    }
16278
 
16279
    public int compareTo(addNewAwbs_result other) {
16280
      if (!getClass().equals(other.getClass())) {
16281
        return getClass().getName().compareTo(other.getClass().getName());
16282
      }
16283
 
16284
      int lastComparison = 0;
16285
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16286
 
16287
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16288
      if (lastComparison != 0) {
16289
        return lastComparison;
16290
      }
16291
      if (isSetSuccess()) {
16292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16293
        if (lastComparison != 0) {
16294
          return lastComparison;
16295
        }
16296
      }
16297
      return 0;
16298
    }
16299
 
16300
    public _Fields fieldForId(int fieldId) {
16301
      return _Fields.findByThriftId(fieldId);
16302
    }
16303
 
16304
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16305
      org.apache.thrift.protocol.TField field;
16306
      iprot.readStructBegin();
16307
      while (true)
16308
      {
16309
        field = iprot.readFieldBegin();
16310
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16311
          break;
16312
        }
16313
        switch (field.id) {
16314
          case 0: // SUCCESS
16315
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16316
              this.success = iprot.readBool();
16317
              setSuccessIsSet(true);
16318
            } else { 
16319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16320
            }
16321
            break;
16322
          default:
16323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16324
        }
16325
        iprot.readFieldEnd();
16326
      }
16327
      iprot.readStructEnd();
16328
      validate();
16329
    }
16330
 
16331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16332
      oprot.writeStructBegin(STRUCT_DESC);
16333
 
16334
      if (this.isSetSuccess()) {
16335
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16336
        oprot.writeBool(this.success);
16337
        oprot.writeFieldEnd();
16338
      }
16339
      oprot.writeFieldStop();
16340
      oprot.writeStructEnd();
16341
    }
16342
 
16343
    @Override
16344
    public String toString() {
16345
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16346
      boolean first = true;
16347
 
16348
      sb.append("success:");
16349
      sb.append(this.success);
16350
      first = false;
16351
      sb.append(")");
16352
      return sb.toString();
16353
    }
16354
 
16355
    public void validate() throws org.apache.thrift.TException {
16356
      // check for required fields
16357
    }
16358
 
16359
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16360
      try {
16361
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16362
      } catch (org.apache.thrift.TException te) {
16363
        throw new java.io.IOException(te);
16364
      }
16365
    }
16366
 
16367
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16368
      try {
16369
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16370
      } catch (org.apache.thrift.TException te) {
16371
        throw new java.io.IOException(te);
16372
      }
16373
    }
16374
 
16375
  }
16376
 
7788 manish.sha 16377
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16379
 
7788 manish.sha 16380
    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);
16381
    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 16382
 
7788 manish.sha 16383
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16384
    private boolean runCompleteUpdate; // required
7737 manish.sha 16385
 
16386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16388
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16389
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16390
 
16391
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16392
 
16393
      static {
16394
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16395
          byName.put(field.getFieldName(), field);
16396
        }
16397
      }
16398
 
16399
      /**
16400
       * Find the _Fields constant that matches fieldId, or null if its not found.
16401
       */
16402
      public static _Fields findByThriftId(int fieldId) {
16403
        switch(fieldId) {
7788 manish.sha 16404
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16405
            return LOGISTICS_LOCATION_INFO_LIST;
16406
          case 2: // RUN_COMPLETE_UPDATE
16407
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16408
          default:
16409
            return null;
16410
        }
16411
      }
16412
 
16413
      /**
16414
       * Find the _Fields constant that matches fieldId, throwing an exception
16415
       * if it is not found.
16416
       */
16417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16418
        _Fields fields = findByThriftId(fieldId);
16419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16420
        return fields;
16421
      }
16422
 
16423
      /**
16424
       * Find the _Fields constant that matches name, or null if its not found.
16425
       */
16426
      public static _Fields findByName(String name) {
16427
        return byName.get(name);
16428
      }
16429
 
16430
      private final short _thriftId;
16431
      private final String _fieldName;
16432
 
16433
      _Fields(short thriftId, String fieldName) {
16434
        _thriftId = thriftId;
16435
        _fieldName = fieldName;
16436
      }
16437
 
16438
      public short getThriftFieldId() {
16439
        return _thriftId;
16440
      }
16441
 
16442
      public String getFieldName() {
16443
        return _fieldName;
16444
      }
16445
    }
16446
 
16447
    // isset id assignments
7788 manish.sha 16448
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16449
    private BitSet __isset_bit_vector = new BitSet(1);
16450
 
16451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16452
    static {
16453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16454
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16455
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16456
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16457
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16461
    }
16462
 
7788 manish.sha 16463
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16464
    }
16465
 
7788 manish.sha 16466
    public runLogisticsLocationInfoUpdate_args(
16467
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16468
      boolean runCompleteUpdate)
7737 manish.sha 16469
    {
16470
      this();
7788 manish.sha 16471
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16472
      this.runCompleteUpdate = runCompleteUpdate;
16473
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16474
    }
16475
 
16476
    /**
16477
     * Performs a deep copy on <i>other</i>.
16478
     */
7788 manish.sha 16479
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16480
      __isset_bit_vector.clear();
16481
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16482
      if (other.isSetLogisticsLocationInfoList()) {
16483
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16484
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16485
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16486
        }
16487
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16488
      }
7788 manish.sha 16489
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16490
    }
16491
 
7788 manish.sha 16492
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16493
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16494
    }
16495
 
16496
    @Override
16497
    public void clear() {
7788 manish.sha 16498
      this.logisticsLocationInfoList = null;
16499
      setRunCompleteUpdateIsSet(false);
16500
      this.runCompleteUpdate = false;
7737 manish.sha 16501
    }
16502
 
7788 manish.sha 16503
    public int getLogisticsLocationInfoListSize() {
16504
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16505
    }
16506
 
7788 manish.sha 16507
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16508
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16509
    }
16510
 
7788 manish.sha 16511
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16512
      if (this.logisticsLocationInfoList == null) {
16513
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16514
      }
16515
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16516
    }
16517
 
7788 manish.sha 16518
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16519
      return this.logisticsLocationInfoList;
7737 manish.sha 16520
    }
16521
 
7788 manish.sha 16522
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16523
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16524
    }
16525
 
7788 manish.sha 16526
    public void unsetLogisticsLocationInfoList() {
16527
      this.logisticsLocationInfoList = null;
7737 manish.sha 16528
    }
16529
 
7788 manish.sha 16530
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16531
    public boolean isSetLogisticsLocationInfoList() {
16532
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16533
    }
16534
 
7788 manish.sha 16535
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16536
      if (!value) {
16537
        this.logisticsLocationInfoList = null;
16538
      }
7737 manish.sha 16539
    }
16540
 
7788 manish.sha 16541
    public boolean isRunCompleteUpdate() {
16542
      return this.runCompleteUpdate;
7737 manish.sha 16543
    }
16544
 
7788 manish.sha 16545
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16546
      this.runCompleteUpdate = runCompleteUpdate;
16547
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16548
    }
16549
 
7788 manish.sha 16550
    public void unsetRunCompleteUpdate() {
16551
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16552
    }
16553
 
16554
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16555
    public boolean isSetRunCompleteUpdate() {
16556
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16557
    }
16558
 
16559
    public void setRunCompleteUpdateIsSet(boolean value) {
16560
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16561
    }
16562
 
7737 manish.sha 16563
    public void setFieldValue(_Fields field, Object value) {
16564
      switch (field) {
7788 manish.sha 16565
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16566
        if (value == null) {
7788 manish.sha 16567
          unsetLogisticsLocationInfoList();
7737 manish.sha 16568
        } else {
7788 manish.sha 16569
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16570
        }
16571
        break;
16572
 
7788 manish.sha 16573
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16574
        if (value == null) {
7788 manish.sha 16575
          unsetRunCompleteUpdate();
7737 manish.sha 16576
        } else {
7788 manish.sha 16577
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16578
        }
16579
        break;
16580
 
16581
      }
16582
    }
16583
 
16584
    public Object getFieldValue(_Fields field) {
16585
      switch (field) {
7788 manish.sha 16586
      case LOGISTICS_LOCATION_INFO_LIST:
16587
        return getLogisticsLocationInfoList();
7737 manish.sha 16588
 
7788 manish.sha 16589
      case RUN_COMPLETE_UPDATE:
16590
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16591
 
16592
      }
16593
      throw new IllegalStateException();
16594
    }
16595
 
16596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16597
    public boolean isSet(_Fields field) {
16598
      if (field == null) {
16599
        throw new IllegalArgumentException();
16600
      }
16601
 
16602
      switch (field) {
7788 manish.sha 16603
      case LOGISTICS_LOCATION_INFO_LIST:
16604
        return isSetLogisticsLocationInfoList();
16605
      case RUN_COMPLETE_UPDATE:
16606
        return isSetRunCompleteUpdate();
7737 manish.sha 16607
      }
16608
      throw new IllegalStateException();
16609
    }
16610
 
16611
    @Override
16612
    public boolean equals(Object that) {
16613
      if (that == null)
16614
        return false;
7788 manish.sha 16615
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16616
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16617
      return false;
16618
    }
16619
 
7788 manish.sha 16620
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16621
      if (that == null)
16622
        return false;
16623
 
7788 manish.sha 16624
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16625
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16626
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16627
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16628
          return false;
7788 manish.sha 16629
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16630
          return false;
16631
      }
16632
 
7788 manish.sha 16633
      boolean this_present_runCompleteUpdate = true;
16634
      boolean that_present_runCompleteUpdate = true;
16635
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16636
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16637
          return false;
7788 manish.sha 16638
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16639
          return false;
16640
      }
16641
 
16642
      return true;
16643
    }
16644
 
16645
    @Override
16646
    public int hashCode() {
16647
      return 0;
16648
    }
16649
 
7788 manish.sha 16650
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16651
      if (!getClass().equals(other.getClass())) {
16652
        return getClass().getName().compareTo(other.getClass().getName());
16653
      }
16654
 
16655
      int lastComparison = 0;
7788 manish.sha 16656
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16657
 
7788 manish.sha 16658
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16659
      if (lastComparison != 0) {
16660
        return lastComparison;
16661
      }
7788 manish.sha 16662
      if (isSetLogisticsLocationInfoList()) {
16663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16664
        if (lastComparison != 0) {
16665
          return lastComparison;
16666
        }
16667
      }
7788 manish.sha 16668
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16669
      if (lastComparison != 0) {
16670
        return lastComparison;
16671
      }
7788 manish.sha 16672
      if (isSetRunCompleteUpdate()) {
16673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16674
        if (lastComparison != 0) {
16675
          return lastComparison;
16676
        }
16677
      }
16678
      return 0;
16679
    }
16680
 
16681
    public _Fields fieldForId(int fieldId) {
16682
      return _Fields.findByThriftId(fieldId);
16683
    }
16684
 
16685
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16686
      org.apache.thrift.protocol.TField field;
16687
      iprot.readStructBegin();
16688
      while (true)
16689
      {
16690
        field = iprot.readFieldBegin();
16691
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16692
          break;
16693
        }
16694
        switch (field.id) {
7788 manish.sha 16695
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16696
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16697
              {
7808 anupam.sin 16698
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16699
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16700
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16701
                {
7808 anupam.sin 16702
                  LogisticsLocationInfo _elem30; // required
16703
                  _elem30 = new LogisticsLocationInfo();
16704
                  _elem30.read(iprot);
16705
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16706
                }
16707
                iprot.readListEnd();
16708
              }
7737 manish.sha 16709
            } else { 
16710
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16711
            }
16712
            break;
7788 manish.sha 16713
          case 2: // RUN_COMPLETE_UPDATE
16714
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16715
              this.runCompleteUpdate = iprot.readBool();
16716
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16717
            } else { 
16718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16719
            }
16720
            break;
16721
          default:
16722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16723
        }
16724
        iprot.readFieldEnd();
16725
      }
16726
      iprot.readStructEnd();
16727
      validate();
16728
    }
16729
 
16730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16731
      validate();
16732
 
16733
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16734
      if (this.logisticsLocationInfoList != null) {
16735
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16736
        {
16737
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16738
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16739
          {
7808 anupam.sin 16740
            _iter31.write(oprot);
7788 manish.sha 16741
          }
16742
          oprot.writeListEnd();
16743
        }
7737 manish.sha 16744
        oprot.writeFieldEnd();
16745
      }
7788 manish.sha 16746
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16747
      oprot.writeBool(this.runCompleteUpdate);
16748
      oprot.writeFieldEnd();
7737 manish.sha 16749
      oprot.writeFieldStop();
16750
      oprot.writeStructEnd();
16751
    }
16752
 
16753
    @Override
16754
    public String toString() {
7788 manish.sha 16755
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16756
      boolean first = true;
16757
 
7788 manish.sha 16758
      sb.append("logisticsLocationInfoList:");
16759
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16760
        sb.append("null");
16761
      } else {
7788 manish.sha 16762
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16763
      }
16764
      first = false;
7788 manish.sha 16765
      if (!first) sb.append(", ");
16766
      sb.append("runCompleteUpdate:");
16767
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16768
      first = false;
16769
      sb.append(")");
16770
      return sb.toString();
16771
    }
16772
 
16773
    public void validate() throws org.apache.thrift.TException {
16774
      // check for required fields
16775
    }
16776
 
16777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16778
      try {
16779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16780
      } catch (org.apache.thrift.TException te) {
16781
        throw new java.io.IOException(te);
16782
      }
16783
    }
16784
 
16785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16786
      try {
7788 manish.sha 16787
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16788
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16790
      } catch (org.apache.thrift.TException te) {
16791
        throw new java.io.IOException(te);
16792
      }
16793
    }
16794
 
16795
  }
16796
 
7788 manish.sha 16797
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16799
 
16800
 
16801
 
16802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16804
;
16805
 
16806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16807
 
16808
      static {
16809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16810
          byName.put(field.getFieldName(), field);
16811
        }
16812
      }
16813
 
16814
      /**
16815
       * Find the _Fields constant that matches fieldId, or null if its not found.
16816
       */
16817
      public static _Fields findByThriftId(int fieldId) {
16818
        switch(fieldId) {
16819
          default:
16820
            return null;
16821
        }
16822
      }
16823
 
16824
      /**
16825
       * Find the _Fields constant that matches fieldId, throwing an exception
16826
       * if it is not found.
16827
       */
16828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16829
        _Fields fields = findByThriftId(fieldId);
16830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16831
        return fields;
16832
      }
16833
 
16834
      /**
16835
       * Find the _Fields constant that matches name, or null if its not found.
16836
       */
16837
      public static _Fields findByName(String name) {
16838
        return byName.get(name);
16839
      }
16840
 
16841
      private final short _thriftId;
16842
      private final String _fieldName;
16843
 
16844
      _Fields(short thriftId, String fieldName) {
16845
        _thriftId = thriftId;
16846
        _fieldName = fieldName;
16847
      }
16848
 
16849
      public short getThriftFieldId() {
16850
        return _thriftId;
16851
      }
16852
 
16853
      public String getFieldName() {
16854
        return _fieldName;
16855
      }
16856
    }
16857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16858
    static {
16859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 16862
    }
16863
 
7788 manish.sha 16864
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 16865
    }
16866
 
16867
    /**
16868
     * Performs a deep copy on <i>other</i>.
16869
     */
7788 manish.sha 16870
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16871
    }
16872
 
7788 manish.sha 16873
    public runLogisticsLocationInfoUpdate_result deepCopy() {
16874
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 16875
    }
16876
 
16877
    @Override
16878
    public void clear() {
16879
    }
16880
 
16881
    public void setFieldValue(_Fields field, Object value) {
16882
      switch (field) {
16883
      }
16884
    }
16885
 
16886
    public Object getFieldValue(_Fields field) {
16887
      switch (field) {
16888
      }
16889
      throw new IllegalStateException();
16890
    }
16891
 
16892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16893
    public boolean isSet(_Fields field) {
16894
      if (field == null) {
16895
        throw new IllegalArgumentException();
16896
      }
16897
 
16898
      switch (field) {
16899
      }
16900
      throw new IllegalStateException();
16901
    }
16902
 
16903
    @Override
16904
    public boolean equals(Object that) {
16905
      if (that == null)
16906
        return false;
7788 manish.sha 16907
      if (that instanceof runLogisticsLocationInfoUpdate_result)
16908
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 16909
      return false;
16910
    }
16911
 
7788 manish.sha 16912
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 16913
      if (that == null)
16914
        return false;
16915
 
16916
      return true;
16917
    }
16918
 
16919
    @Override
16920
    public int hashCode() {
16921
      return 0;
16922
    }
16923
 
7788 manish.sha 16924
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16925
      if (!getClass().equals(other.getClass())) {
16926
        return getClass().getName().compareTo(other.getClass().getName());
16927
      }
16928
 
16929
      int lastComparison = 0;
7788 manish.sha 16930
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 16931
 
16932
      return 0;
16933
    }
16934
 
16935
    public _Fields fieldForId(int fieldId) {
16936
      return _Fields.findByThriftId(fieldId);
16937
    }
16938
 
16939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16940
      org.apache.thrift.protocol.TField field;
16941
      iprot.readStructBegin();
16942
      while (true)
16943
      {
16944
        field = iprot.readFieldBegin();
16945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16946
          break;
16947
        }
16948
        switch (field.id) {
16949
          default:
16950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16951
        }
16952
        iprot.readFieldEnd();
16953
      }
16954
      iprot.readStructEnd();
16955
      validate();
16956
    }
16957
 
16958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16959
      oprot.writeStructBegin(STRUCT_DESC);
16960
 
16961
      oprot.writeFieldStop();
16962
      oprot.writeStructEnd();
16963
    }
16964
 
16965
    @Override
16966
    public String toString() {
7788 manish.sha 16967
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 16968
      boolean first = true;
16969
 
16970
      sb.append(")");
16971
      return sb.toString();
16972
    }
16973
 
16974
    public void validate() throws org.apache.thrift.TException {
16975
      // check for required fields
16976
    }
16977
 
16978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16979
      try {
16980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16981
      } catch (org.apache.thrift.TException te) {
16982
        throw new java.io.IOException(te);
16983
      }
16984
    }
16985
 
16986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16987
      try {
16988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16989
      } catch (org.apache.thrift.TException te) {
16990
        throw new java.io.IOException(te);
16991
      }
16992
    }
16993
 
16994
  }
16995
 
7888 rajveer 16996
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
16997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
16998
 
16999
    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);
17000
    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);
17001
 
17002
    private long startDate; // required
17003
    private long days; // required
17004
 
17005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17007
      START_DATE((short)1, "startDate"),
17008
      DAYS((short)2, "days");
17009
 
17010
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17011
 
17012
      static {
17013
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17014
          byName.put(field.getFieldName(), field);
17015
        }
17016
      }
17017
 
17018
      /**
17019
       * Find the _Fields constant that matches fieldId, or null if its not found.
17020
       */
17021
      public static _Fields findByThriftId(int fieldId) {
17022
        switch(fieldId) {
17023
          case 1: // START_DATE
17024
            return START_DATE;
17025
          case 2: // DAYS
17026
            return DAYS;
17027
          default:
17028
            return null;
17029
        }
17030
      }
17031
 
17032
      /**
17033
       * Find the _Fields constant that matches fieldId, throwing an exception
17034
       * if it is not found.
17035
       */
17036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17037
        _Fields fields = findByThriftId(fieldId);
17038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17039
        return fields;
17040
      }
17041
 
17042
      /**
17043
       * Find the _Fields constant that matches name, or null if its not found.
17044
       */
17045
      public static _Fields findByName(String name) {
17046
        return byName.get(name);
17047
      }
17048
 
17049
      private final short _thriftId;
17050
      private final String _fieldName;
17051
 
17052
      _Fields(short thriftId, String fieldName) {
17053
        _thriftId = thriftId;
17054
        _fieldName = fieldName;
17055
      }
17056
 
17057
      public short getThriftFieldId() {
17058
        return _thriftId;
17059
      }
17060
 
17061
      public String getFieldName() {
17062
        return _fieldName;
17063
      }
17064
    }
17065
 
17066
    // isset id assignments
17067
    private static final int __STARTDATE_ISSET_ID = 0;
17068
    private static final int __DAYS_ISSET_ID = 1;
17069
    private BitSet __isset_bit_vector = new BitSet(2);
17070
 
17071
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17072
    static {
17073
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17074
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17076
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17078
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17079
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17080
    }
17081
 
17082
    public adjustDeliveryDays_args() {
17083
    }
17084
 
17085
    public adjustDeliveryDays_args(
17086
      long startDate,
17087
      long days)
17088
    {
17089
      this();
17090
      this.startDate = startDate;
17091
      setStartDateIsSet(true);
17092
      this.days = days;
17093
      setDaysIsSet(true);
17094
    }
17095
 
17096
    /**
17097
     * Performs a deep copy on <i>other</i>.
17098
     */
17099
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17100
      __isset_bit_vector.clear();
17101
      __isset_bit_vector.or(other.__isset_bit_vector);
17102
      this.startDate = other.startDate;
17103
      this.days = other.days;
17104
    }
17105
 
17106
    public adjustDeliveryDays_args deepCopy() {
17107
      return new adjustDeliveryDays_args(this);
17108
    }
17109
 
17110
    @Override
17111
    public void clear() {
17112
      setStartDateIsSet(false);
17113
      this.startDate = 0;
17114
      setDaysIsSet(false);
17115
      this.days = 0;
17116
    }
17117
 
17118
    public long getStartDate() {
17119
      return this.startDate;
17120
    }
17121
 
17122
    public void setStartDate(long startDate) {
17123
      this.startDate = startDate;
17124
      setStartDateIsSet(true);
17125
    }
17126
 
17127
    public void unsetStartDate() {
17128
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17129
    }
17130
 
17131
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17132
    public boolean isSetStartDate() {
17133
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17134
    }
17135
 
17136
    public void setStartDateIsSet(boolean value) {
17137
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17138
    }
17139
 
17140
    public long getDays() {
17141
      return this.days;
17142
    }
17143
 
17144
    public void setDays(long days) {
17145
      this.days = days;
17146
      setDaysIsSet(true);
17147
    }
17148
 
17149
    public void unsetDays() {
17150
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17151
    }
17152
 
17153
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17154
    public boolean isSetDays() {
17155
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17156
    }
17157
 
17158
    public void setDaysIsSet(boolean value) {
17159
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17160
    }
17161
 
17162
    public void setFieldValue(_Fields field, Object value) {
17163
      switch (field) {
17164
      case START_DATE:
17165
        if (value == null) {
17166
          unsetStartDate();
17167
        } else {
17168
          setStartDate((Long)value);
17169
        }
17170
        break;
17171
 
17172
      case DAYS:
17173
        if (value == null) {
17174
          unsetDays();
17175
        } else {
17176
          setDays((Long)value);
17177
        }
17178
        break;
17179
 
17180
      }
17181
    }
17182
 
17183
    public Object getFieldValue(_Fields field) {
17184
      switch (field) {
17185
      case START_DATE:
17186
        return Long.valueOf(getStartDate());
17187
 
17188
      case DAYS:
17189
        return Long.valueOf(getDays());
17190
 
17191
      }
17192
      throw new IllegalStateException();
17193
    }
17194
 
17195
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17196
    public boolean isSet(_Fields field) {
17197
      if (field == null) {
17198
        throw new IllegalArgumentException();
17199
      }
17200
 
17201
      switch (field) {
17202
      case START_DATE:
17203
        return isSetStartDate();
17204
      case DAYS:
17205
        return isSetDays();
17206
      }
17207
      throw new IllegalStateException();
17208
    }
17209
 
17210
    @Override
17211
    public boolean equals(Object that) {
17212
      if (that == null)
17213
        return false;
17214
      if (that instanceof adjustDeliveryDays_args)
17215
        return this.equals((adjustDeliveryDays_args)that);
17216
      return false;
17217
    }
17218
 
17219
    public boolean equals(adjustDeliveryDays_args that) {
17220
      if (that == null)
17221
        return false;
17222
 
17223
      boolean this_present_startDate = true;
17224
      boolean that_present_startDate = true;
17225
      if (this_present_startDate || that_present_startDate) {
17226
        if (!(this_present_startDate && that_present_startDate))
17227
          return false;
17228
        if (this.startDate != that.startDate)
17229
          return false;
17230
      }
17231
 
17232
      boolean this_present_days = true;
17233
      boolean that_present_days = true;
17234
      if (this_present_days || that_present_days) {
17235
        if (!(this_present_days && that_present_days))
17236
          return false;
17237
        if (this.days != that.days)
17238
          return false;
17239
      }
17240
 
17241
      return true;
17242
    }
17243
 
17244
    @Override
17245
    public int hashCode() {
17246
      return 0;
17247
    }
17248
 
17249
    public int compareTo(adjustDeliveryDays_args other) {
17250
      if (!getClass().equals(other.getClass())) {
17251
        return getClass().getName().compareTo(other.getClass().getName());
17252
      }
17253
 
17254
      int lastComparison = 0;
17255
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17256
 
17257
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17258
      if (lastComparison != 0) {
17259
        return lastComparison;
17260
      }
17261
      if (isSetStartDate()) {
17262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17263
        if (lastComparison != 0) {
17264
          return lastComparison;
17265
        }
17266
      }
17267
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17268
      if (lastComparison != 0) {
17269
        return lastComparison;
17270
      }
17271
      if (isSetDays()) {
17272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17273
        if (lastComparison != 0) {
17274
          return lastComparison;
17275
        }
17276
      }
17277
      return 0;
17278
    }
17279
 
17280
    public _Fields fieldForId(int fieldId) {
17281
      return _Fields.findByThriftId(fieldId);
17282
    }
17283
 
17284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17285
      org.apache.thrift.protocol.TField field;
17286
      iprot.readStructBegin();
17287
      while (true)
17288
      {
17289
        field = iprot.readFieldBegin();
17290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17291
          break;
17292
        }
17293
        switch (field.id) {
17294
          case 1: // START_DATE
17295
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17296
              this.startDate = iprot.readI64();
17297
              setStartDateIsSet(true);
17298
            } else { 
17299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17300
            }
17301
            break;
17302
          case 2: // DAYS
17303
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17304
              this.days = iprot.readI64();
17305
              setDaysIsSet(true);
17306
            } else { 
17307
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17308
            }
17309
            break;
17310
          default:
17311
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17312
        }
17313
        iprot.readFieldEnd();
17314
      }
17315
      iprot.readStructEnd();
17316
      validate();
17317
    }
17318
 
17319
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17320
      validate();
17321
 
17322
      oprot.writeStructBegin(STRUCT_DESC);
17323
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17324
      oprot.writeI64(this.startDate);
17325
      oprot.writeFieldEnd();
17326
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17327
      oprot.writeI64(this.days);
17328
      oprot.writeFieldEnd();
17329
      oprot.writeFieldStop();
17330
      oprot.writeStructEnd();
17331
    }
17332
 
17333
    @Override
17334
    public String toString() {
17335
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17336
      boolean first = true;
17337
 
17338
      sb.append("startDate:");
17339
      sb.append(this.startDate);
17340
      first = false;
17341
      if (!first) sb.append(", ");
17342
      sb.append("days:");
17343
      sb.append(this.days);
17344
      first = false;
17345
      sb.append(")");
17346
      return sb.toString();
17347
    }
17348
 
17349
    public void validate() throws org.apache.thrift.TException {
17350
      // check for required fields
17351
    }
17352
 
17353
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17354
      try {
17355
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17356
      } catch (org.apache.thrift.TException te) {
17357
        throw new java.io.IOException(te);
17358
      }
17359
    }
17360
 
17361
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17362
      try {
17363
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17364
        __isset_bit_vector = new BitSet(1);
17365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17366
      } catch (org.apache.thrift.TException te) {
17367
        throw new java.io.IOException(te);
17368
      }
17369
    }
17370
 
17371
  }
17372
 
17373
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17375
 
17376
    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);
17377
 
17378
    private long success; // required
17379
 
17380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17382
      SUCCESS((short)0, "success");
17383
 
17384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17385
 
17386
      static {
17387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17388
          byName.put(field.getFieldName(), field);
17389
        }
17390
      }
17391
 
17392
      /**
17393
       * Find the _Fields constant that matches fieldId, or null if its not found.
17394
       */
17395
      public static _Fields findByThriftId(int fieldId) {
17396
        switch(fieldId) {
17397
          case 0: // SUCCESS
17398
            return SUCCESS;
17399
          default:
17400
            return null;
17401
        }
17402
      }
17403
 
17404
      /**
17405
       * Find the _Fields constant that matches fieldId, throwing an exception
17406
       * if it is not found.
17407
       */
17408
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17409
        _Fields fields = findByThriftId(fieldId);
17410
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17411
        return fields;
17412
      }
17413
 
17414
      /**
17415
       * Find the _Fields constant that matches name, or null if its not found.
17416
       */
17417
      public static _Fields findByName(String name) {
17418
        return byName.get(name);
17419
      }
17420
 
17421
      private final short _thriftId;
17422
      private final String _fieldName;
17423
 
17424
      _Fields(short thriftId, String fieldName) {
17425
        _thriftId = thriftId;
17426
        _fieldName = fieldName;
17427
      }
17428
 
17429
      public short getThriftFieldId() {
17430
        return _thriftId;
17431
      }
17432
 
17433
      public String getFieldName() {
17434
        return _fieldName;
17435
      }
17436
    }
17437
 
17438
    // isset id assignments
17439
    private static final int __SUCCESS_ISSET_ID = 0;
17440
    private BitSet __isset_bit_vector = new BitSet(1);
17441
 
17442
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17443
    static {
17444
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17445
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17449
    }
17450
 
17451
    public adjustDeliveryDays_result() {
17452
    }
17453
 
17454
    public adjustDeliveryDays_result(
17455
      long success)
17456
    {
17457
      this();
17458
      this.success = success;
17459
      setSuccessIsSet(true);
17460
    }
17461
 
17462
    /**
17463
     * Performs a deep copy on <i>other</i>.
17464
     */
17465
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17466
      __isset_bit_vector.clear();
17467
      __isset_bit_vector.or(other.__isset_bit_vector);
17468
      this.success = other.success;
17469
    }
17470
 
17471
    public adjustDeliveryDays_result deepCopy() {
17472
      return new adjustDeliveryDays_result(this);
17473
    }
17474
 
17475
    @Override
17476
    public void clear() {
17477
      setSuccessIsSet(false);
17478
      this.success = 0;
17479
    }
17480
 
17481
    public long getSuccess() {
17482
      return this.success;
17483
    }
17484
 
17485
    public void setSuccess(long success) {
17486
      this.success = success;
17487
      setSuccessIsSet(true);
17488
    }
17489
 
17490
    public void unsetSuccess() {
17491
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17492
    }
17493
 
17494
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17495
    public boolean isSetSuccess() {
17496
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17497
    }
17498
 
17499
    public void setSuccessIsSet(boolean value) {
17500
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17501
    }
17502
 
17503
    public void setFieldValue(_Fields field, Object value) {
17504
      switch (field) {
17505
      case SUCCESS:
17506
        if (value == null) {
17507
          unsetSuccess();
17508
        } else {
17509
          setSuccess((Long)value);
17510
        }
17511
        break;
17512
 
17513
      }
17514
    }
17515
 
17516
    public Object getFieldValue(_Fields field) {
17517
      switch (field) {
17518
      case SUCCESS:
17519
        return Long.valueOf(getSuccess());
17520
 
17521
      }
17522
      throw new IllegalStateException();
17523
    }
17524
 
17525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17526
    public boolean isSet(_Fields field) {
17527
      if (field == null) {
17528
        throw new IllegalArgumentException();
17529
      }
17530
 
17531
      switch (field) {
17532
      case SUCCESS:
17533
        return isSetSuccess();
17534
      }
17535
      throw new IllegalStateException();
17536
    }
17537
 
17538
    @Override
17539
    public boolean equals(Object that) {
17540
      if (that == null)
17541
        return false;
17542
      if (that instanceof adjustDeliveryDays_result)
17543
        return this.equals((adjustDeliveryDays_result)that);
17544
      return false;
17545
    }
17546
 
17547
    public boolean equals(adjustDeliveryDays_result that) {
17548
      if (that == null)
17549
        return false;
17550
 
17551
      boolean this_present_success = true;
17552
      boolean that_present_success = true;
17553
      if (this_present_success || that_present_success) {
17554
        if (!(this_present_success && that_present_success))
17555
          return false;
17556
        if (this.success != that.success)
17557
          return false;
17558
      }
17559
 
17560
      return true;
17561
    }
17562
 
17563
    @Override
17564
    public int hashCode() {
17565
      return 0;
17566
    }
17567
 
17568
    public int compareTo(adjustDeliveryDays_result other) {
17569
      if (!getClass().equals(other.getClass())) {
17570
        return getClass().getName().compareTo(other.getClass().getName());
17571
      }
17572
 
17573
      int lastComparison = 0;
17574
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17575
 
17576
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17577
      if (lastComparison != 0) {
17578
        return lastComparison;
17579
      }
17580
      if (isSetSuccess()) {
17581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17582
        if (lastComparison != 0) {
17583
          return lastComparison;
17584
        }
17585
      }
17586
      return 0;
17587
    }
17588
 
17589
    public _Fields fieldForId(int fieldId) {
17590
      return _Fields.findByThriftId(fieldId);
17591
    }
17592
 
17593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17594
      org.apache.thrift.protocol.TField field;
17595
      iprot.readStructBegin();
17596
      while (true)
17597
      {
17598
        field = iprot.readFieldBegin();
17599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17600
          break;
17601
        }
17602
        switch (field.id) {
17603
          case 0: // SUCCESS
17604
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17605
              this.success = iprot.readI64();
17606
              setSuccessIsSet(true);
17607
            } else { 
17608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17609
            }
17610
            break;
17611
          default:
17612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17613
        }
17614
        iprot.readFieldEnd();
17615
      }
17616
      iprot.readStructEnd();
17617
      validate();
17618
    }
17619
 
17620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17621
      oprot.writeStructBegin(STRUCT_DESC);
17622
 
17623
      if (this.isSetSuccess()) {
17624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17625
        oprot.writeI64(this.success);
17626
        oprot.writeFieldEnd();
17627
      }
17628
      oprot.writeFieldStop();
17629
      oprot.writeStructEnd();
17630
    }
17631
 
17632
    @Override
17633
    public String toString() {
17634
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17635
      boolean first = true;
17636
 
17637
      sb.append("success:");
17638
      sb.append(this.success);
17639
      first = false;
17640
      sb.append(")");
17641
      return sb.toString();
17642
    }
17643
 
17644
    public void validate() throws org.apache.thrift.TException {
17645
      // check for required fields
17646
    }
17647
 
17648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17649
      try {
17650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17651
      } catch (org.apache.thrift.TException te) {
17652
        throw new java.io.IOException(te);
17653
      }
17654
    }
17655
 
17656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17657
      try {
17658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17659
      } catch (org.apache.thrift.TException te) {
17660
        throw new java.io.IOException(te);
17661
      }
17662
    }
17663
 
17664
  }
17665
 
12895 manish.sha 17666
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
17667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
17668
 
17669
    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);
17670
    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);
17671
 
17672
    private String pincode; // required
17673
    private long whLocation; // required
17674
 
17675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17677
      PINCODE((short)1, "pincode"),
17678
      WH_LOCATION((short)2, "whLocation");
17679
 
17680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17681
 
17682
      static {
17683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17684
          byName.put(field.getFieldName(), field);
17685
        }
17686
      }
17687
 
17688
      /**
17689
       * Find the _Fields constant that matches fieldId, or null if its not found.
17690
       */
17691
      public static _Fields findByThriftId(int fieldId) {
17692
        switch(fieldId) {
17693
          case 1: // PINCODE
17694
            return PINCODE;
17695
          case 2: // WH_LOCATION
17696
            return WH_LOCATION;
17697
          default:
17698
            return null;
17699
        }
17700
      }
17701
 
17702
      /**
17703
       * Find the _Fields constant that matches fieldId, throwing an exception
17704
       * if it is not found.
17705
       */
17706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17707
        _Fields fields = findByThriftId(fieldId);
17708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17709
        return fields;
17710
      }
17711
 
17712
      /**
17713
       * Find the _Fields constant that matches name, or null if its not found.
17714
       */
17715
      public static _Fields findByName(String name) {
17716
        return byName.get(name);
17717
      }
17718
 
17719
      private final short _thriftId;
17720
      private final String _fieldName;
17721
 
17722
      _Fields(short thriftId, String fieldName) {
17723
        _thriftId = thriftId;
17724
        _fieldName = fieldName;
17725
      }
17726
 
17727
      public short getThriftFieldId() {
17728
        return _thriftId;
17729
      }
17730
 
17731
      public String getFieldName() {
17732
        return _fieldName;
17733
      }
17734
    }
17735
 
17736
    // isset id assignments
17737
    private static final int __WHLOCATION_ISSET_ID = 0;
17738
    private BitSet __isset_bit_vector = new BitSet(1);
17739
 
17740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17741
    static {
17742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17743
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17745
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17747
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17748
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
17749
    }
17750
 
17751
    public getFirstDeliveryEstimateForWhLocation_args() {
17752
    }
17753
 
17754
    public getFirstDeliveryEstimateForWhLocation_args(
17755
      String pincode,
17756
      long whLocation)
17757
    {
17758
      this();
17759
      this.pincode = pincode;
17760
      this.whLocation = whLocation;
17761
      setWhLocationIsSet(true);
17762
    }
17763
 
17764
    /**
17765
     * Performs a deep copy on <i>other</i>.
17766
     */
17767
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
17768
      __isset_bit_vector.clear();
17769
      __isset_bit_vector.or(other.__isset_bit_vector);
17770
      if (other.isSetPincode()) {
17771
        this.pincode = other.pincode;
17772
      }
17773
      this.whLocation = other.whLocation;
17774
    }
17775
 
17776
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
17777
      return new getFirstDeliveryEstimateForWhLocation_args(this);
17778
    }
17779
 
17780
    @Override
17781
    public void clear() {
17782
      this.pincode = null;
17783
      setWhLocationIsSet(false);
17784
      this.whLocation = 0;
17785
    }
17786
 
17787
    public String getPincode() {
17788
      return this.pincode;
17789
    }
17790
 
17791
    public void setPincode(String pincode) {
17792
      this.pincode = pincode;
17793
    }
17794
 
17795
    public void unsetPincode() {
17796
      this.pincode = null;
17797
    }
17798
 
17799
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
17800
    public boolean isSetPincode() {
17801
      return this.pincode != null;
17802
    }
17803
 
17804
    public void setPincodeIsSet(boolean value) {
17805
      if (!value) {
17806
        this.pincode = null;
17807
      }
17808
    }
17809
 
17810
    public long getWhLocation() {
17811
      return this.whLocation;
17812
    }
17813
 
17814
    public void setWhLocation(long whLocation) {
17815
      this.whLocation = whLocation;
17816
      setWhLocationIsSet(true);
17817
    }
17818
 
17819
    public void unsetWhLocation() {
17820
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
17821
    }
17822
 
17823
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
17824
    public boolean isSetWhLocation() {
17825
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
17826
    }
17827
 
17828
    public void setWhLocationIsSet(boolean value) {
17829
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
17830
    }
17831
 
17832
    public void setFieldValue(_Fields field, Object value) {
17833
      switch (field) {
17834
      case PINCODE:
17835
        if (value == null) {
17836
          unsetPincode();
17837
        } else {
17838
          setPincode((String)value);
17839
        }
17840
        break;
17841
 
17842
      case WH_LOCATION:
17843
        if (value == null) {
17844
          unsetWhLocation();
17845
        } else {
17846
          setWhLocation((Long)value);
17847
        }
17848
        break;
17849
 
17850
      }
17851
    }
17852
 
17853
    public Object getFieldValue(_Fields field) {
17854
      switch (field) {
17855
      case PINCODE:
17856
        return getPincode();
17857
 
17858
      case WH_LOCATION:
17859
        return Long.valueOf(getWhLocation());
17860
 
17861
      }
17862
      throw new IllegalStateException();
17863
    }
17864
 
17865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17866
    public boolean isSet(_Fields field) {
17867
      if (field == null) {
17868
        throw new IllegalArgumentException();
17869
      }
17870
 
17871
      switch (field) {
17872
      case PINCODE:
17873
        return isSetPincode();
17874
      case WH_LOCATION:
17875
        return isSetWhLocation();
17876
      }
17877
      throw new IllegalStateException();
17878
    }
17879
 
17880
    @Override
17881
    public boolean equals(Object that) {
17882
      if (that == null)
17883
        return false;
17884
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
17885
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
17886
      return false;
17887
    }
17888
 
17889
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
17890
      if (that == null)
17891
        return false;
17892
 
17893
      boolean this_present_pincode = true && this.isSetPincode();
17894
      boolean that_present_pincode = true && that.isSetPincode();
17895
      if (this_present_pincode || that_present_pincode) {
17896
        if (!(this_present_pincode && that_present_pincode))
17897
          return false;
17898
        if (!this.pincode.equals(that.pincode))
17899
          return false;
17900
      }
17901
 
17902
      boolean this_present_whLocation = true;
17903
      boolean that_present_whLocation = true;
17904
      if (this_present_whLocation || that_present_whLocation) {
17905
        if (!(this_present_whLocation && that_present_whLocation))
17906
          return false;
17907
        if (this.whLocation != that.whLocation)
17908
          return false;
17909
      }
17910
 
17911
      return true;
17912
    }
17913
 
17914
    @Override
17915
    public int hashCode() {
17916
      return 0;
17917
    }
17918
 
17919
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
17920
      if (!getClass().equals(other.getClass())) {
17921
        return getClass().getName().compareTo(other.getClass().getName());
17922
      }
17923
 
17924
      int lastComparison = 0;
17925
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
17926
 
17927
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
17928
      if (lastComparison != 0) {
17929
        return lastComparison;
17930
      }
17931
      if (isSetPincode()) {
17932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
17933
        if (lastComparison != 0) {
17934
          return lastComparison;
17935
        }
17936
      }
17937
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
17938
      if (lastComparison != 0) {
17939
        return lastComparison;
17940
      }
17941
      if (isSetWhLocation()) {
17942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
17943
        if (lastComparison != 0) {
17944
          return lastComparison;
17945
        }
17946
      }
17947
      return 0;
17948
    }
17949
 
17950
    public _Fields fieldForId(int fieldId) {
17951
      return _Fields.findByThriftId(fieldId);
17952
    }
17953
 
17954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17955
      org.apache.thrift.protocol.TField field;
17956
      iprot.readStructBegin();
17957
      while (true)
17958
      {
17959
        field = iprot.readFieldBegin();
17960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17961
          break;
17962
        }
17963
        switch (field.id) {
17964
          case 1: // PINCODE
17965
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17966
              this.pincode = iprot.readString();
17967
            } else { 
17968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17969
            }
17970
            break;
17971
          case 2: // WH_LOCATION
17972
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17973
              this.whLocation = iprot.readI64();
17974
              setWhLocationIsSet(true);
17975
            } else { 
17976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17977
            }
17978
            break;
17979
          default:
17980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17981
        }
17982
        iprot.readFieldEnd();
17983
      }
17984
      iprot.readStructEnd();
17985
      validate();
17986
    }
17987
 
17988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17989
      validate();
17990
 
17991
      oprot.writeStructBegin(STRUCT_DESC);
17992
      if (this.pincode != null) {
17993
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
17994
        oprot.writeString(this.pincode);
17995
        oprot.writeFieldEnd();
17996
      }
17997
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
17998
      oprot.writeI64(this.whLocation);
17999
      oprot.writeFieldEnd();
18000
      oprot.writeFieldStop();
18001
      oprot.writeStructEnd();
18002
    }
18003
 
18004
    @Override
18005
    public String toString() {
18006
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18007
      boolean first = true;
18008
 
18009
      sb.append("pincode:");
18010
      if (this.pincode == null) {
18011
        sb.append("null");
18012
      } else {
18013
        sb.append(this.pincode);
18014
      }
18015
      first = false;
18016
      if (!first) sb.append(", ");
18017
      sb.append("whLocation:");
18018
      sb.append(this.whLocation);
18019
      first = false;
18020
      sb.append(")");
18021
      return sb.toString();
18022
    }
18023
 
18024
    public void validate() throws org.apache.thrift.TException {
18025
      // check for required fields
18026
    }
18027
 
18028
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18029
      try {
18030
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18031
      } catch (org.apache.thrift.TException te) {
18032
        throw new java.io.IOException(te);
18033
      }
18034
    }
18035
 
18036
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18037
      try {
18038
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18039
        __isset_bit_vector = new BitSet(1);
18040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18041
      } catch (org.apache.thrift.TException te) {
18042
        throw new java.io.IOException(te);
18043
      }
18044
    }
18045
 
18046
  }
18047
 
18048
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18049
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18050
 
18051
    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);
18052
 
18053
    private long success; // required
18054
 
18055
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18056
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18057
      SUCCESS((short)0, "success");
18058
 
18059
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18060
 
18061
      static {
18062
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18063
          byName.put(field.getFieldName(), field);
18064
        }
18065
      }
18066
 
18067
      /**
18068
       * Find the _Fields constant that matches fieldId, or null if its not found.
18069
       */
18070
      public static _Fields findByThriftId(int fieldId) {
18071
        switch(fieldId) {
18072
          case 0: // SUCCESS
18073
            return SUCCESS;
18074
          default:
18075
            return null;
18076
        }
18077
      }
18078
 
18079
      /**
18080
       * Find the _Fields constant that matches fieldId, throwing an exception
18081
       * if it is not found.
18082
       */
18083
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18084
        _Fields fields = findByThriftId(fieldId);
18085
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18086
        return fields;
18087
      }
18088
 
18089
      /**
18090
       * Find the _Fields constant that matches name, or null if its not found.
18091
       */
18092
      public static _Fields findByName(String name) {
18093
        return byName.get(name);
18094
      }
18095
 
18096
      private final short _thriftId;
18097
      private final String _fieldName;
18098
 
18099
      _Fields(short thriftId, String fieldName) {
18100
        _thriftId = thriftId;
18101
        _fieldName = fieldName;
18102
      }
18103
 
18104
      public short getThriftFieldId() {
18105
        return _thriftId;
18106
      }
18107
 
18108
      public String getFieldName() {
18109
        return _fieldName;
18110
      }
18111
    }
18112
 
18113
    // isset id assignments
18114
    private static final int __SUCCESS_ISSET_ID = 0;
18115
    private BitSet __isset_bit_vector = new BitSet(1);
18116
 
18117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18118
    static {
18119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18120
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18121
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18122
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18123
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18124
    }
18125
 
18126
    public getFirstDeliveryEstimateForWhLocation_result() {
18127
    }
18128
 
18129
    public getFirstDeliveryEstimateForWhLocation_result(
18130
      long success)
18131
    {
18132
      this();
18133
      this.success = success;
18134
      setSuccessIsSet(true);
18135
    }
18136
 
18137
    /**
18138
     * Performs a deep copy on <i>other</i>.
18139
     */
18140
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18141
      __isset_bit_vector.clear();
18142
      __isset_bit_vector.or(other.__isset_bit_vector);
18143
      this.success = other.success;
18144
    }
18145
 
18146
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18147
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18148
    }
18149
 
18150
    @Override
18151
    public void clear() {
18152
      setSuccessIsSet(false);
18153
      this.success = 0;
18154
    }
18155
 
18156
    public long getSuccess() {
18157
      return this.success;
18158
    }
18159
 
18160
    public void setSuccess(long success) {
18161
      this.success = success;
18162
      setSuccessIsSet(true);
18163
    }
18164
 
18165
    public void unsetSuccess() {
18166
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18167
    }
18168
 
18169
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18170
    public boolean isSetSuccess() {
18171
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18172
    }
18173
 
18174
    public void setSuccessIsSet(boolean value) {
18175
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18176
    }
18177
 
18178
    public void setFieldValue(_Fields field, Object value) {
18179
      switch (field) {
18180
      case SUCCESS:
18181
        if (value == null) {
18182
          unsetSuccess();
18183
        } else {
18184
          setSuccess((Long)value);
18185
        }
18186
        break;
18187
 
18188
      }
18189
    }
18190
 
18191
    public Object getFieldValue(_Fields field) {
18192
      switch (field) {
18193
      case SUCCESS:
18194
        return Long.valueOf(getSuccess());
18195
 
18196
      }
18197
      throw new IllegalStateException();
18198
    }
18199
 
18200
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18201
    public boolean isSet(_Fields field) {
18202
      if (field == null) {
18203
        throw new IllegalArgumentException();
18204
      }
18205
 
18206
      switch (field) {
18207
      case SUCCESS:
18208
        return isSetSuccess();
18209
      }
18210
      throw new IllegalStateException();
18211
    }
18212
 
18213
    @Override
18214
    public boolean equals(Object that) {
18215
      if (that == null)
18216
        return false;
18217
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18218
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18219
      return false;
18220
    }
18221
 
18222
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18223
      if (that == null)
18224
        return false;
18225
 
18226
      boolean this_present_success = true;
18227
      boolean that_present_success = true;
18228
      if (this_present_success || that_present_success) {
18229
        if (!(this_present_success && that_present_success))
18230
          return false;
18231
        if (this.success != that.success)
18232
          return false;
18233
      }
18234
 
18235
      return true;
18236
    }
18237
 
18238
    @Override
18239
    public int hashCode() {
18240
      return 0;
18241
    }
18242
 
18243
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18244
      if (!getClass().equals(other.getClass())) {
18245
        return getClass().getName().compareTo(other.getClass().getName());
18246
      }
18247
 
18248
      int lastComparison = 0;
18249
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18250
 
18251
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18252
      if (lastComparison != 0) {
18253
        return lastComparison;
18254
      }
18255
      if (isSetSuccess()) {
18256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18257
        if (lastComparison != 0) {
18258
          return lastComparison;
18259
        }
18260
      }
18261
      return 0;
18262
    }
18263
 
18264
    public _Fields fieldForId(int fieldId) {
18265
      return _Fields.findByThriftId(fieldId);
18266
    }
18267
 
18268
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18269
      org.apache.thrift.protocol.TField field;
18270
      iprot.readStructBegin();
18271
      while (true)
18272
      {
18273
        field = iprot.readFieldBegin();
18274
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18275
          break;
18276
        }
18277
        switch (field.id) {
18278
          case 0: // SUCCESS
18279
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18280
              this.success = iprot.readI64();
18281
              setSuccessIsSet(true);
18282
            } else { 
18283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18284
            }
18285
            break;
18286
          default:
18287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18288
        }
18289
        iprot.readFieldEnd();
18290
      }
18291
      iprot.readStructEnd();
18292
      validate();
18293
    }
18294
 
18295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18296
      oprot.writeStructBegin(STRUCT_DESC);
18297
 
18298
      if (this.isSetSuccess()) {
18299
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18300
        oprot.writeI64(this.success);
18301
        oprot.writeFieldEnd();
18302
      }
18303
      oprot.writeFieldStop();
18304
      oprot.writeStructEnd();
18305
    }
18306
 
18307
    @Override
18308
    public String toString() {
18309
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18310
      boolean first = true;
18311
 
18312
      sb.append("success:");
18313
      sb.append(this.success);
18314
      first = false;
18315
      sb.append(")");
18316
      return sb.toString();
18317
    }
18318
 
18319
    public void validate() throws org.apache.thrift.TException {
18320
      // check for required fields
18321
    }
18322
 
18323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18324
      try {
18325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18326
      } catch (org.apache.thrift.TException te) {
18327
        throw new java.io.IOException(te);
18328
      }
18329
    }
18330
 
18331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18332
      try {
18333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18334
      } catch (org.apache.thrift.TException te) {
18335
        throw new java.io.IOException(te);
18336
      }
18337
    }
18338
 
18339
  }
18340
 
13146 manish.sha 18341
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18343
 
18344
    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);
18345
    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);
18346
    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);
18347
 
18348
    private long providerId; // required
18349
    private DeliveryType type; // required
18350
    private long orderQuantity; // required
18351
 
18352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18354
      PROVIDER_ID((short)1, "providerId"),
18355
      /**
18356
       * 
18357
       * @see DeliveryType
18358
       */
18359
      TYPE((short)2, "type"),
18360
      ORDER_QUANTITY((short)3, "orderQuantity");
18361
 
18362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18363
 
18364
      static {
18365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18366
          byName.put(field.getFieldName(), field);
18367
        }
18368
      }
18369
 
18370
      /**
18371
       * Find the _Fields constant that matches fieldId, or null if its not found.
18372
       */
18373
      public static _Fields findByThriftId(int fieldId) {
18374
        switch(fieldId) {
18375
          case 1: // PROVIDER_ID
18376
            return PROVIDER_ID;
18377
          case 2: // TYPE
18378
            return TYPE;
18379
          case 3: // ORDER_QUANTITY
18380
            return ORDER_QUANTITY;
18381
          default:
18382
            return null;
18383
        }
18384
      }
18385
 
18386
      /**
18387
       * Find the _Fields constant that matches fieldId, throwing an exception
18388
       * if it is not found.
18389
       */
18390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18391
        _Fields fields = findByThriftId(fieldId);
18392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18393
        return fields;
18394
      }
18395
 
18396
      /**
18397
       * Find the _Fields constant that matches name, or null if its not found.
18398
       */
18399
      public static _Fields findByName(String name) {
18400
        return byName.get(name);
18401
      }
18402
 
18403
      private final short _thriftId;
18404
      private final String _fieldName;
18405
 
18406
      _Fields(short thriftId, String fieldName) {
18407
        _thriftId = thriftId;
18408
        _fieldName = fieldName;
18409
      }
18410
 
18411
      public short getThriftFieldId() {
18412
        return _thriftId;
18413
      }
18414
 
18415
      public String getFieldName() {
18416
        return _fieldName;
18417
      }
18418
    }
18419
 
18420
    // isset id assignments
18421
    private static final int __PROVIDERID_ISSET_ID = 0;
18422
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18423
    private BitSet __isset_bit_vector = new BitSet(2);
18424
 
18425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18426
    static {
18427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18428
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18430
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18431
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18432
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18436
    }
18437
 
18438
    public getNewEmptyAwb_args() {
18439
    }
18440
 
18441
    public getNewEmptyAwb_args(
18442
      long providerId,
18443
      DeliveryType type,
18444
      long orderQuantity)
18445
    {
18446
      this();
18447
      this.providerId = providerId;
18448
      setProviderIdIsSet(true);
18449
      this.type = type;
18450
      this.orderQuantity = orderQuantity;
18451
      setOrderQuantityIsSet(true);
18452
    }
18453
 
18454
    /**
18455
     * Performs a deep copy on <i>other</i>.
18456
     */
18457
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18458
      __isset_bit_vector.clear();
18459
      __isset_bit_vector.or(other.__isset_bit_vector);
18460
      this.providerId = other.providerId;
18461
      if (other.isSetType()) {
18462
        this.type = other.type;
18463
      }
18464
      this.orderQuantity = other.orderQuantity;
18465
    }
18466
 
18467
    public getNewEmptyAwb_args deepCopy() {
18468
      return new getNewEmptyAwb_args(this);
18469
    }
18470
 
18471
    @Override
18472
    public void clear() {
18473
      setProviderIdIsSet(false);
18474
      this.providerId = 0;
18475
      this.type = null;
18476
      setOrderQuantityIsSet(false);
18477
      this.orderQuantity = 0;
18478
    }
18479
 
18480
    public long getProviderId() {
18481
      return this.providerId;
18482
    }
18483
 
18484
    public void setProviderId(long providerId) {
18485
      this.providerId = providerId;
18486
      setProviderIdIsSet(true);
18487
    }
18488
 
18489
    public void unsetProviderId() {
18490
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18491
    }
18492
 
18493
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18494
    public boolean isSetProviderId() {
18495
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18496
    }
18497
 
18498
    public void setProviderIdIsSet(boolean value) {
18499
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18500
    }
18501
 
18502
    /**
18503
     * 
18504
     * @see DeliveryType
18505
     */
18506
    public DeliveryType getType() {
18507
      return this.type;
18508
    }
18509
 
18510
    /**
18511
     * 
18512
     * @see DeliveryType
18513
     */
18514
    public void setType(DeliveryType type) {
18515
      this.type = type;
18516
    }
18517
 
18518
    public void unsetType() {
18519
      this.type = null;
18520
    }
18521
 
18522
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18523
    public boolean isSetType() {
18524
      return this.type != null;
18525
    }
18526
 
18527
    public void setTypeIsSet(boolean value) {
18528
      if (!value) {
18529
        this.type = null;
18530
      }
18531
    }
18532
 
18533
    public long getOrderQuantity() {
18534
      return this.orderQuantity;
18535
    }
18536
 
18537
    public void setOrderQuantity(long orderQuantity) {
18538
      this.orderQuantity = orderQuantity;
18539
      setOrderQuantityIsSet(true);
18540
    }
18541
 
18542
    public void unsetOrderQuantity() {
18543
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18544
    }
18545
 
18546
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18547
    public boolean isSetOrderQuantity() {
18548
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18549
    }
18550
 
18551
    public void setOrderQuantityIsSet(boolean value) {
18552
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18553
    }
18554
 
18555
    public void setFieldValue(_Fields field, Object value) {
18556
      switch (field) {
18557
      case PROVIDER_ID:
18558
        if (value == null) {
18559
          unsetProviderId();
18560
        } else {
18561
          setProviderId((Long)value);
18562
        }
18563
        break;
18564
 
18565
      case TYPE:
18566
        if (value == null) {
18567
          unsetType();
18568
        } else {
18569
          setType((DeliveryType)value);
18570
        }
18571
        break;
18572
 
18573
      case ORDER_QUANTITY:
18574
        if (value == null) {
18575
          unsetOrderQuantity();
18576
        } else {
18577
          setOrderQuantity((Long)value);
18578
        }
18579
        break;
18580
 
18581
      }
18582
    }
18583
 
18584
    public Object getFieldValue(_Fields field) {
18585
      switch (field) {
18586
      case PROVIDER_ID:
18587
        return Long.valueOf(getProviderId());
18588
 
18589
      case TYPE:
18590
        return getType();
18591
 
18592
      case ORDER_QUANTITY:
18593
        return Long.valueOf(getOrderQuantity());
18594
 
18595
      }
18596
      throw new IllegalStateException();
18597
    }
18598
 
18599
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18600
    public boolean isSet(_Fields field) {
18601
      if (field == null) {
18602
        throw new IllegalArgumentException();
18603
      }
18604
 
18605
      switch (field) {
18606
      case PROVIDER_ID:
18607
        return isSetProviderId();
18608
      case TYPE:
18609
        return isSetType();
18610
      case ORDER_QUANTITY:
18611
        return isSetOrderQuantity();
18612
      }
18613
      throw new IllegalStateException();
18614
    }
18615
 
18616
    @Override
18617
    public boolean equals(Object that) {
18618
      if (that == null)
18619
        return false;
18620
      if (that instanceof getNewEmptyAwb_args)
18621
        return this.equals((getNewEmptyAwb_args)that);
18622
      return false;
18623
    }
18624
 
18625
    public boolean equals(getNewEmptyAwb_args that) {
18626
      if (that == null)
18627
        return false;
18628
 
18629
      boolean this_present_providerId = true;
18630
      boolean that_present_providerId = true;
18631
      if (this_present_providerId || that_present_providerId) {
18632
        if (!(this_present_providerId && that_present_providerId))
18633
          return false;
18634
        if (this.providerId != that.providerId)
18635
          return false;
18636
      }
18637
 
18638
      boolean this_present_type = true && this.isSetType();
18639
      boolean that_present_type = true && that.isSetType();
18640
      if (this_present_type || that_present_type) {
18641
        if (!(this_present_type && that_present_type))
18642
          return false;
18643
        if (!this.type.equals(that.type))
18644
          return false;
18645
      }
18646
 
18647
      boolean this_present_orderQuantity = true;
18648
      boolean that_present_orderQuantity = true;
18649
      if (this_present_orderQuantity || that_present_orderQuantity) {
18650
        if (!(this_present_orderQuantity && that_present_orderQuantity))
18651
          return false;
18652
        if (this.orderQuantity != that.orderQuantity)
18653
          return false;
18654
      }
18655
 
18656
      return true;
18657
    }
18658
 
18659
    @Override
18660
    public int hashCode() {
18661
      return 0;
18662
    }
18663
 
18664
    public int compareTo(getNewEmptyAwb_args other) {
18665
      if (!getClass().equals(other.getClass())) {
18666
        return getClass().getName().compareTo(other.getClass().getName());
18667
      }
18668
 
18669
      int lastComparison = 0;
18670
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
18671
 
18672
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
18673
      if (lastComparison != 0) {
18674
        return lastComparison;
18675
      }
18676
      if (isSetProviderId()) {
18677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
18678
        if (lastComparison != 0) {
18679
          return lastComparison;
18680
        }
18681
      }
18682
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
18683
      if (lastComparison != 0) {
18684
        return lastComparison;
18685
      }
18686
      if (isSetType()) {
18687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
18688
        if (lastComparison != 0) {
18689
          return lastComparison;
18690
        }
18691
      }
18692
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
18693
      if (lastComparison != 0) {
18694
        return lastComparison;
18695
      }
18696
      if (isSetOrderQuantity()) {
18697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
18698
        if (lastComparison != 0) {
18699
          return lastComparison;
18700
        }
18701
      }
18702
      return 0;
18703
    }
18704
 
18705
    public _Fields fieldForId(int fieldId) {
18706
      return _Fields.findByThriftId(fieldId);
18707
    }
18708
 
18709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18710
      org.apache.thrift.protocol.TField field;
18711
      iprot.readStructBegin();
18712
      while (true)
18713
      {
18714
        field = iprot.readFieldBegin();
18715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18716
          break;
18717
        }
18718
        switch (field.id) {
18719
          case 1: // PROVIDER_ID
18720
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18721
              this.providerId = iprot.readI64();
18722
              setProviderIdIsSet(true);
18723
            } else { 
18724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18725
            }
18726
            break;
18727
          case 2: // TYPE
18728
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18729
              this.type = DeliveryType.findByValue(iprot.readI32());
18730
            } else { 
18731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18732
            }
18733
            break;
18734
          case 3: // ORDER_QUANTITY
18735
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18736
              this.orderQuantity = iprot.readI64();
18737
              setOrderQuantityIsSet(true);
18738
            } else { 
18739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18740
            }
18741
            break;
18742
          default:
18743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18744
        }
18745
        iprot.readFieldEnd();
18746
      }
18747
      iprot.readStructEnd();
18748
      validate();
18749
    }
18750
 
18751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18752
      validate();
18753
 
18754
      oprot.writeStructBegin(STRUCT_DESC);
18755
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
18756
      oprot.writeI64(this.providerId);
18757
      oprot.writeFieldEnd();
18758
      if (this.type != null) {
18759
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
18760
        oprot.writeI32(this.type.getValue());
18761
        oprot.writeFieldEnd();
18762
      }
18763
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
18764
      oprot.writeI64(this.orderQuantity);
18765
      oprot.writeFieldEnd();
18766
      oprot.writeFieldStop();
18767
      oprot.writeStructEnd();
18768
    }
18769
 
18770
    @Override
18771
    public String toString() {
18772
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
18773
      boolean first = true;
18774
 
18775
      sb.append("providerId:");
18776
      sb.append(this.providerId);
18777
      first = false;
18778
      if (!first) sb.append(", ");
18779
      sb.append("type:");
18780
      if (this.type == null) {
18781
        sb.append("null");
18782
      } else {
18783
        sb.append(this.type);
18784
      }
18785
      first = false;
18786
      if (!first) sb.append(", ");
18787
      sb.append("orderQuantity:");
18788
      sb.append(this.orderQuantity);
18789
      first = false;
18790
      sb.append(")");
18791
      return sb.toString();
18792
    }
18793
 
18794
    public void validate() throws org.apache.thrift.TException {
18795
      // check for required fields
18796
    }
18797
 
18798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18799
      try {
18800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18801
      } catch (org.apache.thrift.TException te) {
18802
        throw new java.io.IOException(te);
18803
      }
18804
    }
18805
 
18806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18807
      try {
18808
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18809
        __isset_bit_vector = new BitSet(1);
18810
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18811
      } catch (org.apache.thrift.TException te) {
18812
        throw new java.io.IOException(te);
18813
      }
18814
    }
18815
 
18816
  }
18817
 
18818
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
18819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
18820
 
18821
    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);
18822
    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);
18823
 
18824
    private String success; // required
18825
    private LogisticsServiceException se; // required
18826
 
18827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18829
      SUCCESS((short)0, "success"),
18830
      SE((short)1, "se");
18831
 
18832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18833
 
18834
      static {
18835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18836
          byName.put(field.getFieldName(), field);
18837
        }
18838
      }
18839
 
18840
      /**
18841
       * Find the _Fields constant that matches fieldId, or null if its not found.
18842
       */
18843
      public static _Fields findByThriftId(int fieldId) {
18844
        switch(fieldId) {
18845
          case 0: // SUCCESS
18846
            return SUCCESS;
18847
          case 1: // SE
18848
            return SE;
18849
          default:
18850
            return null;
18851
        }
18852
      }
18853
 
18854
      /**
18855
       * Find the _Fields constant that matches fieldId, throwing an exception
18856
       * if it is not found.
18857
       */
18858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18859
        _Fields fields = findByThriftId(fieldId);
18860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18861
        return fields;
18862
      }
18863
 
18864
      /**
18865
       * Find the _Fields constant that matches name, or null if its not found.
18866
       */
18867
      public static _Fields findByName(String name) {
18868
        return byName.get(name);
18869
      }
18870
 
18871
      private final short _thriftId;
18872
      private final String _fieldName;
18873
 
18874
      _Fields(short thriftId, String fieldName) {
18875
        _thriftId = thriftId;
18876
        _fieldName = fieldName;
18877
      }
18878
 
18879
      public short getThriftFieldId() {
18880
        return _thriftId;
18881
      }
18882
 
18883
      public String getFieldName() {
18884
        return _fieldName;
18885
      }
18886
    }
18887
 
18888
    // isset id assignments
18889
 
18890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18891
    static {
18892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18893
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18895
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
18899
    }
18900
 
18901
    public getNewEmptyAwb_result() {
18902
    }
18903
 
18904
    public getNewEmptyAwb_result(
18905
      String success,
18906
      LogisticsServiceException se)
18907
    {
18908
      this();
18909
      this.success = success;
18910
      this.se = se;
18911
    }
18912
 
18913
    /**
18914
     * Performs a deep copy on <i>other</i>.
18915
     */
18916
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
18917
      if (other.isSetSuccess()) {
18918
        this.success = other.success;
18919
      }
18920
      if (other.isSetSe()) {
18921
        this.se = new LogisticsServiceException(other.se);
18922
      }
18923
    }
18924
 
18925
    public getNewEmptyAwb_result deepCopy() {
18926
      return new getNewEmptyAwb_result(this);
18927
    }
18928
 
18929
    @Override
18930
    public void clear() {
18931
      this.success = null;
18932
      this.se = null;
18933
    }
18934
 
18935
    public String getSuccess() {
18936
      return this.success;
18937
    }
18938
 
18939
    public void setSuccess(String success) {
18940
      this.success = success;
18941
    }
18942
 
18943
    public void unsetSuccess() {
18944
      this.success = null;
18945
    }
18946
 
18947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18948
    public boolean isSetSuccess() {
18949
      return this.success != null;
18950
    }
18951
 
18952
    public void setSuccessIsSet(boolean value) {
18953
      if (!value) {
18954
        this.success = null;
18955
      }
18956
    }
18957
 
18958
    public LogisticsServiceException getSe() {
18959
      return this.se;
18960
    }
18961
 
18962
    public void setSe(LogisticsServiceException se) {
18963
      this.se = se;
18964
    }
18965
 
18966
    public void unsetSe() {
18967
      this.se = null;
18968
    }
18969
 
18970
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
18971
    public boolean isSetSe() {
18972
      return this.se != null;
18973
    }
18974
 
18975
    public void setSeIsSet(boolean value) {
18976
      if (!value) {
18977
        this.se = null;
18978
      }
18979
    }
18980
 
18981
    public void setFieldValue(_Fields field, Object value) {
18982
      switch (field) {
18983
      case SUCCESS:
18984
        if (value == null) {
18985
          unsetSuccess();
18986
        } else {
18987
          setSuccess((String)value);
18988
        }
18989
        break;
18990
 
18991
      case SE:
18992
        if (value == null) {
18993
          unsetSe();
18994
        } else {
18995
          setSe((LogisticsServiceException)value);
18996
        }
18997
        break;
18998
 
18999
      }
19000
    }
19001
 
19002
    public Object getFieldValue(_Fields field) {
19003
      switch (field) {
19004
      case SUCCESS:
19005
        return getSuccess();
19006
 
19007
      case SE:
19008
        return getSe();
19009
 
19010
      }
19011
      throw new IllegalStateException();
19012
    }
19013
 
19014
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19015
    public boolean isSet(_Fields field) {
19016
      if (field == null) {
19017
        throw new IllegalArgumentException();
19018
      }
19019
 
19020
      switch (field) {
19021
      case SUCCESS:
19022
        return isSetSuccess();
19023
      case SE:
19024
        return isSetSe();
19025
      }
19026
      throw new IllegalStateException();
19027
    }
19028
 
19029
    @Override
19030
    public boolean equals(Object that) {
19031
      if (that == null)
19032
        return false;
19033
      if (that instanceof getNewEmptyAwb_result)
19034
        return this.equals((getNewEmptyAwb_result)that);
19035
      return false;
19036
    }
19037
 
19038
    public boolean equals(getNewEmptyAwb_result that) {
19039
      if (that == null)
19040
        return false;
19041
 
19042
      boolean this_present_success = true && this.isSetSuccess();
19043
      boolean that_present_success = true && that.isSetSuccess();
19044
      if (this_present_success || that_present_success) {
19045
        if (!(this_present_success && that_present_success))
19046
          return false;
19047
        if (!this.success.equals(that.success))
19048
          return false;
19049
      }
19050
 
19051
      boolean this_present_se = true && this.isSetSe();
19052
      boolean that_present_se = true && that.isSetSe();
19053
      if (this_present_se || that_present_se) {
19054
        if (!(this_present_se && that_present_se))
19055
          return false;
19056
        if (!this.se.equals(that.se))
19057
          return false;
19058
      }
19059
 
19060
      return true;
19061
    }
19062
 
19063
    @Override
19064
    public int hashCode() {
19065
      return 0;
19066
    }
19067
 
19068
    public int compareTo(getNewEmptyAwb_result other) {
19069
      if (!getClass().equals(other.getClass())) {
19070
        return getClass().getName().compareTo(other.getClass().getName());
19071
      }
19072
 
19073
      int lastComparison = 0;
19074
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19075
 
19076
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19077
      if (lastComparison != 0) {
19078
        return lastComparison;
19079
      }
19080
      if (isSetSuccess()) {
19081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19082
        if (lastComparison != 0) {
19083
          return lastComparison;
19084
        }
19085
      }
19086
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19087
      if (lastComparison != 0) {
19088
        return lastComparison;
19089
      }
19090
      if (isSetSe()) {
19091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19092
        if (lastComparison != 0) {
19093
          return lastComparison;
19094
        }
19095
      }
19096
      return 0;
19097
    }
19098
 
19099
    public _Fields fieldForId(int fieldId) {
19100
      return _Fields.findByThriftId(fieldId);
19101
    }
19102
 
19103
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19104
      org.apache.thrift.protocol.TField field;
19105
      iprot.readStructBegin();
19106
      while (true)
19107
      {
19108
        field = iprot.readFieldBegin();
19109
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19110
          break;
19111
        }
19112
        switch (field.id) {
19113
          case 0: // SUCCESS
19114
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19115
              this.success = iprot.readString();
19116
            } else { 
19117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19118
            }
19119
            break;
19120
          case 1: // SE
19121
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19122
              this.se = new LogisticsServiceException();
19123
              this.se.read(iprot);
19124
            } else { 
19125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19126
            }
19127
            break;
19128
          default:
19129
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19130
        }
19131
        iprot.readFieldEnd();
19132
      }
19133
      iprot.readStructEnd();
19134
      validate();
19135
    }
19136
 
19137
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19138
      oprot.writeStructBegin(STRUCT_DESC);
19139
 
19140
      if (this.isSetSuccess()) {
19141
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19142
        oprot.writeString(this.success);
19143
        oprot.writeFieldEnd();
19144
      } else if (this.isSetSe()) {
19145
        oprot.writeFieldBegin(SE_FIELD_DESC);
19146
        this.se.write(oprot);
19147
        oprot.writeFieldEnd();
19148
      }
19149
      oprot.writeFieldStop();
19150
      oprot.writeStructEnd();
19151
    }
19152
 
19153
    @Override
19154
    public String toString() {
19155
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19156
      boolean first = true;
19157
 
19158
      sb.append("success:");
19159
      if (this.success == null) {
19160
        sb.append("null");
19161
      } else {
19162
        sb.append(this.success);
19163
      }
19164
      first = false;
19165
      if (!first) sb.append(", ");
19166
      sb.append("se:");
19167
      if (this.se == null) {
19168
        sb.append("null");
19169
      } else {
19170
        sb.append(this.se);
19171
      }
19172
      first = false;
19173
      sb.append(")");
19174
      return sb.toString();
19175
    }
19176
 
19177
    public void validate() throws org.apache.thrift.TException {
19178
      // check for required fields
19179
    }
19180
 
19181
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19182
      try {
19183
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19184
      } catch (org.apache.thrift.TException te) {
19185
        throw new java.io.IOException(te);
19186
      }
19187
    }
19188
 
19189
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19190
      try {
19191
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19192
      } catch (org.apache.thrift.TException te) {
19193
        throw new java.io.IOException(te);
19194
      }
19195
    }
19196
 
19197
  }
19198
 
19199
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19200
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19201
 
19202
    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);
19203
    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);
19204
 
19205
    private long providerId; // required
19206
    private String pincode; // required
19207
 
19208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19209
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19210
      PROVIDER_ID((short)1, "providerId"),
19211
      PINCODE((short)2, "pincode");
19212
 
19213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19214
 
19215
      static {
19216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19217
          byName.put(field.getFieldName(), field);
19218
        }
19219
      }
19220
 
19221
      /**
19222
       * Find the _Fields constant that matches fieldId, or null if its not found.
19223
       */
19224
      public static _Fields findByThriftId(int fieldId) {
19225
        switch(fieldId) {
19226
          case 1: // PROVIDER_ID
19227
            return PROVIDER_ID;
19228
          case 2: // PINCODE
19229
            return PINCODE;
19230
          default:
19231
            return null;
19232
        }
19233
      }
19234
 
19235
      /**
19236
       * Find the _Fields constant that matches fieldId, throwing an exception
19237
       * if it is not found.
19238
       */
19239
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19240
        _Fields fields = findByThriftId(fieldId);
19241
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19242
        return fields;
19243
      }
19244
 
19245
      /**
19246
       * Find the _Fields constant that matches name, or null if its not found.
19247
       */
19248
      public static _Fields findByName(String name) {
19249
        return byName.get(name);
19250
      }
19251
 
19252
      private final short _thriftId;
19253
      private final String _fieldName;
19254
 
19255
      _Fields(short thriftId, String fieldName) {
19256
        _thriftId = thriftId;
19257
        _fieldName = fieldName;
19258
      }
19259
 
19260
      public short getThriftFieldId() {
19261
        return _thriftId;
19262
      }
19263
 
19264
      public String getFieldName() {
19265
        return _fieldName;
19266
      }
19267
    }
19268
 
19269
    // isset id assignments
19270
    private static final int __PROVIDERID_ISSET_ID = 0;
19271
    private BitSet __isset_bit_vector = new BitSet(1);
19272
 
19273
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19274
    static {
19275
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19276
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19278
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19282
    }
19283
 
19284
    public getProviderLimitDetailsForPincode_args() {
19285
    }
19286
 
19287
    public getProviderLimitDetailsForPincode_args(
19288
      long providerId,
19289
      String pincode)
19290
    {
19291
      this();
19292
      this.providerId = providerId;
19293
      setProviderIdIsSet(true);
19294
      this.pincode = pincode;
19295
    }
19296
 
19297
    /**
19298
     * Performs a deep copy on <i>other</i>.
19299
     */
19300
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19301
      __isset_bit_vector.clear();
19302
      __isset_bit_vector.or(other.__isset_bit_vector);
19303
      this.providerId = other.providerId;
19304
      if (other.isSetPincode()) {
19305
        this.pincode = other.pincode;
19306
      }
19307
    }
19308
 
19309
    public getProviderLimitDetailsForPincode_args deepCopy() {
19310
      return new getProviderLimitDetailsForPincode_args(this);
19311
    }
19312
 
19313
    @Override
19314
    public void clear() {
19315
      setProviderIdIsSet(false);
19316
      this.providerId = 0;
19317
      this.pincode = null;
19318
    }
19319
 
19320
    public long getProviderId() {
19321
      return this.providerId;
19322
    }
19323
 
19324
    public void setProviderId(long providerId) {
19325
      this.providerId = providerId;
19326
      setProviderIdIsSet(true);
19327
    }
19328
 
19329
    public void unsetProviderId() {
19330
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19331
    }
19332
 
19333
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19334
    public boolean isSetProviderId() {
19335
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19336
    }
19337
 
19338
    public void setProviderIdIsSet(boolean value) {
19339
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19340
    }
19341
 
19342
    public String getPincode() {
19343
      return this.pincode;
19344
    }
19345
 
19346
    public void setPincode(String pincode) {
19347
      this.pincode = pincode;
19348
    }
19349
 
19350
    public void unsetPincode() {
19351
      this.pincode = null;
19352
    }
19353
 
19354
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19355
    public boolean isSetPincode() {
19356
      return this.pincode != null;
19357
    }
19358
 
19359
    public void setPincodeIsSet(boolean value) {
19360
      if (!value) {
19361
        this.pincode = null;
19362
      }
19363
    }
19364
 
19365
    public void setFieldValue(_Fields field, Object value) {
19366
      switch (field) {
19367
      case PROVIDER_ID:
19368
        if (value == null) {
19369
          unsetProviderId();
19370
        } else {
19371
          setProviderId((Long)value);
19372
        }
19373
        break;
19374
 
19375
      case PINCODE:
19376
        if (value == null) {
19377
          unsetPincode();
19378
        } else {
19379
          setPincode((String)value);
19380
        }
19381
        break;
19382
 
19383
      }
19384
    }
19385
 
19386
    public Object getFieldValue(_Fields field) {
19387
      switch (field) {
19388
      case PROVIDER_ID:
19389
        return Long.valueOf(getProviderId());
19390
 
19391
      case PINCODE:
19392
        return getPincode();
19393
 
19394
      }
19395
      throw new IllegalStateException();
19396
    }
19397
 
19398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19399
    public boolean isSet(_Fields field) {
19400
      if (field == null) {
19401
        throw new IllegalArgumentException();
19402
      }
19403
 
19404
      switch (field) {
19405
      case PROVIDER_ID:
19406
        return isSetProviderId();
19407
      case PINCODE:
19408
        return isSetPincode();
19409
      }
19410
      throw new IllegalStateException();
19411
    }
19412
 
19413
    @Override
19414
    public boolean equals(Object that) {
19415
      if (that == null)
19416
        return false;
19417
      if (that instanceof getProviderLimitDetailsForPincode_args)
19418
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19419
      return false;
19420
    }
19421
 
19422
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19423
      if (that == null)
19424
        return false;
19425
 
19426
      boolean this_present_providerId = true;
19427
      boolean that_present_providerId = true;
19428
      if (this_present_providerId || that_present_providerId) {
19429
        if (!(this_present_providerId && that_present_providerId))
19430
          return false;
19431
        if (this.providerId != that.providerId)
19432
          return false;
19433
      }
19434
 
19435
      boolean this_present_pincode = true && this.isSetPincode();
19436
      boolean that_present_pincode = true && that.isSetPincode();
19437
      if (this_present_pincode || that_present_pincode) {
19438
        if (!(this_present_pincode && that_present_pincode))
19439
          return false;
19440
        if (!this.pincode.equals(that.pincode))
19441
          return false;
19442
      }
19443
 
19444
      return true;
19445
    }
19446
 
19447
    @Override
19448
    public int hashCode() {
19449
      return 0;
19450
    }
19451
 
19452
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19453
      if (!getClass().equals(other.getClass())) {
19454
        return getClass().getName().compareTo(other.getClass().getName());
19455
      }
19456
 
19457
      int lastComparison = 0;
19458
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19459
 
19460
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19461
      if (lastComparison != 0) {
19462
        return lastComparison;
19463
      }
19464
      if (isSetProviderId()) {
19465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19466
        if (lastComparison != 0) {
19467
          return lastComparison;
19468
        }
19469
      }
19470
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19471
      if (lastComparison != 0) {
19472
        return lastComparison;
19473
      }
19474
      if (isSetPincode()) {
19475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19476
        if (lastComparison != 0) {
19477
          return lastComparison;
19478
        }
19479
      }
19480
      return 0;
19481
    }
19482
 
19483
    public _Fields fieldForId(int fieldId) {
19484
      return _Fields.findByThriftId(fieldId);
19485
    }
19486
 
19487
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19488
      org.apache.thrift.protocol.TField field;
19489
      iprot.readStructBegin();
19490
      while (true)
19491
      {
19492
        field = iprot.readFieldBegin();
19493
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19494
          break;
19495
        }
19496
        switch (field.id) {
19497
          case 1: // PROVIDER_ID
19498
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19499
              this.providerId = iprot.readI64();
19500
              setProviderIdIsSet(true);
19501
            } else { 
19502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19503
            }
19504
            break;
19505
          case 2: // PINCODE
19506
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19507
              this.pincode = iprot.readString();
19508
            } else { 
19509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19510
            }
19511
            break;
19512
          default:
19513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19514
        }
19515
        iprot.readFieldEnd();
19516
      }
19517
      iprot.readStructEnd();
19518
      validate();
19519
    }
19520
 
19521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19522
      validate();
19523
 
19524
      oprot.writeStructBegin(STRUCT_DESC);
19525
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19526
      oprot.writeI64(this.providerId);
19527
      oprot.writeFieldEnd();
19528
      if (this.pincode != null) {
19529
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19530
        oprot.writeString(this.pincode);
19531
        oprot.writeFieldEnd();
19532
      }
19533
      oprot.writeFieldStop();
19534
      oprot.writeStructEnd();
19535
    }
19536
 
19537
    @Override
19538
    public String toString() {
19539
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19540
      boolean first = true;
19541
 
19542
      sb.append("providerId:");
19543
      sb.append(this.providerId);
19544
      first = false;
19545
      if (!first) sb.append(", ");
19546
      sb.append("pincode:");
19547
      if (this.pincode == null) {
19548
        sb.append("null");
19549
      } else {
19550
        sb.append(this.pincode);
19551
      }
19552
      first = false;
19553
      sb.append(")");
19554
      return sb.toString();
19555
    }
19556
 
19557
    public void validate() throws org.apache.thrift.TException {
19558
      // check for required fields
19559
    }
19560
 
19561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19562
      try {
19563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19564
      } catch (org.apache.thrift.TException te) {
19565
        throw new java.io.IOException(te);
19566
      }
19567
    }
19568
 
19569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19570
      try {
19571
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19572
        __isset_bit_vector = new BitSet(1);
19573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19574
      } catch (org.apache.thrift.TException te) {
19575
        throw new java.io.IOException(te);
19576
      }
19577
    }
19578
 
19579
  }
19580
 
19581
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19583
 
19584
    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);
19585
    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);
19586
 
19587
    private Map<String,String> success; // required
19588
    private LogisticsServiceException se; // required
19589
 
19590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19592
      SUCCESS((short)0, "success"),
19593
      SE((short)1, "se");
19594
 
19595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19596
 
19597
      static {
19598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19599
          byName.put(field.getFieldName(), field);
19600
        }
19601
      }
19602
 
19603
      /**
19604
       * Find the _Fields constant that matches fieldId, or null if its not found.
19605
       */
19606
      public static _Fields findByThriftId(int fieldId) {
19607
        switch(fieldId) {
19608
          case 0: // SUCCESS
19609
            return SUCCESS;
19610
          case 1: // SE
19611
            return SE;
19612
          default:
19613
            return null;
19614
        }
19615
      }
19616
 
19617
      /**
19618
       * Find the _Fields constant that matches fieldId, throwing an exception
19619
       * if it is not found.
19620
       */
19621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19622
        _Fields fields = findByThriftId(fieldId);
19623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19624
        return fields;
19625
      }
19626
 
19627
      /**
19628
       * Find the _Fields constant that matches name, or null if its not found.
19629
       */
19630
      public static _Fields findByName(String name) {
19631
        return byName.get(name);
19632
      }
19633
 
19634
      private final short _thriftId;
19635
      private final String _fieldName;
19636
 
19637
      _Fields(short thriftId, String fieldName) {
19638
        _thriftId = thriftId;
19639
        _fieldName = fieldName;
19640
      }
19641
 
19642
      public short getThriftFieldId() {
19643
        return _thriftId;
19644
      }
19645
 
19646
      public String getFieldName() {
19647
        return _fieldName;
19648
      }
19649
    }
19650
 
19651
    // isset id assignments
19652
 
19653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19654
    static {
19655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19656
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19657
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
19658
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
19659
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19660
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
19664
    }
19665
 
19666
    public getProviderLimitDetailsForPincode_result() {
19667
    }
19668
 
19669
    public getProviderLimitDetailsForPincode_result(
19670
      Map<String,String> success,
19671
      LogisticsServiceException se)
19672
    {
19673
      this();
19674
      this.success = success;
19675
      this.se = se;
19676
    }
19677
 
19678
    /**
19679
     * Performs a deep copy on <i>other</i>.
19680
     */
19681
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
19682
      if (other.isSetSuccess()) {
19683
        Map<String,String> __this__success = new HashMap<String,String>();
19684
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
19685
 
19686
          String other_element_key = other_element.getKey();
19687
          String other_element_value = other_element.getValue();
19688
 
19689
          String __this__success_copy_key = other_element_key;
19690
 
19691
          String __this__success_copy_value = other_element_value;
19692
 
19693
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
19694
        }
19695
        this.success = __this__success;
19696
      }
19697
      if (other.isSetSe()) {
19698
        this.se = new LogisticsServiceException(other.se);
19699
      }
19700
    }
19701
 
19702
    public getProviderLimitDetailsForPincode_result deepCopy() {
19703
      return new getProviderLimitDetailsForPincode_result(this);
19704
    }
19705
 
19706
    @Override
19707
    public void clear() {
19708
      this.success = null;
19709
      this.se = null;
19710
    }
19711
 
19712
    public int getSuccessSize() {
19713
      return (this.success == null) ? 0 : this.success.size();
19714
    }
19715
 
19716
    public void putToSuccess(String key, String val) {
19717
      if (this.success == null) {
19718
        this.success = new HashMap<String,String>();
19719
      }
19720
      this.success.put(key, val);
19721
    }
19722
 
19723
    public Map<String,String> getSuccess() {
19724
      return this.success;
19725
    }
19726
 
19727
    public void setSuccess(Map<String,String> success) {
19728
      this.success = success;
19729
    }
19730
 
19731
    public void unsetSuccess() {
19732
      this.success = null;
19733
    }
19734
 
19735
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19736
    public boolean isSetSuccess() {
19737
      return this.success != null;
19738
    }
19739
 
19740
    public void setSuccessIsSet(boolean value) {
19741
      if (!value) {
19742
        this.success = null;
19743
      }
19744
    }
19745
 
19746
    public LogisticsServiceException getSe() {
19747
      return this.se;
19748
    }
19749
 
19750
    public void setSe(LogisticsServiceException se) {
19751
      this.se = se;
19752
    }
19753
 
19754
    public void unsetSe() {
19755
      this.se = null;
19756
    }
19757
 
19758
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19759
    public boolean isSetSe() {
19760
      return this.se != null;
19761
    }
19762
 
19763
    public void setSeIsSet(boolean value) {
19764
      if (!value) {
19765
        this.se = null;
19766
      }
19767
    }
19768
 
19769
    public void setFieldValue(_Fields field, Object value) {
19770
      switch (field) {
19771
      case SUCCESS:
19772
        if (value == null) {
19773
          unsetSuccess();
19774
        } else {
19775
          setSuccess((Map<String,String>)value);
19776
        }
19777
        break;
19778
 
19779
      case SE:
19780
        if (value == null) {
19781
          unsetSe();
19782
        } else {
19783
          setSe((LogisticsServiceException)value);
19784
        }
19785
        break;
19786
 
19787
      }
19788
    }
19789
 
19790
    public Object getFieldValue(_Fields field) {
19791
      switch (field) {
19792
      case SUCCESS:
19793
        return getSuccess();
19794
 
19795
      case SE:
19796
        return getSe();
19797
 
19798
      }
19799
      throw new IllegalStateException();
19800
    }
19801
 
19802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19803
    public boolean isSet(_Fields field) {
19804
      if (field == null) {
19805
        throw new IllegalArgumentException();
19806
      }
19807
 
19808
      switch (field) {
19809
      case SUCCESS:
19810
        return isSetSuccess();
19811
      case SE:
19812
        return isSetSe();
19813
      }
19814
      throw new IllegalStateException();
19815
    }
19816
 
19817
    @Override
19818
    public boolean equals(Object that) {
19819
      if (that == null)
19820
        return false;
19821
      if (that instanceof getProviderLimitDetailsForPincode_result)
19822
        return this.equals((getProviderLimitDetailsForPincode_result)that);
19823
      return false;
19824
    }
19825
 
19826
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
19827
      if (that == null)
19828
        return false;
19829
 
19830
      boolean this_present_success = true && this.isSetSuccess();
19831
      boolean that_present_success = true && that.isSetSuccess();
19832
      if (this_present_success || that_present_success) {
19833
        if (!(this_present_success && that_present_success))
19834
          return false;
19835
        if (!this.success.equals(that.success))
19836
          return false;
19837
      }
19838
 
19839
      boolean this_present_se = true && this.isSetSe();
19840
      boolean that_present_se = true && that.isSetSe();
19841
      if (this_present_se || that_present_se) {
19842
        if (!(this_present_se && that_present_se))
19843
          return false;
19844
        if (!this.se.equals(that.se))
19845
          return false;
19846
      }
19847
 
19848
      return true;
19849
    }
19850
 
19851
    @Override
19852
    public int hashCode() {
19853
      return 0;
19854
    }
19855
 
19856
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
19857
      if (!getClass().equals(other.getClass())) {
19858
        return getClass().getName().compareTo(other.getClass().getName());
19859
      }
19860
 
19861
      int lastComparison = 0;
19862
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
19863
 
19864
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19865
      if (lastComparison != 0) {
19866
        return lastComparison;
19867
      }
19868
      if (isSetSuccess()) {
19869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19870
        if (lastComparison != 0) {
19871
          return lastComparison;
19872
        }
19873
      }
19874
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19875
      if (lastComparison != 0) {
19876
        return lastComparison;
19877
      }
19878
      if (isSetSe()) {
19879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19880
        if (lastComparison != 0) {
19881
          return lastComparison;
19882
        }
19883
      }
19884
      return 0;
19885
    }
19886
 
19887
    public _Fields fieldForId(int fieldId) {
19888
      return _Fields.findByThriftId(fieldId);
19889
    }
19890
 
19891
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19892
      org.apache.thrift.protocol.TField field;
19893
      iprot.readStructBegin();
19894
      while (true)
19895
      {
19896
        field = iprot.readFieldBegin();
19897
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19898
          break;
19899
        }
19900
        switch (field.id) {
19901
          case 0: // SUCCESS
19902
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
19903
              {
19904
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
19905
                this.success = new HashMap<String,String>(2*_map32.size);
19906
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
19907
                {
19908
                  String _key34; // required
19909
                  String _val35; // required
19910
                  _key34 = iprot.readString();
19911
                  _val35 = iprot.readString();
19912
                  this.success.put(_key34, _val35);
19913
                }
19914
                iprot.readMapEnd();
19915
              }
19916
            } else { 
19917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19918
            }
19919
            break;
19920
          case 1: // SE
19921
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19922
              this.se = new LogisticsServiceException();
19923
              this.se.read(iprot);
19924
            } else { 
19925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19926
            }
19927
            break;
19928
          default:
19929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19930
        }
19931
        iprot.readFieldEnd();
19932
      }
19933
      iprot.readStructEnd();
19934
      validate();
19935
    }
19936
 
19937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19938
      oprot.writeStructBegin(STRUCT_DESC);
19939
 
19940
      if (this.isSetSuccess()) {
19941
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19942
        {
19943
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
19944
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
19945
          {
19946
            oprot.writeString(_iter36.getKey());
19947
            oprot.writeString(_iter36.getValue());
19948
          }
19949
          oprot.writeMapEnd();
19950
        }
19951
        oprot.writeFieldEnd();
19952
      } else if (this.isSetSe()) {
19953
        oprot.writeFieldBegin(SE_FIELD_DESC);
19954
        this.se.write(oprot);
19955
        oprot.writeFieldEnd();
19956
      }
19957
      oprot.writeFieldStop();
19958
      oprot.writeStructEnd();
19959
    }
19960
 
19961
    @Override
19962
    public String toString() {
19963
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
19964
      boolean first = true;
19965
 
19966
      sb.append("success:");
19967
      if (this.success == null) {
19968
        sb.append("null");
19969
      } else {
19970
        sb.append(this.success);
19971
      }
19972
      first = false;
19973
      if (!first) sb.append(", ");
19974
      sb.append("se:");
19975
      if (this.se == null) {
19976
        sb.append("null");
19977
      } else {
19978
        sb.append(this.se);
19979
      }
19980
      first = false;
19981
      sb.append(")");
19982
      return sb.toString();
19983
    }
19984
 
19985
    public void validate() throws org.apache.thrift.TException {
19986
      // check for required fields
19987
    }
19988
 
19989
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19990
      try {
19991
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19992
      } catch (org.apache.thrift.TException te) {
19993
        throw new java.io.IOException(te);
19994
      }
19995
    }
19996
 
19997
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19998
      try {
19999
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20000
      } catch (org.apache.thrift.TException te) {
20001
        throw new java.io.IOException(te);
20002
      }
20003
    }
20004
 
20005
  }
20006
 
412 ashish 20007
}