Subversion Repositories SmartDukaan

Rev

Rev 7808 | Rev 9840 | 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
     */
122
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
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
 
7567 rajveer 141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException;
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
 
412 ashish 147
  }
148
 
3430 rajveer 149
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
150
 
151
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
152
 
153
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
154
 
4630 mandeep.dh 155
    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 156
 
7256 rajveer 157
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
158
 
5766 rajveer 159
    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 160
 
5247 rajveer 161
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 162
 
6643 rajveer 163
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 164
 
6643 rajveer 165
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
166
 
3430 rajveer 167
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
172
 
4934 amit.gupta 173
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
174
 
5527 anupam.sin 175
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
176
 
5553 rajveer 177
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
180
 
5719 rajveer 181
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
182
 
6524 rajveer 183
    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 184
 
6524 rajveer 185
    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 186
 
7567 rajveer 187
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
188
 
7788 manish.sha 189
    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 190
 
7888 rajveer 191
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
192
 
3430 rajveer 193
  }
194
 
3374 rajveer 195
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 196
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
197
      public Factory() {}
198
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
199
        return new Client(prot);
200
      }
201
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
202
        return new Client(iprot, oprot);
203
      }
204
    }
205
 
206
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 207
    {
3430 rajveer 208
      super(prot, prot);
412 ashish 209
    }
210
 
3430 rajveer 211
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 212
      super(iprot, oprot);
412 ashish 213
    }
214
 
3430 rajveer 215
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 216
    {
217
      send_getProvider(providerId);
218
      return recv_getProvider();
219
    }
220
 
3430 rajveer 221
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 222
    {
223
      getProvider_args args = new getProvider_args();
3430 rajveer 224
      args.setProviderId(providerId);
225
      sendBase("getProvider", args);
668 chandransh 226
    }
227
 
3430 rajveer 228
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 229
    {
230
      getProvider_result result = new getProvider_result();
3430 rajveer 231
      receiveBase(result, "getProvider");
668 chandransh 232
      if (result.isSetSuccess()) {
233
        return result.success;
234
      }
235
      if (result.lse != null) {
236
        throw result.lse;
237
      }
3430 rajveer 238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 239
    }
240
 
3430 rajveer 241
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 242
    {
243
      send_getAllProviders();
244
      return recv_getAllProviders();
245
    }
246
 
3430 rajveer 247
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 248
    {
249
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 250
      sendBase("getAllProviders", args);
674 chandransh 251
    }
252
 
3430 rajveer 253
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 254
    {
255
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 256
      receiveBase(result, "getAllProviders");
674 chandransh 257
      if (result.isSetSuccess()) {
258
        return result.success;
259
      }
260
      if (result.lse != null) {
261
        throw result.lse;
262
      }
3430 rajveer 263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 264
    }
265
 
4630 mandeep.dh 266
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 267
    {
4630 mandeep.dh 268
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 269
      return recv_getLogisticsEstimation();
270
    }
271
 
4630 mandeep.dh 272
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 273
    {
274
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 275
      args.setItemId(itemId);
276
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 277
      args.setType(type);
3430 rajveer 278
      sendBase("getLogisticsEstimation", args);
471 rajveer 279
    }
280
 
3430 rajveer 281
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 282
    {
283
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 284
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 285
      if (result.isSetSuccess()) {
286
        return result.success;
287
      }
288
      if (result.se != null) {
289
        throw result.se;
290
      }
3430 rajveer 291
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 292
    }
293
 
7256 rajveer 294
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
295
    {
296
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
297
      return recv_getLogisticsEstimationForStore();
298
    }
299
 
300
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
301
    {
302
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
303
      args.setItemId(itemId);
304
      args.setDestination_pin(destination_pin);
305
      args.setType(type);
306
      sendBase("getLogisticsEstimationForStore", args);
307
    }
308
 
309
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
310
    {
311
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
312
      receiveBase(result, "getLogisticsEstimationForStore");
313
      if (result.isSetSuccess()) {
314
        return result.success;
315
      }
316
      if (result.se != null) {
317
        throw result.se;
318
      }
319
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
320
    }
321
 
5766 rajveer 322
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 323
    {
5766 rajveer 324
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 325
      return recv_getLogisticsInfo();
471 rajveer 326
    }
327
 
5766 rajveer 328
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 329
    {
648 chandransh 330
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 331
      args.setDestination_pincode(destination_pincode);
332
      args.setItem_id(item_id);
333
      args.setType(type);
5766 rajveer 334
      args.setPickUp(pickUp);
3430 rajveer 335
      sendBase("getLogisticsInfo", args);
471 rajveer 336
    }
337
 
3430 rajveer 338
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 339
    {
648 chandransh 340
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 341
      receiveBase(result, "getLogisticsInfo");
648 chandransh 342
      if (result.isSetSuccess()) {
343
        return result.success;
477 rajveer 344
      }
648 chandransh 345
      if (result.se != null) {
346
        throw result.se;
412 ashish 347
      }
3430 rajveer 348
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 349
    }
350
 
5247 rajveer 351
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 352
    {
5247 rajveer 353
      send_getEmptyAWB(providerId, type);
412 ashish 354
      return recv_getEmptyAWB();
355
    }
356
 
5247 rajveer 357
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 358
    {
359
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 360
      args.setProviderId(providerId);
5247 rajveer 361
      args.setType(type);
3430 rajveer 362
      sendBase("getEmptyAWB", args);
412 ashish 363
    }
364
 
3430 rajveer 365
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 366
    {
367
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 368
      receiveBase(result, "getEmptyAWB");
412 ashish 369
      if (result.isSetSuccess()) {
370
        return result.success;
371
      }
648 chandransh 372
      if (result.se != null) {
373
        throw result.se;
374
      }
3430 rajveer 375
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 376
    }
377
 
6643 rajveer 378
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 379
    {
6643 rajveer 380
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 381
      return recv_getShipmentInfo();
382
    }
383
 
6643 rajveer 384
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 385
    {
386
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 387
      args.setAwbNumber(awbNumber);
3430 rajveer 388
      args.setProviderId(providerId);
389
      sendBase("getShipmentInfo", args);
412 ashish 390
    }
391
 
3430 rajveer 392
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 393
    {
394
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 395
      receiveBase(result, "getShipmentInfo");
412 ashish 396
      if (result.isSetSuccess()) {
397
        return result.success;
398
      }
648 chandransh 399
      if (result.se != null) {
400
        throw result.se;
401
      }
3430 rajveer 402
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 403
    }
404
 
6643 rajveer 405
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
406
    {
407
      send_storeShipmentInfo(update);
408
      recv_storeShipmentInfo();
409
    }
410
 
411
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
412
    {
413
      storeShipmentInfo_args args = new storeShipmentInfo_args();
414
      args.setUpdate(update);
415
      sendBase("storeShipmentInfo", args);
416
    }
417
 
418
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
419
    {
420
      storeShipmentInfo_result result = new storeShipmentInfo_result();
421
      receiveBase(result, "storeShipmentInfo");
422
      if (result.se != null) {
423
        throw result.se;
424
      }
425
      return;
426
    }
427
 
3430 rajveer 428
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 429
    {
430
      send_getDestinationCode(providerId, pinCode);
431
      return recv_getDestinationCode();
432
    }
433
 
3430 rajveer 434
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 435
    {
436
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 437
      args.setProviderId(providerId);
438
      args.setPinCode(pinCode);
439
      sendBase("getDestinationCode", args);
730 chandransh 440
    }
441
 
3430 rajveer 442
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 443
    {
444
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 445
      receiveBase(result, "getDestinationCode");
730 chandransh 446
      if (result.isSetSuccess()) {
447
        return result.success;
448
      }
449
      if (result.se != null) {
450
        throw result.se;
451
      }
3430 rajveer 452
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 453
    }
454
 
3430 rajveer 455
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 456
    {
3103 chandransh 457
      send_getFreeAwbCount(providerId, type);
1139 chandransh 458
      return recv_getFreeAwbCount();
459
    }
460
 
3430 rajveer 461
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 462
    {
463
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 464
      args.setProviderId(providerId);
465
      args.setType(type);
466
      sendBase("getFreeAwbCount", args);
1139 chandransh 467
    }
468
 
3430 rajveer 469
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 470
    {
471
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 472
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 473
      if (result.isSetSuccess()) {
474
        return result.success;
475
      }
3430 rajveer 476
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 477
    }
478
 
3430 rajveer 479
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 480
    {
481
      send_getHolidays(fromDate, toDate);
482
      return recv_getHolidays();
483
    }
484
 
3430 rajveer 485
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 486
    {
487
      getHolidays_args args = new getHolidays_args();
3430 rajveer 488
      args.setFromDate(fromDate);
489
      args.setToDate(toDate);
490
      sendBase("getHolidays", args);
1730 ankur.sing 491
    }
492
 
3430 rajveer 493
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 494
    {
495
      getHolidays_result result = new getHolidays_result();
3430 rajveer 496
      receiveBase(result, "getHolidays");
1730 ankur.sing 497
      if (result.isSetSuccess()) {
498
        return result.success;
499
      }
3430 rajveer 500
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 501
    }
502
 
4934 amit.gupta 503
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
504
    {
505
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
506
      return recv_getEntityLogisticsEstimation();
507
    }
508
 
509
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
510
    {
511
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
512
      args.setCatalogItemId(catalogItemId);
513
      args.setDestination_pin(destination_pin);
514
      args.setType(type);
515
      sendBase("getEntityLogisticsEstimation", args);
516
    }
517
 
518
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
519
    {
520
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
521
      receiveBase(result, "getEntityLogisticsEstimation");
522
      if (result.isSetSuccess()) {
523
        return result.success;
524
      }
525
      if (result.se != null) {
526
        throw result.se;
527
      }
528
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
529
    }
530
 
5527 anupam.sin 531
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
532
    {
533
      send_getProviderForPickupType(pickUp);
534
      return recv_getProviderForPickupType();
535
    }
536
 
537
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
538
    {
539
      getProviderForPickupType_args args = new getProviderForPickupType_args();
540
      args.setPickUp(pickUp);
541
      sendBase("getProviderForPickupType", args);
542
    }
543
 
544
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
545
    {
546
      getProviderForPickupType_result result = new getProviderForPickupType_result();
547
      receiveBase(result, "getProviderForPickupType");
548
      if (result.isSetSuccess()) {
549
        return result.success;
550
      }
551
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
552
    }
553
 
5553 rajveer 554
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
555
    {
556
      send_getAllPickupStores();
557
      return recv_getAllPickupStores();
558
    }
559
 
560
    public void send_getAllPickupStores() throws org.apache.thrift.TException
561
    {
562
      getAllPickupStores_args args = new getAllPickupStores_args();
563
      sendBase("getAllPickupStores", args);
564
    }
565
 
566
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
567
    {
568
      getAllPickupStores_result result = new getAllPickupStores_result();
569
      receiveBase(result, "getAllPickupStores");
570
      if (result.isSetSuccess()) {
571
        return result.success;
572
      }
573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
574
    }
575
 
576
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
577
    {
578
      send_getPickupStore(storeId);
579
      return recv_getPickupStore();
580
    }
581
 
582
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
583
    {
584
      getPickupStore_args args = new getPickupStore_args();
585
      args.setStoreId(storeId);
586
      sendBase("getPickupStore", args);
587
    }
588
 
589
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
590
    {
591
      getPickupStore_result result = new getPickupStore_result();
592
      receiveBase(result, "getPickupStore");
593
      if (result.isSetSuccess()) {
594
        return result.success;
595
      }
596
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
597
    }
598
 
5719 rajveer 599
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
600
    {
601
      send_getPickupStoreByHotspotId(hotspotId);
602
      return recv_getPickupStoreByHotspotId();
603
    }
604
 
605
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
606
    {
607
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
608
      args.setHotspotId(hotspotId);
609
      sendBase("getPickupStoreByHotspotId", args);
610
    }
611
 
612
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
613
    {
614
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
615
      receiveBase(result, "getPickupStoreByHotspotId");
616
      if (result.isSetSuccess()) {
617
        return result.success;
618
      }
619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
620
    }
621
 
6524 rajveer 622
    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 623
    {
6524 rajveer 624
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 625
      recv_addPincode();
626
    }
627
 
6524 rajveer 628
    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 629
    {
630
      addPincode_args args = new addPincode_args();
631
      args.setProviderId(providerId);
632
      args.setPincode(pincode);
633
      args.setDestCode(destCode);
634
      args.setExp(exp);
635
      args.setCod(cod);
636
      args.setStationType(stationType);
6524 rajveer 637
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 638
      sendBase("addPincode", args);
639
    }
640
 
641
    public void recv_addPincode() throws org.apache.thrift.TException
642
    {
643
      addPincode_result result = new addPincode_result();
644
      receiveBase(result, "addPincode");
645
      return;
646
    }
647
 
6524 rajveer 648
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 649
    {
6524 rajveer 650
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 651
      recv_updatePincode();
652
    }
653
 
6524 rajveer 654
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 655
    {
656
      updatePincode_args args = new updatePincode_args();
657
      args.setProviderId(providerId);
658
      args.setPincode(pincode);
659
      args.setExp(exp);
660
      args.setCod(cod);
6524 rajveer 661
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 662
      sendBase("updatePincode", args);
663
    }
664
 
665
    public void recv_updatePincode() throws org.apache.thrift.TException
666
    {
667
      updatePincode_result result = new updatePincode_result();
668
      receiveBase(result, "updatePincode");
669
      return;
670
    }
671
 
7567 rajveer 672
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
673
    {
674
      send_addNewAwbs(providerId, cod, awbs);
675
      return recv_addNewAwbs();
676
    }
677
 
678
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
679
    {
680
      addNewAwbs_args args = new addNewAwbs_args();
681
      args.setProviderId(providerId);
682
      args.setCod(cod);
683
      args.setAwbs(awbs);
684
      sendBase("addNewAwbs", args);
685
    }
686
 
687
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
688
    {
689
      addNewAwbs_result result = new addNewAwbs_result();
690
      receiveBase(result, "addNewAwbs");
691
      if (result.isSetSuccess()) {
692
        return result.success;
693
      }
694
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
695
    }
696
 
7788 manish.sha 697
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 698
    {
7788 manish.sha 699
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
700
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 701
    }
702
 
7788 manish.sha 703
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 704
    {
7788 manish.sha 705
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
706
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
707
      args.setRunCompleteUpdate(runCompleteUpdate);
708
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 709
    }
710
 
7788 manish.sha 711
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 712
    {
7788 manish.sha 713
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
714
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 715
      return;
716
    }
717
 
7888 rajveer 718
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
719
    {
720
      send_adjustDeliveryDays(startDate, days);
721
      return recv_adjustDeliveryDays();
722
    }
723
 
724
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
725
    {
726
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
727
      args.setStartDate(startDate);
728
      args.setDays(days);
729
      sendBase("adjustDeliveryDays", args);
730
    }
731
 
732
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
733
    {
734
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
735
      receiveBase(result, "adjustDeliveryDays");
736
      if (result.isSetSuccess()) {
737
        return result.success;
738
      }
739
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
740
    }
741
 
412 ashish 742
  }
3430 rajveer 743
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
744
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
745
      private org.apache.thrift.async.TAsyncClientManager clientManager;
746
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
747
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
748
        this.clientManager = clientManager;
749
        this.protocolFactory = protocolFactory;
750
      }
751
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
752
        return new AsyncClient(protocolFactory, clientManager, transport);
753
      }
412 ashish 754
    }
755
 
3430 rajveer 756
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
757
      super(protocolFactory, clientManager, transport);
758
    }
412 ashish 759
 
3430 rajveer 760
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
761
      checkReady();
762
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
763
      this.___currentMethod = method_call;
764
      ___manager.call(method_call);
765
    }
766
 
767
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
768
      private long providerId;
769
      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 {
770
        super(client, protocolFactory, transport, resultHandler, false);
771
        this.providerId = providerId;
412 ashish 772
      }
3430 rajveer 773
 
774
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
775
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
776
        getProvider_args args = new getProvider_args();
777
        args.setProviderId(providerId);
778
        args.write(prot);
779
        prot.writeMessageEnd();
780
      }
781
 
782
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
783
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
784
          throw new IllegalStateException("Method call not finished!");
785
        }
786
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
787
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
788
        return (new Client(prot)).recv_getProvider();
789
      }
412 ashish 790
    }
791
 
3430 rajveer 792
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
793
      checkReady();
794
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
795
      this.___currentMethod = method_call;
796
      ___manager.call(method_call);
797
    }
798
 
799
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
800
      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 {
801
        super(client, protocolFactory, transport, resultHandler, false);
802
      }
803
 
804
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
805
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
806
        getAllProviders_args args = new getAllProviders_args();
807
        args.write(prot);
808
        prot.writeMessageEnd();
809
      }
810
 
811
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
812
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
813
          throw new IllegalStateException("Method call not finished!");
814
        }
815
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
816
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
817
        return (new Client(prot)).recv_getAllProviders();
818
      }
819
    }
820
 
4630 mandeep.dh 821
    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 822
      checkReady();
4630 mandeep.dh 823
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 824
      this.___currentMethod = method_call;
825
      ___manager.call(method_call);
826
    }
827
 
828
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
829
      private long itemId;
830
      private String destination_pin;
4630 mandeep.dh 831
      private DeliveryType type;
832
      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 833
        super(client, protocolFactory, transport, resultHandler, false);
834
        this.itemId = itemId;
835
        this.destination_pin = destination_pin;
4630 mandeep.dh 836
        this.type = type;
3430 rajveer 837
      }
838
 
839
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
840
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
841
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
842
        args.setItemId(itemId);
843
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 844
        args.setType(type);
3430 rajveer 845
        args.write(prot);
846
        prot.writeMessageEnd();
847
      }
848
 
849
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
850
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
851
          throw new IllegalStateException("Method call not finished!");
852
        }
853
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
854
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
855
        return (new Client(prot)).recv_getLogisticsEstimation();
856
      }
857
    }
858
 
7256 rajveer 859
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
860
      checkReady();
861
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
862
      this.___currentMethod = method_call;
863
      ___manager.call(method_call);
864
    }
865
 
866
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
867
      private long itemId;
868
      private String destination_pin;
869
      private DeliveryType type;
870
      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 {
871
        super(client, protocolFactory, transport, resultHandler, false);
872
        this.itemId = itemId;
873
        this.destination_pin = destination_pin;
874
        this.type = type;
875
      }
876
 
877
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
878
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
879
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
880
        args.setItemId(itemId);
881
        args.setDestination_pin(destination_pin);
882
        args.setType(type);
883
        args.write(prot);
884
        prot.writeMessageEnd();
885
      }
886
 
887
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
888
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
889
          throw new IllegalStateException("Method call not finished!");
890
        }
891
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
892
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
893
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
894
      }
895
    }
896
 
5766 rajveer 897
    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 898
      checkReady();
5766 rajveer 899
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 900
      this.___currentMethod = method_call;
901
      ___manager.call(method_call);
902
    }
903
 
904
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
905
      private String destination_pincode;
906
      private long item_id;
907
      private DeliveryType type;
5766 rajveer 908
      private PickUpType pickUp;
909
      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 910
        super(client, protocolFactory, transport, resultHandler, false);
911
        this.destination_pincode = destination_pincode;
912
        this.item_id = item_id;
913
        this.type = type;
5766 rajveer 914
        this.pickUp = pickUp;
3430 rajveer 915
      }
916
 
917
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
918
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
919
        getLogisticsInfo_args args = new getLogisticsInfo_args();
920
        args.setDestination_pincode(destination_pincode);
921
        args.setItem_id(item_id);
922
        args.setType(type);
5766 rajveer 923
        args.setPickUp(pickUp);
3430 rajveer 924
        args.write(prot);
925
        prot.writeMessageEnd();
926
      }
927
 
928
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
929
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
930
          throw new IllegalStateException("Method call not finished!");
931
        }
932
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
933
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
934
        return (new Client(prot)).recv_getLogisticsInfo();
935
      }
936
    }
937
 
5247 rajveer 938
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 939
      checkReady();
5247 rajveer 940
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 941
      this.___currentMethod = method_call;
942
      ___manager.call(method_call);
943
    }
944
 
945
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
946
      private long providerId;
5247 rajveer 947
      private DeliveryType type;
948
      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 949
        super(client, protocolFactory, transport, resultHandler, false);
950
        this.providerId = providerId;
5247 rajveer 951
        this.type = type;
3430 rajveer 952
      }
953
 
954
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
955
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
956
        getEmptyAWB_args args = new getEmptyAWB_args();
957
        args.setProviderId(providerId);
5247 rajveer 958
        args.setType(type);
3430 rajveer 959
        args.write(prot);
960
        prot.writeMessageEnd();
961
      }
962
 
963
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
964
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
965
          throw new IllegalStateException("Method call not finished!");
966
        }
967
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
969
        return (new Client(prot)).recv_getEmptyAWB();
970
      }
971
    }
972
 
6643 rajveer 973
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 974
      checkReady();
6643 rajveer 975
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 976
      this.___currentMethod = method_call;
977
      ___manager.call(method_call);
978
    }
979
 
980
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 981
      private String awbNumber;
3430 rajveer 982
      private long providerId;
6643 rajveer 983
      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 984
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 985
        this.awbNumber = awbNumber;
3430 rajveer 986
        this.providerId = providerId;
987
      }
988
 
989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
991
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 992
        args.setAwbNumber(awbNumber);
3430 rajveer 993
        args.setProviderId(providerId);
994
        args.write(prot);
995
        prot.writeMessageEnd();
996
      }
997
 
998
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
999
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1000
          throw new IllegalStateException("Method call not finished!");
1001
        }
1002
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1003
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1004
        return (new Client(prot)).recv_getShipmentInfo();
1005
      }
1006
    }
1007
 
6643 rajveer 1008
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1009
      checkReady();
1010
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1011
      this.___currentMethod = method_call;
1012
      ___manager.call(method_call);
1013
    }
1014
 
1015
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1016
      private AwbUpdate update;
1017
      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 {
1018
        super(client, protocolFactory, transport, resultHandler, false);
1019
        this.update = update;
1020
      }
1021
 
1022
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1023
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1024
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1025
        args.setUpdate(update);
1026
        args.write(prot);
1027
        prot.writeMessageEnd();
1028
      }
1029
 
1030
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1031
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1032
          throw new IllegalStateException("Method call not finished!");
1033
        }
1034
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1035
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1036
        (new Client(prot)).recv_storeShipmentInfo();
1037
      }
1038
    }
1039
 
3430 rajveer 1040
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1041
      checkReady();
1042
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1043
      this.___currentMethod = method_call;
1044
      ___manager.call(method_call);
1045
    }
1046
 
1047
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1048
      private long providerId;
1049
      private String pinCode;
1050
      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 {
1051
        super(client, protocolFactory, transport, resultHandler, false);
1052
        this.providerId = providerId;
1053
        this.pinCode = pinCode;
1054
      }
1055
 
1056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1058
        getDestinationCode_args args = new getDestinationCode_args();
1059
        args.setProviderId(providerId);
1060
        args.setPinCode(pinCode);
1061
        args.write(prot);
1062
        prot.writeMessageEnd();
1063
      }
1064
 
1065
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1066
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1067
          throw new IllegalStateException("Method call not finished!");
1068
        }
1069
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1071
        return (new Client(prot)).recv_getDestinationCode();
1072
      }
1073
    }
1074
 
1075
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1076
      checkReady();
1077
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1078
      this.___currentMethod = method_call;
1079
      ___manager.call(method_call);
1080
    }
1081
 
1082
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1083
      private long providerId;
1084
      private String type;
1085
      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 {
1086
        super(client, protocolFactory, transport, resultHandler, false);
1087
        this.providerId = providerId;
1088
        this.type = type;
1089
      }
1090
 
1091
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1092
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1093
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1094
        args.setProviderId(providerId);
1095
        args.setType(type);
1096
        args.write(prot);
1097
        prot.writeMessageEnd();
1098
      }
1099
 
1100
      public long getResult() throws org.apache.thrift.TException {
1101
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1102
          throw new IllegalStateException("Method call not finished!");
1103
        }
1104
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1105
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1106
        return (new Client(prot)).recv_getFreeAwbCount();
1107
      }
1108
    }
1109
 
1110
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1111
      checkReady();
1112
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1113
      this.___currentMethod = method_call;
1114
      ___manager.call(method_call);
1115
    }
1116
 
1117
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1118
      private long fromDate;
1119
      private long toDate;
1120
      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 {
1121
        super(client, protocolFactory, transport, resultHandler, false);
1122
        this.fromDate = fromDate;
1123
        this.toDate = toDate;
1124
      }
1125
 
1126
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1127
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1128
        getHolidays_args args = new getHolidays_args();
1129
        args.setFromDate(fromDate);
1130
        args.setToDate(toDate);
1131
        args.write(prot);
1132
        prot.writeMessageEnd();
1133
      }
1134
 
1135
      public List<Long> getResult() throws org.apache.thrift.TException {
1136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1137
          throw new IllegalStateException("Method call not finished!");
1138
        }
1139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1141
        return (new Client(prot)).recv_getHolidays();
1142
      }
1143
    }
1144
 
4934 amit.gupta 1145
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1146
      checkReady();
1147
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1148
      this.___currentMethod = method_call;
1149
      ___manager.call(method_call);
1150
    }
1151
 
1152
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1153
      private long catalogItemId;
1154
      private String destination_pin;
1155
      private DeliveryType type;
1156
      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 {
1157
        super(client, protocolFactory, transport, resultHandler, false);
1158
        this.catalogItemId = catalogItemId;
1159
        this.destination_pin = destination_pin;
1160
        this.type = type;
1161
      }
1162
 
1163
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1164
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1165
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1166
        args.setCatalogItemId(catalogItemId);
1167
        args.setDestination_pin(destination_pin);
1168
        args.setType(type);
1169
        args.write(prot);
1170
        prot.writeMessageEnd();
1171
      }
1172
 
1173
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1175
          throw new IllegalStateException("Method call not finished!");
1176
        }
1177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1179
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1180
      }
1181
    }
1182
 
5527 anupam.sin 1183
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1184
      checkReady();
1185
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1186
      this.___currentMethod = method_call;
1187
      ___manager.call(method_call);
1188
    }
1189
 
1190
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1191
      private long pickUp;
1192
      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 {
1193
        super(client, protocolFactory, transport, resultHandler, false);
1194
        this.pickUp = pickUp;
1195
      }
1196
 
1197
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1198
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1199
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1200
        args.setPickUp(pickUp);
1201
        args.write(prot);
1202
        prot.writeMessageEnd();
1203
      }
1204
 
1205
      public long getResult() throws org.apache.thrift.TException {
1206
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1207
          throw new IllegalStateException("Method call not finished!");
1208
        }
1209
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1210
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1211
        return (new Client(prot)).recv_getProviderForPickupType();
1212
      }
1213
    }
1214
 
5553 rajveer 1215
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1216
      checkReady();
1217
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1218
      this.___currentMethod = method_call;
1219
      ___manager.call(method_call);
1220
    }
1221
 
1222
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1223
      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 {
1224
        super(client, protocolFactory, transport, resultHandler, false);
1225
      }
1226
 
1227
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1228
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1229
        getAllPickupStores_args args = new getAllPickupStores_args();
1230
        args.write(prot);
1231
        prot.writeMessageEnd();
1232
      }
1233
 
1234
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1235
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1236
          throw new IllegalStateException("Method call not finished!");
1237
        }
1238
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1239
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1240
        return (new Client(prot)).recv_getAllPickupStores();
1241
      }
1242
    }
1243
 
1244
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1245
      checkReady();
1246
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1247
      this.___currentMethod = method_call;
1248
      ___manager.call(method_call);
1249
    }
1250
 
1251
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1252
      private long storeId;
1253
      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 {
1254
        super(client, protocolFactory, transport, resultHandler, false);
1255
        this.storeId = storeId;
1256
      }
1257
 
1258
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1259
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1260
        getPickupStore_args args = new getPickupStore_args();
1261
        args.setStoreId(storeId);
1262
        args.write(prot);
1263
        prot.writeMessageEnd();
1264
      }
1265
 
1266
      public PickupStore getResult() throws org.apache.thrift.TException {
1267
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1268
          throw new IllegalStateException("Method call not finished!");
1269
        }
1270
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1271
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1272
        return (new Client(prot)).recv_getPickupStore();
1273
      }
1274
    }
1275
 
5719 rajveer 1276
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1277
      checkReady();
1278
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1279
      this.___currentMethod = method_call;
1280
      ___manager.call(method_call);
1281
    }
1282
 
1283
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1284
      private String hotspotId;
1285
      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 {
1286
        super(client, protocolFactory, transport, resultHandler, false);
1287
        this.hotspotId = hotspotId;
1288
      }
1289
 
1290
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1291
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1292
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1293
        args.setHotspotId(hotspotId);
1294
        args.write(prot);
1295
        prot.writeMessageEnd();
1296
      }
1297
 
1298
      public PickupStore getResult() throws org.apache.thrift.TException {
1299
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1300
          throw new IllegalStateException("Method call not finished!");
1301
        }
1302
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1303
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1304
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1305
      }
1306
    }
1307
 
6524 rajveer 1308
    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 1309
      checkReady();
6524 rajveer 1310
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1311
      this.___currentMethod = method_call;
1312
      ___manager.call(method_call);
1313
    }
1314
 
1315
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1316
      private long providerId;
1317
      private String pincode;
1318
      private String destCode;
1319
      private boolean exp;
1320
      private boolean cod;
1321
      private int stationType;
6524 rajveer 1322
      private boolean otgAvailable;
1323
      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 1324
        super(client, protocolFactory, transport, resultHandler, false);
1325
        this.providerId = providerId;
1326
        this.pincode = pincode;
1327
        this.destCode = destCode;
1328
        this.exp = exp;
1329
        this.cod = cod;
1330
        this.stationType = stationType;
6524 rajveer 1331
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1332
      }
1333
 
1334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1336
        addPincode_args args = new addPincode_args();
1337
        args.setProviderId(providerId);
1338
        args.setPincode(pincode);
1339
        args.setDestCode(destCode);
1340
        args.setExp(exp);
1341
        args.setCod(cod);
1342
        args.setStationType(stationType);
6524 rajveer 1343
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1344
        args.write(prot);
1345
        prot.writeMessageEnd();
1346
      }
1347
 
1348
      public void getResult() throws org.apache.thrift.TException {
1349
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1350
          throw new IllegalStateException("Method call not finished!");
1351
        }
1352
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1353
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1354
        (new Client(prot)).recv_addPincode();
1355
      }
1356
    }
1357
 
6524 rajveer 1358
    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 1359
      checkReady();
6524 rajveer 1360
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1361
      this.___currentMethod = method_call;
1362
      ___manager.call(method_call);
1363
    }
1364
 
1365
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1366
      private long providerId;
1367
      private String pincode;
1368
      private boolean exp;
1369
      private boolean cod;
6524 rajveer 1370
      private boolean otgAvailable;
1371
      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 1372
        super(client, protocolFactory, transport, resultHandler, false);
1373
        this.providerId = providerId;
1374
        this.pincode = pincode;
1375
        this.exp = exp;
1376
        this.cod = cod;
6524 rajveer 1377
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1378
      }
1379
 
1380
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1381
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1382
        updatePincode_args args = new updatePincode_args();
1383
        args.setProviderId(providerId);
1384
        args.setPincode(pincode);
1385
        args.setExp(exp);
1386
        args.setCod(cod);
6524 rajveer 1387
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1388
        args.write(prot);
1389
        prot.writeMessageEnd();
1390
      }
1391
 
1392
      public void getResult() throws org.apache.thrift.TException {
1393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1394
          throw new IllegalStateException("Method call not finished!");
1395
        }
1396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1398
        (new Client(prot)).recv_updatePincode();
1399
      }
1400
    }
1401
 
7567 rajveer 1402
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1403
      checkReady();
1404
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
1405
      this.___currentMethod = method_call;
1406
      ___manager.call(method_call);
1407
    }
1408
 
1409
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1410
      private long providerId;
1411
      private boolean cod;
1412
      private List<String> awbs;
1413
      public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, 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 {
1414
        super(client, protocolFactory, transport, resultHandler, false);
1415
        this.providerId = providerId;
1416
        this.cod = cod;
1417
        this.awbs = awbs;
1418
      }
1419
 
1420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1422
        addNewAwbs_args args = new addNewAwbs_args();
1423
        args.setProviderId(providerId);
1424
        args.setCod(cod);
1425
        args.setAwbs(awbs);
1426
        args.write(prot);
1427
        prot.writeMessageEnd();
1428
      }
1429
 
1430
      public boolean getResult() throws org.apache.thrift.TException {
1431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1432
          throw new IllegalStateException("Method call not finished!");
1433
        }
1434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1436
        return (new Client(prot)).recv_addNewAwbs();
1437
      }
1438
    }
1439
 
7788 manish.sha 1440
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1441
      checkReady();
7788 manish.sha 1442
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1443
      this.___currentMethod = method_call;
1444
      ___manager.call(method_call);
1445
    }
1446
 
7788 manish.sha 1447
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1448
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1449
      private boolean runCompleteUpdate;
1450
      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 1451
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1452
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1453
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1454
      }
1455
 
1456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1458
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1459
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1460
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1461
        args.write(prot);
1462
        prot.writeMessageEnd();
1463
      }
1464
 
1465
      public void getResult() throws org.apache.thrift.TException {
1466
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1467
          throw new IllegalStateException("Method call not finished!");
1468
        }
1469
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1470
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1471
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1472
      }
1473
    }
1474
 
7888 rajveer 1475
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1476
      checkReady();
1477
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1478
      this.___currentMethod = method_call;
1479
      ___manager.call(method_call);
1480
    }
1481
 
1482
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1483
      private long startDate;
1484
      private long days;
1485
      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 {
1486
        super(client, protocolFactory, transport, resultHandler, false);
1487
        this.startDate = startDate;
1488
        this.days = days;
1489
      }
1490
 
1491
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1492
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1493
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1494
        args.setStartDate(startDate);
1495
        args.setDays(days);
1496
        args.write(prot);
1497
        prot.writeMessageEnd();
1498
      }
1499
 
1500
      public long getResult() throws org.apache.thrift.TException {
1501
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1502
          throw new IllegalStateException("Method call not finished!");
1503
        }
1504
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1505
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1506
        return (new Client(prot)).recv_adjustDeliveryDays();
1507
      }
1508
    }
1509
 
3430 rajveer 1510
  }
1511
 
1512
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1513
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1514
    public Processor(I iface) {
1515
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1516
    }
1517
 
1518
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1519
      super(iface, getProcessMap(processMap));
1520
    }
1521
 
1522
    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) {
1523
      processMap.put("getProvider", new getProvider());
1524
      processMap.put("getAllProviders", new getAllProviders());
1525
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1526
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1527
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1528
      processMap.put("getEmptyAWB", new getEmptyAWB());
1529
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1530
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1531
      processMap.put("getDestinationCode", new getDestinationCode());
1532
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1533
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1534
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1535
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1536
      processMap.put("getAllPickupStores", new getAllPickupStores());
1537
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1538
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1539
      processMap.put("addPincode", new addPincode());
1540
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1541
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1542
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1543
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
3430 rajveer 1544
      return processMap;
1545
    }
1546
 
1547
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1548
      public getProvider() {
1549
        super("getProvider");
1550
      }
1551
 
1552
      protected getProvider_args getEmptyArgsInstance() {
1553
        return new getProvider_args();
1554
      }
1555
 
1556
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1557
        getProvider_result result = new getProvider_result();
1558
        try {
3430 rajveer 1559
          result.success = iface.getProvider(args.providerId);
668 chandransh 1560
        } catch (LogisticsServiceException lse) {
1561
          result.lse = lse;
1562
        }
3430 rajveer 1563
        return result;
668 chandransh 1564
      }
1565
    }
1566
 
3430 rajveer 1567
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1568
      public getAllProviders() {
1569
        super("getAllProviders");
1570
      }
1571
 
1572
      protected getAllProviders_args getEmptyArgsInstance() {
1573
        return new getAllProviders_args();
1574
      }
1575
 
1576
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1577
        getAllProviders_result result = new getAllProviders_result();
1578
        try {
3430 rajveer 1579
          result.success = iface.getAllProviders();
674 chandransh 1580
        } catch (LogisticsServiceException lse) {
1581
          result.lse = lse;
1582
        }
3430 rajveer 1583
        return result;
674 chandransh 1584
      }
1585
    }
1586
 
3430 rajveer 1587
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1588
      public getLogisticsEstimation() {
1589
        super("getLogisticsEstimation");
1590
      }
1591
 
1592
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1593
        return new getLogisticsEstimation_args();
1594
      }
1595
 
1596
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1597
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1598
        try {
4630 mandeep.dh 1599
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1600
        } catch (LogisticsServiceException se) {
1601
          result.se = se;
1602
        }
3430 rajveer 1603
        return result;
483 rajveer 1604
      }
1605
    }
1606
 
7256 rajveer 1607
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1608
      public getLogisticsEstimationForStore() {
1609
        super("getLogisticsEstimationForStore");
1610
      }
1611
 
1612
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1613
        return new getLogisticsEstimationForStore_args();
1614
      }
1615
 
1616
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1617
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1618
        try {
1619
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1620
        } catch (LogisticsServiceException se) {
1621
          result.se = se;
1622
        }
1623
        return result;
1624
      }
1625
    }
1626
 
3430 rajveer 1627
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1628
      public getLogisticsInfo() {
1629
        super("getLogisticsInfo");
1630
      }
1631
 
1632
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1633
        return new getLogisticsInfo_args();
1634
      }
1635
 
1636
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1637
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1638
        try {
5766 rajveer 1639
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1640
        } catch (LogisticsServiceException se) {
1641
          result.se = se;
1642
        }
3430 rajveer 1643
        return result;
471 rajveer 1644
      }
1645
    }
1646
 
3430 rajveer 1647
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1648
      public getEmptyAWB() {
1649
        super("getEmptyAWB");
1650
      }
1651
 
1652
      protected getEmptyAWB_args getEmptyArgsInstance() {
1653
        return new getEmptyAWB_args();
1654
      }
1655
 
1656
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1657
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1658
        try {
5247 rajveer 1659
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1660
        } catch (LogisticsServiceException se) {
1661
          result.se = se;
1662
        }
3430 rajveer 1663
        return result;
412 ashish 1664
      }
1665
    }
1666
 
3430 rajveer 1667
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1668
      public getShipmentInfo() {
1669
        super("getShipmentInfo");
1670
      }
1671
 
1672
      protected getShipmentInfo_args getEmptyArgsInstance() {
1673
        return new getShipmentInfo_args();
1674
      }
1675
 
1676
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1677
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1678
        try {
6643 rajveer 1679
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1680
        } catch (LogisticsServiceException se) {
1681
          result.se = se;
1682
        }
3430 rajveer 1683
        return result;
412 ashish 1684
      }
1685
    }
1686
 
6643 rajveer 1687
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1688
      public storeShipmentInfo() {
1689
        super("storeShipmentInfo");
1690
      }
1691
 
1692
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1693
        return new storeShipmentInfo_args();
1694
      }
1695
 
1696
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1697
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1698
        try {
1699
          iface.storeShipmentInfo(args.update);
1700
        } catch (LogisticsServiceException se) {
1701
          result.se = se;
1702
        }
1703
        return result;
1704
      }
1705
    }
1706
 
3430 rajveer 1707
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1708
      public getDestinationCode() {
1709
        super("getDestinationCode");
1710
      }
1711
 
1712
      protected getDestinationCode_args getEmptyArgsInstance() {
1713
        return new getDestinationCode_args();
1714
      }
1715
 
1716
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1717
        getDestinationCode_result result = new getDestinationCode_result();
1718
        try {
3430 rajveer 1719
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1720
        } catch (LogisticsServiceException se) {
1721
          result.se = se;
1722
        }
3430 rajveer 1723
        return result;
730 chandransh 1724
      }
1725
    }
1726
 
3430 rajveer 1727
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1728
      public getFreeAwbCount() {
1729
        super("getFreeAwbCount");
1730
      }
1731
 
1732
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1733
        return new getFreeAwbCount_args();
1734
      }
1735
 
1736
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1737
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1738
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1739
        result.setSuccessIsSet(true);
3430 rajveer 1740
        return result;
1139 chandransh 1741
      }
1742
    }
1743
 
3430 rajveer 1744
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1745
      public getHolidays() {
1746
        super("getHolidays");
1747
      }
1748
 
1749
      protected getHolidays_args getEmptyArgsInstance() {
1750
        return new getHolidays_args();
1751
      }
1752
 
1753
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1754
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1755
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1756
        return result;
1730 ankur.sing 1757
      }
1758
    }
1759
 
4934 amit.gupta 1760
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1761
      public getEntityLogisticsEstimation() {
1762
        super("getEntityLogisticsEstimation");
1763
      }
1764
 
1765
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1766
        return new getEntityLogisticsEstimation_args();
1767
      }
1768
 
1769
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1770
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1771
        try {
1772
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1773
        } catch (LogisticsServiceException se) {
1774
          result.se = se;
1775
        }
1776
        return result;
1777
      }
1778
    }
1779
 
5527 anupam.sin 1780
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1781
      public getProviderForPickupType() {
1782
        super("getProviderForPickupType");
1783
      }
1784
 
1785
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1786
        return new getProviderForPickupType_args();
1787
      }
1788
 
1789
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1790
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1791
        result.success = iface.getProviderForPickupType(args.pickUp);
1792
        result.setSuccessIsSet(true);
1793
        return result;
1794
      }
1795
    }
1796
 
5553 rajveer 1797
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1798
      public getAllPickupStores() {
1799
        super("getAllPickupStores");
1800
      }
1801
 
1802
      protected getAllPickupStores_args getEmptyArgsInstance() {
1803
        return new getAllPickupStores_args();
1804
      }
1805
 
1806
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1807
        getAllPickupStores_result result = new getAllPickupStores_result();
1808
        result.success = iface.getAllPickupStores();
1809
        return result;
1810
      }
1811
    }
1812
 
1813
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1814
      public getPickupStore() {
1815
        super("getPickupStore");
1816
      }
1817
 
1818
      protected getPickupStore_args getEmptyArgsInstance() {
1819
        return new getPickupStore_args();
1820
      }
1821
 
1822
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1823
        getPickupStore_result result = new getPickupStore_result();
1824
        result.success = iface.getPickupStore(args.storeId);
1825
        return result;
1826
      }
1827
    }
1828
 
5719 rajveer 1829
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1830
      public getPickupStoreByHotspotId() {
1831
        super("getPickupStoreByHotspotId");
1832
      }
1833
 
1834
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1835
        return new getPickupStoreByHotspotId_args();
1836
      }
1837
 
1838
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1839
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1840
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1841
        return result;
1842
      }
1843
    }
1844
 
6322 amar.kumar 1845
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1846
      public addPincode() {
1847
        super("addPincode");
1848
      }
1849
 
1850
      protected addPincode_args getEmptyArgsInstance() {
1851
        return new addPincode_args();
1852
      }
1853
 
1854
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1855
        addPincode_result result = new addPincode_result();
6524 rajveer 1856
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1857
        return result;
1858
      }
1859
    }
1860
 
1861
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1862
      public updatePincode() {
1863
        super("updatePincode");
1864
      }
1865
 
1866
      protected updatePincode_args getEmptyArgsInstance() {
1867
        return new updatePincode_args();
1868
      }
1869
 
1870
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1871
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1872
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1873
        return result;
1874
      }
1875
    }
1876
 
7567 rajveer 1877
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
1878
      public addNewAwbs() {
1879
        super("addNewAwbs");
1880
      }
1881
 
1882
      protected addNewAwbs_args getEmptyArgsInstance() {
1883
        return new addNewAwbs_args();
1884
      }
1885
 
1886
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
1887
        addNewAwbs_result result = new addNewAwbs_result();
1888
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
1889
        result.setSuccessIsSet(true);
1890
        return result;
1891
      }
1892
    }
1893
 
7788 manish.sha 1894
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
1895
      public runLogisticsLocationInfoUpdate() {
1896
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 1897
      }
1898
 
7788 manish.sha 1899
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
1900
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 1901
      }
1902
 
7788 manish.sha 1903
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
1904
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
1905
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 1906
        return result;
1907
      }
1908
    }
1909
 
7888 rajveer 1910
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
1911
      public adjustDeliveryDays() {
1912
        super("adjustDeliveryDays");
1913
      }
1914
 
1915
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
1916
        return new adjustDeliveryDays_args();
1917
      }
1918
 
1919
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
1920
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
1921
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
1922
        result.setSuccessIsSet(true);
1923
        return result;
1924
      }
1925
    }
1926
 
412 ashish 1927
  }
1928
 
3430 rajveer 1929
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1931
 
3430 rajveer 1932
    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 1933
 
3430 rajveer 1934
    private long providerId; // required
668 chandransh 1935
 
1936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1938
      PROVIDER_ID((short)1, "providerId");
1939
 
1940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1941
 
1942
      static {
1943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1944
          byName.put(field.getFieldName(), field);
1945
        }
1946
      }
1947
 
1948
      /**
1949
       * Find the _Fields constant that matches fieldId, or null if its not found.
1950
       */
1951
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1952
        switch(fieldId) {
1953
          case 1: // PROVIDER_ID
1954
            return PROVIDER_ID;
1955
          default:
1956
            return null;
1957
        }
668 chandransh 1958
      }
1959
 
1960
      /**
1961
       * Find the _Fields constant that matches fieldId, throwing an exception
1962
       * if it is not found.
1963
       */
1964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1965
        _Fields fields = findByThriftId(fieldId);
1966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1967
        return fields;
1968
      }
1969
 
1970
      /**
1971
       * Find the _Fields constant that matches name, or null if its not found.
1972
       */
1973
      public static _Fields findByName(String name) {
1974
        return byName.get(name);
1975
      }
1976
 
1977
      private final short _thriftId;
1978
      private final String _fieldName;
1979
 
1980
      _Fields(short thriftId, String fieldName) {
1981
        _thriftId = thriftId;
1982
        _fieldName = fieldName;
1983
      }
1984
 
1985
      public short getThriftFieldId() {
1986
        return _thriftId;
1987
      }
1988
 
1989
      public String getFieldName() {
1990
        return _fieldName;
1991
      }
1992
    }
1993
 
1994
    // isset id assignments
1995
    private static final int __PROVIDERID_ISSET_ID = 0;
1996
    private BitSet __isset_bit_vector = new BitSet(1);
1997
 
3430 rajveer 1998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1999
    static {
3430 rajveer 2000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2001
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2005
    }
2006
 
2007
    public getProvider_args() {
2008
    }
2009
 
2010
    public getProvider_args(
2011
      long providerId)
2012
    {
2013
      this();
2014
      this.providerId = providerId;
2015
      setProviderIdIsSet(true);
2016
    }
2017
 
2018
    /**
2019
     * Performs a deep copy on <i>other</i>.
2020
     */
2021
    public getProvider_args(getProvider_args other) {
2022
      __isset_bit_vector.clear();
2023
      __isset_bit_vector.or(other.__isset_bit_vector);
2024
      this.providerId = other.providerId;
2025
    }
2026
 
2027
    public getProvider_args deepCopy() {
2028
      return new getProvider_args(this);
2029
    }
2030
 
3430 rajveer 2031
    @Override
2032
    public void clear() {
2033
      setProviderIdIsSet(false);
2034
      this.providerId = 0;
668 chandransh 2035
    }
2036
 
2037
    public long getProviderId() {
2038
      return this.providerId;
2039
    }
2040
 
3430 rajveer 2041
    public void setProviderId(long providerId) {
668 chandransh 2042
      this.providerId = providerId;
2043
      setProviderIdIsSet(true);
2044
    }
2045
 
2046
    public void unsetProviderId() {
2047
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2048
    }
2049
 
3430 rajveer 2050
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2051
    public boolean isSetProviderId() {
2052
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2053
    }
2054
 
2055
    public void setProviderIdIsSet(boolean value) {
2056
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2057
    }
2058
 
2059
    public void setFieldValue(_Fields field, Object value) {
2060
      switch (field) {
2061
      case PROVIDER_ID:
2062
        if (value == null) {
2063
          unsetProviderId();
2064
        } else {
2065
          setProviderId((Long)value);
2066
        }
2067
        break;
2068
 
2069
      }
2070
    }
2071
 
2072
    public Object getFieldValue(_Fields field) {
2073
      switch (field) {
2074
      case PROVIDER_ID:
3430 rajveer 2075
        return Long.valueOf(getProviderId());
668 chandransh 2076
 
2077
      }
2078
      throw new IllegalStateException();
2079
    }
2080
 
3430 rajveer 2081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2082
    public boolean isSet(_Fields field) {
2083
      if (field == null) {
2084
        throw new IllegalArgumentException();
2085
      }
668 chandransh 2086
 
2087
      switch (field) {
2088
      case PROVIDER_ID:
2089
        return isSetProviderId();
2090
      }
2091
      throw new IllegalStateException();
2092
    }
2093
 
2094
    @Override
2095
    public boolean equals(Object that) {
2096
      if (that == null)
2097
        return false;
2098
      if (that instanceof getProvider_args)
2099
        return this.equals((getProvider_args)that);
2100
      return false;
2101
    }
2102
 
2103
    public boolean equals(getProvider_args that) {
2104
      if (that == null)
2105
        return false;
2106
 
2107
      boolean this_present_providerId = true;
2108
      boolean that_present_providerId = true;
2109
      if (this_present_providerId || that_present_providerId) {
2110
        if (!(this_present_providerId && that_present_providerId))
2111
          return false;
2112
        if (this.providerId != that.providerId)
2113
          return false;
2114
      }
2115
 
2116
      return true;
2117
    }
2118
 
2119
    @Override
2120
    public int hashCode() {
2121
      return 0;
2122
    }
2123
 
2124
    public int compareTo(getProvider_args other) {
2125
      if (!getClass().equals(other.getClass())) {
2126
        return getClass().getName().compareTo(other.getClass().getName());
2127
      }
2128
 
2129
      int lastComparison = 0;
2130
      getProvider_args typedOther = (getProvider_args)other;
2131
 
3430 rajveer 2132
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2133
      if (lastComparison != 0) {
2134
        return lastComparison;
2135
      }
3430 rajveer 2136
      if (isSetProviderId()) {
2137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2138
        if (lastComparison != 0) {
2139
          return lastComparison;
2140
        }
668 chandransh 2141
      }
2142
      return 0;
2143
    }
2144
 
3430 rajveer 2145
    public _Fields fieldForId(int fieldId) {
2146
      return _Fields.findByThriftId(fieldId);
2147
    }
2148
 
2149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2150
      org.apache.thrift.protocol.TField field;
668 chandransh 2151
      iprot.readStructBegin();
2152
      while (true)
2153
      {
2154
        field = iprot.readFieldBegin();
3430 rajveer 2155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2156
          break;
2157
        }
3430 rajveer 2158
        switch (field.id) {
2159
          case 1: // PROVIDER_ID
2160
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2161
              this.providerId = iprot.readI64();
2162
              setProviderIdIsSet(true);
2163
            } else { 
2164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2165
            }
2166
            break;
2167
          default:
2168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2169
        }
3430 rajveer 2170
        iprot.readFieldEnd();
668 chandransh 2171
      }
2172
      iprot.readStructEnd();
2173
      validate();
2174
    }
2175
 
3430 rajveer 2176
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2177
      validate();
2178
 
2179
      oprot.writeStructBegin(STRUCT_DESC);
2180
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2181
      oprot.writeI64(this.providerId);
2182
      oprot.writeFieldEnd();
2183
      oprot.writeFieldStop();
2184
      oprot.writeStructEnd();
2185
    }
2186
 
2187
    @Override
2188
    public String toString() {
2189
      StringBuilder sb = new StringBuilder("getProvider_args(");
2190
      boolean first = true;
2191
 
2192
      sb.append("providerId:");
2193
      sb.append(this.providerId);
2194
      first = false;
2195
      sb.append(")");
2196
      return sb.toString();
2197
    }
2198
 
3430 rajveer 2199
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2200
      // check for required fields
2201
    }
2202
 
3430 rajveer 2203
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2204
      try {
2205
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2206
      } catch (org.apache.thrift.TException te) {
2207
        throw new java.io.IOException(te);
2208
      }
2209
    }
2210
 
2211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2212
      try {
2213
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2214
      } catch (org.apache.thrift.TException te) {
2215
        throw new java.io.IOException(te);
2216
      }
2217
    }
2218
 
668 chandransh 2219
  }
2220
 
3430 rajveer 2221
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2223
 
3430 rajveer 2224
    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);
2225
    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 2226
 
3430 rajveer 2227
    private Provider success; // required
2228
    private LogisticsServiceException lse; // required
668 chandransh 2229
 
2230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2232
      SUCCESS((short)0, "success"),
2233
      LSE((short)1, "lse");
2234
 
2235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2236
 
2237
      static {
2238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2239
          byName.put(field.getFieldName(), field);
2240
        }
2241
      }
2242
 
2243
      /**
2244
       * Find the _Fields constant that matches fieldId, or null if its not found.
2245
       */
2246
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2247
        switch(fieldId) {
2248
          case 0: // SUCCESS
2249
            return SUCCESS;
2250
          case 1: // LSE
2251
            return LSE;
2252
          default:
2253
            return null;
2254
        }
668 chandransh 2255
      }
2256
 
2257
      /**
2258
       * Find the _Fields constant that matches fieldId, throwing an exception
2259
       * if it is not found.
2260
       */
2261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2262
        _Fields fields = findByThriftId(fieldId);
2263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2264
        return fields;
2265
      }
2266
 
2267
      /**
2268
       * Find the _Fields constant that matches name, or null if its not found.
2269
       */
2270
      public static _Fields findByName(String name) {
2271
        return byName.get(name);
2272
      }
2273
 
2274
      private final short _thriftId;
2275
      private final String _fieldName;
2276
 
2277
      _Fields(short thriftId, String fieldName) {
2278
        _thriftId = thriftId;
2279
        _fieldName = fieldName;
2280
      }
2281
 
2282
      public short getThriftFieldId() {
2283
        return _thriftId;
2284
      }
2285
 
2286
      public String getFieldName() {
2287
        return _fieldName;
2288
      }
2289
    }
2290
 
2291
    // isset id assignments
2292
 
3430 rajveer 2293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2294
    static {
3430 rajveer 2295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2297
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2298
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2302
    }
2303
 
2304
    public getProvider_result() {
2305
    }
2306
 
2307
    public getProvider_result(
2308
      Provider success,
2309
      LogisticsServiceException lse)
2310
    {
2311
      this();
2312
      this.success = success;
2313
      this.lse = lse;
2314
    }
2315
 
2316
    /**
2317
     * Performs a deep copy on <i>other</i>.
2318
     */
2319
    public getProvider_result(getProvider_result other) {
2320
      if (other.isSetSuccess()) {
2321
        this.success = new Provider(other.success);
2322
      }
2323
      if (other.isSetLse()) {
2324
        this.lse = new LogisticsServiceException(other.lse);
2325
      }
2326
    }
2327
 
2328
    public getProvider_result deepCopy() {
2329
      return new getProvider_result(this);
2330
    }
2331
 
3430 rajveer 2332
    @Override
2333
    public void clear() {
2334
      this.success = null;
2335
      this.lse = null;
668 chandransh 2336
    }
2337
 
2338
    public Provider getSuccess() {
2339
      return this.success;
2340
    }
2341
 
3430 rajveer 2342
    public void setSuccess(Provider success) {
668 chandransh 2343
      this.success = success;
2344
    }
2345
 
2346
    public void unsetSuccess() {
2347
      this.success = null;
2348
    }
2349
 
3430 rajveer 2350
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2351
    public boolean isSetSuccess() {
2352
      return this.success != null;
2353
    }
2354
 
2355
    public void setSuccessIsSet(boolean value) {
2356
      if (!value) {
2357
        this.success = null;
2358
      }
2359
    }
2360
 
2361
    public LogisticsServiceException getLse() {
2362
      return this.lse;
2363
    }
2364
 
3430 rajveer 2365
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2366
      this.lse = lse;
2367
    }
2368
 
2369
    public void unsetLse() {
2370
      this.lse = null;
2371
    }
2372
 
3430 rajveer 2373
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2374
    public boolean isSetLse() {
2375
      return this.lse != null;
2376
    }
2377
 
2378
    public void setLseIsSet(boolean value) {
2379
      if (!value) {
2380
        this.lse = null;
2381
      }
2382
    }
2383
 
2384
    public void setFieldValue(_Fields field, Object value) {
2385
      switch (field) {
2386
      case SUCCESS:
2387
        if (value == null) {
2388
          unsetSuccess();
2389
        } else {
2390
          setSuccess((Provider)value);
2391
        }
2392
        break;
2393
 
2394
      case LSE:
2395
        if (value == null) {
2396
          unsetLse();
2397
        } else {
2398
          setLse((LogisticsServiceException)value);
2399
        }
2400
        break;
2401
 
2402
      }
2403
    }
2404
 
2405
    public Object getFieldValue(_Fields field) {
2406
      switch (field) {
2407
      case SUCCESS:
2408
        return getSuccess();
2409
 
2410
      case LSE:
2411
        return getLse();
2412
 
2413
      }
2414
      throw new IllegalStateException();
2415
    }
2416
 
3430 rajveer 2417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2418
    public boolean isSet(_Fields field) {
2419
      if (field == null) {
2420
        throw new IllegalArgumentException();
2421
      }
668 chandransh 2422
 
2423
      switch (field) {
2424
      case SUCCESS:
2425
        return isSetSuccess();
2426
      case LSE:
2427
        return isSetLse();
2428
      }
2429
      throw new IllegalStateException();
2430
    }
2431
 
2432
    @Override
2433
    public boolean equals(Object that) {
2434
      if (that == null)
2435
        return false;
2436
      if (that instanceof getProvider_result)
2437
        return this.equals((getProvider_result)that);
2438
      return false;
2439
    }
2440
 
2441
    public boolean equals(getProvider_result that) {
2442
      if (that == null)
2443
        return false;
2444
 
2445
      boolean this_present_success = true && this.isSetSuccess();
2446
      boolean that_present_success = true && that.isSetSuccess();
2447
      if (this_present_success || that_present_success) {
2448
        if (!(this_present_success && that_present_success))
2449
          return false;
2450
        if (!this.success.equals(that.success))
2451
          return false;
2452
      }
2453
 
2454
      boolean this_present_lse = true && this.isSetLse();
2455
      boolean that_present_lse = true && that.isSetLse();
2456
      if (this_present_lse || that_present_lse) {
2457
        if (!(this_present_lse && that_present_lse))
2458
          return false;
2459
        if (!this.lse.equals(that.lse))
2460
          return false;
2461
      }
2462
 
2463
      return true;
2464
    }
2465
 
2466
    @Override
2467
    public int hashCode() {
2468
      return 0;
2469
    }
2470
 
3430 rajveer 2471
    public int compareTo(getProvider_result other) {
2472
      if (!getClass().equals(other.getClass())) {
2473
        return getClass().getName().compareTo(other.getClass().getName());
2474
      }
2475
 
2476
      int lastComparison = 0;
2477
      getProvider_result typedOther = (getProvider_result)other;
2478
 
2479
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2480
      if (lastComparison != 0) {
2481
        return lastComparison;
2482
      }
2483
      if (isSetSuccess()) {
2484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2485
        if (lastComparison != 0) {
2486
          return lastComparison;
2487
        }
2488
      }
2489
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2490
      if (lastComparison != 0) {
2491
        return lastComparison;
2492
      }
2493
      if (isSetLse()) {
2494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2495
        if (lastComparison != 0) {
2496
          return lastComparison;
2497
        }
2498
      }
2499
      return 0;
2500
    }
2501
 
2502
    public _Fields fieldForId(int fieldId) {
2503
      return _Fields.findByThriftId(fieldId);
2504
    }
2505
 
2506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2507
      org.apache.thrift.protocol.TField field;
668 chandransh 2508
      iprot.readStructBegin();
2509
      while (true)
2510
      {
2511
        field = iprot.readFieldBegin();
3430 rajveer 2512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2513
          break;
2514
        }
3430 rajveer 2515
        switch (field.id) {
2516
          case 0: // SUCCESS
2517
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2518
              this.success = new Provider();
2519
              this.success.read(iprot);
2520
            } else { 
2521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2522
            }
2523
            break;
2524
          case 1: // LSE
2525
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2526
              this.lse = new LogisticsServiceException();
2527
              this.lse.read(iprot);
2528
            } else { 
2529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2530
            }
2531
            break;
2532
          default:
2533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2534
        }
3430 rajveer 2535
        iprot.readFieldEnd();
668 chandransh 2536
      }
2537
      iprot.readStructEnd();
2538
      validate();
2539
    }
2540
 
3430 rajveer 2541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2542
      oprot.writeStructBegin(STRUCT_DESC);
2543
 
2544
      if (this.isSetSuccess()) {
2545
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2546
        this.success.write(oprot);
2547
        oprot.writeFieldEnd();
2548
      } else if (this.isSetLse()) {
2549
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2550
        this.lse.write(oprot);
2551
        oprot.writeFieldEnd();
2552
      }
2553
      oprot.writeFieldStop();
2554
      oprot.writeStructEnd();
2555
    }
2556
 
2557
    @Override
2558
    public String toString() {
2559
      StringBuilder sb = new StringBuilder("getProvider_result(");
2560
      boolean first = true;
2561
 
2562
      sb.append("success:");
2563
      if (this.success == null) {
2564
        sb.append("null");
2565
      } else {
2566
        sb.append(this.success);
2567
      }
2568
      first = false;
2569
      if (!first) sb.append(", ");
2570
      sb.append("lse:");
2571
      if (this.lse == null) {
2572
        sb.append("null");
2573
      } else {
2574
        sb.append(this.lse);
2575
      }
2576
      first = false;
2577
      sb.append(")");
2578
      return sb.toString();
2579
    }
2580
 
3430 rajveer 2581
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2582
      // check for required fields
2583
    }
2584
 
3430 rajveer 2585
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2586
      try {
2587
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2588
      } catch (org.apache.thrift.TException te) {
2589
        throw new java.io.IOException(te);
2590
      }
2591
    }
2592
 
2593
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2594
      try {
2595
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2596
      } catch (org.apache.thrift.TException te) {
2597
        throw new java.io.IOException(te);
2598
      }
2599
    }
2600
 
668 chandransh 2601
  }
2602
 
3430 rajveer 2603
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2604
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2605
 
2606
 
2607
 
2608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2610
;
2611
 
2612
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2613
 
2614
      static {
2615
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2616
          byName.put(field.getFieldName(), field);
2617
        }
2618
      }
2619
 
2620
      /**
2621
       * Find the _Fields constant that matches fieldId, or null if its not found.
2622
       */
2623
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2624
        switch(fieldId) {
2625
          default:
2626
            return null;
2627
        }
674 chandransh 2628
      }
2629
 
2630
      /**
2631
       * Find the _Fields constant that matches fieldId, throwing an exception
2632
       * if it is not found.
2633
       */
2634
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2635
        _Fields fields = findByThriftId(fieldId);
2636
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2637
        return fields;
2638
      }
2639
 
2640
      /**
2641
       * Find the _Fields constant that matches name, or null if its not found.
2642
       */
2643
      public static _Fields findByName(String name) {
2644
        return byName.get(name);
2645
      }
2646
 
2647
      private final short _thriftId;
2648
      private final String _fieldName;
2649
 
2650
      _Fields(short thriftId, String fieldName) {
2651
        _thriftId = thriftId;
2652
        _fieldName = fieldName;
2653
      }
2654
 
2655
      public short getThriftFieldId() {
2656
        return _thriftId;
2657
      }
2658
 
2659
      public String getFieldName() {
2660
        return _fieldName;
2661
      }
2662
    }
3430 rajveer 2663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2664
    static {
3430 rajveer 2665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2666
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2667
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2668
    }
2669
 
2670
    public getAllProviders_args() {
2671
    }
2672
 
2673
    /**
2674
     * Performs a deep copy on <i>other</i>.
2675
     */
2676
    public getAllProviders_args(getAllProviders_args other) {
2677
    }
2678
 
2679
    public getAllProviders_args deepCopy() {
2680
      return new getAllProviders_args(this);
2681
    }
2682
 
3430 rajveer 2683
    @Override
2684
    public void clear() {
674 chandransh 2685
    }
2686
 
2687
    public void setFieldValue(_Fields field, Object value) {
2688
      switch (field) {
2689
      }
2690
    }
2691
 
2692
    public Object getFieldValue(_Fields field) {
2693
      switch (field) {
2694
      }
2695
      throw new IllegalStateException();
2696
    }
2697
 
3430 rajveer 2698
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2699
    public boolean isSet(_Fields field) {
2700
      if (field == null) {
2701
        throw new IllegalArgumentException();
2702
      }
674 chandransh 2703
 
2704
      switch (field) {
2705
      }
2706
      throw new IllegalStateException();
2707
    }
2708
 
2709
    @Override
2710
    public boolean equals(Object that) {
2711
      if (that == null)
2712
        return false;
2713
      if (that instanceof getAllProviders_args)
2714
        return this.equals((getAllProviders_args)that);
2715
      return false;
2716
    }
2717
 
2718
    public boolean equals(getAllProviders_args that) {
2719
      if (that == null)
2720
        return false;
2721
 
2722
      return true;
2723
    }
2724
 
2725
    @Override
2726
    public int hashCode() {
2727
      return 0;
2728
    }
2729
 
2730
    public int compareTo(getAllProviders_args other) {
2731
      if (!getClass().equals(other.getClass())) {
2732
        return getClass().getName().compareTo(other.getClass().getName());
2733
      }
2734
 
2735
      int lastComparison = 0;
2736
      getAllProviders_args typedOther = (getAllProviders_args)other;
2737
 
2738
      return 0;
2739
    }
2740
 
3430 rajveer 2741
    public _Fields fieldForId(int fieldId) {
2742
      return _Fields.findByThriftId(fieldId);
2743
    }
2744
 
2745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2746
      org.apache.thrift.protocol.TField field;
674 chandransh 2747
      iprot.readStructBegin();
2748
      while (true)
2749
      {
2750
        field = iprot.readFieldBegin();
3430 rajveer 2751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2752
          break;
2753
        }
3430 rajveer 2754
        switch (field.id) {
2755
          default:
2756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2757
        }
3430 rajveer 2758
        iprot.readFieldEnd();
674 chandransh 2759
      }
2760
      iprot.readStructEnd();
2761
      validate();
2762
    }
2763
 
3430 rajveer 2764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2765
      validate();
2766
 
2767
      oprot.writeStructBegin(STRUCT_DESC);
2768
      oprot.writeFieldStop();
2769
      oprot.writeStructEnd();
2770
    }
2771
 
2772
    @Override
2773
    public String toString() {
2774
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2775
      boolean first = true;
2776
 
2777
      sb.append(")");
2778
      return sb.toString();
2779
    }
2780
 
3430 rajveer 2781
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2782
      // check for required fields
2783
    }
2784
 
3430 rajveer 2785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2786
      try {
2787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2788
      } catch (org.apache.thrift.TException te) {
2789
        throw new java.io.IOException(te);
2790
      }
2791
    }
2792
 
2793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2794
      try {
2795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2796
      } catch (org.apache.thrift.TException te) {
2797
        throw new java.io.IOException(te);
2798
      }
2799
    }
2800
 
674 chandransh 2801
  }
2802
 
3430 rajveer 2803
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2805
 
3430 rajveer 2806
    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);
2807
    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 2808
 
3430 rajveer 2809
    private List<Provider> success; // required
2810
    private LogisticsServiceException lse; // required
674 chandransh 2811
 
2812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2814
      SUCCESS((short)0, "success"),
2815
      LSE((short)1, "lse");
2816
 
2817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2818
 
2819
      static {
2820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2821
          byName.put(field.getFieldName(), field);
2822
        }
2823
      }
2824
 
2825
      /**
2826
       * Find the _Fields constant that matches fieldId, or null if its not found.
2827
       */
2828
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2829
        switch(fieldId) {
2830
          case 0: // SUCCESS
2831
            return SUCCESS;
2832
          case 1: // LSE
2833
            return LSE;
2834
          default:
2835
            return null;
2836
        }
674 chandransh 2837
      }
2838
 
2839
      /**
2840
       * Find the _Fields constant that matches fieldId, throwing an exception
2841
       * if it is not found.
2842
       */
2843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2844
        _Fields fields = findByThriftId(fieldId);
2845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2846
        return fields;
2847
      }
2848
 
2849
      /**
2850
       * Find the _Fields constant that matches name, or null if its not found.
2851
       */
2852
      public static _Fields findByName(String name) {
2853
        return byName.get(name);
2854
      }
2855
 
2856
      private final short _thriftId;
2857
      private final String _fieldName;
2858
 
2859
      _Fields(short thriftId, String fieldName) {
2860
        _thriftId = thriftId;
2861
        _fieldName = fieldName;
2862
      }
2863
 
2864
      public short getThriftFieldId() {
2865
        return _thriftId;
2866
      }
2867
 
2868
      public String getFieldName() {
2869
        return _fieldName;
2870
      }
2871
    }
2872
 
2873
    // isset id assignments
2874
 
3430 rajveer 2875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2876
    static {
3430 rajveer 2877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2878
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2879
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2880
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2881
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2885
    }
2886
 
2887
    public getAllProviders_result() {
2888
    }
2889
 
2890
    public getAllProviders_result(
2891
      List<Provider> success,
2892
      LogisticsServiceException lse)
2893
    {
2894
      this();
2895
      this.success = success;
2896
      this.lse = lse;
2897
    }
2898
 
2899
    /**
2900
     * Performs a deep copy on <i>other</i>.
2901
     */
2902
    public getAllProviders_result(getAllProviders_result other) {
2903
      if (other.isSetSuccess()) {
2904
        List<Provider> __this__success = new ArrayList<Provider>();
2905
        for (Provider other_element : other.success) {
2906
          __this__success.add(new Provider(other_element));
2907
        }
2908
        this.success = __this__success;
2909
      }
2910
      if (other.isSetLse()) {
2911
        this.lse = new LogisticsServiceException(other.lse);
2912
      }
2913
    }
2914
 
2915
    public getAllProviders_result deepCopy() {
2916
      return new getAllProviders_result(this);
2917
    }
2918
 
3430 rajveer 2919
    @Override
2920
    public void clear() {
2921
      this.success = null;
2922
      this.lse = null;
674 chandransh 2923
    }
2924
 
2925
    public int getSuccessSize() {
2926
      return (this.success == null) ? 0 : this.success.size();
2927
    }
2928
 
2929
    public java.util.Iterator<Provider> getSuccessIterator() {
2930
      return (this.success == null) ? null : this.success.iterator();
2931
    }
2932
 
2933
    public void addToSuccess(Provider elem) {
2934
      if (this.success == null) {
2935
        this.success = new ArrayList<Provider>();
2936
      }
2937
      this.success.add(elem);
2938
    }
2939
 
2940
    public List<Provider> getSuccess() {
2941
      return this.success;
2942
    }
2943
 
3430 rajveer 2944
    public void setSuccess(List<Provider> success) {
674 chandransh 2945
      this.success = success;
2946
    }
2947
 
2948
    public void unsetSuccess() {
2949
      this.success = null;
2950
    }
2951
 
3430 rajveer 2952
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2953
    public boolean isSetSuccess() {
2954
      return this.success != null;
2955
    }
2956
 
2957
    public void setSuccessIsSet(boolean value) {
2958
      if (!value) {
2959
        this.success = null;
2960
      }
2961
    }
2962
 
2963
    public LogisticsServiceException getLse() {
2964
      return this.lse;
2965
    }
2966
 
3430 rajveer 2967
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2968
      this.lse = lse;
2969
    }
2970
 
2971
    public void unsetLse() {
2972
      this.lse = null;
2973
    }
2974
 
3430 rajveer 2975
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2976
    public boolean isSetLse() {
2977
      return this.lse != null;
2978
    }
2979
 
2980
    public void setLseIsSet(boolean value) {
2981
      if (!value) {
2982
        this.lse = null;
2983
      }
2984
    }
2985
 
2986
    public void setFieldValue(_Fields field, Object value) {
2987
      switch (field) {
2988
      case SUCCESS:
2989
        if (value == null) {
2990
          unsetSuccess();
2991
        } else {
2992
          setSuccess((List<Provider>)value);
2993
        }
2994
        break;
2995
 
2996
      case LSE:
2997
        if (value == null) {
2998
          unsetLse();
2999
        } else {
3000
          setLse((LogisticsServiceException)value);
3001
        }
3002
        break;
3003
 
3004
      }
3005
    }
3006
 
3007
    public Object getFieldValue(_Fields field) {
3008
      switch (field) {
3009
      case SUCCESS:
3010
        return getSuccess();
3011
 
3012
      case LSE:
3013
        return getLse();
3014
 
3015
      }
3016
      throw new IllegalStateException();
3017
    }
3018
 
3430 rajveer 3019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3020
    public boolean isSet(_Fields field) {
3021
      if (field == null) {
3022
        throw new IllegalArgumentException();
3023
      }
674 chandransh 3024
 
3025
      switch (field) {
3026
      case SUCCESS:
3027
        return isSetSuccess();
3028
      case LSE:
3029
        return isSetLse();
3030
      }
3031
      throw new IllegalStateException();
3032
    }
3033
 
3034
    @Override
3035
    public boolean equals(Object that) {
3036
      if (that == null)
3037
        return false;
3038
      if (that instanceof getAllProviders_result)
3039
        return this.equals((getAllProviders_result)that);
3040
      return false;
3041
    }
3042
 
3043
    public boolean equals(getAllProviders_result that) {
3044
      if (that == null)
3045
        return false;
3046
 
3047
      boolean this_present_success = true && this.isSetSuccess();
3048
      boolean that_present_success = true && that.isSetSuccess();
3049
      if (this_present_success || that_present_success) {
3050
        if (!(this_present_success && that_present_success))
3051
          return false;
3052
        if (!this.success.equals(that.success))
3053
          return false;
3054
      }
3055
 
3056
      boolean this_present_lse = true && this.isSetLse();
3057
      boolean that_present_lse = true && that.isSetLse();
3058
      if (this_present_lse || that_present_lse) {
3059
        if (!(this_present_lse && that_present_lse))
3060
          return false;
3061
        if (!this.lse.equals(that.lse))
3062
          return false;
3063
      }
3064
 
3065
      return true;
3066
    }
3067
 
3068
    @Override
3069
    public int hashCode() {
3070
      return 0;
3071
    }
3072
 
3430 rajveer 3073
    public int compareTo(getAllProviders_result other) {
3074
      if (!getClass().equals(other.getClass())) {
3075
        return getClass().getName().compareTo(other.getClass().getName());
3076
      }
3077
 
3078
      int lastComparison = 0;
3079
      getAllProviders_result typedOther = (getAllProviders_result)other;
3080
 
3081
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3082
      if (lastComparison != 0) {
3083
        return lastComparison;
3084
      }
3085
      if (isSetSuccess()) {
3086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3087
        if (lastComparison != 0) {
3088
          return lastComparison;
3089
        }
3090
      }
3091
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3092
      if (lastComparison != 0) {
3093
        return lastComparison;
3094
      }
3095
      if (isSetLse()) {
3096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3097
        if (lastComparison != 0) {
3098
          return lastComparison;
3099
        }
3100
      }
3101
      return 0;
3102
    }
3103
 
3104
    public _Fields fieldForId(int fieldId) {
3105
      return _Fields.findByThriftId(fieldId);
3106
    }
3107
 
3108
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3109
      org.apache.thrift.protocol.TField field;
674 chandransh 3110
      iprot.readStructBegin();
3111
      while (true)
3112
      {
3113
        field = iprot.readFieldBegin();
3430 rajveer 3114
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3115
          break;
3116
        }
3430 rajveer 3117
        switch (field.id) {
3118
          case 0: // SUCCESS
3119
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3120
              {
7792 anupam.sin 3121
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3122
                this.success = new ArrayList<Provider>(_list4.size);
3123
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3124
                {
7792 anupam.sin 3125
                  Provider _elem6; // required
3126
                  _elem6 = new Provider();
3127
                  _elem6.read(iprot);
3128
                  this.success.add(_elem6);
674 chandransh 3129
                }
3430 rajveer 3130
                iprot.readListEnd();
674 chandransh 3131
              }
3430 rajveer 3132
            } else { 
3133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3134
            }
3135
            break;
3136
          case 1: // LSE
3137
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3138
              this.lse = new LogisticsServiceException();
3139
              this.lse.read(iprot);
3140
            } else { 
3141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3142
            }
3143
            break;
3144
          default:
3145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3146
        }
3430 rajveer 3147
        iprot.readFieldEnd();
674 chandransh 3148
      }
3149
      iprot.readStructEnd();
3150
      validate();
3151
    }
3152
 
3430 rajveer 3153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3154
      oprot.writeStructBegin(STRUCT_DESC);
3155
 
3156
      if (this.isSetSuccess()) {
3157
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3158
        {
3430 rajveer 3159
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3160
          for (Provider _iter7 : this.success)
674 chandransh 3161
          {
7792 anupam.sin 3162
            _iter7.write(oprot);
674 chandransh 3163
          }
3164
          oprot.writeListEnd();
3165
        }
3166
        oprot.writeFieldEnd();
3167
      } else if (this.isSetLse()) {
3168
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3169
        this.lse.write(oprot);
3170
        oprot.writeFieldEnd();
3171
      }
3172
      oprot.writeFieldStop();
3173
      oprot.writeStructEnd();
3174
    }
3175
 
3176
    @Override
3177
    public String toString() {
3178
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3179
      boolean first = true;
3180
 
3181
      sb.append("success:");
3182
      if (this.success == null) {
3183
        sb.append("null");
3184
      } else {
3185
        sb.append(this.success);
3186
      }
3187
      first = false;
3188
      if (!first) sb.append(", ");
3189
      sb.append("lse:");
3190
      if (this.lse == null) {
3191
        sb.append("null");
3192
      } else {
3193
        sb.append(this.lse);
3194
      }
3195
      first = false;
3196
      sb.append(")");
3197
      return sb.toString();
3198
    }
3199
 
3430 rajveer 3200
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3201
      // check for required fields
3202
    }
3203
 
3430 rajveer 3204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3205
      try {
3206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3207
      } catch (org.apache.thrift.TException te) {
3208
        throw new java.io.IOException(te);
3209
      }
3210
    }
3211
 
3212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3213
      try {
3214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3215
      } catch (org.apache.thrift.TException te) {
3216
        throw new java.io.IOException(te);
3217
      }
3218
    }
3219
 
674 chandransh 3220
  }
3221
 
3430 rajveer 3222
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3224
 
3430 rajveer 3225
    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);
3226
    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 3227
    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 3228
 
3430 rajveer 3229
    private long itemId; // required
3230
    private String destination_pin; // required
4630 mandeep.dh 3231
    private DeliveryType type; // required
471 rajveer 3232
 
3233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3235
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3236
      DESTINATION_PIN((short)2, "destination_pin"),
3237
      /**
3238
       * 
3239
       * @see DeliveryType
3240
       */
3241
      TYPE((short)3, "type");
471 rajveer 3242
 
3243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3244
 
3245
      static {
3246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3247
          byName.put(field.getFieldName(), field);
3248
        }
3249
      }
3250
 
3251
      /**
3252
       * Find the _Fields constant that matches fieldId, or null if its not found.
3253
       */
3254
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3255
        switch(fieldId) {
3256
          case 1: // ITEM_ID
3257
            return ITEM_ID;
3258
          case 2: // DESTINATION_PIN
3259
            return DESTINATION_PIN;
4630 mandeep.dh 3260
          case 3: // TYPE
3261
            return TYPE;
3430 rajveer 3262
          default:
3263
            return null;
3264
        }
471 rajveer 3265
      }
3266
 
3267
      /**
3268
       * Find the _Fields constant that matches fieldId, throwing an exception
3269
       * if it is not found.
3270
       */
3271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3272
        _Fields fields = findByThriftId(fieldId);
3273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3274
        return fields;
3275
      }
3276
 
3277
      /**
3278
       * Find the _Fields constant that matches name, or null if its not found.
3279
       */
3280
      public static _Fields findByName(String name) {
3281
        return byName.get(name);
3282
      }
3283
 
3284
      private final short _thriftId;
3285
      private final String _fieldName;
3286
 
3287
      _Fields(short thriftId, String fieldName) {
3288
        _thriftId = thriftId;
3289
        _fieldName = fieldName;
3290
      }
3291
 
3292
      public short getThriftFieldId() {
3293
        return _thriftId;
3294
      }
3295
 
3296
      public String getFieldName() {
3297
        return _fieldName;
3298
      }
3299
    }
3300
 
3301
    // isset id assignments
3302
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3303
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3304
 
3430 rajveer 3305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3306
    static {
3430 rajveer 3307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3308
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3310
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3312
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3313
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3316
    }
3317
 
3318
    public getLogisticsEstimation_args() {
3319
    }
3320
 
3321
    public getLogisticsEstimation_args(
3322
      long itemId,
4630 mandeep.dh 3323
      String destination_pin,
3324
      DeliveryType type)
471 rajveer 3325
    {
3326
      this();
3327
      this.itemId = itemId;
3328
      setItemIdIsSet(true);
3329
      this.destination_pin = destination_pin;
4630 mandeep.dh 3330
      this.type = type;
471 rajveer 3331
    }
3332
 
3333
    /**
3334
     * Performs a deep copy on <i>other</i>.
3335
     */
3336
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3337
      __isset_bit_vector.clear();
3338
      __isset_bit_vector.or(other.__isset_bit_vector);
3339
      this.itemId = other.itemId;
3340
      if (other.isSetDestination_pin()) {
3341
        this.destination_pin = other.destination_pin;
3342
      }
4630 mandeep.dh 3343
      if (other.isSetType()) {
3344
        this.type = other.type;
3345
      }
471 rajveer 3346
    }
3347
 
3348
    public getLogisticsEstimation_args deepCopy() {
3349
      return new getLogisticsEstimation_args(this);
3350
    }
3351
 
3430 rajveer 3352
    @Override
3353
    public void clear() {
3354
      setItemIdIsSet(false);
3355
      this.itemId = 0;
3356
      this.destination_pin = null;
4630 mandeep.dh 3357
      this.type = null;
471 rajveer 3358
    }
3359
 
3360
    public long getItemId() {
3361
      return this.itemId;
3362
    }
3363
 
3430 rajveer 3364
    public void setItemId(long itemId) {
471 rajveer 3365
      this.itemId = itemId;
3366
      setItemIdIsSet(true);
3367
    }
3368
 
3369
    public void unsetItemId() {
3370
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3371
    }
3372
 
3430 rajveer 3373
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3374
    public boolean isSetItemId() {
3375
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3376
    }
3377
 
3378
    public void setItemIdIsSet(boolean value) {
3379
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3380
    }
3381
 
3382
    public String getDestination_pin() {
3383
      return this.destination_pin;
3384
    }
3385
 
3430 rajveer 3386
    public void setDestination_pin(String destination_pin) {
471 rajveer 3387
      this.destination_pin = destination_pin;
3388
    }
3389
 
3390
    public void unsetDestination_pin() {
3391
      this.destination_pin = null;
3392
    }
3393
 
3430 rajveer 3394
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3395
    public boolean isSetDestination_pin() {
3396
      return this.destination_pin != null;
3397
    }
3398
 
3399
    public void setDestination_pinIsSet(boolean value) {
3400
      if (!value) {
3401
        this.destination_pin = null;
3402
      }
3403
    }
3404
 
4630 mandeep.dh 3405
    /**
3406
     * 
3407
     * @see DeliveryType
3408
     */
3409
    public DeliveryType getType() {
3410
      return this.type;
3411
    }
3412
 
3413
    /**
3414
     * 
3415
     * @see DeliveryType
3416
     */
3417
    public void setType(DeliveryType type) {
3418
      this.type = type;
3419
    }
3420
 
3421
    public void unsetType() {
3422
      this.type = null;
3423
    }
3424
 
3425
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3426
    public boolean isSetType() {
3427
      return this.type != null;
3428
    }
3429
 
3430
    public void setTypeIsSet(boolean value) {
3431
      if (!value) {
3432
        this.type = null;
3433
      }
3434
    }
3435
 
471 rajveer 3436
    public void setFieldValue(_Fields field, Object value) {
3437
      switch (field) {
3438
      case ITEM_ID:
3439
        if (value == null) {
3440
          unsetItemId();
3441
        } else {
3442
          setItemId((Long)value);
3443
        }
3444
        break;
3445
 
3446
      case DESTINATION_PIN:
3447
        if (value == null) {
3448
          unsetDestination_pin();
3449
        } else {
3450
          setDestination_pin((String)value);
3451
        }
3452
        break;
3453
 
4630 mandeep.dh 3454
      case TYPE:
3455
        if (value == null) {
3456
          unsetType();
3457
        } else {
3458
          setType((DeliveryType)value);
3459
        }
3460
        break;
3461
 
471 rajveer 3462
      }
3463
    }
3464
 
3465
    public Object getFieldValue(_Fields field) {
3466
      switch (field) {
3467
      case ITEM_ID:
3430 rajveer 3468
        return Long.valueOf(getItemId());
471 rajveer 3469
 
3470
      case DESTINATION_PIN:
3471
        return getDestination_pin();
3472
 
4630 mandeep.dh 3473
      case TYPE:
3474
        return getType();
3475
 
471 rajveer 3476
      }
3477
      throw new IllegalStateException();
3478
    }
3479
 
3430 rajveer 3480
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3481
    public boolean isSet(_Fields field) {
3482
      if (field == null) {
3483
        throw new IllegalArgumentException();
3484
      }
471 rajveer 3485
 
3486
      switch (field) {
3487
      case ITEM_ID:
3488
        return isSetItemId();
3489
      case DESTINATION_PIN:
3490
        return isSetDestination_pin();
4630 mandeep.dh 3491
      case TYPE:
3492
        return isSetType();
471 rajveer 3493
      }
3494
      throw new IllegalStateException();
3495
    }
3496
 
3497
    @Override
3498
    public boolean equals(Object that) {
3499
      if (that == null)
3500
        return false;
3501
      if (that instanceof getLogisticsEstimation_args)
3502
        return this.equals((getLogisticsEstimation_args)that);
3503
      return false;
3504
    }
3505
 
3506
    public boolean equals(getLogisticsEstimation_args that) {
3507
      if (that == null)
3508
        return false;
3509
 
3510
      boolean this_present_itemId = true;
3511
      boolean that_present_itemId = true;
3512
      if (this_present_itemId || that_present_itemId) {
3513
        if (!(this_present_itemId && that_present_itemId))
3514
          return false;
3515
        if (this.itemId != that.itemId)
3516
          return false;
3517
      }
3518
 
3519
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3520
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3521
      if (this_present_destination_pin || that_present_destination_pin) {
3522
        if (!(this_present_destination_pin && that_present_destination_pin))
3523
          return false;
3524
        if (!this.destination_pin.equals(that.destination_pin))
3525
          return false;
3526
      }
3527
 
4630 mandeep.dh 3528
      boolean this_present_type = true && this.isSetType();
3529
      boolean that_present_type = true && that.isSetType();
3530
      if (this_present_type || that_present_type) {
3531
        if (!(this_present_type && that_present_type))
3532
          return false;
3533
        if (!this.type.equals(that.type))
3534
          return false;
3535
      }
3536
 
471 rajveer 3537
      return true;
3538
    }
3539
 
3540
    @Override
3541
    public int hashCode() {
3542
      return 0;
3543
    }
3544
 
3545
    public int compareTo(getLogisticsEstimation_args other) {
3546
      if (!getClass().equals(other.getClass())) {
3547
        return getClass().getName().compareTo(other.getClass().getName());
3548
      }
3549
 
3550
      int lastComparison = 0;
3551
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3552
 
3430 rajveer 3553
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3554
      if (lastComparison != 0) {
3555
        return lastComparison;
3556
      }
3430 rajveer 3557
      if (isSetItemId()) {
3558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3559
        if (lastComparison != 0) {
3560
          return lastComparison;
3561
        }
471 rajveer 3562
      }
3430 rajveer 3563
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3564
      if (lastComparison != 0) {
3565
        return lastComparison;
3566
      }
3430 rajveer 3567
      if (isSetDestination_pin()) {
3568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3569
        if (lastComparison != 0) {
3570
          return lastComparison;
3571
        }
471 rajveer 3572
      }
4630 mandeep.dh 3573
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3574
      if (lastComparison != 0) {
3575
        return lastComparison;
3576
      }
3577
      if (isSetType()) {
3578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3579
        if (lastComparison != 0) {
3580
          return lastComparison;
3581
        }
3582
      }
471 rajveer 3583
      return 0;
3584
    }
3585
 
3430 rajveer 3586
    public _Fields fieldForId(int fieldId) {
3587
      return _Fields.findByThriftId(fieldId);
3588
    }
3589
 
3590
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3591
      org.apache.thrift.protocol.TField field;
471 rajveer 3592
      iprot.readStructBegin();
3593
      while (true)
3594
      {
3595
        field = iprot.readFieldBegin();
3430 rajveer 3596
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3597
          break;
3598
        }
3430 rajveer 3599
        switch (field.id) {
3600
          case 1: // ITEM_ID
3601
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3602
              this.itemId = iprot.readI64();
3603
              setItemIdIsSet(true);
3604
            } else { 
3605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3606
            }
3607
            break;
3608
          case 2: // DESTINATION_PIN
3609
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3610
              this.destination_pin = iprot.readString();
3611
            } else { 
3612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3613
            }
3614
            break;
4630 mandeep.dh 3615
          case 3: // TYPE
3616
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3617
              this.type = DeliveryType.findByValue(iprot.readI32());
3618
            } else { 
3619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3620
            }
3621
            break;
3430 rajveer 3622
          default:
3623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3624
        }
3430 rajveer 3625
        iprot.readFieldEnd();
471 rajveer 3626
      }
3627
      iprot.readStructEnd();
3628
      validate();
3629
    }
3630
 
3430 rajveer 3631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3632
      validate();
3633
 
3634
      oprot.writeStructBegin(STRUCT_DESC);
3635
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3636
      oprot.writeI64(this.itemId);
3637
      oprot.writeFieldEnd();
3638
      if (this.destination_pin != null) {
3639
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3640
        oprot.writeString(this.destination_pin);
3641
        oprot.writeFieldEnd();
3642
      }
4630 mandeep.dh 3643
      if (this.type != null) {
3644
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3645
        oprot.writeI32(this.type.getValue());
3646
        oprot.writeFieldEnd();
3647
      }
471 rajveer 3648
      oprot.writeFieldStop();
3649
      oprot.writeStructEnd();
3650
    }
3651
 
3652
    @Override
3653
    public String toString() {
3654
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3655
      boolean first = true;
3656
 
3657
      sb.append("itemId:");
3658
      sb.append(this.itemId);
3659
      first = false;
3660
      if (!first) sb.append(", ");
3661
      sb.append("destination_pin:");
3662
      if (this.destination_pin == null) {
3663
        sb.append("null");
3664
      } else {
3665
        sb.append(this.destination_pin);
3666
      }
3667
      first = false;
4630 mandeep.dh 3668
      if (!first) sb.append(", ");
3669
      sb.append("type:");
3670
      if (this.type == null) {
3671
        sb.append("null");
3672
      } else {
3673
        sb.append(this.type);
3674
      }
3675
      first = false;
471 rajveer 3676
      sb.append(")");
3677
      return sb.toString();
3678
    }
3679
 
3430 rajveer 3680
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3681
      // check for required fields
3682
    }
3683
 
3430 rajveer 3684
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3685
      try {
3686
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3687
      } catch (org.apache.thrift.TException te) {
3688
        throw new java.io.IOException(te);
3689
      }
3690
    }
3691
 
3692
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3693
      try {
3694
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3695
      } catch (org.apache.thrift.TException te) {
3696
        throw new java.io.IOException(te);
3697
      }
3698
    }
3699
 
471 rajveer 3700
  }
3701
 
3430 rajveer 3702
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3704
 
3430 rajveer 3705
    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);
3706
    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 3707
 
3430 rajveer 3708
    private LogisticsInfo success; // required
3709
    private LogisticsServiceException se; // required
471 rajveer 3710
 
3711
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3712
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3713
      SUCCESS((short)0, "success"),
3714
      SE((short)1, "se");
3715
 
3716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3717
 
3718
      static {
3719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3720
          byName.put(field.getFieldName(), field);
3721
        }
3722
      }
3723
 
3724
      /**
3725
       * Find the _Fields constant that matches fieldId, or null if its not found.
3726
       */
3727
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3728
        switch(fieldId) {
3729
          case 0: // SUCCESS
3730
            return SUCCESS;
3731
          case 1: // SE
3732
            return SE;
3733
          default:
3734
            return null;
3735
        }
471 rajveer 3736
      }
3737
 
3738
      /**
3739
       * Find the _Fields constant that matches fieldId, throwing an exception
3740
       * if it is not found.
3741
       */
3742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3743
        _Fields fields = findByThriftId(fieldId);
3744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3745
        return fields;
3746
      }
3747
 
3748
      /**
3749
       * Find the _Fields constant that matches name, or null if its not found.
3750
       */
3751
      public static _Fields findByName(String name) {
3752
        return byName.get(name);
3753
      }
3754
 
3755
      private final short _thriftId;
3756
      private final String _fieldName;
3757
 
3758
      _Fields(short thriftId, String fieldName) {
3759
        _thriftId = thriftId;
3760
        _fieldName = fieldName;
3761
      }
3762
 
3763
      public short getThriftFieldId() {
3764
        return _thriftId;
3765
      }
3766
 
3767
      public String getFieldName() {
3768
        return _fieldName;
3769
      }
3770
    }
3771
 
3772
    // isset id assignments
3773
 
3430 rajveer 3774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3775
    static {
3430 rajveer 3776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3777
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3778
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3779
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3783
    }
3784
 
3785
    public getLogisticsEstimation_result() {
3786
    }
3787
 
3788
    public getLogisticsEstimation_result(
648 chandransh 3789
      LogisticsInfo success,
471 rajveer 3790
      LogisticsServiceException se)
3791
    {
3792
      this();
3793
      this.success = success;
3794
      this.se = se;
3795
    }
3796
 
3797
    /**
3798
     * Performs a deep copy on <i>other</i>.
3799
     */
3800
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3801
      if (other.isSetSuccess()) {
648 chandransh 3802
        this.success = new LogisticsInfo(other.success);
471 rajveer 3803
      }
3804
      if (other.isSetSe()) {
3805
        this.se = new LogisticsServiceException(other.se);
3806
      }
3807
    }
3808
 
3809
    public getLogisticsEstimation_result deepCopy() {
3810
      return new getLogisticsEstimation_result(this);
3811
    }
3812
 
3430 rajveer 3813
    @Override
3814
    public void clear() {
3815
      this.success = null;
3816
      this.se = null;
471 rajveer 3817
    }
3818
 
648 chandransh 3819
    public LogisticsInfo getSuccess() {
471 rajveer 3820
      return this.success;
3821
    }
3822
 
3430 rajveer 3823
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3824
      this.success = success;
3825
    }
3826
 
3827
    public void unsetSuccess() {
3828
      this.success = null;
3829
    }
3830
 
3430 rajveer 3831
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3832
    public boolean isSetSuccess() {
3833
      return this.success != null;
3834
    }
3835
 
3836
    public void setSuccessIsSet(boolean value) {
3837
      if (!value) {
3838
        this.success = null;
3839
      }
3840
    }
3841
 
3842
    public LogisticsServiceException getSe() {
3843
      return this.se;
3844
    }
3845
 
3430 rajveer 3846
    public void setSe(LogisticsServiceException se) {
471 rajveer 3847
      this.se = se;
3848
    }
3849
 
3850
    public void unsetSe() {
3851
      this.se = null;
3852
    }
3853
 
3430 rajveer 3854
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3855
    public boolean isSetSe() {
3856
      return this.se != null;
3857
    }
3858
 
3859
    public void setSeIsSet(boolean value) {
3860
      if (!value) {
3861
        this.se = null;
3862
      }
3863
    }
3864
 
3865
    public void setFieldValue(_Fields field, Object value) {
3866
      switch (field) {
3867
      case SUCCESS:
3868
        if (value == null) {
3869
          unsetSuccess();
3870
        } else {
648 chandransh 3871
          setSuccess((LogisticsInfo)value);
471 rajveer 3872
        }
3873
        break;
3874
 
3875
      case SE:
3876
        if (value == null) {
3877
          unsetSe();
3878
        } else {
3879
          setSe((LogisticsServiceException)value);
3880
        }
3881
        break;
3882
 
3883
      }
3884
    }
3885
 
3886
    public Object getFieldValue(_Fields field) {
3887
      switch (field) {
3888
      case SUCCESS:
3889
        return getSuccess();
3890
 
3891
      case SE:
3892
        return getSe();
3893
 
3894
      }
3895
      throw new IllegalStateException();
3896
    }
3897
 
3430 rajveer 3898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3899
    public boolean isSet(_Fields field) {
3900
      if (field == null) {
3901
        throw new IllegalArgumentException();
3902
      }
471 rajveer 3903
 
3904
      switch (field) {
3905
      case SUCCESS:
3906
        return isSetSuccess();
3907
      case SE:
3908
        return isSetSe();
3909
      }
3910
      throw new IllegalStateException();
3911
    }
3912
 
3913
    @Override
3914
    public boolean equals(Object that) {
3915
      if (that == null)
3916
        return false;
3917
      if (that instanceof getLogisticsEstimation_result)
3918
        return this.equals((getLogisticsEstimation_result)that);
3919
      return false;
3920
    }
3921
 
3922
    public boolean equals(getLogisticsEstimation_result that) {
3923
      if (that == null)
3924
        return false;
3925
 
3926
      boolean this_present_success = true && this.isSetSuccess();
3927
      boolean that_present_success = true && that.isSetSuccess();
3928
      if (this_present_success || that_present_success) {
3929
        if (!(this_present_success && that_present_success))
3930
          return false;
3931
        if (!this.success.equals(that.success))
3932
          return false;
3933
      }
3934
 
3935
      boolean this_present_se = true && this.isSetSe();
3936
      boolean that_present_se = true && that.isSetSe();
3937
      if (this_present_se || that_present_se) {
3938
        if (!(this_present_se && that_present_se))
3939
          return false;
3940
        if (!this.se.equals(that.se))
3941
          return false;
3942
      }
3943
 
3944
      return true;
3945
    }
3946
 
3947
    @Override
3948
    public int hashCode() {
3949
      return 0;
3950
    }
3951
 
3952
    public int compareTo(getLogisticsEstimation_result other) {
3953
      if (!getClass().equals(other.getClass())) {
3954
        return getClass().getName().compareTo(other.getClass().getName());
3955
      }
3956
 
3957
      int lastComparison = 0;
3958
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3959
 
3430 rajveer 3960
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3961
      if (lastComparison != 0) {
3962
        return lastComparison;
3963
      }
3430 rajveer 3964
      if (isSetSuccess()) {
3965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3966
        if (lastComparison != 0) {
3967
          return lastComparison;
3968
        }
471 rajveer 3969
      }
3430 rajveer 3970
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3971
      if (lastComparison != 0) {
3972
        return lastComparison;
3973
      }
3430 rajveer 3974
      if (isSetSe()) {
3975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3976
        if (lastComparison != 0) {
3977
          return lastComparison;
3978
        }
471 rajveer 3979
      }
3980
      return 0;
3981
    }
3982
 
3430 rajveer 3983
    public _Fields fieldForId(int fieldId) {
3984
      return _Fields.findByThriftId(fieldId);
3985
    }
3986
 
3987
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3988
      org.apache.thrift.protocol.TField field;
471 rajveer 3989
      iprot.readStructBegin();
3990
      while (true)
3991
      {
3992
        field = iprot.readFieldBegin();
3430 rajveer 3993
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3994
          break;
3995
        }
3430 rajveer 3996
        switch (field.id) {
3997
          case 0: // SUCCESS
3998
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3999
              this.success = new LogisticsInfo();
4000
              this.success.read(iprot);
4001
            } else { 
4002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4003
            }
4004
            break;
4005
          case 1: // SE
4006
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4007
              this.se = new LogisticsServiceException();
4008
              this.se.read(iprot);
4009
            } else { 
4010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4011
            }
4012
            break;
4013
          default:
4014
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4015
        }
3430 rajveer 4016
        iprot.readFieldEnd();
471 rajveer 4017
      }
4018
      iprot.readStructEnd();
4019
      validate();
4020
    }
4021
 
3430 rajveer 4022
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4023
      oprot.writeStructBegin(STRUCT_DESC);
4024
 
4025
      if (this.isSetSuccess()) {
4026
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4027
        this.success.write(oprot);
4028
        oprot.writeFieldEnd();
4029
      } else if (this.isSetSe()) {
4030
        oprot.writeFieldBegin(SE_FIELD_DESC);
4031
        this.se.write(oprot);
4032
        oprot.writeFieldEnd();
4033
      }
4034
      oprot.writeFieldStop();
4035
      oprot.writeStructEnd();
4036
    }
4037
 
4038
    @Override
4039
    public String toString() {
4040
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4041
      boolean first = true;
4042
 
4043
      sb.append("success:");
4044
      if (this.success == null) {
4045
        sb.append("null");
4046
      } else {
4047
        sb.append(this.success);
4048
      }
4049
      first = false;
4050
      if (!first) sb.append(", ");
4051
      sb.append("se:");
4052
      if (this.se == null) {
4053
        sb.append("null");
4054
      } else {
4055
        sb.append(this.se);
4056
      }
4057
      first = false;
4058
      sb.append(")");
4059
      return sb.toString();
4060
    }
4061
 
3430 rajveer 4062
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4063
      // check for required fields
4064
    }
4065
 
3430 rajveer 4066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4067
      try {
4068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4069
      } catch (org.apache.thrift.TException te) {
4070
        throw new java.io.IOException(te);
4071
      }
4072
    }
4073
 
4074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4075
      try {
4076
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4077
      } catch (org.apache.thrift.TException te) {
4078
        throw new java.io.IOException(te);
4079
      }
4080
    }
4081
 
471 rajveer 4082
  }
4083
 
7256 rajveer 4084
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4086
 
4087
    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);
4088
    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);
4089
    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);
4090
 
4091
    private long itemId; // required
4092
    private String destination_pin; // required
4093
    private DeliveryType type; // required
4094
 
4095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4097
      ITEM_ID((short)1, "itemId"),
4098
      DESTINATION_PIN((short)2, "destination_pin"),
4099
      /**
4100
       * 
4101
       * @see DeliveryType
4102
       */
4103
      TYPE((short)3, "type");
4104
 
4105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4106
 
4107
      static {
4108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4109
          byName.put(field.getFieldName(), field);
4110
        }
4111
      }
4112
 
4113
      /**
4114
       * Find the _Fields constant that matches fieldId, or null if its not found.
4115
       */
4116
      public static _Fields findByThriftId(int fieldId) {
4117
        switch(fieldId) {
4118
          case 1: // ITEM_ID
4119
            return ITEM_ID;
4120
          case 2: // DESTINATION_PIN
4121
            return DESTINATION_PIN;
4122
          case 3: // TYPE
4123
            return TYPE;
4124
          default:
4125
            return null;
4126
        }
4127
      }
4128
 
4129
      /**
4130
       * Find the _Fields constant that matches fieldId, throwing an exception
4131
       * if it is not found.
4132
       */
4133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4134
        _Fields fields = findByThriftId(fieldId);
4135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4136
        return fields;
4137
      }
4138
 
4139
      /**
4140
       * Find the _Fields constant that matches name, or null if its not found.
4141
       */
4142
      public static _Fields findByName(String name) {
4143
        return byName.get(name);
4144
      }
4145
 
4146
      private final short _thriftId;
4147
      private final String _fieldName;
4148
 
4149
      _Fields(short thriftId, String fieldName) {
4150
        _thriftId = thriftId;
4151
        _fieldName = fieldName;
4152
      }
4153
 
4154
      public short getThriftFieldId() {
4155
        return _thriftId;
4156
      }
4157
 
4158
      public String getFieldName() {
4159
        return _fieldName;
4160
      }
4161
    }
4162
 
4163
    // isset id assignments
4164
    private static final int __ITEMID_ISSET_ID = 0;
4165
    private BitSet __isset_bit_vector = new BitSet(1);
4166
 
4167
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4168
    static {
4169
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4170
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4172
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4173
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4174
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4175
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4176
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4177
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4178
    }
4179
 
4180
    public getLogisticsEstimationForStore_args() {
4181
    }
4182
 
4183
    public getLogisticsEstimationForStore_args(
4184
      long itemId,
4185
      String destination_pin,
4186
      DeliveryType type)
4187
    {
4188
      this();
4189
      this.itemId = itemId;
4190
      setItemIdIsSet(true);
4191
      this.destination_pin = destination_pin;
4192
      this.type = type;
4193
    }
4194
 
4195
    /**
4196
     * Performs a deep copy on <i>other</i>.
4197
     */
4198
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4199
      __isset_bit_vector.clear();
4200
      __isset_bit_vector.or(other.__isset_bit_vector);
4201
      this.itemId = other.itemId;
4202
      if (other.isSetDestination_pin()) {
4203
        this.destination_pin = other.destination_pin;
4204
      }
4205
      if (other.isSetType()) {
4206
        this.type = other.type;
4207
      }
4208
    }
4209
 
4210
    public getLogisticsEstimationForStore_args deepCopy() {
4211
      return new getLogisticsEstimationForStore_args(this);
4212
    }
4213
 
4214
    @Override
4215
    public void clear() {
4216
      setItemIdIsSet(false);
4217
      this.itemId = 0;
4218
      this.destination_pin = null;
4219
      this.type = null;
4220
    }
4221
 
4222
    public long getItemId() {
4223
      return this.itemId;
4224
    }
4225
 
4226
    public void setItemId(long itemId) {
4227
      this.itemId = itemId;
4228
      setItemIdIsSet(true);
4229
    }
4230
 
4231
    public void unsetItemId() {
4232
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4233
    }
4234
 
4235
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4236
    public boolean isSetItemId() {
4237
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4238
    }
4239
 
4240
    public void setItemIdIsSet(boolean value) {
4241
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4242
    }
4243
 
4244
    public String getDestination_pin() {
4245
      return this.destination_pin;
4246
    }
4247
 
4248
    public void setDestination_pin(String destination_pin) {
4249
      this.destination_pin = destination_pin;
4250
    }
4251
 
4252
    public void unsetDestination_pin() {
4253
      this.destination_pin = null;
4254
    }
4255
 
4256
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4257
    public boolean isSetDestination_pin() {
4258
      return this.destination_pin != null;
4259
    }
4260
 
4261
    public void setDestination_pinIsSet(boolean value) {
4262
      if (!value) {
4263
        this.destination_pin = null;
4264
      }
4265
    }
4266
 
4267
    /**
4268
     * 
4269
     * @see DeliveryType
4270
     */
4271
    public DeliveryType getType() {
4272
      return this.type;
4273
    }
4274
 
4275
    /**
4276
     * 
4277
     * @see DeliveryType
4278
     */
4279
    public void setType(DeliveryType type) {
4280
      this.type = type;
4281
    }
4282
 
4283
    public void unsetType() {
4284
      this.type = null;
4285
    }
4286
 
4287
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4288
    public boolean isSetType() {
4289
      return this.type != null;
4290
    }
4291
 
4292
    public void setTypeIsSet(boolean value) {
4293
      if (!value) {
4294
        this.type = null;
4295
      }
4296
    }
4297
 
4298
    public void setFieldValue(_Fields field, Object value) {
4299
      switch (field) {
4300
      case ITEM_ID:
4301
        if (value == null) {
4302
          unsetItemId();
4303
        } else {
4304
          setItemId((Long)value);
4305
        }
4306
        break;
4307
 
4308
      case DESTINATION_PIN:
4309
        if (value == null) {
4310
          unsetDestination_pin();
4311
        } else {
4312
          setDestination_pin((String)value);
4313
        }
4314
        break;
4315
 
4316
      case TYPE:
4317
        if (value == null) {
4318
          unsetType();
4319
        } else {
4320
          setType((DeliveryType)value);
4321
        }
4322
        break;
4323
 
4324
      }
4325
    }
4326
 
4327
    public Object getFieldValue(_Fields field) {
4328
      switch (field) {
4329
      case ITEM_ID:
4330
        return Long.valueOf(getItemId());
4331
 
4332
      case DESTINATION_PIN:
4333
        return getDestination_pin();
4334
 
4335
      case TYPE:
4336
        return getType();
4337
 
4338
      }
4339
      throw new IllegalStateException();
4340
    }
4341
 
4342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4343
    public boolean isSet(_Fields field) {
4344
      if (field == null) {
4345
        throw new IllegalArgumentException();
4346
      }
4347
 
4348
      switch (field) {
4349
      case ITEM_ID:
4350
        return isSetItemId();
4351
      case DESTINATION_PIN:
4352
        return isSetDestination_pin();
4353
      case TYPE:
4354
        return isSetType();
4355
      }
4356
      throw new IllegalStateException();
4357
    }
4358
 
4359
    @Override
4360
    public boolean equals(Object that) {
4361
      if (that == null)
4362
        return false;
4363
      if (that instanceof getLogisticsEstimationForStore_args)
4364
        return this.equals((getLogisticsEstimationForStore_args)that);
4365
      return false;
4366
    }
4367
 
4368
    public boolean equals(getLogisticsEstimationForStore_args that) {
4369
      if (that == null)
4370
        return false;
4371
 
4372
      boolean this_present_itemId = true;
4373
      boolean that_present_itemId = true;
4374
      if (this_present_itemId || that_present_itemId) {
4375
        if (!(this_present_itemId && that_present_itemId))
4376
          return false;
4377
        if (this.itemId != that.itemId)
4378
          return false;
4379
      }
4380
 
4381
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4382
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4383
      if (this_present_destination_pin || that_present_destination_pin) {
4384
        if (!(this_present_destination_pin && that_present_destination_pin))
4385
          return false;
4386
        if (!this.destination_pin.equals(that.destination_pin))
4387
          return false;
4388
      }
4389
 
4390
      boolean this_present_type = true && this.isSetType();
4391
      boolean that_present_type = true && that.isSetType();
4392
      if (this_present_type || that_present_type) {
4393
        if (!(this_present_type && that_present_type))
4394
          return false;
4395
        if (!this.type.equals(that.type))
4396
          return false;
4397
      }
4398
 
4399
      return true;
4400
    }
4401
 
4402
    @Override
4403
    public int hashCode() {
4404
      return 0;
4405
    }
4406
 
4407
    public int compareTo(getLogisticsEstimationForStore_args other) {
4408
      if (!getClass().equals(other.getClass())) {
4409
        return getClass().getName().compareTo(other.getClass().getName());
4410
      }
4411
 
4412
      int lastComparison = 0;
4413
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4414
 
4415
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4416
      if (lastComparison != 0) {
4417
        return lastComparison;
4418
      }
4419
      if (isSetItemId()) {
4420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4421
        if (lastComparison != 0) {
4422
          return lastComparison;
4423
        }
4424
      }
4425
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4426
      if (lastComparison != 0) {
4427
        return lastComparison;
4428
      }
4429
      if (isSetDestination_pin()) {
4430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4431
        if (lastComparison != 0) {
4432
          return lastComparison;
4433
        }
4434
      }
4435
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4436
      if (lastComparison != 0) {
4437
        return lastComparison;
4438
      }
4439
      if (isSetType()) {
4440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4441
        if (lastComparison != 0) {
4442
          return lastComparison;
4443
        }
4444
      }
4445
      return 0;
4446
    }
4447
 
4448
    public _Fields fieldForId(int fieldId) {
4449
      return _Fields.findByThriftId(fieldId);
4450
    }
4451
 
4452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4453
      org.apache.thrift.protocol.TField field;
4454
      iprot.readStructBegin();
4455
      while (true)
4456
      {
4457
        field = iprot.readFieldBegin();
4458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4459
          break;
4460
        }
4461
        switch (field.id) {
4462
          case 1: // ITEM_ID
4463
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4464
              this.itemId = iprot.readI64();
4465
              setItemIdIsSet(true);
4466
            } else { 
4467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4468
            }
4469
            break;
4470
          case 2: // DESTINATION_PIN
4471
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4472
              this.destination_pin = iprot.readString();
4473
            } else { 
4474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4475
            }
4476
            break;
4477
          case 3: // TYPE
4478
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4479
              this.type = DeliveryType.findByValue(iprot.readI32());
4480
            } else { 
4481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4482
            }
4483
            break;
4484
          default:
4485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4486
        }
4487
        iprot.readFieldEnd();
4488
      }
4489
      iprot.readStructEnd();
4490
      validate();
4491
    }
4492
 
4493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4494
      validate();
4495
 
4496
      oprot.writeStructBegin(STRUCT_DESC);
4497
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4498
      oprot.writeI64(this.itemId);
4499
      oprot.writeFieldEnd();
4500
      if (this.destination_pin != null) {
4501
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4502
        oprot.writeString(this.destination_pin);
4503
        oprot.writeFieldEnd();
4504
      }
4505
      if (this.type != null) {
4506
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4507
        oprot.writeI32(this.type.getValue());
4508
        oprot.writeFieldEnd();
4509
      }
4510
      oprot.writeFieldStop();
4511
      oprot.writeStructEnd();
4512
    }
4513
 
4514
    @Override
4515
    public String toString() {
4516
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4517
      boolean first = true;
4518
 
4519
      sb.append("itemId:");
4520
      sb.append(this.itemId);
4521
      first = false;
4522
      if (!first) sb.append(", ");
4523
      sb.append("destination_pin:");
4524
      if (this.destination_pin == null) {
4525
        sb.append("null");
4526
      } else {
4527
        sb.append(this.destination_pin);
4528
      }
4529
      first = false;
4530
      if (!first) sb.append(", ");
4531
      sb.append("type:");
4532
      if (this.type == null) {
4533
        sb.append("null");
4534
      } else {
4535
        sb.append(this.type);
4536
      }
4537
      first = false;
4538
      sb.append(")");
4539
      return sb.toString();
4540
    }
4541
 
4542
    public void validate() throws org.apache.thrift.TException {
4543
      // check for required fields
4544
    }
4545
 
4546
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4547
      try {
4548
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4549
      } catch (org.apache.thrift.TException te) {
4550
        throw new java.io.IOException(te);
4551
      }
4552
    }
4553
 
4554
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4555
      try {
4556
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4557
        __isset_bit_vector = new BitSet(1);
4558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4559
      } catch (org.apache.thrift.TException te) {
4560
        throw new java.io.IOException(te);
4561
      }
4562
    }
4563
 
4564
  }
4565
 
4566
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4568
 
4569
    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);
4570
    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);
4571
 
4572
    private LogisticsInfo success; // required
4573
    private LogisticsServiceException se; // required
4574
 
4575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4577
      SUCCESS((short)0, "success"),
4578
      SE((short)1, "se");
4579
 
4580
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4581
 
4582
      static {
4583
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4584
          byName.put(field.getFieldName(), field);
4585
        }
4586
      }
4587
 
4588
      /**
4589
       * Find the _Fields constant that matches fieldId, or null if its not found.
4590
       */
4591
      public static _Fields findByThriftId(int fieldId) {
4592
        switch(fieldId) {
4593
          case 0: // SUCCESS
4594
            return SUCCESS;
4595
          case 1: // SE
4596
            return SE;
4597
          default:
4598
            return null;
4599
        }
4600
      }
4601
 
4602
      /**
4603
       * Find the _Fields constant that matches fieldId, throwing an exception
4604
       * if it is not found.
4605
       */
4606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4607
        _Fields fields = findByThriftId(fieldId);
4608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4609
        return fields;
4610
      }
4611
 
4612
      /**
4613
       * Find the _Fields constant that matches name, or null if its not found.
4614
       */
4615
      public static _Fields findByName(String name) {
4616
        return byName.get(name);
4617
      }
4618
 
4619
      private final short _thriftId;
4620
      private final String _fieldName;
4621
 
4622
      _Fields(short thriftId, String fieldName) {
4623
        _thriftId = thriftId;
4624
        _fieldName = fieldName;
4625
      }
4626
 
4627
      public short getThriftFieldId() {
4628
        return _thriftId;
4629
      }
4630
 
4631
      public String getFieldName() {
4632
        return _fieldName;
4633
      }
4634
    }
4635
 
4636
    // isset id assignments
4637
 
4638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4639
    static {
4640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4641
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4642
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4643
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4647
    }
4648
 
4649
    public getLogisticsEstimationForStore_result() {
4650
    }
4651
 
4652
    public getLogisticsEstimationForStore_result(
4653
      LogisticsInfo success,
4654
      LogisticsServiceException se)
4655
    {
4656
      this();
4657
      this.success = success;
4658
      this.se = se;
4659
    }
4660
 
4661
    /**
4662
     * Performs a deep copy on <i>other</i>.
4663
     */
4664
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4665
      if (other.isSetSuccess()) {
4666
        this.success = new LogisticsInfo(other.success);
4667
      }
4668
      if (other.isSetSe()) {
4669
        this.se = new LogisticsServiceException(other.se);
4670
      }
4671
    }
4672
 
4673
    public getLogisticsEstimationForStore_result deepCopy() {
4674
      return new getLogisticsEstimationForStore_result(this);
4675
    }
4676
 
4677
    @Override
4678
    public void clear() {
4679
      this.success = null;
4680
      this.se = null;
4681
    }
4682
 
4683
    public LogisticsInfo getSuccess() {
4684
      return this.success;
4685
    }
4686
 
4687
    public void setSuccess(LogisticsInfo success) {
4688
      this.success = success;
4689
    }
4690
 
4691
    public void unsetSuccess() {
4692
      this.success = null;
4693
    }
4694
 
4695
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4696
    public boolean isSetSuccess() {
4697
      return this.success != null;
4698
    }
4699
 
4700
    public void setSuccessIsSet(boolean value) {
4701
      if (!value) {
4702
        this.success = null;
4703
      }
4704
    }
4705
 
4706
    public LogisticsServiceException getSe() {
4707
      return this.se;
4708
    }
4709
 
4710
    public void setSe(LogisticsServiceException se) {
4711
      this.se = se;
4712
    }
4713
 
4714
    public void unsetSe() {
4715
      this.se = null;
4716
    }
4717
 
4718
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4719
    public boolean isSetSe() {
4720
      return this.se != null;
4721
    }
4722
 
4723
    public void setSeIsSet(boolean value) {
4724
      if (!value) {
4725
        this.se = null;
4726
      }
4727
    }
4728
 
4729
    public void setFieldValue(_Fields field, Object value) {
4730
      switch (field) {
4731
      case SUCCESS:
4732
        if (value == null) {
4733
          unsetSuccess();
4734
        } else {
4735
          setSuccess((LogisticsInfo)value);
4736
        }
4737
        break;
4738
 
4739
      case SE:
4740
        if (value == null) {
4741
          unsetSe();
4742
        } else {
4743
          setSe((LogisticsServiceException)value);
4744
        }
4745
        break;
4746
 
4747
      }
4748
    }
4749
 
4750
    public Object getFieldValue(_Fields field) {
4751
      switch (field) {
4752
      case SUCCESS:
4753
        return getSuccess();
4754
 
4755
      case SE:
4756
        return getSe();
4757
 
4758
      }
4759
      throw new IllegalStateException();
4760
    }
4761
 
4762
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4763
    public boolean isSet(_Fields field) {
4764
      if (field == null) {
4765
        throw new IllegalArgumentException();
4766
      }
4767
 
4768
      switch (field) {
4769
      case SUCCESS:
4770
        return isSetSuccess();
4771
      case SE:
4772
        return isSetSe();
4773
      }
4774
      throw new IllegalStateException();
4775
    }
4776
 
4777
    @Override
4778
    public boolean equals(Object that) {
4779
      if (that == null)
4780
        return false;
4781
      if (that instanceof getLogisticsEstimationForStore_result)
4782
        return this.equals((getLogisticsEstimationForStore_result)that);
4783
      return false;
4784
    }
4785
 
4786
    public boolean equals(getLogisticsEstimationForStore_result that) {
4787
      if (that == null)
4788
        return false;
4789
 
4790
      boolean this_present_success = true && this.isSetSuccess();
4791
      boolean that_present_success = true && that.isSetSuccess();
4792
      if (this_present_success || that_present_success) {
4793
        if (!(this_present_success && that_present_success))
4794
          return false;
4795
        if (!this.success.equals(that.success))
4796
          return false;
4797
      }
4798
 
4799
      boolean this_present_se = true && this.isSetSe();
4800
      boolean that_present_se = true && that.isSetSe();
4801
      if (this_present_se || that_present_se) {
4802
        if (!(this_present_se && that_present_se))
4803
          return false;
4804
        if (!this.se.equals(that.se))
4805
          return false;
4806
      }
4807
 
4808
      return true;
4809
    }
4810
 
4811
    @Override
4812
    public int hashCode() {
4813
      return 0;
4814
    }
4815
 
4816
    public int compareTo(getLogisticsEstimationForStore_result other) {
4817
      if (!getClass().equals(other.getClass())) {
4818
        return getClass().getName().compareTo(other.getClass().getName());
4819
      }
4820
 
4821
      int lastComparison = 0;
4822
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
4823
 
4824
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4825
      if (lastComparison != 0) {
4826
        return lastComparison;
4827
      }
4828
      if (isSetSuccess()) {
4829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4830
        if (lastComparison != 0) {
4831
          return lastComparison;
4832
        }
4833
      }
4834
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4835
      if (lastComparison != 0) {
4836
        return lastComparison;
4837
      }
4838
      if (isSetSe()) {
4839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4840
        if (lastComparison != 0) {
4841
          return lastComparison;
4842
        }
4843
      }
4844
      return 0;
4845
    }
4846
 
4847
    public _Fields fieldForId(int fieldId) {
4848
      return _Fields.findByThriftId(fieldId);
4849
    }
4850
 
4851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4852
      org.apache.thrift.protocol.TField field;
4853
      iprot.readStructBegin();
4854
      while (true)
4855
      {
4856
        field = iprot.readFieldBegin();
4857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4858
          break;
4859
        }
4860
        switch (field.id) {
4861
          case 0: // SUCCESS
4862
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4863
              this.success = new LogisticsInfo();
4864
              this.success.read(iprot);
4865
            } else { 
4866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4867
            }
4868
            break;
4869
          case 1: // SE
4870
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4871
              this.se = new LogisticsServiceException();
4872
              this.se.read(iprot);
4873
            } else { 
4874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4875
            }
4876
            break;
4877
          default:
4878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4879
        }
4880
        iprot.readFieldEnd();
4881
      }
4882
      iprot.readStructEnd();
4883
      validate();
4884
    }
4885
 
4886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4887
      oprot.writeStructBegin(STRUCT_DESC);
4888
 
4889
      if (this.isSetSuccess()) {
4890
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4891
        this.success.write(oprot);
4892
        oprot.writeFieldEnd();
4893
      } else if (this.isSetSe()) {
4894
        oprot.writeFieldBegin(SE_FIELD_DESC);
4895
        this.se.write(oprot);
4896
        oprot.writeFieldEnd();
4897
      }
4898
      oprot.writeFieldStop();
4899
      oprot.writeStructEnd();
4900
    }
4901
 
4902
    @Override
4903
    public String toString() {
4904
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
4905
      boolean first = true;
4906
 
4907
      sb.append("success:");
4908
      if (this.success == null) {
4909
        sb.append("null");
4910
      } else {
4911
        sb.append(this.success);
4912
      }
4913
      first = false;
4914
      if (!first) sb.append(", ");
4915
      sb.append("se:");
4916
      if (this.se == null) {
4917
        sb.append("null");
4918
      } else {
4919
        sb.append(this.se);
4920
      }
4921
      first = false;
4922
      sb.append(")");
4923
      return sb.toString();
4924
    }
4925
 
4926
    public void validate() throws org.apache.thrift.TException {
4927
      // check for required fields
4928
    }
4929
 
4930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4931
      try {
4932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4933
      } catch (org.apache.thrift.TException te) {
4934
        throw new java.io.IOException(te);
4935
      }
4936
    }
4937
 
4938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4939
      try {
4940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4941
      } catch (org.apache.thrift.TException te) {
4942
        throw new java.io.IOException(te);
4943
      }
4944
    }
4945
 
4946
  }
4947
 
3430 rajveer 4948
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
4949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 4950
 
3430 rajveer 4951
    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);
4952
    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);
4953
    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 4954
    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 4955
 
3430 rajveer 4956
    private String destination_pincode; // required
4957
    private long item_id; // required
4958
    private DeliveryType type; // required
5766 rajveer 4959
    private PickUpType pickUp; // required
471 rajveer 4960
 
4961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4963
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 4964
      ITEM_ID((short)2, "item_id"),
4965
      /**
4966
       * 
4967
       * @see DeliveryType
4968
       */
5766 rajveer 4969
      TYPE((short)3, "type"),
4970
      /**
4971
       * 
4972
       * @see PickUpType
4973
       */
4974
      PICK_UP((short)4, "pickUp");
471 rajveer 4975
 
4976
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4977
 
4978
      static {
4979
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4980
          byName.put(field.getFieldName(), field);
4981
        }
4982
      }
4983
 
4984
      /**
4985
       * Find the _Fields constant that matches fieldId, or null if its not found.
4986
       */
4987
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4988
        switch(fieldId) {
4989
          case 1: // DESTINATION_PINCODE
4990
            return DESTINATION_PINCODE;
4991
          case 2: // ITEM_ID
4992
            return ITEM_ID;
4993
          case 3: // TYPE
4994
            return TYPE;
5766 rajveer 4995
          case 4: // PICK_UP
4996
            return PICK_UP;
3430 rajveer 4997
          default:
4998
            return null;
4999
        }
471 rajveer 5000
      }
5001
 
5002
      /**
5003
       * Find the _Fields constant that matches fieldId, throwing an exception
5004
       * if it is not found.
5005
       */
5006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5007
        _Fields fields = findByThriftId(fieldId);
5008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5009
        return fields;
5010
      }
5011
 
5012
      /**
5013
       * Find the _Fields constant that matches name, or null if its not found.
5014
       */
5015
      public static _Fields findByName(String name) {
5016
        return byName.get(name);
5017
      }
5018
 
5019
      private final short _thriftId;
5020
      private final String _fieldName;
5021
 
5022
      _Fields(short thriftId, String fieldName) {
5023
        _thriftId = thriftId;
5024
        _fieldName = fieldName;
5025
      }
5026
 
5027
      public short getThriftFieldId() {
5028
        return _thriftId;
5029
      }
5030
 
5031
      public String getFieldName() {
5032
        return _fieldName;
5033
      }
5034
    }
5035
 
5036
    // isset id assignments
715 rajveer 5037
    private static final int __ITEM_ID_ISSET_ID = 0;
5038
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5039
 
3430 rajveer 5040
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5041
    static {
3430 rajveer 5042
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5043
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5044
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5045
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5046
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5047
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5048
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5049
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5050
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5053
    }
5054
 
648 chandransh 5055
    public getLogisticsInfo_args() {
477 rajveer 5056
    }
5057
 
648 chandransh 5058
    public getLogisticsInfo_args(
5059
      String destination_pincode,
3044 chandransh 5060
      long item_id,
5766 rajveer 5061
      DeliveryType type,
5062
      PickUpType pickUp)
477 rajveer 5063
    {
5064
      this();
648 chandransh 5065
      this.destination_pincode = destination_pincode;
5066
      this.item_id = item_id;
715 rajveer 5067
      setItem_idIsSet(true);
3044 chandransh 5068
      this.type = type;
5766 rajveer 5069
      this.pickUp = pickUp;
477 rajveer 5070
    }
5071
 
5072
    /**
5073
     * Performs a deep copy on <i>other</i>.
5074
     */
648 chandransh 5075
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5076
      __isset_bit_vector.clear();
5077
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5078
      if (other.isSetDestination_pincode()) {
5079
        this.destination_pincode = other.destination_pincode;
477 rajveer 5080
      }
715 rajveer 5081
      this.item_id = other.item_id;
3044 chandransh 5082
      if (other.isSetType()) {
5083
        this.type = other.type;
5084
      }
5766 rajveer 5085
      if (other.isSetPickUp()) {
5086
        this.pickUp = other.pickUp;
5087
      }
477 rajveer 5088
    }
5089
 
648 chandransh 5090
    public getLogisticsInfo_args deepCopy() {
5091
      return new getLogisticsInfo_args(this);
477 rajveer 5092
    }
5093
 
3430 rajveer 5094
    @Override
5095
    public void clear() {
5096
      this.destination_pincode = null;
5097
      setItem_idIsSet(false);
5098
      this.item_id = 0;
5099
      this.type = null;
5766 rajveer 5100
      this.pickUp = null;
477 rajveer 5101
    }
5102
 
648 chandransh 5103
    public String getDestination_pincode() {
5104
      return this.destination_pincode;
477 rajveer 5105
    }
5106
 
3430 rajveer 5107
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5108
      this.destination_pincode = destination_pincode;
477 rajveer 5109
    }
5110
 
648 chandransh 5111
    public void unsetDestination_pincode() {
5112
      this.destination_pincode = null;
477 rajveer 5113
    }
5114
 
3430 rajveer 5115
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5116
    public boolean isSetDestination_pincode() {
5117
      return this.destination_pincode != null;
477 rajveer 5118
    }
5119
 
648 chandransh 5120
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5121
      if (!value) {
648 chandransh 5122
        this.destination_pincode = null;
477 rajveer 5123
      }
5124
    }
5125
 
715 rajveer 5126
    public long getItem_id() {
648 chandransh 5127
      return this.item_id;
477 rajveer 5128
    }
5129
 
3430 rajveer 5130
    public void setItem_id(long item_id) {
648 chandransh 5131
      this.item_id = item_id;
715 rajveer 5132
      setItem_idIsSet(true);
477 rajveer 5133
    }
5134
 
648 chandransh 5135
    public void unsetItem_id() {
715 rajveer 5136
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5137
    }
5138
 
3430 rajveer 5139
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5140
    public boolean isSetItem_id() {
715 rajveer 5141
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5142
    }
5143
 
648 chandransh 5144
    public void setItem_idIsSet(boolean value) {
715 rajveer 5145
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5146
    }
5147
 
3044 chandransh 5148
    /**
5149
     * 
5150
     * @see DeliveryType
5151
     */
5152
    public DeliveryType getType() {
5153
      return this.type;
5154
    }
5155
 
5156
    /**
5157
     * 
5158
     * @see DeliveryType
5159
     */
3430 rajveer 5160
    public void setType(DeliveryType type) {
3044 chandransh 5161
      this.type = type;
5162
    }
5163
 
5164
    public void unsetType() {
5165
      this.type = null;
5166
    }
5167
 
3430 rajveer 5168
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5169
    public boolean isSetType() {
5170
      return this.type != null;
5171
    }
5172
 
5173
    public void setTypeIsSet(boolean value) {
5174
      if (!value) {
5175
        this.type = null;
5176
      }
5177
    }
5178
 
5766 rajveer 5179
    /**
5180
     * 
5181
     * @see PickUpType
5182
     */
5183
    public PickUpType getPickUp() {
5184
      return this.pickUp;
5185
    }
5186
 
5187
    /**
5188
     * 
5189
     * @see PickUpType
5190
     */
5191
    public void setPickUp(PickUpType pickUp) {
5192
      this.pickUp = pickUp;
5193
    }
5194
 
5195
    public void unsetPickUp() {
5196
      this.pickUp = null;
5197
    }
5198
 
5199
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5200
    public boolean isSetPickUp() {
5201
      return this.pickUp != null;
5202
    }
5203
 
5204
    public void setPickUpIsSet(boolean value) {
5205
      if (!value) {
5206
        this.pickUp = null;
5207
      }
5208
    }
5209
 
477 rajveer 5210
    public void setFieldValue(_Fields field, Object value) {
5211
      switch (field) {
648 chandransh 5212
      case DESTINATION_PINCODE:
477 rajveer 5213
        if (value == null) {
648 chandransh 5214
          unsetDestination_pincode();
477 rajveer 5215
        } else {
648 chandransh 5216
          setDestination_pincode((String)value);
477 rajveer 5217
        }
5218
        break;
5219
 
648 chandransh 5220
      case ITEM_ID:
477 rajveer 5221
        if (value == null) {
648 chandransh 5222
          unsetItem_id();
477 rajveer 5223
        } else {
715 rajveer 5224
          setItem_id((Long)value);
477 rajveer 5225
        }
5226
        break;
5227
 
3044 chandransh 5228
      case TYPE:
5229
        if (value == null) {
5230
          unsetType();
5231
        } else {
5232
          setType((DeliveryType)value);
5233
        }
5234
        break;
5235
 
5766 rajveer 5236
      case PICK_UP:
5237
        if (value == null) {
5238
          unsetPickUp();
5239
        } else {
5240
          setPickUp((PickUpType)value);
5241
        }
5242
        break;
5243
 
477 rajveer 5244
      }
5245
    }
5246
 
5247
    public Object getFieldValue(_Fields field) {
5248
      switch (field) {
648 chandransh 5249
      case DESTINATION_PINCODE:
5250
        return getDestination_pincode();
477 rajveer 5251
 
648 chandransh 5252
      case ITEM_ID:
3430 rajveer 5253
        return Long.valueOf(getItem_id());
477 rajveer 5254
 
3044 chandransh 5255
      case TYPE:
5256
        return getType();
5257
 
5766 rajveer 5258
      case PICK_UP:
5259
        return getPickUp();
5260
 
477 rajveer 5261
      }
5262
      throw new IllegalStateException();
5263
    }
5264
 
3430 rajveer 5265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5266
    public boolean isSet(_Fields field) {
5267
      if (field == null) {
5268
        throw new IllegalArgumentException();
5269
      }
477 rajveer 5270
 
5271
      switch (field) {
648 chandransh 5272
      case DESTINATION_PINCODE:
5273
        return isSetDestination_pincode();
5274
      case ITEM_ID:
5275
        return isSetItem_id();
3044 chandransh 5276
      case TYPE:
5277
        return isSetType();
5766 rajveer 5278
      case PICK_UP:
5279
        return isSetPickUp();
477 rajveer 5280
      }
5281
      throw new IllegalStateException();
5282
    }
5283
 
5284
    @Override
5285
    public boolean equals(Object that) {
5286
      if (that == null)
5287
        return false;
648 chandransh 5288
      if (that instanceof getLogisticsInfo_args)
5289
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5290
      return false;
5291
    }
5292
 
648 chandransh 5293
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5294
      if (that == null)
5295
        return false;
5296
 
648 chandransh 5297
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5298
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5299
      if (this_present_destination_pincode || that_present_destination_pincode) {
5300
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5301
          return false;
648 chandransh 5302
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5303
          return false;
5304
      }
5305
 
715 rajveer 5306
      boolean this_present_item_id = true;
5307
      boolean that_present_item_id = true;
648 chandransh 5308
      if (this_present_item_id || that_present_item_id) {
5309
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5310
          return false;
715 rajveer 5311
        if (this.item_id != that.item_id)
477 rajveer 5312
          return false;
5313
      }
5314
 
3044 chandransh 5315
      boolean this_present_type = true && this.isSetType();
5316
      boolean that_present_type = true && that.isSetType();
5317
      if (this_present_type || that_present_type) {
5318
        if (!(this_present_type && that_present_type))
5319
          return false;
5320
        if (!this.type.equals(that.type))
5321
          return false;
5322
      }
5323
 
5766 rajveer 5324
      boolean this_present_pickUp = true && this.isSetPickUp();
5325
      boolean that_present_pickUp = true && that.isSetPickUp();
5326
      if (this_present_pickUp || that_present_pickUp) {
5327
        if (!(this_present_pickUp && that_present_pickUp))
5328
          return false;
5329
        if (!this.pickUp.equals(that.pickUp))
5330
          return false;
5331
      }
5332
 
477 rajveer 5333
      return true;
5334
    }
5335
 
5336
    @Override
5337
    public int hashCode() {
5338
      return 0;
5339
    }
5340
 
648 chandransh 5341
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5342
      if (!getClass().equals(other.getClass())) {
5343
        return getClass().getName().compareTo(other.getClass().getName());
5344
      }
5345
 
5346
      int lastComparison = 0;
648 chandransh 5347
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5348
 
3430 rajveer 5349
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5350
      if (lastComparison != 0) {
5351
        return lastComparison;
5352
      }
3430 rajveer 5353
      if (isSetDestination_pincode()) {
5354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5355
        if (lastComparison != 0) {
5356
          return lastComparison;
5357
        }
477 rajveer 5358
      }
3430 rajveer 5359
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5360
      if (lastComparison != 0) {
5361
        return lastComparison;
5362
      }
3430 rajveer 5363
      if (isSetItem_id()) {
5364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5365
        if (lastComparison != 0) {
5366
          return lastComparison;
5367
        }
477 rajveer 5368
      }
3430 rajveer 5369
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5370
      if (lastComparison != 0) {
5371
        return lastComparison;
5372
      }
3430 rajveer 5373
      if (isSetType()) {
5374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5375
        if (lastComparison != 0) {
5376
          return lastComparison;
5377
        }
3044 chandransh 5378
      }
5766 rajveer 5379
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5380
      if (lastComparison != 0) {
5381
        return lastComparison;
5382
      }
5383
      if (isSetPickUp()) {
5384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5385
        if (lastComparison != 0) {
5386
          return lastComparison;
5387
        }
5388
      }
477 rajveer 5389
      return 0;
5390
    }
5391
 
3430 rajveer 5392
    public _Fields fieldForId(int fieldId) {
5393
      return _Fields.findByThriftId(fieldId);
5394
    }
5395
 
5396
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5397
      org.apache.thrift.protocol.TField field;
477 rajveer 5398
      iprot.readStructBegin();
5399
      while (true)
5400
      {
5401
        field = iprot.readFieldBegin();
3430 rajveer 5402
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5403
          break;
5404
        }
3430 rajveer 5405
        switch (field.id) {
5406
          case 1: // DESTINATION_PINCODE
5407
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5408
              this.destination_pincode = iprot.readString();
5409
            } else { 
5410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5411
            }
5412
            break;
5413
          case 2: // ITEM_ID
5414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5415
              this.item_id = iprot.readI64();
5416
              setItem_idIsSet(true);
5417
            } else { 
5418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5419
            }
5420
            break;
5421
          case 3: // TYPE
5422
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5423
              this.type = DeliveryType.findByValue(iprot.readI32());
5424
            } else { 
5425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5426
            }
5427
            break;
5766 rajveer 5428
          case 4: // PICK_UP
5429
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5430
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5431
            } else { 
5432
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5433
            }
5434
            break;
3430 rajveer 5435
          default:
5436
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5437
        }
3430 rajveer 5438
        iprot.readFieldEnd();
477 rajveer 5439
      }
5440
      iprot.readStructEnd();
5441
      validate();
5442
    }
5443
 
3430 rajveer 5444
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5445
      validate();
5446
 
5447
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5448
      if (this.destination_pincode != null) {
5449
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5450
        oprot.writeString(this.destination_pincode);
477 rajveer 5451
        oprot.writeFieldEnd();
5452
      }
715 rajveer 5453
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5454
      oprot.writeI64(this.item_id);
5455
      oprot.writeFieldEnd();
3044 chandransh 5456
      if (this.type != null) {
5457
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5458
        oprot.writeI32(this.type.getValue());
5459
        oprot.writeFieldEnd();
5460
      }
5766 rajveer 5461
      if (this.pickUp != null) {
5462
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5463
        oprot.writeI32(this.pickUp.getValue());
5464
        oprot.writeFieldEnd();
5465
      }
477 rajveer 5466
      oprot.writeFieldStop();
5467
      oprot.writeStructEnd();
5468
    }
5469
 
5470
    @Override
5471
    public String toString() {
648 chandransh 5472
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5473
      boolean first = true;
5474
 
648 chandransh 5475
      sb.append("destination_pincode:");
5476
      if (this.destination_pincode == null) {
477 rajveer 5477
        sb.append("null");
5478
      } else {
648 chandransh 5479
        sb.append(this.destination_pincode);
477 rajveer 5480
      }
5481
      first = false;
5482
      if (!first) sb.append(", ");
648 chandransh 5483
      sb.append("item_id:");
715 rajveer 5484
      sb.append(this.item_id);
477 rajveer 5485
      first = false;
3044 chandransh 5486
      if (!first) sb.append(", ");
5487
      sb.append("type:");
5488
      if (this.type == null) {
5489
        sb.append("null");
5490
      } else {
5491
        sb.append(this.type);
5492
      }
5493
      first = false;
5766 rajveer 5494
      if (!first) sb.append(", ");
5495
      sb.append("pickUp:");
5496
      if (this.pickUp == null) {
5497
        sb.append("null");
5498
      } else {
5499
        sb.append(this.pickUp);
5500
      }
5501
      first = false;
477 rajveer 5502
      sb.append(")");
5503
      return sb.toString();
5504
    }
5505
 
3430 rajveer 5506
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5507
      // check for required fields
5508
    }
5509
 
3430 rajveer 5510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5511
      try {
5512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5513
      } catch (org.apache.thrift.TException te) {
5514
        throw new java.io.IOException(te);
5515
      }
5516
    }
5517
 
5518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5519
      try {
5520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5521
      } catch (org.apache.thrift.TException te) {
5522
        throw new java.io.IOException(te);
5523
      }
5524
    }
5525
 
477 rajveer 5526
  }
5527
 
3430 rajveer 5528
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5530
 
3430 rajveer 5531
    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);
5532
    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 5533
 
3430 rajveer 5534
    private LogisticsInfo success; // required
5535
    private LogisticsServiceException se; // required
477 rajveer 5536
 
5537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5538
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5539
      SUCCESS((short)0, "success"),
5540
      SE((short)1, "se");
477 rajveer 5541
 
5542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5543
 
5544
      static {
5545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5546
          byName.put(field.getFieldName(), field);
5547
        }
5548
      }
5549
 
5550
      /**
5551
       * Find the _Fields constant that matches fieldId, or null if its not found.
5552
       */
5553
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5554
        switch(fieldId) {
5555
          case 0: // SUCCESS
5556
            return SUCCESS;
5557
          case 1: // SE
5558
            return SE;
5559
          default:
5560
            return null;
5561
        }
477 rajveer 5562
      }
5563
 
5564
      /**
5565
       * Find the _Fields constant that matches fieldId, throwing an exception
5566
       * if it is not found.
5567
       */
5568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5569
        _Fields fields = findByThriftId(fieldId);
5570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5571
        return fields;
5572
      }
5573
 
5574
      /**
5575
       * Find the _Fields constant that matches name, or null if its not found.
5576
       */
5577
      public static _Fields findByName(String name) {
5578
        return byName.get(name);
5579
      }
5580
 
5581
      private final short _thriftId;
5582
      private final String _fieldName;
5583
 
5584
      _Fields(short thriftId, String fieldName) {
5585
        _thriftId = thriftId;
5586
        _fieldName = fieldName;
5587
      }
5588
 
5589
      public short getThriftFieldId() {
5590
        return _thriftId;
5591
      }
5592
 
5593
      public String getFieldName() {
5594
        return _fieldName;
5595
      }
5596
    }
5597
 
412 ashish 5598
    // isset id assignments
5599
 
3430 rajveer 5600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5601
    static {
3430 rajveer 5602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5603
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5604
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5605
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5609
    }
5610
 
648 chandransh 5611
    public getLogisticsInfo_result() {
412 ashish 5612
    }
5613
 
648 chandransh 5614
    public getLogisticsInfo_result(
5615
      LogisticsInfo success,
5616
      LogisticsServiceException se)
412 ashish 5617
    {
5618
      this();
648 chandransh 5619
      this.success = success;
5620
      this.se = se;
412 ashish 5621
    }
5622
 
5623
    /**
5624
     * Performs a deep copy on <i>other</i>.
5625
     */
648 chandransh 5626
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5627
      if (other.isSetSuccess()) {
5628
        this.success = new LogisticsInfo(other.success);
412 ashish 5629
      }
648 chandransh 5630
      if (other.isSetSe()) {
5631
        this.se = new LogisticsServiceException(other.se);
5632
      }
412 ashish 5633
    }
5634
 
648 chandransh 5635
    public getLogisticsInfo_result deepCopy() {
5636
      return new getLogisticsInfo_result(this);
412 ashish 5637
    }
5638
 
3430 rajveer 5639
    @Override
5640
    public void clear() {
5641
      this.success = null;
5642
      this.se = null;
412 ashish 5643
    }
5644
 
648 chandransh 5645
    public LogisticsInfo getSuccess() {
5646
      return this.success;
412 ashish 5647
    }
5648
 
3430 rajveer 5649
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5650
      this.success = success;
412 ashish 5651
    }
5652
 
648 chandransh 5653
    public void unsetSuccess() {
5654
      this.success = null;
412 ashish 5655
    }
5656
 
3430 rajveer 5657
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5658
    public boolean isSetSuccess() {
5659
      return this.success != null;
412 ashish 5660
    }
5661
 
648 chandransh 5662
    public void setSuccessIsSet(boolean value) {
412 ashish 5663
      if (!value) {
648 chandransh 5664
        this.success = null;
412 ashish 5665
      }
5666
    }
5667
 
648 chandransh 5668
    public LogisticsServiceException getSe() {
5669
      return this.se;
412 ashish 5670
    }
5671
 
3430 rajveer 5672
    public void setSe(LogisticsServiceException se) {
648 chandransh 5673
      this.se = se;
412 ashish 5674
    }
5675
 
648 chandransh 5676
    public void unsetSe() {
5677
      this.se = null;
412 ashish 5678
    }
5679
 
3430 rajveer 5680
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5681
    public boolean isSetSe() {
5682
      return this.se != null;
412 ashish 5683
    }
5684
 
648 chandransh 5685
    public void setSeIsSet(boolean value) {
5686
      if (!value) {
5687
        this.se = null;
5688
      }
412 ashish 5689
    }
5690
 
5691
    public void setFieldValue(_Fields field, Object value) {
5692
      switch (field) {
648 chandransh 5693
      case SUCCESS:
412 ashish 5694
        if (value == null) {
648 chandransh 5695
          unsetSuccess();
412 ashish 5696
        } else {
648 chandransh 5697
          setSuccess((LogisticsInfo)value);
412 ashish 5698
        }
5699
        break;
5700
 
648 chandransh 5701
      case SE:
412 ashish 5702
        if (value == null) {
648 chandransh 5703
          unsetSe();
412 ashish 5704
        } else {
648 chandransh 5705
          setSe((LogisticsServiceException)value);
412 ashish 5706
        }
5707
        break;
5708
 
5709
      }
5710
    }
5711
 
5712
    public Object getFieldValue(_Fields field) {
5713
      switch (field) {
648 chandransh 5714
      case SUCCESS:
5715
        return getSuccess();
412 ashish 5716
 
648 chandransh 5717
      case SE:
5718
        return getSe();
412 ashish 5719
 
5720
      }
5721
      throw new IllegalStateException();
5722
    }
5723
 
3430 rajveer 5724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5725
    public boolean isSet(_Fields field) {
5726
      if (field == null) {
5727
        throw new IllegalArgumentException();
5728
      }
412 ashish 5729
 
5730
      switch (field) {
648 chandransh 5731
      case SUCCESS:
5732
        return isSetSuccess();
5733
      case SE:
5734
        return isSetSe();
412 ashish 5735
      }
5736
      throw new IllegalStateException();
5737
    }
5738
 
5739
    @Override
5740
    public boolean equals(Object that) {
5741
      if (that == null)
5742
        return false;
648 chandransh 5743
      if (that instanceof getLogisticsInfo_result)
5744
        return this.equals((getLogisticsInfo_result)that);
412 ashish 5745
      return false;
5746
    }
5747
 
648 chandransh 5748
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 5749
      if (that == null)
5750
        return false;
5751
 
648 chandransh 5752
      boolean this_present_success = true && this.isSetSuccess();
5753
      boolean that_present_success = true && that.isSetSuccess();
5754
      if (this_present_success || that_present_success) {
5755
        if (!(this_present_success && that_present_success))
412 ashish 5756
          return false;
648 chandransh 5757
        if (!this.success.equals(that.success))
412 ashish 5758
          return false;
5759
      }
5760
 
648 chandransh 5761
      boolean this_present_se = true && this.isSetSe();
5762
      boolean that_present_se = true && that.isSetSe();
5763
      if (this_present_se || that_present_se) {
5764
        if (!(this_present_se && that_present_se))
412 ashish 5765
          return false;
648 chandransh 5766
        if (!this.se.equals(that.se))
412 ashish 5767
          return false;
5768
      }
5769
 
5770
      return true;
5771
    }
5772
 
5773
    @Override
5774
    public int hashCode() {
5775
      return 0;
5776
    }
5777
 
648 chandransh 5778
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 5779
      if (!getClass().equals(other.getClass())) {
5780
        return getClass().getName().compareTo(other.getClass().getName());
5781
      }
5782
 
5783
      int lastComparison = 0;
648 chandransh 5784
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 5785
 
3430 rajveer 5786
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5787
      if (lastComparison != 0) {
5788
        return lastComparison;
5789
      }
3430 rajveer 5790
      if (isSetSuccess()) {
5791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5792
        if (lastComparison != 0) {
5793
          return lastComparison;
5794
        }
412 ashish 5795
      }
3430 rajveer 5796
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5797
      if (lastComparison != 0) {
5798
        return lastComparison;
5799
      }
3430 rajveer 5800
      if (isSetSe()) {
5801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5802
        if (lastComparison != 0) {
5803
          return lastComparison;
5804
        }
412 ashish 5805
      }
5806
      return 0;
5807
    }
5808
 
3430 rajveer 5809
    public _Fields fieldForId(int fieldId) {
5810
      return _Fields.findByThriftId(fieldId);
5811
    }
5812
 
5813
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5814
      org.apache.thrift.protocol.TField field;
412 ashish 5815
      iprot.readStructBegin();
5816
      while (true)
5817
      {
5818
        field = iprot.readFieldBegin();
3430 rajveer 5819
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5820
          break;
5821
        }
3430 rajveer 5822
        switch (field.id) {
5823
          case 0: // SUCCESS
5824
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5825
              this.success = new LogisticsInfo();
5826
              this.success.read(iprot);
5827
            } else { 
5828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5829
            }
5830
            break;
5831
          case 1: // SE
5832
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5833
              this.se = new LogisticsServiceException();
5834
              this.se.read(iprot);
5835
            } else { 
5836
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5837
            }
5838
            break;
5839
          default:
5840
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5841
        }
3430 rajveer 5842
        iprot.readFieldEnd();
412 ashish 5843
      }
5844
      iprot.readStructEnd();
5845
      validate();
5846
    }
5847
 
3430 rajveer 5848
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 5849
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 5850
 
648 chandransh 5851
      if (this.isSetSuccess()) {
5852
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5853
        this.success.write(oprot);
412 ashish 5854
        oprot.writeFieldEnd();
648 chandransh 5855
      } else if (this.isSetSe()) {
5856
        oprot.writeFieldBegin(SE_FIELD_DESC);
5857
        this.se.write(oprot);
5858
        oprot.writeFieldEnd();
412 ashish 5859
      }
5860
      oprot.writeFieldStop();
5861
      oprot.writeStructEnd();
5862
    }
5863
 
5864
    @Override
5865
    public String toString() {
648 chandransh 5866
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 5867
      boolean first = true;
5868
 
648 chandransh 5869
      sb.append("success:");
5870
      if (this.success == null) {
412 ashish 5871
        sb.append("null");
5872
      } else {
648 chandransh 5873
        sb.append(this.success);
412 ashish 5874
      }
5875
      first = false;
5876
      if (!first) sb.append(", ");
648 chandransh 5877
      sb.append("se:");
5878
      if (this.se == null) {
5879
        sb.append("null");
5880
      } else {
5881
        sb.append(this.se);
5882
      }
412 ashish 5883
      first = false;
5884
      sb.append(")");
5885
      return sb.toString();
5886
    }
5887
 
3430 rajveer 5888
    public void validate() throws org.apache.thrift.TException {
412 ashish 5889
      // check for required fields
5890
    }
5891
 
3430 rajveer 5892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5893
      try {
5894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5895
      } catch (org.apache.thrift.TException te) {
5896
        throw new java.io.IOException(te);
5897
      }
5898
    }
5899
 
5900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5901
      try {
5902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5903
      } catch (org.apache.thrift.TException te) {
5904
        throw new java.io.IOException(te);
5905
      }
5906
    }
5907
 
412 ashish 5908
  }
5909
 
3430 rajveer 5910
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
5911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 5912
 
3430 rajveer 5913
    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 5914
    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 5915
 
3430 rajveer 5916
    private long providerId; // required
5247 rajveer 5917
    private DeliveryType type; // required
412 ashish 5918
 
5919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 5921
      PROVIDER_ID((short)1, "providerId"),
5922
      /**
5923
       * 
5924
       * @see DeliveryType
5925
       */
5926
      TYPE((short)-1, "type");
412 ashish 5927
 
5928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5929
 
5930
      static {
5931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5932
          byName.put(field.getFieldName(), field);
5933
        }
5934
      }
5935
 
5936
      /**
5937
       * Find the _Fields constant that matches fieldId, or null if its not found.
5938
       */
5939
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5940
        switch(fieldId) {
5941
          case 1: // PROVIDER_ID
5942
            return PROVIDER_ID;
5247 rajveer 5943
          case -1: // TYPE
5944
            return TYPE;
3430 rajveer 5945
          default:
5946
            return null;
5947
        }
412 ashish 5948
      }
5949
 
5950
      /**
5951
       * Find the _Fields constant that matches fieldId, throwing an exception
5952
       * if it is not found.
5953
       */
5954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5955
        _Fields fields = findByThriftId(fieldId);
5956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5957
        return fields;
5958
      }
5959
 
5960
      /**
5961
       * Find the _Fields constant that matches name, or null if its not found.
5962
       */
5963
      public static _Fields findByName(String name) {
5964
        return byName.get(name);
5965
      }
5966
 
5967
      private final short _thriftId;
5968
      private final String _fieldName;
5969
 
5970
      _Fields(short thriftId, String fieldName) {
5971
        _thriftId = thriftId;
5972
        _fieldName = fieldName;
5973
      }
5974
 
5975
      public short getThriftFieldId() {
5976
        return _thriftId;
5977
      }
5978
 
5979
      public String getFieldName() {
5980
        return _fieldName;
5981
      }
5982
    }
5983
 
5984
    // isset id assignments
648 chandransh 5985
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 5986
    private BitSet __isset_bit_vector = new BitSet(1);
5987
 
3430 rajveer 5988
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5989
    static {
3430 rajveer 5990
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5991
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5992
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 5993
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5994
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 5995
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5996
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 5997
    }
5998
 
5999
    public getEmptyAWB_args() {
6000
    }
6001
 
6002
    public getEmptyAWB_args(
5247 rajveer 6003
      long providerId,
6004
      DeliveryType type)
412 ashish 6005
    {
6006
      this();
648 chandransh 6007
      this.providerId = providerId;
6008
      setProviderIdIsSet(true);
5247 rajveer 6009
      this.type = type;
412 ashish 6010
    }
6011
 
6012
    /**
6013
     * Performs a deep copy on <i>other</i>.
6014
     */
6015
    public getEmptyAWB_args(getEmptyAWB_args other) {
6016
      __isset_bit_vector.clear();
6017
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6018
      this.providerId = other.providerId;
5247 rajveer 6019
      if (other.isSetType()) {
6020
        this.type = other.type;
6021
      }
412 ashish 6022
    }
6023
 
6024
    public getEmptyAWB_args deepCopy() {
6025
      return new getEmptyAWB_args(this);
6026
    }
6027
 
3430 rajveer 6028
    @Override
6029
    public void clear() {
6030
      setProviderIdIsSet(false);
6031
      this.providerId = 0;
5247 rajveer 6032
      this.type = null;
412 ashish 6033
    }
6034
 
648 chandransh 6035
    public long getProviderId() {
6036
      return this.providerId;
412 ashish 6037
    }
6038
 
3430 rajveer 6039
    public void setProviderId(long providerId) {
648 chandransh 6040
      this.providerId = providerId;
6041
      setProviderIdIsSet(true);
412 ashish 6042
    }
6043
 
648 chandransh 6044
    public void unsetProviderId() {
6045
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6046
    }
6047
 
3430 rajveer 6048
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6049
    public boolean isSetProviderId() {
6050
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6051
    }
6052
 
648 chandransh 6053
    public void setProviderIdIsSet(boolean value) {
6054
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6055
    }
6056
 
5247 rajveer 6057
    /**
6058
     * 
6059
     * @see DeliveryType
6060
     */
6061
    public DeliveryType getType() {
6062
      return this.type;
6063
    }
6064
 
6065
    /**
6066
     * 
6067
     * @see DeliveryType
6068
     */
6069
    public void setType(DeliveryType type) {
6070
      this.type = type;
6071
    }
6072
 
6073
    public void unsetType() {
6074
      this.type = null;
6075
    }
6076
 
6077
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6078
    public boolean isSetType() {
6079
      return this.type != null;
6080
    }
6081
 
6082
    public void setTypeIsSet(boolean value) {
6083
      if (!value) {
6084
        this.type = null;
6085
      }
6086
    }
6087
 
412 ashish 6088
    public void setFieldValue(_Fields field, Object value) {
6089
      switch (field) {
6090
      case PROVIDER_ID:
6091
        if (value == null) {
648 chandransh 6092
          unsetProviderId();
412 ashish 6093
        } else {
648 chandransh 6094
          setProviderId((Long)value);
412 ashish 6095
        }
6096
        break;
6097
 
5247 rajveer 6098
      case TYPE:
6099
        if (value == null) {
6100
          unsetType();
6101
        } else {
6102
          setType((DeliveryType)value);
6103
        }
6104
        break;
6105
 
412 ashish 6106
      }
6107
    }
6108
 
6109
    public Object getFieldValue(_Fields field) {
6110
      switch (field) {
6111
      case PROVIDER_ID:
3430 rajveer 6112
        return Long.valueOf(getProviderId());
412 ashish 6113
 
5247 rajveer 6114
      case TYPE:
6115
        return getType();
6116
 
412 ashish 6117
      }
6118
      throw new IllegalStateException();
6119
    }
6120
 
3430 rajveer 6121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6122
    public boolean isSet(_Fields field) {
6123
      if (field == null) {
6124
        throw new IllegalArgumentException();
6125
      }
412 ashish 6126
 
6127
      switch (field) {
6128
      case PROVIDER_ID:
648 chandransh 6129
        return isSetProviderId();
5247 rajveer 6130
      case TYPE:
6131
        return isSetType();
412 ashish 6132
      }
6133
      throw new IllegalStateException();
6134
    }
6135
 
6136
    @Override
6137
    public boolean equals(Object that) {
6138
      if (that == null)
6139
        return false;
6140
      if (that instanceof getEmptyAWB_args)
6141
        return this.equals((getEmptyAWB_args)that);
6142
      return false;
6143
    }
6144
 
6145
    public boolean equals(getEmptyAWB_args that) {
6146
      if (that == null)
6147
        return false;
6148
 
648 chandransh 6149
      boolean this_present_providerId = true;
6150
      boolean that_present_providerId = true;
6151
      if (this_present_providerId || that_present_providerId) {
6152
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6153
          return false;
648 chandransh 6154
        if (this.providerId != that.providerId)
412 ashish 6155
          return false;
6156
      }
6157
 
5247 rajveer 6158
      boolean this_present_type = true && this.isSetType();
6159
      boolean that_present_type = true && that.isSetType();
6160
      if (this_present_type || that_present_type) {
6161
        if (!(this_present_type && that_present_type))
6162
          return false;
6163
        if (!this.type.equals(that.type))
6164
          return false;
6165
      }
6166
 
412 ashish 6167
      return true;
6168
    }
6169
 
6170
    @Override
6171
    public int hashCode() {
6172
      return 0;
6173
    }
6174
 
6175
    public int compareTo(getEmptyAWB_args other) {
6176
      if (!getClass().equals(other.getClass())) {
6177
        return getClass().getName().compareTo(other.getClass().getName());
6178
      }
6179
 
6180
      int lastComparison = 0;
6181
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6182
 
3430 rajveer 6183
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6184
      if (lastComparison != 0) {
6185
        return lastComparison;
6186
      }
3430 rajveer 6187
      if (isSetProviderId()) {
6188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6189
        if (lastComparison != 0) {
6190
          return lastComparison;
6191
        }
412 ashish 6192
      }
5247 rajveer 6193
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6194
      if (lastComparison != 0) {
6195
        return lastComparison;
6196
      }
6197
      if (isSetType()) {
6198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6199
        if (lastComparison != 0) {
6200
          return lastComparison;
6201
        }
6202
      }
412 ashish 6203
      return 0;
6204
    }
6205
 
3430 rajveer 6206
    public _Fields fieldForId(int fieldId) {
6207
      return _Fields.findByThriftId(fieldId);
6208
    }
6209
 
6210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6211
      org.apache.thrift.protocol.TField field;
412 ashish 6212
      iprot.readStructBegin();
6213
      while (true)
6214
      {
6215
        field = iprot.readFieldBegin();
3430 rajveer 6216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6217
          break;
6218
        }
3430 rajveer 6219
        switch (field.id) {
6220
          case 1: // PROVIDER_ID
6221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6222
              this.providerId = iprot.readI64();
6223
              setProviderIdIsSet(true);
6224
            } else { 
6225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6226
            }
6227
            break;
5247 rajveer 6228
          case -1: // TYPE
6229
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6230
              this.type = DeliveryType.findByValue(iprot.readI32());
6231
            } else { 
6232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6233
            }
6234
            break;
3430 rajveer 6235
          default:
6236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6237
        }
3430 rajveer 6238
        iprot.readFieldEnd();
412 ashish 6239
      }
6240
      iprot.readStructEnd();
6241
      validate();
6242
    }
6243
 
3430 rajveer 6244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6245
      validate();
6246
 
6247
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6248
      if (this.type != null) {
6249
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6250
        oprot.writeI32(this.type.getValue());
6251
        oprot.writeFieldEnd();
6252
      }
412 ashish 6253
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6254
      oprot.writeI64(this.providerId);
412 ashish 6255
      oprot.writeFieldEnd();
6256
      oprot.writeFieldStop();
6257
      oprot.writeStructEnd();
6258
    }
6259
 
6260
    @Override
6261
    public String toString() {
6262
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6263
      boolean first = true;
6264
 
648 chandransh 6265
      sb.append("providerId:");
6266
      sb.append(this.providerId);
412 ashish 6267
      first = false;
5247 rajveer 6268
      if (!first) sb.append(", ");
6269
      sb.append("type:");
6270
      if (this.type == null) {
6271
        sb.append("null");
6272
      } else {
6273
        sb.append(this.type);
6274
      }
6275
      first = false;
412 ashish 6276
      sb.append(")");
6277
      return sb.toString();
6278
    }
6279
 
3430 rajveer 6280
    public void validate() throws org.apache.thrift.TException {
412 ashish 6281
      // check for required fields
6282
    }
6283
 
3430 rajveer 6284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6285
      try {
6286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6287
      } catch (org.apache.thrift.TException te) {
6288
        throw new java.io.IOException(te);
6289
      }
6290
    }
6291
 
6292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6293
      try {
6294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6295
        __isset_bit_vector = new BitSet(1);
6296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6297
      } catch (org.apache.thrift.TException te) {
6298
        throw new java.io.IOException(te);
6299
      }
6300
    }
6301
 
412 ashish 6302
  }
6303
 
3430 rajveer 6304
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6306
 
3430 rajveer 6307
    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);
6308
    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 6309
 
3430 rajveer 6310
    private String success; // required
6311
    private LogisticsServiceException se; // required
412 ashish 6312
 
6313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6315
      SUCCESS((short)0, "success"),
6316
      SE((short)1, "se");
412 ashish 6317
 
6318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6319
 
6320
      static {
6321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6322
          byName.put(field.getFieldName(), field);
6323
        }
6324
      }
6325
 
6326
      /**
6327
       * Find the _Fields constant that matches fieldId, or null if its not found.
6328
       */
6329
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6330
        switch(fieldId) {
6331
          case 0: // SUCCESS
6332
            return SUCCESS;
6333
          case 1: // SE
6334
            return SE;
6335
          default:
6336
            return null;
6337
        }
412 ashish 6338
      }
6339
 
6340
      /**
6341
       * Find the _Fields constant that matches fieldId, throwing an exception
6342
       * if it is not found.
6343
       */
6344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6345
        _Fields fields = findByThriftId(fieldId);
6346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6347
        return fields;
6348
      }
6349
 
6350
      /**
6351
       * Find the _Fields constant that matches name, or null if its not found.
6352
       */
6353
      public static _Fields findByName(String name) {
6354
        return byName.get(name);
6355
      }
6356
 
6357
      private final short _thriftId;
6358
      private final String _fieldName;
6359
 
6360
      _Fields(short thriftId, String fieldName) {
6361
        _thriftId = thriftId;
6362
        _fieldName = fieldName;
6363
      }
6364
 
6365
      public short getThriftFieldId() {
6366
        return _thriftId;
6367
      }
6368
 
6369
      public String getFieldName() {
6370
        return _fieldName;
6371
      }
6372
    }
6373
 
6374
    // isset id assignments
6375
 
3430 rajveer 6376
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6377
    static {
3430 rajveer 6378
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6379
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6381
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6385
    }
6386
 
6387
    public getEmptyAWB_result() {
6388
    }
6389
 
6390
    public getEmptyAWB_result(
648 chandransh 6391
      String success,
6392
      LogisticsServiceException se)
412 ashish 6393
    {
6394
      this();
6395
      this.success = success;
648 chandransh 6396
      this.se = se;
412 ashish 6397
    }
6398
 
6399
    /**
6400
     * Performs a deep copy on <i>other</i>.
6401
     */
6402
    public getEmptyAWB_result(getEmptyAWB_result other) {
6403
      if (other.isSetSuccess()) {
6404
        this.success = other.success;
6405
      }
648 chandransh 6406
      if (other.isSetSe()) {
6407
        this.se = new LogisticsServiceException(other.se);
6408
      }
412 ashish 6409
    }
6410
 
6411
    public getEmptyAWB_result deepCopy() {
6412
      return new getEmptyAWB_result(this);
6413
    }
6414
 
3430 rajveer 6415
    @Override
6416
    public void clear() {
6417
      this.success = null;
6418
      this.se = null;
412 ashish 6419
    }
6420
 
6421
    public String getSuccess() {
6422
      return this.success;
6423
    }
6424
 
3430 rajveer 6425
    public void setSuccess(String success) {
412 ashish 6426
      this.success = success;
6427
    }
6428
 
6429
    public void unsetSuccess() {
6430
      this.success = null;
6431
    }
6432
 
3430 rajveer 6433
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6434
    public boolean isSetSuccess() {
6435
      return this.success != null;
6436
    }
6437
 
6438
    public void setSuccessIsSet(boolean value) {
6439
      if (!value) {
6440
        this.success = null;
6441
      }
6442
    }
6443
 
648 chandransh 6444
    public LogisticsServiceException getSe() {
6445
      return this.se;
412 ashish 6446
    }
6447
 
3430 rajveer 6448
    public void setSe(LogisticsServiceException se) {
648 chandransh 6449
      this.se = se;
412 ashish 6450
    }
6451
 
648 chandransh 6452
    public void unsetSe() {
6453
      this.se = null;
412 ashish 6454
    }
6455
 
3430 rajveer 6456
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6457
    public boolean isSetSe() {
6458
      return this.se != null;
412 ashish 6459
    }
6460
 
648 chandransh 6461
    public void setSeIsSet(boolean value) {
412 ashish 6462
      if (!value) {
648 chandransh 6463
        this.se = null;
412 ashish 6464
      }
6465
    }
6466
 
6467
    public void setFieldValue(_Fields field, Object value) {
6468
      switch (field) {
6469
      case SUCCESS:
6470
        if (value == null) {
6471
          unsetSuccess();
6472
        } else {
648 chandransh 6473
          setSuccess((String)value);
412 ashish 6474
        }
6475
        break;
6476
 
648 chandransh 6477
      case SE:
6478
        if (value == null) {
6479
          unsetSe();
6480
        } else {
6481
          setSe((LogisticsServiceException)value);
6482
        }
6483
        break;
6484
 
412 ashish 6485
      }
6486
    }
6487
 
6488
    public Object getFieldValue(_Fields field) {
6489
      switch (field) {
6490
      case SUCCESS:
6491
        return getSuccess();
6492
 
648 chandransh 6493
      case SE:
6494
        return getSe();
6495
 
412 ashish 6496
      }
6497
      throw new IllegalStateException();
6498
    }
6499
 
3430 rajveer 6500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6501
    public boolean isSet(_Fields field) {
6502
      if (field == null) {
6503
        throw new IllegalArgumentException();
6504
      }
412 ashish 6505
 
6506
      switch (field) {
6507
      case SUCCESS:
6508
        return isSetSuccess();
648 chandransh 6509
      case SE:
6510
        return isSetSe();
412 ashish 6511
      }
6512
      throw new IllegalStateException();
6513
    }
6514
 
6515
    @Override
6516
    public boolean equals(Object that) {
6517
      if (that == null)
6518
        return false;
648 chandransh 6519
      if (that instanceof getEmptyAWB_result)
6520
        return this.equals((getEmptyAWB_result)that);
412 ashish 6521
      return false;
6522
    }
6523
 
648 chandransh 6524
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6525
      if (that == null)
6526
        return false;
6527
 
6528
      boolean this_present_success = true && this.isSetSuccess();
6529
      boolean that_present_success = true && that.isSetSuccess();
6530
      if (this_present_success || that_present_success) {
6531
        if (!(this_present_success && that_present_success))
6532
          return false;
6533
        if (!this.success.equals(that.success))
6534
          return false;
6535
      }
6536
 
648 chandransh 6537
      boolean this_present_se = true && this.isSetSe();
6538
      boolean that_present_se = true && that.isSetSe();
6539
      if (this_present_se || that_present_se) {
6540
        if (!(this_present_se && that_present_se))
6541
          return false;
6542
        if (!this.se.equals(that.se))
6543
          return false;
6544
      }
6545
 
412 ashish 6546
      return true;
6547
    }
6548
 
6549
    @Override
6550
    public int hashCode() {
6551
      return 0;
6552
    }
6553
 
648 chandransh 6554
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6555
      if (!getClass().equals(other.getClass())) {
6556
        return getClass().getName().compareTo(other.getClass().getName());
6557
      }
6558
 
6559
      int lastComparison = 0;
648 chandransh 6560
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6561
 
3430 rajveer 6562
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6563
      if (lastComparison != 0) {
6564
        return lastComparison;
6565
      }
3430 rajveer 6566
      if (isSetSuccess()) {
6567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6568
        if (lastComparison != 0) {
6569
          return lastComparison;
6570
        }
412 ashish 6571
      }
3430 rajveer 6572
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6573
      if (lastComparison != 0) {
6574
        return lastComparison;
6575
      }
3430 rajveer 6576
      if (isSetSe()) {
6577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6578
        if (lastComparison != 0) {
6579
          return lastComparison;
6580
        }
412 ashish 6581
      }
6582
      return 0;
6583
    }
6584
 
3430 rajveer 6585
    public _Fields fieldForId(int fieldId) {
6586
      return _Fields.findByThriftId(fieldId);
6587
    }
6588
 
6589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6590
      org.apache.thrift.protocol.TField field;
412 ashish 6591
      iprot.readStructBegin();
6592
      while (true)
6593
      {
6594
        field = iprot.readFieldBegin();
3430 rajveer 6595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6596
          break;
6597
        }
3430 rajveer 6598
        switch (field.id) {
6599
          case 0: // SUCCESS
6600
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6601
              this.success = iprot.readString();
6602
            } else { 
6603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6604
            }
6605
            break;
6606
          case 1: // SE
6607
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6608
              this.se = new LogisticsServiceException();
6609
              this.se.read(iprot);
6610
            } else { 
6611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6612
            }
6613
            break;
6614
          default:
6615
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6616
        }
3430 rajveer 6617
        iprot.readFieldEnd();
412 ashish 6618
      }
6619
      iprot.readStructEnd();
6620
      validate();
6621
    }
6622
 
3430 rajveer 6623
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6624
      oprot.writeStructBegin(STRUCT_DESC);
6625
 
6626
      if (this.isSetSuccess()) {
6627
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6628
        oprot.writeString(this.success);
412 ashish 6629
        oprot.writeFieldEnd();
648 chandransh 6630
      } else if (this.isSetSe()) {
6631
        oprot.writeFieldBegin(SE_FIELD_DESC);
6632
        this.se.write(oprot);
6633
        oprot.writeFieldEnd();
412 ashish 6634
      }
6635
      oprot.writeFieldStop();
6636
      oprot.writeStructEnd();
6637
    }
6638
 
6639
    @Override
6640
    public String toString() {
648 chandransh 6641
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6642
      boolean first = true;
6643
 
6644
      sb.append("success:");
6645
      if (this.success == null) {
6646
        sb.append("null");
6647
      } else {
6648
        sb.append(this.success);
6649
      }
6650
      first = false;
648 chandransh 6651
      if (!first) sb.append(", ");
6652
      sb.append("se:");
6653
      if (this.se == null) {
442 rajveer 6654
        sb.append("null");
6655
      } else {
648 chandransh 6656
        sb.append(this.se);
442 rajveer 6657
      }
6658
      first = false;
6659
      sb.append(")");
6660
      return sb.toString();
6661
    }
6662
 
3430 rajveer 6663
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6664
      // check for required fields
6665
    }
6666
 
3430 rajveer 6667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6668
      try {
6669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6670
      } catch (org.apache.thrift.TException te) {
6671
        throw new java.io.IOException(te);
6672
      }
6673
    }
6674
 
6675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6676
      try {
6677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6678
      } catch (org.apache.thrift.TException te) {
6679
        throw new java.io.IOException(te);
6680
      }
6681
    }
6682
 
442 rajveer 6683
  }
6684
 
3430 rajveer 6685
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6687
 
6643 rajveer 6688
    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 6689
    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 6690
 
6643 rajveer 6691
    private String awbNumber; // required
3430 rajveer 6692
    private long providerId; // required
442 rajveer 6693
 
6694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6696
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6697
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6698
 
6699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6700
 
6701
      static {
6702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6703
          byName.put(field.getFieldName(), field);
6704
        }
6705
      }
6706
 
6707
      /**
6708
       * Find the _Fields constant that matches fieldId, or null if its not found.
6709
       */
6710
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6711
        switch(fieldId) {
6643 rajveer 6712
          case 1: // AWB_NUMBER
6713
            return AWB_NUMBER;
3430 rajveer 6714
          case 2: // PROVIDER_ID
6715
            return PROVIDER_ID;
6716
          default:
6717
            return null;
6718
        }
442 rajveer 6719
      }
6720
 
6721
      /**
6722
       * Find the _Fields constant that matches fieldId, throwing an exception
6723
       * if it is not found.
6724
       */
6725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6726
        _Fields fields = findByThriftId(fieldId);
6727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6728
        return fields;
6729
      }
6730
 
6731
      /**
6732
       * Find the _Fields constant that matches name, or null if its not found.
6733
       */
6734
      public static _Fields findByName(String name) {
6735
        return byName.get(name);
6736
      }
6737
 
6738
      private final short _thriftId;
6739
      private final String _fieldName;
6740
 
6741
      _Fields(short thriftId, String fieldName) {
6742
        _thriftId = thriftId;
6743
        _fieldName = fieldName;
6744
      }
6745
 
6746
      public short getThriftFieldId() {
6747
        return _thriftId;
6748
      }
6749
 
6750
      public String getFieldName() {
6751
        return _fieldName;
6752
      }
6753
    }
6754
 
6755
    // isset id assignments
648 chandransh 6756
    private static final int __PROVIDERID_ISSET_ID = 0;
6757
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 6758
 
3430 rajveer 6759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 6760
    static {
3430 rajveer 6761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 6762
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 6763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6764
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 6768
    }
6769
 
648 chandransh 6770
    public getShipmentInfo_args() {
442 rajveer 6771
    }
6772
 
648 chandransh 6773
    public getShipmentInfo_args(
6643 rajveer 6774
      String awbNumber,
648 chandransh 6775
      long providerId)
442 rajveer 6776
    {
6777
      this();
6643 rajveer 6778
      this.awbNumber = awbNumber;
648 chandransh 6779
      this.providerId = providerId;
6780
      setProviderIdIsSet(true);
442 rajveer 6781
    }
6782
 
6783
    /**
6784
     * Performs a deep copy on <i>other</i>.
6785
     */
648 chandransh 6786
    public getShipmentInfo_args(getShipmentInfo_args other) {
6787
      __isset_bit_vector.clear();
6788
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 6789
      if (other.isSetAwbNumber()) {
6790
        this.awbNumber = other.awbNumber;
442 rajveer 6791
      }
648 chandransh 6792
      this.providerId = other.providerId;
442 rajveer 6793
    }
6794
 
648 chandransh 6795
    public getShipmentInfo_args deepCopy() {
6796
      return new getShipmentInfo_args(this);
442 rajveer 6797
    }
6798
 
3430 rajveer 6799
    @Override
6800
    public void clear() {
6643 rajveer 6801
      this.awbNumber = null;
3430 rajveer 6802
      setProviderIdIsSet(false);
6803
      this.providerId = 0;
442 rajveer 6804
    }
6805
 
6643 rajveer 6806
    public String getAwbNumber() {
6807
      return this.awbNumber;
442 rajveer 6808
    }
6809
 
6643 rajveer 6810
    public void setAwbNumber(String awbNumber) {
6811
      this.awbNumber = awbNumber;
442 rajveer 6812
    }
6813
 
6643 rajveer 6814
    public void unsetAwbNumber() {
6815
      this.awbNumber = null;
442 rajveer 6816
    }
6817
 
6643 rajveer 6818
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
6819
    public boolean isSetAwbNumber() {
6820
      return this.awbNumber != null;
442 rajveer 6821
    }
6822
 
6643 rajveer 6823
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 6824
      if (!value) {
6643 rajveer 6825
        this.awbNumber = null;
442 rajveer 6826
      }
6827
    }
6828
 
648 chandransh 6829
    public long getProviderId() {
6830
      return this.providerId;
442 rajveer 6831
    }
6832
 
3430 rajveer 6833
    public void setProviderId(long providerId) {
648 chandransh 6834
      this.providerId = providerId;
6835
      setProviderIdIsSet(true);
442 rajveer 6836
    }
6837
 
648 chandransh 6838
    public void unsetProviderId() {
6839
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 6840
    }
6841
 
3430 rajveer 6842
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6843
    public boolean isSetProviderId() {
6844
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 6845
    }
6846
 
648 chandransh 6847
    public void setProviderIdIsSet(boolean value) {
6848
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 6849
    }
6850
 
6851
    public void setFieldValue(_Fields field, Object value) {
6852
      switch (field) {
6643 rajveer 6853
      case AWB_NUMBER:
442 rajveer 6854
        if (value == null) {
6643 rajveer 6855
          unsetAwbNumber();
442 rajveer 6856
        } else {
6643 rajveer 6857
          setAwbNumber((String)value);
442 rajveer 6858
        }
6859
        break;
6860
 
648 chandransh 6861
      case PROVIDER_ID:
442 rajveer 6862
        if (value == null) {
648 chandransh 6863
          unsetProviderId();
442 rajveer 6864
        } else {
648 chandransh 6865
          setProviderId((Long)value);
442 rajveer 6866
        }
6867
        break;
6868
 
6869
      }
6870
    }
6871
 
6872
    public Object getFieldValue(_Fields field) {
6873
      switch (field) {
6643 rajveer 6874
      case AWB_NUMBER:
6875
        return getAwbNumber();
442 rajveer 6876
 
648 chandransh 6877
      case PROVIDER_ID:
3430 rajveer 6878
        return Long.valueOf(getProviderId());
442 rajveer 6879
 
6880
      }
6881
      throw new IllegalStateException();
6882
    }
6883
 
3430 rajveer 6884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6885
    public boolean isSet(_Fields field) {
6886
      if (field == null) {
6887
        throw new IllegalArgumentException();
6888
      }
442 rajveer 6889
 
6890
      switch (field) {
6643 rajveer 6891
      case AWB_NUMBER:
6892
        return isSetAwbNumber();
648 chandransh 6893
      case PROVIDER_ID:
6894
        return isSetProviderId();
442 rajveer 6895
      }
6896
      throw new IllegalStateException();
6897
    }
6898
 
6899
    @Override
6900
    public boolean equals(Object that) {
6901
      if (that == null)
6902
        return false;
648 chandransh 6903
      if (that instanceof getShipmentInfo_args)
6904
        return this.equals((getShipmentInfo_args)that);
442 rajveer 6905
      return false;
6906
    }
6907
 
648 chandransh 6908
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 6909
      if (that == null)
6910
        return false;
6911
 
6643 rajveer 6912
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
6913
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
6914
      if (this_present_awbNumber || that_present_awbNumber) {
6915
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 6916
          return false;
6643 rajveer 6917
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 6918
          return false;
6919
      }
6920
 
648 chandransh 6921
      boolean this_present_providerId = true;
6922
      boolean that_present_providerId = true;
6923
      if (this_present_providerId || that_present_providerId) {
6924
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 6925
          return false;
648 chandransh 6926
        if (this.providerId != that.providerId)
442 rajveer 6927
          return false;
6928
      }
6929
 
6930
      return true;
6931
    }
6932
 
6933
    @Override
6934
    public int hashCode() {
6935
      return 0;
6936
    }
6937
 
648 chandransh 6938
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 6939
      if (!getClass().equals(other.getClass())) {
6940
        return getClass().getName().compareTo(other.getClass().getName());
6941
      }
6942
 
6943
      int lastComparison = 0;
648 chandransh 6944
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 6945
 
6643 rajveer 6946
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 6947
      if (lastComparison != 0) {
6948
        return lastComparison;
6949
      }
6643 rajveer 6950
      if (isSetAwbNumber()) {
6951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 6952
        if (lastComparison != 0) {
6953
          return lastComparison;
6954
        }
442 rajveer 6955
      }
3430 rajveer 6956
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 6957
      if (lastComparison != 0) {
6958
        return lastComparison;
6959
      }
3430 rajveer 6960
      if (isSetProviderId()) {
6961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6962
        if (lastComparison != 0) {
6963
          return lastComparison;
6964
        }
442 rajveer 6965
      }
6966
      return 0;
6967
    }
6968
 
3430 rajveer 6969
    public _Fields fieldForId(int fieldId) {
6970
      return _Fields.findByThriftId(fieldId);
6971
    }
6972
 
6973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6974
      org.apache.thrift.protocol.TField field;
442 rajveer 6975
      iprot.readStructBegin();
6976
      while (true)
6977
      {
6978
        field = iprot.readFieldBegin();
3430 rajveer 6979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 6980
          break;
6981
        }
3430 rajveer 6982
        switch (field.id) {
6643 rajveer 6983
          case 1: // AWB_NUMBER
3430 rajveer 6984
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 6985
              this.awbNumber = iprot.readString();
3430 rajveer 6986
            } else { 
6987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6988
            }
6989
            break;
6990
          case 2: // PROVIDER_ID
6991
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6992
              this.providerId = iprot.readI64();
6993
              setProviderIdIsSet(true);
6994
            } else { 
6995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6996
            }
6997
            break;
6998
          default:
6999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7000
        }
3430 rajveer 7001
        iprot.readFieldEnd();
442 rajveer 7002
      }
7003
      iprot.readStructEnd();
7004
      validate();
7005
    }
7006
 
3430 rajveer 7007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7008
      validate();
7009
 
7010
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7011
      if (this.awbNumber != null) {
7012
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7013
        oprot.writeString(this.awbNumber);
442 rajveer 7014
        oprot.writeFieldEnd();
7015
      }
648 chandransh 7016
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7017
      oprot.writeI64(this.providerId);
7018
      oprot.writeFieldEnd();
442 rajveer 7019
      oprot.writeFieldStop();
7020
      oprot.writeStructEnd();
7021
    }
7022
 
7023
    @Override
7024
    public String toString() {
648 chandransh 7025
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7026
      boolean first = true;
7027
 
6643 rajveer 7028
      sb.append("awbNumber:");
7029
      if (this.awbNumber == null) {
442 rajveer 7030
        sb.append("null");
7031
      } else {
6643 rajveer 7032
        sb.append(this.awbNumber);
442 rajveer 7033
      }
7034
      first = false;
7035
      if (!first) sb.append(", ");
648 chandransh 7036
      sb.append("providerId:");
7037
      sb.append(this.providerId);
442 rajveer 7038
      first = false;
7039
      sb.append(")");
7040
      return sb.toString();
7041
    }
7042
 
3430 rajveer 7043
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7044
      // check for required fields
7045
    }
7046
 
3430 rajveer 7047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7048
      try {
7049
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7050
      } catch (org.apache.thrift.TException te) {
7051
        throw new java.io.IOException(te);
7052
      }
7053
    }
7054
 
7055
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7056
      try {
7057
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7058
      } catch (org.apache.thrift.TException te) {
7059
        throw new java.io.IOException(te);
7060
      }
7061
    }
7062
 
442 rajveer 7063
  }
7064
 
3430 rajveer 7065
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7067
 
3430 rajveer 7068
    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);
7069
    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 7070
 
3430 rajveer 7071
    private List<AwbUpdate> success; // required
7072
    private LogisticsServiceException se; // required
412 ashish 7073
 
7074
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7075
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7076
      SUCCESS((short)0, "success"),
7077
      SE((short)1, "se");
412 ashish 7078
 
7079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7080
 
7081
      static {
7082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7083
          byName.put(field.getFieldName(), field);
7084
        }
7085
      }
7086
 
7087
      /**
7088
       * Find the _Fields constant that matches fieldId, or null if its not found.
7089
       */
7090
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7091
        switch(fieldId) {
7092
          case 0: // SUCCESS
7093
            return SUCCESS;
7094
          case 1: // SE
7095
            return SE;
7096
          default:
7097
            return null;
7098
        }
412 ashish 7099
      }
7100
 
7101
      /**
7102
       * Find the _Fields constant that matches fieldId, throwing an exception
7103
       * if it is not found.
7104
       */
7105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7106
        _Fields fields = findByThriftId(fieldId);
7107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7108
        return fields;
7109
      }
7110
 
7111
      /**
7112
       * Find the _Fields constant that matches name, or null if its not found.
7113
       */
7114
      public static _Fields findByName(String name) {
7115
        return byName.get(name);
7116
      }
7117
 
7118
      private final short _thriftId;
7119
      private final String _fieldName;
7120
 
7121
      _Fields(short thriftId, String fieldName) {
7122
        _thriftId = thriftId;
7123
        _fieldName = fieldName;
7124
      }
7125
 
7126
      public short getThriftFieldId() {
7127
        return _thriftId;
7128
      }
7129
 
7130
      public String getFieldName() {
7131
        return _fieldName;
7132
      }
7133
    }
7134
 
7135
    // isset id assignments
7136
 
3430 rajveer 7137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7138
    static {
3430 rajveer 7139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7140
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7141
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7142
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7143
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7147
    }
7148
 
7149
    public getShipmentInfo_result() {
7150
    }
7151
 
7152
    public getShipmentInfo_result(
648 chandransh 7153
      List<AwbUpdate> success,
7154
      LogisticsServiceException se)
412 ashish 7155
    {
7156
      this();
7157
      this.success = success;
648 chandransh 7158
      this.se = se;
412 ashish 7159
    }
7160
 
7161
    /**
7162
     * Performs a deep copy on <i>other</i>.
7163
     */
7164
    public getShipmentInfo_result(getShipmentInfo_result other) {
7165
      if (other.isSetSuccess()) {
648 chandransh 7166
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7167
        for (AwbUpdate other_element : other.success) {
7168
          __this__success.add(new AwbUpdate(other_element));
7169
        }
7170
        this.success = __this__success;
412 ashish 7171
      }
648 chandransh 7172
      if (other.isSetSe()) {
7173
        this.se = new LogisticsServiceException(other.se);
7174
      }
412 ashish 7175
    }
7176
 
7177
    public getShipmentInfo_result deepCopy() {
7178
      return new getShipmentInfo_result(this);
7179
    }
7180
 
3430 rajveer 7181
    @Override
7182
    public void clear() {
7183
      this.success = null;
7184
      this.se = null;
412 ashish 7185
    }
7186
 
7187
    public int getSuccessSize() {
7188
      return (this.success == null) ? 0 : this.success.size();
7189
    }
7190
 
648 chandransh 7191
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7192
      return (this.success == null) ? null : this.success.iterator();
7193
    }
7194
 
648 chandransh 7195
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7196
      if (this.success == null) {
648 chandransh 7197
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7198
      }
7199
      this.success.add(elem);
7200
    }
7201
 
648 chandransh 7202
    public List<AwbUpdate> getSuccess() {
412 ashish 7203
      return this.success;
7204
    }
7205
 
3430 rajveer 7206
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7207
      this.success = success;
7208
    }
7209
 
7210
    public void unsetSuccess() {
7211
      this.success = null;
7212
    }
7213
 
3430 rajveer 7214
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7215
    public boolean isSetSuccess() {
7216
      return this.success != null;
7217
    }
7218
 
7219
    public void setSuccessIsSet(boolean value) {
7220
      if (!value) {
7221
        this.success = null;
7222
      }
7223
    }
7224
 
648 chandransh 7225
    public LogisticsServiceException getSe() {
7226
      return this.se;
412 ashish 7227
    }
7228
 
3430 rajveer 7229
    public void setSe(LogisticsServiceException se) {
648 chandransh 7230
      this.se = se;
412 ashish 7231
    }
7232
 
648 chandransh 7233
    public void unsetSe() {
7234
      this.se = null;
412 ashish 7235
    }
7236
 
3430 rajveer 7237
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7238
    public boolean isSetSe() {
7239
      return this.se != null;
412 ashish 7240
    }
7241
 
648 chandransh 7242
    public void setSeIsSet(boolean value) {
7243
      if (!value) {
7244
        this.se = null;
412 ashish 7245
      }
7246
    }
7247
 
7248
    public void setFieldValue(_Fields field, Object value) {
7249
      switch (field) {
648 chandransh 7250
      case SUCCESS:
412 ashish 7251
        if (value == null) {
648 chandransh 7252
          unsetSuccess();
412 ashish 7253
        } else {
648 chandransh 7254
          setSuccess((List<AwbUpdate>)value);
412 ashish 7255
        }
7256
        break;
7257
 
648 chandransh 7258
      case SE:
412 ashish 7259
        if (value == null) {
648 chandransh 7260
          unsetSe();
412 ashish 7261
        } else {
648 chandransh 7262
          setSe((LogisticsServiceException)value);
412 ashish 7263
        }
7264
        break;
7265
 
7266
      }
7267
    }
7268
 
7269
    public Object getFieldValue(_Fields field) {
7270
      switch (field) {
648 chandransh 7271
      case SUCCESS:
7272
        return getSuccess();
412 ashish 7273
 
648 chandransh 7274
      case SE:
7275
        return getSe();
412 ashish 7276
 
7277
      }
7278
      throw new IllegalStateException();
7279
    }
7280
 
3430 rajveer 7281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7282
    public boolean isSet(_Fields field) {
7283
      if (field == null) {
7284
        throw new IllegalArgumentException();
7285
      }
412 ashish 7286
 
7287
      switch (field) {
648 chandransh 7288
      case SUCCESS:
7289
        return isSetSuccess();
7290
      case SE:
7291
        return isSetSe();
412 ashish 7292
      }
7293
      throw new IllegalStateException();
7294
    }
7295
 
7296
    @Override
7297
    public boolean equals(Object that) {
7298
      if (that == null)
7299
        return false;
648 chandransh 7300
      if (that instanceof getShipmentInfo_result)
7301
        return this.equals((getShipmentInfo_result)that);
412 ashish 7302
      return false;
7303
    }
7304
 
648 chandransh 7305
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7306
      if (that == null)
7307
        return false;
7308
 
648 chandransh 7309
      boolean this_present_success = true && this.isSetSuccess();
7310
      boolean that_present_success = true && that.isSetSuccess();
7311
      if (this_present_success || that_present_success) {
7312
        if (!(this_present_success && that_present_success))
412 ashish 7313
          return false;
648 chandransh 7314
        if (!this.success.equals(that.success))
412 ashish 7315
          return false;
7316
      }
7317
 
648 chandransh 7318
      boolean this_present_se = true && this.isSetSe();
7319
      boolean that_present_se = true && that.isSetSe();
7320
      if (this_present_se || that_present_se) {
7321
        if (!(this_present_se && that_present_se))
412 ashish 7322
          return false;
648 chandransh 7323
        if (!this.se.equals(that.se))
412 ashish 7324
          return false;
7325
      }
7326
 
7327
      return true;
7328
    }
7329
 
7330
    @Override
7331
    public int hashCode() {
7332
      return 0;
7333
    }
7334
 
648 chandransh 7335
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7336
      if (!getClass().equals(other.getClass())) {
7337
        return getClass().getName().compareTo(other.getClass().getName());
7338
      }
7339
 
7340
      int lastComparison = 0;
648 chandransh 7341
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7342
 
3430 rajveer 7343
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7344
      if (lastComparison != 0) {
7345
        return lastComparison;
7346
      }
3430 rajveer 7347
      if (isSetSuccess()) {
7348
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7349
        if (lastComparison != 0) {
7350
          return lastComparison;
7351
        }
412 ashish 7352
      }
3430 rajveer 7353
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7354
      if (lastComparison != 0) {
7355
        return lastComparison;
7356
      }
3430 rajveer 7357
      if (isSetSe()) {
7358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7359
        if (lastComparison != 0) {
7360
          return lastComparison;
7361
        }
412 ashish 7362
      }
7363
      return 0;
7364
    }
7365
 
3430 rajveer 7366
    public _Fields fieldForId(int fieldId) {
7367
      return _Fields.findByThriftId(fieldId);
7368
    }
7369
 
7370
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7371
      org.apache.thrift.protocol.TField field;
412 ashish 7372
      iprot.readStructBegin();
7373
      while (true)
7374
      {
7375
        field = iprot.readFieldBegin();
3430 rajveer 7376
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7377
          break;
7378
        }
3430 rajveer 7379
        switch (field.id) {
7380
          case 0: // SUCCESS
7381
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7382
              {
7792 anupam.sin 7383
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7384
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7385
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7386
                {
7792 anupam.sin 7387
                  AwbUpdate _elem10; // required
7388
                  _elem10 = new AwbUpdate();
7389
                  _elem10.read(iprot);
7390
                  this.success.add(_elem10);
412 ashish 7391
                }
3430 rajveer 7392
                iprot.readListEnd();
412 ashish 7393
              }
3430 rajveer 7394
            } else { 
7395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7396
            }
7397
            break;
7398
          case 1: // SE
7399
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7400
              this.se = new LogisticsServiceException();
7401
              this.se.read(iprot);
7402
            } else { 
7403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7404
            }
7405
            break;
7406
          default:
7407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7408
        }
3430 rajveer 7409
        iprot.readFieldEnd();
412 ashish 7410
      }
7411
      iprot.readStructEnd();
7412
      validate();
7413
    }
7414
 
3430 rajveer 7415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7416
      oprot.writeStructBegin(STRUCT_DESC);
7417
 
7418
      if (this.isSetSuccess()) {
7419
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7420
        {
3430 rajveer 7421
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7422
          for (AwbUpdate _iter11 : this.success)
412 ashish 7423
          {
7792 anupam.sin 7424
            _iter11.write(oprot);
412 ashish 7425
          }
7426
          oprot.writeListEnd();
7427
        }
7428
        oprot.writeFieldEnd();
648 chandransh 7429
      } else if (this.isSetSe()) {
7430
        oprot.writeFieldBegin(SE_FIELD_DESC);
7431
        this.se.write(oprot);
7432
        oprot.writeFieldEnd();
412 ashish 7433
      }
7434
      oprot.writeFieldStop();
7435
      oprot.writeStructEnd();
7436
    }
7437
 
7438
    @Override
7439
    public String toString() {
648 chandransh 7440
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7441
      boolean first = true;
7442
 
7443
      sb.append("success:");
7444
      if (this.success == null) {
7445
        sb.append("null");
7446
      } else {
7447
        sb.append(this.success);
7448
      }
7449
      first = false;
648 chandransh 7450
      if (!first) sb.append(", ");
7451
      sb.append("se:");
7452
      if (this.se == null) {
7453
        sb.append("null");
7454
      } else {
7455
        sb.append(this.se);
7456
      }
7457
      first = false;
412 ashish 7458
      sb.append(")");
7459
      return sb.toString();
7460
    }
7461
 
3430 rajveer 7462
    public void validate() throws org.apache.thrift.TException {
412 ashish 7463
      // check for required fields
7464
    }
7465
 
3430 rajveer 7466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7467
      try {
7468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7469
      } catch (org.apache.thrift.TException te) {
7470
        throw new java.io.IOException(te);
7471
      }
7472
    }
7473
 
7474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7475
      try {
7476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7477
      } catch (org.apache.thrift.TException te) {
7478
        throw new java.io.IOException(te);
7479
      }
7480
    }
7481
 
412 ashish 7482
  }
7483
 
6643 rajveer 7484
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7486
 
7487
    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);
7488
 
7489
    private AwbUpdate update; // required
7490
 
7491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7493
      UPDATE((short)1, "update");
7494
 
7495
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7496
 
7497
      static {
7498
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7499
          byName.put(field.getFieldName(), field);
7500
        }
7501
      }
7502
 
7503
      /**
7504
       * Find the _Fields constant that matches fieldId, or null if its not found.
7505
       */
7506
      public static _Fields findByThriftId(int fieldId) {
7507
        switch(fieldId) {
7508
          case 1: // UPDATE
7509
            return UPDATE;
7510
          default:
7511
            return null;
7512
        }
7513
      }
7514
 
7515
      /**
7516
       * Find the _Fields constant that matches fieldId, throwing an exception
7517
       * if it is not found.
7518
       */
7519
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7520
        _Fields fields = findByThriftId(fieldId);
7521
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7522
        return fields;
7523
      }
7524
 
7525
      /**
7526
       * Find the _Fields constant that matches name, or null if its not found.
7527
       */
7528
      public static _Fields findByName(String name) {
7529
        return byName.get(name);
7530
      }
7531
 
7532
      private final short _thriftId;
7533
      private final String _fieldName;
7534
 
7535
      _Fields(short thriftId, String fieldName) {
7536
        _thriftId = thriftId;
7537
        _fieldName = fieldName;
7538
      }
7539
 
7540
      public short getThriftFieldId() {
7541
        return _thriftId;
7542
      }
7543
 
7544
      public String getFieldName() {
7545
        return _fieldName;
7546
      }
7547
    }
7548
 
7549
    // isset id assignments
7550
 
7551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7552
    static {
7553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7554
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7555
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7558
    }
7559
 
7560
    public storeShipmentInfo_args() {
7561
    }
7562
 
7563
    public storeShipmentInfo_args(
7564
      AwbUpdate update)
7565
    {
7566
      this();
7567
      this.update = update;
7568
    }
7569
 
7570
    /**
7571
     * Performs a deep copy on <i>other</i>.
7572
     */
7573
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7574
      if (other.isSetUpdate()) {
7575
        this.update = new AwbUpdate(other.update);
7576
      }
7577
    }
7578
 
7579
    public storeShipmentInfo_args deepCopy() {
7580
      return new storeShipmentInfo_args(this);
7581
    }
7582
 
7583
    @Override
7584
    public void clear() {
7585
      this.update = null;
7586
    }
7587
 
7588
    public AwbUpdate getUpdate() {
7589
      return this.update;
7590
    }
7591
 
7592
    public void setUpdate(AwbUpdate update) {
7593
      this.update = update;
7594
    }
7595
 
7596
    public void unsetUpdate() {
7597
      this.update = null;
7598
    }
7599
 
7600
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7601
    public boolean isSetUpdate() {
7602
      return this.update != null;
7603
    }
7604
 
7605
    public void setUpdateIsSet(boolean value) {
7606
      if (!value) {
7607
        this.update = null;
7608
      }
7609
    }
7610
 
7611
    public void setFieldValue(_Fields field, Object value) {
7612
      switch (field) {
7613
      case UPDATE:
7614
        if (value == null) {
7615
          unsetUpdate();
7616
        } else {
7617
          setUpdate((AwbUpdate)value);
7618
        }
7619
        break;
7620
 
7621
      }
7622
    }
7623
 
7624
    public Object getFieldValue(_Fields field) {
7625
      switch (field) {
7626
      case UPDATE:
7627
        return getUpdate();
7628
 
7629
      }
7630
      throw new IllegalStateException();
7631
    }
7632
 
7633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7634
    public boolean isSet(_Fields field) {
7635
      if (field == null) {
7636
        throw new IllegalArgumentException();
7637
      }
7638
 
7639
      switch (field) {
7640
      case UPDATE:
7641
        return isSetUpdate();
7642
      }
7643
      throw new IllegalStateException();
7644
    }
7645
 
7646
    @Override
7647
    public boolean equals(Object that) {
7648
      if (that == null)
7649
        return false;
7650
      if (that instanceof storeShipmentInfo_args)
7651
        return this.equals((storeShipmentInfo_args)that);
7652
      return false;
7653
    }
7654
 
7655
    public boolean equals(storeShipmentInfo_args that) {
7656
      if (that == null)
7657
        return false;
7658
 
7659
      boolean this_present_update = true && this.isSetUpdate();
7660
      boolean that_present_update = true && that.isSetUpdate();
7661
      if (this_present_update || that_present_update) {
7662
        if (!(this_present_update && that_present_update))
7663
          return false;
7664
        if (!this.update.equals(that.update))
7665
          return false;
7666
      }
7667
 
7668
      return true;
7669
    }
7670
 
7671
    @Override
7672
    public int hashCode() {
7673
      return 0;
7674
    }
7675
 
7676
    public int compareTo(storeShipmentInfo_args other) {
7677
      if (!getClass().equals(other.getClass())) {
7678
        return getClass().getName().compareTo(other.getClass().getName());
7679
      }
7680
 
7681
      int lastComparison = 0;
7682
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7683
 
7684
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7685
      if (lastComparison != 0) {
7686
        return lastComparison;
7687
      }
7688
      if (isSetUpdate()) {
7689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7690
        if (lastComparison != 0) {
7691
          return lastComparison;
7692
        }
7693
      }
7694
      return 0;
7695
    }
7696
 
7697
    public _Fields fieldForId(int fieldId) {
7698
      return _Fields.findByThriftId(fieldId);
7699
    }
7700
 
7701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7702
      org.apache.thrift.protocol.TField field;
7703
      iprot.readStructBegin();
7704
      while (true)
7705
      {
7706
        field = iprot.readFieldBegin();
7707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7708
          break;
7709
        }
7710
        switch (field.id) {
7711
          case 1: // UPDATE
7712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7713
              this.update = new AwbUpdate();
7714
              this.update.read(iprot);
7715
            } else { 
7716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7717
            }
7718
            break;
7719
          default:
7720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7721
        }
7722
        iprot.readFieldEnd();
7723
      }
7724
      iprot.readStructEnd();
7725
      validate();
7726
    }
7727
 
7728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7729
      validate();
7730
 
7731
      oprot.writeStructBegin(STRUCT_DESC);
7732
      if (this.update != null) {
7733
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7734
        this.update.write(oprot);
7735
        oprot.writeFieldEnd();
7736
      }
7737
      oprot.writeFieldStop();
7738
      oprot.writeStructEnd();
7739
    }
7740
 
7741
    @Override
7742
    public String toString() {
7743
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
7744
      boolean first = true;
7745
 
7746
      sb.append("update:");
7747
      if (this.update == null) {
7748
        sb.append("null");
7749
      } else {
7750
        sb.append(this.update);
7751
      }
7752
      first = false;
7753
      sb.append(")");
7754
      return sb.toString();
7755
    }
7756
 
7757
    public void validate() throws org.apache.thrift.TException {
7758
      // check for required fields
7759
    }
7760
 
7761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7762
      try {
7763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7764
      } catch (org.apache.thrift.TException te) {
7765
        throw new java.io.IOException(te);
7766
      }
7767
    }
7768
 
7769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7770
      try {
7771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7772
      } catch (org.apache.thrift.TException te) {
7773
        throw new java.io.IOException(te);
7774
      }
7775
    }
7776
 
7777
  }
7778
 
7779
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
7781
 
7782
    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);
7783
 
7784
    private LogisticsServiceException se; // required
7785
 
7786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788
      SE((short)1, "se");
7789
 
7790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7791
 
7792
      static {
7793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7794
          byName.put(field.getFieldName(), field);
7795
        }
7796
      }
7797
 
7798
      /**
7799
       * Find the _Fields constant that matches fieldId, or null if its not found.
7800
       */
7801
      public static _Fields findByThriftId(int fieldId) {
7802
        switch(fieldId) {
7803
          case 1: // SE
7804
            return SE;
7805
          default:
7806
            return null;
7807
        }
7808
      }
7809
 
7810
      /**
7811
       * Find the _Fields constant that matches fieldId, throwing an exception
7812
       * if it is not found.
7813
       */
7814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7815
        _Fields fields = findByThriftId(fieldId);
7816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7817
        return fields;
7818
      }
7819
 
7820
      /**
7821
       * Find the _Fields constant that matches name, or null if its not found.
7822
       */
7823
      public static _Fields findByName(String name) {
7824
        return byName.get(name);
7825
      }
7826
 
7827
      private final short _thriftId;
7828
      private final String _fieldName;
7829
 
7830
      _Fields(short thriftId, String fieldName) {
7831
        _thriftId = thriftId;
7832
        _fieldName = fieldName;
7833
      }
7834
 
7835
      public short getThriftFieldId() {
7836
        return _thriftId;
7837
      }
7838
 
7839
      public String getFieldName() {
7840
        return _fieldName;
7841
      }
7842
    }
7843
 
7844
    // isset id assignments
7845
 
7846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7847
    static {
7848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7849
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7851
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7852
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
7853
    }
7854
 
7855
    public storeShipmentInfo_result() {
7856
    }
7857
 
7858
    public storeShipmentInfo_result(
7859
      LogisticsServiceException se)
7860
    {
7861
      this();
7862
      this.se = se;
7863
    }
7864
 
7865
    /**
7866
     * Performs a deep copy on <i>other</i>.
7867
     */
7868
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
7869
      if (other.isSetSe()) {
7870
        this.se = new LogisticsServiceException(other.se);
7871
      }
7872
    }
7873
 
7874
    public storeShipmentInfo_result deepCopy() {
7875
      return new storeShipmentInfo_result(this);
7876
    }
7877
 
7878
    @Override
7879
    public void clear() {
7880
      this.se = null;
7881
    }
7882
 
7883
    public LogisticsServiceException getSe() {
7884
      return this.se;
7885
    }
7886
 
7887
    public void setSe(LogisticsServiceException se) {
7888
      this.se = se;
7889
    }
7890
 
7891
    public void unsetSe() {
7892
      this.se = null;
7893
    }
7894
 
7895
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7896
    public boolean isSetSe() {
7897
      return this.se != null;
7898
    }
7899
 
7900
    public void setSeIsSet(boolean value) {
7901
      if (!value) {
7902
        this.se = null;
7903
      }
7904
    }
7905
 
7906
    public void setFieldValue(_Fields field, Object value) {
7907
      switch (field) {
7908
      case SE:
7909
        if (value == null) {
7910
          unsetSe();
7911
        } else {
7912
          setSe((LogisticsServiceException)value);
7913
        }
7914
        break;
7915
 
7916
      }
7917
    }
7918
 
7919
    public Object getFieldValue(_Fields field) {
7920
      switch (field) {
7921
      case SE:
7922
        return getSe();
7923
 
7924
      }
7925
      throw new IllegalStateException();
7926
    }
7927
 
7928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7929
    public boolean isSet(_Fields field) {
7930
      if (field == null) {
7931
        throw new IllegalArgumentException();
7932
      }
7933
 
7934
      switch (field) {
7935
      case SE:
7936
        return isSetSe();
7937
      }
7938
      throw new IllegalStateException();
7939
    }
7940
 
7941
    @Override
7942
    public boolean equals(Object that) {
7943
      if (that == null)
7944
        return false;
7945
      if (that instanceof storeShipmentInfo_result)
7946
        return this.equals((storeShipmentInfo_result)that);
7947
      return false;
7948
    }
7949
 
7950
    public boolean equals(storeShipmentInfo_result that) {
7951
      if (that == null)
7952
        return false;
7953
 
7954
      boolean this_present_se = true && this.isSetSe();
7955
      boolean that_present_se = true && that.isSetSe();
7956
      if (this_present_se || that_present_se) {
7957
        if (!(this_present_se && that_present_se))
7958
          return false;
7959
        if (!this.se.equals(that.se))
7960
          return false;
7961
      }
7962
 
7963
      return true;
7964
    }
7965
 
7966
    @Override
7967
    public int hashCode() {
7968
      return 0;
7969
    }
7970
 
7971
    public int compareTo(storeShipmentInfo_result other) {
7972
      if (!getClass().equals(other.getClass())) {
7973
        return getClass().getName().compareTo(other.getClass().getName());
7974
      }
7975
 
7976
      int lastComparison = 0;
7977
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
7978
 
7979
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7980
      if (lastComparison != 0) {
7981
        return lastComparison;
7982
      }
7983
      if (isSetSe()) {
7984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7985
        if (lastComparison != 0) {
7986
          return lastComparison;
7987
        }
7988
      }
7989
      return 0;
7990
    }
7991
 
7992
    public _Fields fieldForId(int fieldId) {
7993
      return _Fields.findByThriftId(fieldId);
7994
    }
7995
 
7996
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7997
      org.apache.thrift.protocol.TField field;
7998
      iprot.readStructBegin();
7999
      while (true)
8000
      {
8001
        field = iprot.readFieldBegin();
8002
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8003
          break;
8004
        }
8005
        switch (field.id) {
8006
          case 1: // SE
8007
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8008
              this.se = new LogisticsServiceException();
8009
              this.se.read(iprot);
8010
            } else { 
8011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8012
            }
8013
            break;
8014
          default:
8015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8016
        }
8017
        iprot.readFieldEnd();
8018
      }
8019
      iprot.readStructEnd();
8020
      validate();
8021
    }
8022
 
8023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8024
      oprot.writeStructBegin(STRUCT_DESC);
8025
 
8026
      if (this.isSetSe()) {
8027
        oprot.writeFieldBegin(SE_FIELD_DESC);
8028
        this.se.write(oprot);
8029
        oprot.writeFieldEnd();
8030
      }
8031
      oprot.writeFieldStop();
8032
      oprot.writeStructEnd();
8033
    }
8034
 
8035
    @Override
8036
    public String toString() {
8037
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8038
      boolean first = true;
8039
 
8040
      sb.append("se:");
8041
      if (this.se == null) {
8042
        sb.append("null");
8043
      } else {
8044
        sb.append(this.se);
8045
      }
8046
      first = false;
8047
      sb.append(")");
8048
      return sb.toString();
8049
    }
8050
 
8051
    public void validate() throws org.apache.thrift.TException {
8052
      // check for required fields
8053
    }
8054
 
8055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8056
      try {
8057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8058
      } catch (org.apache.thrift.TException te) {
8059
        throw new java.io.IOException(te);
8060
      }
8061
    }
8062
 
8063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8064
      try {
8065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8066
      } catch (org.apache.thrift.TException te) {
8067
        throw new java.io.IOException(te);
8068
      }
8069
    }
8070
 
8071
  }
8072
 
3430 rajveer 8073
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8075
 
3430 rajveer 8076
    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);
8077
    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 8078
 
3430 rajveer 8079
    private long providerId; // required
8080
    private String pinCode; // required
730 chandransh 8081
 
8082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8083
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8084
      PROVIDER_ID((short)1, "providerId"),
8085
      PIN_CODE((short)2, "pinCode");
8086
 
8087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8088
 
8089
      static {
8090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8091
          byName.put(field.getFieldName(), field);
8092
        }
8093
      }
8094
 
8095
      /**
8096
       * Find the _Fields constant that matches fieldId, or null if its not found.
8097
       */
8098
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8099
        switch(fieldId) {
8100
          case 1: // PROVIDER_ID
8101
            return PROVIDER_ID;
8102
          case 2: // PIN_CODE
8103
            return PIN_CODE;
8104
          default:
8105
            return null;
8106
        }
730 chandransh 8107
      }
8108
 
8109
      /**
8110
       * Find the _Fields constant that matches fieldId, throwing an exception
8111
       * if it is not found.
8112
       */
8113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8114
        _Fields fields = findByThriftId(fieldId);
8115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8116
        return fields;
8117
      }
8118
 
8119
      /**
8120
       * Find the _Fields constant that matches name, or null if its not found.
8121
       */
8122
      public static _Fields findByName(String name) {
8123
        return byName.get(name);
8124
      }
8125
 
8126
      private final short _thriftId;
8127
      private final String _fieldName;
8128
 
8129
      _Fields(short thriftId, String fieldName) {
8130
        _thriftId = thriftId;
8131
        _fieldName = fieldName;
8132
      }
8133
 
8134
      public short getThriftFieldId() {
8135
        return _thriftId;
8136
      }
8137
 
8138
      public String getFieldName() {
8139
        return _fieldName;
8140
      }
8141
    }
8142
 
8143
    // isset id assignments
8144
    private static final int __PROVIDERID_ISSET_ID = 0;
8145
    private BitSet __isset_bit_vector = new BitSet(1);
8146
 
3430 rajveer 8147
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8148
    static {
3430 rajveer 8149
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8150
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8152
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8153
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8154
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8155
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8156
    }
8157
 
8158
    public getDestinationCode_args() {
8159
    }
8160
 
8161
    public getDestinationCode_args(
8162
      long providerId,
8163
      String pinCode)
8164
    {
8165
      this();
8166
      this.providerId = providerId;
8167
      setProviderIdIsSet(true);
8168
      this.pinCode = pinCode;
8169
    }
8170
 
8171
    /**
8172
     * Performs a deep copy on <i>other</i>.
8173
     */
8174
    public getDestinationCode_args(getDestinationCode_args other) {
8175
      __isset_bit_vector.clear();
8176
      __isset_bit_vector.or(other.__isset_bit_vector);
8177
      this.providerId = other.providerId;
8178
      if (other.isSetPinCode()) {
8179
        this.pinCode = other.pinCode;
8180
      }
8181
    }
8182
 
8183
    public getDestinationCode_args deepCopy() {
8184
      return new getDestinationCode_args(this);
8185
    }
8186
 
3430 rajveer 8187
    @Override
8188
    public void clear() {
8189
      setProviderIdIsSet(false);
8190
      this.providerId = 0;
8191
      this.pinCode = null;
730 chandransh 8192
    }
8193
 
8194
    public long getProviderId() {
8195
      return this.providerId;
8196
    }
8197
 
3430 rajveer 8198
    public void setProviderId(long providerId) {
730 chandransh 8199
      this.providerId = providerId;
8200
      setProviderIdIsSet(true);
8201
    }
8202
 
8203
    public void unsetProviderId() {
8204
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8205
    }
8206
 
3430 rajveer 8207
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8208
    public boolean isSetProviderId() {
8209
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8210
    }
8211
 
8212
    public void setProviderIdIsSet(boolean value) {
8213
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8214
    }
8215
 
8216
    public String getPinCode() {
8217
      return this.pinCode;
8218
    }
8219
 
3430 rajveer 8220
    public void setPinCode(String pinCode) {
730 chandransh 8221
      this.pinCode = pinCode;
8222
    }
8223
 
8224
    public void unsetPinCode() {
8225
      this.pinCode = null;
8226
    }
8227
 
3430 rajveer 8228
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8229
    public boolean isSetPinCode() {
8230
      return this.pinCode != null;
8231
    }
8232
 
8233
    public void setPinCodeIsSet(boolean value) {
8234
      if (!value) {
8235
        this.pinCode = null;
8236
      }
8237
    }
8238
 
8239
    public void setFieldValue(_Fields field, Object value) {
8240
      switch (field) {
8241
      case PROVIDER_ID:
8242
        if (value == null) {
8243
          unsetProviderId();
8244
        } else {
8245
          setProviderId((Long)value);
8246
        }
8247
        break;
8248
 
8249
      case PIN_CODE:
8250
        if (value == null) {
8251
          unsetPinCode();
8252
        } else {
8253
          setPinCode((String)value);
8254
        }
8255
        break;
8256
 
8257
      }
8258
    }
8259
 
8260
    public Object getFieldValue(_Fields field) {
8261
      switch (field) {
8262
      case PROVIDER_ID:
3430 rajveer 8263
        return Long.valueOf(getProviderId());
730 chandransh 8264
 
8265
      case PIN_CODE:
8266
        return getPinCode();
8267
 
8268
      }
8269
      throw new IllegalStateException();
8270
    }
8271
 
3430 rajveer 8272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8273
    public boolean isSet(_Fields field) {
8274
      if (field == null) {
8275
        throw new IllegalArgumentException();
8276
      }
730 chandransh 8277
 
8278
      switch (field) {
8279
      case PROVIDER_ID:
8280
        return isSetProviderId();
8281
      case PIN_CODE:
8282
        return isSetPinCode();
8283
      }
8284
      throw new IllegalStateException();
8285
    }
8286
 
8287
    @Override
8288
    public boolean equals(Object that) {
8289
      if (that == null)
8290
        return false;
8291
      if (that instanceof getDestinationCode_args)
8292
        return this.equals((getDestinationCode_args)that);
8293
      return false;
8294
    }
8295
 
8296
    public boolean equals(getDestinationCode_args that) {
8297
      if (that == null)
8298
        return false;
8299
 
8300
      boolean this_present_providerId = true;
8301
      boolean that_present_providerId = true;
8302
      if (this_present_providerId || that_present_providerId) {
8303
        if (!(this_present_providerId && that_present_providerId))
8304
          return false;
8305
        if (this.providerId != that.providerId)
8306
          return false;
8307
      }
8308
 
8309
      boolean this_present_pinCode = true && this.isSetPinCode();
8310
      boolean that_present_pinCode = true && that.isSetPinCode();
8311
      if (this_present_pinCode || that_present_pinCode) {
8312
        if (!(this_present_pinCode && that_present_pinCode))
8313
          return false;
8314
        if (!this.pinCode.equals(that.pinCode))
8315
          return false;
8316
      }
8317
 
8318
      return true;
8319
    }
8320
 
8321
    @Override
8322
    public int hashCode() {
8323
      return 0;
8324
    }
8325
 
8326
    public int compareTo(getDestinationCode_args other) {
8327
      if (!getClass().equals(other.getClass())) {
8328
        return getClass().getName().compareTo(other.getClass().getName());
8329
      }
8330
 
8331
      int lastComparison = 0;
8332
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8333
 
3430 rajveer 8334
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8335
      if (lastComparison != 0) {
8336
        return lastComparison;
8337
      }
3430 rajveer 8338
      if (isSetProviderId()) {
8339
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8340
        if (lastComparison != 0) {
8341
          return lastComparison;
8342
        }
730 chandransh 8343
      }
3430 rajveer 8344
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8345
      if (lastComparison != 0) {
8346
        return lastComparison;
8347
      }
3430 rajveer 8348
      if (isSetPinCode()) {
8349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8350
        if (lastComparison != 0) {
8351
          return lastComparison;
8352
        }
730 chandransh 8353
      }
8354
      return 0;
8355
    }
8356
 
3430 rajveer 8357
    public _Fields fieldForId(int fieldId) {
8358
      return _Fields.findByThriftId(fieldId);
8359
    }
8360
 
8361
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8362
      org.apache.thrift.protocol.TField field;
730 chandransh 8363
      iprot.readStructBegin();
8364
      while (true)
8365
      {
8366
        field = iprot.readFieldBegin();
3430 rajveer 8367
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8368
          break;
8369
        }
3430 rajveer 8370
        switch (field.id) {
8371
          case 1: // PROVIDER_ID
8372
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8373
              this.providerId = iprot.readI64();
8374
              setProviderIdIsSet(true);
8375
            } else { 
8376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8377
            }
8378
            break;
8379
          case 2: // PIN_CODE
8380
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8381
              this.pinCode = iprot.readString();
8382
            } else { 
8383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8384
            }
8385
            break;
8386
          default:
8387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8388
        }
3430 rajveer 8389
        iprot.readFieldEnd();
730 chandransh 8390
      }
8391
      iprot.readStructEnd();
8392
      validate();
8393
    }
8394
 
3430 rajveer 8395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8396
      validate();
8397
 
8398
      oprot.writeStructBegin(STRUCT_DESC);
8399
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8400
      oprot.writeI64(this.providerId);
8401
      oprot.writeFieldEnd();
8402
      if (this.pinCode != null) {
8403
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8404
        oprot.writeString(this.pinCode);
8405
        oprot.writeFieldEnd();
8406
      }
8407
      oprot.writeFieldStop();
8408
      oprot.writeStructEnd();
8409
    }
8410
 
8411
    @Override
8412
    public String toString() {
8413
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8414
      boolean first = true;
8415
 
8416
      sb.append("providerId:");
8417
      sb.append(this.providerId);
8418
      first = false;
8419
      if (!first) sb.append(", ");
8420
      sb.append("pinCode:");
8421
      if (this.pinCode == null) {
8422
        sb.append("null");
8423
      } else {
8424
        sb.append(this.pinCode);
8425
      }
8426
      first = false;
8427
      sb.append(")");
8428
      return sb.toString();
8429
    }
8430
 
3430 rajveer 8431
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8432
      // check for required fields
8433
    }
8434
 
3430 rajveer 8435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8436
      try {
8437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8438
      } catch (org.apache.thrift.TException te) {
8439
        throw new java.io.IOException(te);
8440
      }
8441
    }
8442
 
8443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8444
      try {
8445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8446
      } catch (org.apache.thrift.TException te) {
8447
        throw new java.io.IOException(te);
8448
      }
8449
    }
8450
 
730 chandransh 8451
  }
8452
 
3430 rajveer 8453
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8455
 
3430 rajveer 8456
    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);
8457
    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 8458
 
3430 rajveer 8459
    private String success; // required
8460
    private LogisticsServiceException se; // required
730 chandransh 8461
 
8462
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8463
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8464
      SUCCESS((short)0, "success"),
8465
      SE((short)1, "se");
8466
 
8467
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8468
 
8469
      static {
8470
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8471
          byName.put(field.getFieldName(), field);
8472
        }
8473
      }
8474
 
8475
      /**
8476
       * Find the _Fields constant that matches fieldId, or null if its not found.
8477
       */
8478
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8479
        switch(fieldId) {
8480
          case 0: // SUCCESS
8481
            return SUCCESS;
8482
          case 1: // SE
8483
            return SE;
8484
          default:
8485
            return null;
8486
        }
730 chandransh 8487
      }
8488
 
8489
      /**
8490
       * Find the _Fields constant that matches fieldId, throwing an exception
8491
       * if it is not found.
8492
       */
8493
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8494
        _Fields fields = findByThriftId(fieldId);
8495
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8496
        return fields;
8497
      }
8498
 
8499
      /**
8500
       * Find the _Fields constant that matches name, or null if its not found.
8501
       */
8502
      public static _Fields findByName(String name) {
8503
        return byName.get(name);
8504
      }
8505
 
8506
      private final short _thriftId;
8507
      private final String _fieldName;
8508
 
8509
      _Fields(short thriftId, String fieldName) {
8510
        _thriftId = thriftId;
8511
        _fieldName = fieldName;
8512
      }
8513
 
8514
      public short getThriftFieldId() {
8515
        return _thriftId;
8516
      }
8517
 
8518
      public String getFieldName() {
8519
        return _fieldName;
8520
      }
8521
    }
8522
 
8523
    // isset id assignments
8524
 
3430 rajveer 8525
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8526
    static {
3430 rajveer 8527
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8528
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8530
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8534
    }
8535
 
8536
    public getDestinationCode_result() {
8537
    }
8538
 
8539
    public getDestinationCode_result(
8540
      String success,
8541
      LogisticsServiceException se)
8542
    {
8543
      this();
8544
      this.success = success;
8545
      this.se = se;
8546
    }
8547
 
8548
    /**
8549
     * Performs a deep copy on <i>other</i>.
8550
     */
8551
    public getDestinationCode_result(getDestinationCode_result other) {
8552
      if (other.isSetSuccess()) {
8553
        this.success = other.success;
8554
      }
8555
      if (other.isSetSe()) {
8556
        this.se = new LogisticsServiceException(other.se);
8557
      }
8558
    }
8559
 
8560
    public getDestinationCode_result deepCopy() {
8561
      return new getDestinationCode_result(this);
8562
    }
8563
 
3430 rajveer 8564
    @Override
8565
    public void clear() {
8566
      this.success = null;
8567
      this.se = null;
730 chandransh 8568
    }
8569
 
8570
    public String getSuccess() {
8571
      return this.success;
8572
    }
8573
 
3430 rajveer 8574
    public void setSuccess(String success) {
730 chandransh 8575
      this.success = success;
8576
    }
8577
 
8578
    public void unsetSuccess() {
8579
      this.success = null;
8580
    }
8581
 
3430 rajveer 8582
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8583
    public boolean isSetSuccess() {
8584
      return this.success != null;
8585
    }
8586
 
8587
    public void setSuccessIsSet(boolean value) {
8588
      if (!value) {
8589
        this.success = null;
8590
      }
8591
    }
8592
 
8593
    public LogisticsServiceException getSe() {
8594
      return this.se;
8595
    }
8596
 
3430 rajveer 8597
    public void setSe(LogisticsServiceException se) {
730 chandransh 8598
      this.se = se;
8599
    }
8600
 
8601
    public void unsetSe() {
8602
      this.se = null;
8603
    }
8604
 
3430 rajveer 8605
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8606
    public boolean isSetSe() {
8607
      return this.se != null;
8608
    }
8609
 
8610
    public void setSeIsSet(boolean value) {
8611
      if (!value) {
8612
        this.se = null;
8613
      }
8614
    }
8615
 
8616
    public void setFieldValue(_Fields field, Object value) {
8617
      switch (field) {
8618
      case SUCCESS:
8619
        if (value == null) {
8620
          unsetSuccess();
8621
        } else {
8622
          setSuccess((String)value);
8623
        }
8624
        break;
8625
 
8626
      case SE:
8627
        if (value == null) {
8628
          unsetSe();
8629
        } else {
8630
          setSe((LogisticsServiceException)value);
8631
        }
8632
        break;
8633
 
8634
      }
8635
    }
8636
 
8637
    public Object getFieldValue(_Fields field) {
8638
      switch (field) {
8639
      case SUCCESS:
8640
        return getSuccess();
8641
 
8642
      case SE:
8643
        return getSe();
8644
 
8645
      }
8646
      throw new IllegalStateException();
8647
    }
8648
 
3430 rajveer 8649
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8650
    public boolean isSet(_Fields field) {
8651
      if (field == null) {
8652
        throw new IllegalArgumentException();
8653
      }
730 chandransh 8654
 
8655
      switch (field) {
8656
      case SUCCESS:
8657
        return isSetSuccess();
8658
      case SE:
8659
        return isSetSe();
8660
      }
8661
      throw new IllegalStateException();
8662
    }
8663
 
8664
    @Override
8665
    public boolean equals(Object that) {
8666
      if (that == null)
8667
        return false;
8668
      if (that instanceof getDestinationCode_result)
8669
        return this.equals((getDestinationCode_result)that);
8670
      return false;
8671
    }
8672
 
8673
    public boolean equals(getDestinationCode_result that) {
8674
      if (that == null)
8675
        return false;
8676
 
8677
      boolean this_present_success = true && this.isSetSuccess();
8678
      boolean that_present_success = true && that.isSetSuccess();
8679
      if (this_present_success || that_present_success) {
8680
        if (!(this_present_success && that_present_success))
8681
          return false;
8682
        if (!this.success.equals(that.success))
8683
          return false;
8684
      }
8685
 
8686
      boolean this_present_se = true && this.isSetSe();
8687
      boolean that_present_se = true && that.isSetSe();
8688
      if (this_present_se || that_present_se) {
8689
        if (!(this_present_se && that_present_se))
8690
          return false;
8691
        if (!this.se.equals(that.se))
8692
          return false;
8693
      }
8694
 
8695
      return true;
8696
    }
8697
 
8698
    @Override
8699
    public int hashCode() {
8700
      return 0;
8701
    }
8702
 
8703
    public int compareTo(getDestinationCode_result other) {
8704
      if (!getClass().equals(other.getClass())) {
8705
        return getClass().getName().compareTo(other.getClass().getName());
8706
      }
8707
 
8708
      int lastComparison = 0;
8709
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8710
 
3430 rajveer 8711
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8712
      if (lastComparison != 0) {
8713
        return lastComparison;
8714
      }
3430 rajveer 8715
      if (isSetSuccess()) {
8716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8717
        if (lastComparison != 0) {
8718
          return lastComparison;
8719
        }
730 chandransh 8720
      }
3430 rajveer 8721
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8722
      if (lastComparison != 0) {
8723
        return lastComparison;
8724
      }
3430 rajveer 8725
      if (isSetSe()) {
8726
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8727
        if (lastComparison != 0) {
8728
          return lastComparison;
8729
        }
730 chandransh 8730
      }
8731
      return 0;
8732
    }
8733
 
3430 rajveer 8734
    public _Fields fieldForId(int fieldId) {
8735
      return _Fields.findByThriftId(fieldId);
8736
    }
8737
 
8738
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8739
      org.apache.thrift.protocol.TField field;
730 chandransh 8740
      iprot.readStructBegin();
8741
      while (true)
8742
      {
8743
        field = iprot.readFieldBegin();
3430 rajveer 8744
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8745
          break;
8746
        }
3430 rajveer 8747
        switch (field.id) {
8748
          case 0: // SUCCESS
8749
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8750
              this.success = iprot.readString();
8751
            } else { 
8752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8753
            }
8754
            break;
8755
          case 1: // SE
8756
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8757
              this.se = new LogisticsServiceException();
8758
              this.se.read(iprot);
8759
            } else { 
8760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8761
            }
8762
            break;
8763
          default:
8764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8765
        }
3430 rajveer 8766
        iprot.readFieldEnd();
730 chandransh 8767
      }
8768
      iprot.readStructEnd();
8769
      validate();
8770
    }
8771
 
3430 rajveer 8772
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8773
      oprot.writeStructBegin(STRUCT_DESC);
8774
 
8775
      if (this.isSetSuccess()) {
8776
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8777
        oprot.writeString(this.success);
8778
        oprot.writeFieldEnd();
8779
      } else if (this.isSetSe()) {
8780
        oprot.writeFieldBegin(SE_FIELD_DESC);
8781
        this.se.write(oprot);
8782
        oprot.writeFieldEnd();
8783
      }
8784
      oprot.writeFieldStop();
8785
      oprot.writeStructEnd();
8786
    }
8787
 
8788
    @Override
8789
    public String toString() {
8790
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
8791
      boolean first = true;
8792
 
8793
      sb.append("success:");
8794
      if (this.success == null) {
8795
        sb.append("null");
8796
      } else {
8797
        sb.append(this.success);
8798
      }
8799
      first = false;
8800
      if (!first) sb.append(", ");
8801
      sb.append("se:");
8802
      if (this.se == null) {
8803
        sb.append("null");
8804
      } else {
8805
        sb.append(this.se);
8806
      }
8807
      first = false;
8808
      sb.append(")");
8809
      return sb.toString();
8810
    }
8811
 
3430 rajveer 8812
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8813
      // check for required fields
8814
    }
8815
 
3430 rajveer 8816
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8817
      try {
8818
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8819
      } catch (org.apache.thrift.TException te) {
8820
        throw new java.io.IOException(te);
8821
      }
8822
    }
8823
 
8824
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8825
      try {
8826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8827
      } catch (org.apache.thrift.TException te) {
8828
        throw new java.io.IOException(te);
8829
      }
8830
    }
8831
 
730 chandransh 8832
  }
8833
 
3430 rajveer 8834
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
8835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 8836
 
3430 rajveer 8837
    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);
8838
    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 8839
 
3430 rajveer 8840
    private long providerId; // required
8841
    private String type; // required
1139 chandransh 8842
 
8843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 8845
      PROVIDER_ID((short)1, "providerId"),
8846
      TYPE((short)2, "type");
1139 chandransh 8847
 
8848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8849
 
8850
      static {
8851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8852
          byName.put(field.getFieldName(), field);
8853
        }
8854
      }
8855
 
8856
      /**
8857
       * Find the _Fields constant that matches fieldId, or null if its not found.
8858
       */
8859
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8860
        switch(fieldId) {
8861
          case 1: // PROVIDER_ID
8862
            return PROVIDER_ID;
8863
          case 2: // TYPE
8864
            return TYPE;
8865
          default:
8866
            return null;
8867
        }
1139 chandransh 8868
      }
8869
 
8870
      /**
8871
       * Find the _Fields constant that matches fieldId, throwing an exception
8872
       * if it is not found.
8873
       */
8874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8875
        _Fields fields = findByThriftId(fieldId);
8876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8877
        return fields;
8878
      }
8879
 
8880
      /**
8881
       * Find the _Fields constant that matches name, or null if its not found.
8882
       */
8883
      public static _Fields findByName(String name) {
8884
        return byName.get(name);
8885
      }
8886
 
8887
      private final short _thriftId;
8888
      private final String _fieldName;
8889
 
8890
      _Fields(short thriftId, String fieldName) {
8891
        _thriftId = thriftId;
8892
        _fieldName = fieldName;
8893
      }
8894
 
8895
      public short getThriftFieldId() {
8896
        return _thriftId;
8897
      }
8898
 
8899
      public String getFieldName() {
8900
        return _fieldName;
8901
      }
8902
    }
8903
 
8904
    // isset id assignments
8905
    private static final int __PROVIDERID_ISSET_ID = 0;
8906
    private BitSet __isset_bit_vector = new BitSet(1);
8907
 
3430 rajveer 8908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8909
    static {
3430 rajveer 8910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8911
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8913
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8915
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8916
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 8917
    }
8918
 
8919
    public getFreeAwbCount_args() {
8920
    }
8921
 
8922
    public getFreeAwbCount_args(
3103 chandransh 8923
      long providerId,
8924
      String type)
1139 chandransh 8925
    {
8926
      this();
8927
      this.providerId = providerId;
8928
      setProviderIdIsSet(true);
3103 chandransh 8929
      this.type = type;
1139 chandransh 8930
    }
8931
 
8932
    /**
8933
     * Performs a deep copy on <i>other</i>.
8934
     */
8935
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
8936
      __isset_bit_vector.clear();
8937
      __isset_bit_vector.or(other.__isset_bit_vector);
8938
      this.providerId = other.providerId;
3103 chandransh 8939
      if (other.isSetType()) {
8940
        this.type = other.type;
8941
      }
1139 chandransh 8942
    }
8943
 
8944
    public getFreeAwbCount_args deepCopy() {
8945
      return new getFreeAwbCount_args(this);
8946
    }
8947
 
3430 rajveer 8948
    @Override
8949
    public void clear() {
8950
      setProviderIdIsSet(false);
8951
      this.providerId = 0;
8952
      this.type = null;
1139 chandransh 8953
    }
8954
 
8955
    public long getProviderId() {
8956
      return this.providerId;
8957
    }
8958
 
3430 rajveer 8959
    public void setProviderId(long providerId) {
1139 chandransh 8960
      this.providerId = providerId;
8961
      setProviderIdIsSet(true);
8962
    }
8963
 
8964
    public void unsetProviderId() {
8965
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8966
    }
8967
 
3430 rajveer 8968
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 8969
    public boolean isSetProviderId() {
8970
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8971
    }
8972
 
8973
    public void setProviderIdIsSet(boolean value) {
8974
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8975
    }
8976
 
3103 chandransh 8977
    public String getType() {
8978
      return this.type;
8979
    }
8980
 
3430 rajveer 8981
    public void setType(String type) {
3103 chandransh 8982
      this.type = type;
8983
    }
8984
 
8985
    public void unsetType() {
8986
      this.type = null;
8987
    }
8988
 
3430 rajveer 8989
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 8990
    public boolean isSetType() {
8991
      return this.type != null;
8992
    }
8993
 
8994
    public void setTypeIsSet(boolean value) {
8995
      if (!value) {
8996
        this.type = null;
8997
      }
8998
    }
8999
 
1139 chandransh 9000
    public void setFieldValue(_Fields field, Object value) {
9001
      switch (field) {
9002
      case PROVIDER_ID:
9003
        if (value == null) {
9004
          unsetProviderId();
9005
        } else {
9006
          setProviderId((Long)value);
9007
        }
9008
        break;
9009
 
3103 chandransh 9010
      case TYPE:
9011
        if (value == null) {
9012
          unsetType();
9013
        } else {
9014
          setType((String)value);
9015
        }
9016
        break;
9017
 
1139 chandransh 9018
      }
9019
    }
9020
 
9021
    public Object getFieldValue(_Fields field) {
9022
      switch (field) {
9023
      case PROVIDER_ID:
3430 rajveer 9024
        return Long.valueOf(getProviderId());
1139 chandransh 9025
 
3103 chandransh 9026
      case TYPE:
9027
        return getType();
9028
 
1139 chandransh 9029
      }
9030
      throw new IllegalStateException();
9031
    }
9032
 
3430 rajveer 9033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9034
    public boolean isSet(_Fields field) {
9035
      if (field == null) {
9036
        throw new IllegalArgumentException();
9037
      }
1139 chandransh 9038
 
9039
      switch (field) {
9040
      case PROVIDER_ID:
9041
        return isSetProviderId();
3103 chandransh 9042
      case TYPE:
9043
        return isSetType();
1139 chandransh 9044
      }
9045
      throw new IllegalStateException();
9046
    }
9047
 
9048
    @Override
9049
    public boolean equals(Object that) {
9050
      if (that == null)
9051
        return false;
9052
      if (that instanceof getFreeAwbCount_args)
9053
        return this.equals((getFreeAwbCount_args)that);
9054
      return false;
9055
    }
9056
 
9057
    public boolean equals(getFreeAwbCount_args that) {
9058
      if (that == null)
9059
        return false;
9060
 
9061
      boolean this_present_providerId = true;
9062
      boolean that_present_providerId = true;
9063
      if (this_present_providerId || that_present_providerId) {
9064
        if (!(this_present_providerId && that_present_providerId))
9065
          return false;
9066
        if (this.providerId != that.providerId)
9067
          return false;
9068
      }
9069
 
3103 chandransh 9070
      boolean this_present_type = true && this.isSetType();
9071
      boolean that_present_type = true && that.isSetType();
9072
      if (this_present_type || that_present_type) {
9073
        if (!(this_present_type && that_present_type))
9074
          return false;
9075
        if (!this.type.equals(that.type))
9076
          return false;
9077
      }
9078
 
1139 chandransh 9079
      return true;
9080
    }
9081
 
9082
    @Override
9083
    public int hashCode() {
9084
      return 0;
9085
    }
9086
 
9087
    public int compareTo(getFreeAwbCount_args other) {
9088
      if (!getClass().equals(other.getClass())) {
9089
        return getClass().getName().compareTo(other.getClass().getName());
9090
      }
9091
 
9092
      int lastComparison = 0;
9093
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9094
 
3430 rajveer 9095
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9096
      if (lastComparison != 0) {
9097
        return lastComparison;
9098
      }
3430 rajveer 9099
      if (isSetProviderId()) {
9100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9101
        if (lastComparison != 0) {
9102
          return lastComparison;
9103
        }
1139 chandransh 9104
      }
3430 rajveer 9105
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9106
      if (lastComparison != 0) {
9107
        return lastComparison;
9108
      }
3430 rajveer 9109
      if (isSetType()) {
9110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9111
        if (lastComparison != 0) {
9112
          return lastComparison;
9113
        }
3103 chandransh 9114
      }
1139 chandransh 9115
      return 0;
9116
    }
9117
 
3430 rajveer 9118
    public _Fields fieldForId(int fieldId) {
9119
      return _Fields.findByThriftId(fieldId);
9120
    }
9121
 
9122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9123
      org.apache.thrift.protocol.TField field;
1139 chandransh 9124
      iprot.readStructBegin();
9125
      while (true)
9126
      {
9127
        field = iprot.readFieldBegin();
3430 rajveer 9128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9129
          break;
9130
        }
3430 rajveer 9131
        switch (field.id) {
9132
          case 1: // PROVIDER_ID
9133
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9134
              this.providerId = iprot.readI64();
9135
              setProviderIdIsSet(true);
9136
            } else { 
9137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9138
            }
9139
            break;
9140
          case 2: // TYPE
9141
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9142
              this.type = iprot.readString();
9143
            } else { 
9144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9145
            }
9146
            break;
9147
          default:
9148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9149
        }
3430 rajveer 9150
        iprot.readFieldEnd();
1139 chandransh 9151
      }
9152
      iprot.readStructEnd();
9153
      validate();
9154
    }
9155
 
3430 rajveer 9156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9157
      validate();
9158
 
9159
      oprot.writeStructBegin(STRUCT_DESC);
9160
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9161
      oprot.writeI64(this.providerId);
9162
      oprot.writeFieldEnd();
3103 chandransh 9163
      if (this.type != null) {
9164
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9165
        oprot.writeString(this.type);
9166
        oprot.writeFieldEnd();
9167
      }
1139 chandransh 9168
      oprot.writeFieldStop();
9169
      oprot.writeStructEnd();
9170
    }
9171
 
9172
    @Override
9173
    public String toString() {
9174
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9175
      boolean first = true;
9176
 
9177
      sb.append("providerId:");
9178
      sb.append(this.providerId);
9179
      first = false;
3103 chandransh 9180
      if (!first) sb.append(", ");
9181
      sb.append("type:");
9182
      if (this.type == null) {
9183
        sb.append("null");
9184
      } else {
9185
        sb.append(this.type);
9186
      }
9187
      first = false;
1139 chandransh 9188
      sb.append(")");
9189
      return sb.toString();
9190
    }
9191
 
3430 rajveer 9192
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9193
      // check for required fields
9194
    }
9195
 
3430 rajveer 9196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9197
      try {
9198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9199
      } catch (org.apache.thrift.TException te) {
9200
        throw new java.io.IOException(te);
9201
      }
9202
    }
9203
 
9204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9205
      try {
9206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9207
      } catch (org.apache.thrift.TException te) {
9208
        throw new java.io.IOException(te);
9209
      }
9210
    }
9211
 
1139 chandransh 9212
  }
9213
 
3430 rajveer 9214
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9216
 
3430 rajveer 9217
    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 9218
 
3430 rajveer 9219
    private long success; // required
1139 chandransh 9220
 
9221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9223
      SUCCESS((short)0, "success");
9224
 
9225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9226
 
9227
      static {
9228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9229
          byName.put(field.getFieldName(), field);
9230
        }
9231
      }
9232
 
9233
      /**
9234
       * Find the _Fields constant that matches fieldId, or null if its not found.
9235
       */
9236
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9237
        switch(fieldId) {
9238
          case 0: // SUCCESS
9239
            return SUCCESS;
9240
          default:
9241
            return null;
9242
        }
1139 chandransh 9243
      }
9244
 
9245
      /**
9246
       * Find the _Fields constant that matches fieldId, throwing an exception
9247
       * if it is not found.
9248
       */
9249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9250
        _Fields fields = findByThriftId(fieldId);
9251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9252
        return fields;
9253
      }
9254
 
9255
      /**
9256
       * Find the _Fields constant that matches name, or null if its not found.
9257
       */
9258
      public static _Fields findByName(String name) {
9259
        return byName.get(name);
9260
      }
9261
 
9262
      private final short _thriftId;
9263
      private final String _fieldName;
9264
 
9265
      _Fields(short thriftId, String fieldName) {
9266
        _thriftId = thriftId;
9267
        _fieldName = fieldName;
9268
      }
9269
 
9270
      public short getThriftFieldId() {
9271
        return _thriftId;
9272
      }
9273
 
9274
      public String getFieldName() {
9275
        return _fieldName;
9276
      }
9277
    }
9278
 
9279
    // isset id assignments
9280
    private static final int __SUCCESS_ISSET_ID = 0;
9281
    private BitSet __isset_bit_vector = new BitSet(1);
9282
 
3430 rajveer 9283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9284
    static {
3430 rajveer 9285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9286
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9287
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9290
    }
9291
 
9292
    public getFreeAwbCount_result() {
9293
    }
9294
 
9295
    public getFreeAwbCount_result(
9296
      long success)
9297
    {
9298
      this();
9299
      this.success = success;
9300
      setSuccessIsSet(true);
9301
    }
9302
 
9303
    /**
9304
     * Performs a deep copy on <i>other</i>.
9305
     */
9306
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9307
      __isset_bit_vector.clear();
9308
      __isset_bit_vector.or(other.__isset_bit_vector);
9309
      this.success = other.success;
9310
    }
9311
 
9312
    public getFreeAwbCount_result deepCopy() {
9313
      return new getFreeAwbCount_result(this);
9314
    }
9315
 
3430 rajveer 9316
    @Override
9317
    public void clear() {
9318
      setSuccessIsSet(false);
9319
      this.success = 0;
1139 chandransh 9320
    }
9321
 
9322
    public long getSuccess() {
9323
      return this.success;
9324
    }
9325
 
3430 rajveer 9326
    public void setSuccess(long success) {
1139 chandransh 9327
      this.success = success;
9328
      setSuccessIsSet(true);
9329
    }
9330
 
9331
    public void unsetSuccess() {
9332
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9333
    }
9334
 
3430 rajveer 9335
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9336
    public boolean isSetSuccess() {
9337
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9338
    }
9339
 
9340
    public void setSuccessIsSet(boolean value) {
9341
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9342
    }
9343
 
9344
    public void setFieldValue(_Fields field, Object value) {
9345
      switch (field) {
9346
      case SUCCESS:
9347
        if (value == null) {
9348
          unsetSuccess();
9349
        } else {
9350
          setSuccess((Long)value);
9351
        }
9352
        break;
9353
 
9354
      }
9355
    }
9356
 
9357
    public Object getFieldValue(_Fields field) {
9358
      switch (field) {
9359
      case SUCCESS:
3430 rajveer 9360
        return Long.valueOf(getSuccess());
1139 chandransh 9361
 
9362
      }
9363
      throw new IllegalStateException();
9364
    }
9365
 
3430 rajveer 9366
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9367
    public boolean isSet(_Fields field) {
9368
      if (field == null) {
9369
        throw new IllegalArgumentException();
9370
      }
1139 chandransh 9371
 
9372
      switch (field) {
9373
      case SUCCESS:
9374
        return isSetSuccess();
9375
      }
9376
      throw new IllegalStateException();
9377
    }
9378
 
9379
    @Override
9380
    public boolean equals(Object that) {
9381
      if (that == null)
9382
        return false;
9383
      if (that instanceof getFreeAwbCount_result)
9384
        return this.equals((getFreeAwbCount_result)that);
9385
      return false;
9386
    }
9387
 
9388
    public boolean equals(getFreeAwbCount_result that) {
9389
      if (that == null)
9390
        return false;
9391
 
9392
      boolean this_present_success = true;
9393
      boolean that_present_success = true;
9394
      if (this_present_success || that_present_success) {
9395
        if (!(this_present_success && that_present_success))
9396
          return false;
9397
        if (this.success != that.success)
9398
          return false;
9399
      }
9400
 
9401
      return true;
9402
    }
9403
 
9404
    @Override
9405
    public int hashCode() {
9406
      return 0;
9407
    }
9408
 
9409
    public int compareTo(getFreeAwbCount_result other) {
9410
      if (!getClass().equals(other.getClass())) {
9411
        return getClass().getName().compareTo(other.getClass().getName());
9412
      }
9413
 
9414
      int lastComparison = 0;
9415
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9416
 
3430 rajveer 9417
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9418
      if (lastComparison != 0) {
9419
        return lastComparison;
9420
      }
3430 rajveer 9421
      if (isSetSuccess()) {
9422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9423
        if (lastComparison != 0) {
9424
          return lastComparison;
9425
        }
1139 chandransh 9426
      }
9427
      return 0;
9428
    }
9429
 
3430 rajveer 9430
    public _Fields fieldForId(int fieldId) {
9431
      return _Fields.findByThriftId(fieldId);
9432
    }
9433
 
9434
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9435
      org.apache.thrift.protocol.TField field;
1139 chandransh 9436
      iprot.readStructBegin();
9437
      while (true)
9438
      {
9439
        field = iprot.readFieldBegin();
3430 rajveer 9440
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9441
          break;
9442
        }
3430 rajveer 9443
        switch (field.id) {
9444
          case 0: // SUCCESS
9445
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9446
              this.success = iprot.readI64();
9447
              setSuccessIsSet(true);
9448
            } else { 
9449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9450
            }
9451
            break;
9452
          default:
9453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9454
        }
3430 rajveer 9455
        iprot.readFieldEnd();
1139 chandransh 9456
      }
9457
      iprot.readStructEnd();
9458
      validate();
9459
    }
9460
 
3430 rajveer 9461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9462
      oprot.writeStructBegin(STRUCT_DESC);
9463
 
9464
      if (this.isSetSuccess()) {
9465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9466
        oprot.writeI64(this.success);
9467
        oprot.writeFieldEnd();
9468
      }
9469
      oprot.writeFieldStop();
9470
      oprot.writeStructEnd();
9471
    }
9472
 
9473
    @Override
9474
    public String toString() {
9475
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9476
      boolean first = true;
9477
 
9478
      sb.append("success:");
9479
      sb.append(this.success);
9480
      first = false;
9481
      sb.append(")");
9482
      return sb.toString();
9483
    }
9484
 
3430 rajveer 9485
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9486
      // check for required fields
9487
    }
9488
 
3430 rajveer 9489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9490
      try {
9491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9492
      } catch (org.apache.thrift.TException te) {
9493
        throw new java.io.IOException(te);
9494
      }
9495
    }
9496
 
9497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9498
      try {
9499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9500
      } catch (org.apache.thrift.TException te) {
9501
        throw new java.io.IOException(te);
9502
      }
9503
    }
9504
 
1139 chandransh 9505
  }
9506
 
3430 rajveer 9507
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9509
 
3430 rajveer 9510
    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);
9511
    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 9512
 
3430 rajveer 9513
    private long fromDate; // required
9514
    private long toDate; // required
1730 ankur.sing 9515
 
9516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9518
      FROM_DATE((short)1, "fromDate"),
9519
      TO_DATE((short)2, "toDate");
9520
 
9521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9522
 
9523
      static {
9524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9525
          byName.put(field.getFieldName(), field);
9526
        }
9527
      }
9528
 
9529
      /**
9530
       * Find the _Fields constant that matches fieldId, or null if its not found.
9531
       */
9532
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9533
        switch(fieldId) {
9534
          case 1: // FROM_DATE
9535
            return FROM_DATE;
9536
          case 2: // TO_DATE
9537
            return TO_DATE;
9538
          default:
9539
            return null;
9540
        }
1730 ankur.sing 9541
      }
9542
 
9543
      /**
9544
       * Find the _Fields constant that matches fieldId, throwing an exception
9545
       * if it is not found.
9546
       */
9547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9548
        _Fields fields = findByThriftId(fieldId);
9549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9550
        return fields;
9551
      }
9552
 
9553
      /**
9554
       * Find the _Fields constant that matches name, or null if its not found.
9555
       */
9556
      public static _Fields findByName(String name) {
9557
        return byName.get(name);
9558
      }
9559
 
9560
      private final short _thriftId;
9561
      private final String _fieldName;
9562
 
9563
      _Fields(short thriftId, String fieldName) {
9564
        _thriftId = thriftId;
9565
        _fieldName = fieldName;
9566
      }
9567
 
9568
      public short getThriftFieldId() {
9569
        return _thriftId;
9570
      }
9571
 
9572
      public String getFieldName() {
9573
        return _fieldName;
9574
      }
9575
    }
9576
 
9577
    // isset id assignments
9578
    private static final int __FROMDATE_ISSET_ID = 0;
9579
    private static final int __TODATE_ISSET_ID = 1;
9580
    private BitSet __isset_bit_vector = new BitSet(2);
9581
 
3430 rajveer 9582
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9583
    static {
3430 rajveer 9584
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9585
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9586
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9587
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9591
    }
9592
 
9593
    public getHolidays_args() {
9594
    }
9595
 
9596
    public getHolidays_args(
9597
      long fromDate,
9598
      long toDate)
9599
    {
9600
      this();
9601
      this.fromDate = fromDate;
9602
      setFromDateIsSet(true);
9603
      this.toDate = toDate;
9604
      setToDateIsSet(true);
9605
    }
9606
 
9607
    /**
9608
     * Performs a deep copy on <i>other</i>.
9609
     */
9610
    public getHolidays_args(getHolidays_args other) {
9611
      __isset_bit_vector.clear();
9612
      __isset_bit_vector.or(other.__isset_bit_vector);
9613
      this.fromDate = other.fromDate;
9614
      this.toDate = other.toDate;
9615
    }
9616
 
9617
    public getHolidays_args deepCopy() {
9618
      return new getHolidays_args(this);
9619
    }
9620
 
3430 rajveer 9621
    @Override
9622
    public void clear() {
9623
      setFromDateIsSet(false);
9624
      this.fromDate = 0;
9625
      setToDateIsSet(false);
9626
      this.toDate = 0;
1730 ankur.sing 9627
    }
9628
 
9629
    public long getFromDate() {
9630
      return this.fromDate;
9631
    }
9632
 
3430 rajveer 9633
    public void setFromDate(long fromDate) {
1730 ankur.sing 9634
      this.fromDate = fromDate;
9635
      setFromDateIsSet(true);
9636
    }
9637
 
9638
    public void unsetFromDate() {
9639
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9640
    }
9641
 
3430 rajveer 9642
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9643
    public boolean isSetFromDate() {
9644
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9645
    }
9646
 
9647
    public void setFromDateIsSet(boolean value) {
9648
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9649
    }
9650
 
9651
    public long getToDate() {
9652
      return this.toDate;
9653
    }
9654
 
3430 rajveer 9655
    public void setToDate(long toDate) {
1730 ankur.sing 9656
      this.toDate = toDate;
9657
      setToDateIsSet(true);
9658
    }
9659
 
9660
    public void unsetToDate() {
9661
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9662
    }
9663
 
3430 rajveer 9664
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9665
    public boolean isSetToDate() {
9666
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9667
    }
9668
 
9669
    public void setToDateIsSet(boolean value) {
9670
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9671
    }
9672
 
9673
    public void setFieldValue(_Fields field, Object value) {
9674
      switch (field) {
9675
      case FROM_DATE:
9676
        if (value == null) {
9677
          unsetFromDate();
9678
        } else {
9679
          setFromDate((Long)value);
9680
        }
9681
        break;
9682
 
9683
      case TO_DATE:
9684
        if (value == null) {
9685
          unsetToDate();
9686
        } else {
9687
          setToDate((Long)value);
9688
        }
9689
        break;
9690
 
9691
      }
9692
    }
9693
 
9694
    public Object getFieldValue(_Fields field) {
9695
      switch (field) {
9696
      case FROM_DATE:
3430 rajveer 9697
        return Long.valueOf(getFromDate());
1730 ankur.sing 9698
 
9699
      case TO_DATE:
3430 rajveer 9700
        return Long.valueOf(getToDate());
1730 ankur.sing 9701
 
9702
      }
9703
      throw new IllegalStateException();
9704
    }
9705
 
3430 rajveer 9706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9707
    public boolean isSet(_Fields field) {
9708
      if (field == null) {
9709
        throw new IllegalArgumentException();
9710
      }
1730 ankur.sing 9711
 
9712
      switch (field) {
9713
      case FROM_DATE:
9714
        return isSetFromDate();
9715
      case TO_DATE:
9716
        return isSetToDate();
9717
      }
9718
      throw new IllegalStateException();
9719
    }
9720
 
9721
    @Override
9722
    public boolean equals(Object that) {
9723
      if (that == null)
9724
        return false;
9725
      if (that instanceof getHolidays_args)
9726
        return this.equals((getHolidays_args)that);
9727
      return false;
9728
    }
9729
 
9730
    public boolean equals(getHolidays_args that) {
9731
      if (that == null)
9732
        return false;
9733
 
9734
      boolean this_present_fromDate = true;
9735
      boolean that_present_fromDate = true;
9736
      if (this_present_fromDate || that_present_fromDate) {
9737
        if (!(this_present_fromDate && that_present_fromDate))
9738
          return false;
9739
        if (this.fromDate != that.fromDate)
9740
          return false;
9741
      }
9742
 
9743
      boolean this_present_toDate = true;
9744
      boolean that_present_toDate = true;
9745
      if (this_present_toDate || that_present_toDate) {
9746
        if (!(this_present_toDate && that_present_toDate))
9747
          return false;
9748
        if (this.toDate != that.toDate)
9749
          return false;
9750
      }
9751
 
9752
      return true;
9753
    }
9754
 
9755
    @Override
9756
    public int hashCode() {
9757
      return 0;
9758
    }
9759
 
9760
    public int compareTo(getHolidays_args other) {
9761
      if (!getClass().equals(other.getClass())) {
9762
        return getClass().getName().compareTo(other.getClass().getName());
9763
      }
9764
 
9765
      int lastComparison = 0;
9766
      getHolidays_args typedOther = (getHolidays_args)other;
9767
 
3430 rajveer 9768
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 9769
      if (lastComparison != 0) {
9770
        return lastComparison;
9771
      }
3430 rajveer 9772
      if (isSetFromDate()) {
9773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
9774
        if (lastComparison != 0) {
9775
          return lastComparison;
9776
        }
1730 ankur.sing 9777
      }
3430 rajveer 9778
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 9779
      if (lastComparison != 0) {
9780
        return lastComparison;
9781
      }
3430 rajveer 9782
      if (isSetToDate()) {
9783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
9784
        if (lastComparison != 0) {
9785
          return lastComparison;
9786
        }
1730 ankur.sing 9787
      }
9788
      return 0;
9789
    }
9790
 
3430 rajveer 9791
    public _Fields fieldForId(int fieldId) {
9792
      return _Fields.findByThriftId(fieldId);
9793
    }
9794
 
9795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9796
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9797
      iprot.readStructBegin();
9798
      while (true)
9799
      {
9800
        field = iprot.readFieldBegin();
3430 rajveer 9801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9802
          break;
9803
        }
3430 rajveer 9804
        switch (field.id) {
9805
          case 1: // FROM_DATE
9806
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9807
              this.fromDate = iprot.readI64();
9808
              setFromDateIsSet(true);
9809
            } else { 
9810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9811
            }
9812
            break;
9813
          case 2: // TO_DATE
9814
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9815
              this.toDate = iprot.readI64();
9816
              setToDateIsSet(true);
9817
            } else { 
9818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9819
            }
9820
            break;
9821
          default:
9822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9823
        }
3430 rajveer 9824
        iprot.readFieldEnd();
1730 ankur.sing 9825
      }
9826
      iprot.readStructEnd();
9827
      validate();
9828
    }
9829
 
3430 rajveer 9830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9831
      validate();
9832
 
9833
      oprot.writeStructBegin(STRUCT_DESC);
9834
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
9835
      oprot.writeI64(this.fromDate);
9836
      oprot.writeFieldEnd();
9837
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
9838
      oprot.writeI64(this.toDate);
9839
      oprot.writeFieldEnd();
9840
      oprot.writeFieldStop();
9841
      oprot.writeStructEnd();
9842
    }
9843
 
9844
    @Override
9845
    public String toString() {
9846
      StringBuilder sb = new StringBuilder("getHolidays_args(");
9847
      boolean first = true;
9848
 
9849
      sb.append("fromDate:");
9850
      sb.append(this.fromDate);
9851
      first = false;
9852
      if (!first) sb.append(", ");
9853
      sb.append("toDate:");
9854
      sb.append(this.toDate);
9855
      first = false;
9856
      sb.append(")");
9857
      return sb.toString();
9858
    }
9859
 
3430 rajveer 9860
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9861
      // check for required fields
9862
    }
9863
 
3430 rajveer 9864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9865
      try {
9866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9867
      } catch (org.apache.thrift.TException te) {
9868
        throw new java.io.IOException(te);
9869
      }
9870
    }
9871
 
9872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9873
      try {
9874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9875
      } catch (org.apache.thrift.TException te) {
9876
        throw new java.io.IOException(te);
9877
      }
9878
    }
9879
 
1730 ankur.sing 9880
  }
9881
 
3430 rajveer 9882
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
9883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 9884
 
3430 rajveer 9885
    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 9886
 
3430 rajveer 9887
    private List<Long> success; // required
1730 ankur.sing 9888
 
9889
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9890
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9891
      SUCCESS((short)0, "success");
9892
 
9893
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9894
 
9895
      static {
9896
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9897
          byName.put(field.getFieldName(), field);
9898
        }
9899
      }
9900
 
9901
      /**
9902
       * Find the _Fields constant that matches fieldId, or null if its not found.
9903
       */
9904
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9905
        switch(fieldId) {
9906
          case 0: // SUCCESS
9907
            return SUCCESS;
9908
          default:
9909
            return null;
9910
        }
1730 ankur.sing 9911
      }
9912
 
9913
      /**
9914
       * Find the _Fields constant that matches fieldId, throwing an exception
9915
       * if it is not found.
9916
       */
9917
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9918
        _Fields fields = findByThriftId(fieldId);
9919
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9920
        return fields;
9921
      }
9922
 
9923
      /**
9924
       * Find the _Fields constant that matches name, or null if its not found.
9925
       */
9926
      public static _Fields findByName(String name) {
9927
        return byName.get(name);
9928
      }
9929
 
9930
      private final short _thriftId;
9931
      private final String _fieldName;
9932
 
9933
      _Fields(short thriftId, String fieldName) {
9934
        _thriftId = thriftId;
9935
        _fieldName = fieldName;
9936
      }
9937
 
9938
      public short getThriftFieldId() {
9939
        return _thriftId;
9940
      }
9941
 
9942
      public String getFieldName() {
9943
        return _fieldName;
9944
      }
9945
    }
9946
 
9947
    // isset id assignments
9948
 
3430 rajveer 9949
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9950
    static {
3430 rajveer 9951
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9952
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9953
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9954
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9955
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9956
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 9957
    }
9958
 
9959
    public getHolidays_result() {
9960
    }
9961
 
9962
    public getHolidays_result(
9963
      List<Long> success)
9964
    {
9965
      this();
9966
      this.success = success;
9967
    }
9968
 
9969
    /**
9970
     * Performs a deep copy on <i>other</i>.
9971
     */
9972
    public getHolidays_result(getHolidays_result other) {
9973
      if (other.isSetSuccess()) {
9974
        List<Long> __this__success = new ArrayList<Long>();
9975
        for (Long other_element : other.success) {
9976
          __this__success.add(other_element);
9977
        }
9978
        this.success = __this__success;
9979
      }
9980
    }
9981
 
9982
    public getHolidays_result deepCopy() {
9983
      return new getHolidays_result(this);
9984
    }
9985
 
3430 rajveer 9986
    @Override
9987
    public void clear() {
9988
      this.success = null;
1730 ankur.sing 9989
    }
9990
 
9991
    public int getSuccessSize() {
9992
      return (this.success == null) ? 0 : this.success.size();
9993
    }
9994
 
9995
    public java.util.Iterator<Long> getSuccessIterator() {
9996
      return (this.success == null) ? null : this.success.iterator();
9997
    }
9998
 
9999
    public void addToSuccess(long elem) {
10000
      if (this.success == null) {
10001
        this.success = new ArrayList<Long>();
10002
      }
10003
      this.success.add(elem);
10004
    }
10005
 
10006
    public List<Long> getSuccess() {
10007
      return this.success;
10008
    }
10009
 
3430 rajveer 10010
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10011
      this.success = success;
10012
    }
10013
 
10014
    public void unsetSuccess() {
10015
      this.success = null;
10016
    }
10017
 
3430 rajveer 10018
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10019
    public boolean isSetSuccess() {
10020
      return this.success != null;
10021
    }
10022
 
10023
    public void setSuccessIsSet(boolean value) {
10024
      if (!value) {
10025
        this.success = null;
10026
      }
10027
    }
10028
 
10029
    public void setFieldValue(_Fields field, Object value) {
10030
      switch (field) {
10031
      case SUCCESS:
10032
        if (value == null) {
10033
          unsetSuccess();
10034
        } else {
10035
          setSuccess((List<Long>)value);
10036
        }
10037
        break;
10038
 
10039
      }
10040
    }
10041
 
10042
    public Object getFieldValue(_Fields field) {
10043
      switch (field) {
10044
      case SUCCESS:
10045
        return getSuccess();
10046
 
10047
      }
10048
      throw new IllegalStateException();
10049
    }
10050
 
3430 rajveer 10051
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10052
    public boolean isSet(_Fields field) {
10053
      if (field == null) {
10054
        throw new IllegalArgumentException();
10055
      }
1730 ankur.sing 10056
 
10057
      switch (field) {
10058
      case SUCCESS:
10059
        return isSetSuccess();
10060
      }
10061
      throw new IllegalStateException();
10062
    }
10063
 
10064
    @Override
10065
    public boolean equals(Object that) {
10066
      if (that == null)
10067
        return false;
10068
      if (that instanceof getHolidays_result)
10069
        return this.equals((getHolidays_result)that);
10070
      return false;
10071
    }
10072
 
10073
    public boolean equals(getHolidays_result that) {
10074
      if (that == null)
10075
        return false;
10076
 
10077
      boolean this_present_success = true && this.isSetSuccess();
10078
      boolean that_present_success = true && that.isSetSuccess();
10079
      if (this_present_success || that_present_success) {
10080
        if (!(this_present_success && that_present_success))
10081
          return false;
10082
        if (!this.success.equals(that.success))
10083
          return false;
10084
      }
10085
 
10086
      return true;
10087
    }
10088
 
10089
    @Override
10090
    public int hashCode() {
10091
      return 0;
10092
    }
10093
 
10094
    public int compareTo(getHolidays_result other) {
10095
      if (!getClass().equals(other.getClass())) {
10096
        return getClass().getName().compareTo(other.getClass().getName());
10097
      }
10098
 
10099
      int lastComparison = 0;
10100
      getHolidays_result typedOther = (getHolidays_result)other;
10101
 
3430 rajveer 10102
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10103
      if (lastComparison != 0) {
10104
        return lastComparison;
10105
      }
3430 rajveer 10106
      if (isSetSuccess()) {
10107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10108
        if (lastComparison != 0) {
10109
          return lastComparison;
10110
        }
1730 ankur.sing 10111
      }
10112
      return 0;
10113
    }
10114
 
3430 rajveer 10115
    public _Fields fieldForId(int fieldId) {
10116
      return _Fields.findByThriftId(fieldId);
10117
    }
10118
 
10119
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10120
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10121
      iprot.readStructBegin();
10122
      while (true)
10123
      {
10124
        field = iprot.readFieldBegin();
3430 rajveer 10125
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10126
          break;
10127
        }
3430 rajveer 10128
        switch (field.id) {
10129
          case 0: // SUCCESS
10130
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10131
              {
7792 anupam.sin 10132
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10133
                this.success = new ArrayList<Long>(_list12.size);
10134
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10135
                {
7792 anupam.sin 10136
                  long _elem14; // required
10137
                  _elem14 = iprot.readI64();
10138
                  this.success.add(_elem14);
1730 ankur.sing 10139
                }
3430 rajveer 10140
                iprot.readListEnd();
1730 ankur.sing 10141
              }
3430 rajveer 10142
            } else { 
10143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10144
            }
10145
            break;
10146
          default:
10147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10148
        }
3430 rajveer 10149
        iprot.readFieldEnd();
1730 ankur.sing 10150
      }
10151
      iprot.readStructEnd();
10152
      validate();
10153
    }
10154
 
3430 rajveer 10155
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10156
      oprot.writeStructBegin(STRUCT_DESC);
10157
 
10158
      if (this.isSetSuccess()) {
10159
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10160
        {
3430 rajveer 10161
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10162
          for (long _iter15 : this.success)
1730 ankur.sing 10163
          {
7792 anupam.sin 10164
            oprot.writeI64(_iter15);
1730 ankur.sing 10165
          }
10166
          oprot.writeListEnd();
10167
        }
10168
        oprot.writeFieldEnd();
10169
      }
10170
      oprot.writeFieldStop();
10171
      oprot.writeStructEnd();
10172
    }
10173
 
10174
    @Override
10175
    public String toString() {
10176
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10177
      boolean first = true;
10178
 
10179
      sb.append("success:");
10180
      if (this.success == null) {
10181
        sb.append("null");
10182
      } else {
10183
        sb.append(this.success);
10184
      }
10185
      first = false;
10186
      sb.append(")");
10187
      return sb.toString();
10188
    }
10189
 
3430 rajveer 10190
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10191
      // check for required fields
10192
    }
10193
 
3430 rajveer 10194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10195
      try {
10196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10197
      } catch (org.apache.thrift.TException te) {
10198
        throw new java.io.IOException(te);
10199
      }
10200
    }
10201
 
10202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10203
      try {
10204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10205
      } catch (org.apache.thrift.TException te) {
10206
        throw new java.io.IOException(te);
10207
      }
10208
    }
10209
 
1730 ankur.sing 10210
  }
10211
 
4934 amit.gupta 10212
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10214
 
10215
    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);
10216
    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);
10217
    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);
10218
 
10219
    private long catalogItemId; // required
10220
    private String destination_pin; // required
10221
    private DeliveryType type; // required
10222
 
10223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10224
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10225
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10226
      DESTINATION_PIN((short)2, "destination_pin"),
10227
      /**
10228
       * 
10229
       * @see DeliveryType
10230
       */
10231
      TYPE((short)3, "type");
10232
 
10233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10234
 
10235
      static {
10236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10237
          byName.put(field.getFieldName(), field);
10238
        }
10239
      }
10240
 
10241
      /**
10242
       * Find the _Fields constant that matches fieldId, or null if its not found.
10243
       */
10244
      public static _Fields findByThriftId(int fieldId) {
10245
        switch(fieldId) {
10246
          case 1: // CATALOG_ITEM_ID
10247
            return CATALOG_ITEM_ID;
10248
          case 2: // DESTINATION_PIN
10249
            return DESTINATION_PIN;
10250
          case 3: // TYPE
10251
            return TYPE;
10252
          default:
10253
            return null;
10254
        }
10255
      }
10256
 
10257
      /**
10258
       * Find the _Fields constant that matches fieldId, throwing an exception
10259
       * if it is not found.
10260
       */
10261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10262
        _Fields fields = findByThriftId(fieldId);
10263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10264
        return fields;
10265
      }
10266
 
10267
      /**
10268
       * Find the _Fields constant that matches name, or null if its not found.
10269
       */
10270
      public static _Fields findByName(String name) {
10271
        return byName.get(name);
10272
      }
10273
 
10274
      private final short _thriftId;
10275
      private final String _fieldName;
10276
 
10277
      _Fields(short thriftId, String fieldName) {
10278
        _thriftId = thriftId;
10279
        _fieldName = fieldName;
10280
      }
10281
 
10282
      public short getThriftFieldId() {
10283
        return _thriftId;
10284
      }
10285
 
10286
      public String getFieldName() {
10287
        return _fieldName;
10288
      }
10289
    }
10290
 
10291
    // isset id assignments
10292
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10293
    private BitSet __isset_bit_vector = new BitSet(1);
10294
 
10295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10296
    static {
10297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10298
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10300
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10302
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10303
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10304
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10305
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10306
    }
10307
 
10308
    public getEntityLogisticsEstimation_args() {
10309
    }
10310
 
10311
    public getEntityLogisticsEstimation_args(
10312
      long catalogItemId,
10313
      String destination_pin,
10314
      DeliveryType type)
10315
    {
10316
      this();
10317
      this.catalogItemId = catalogItemId;
10318
      setCatalogItemIdIsSet(true);
10319
      this.destination_pin = destination_pin;
10320
      this.type = type;
10321
    }
10322
 
10323
    /**
10324
     * Performs a deep copy on <i>other</i>.
10325
     */
10326
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10327
      __isset_bit_vector.clear();
10328
      __isset_bit_vector.or(other.__isset_bit_vector);
10329
      this.catalogItemId = other.catalogItemId;
10330
      if (other.isSetDestination_pin()) {
10331
        this.destination_pin = other.destination_pin;
10332
      }
10333
      if (other.isSetType()) {
10334
        this.type = other.type;
10335
      }
10336
    }
10337
 
10338
    public getEntityLogisticsEstimation_args deepCopy() {
10339
      return new getEntityLogisticsEstimation_args(this);
10340
    }
10341
 
10342
    @Override
10343
    public void clear() {
10344
      setCatalogItemIdIsSet(false);
10345
      this.catalogItemId = 0;
10346
      this.destination_pin = null;
10347
      this.type = null;
10348
    }
10349
 
10350
    public long getCatalogItemId() {
10351
      return this.catalogItemId;
10352
    }
10353
 
10354
    public void setCatalogItemId(long catalogItemId) {
10355
      this.catalogItemId = catalogItemId;
10356
      setCatalogItemIdIsSet(true);
10357
    }
10358
 
10359
    public void unsetCatalogItemId() {
10360
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10361
    }
10362
 
10363
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10364
    public boolean isSetCatalogItemId() {
10365
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10366
    }
10367
 
10368
    public void setCatalogItemIdIsSet(boolean value) {
10369
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10370
    }
10371
 
10372
    public String getDestination_pin() {
10373
      return this.destination_pin;
10374
    }
10375
 
10376
    public void setDestination_pin(String destination_pin) {
10377
      this.destination_pin = destination_pin;
10378
    }
10379
 
10380
    public void unsetDestination_pin() {
10381
      this.destination_pin = null;
10382
    }
10383
 
10384
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10385
    public boolean isSetDestination_pin() {
10386
      return this.destination_pin != null;
10387
    }
10388
 
10389
    public void setDestination_pinIsSet(boolean value) {
10390
      if (!value) {
10391
        this.destination_pin = null;
10392
      }
10393
    }
10394
 
10395
    /**
10396
     * 
10397
     * @see DeliveryType
10398
     */
10399
    public DeliveryType getType() {
10400
      return this.type;
10401
    }
10402
 
10403
    /**
10404
     * 
10405
     * @see DeliveryType
10406
     */
10407
    public void setType(DeliveryType type) {
10408
      this.type = type;
10409
    }
10410
 
10411
    public void unsetType() {
10412
      this.type = null;
10413
    }
10414
 
10415
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10416
    public boolean isSetType() {
10417
      return this.type != null;
10418
    }
10419
 
10420
    public void setTypeIsSet(boolean value) {
10421
      if (!value) {
10422
        this.type = null;
10423
      }
10424
    }
10425
 
10426
    public void setFieldValue(_Fields field, Object value) {
10427
      switch (field) {
10428
      case CATALOG_ITEM_ID:
10429
        if (value == null) {
10430
          unsetCatalogItemId();
10431
        } else {
10432
          setCatalogItemId((Long)value);
10433
        }
10434
        break;
10435
 
10436
      case DESTINATION_PIN:
10437
        if (value == null) {
10438
          unsetDestination_pin();
10439
        } else {
10440
          setDestination_pin((String)value);
10441
        }
10442
        break;
10443
 
10444
      case TYPE:
10445
        if (value == null) {
10446
          unsetType();
10447
        } else {
10448
          setType((DeliveryType)value);
10449
        }
10450
        break;
10451
 
10452
      }
10453
    }
10454
 
10455
    public Object getFieldValue(_Fields field) {
10456
      switch (field) {
10457
      case CATALOG_ITEM_ID:
10458
        return Long.valueOf(getCatalogItemId());
10459
 
10460
      case DESTINATION_PIN:
10461
        return getDestination_pin();
10462
 
10463
      case TYPE:
10464
        return getType();
10465
 
10466
      }
10467
      throw new IllegalStateException();
10468
    }
10469
 
10470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10471
    public boolean isSet(_Fields field) {
10472
      if (field == null) {
10473
        throw new IllegalArgumentException();
10474
      }
10475
 
10476
      switch (field) {
10477
      case CATALOG_ITEM_ID:
10478
        return isSetCatalogItemId();
10479
      case DESTINATION_PIN:
10480
        return isSetDestination_pin();
10481
      case TYPE:
10482
        return isSetType();
10483
      }
10484
      throw new IllegalStateException();
10485
    }
10486
 
10487
    @Override
10488
    public boolean equals(Object that) {
10489
      if (that == null)
10490
        return false;
10491
      if (that instanceof getEntityLogisticsEstimation_args)
10492
        return this.equals((getEntityLogisticsEstimation_args)that);
10493
      return false;
10494
    }
10495
 
10496
    public boolean equals(getEntityLogisticsEstimation_args that) {
10497
      if (that == null)
10498
        return false;
10499
 
10500
      boolean this_present_catalogItemId = true;
10501
      boolean that_present_catalogItemId = true;
10502
      if (this_present_catalogItemId || that_present_catalogItemId) {
10503
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10504
          return false;
10505
        if (this.catalogItemId != that.catalogItemId)
10506
          return false;
10507
      }
10508
 
10509
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10510
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10511
      if (this_present_destination_pin || that_present_destination_pin) {
10512
        if (!(this_present_destination_pin && that_present_destination_pin))
10513
          return false;
10514
        if (!this.destination_pin.equals(that.destination_pin))
10515
          return false;
10516
      }
10517
 
10518
      boolean this_present_type = true && this.isSetType();
10519
      boolean that_present_type = true && that.isSetType();
10520
      if (this_present_type || that_present_type) {
10521
        if (!(this_present_type && that_present_type))
10522
          return false;
10523
        if (!this.type.equals(that.type))
10524
          return false;
10525
      }
10526
 
10527
      return true;
10528
    }
10529
 
10530
    @Override
10531
    public int hashCode() {
10532
      return 0;
10533
    }
10534
 
10535
    public int compareTo(getEntityLogisticsEstimation_args other) {
10536
      if (!getClass().equals(other.getClass())) {
10537
        return getClass().getName().compareTo(other.getClass().getName());
10538
      }
10539
 
10540
      int lastComparison = 0;
10541
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10542
 
10543
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10544
      if (lastComparison != 0) {
10545
        return lastComparison;
10546
      }
10547
      if (isSetCatalogItemId()) {
10548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10549
        if (lastComparison != 0) {
10550
          return lastComparison;
10551
        }
10552
      }
10553
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10554
      if (lastComparison != 0) {
10555
        return lastComparison;
10556
      }
10557
      if (isSetDestination_pin()) {
10558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10559
        if (lastComparison != 0) {
10560
          return lastComparison;
10561
        }
10562
      }
10563
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10564
      if (lastComparison != 0) {
10565
        return lastComparison;
10566
      }
10567
      if (isSetType()) {
10568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10569
        if (lastComparison != 0) {
10570
          return lastComparison;
10571
        }
10572
      }
10573
      return 0;
10574
    }
10575
 
10576
    public _Fields fieldForId(int fieldId) {
10577
      return _Fields.findByThriftId(fieldId);
10578
    }
10579
 
10580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10581
      org.apache.thrift.protocol.TField field;
10582
      iprot.readStructBegin();
10583
      while (true)
10584
      {
10585
        field = iprot.readFieldBegin();
10586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10587
          break;
10588
        }
10589
        switch (field.id) {
10590
          case 1: // CATALOG_ITEM_ID
10591
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10592
              this.catalogItemId = iprot.readI64();
10593
              setCatalogItemIdIsSet(true);
10594
            } else { 
10595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10596
            }
10597
            break;
10598
          case 2: // DESTINATION_PIN
10599
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10600
              this.destination_pin = iprot.readString();
10601
            } else { 
10602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10603
            }
10604
            break;
10605
          case 3: // TYPE
10606
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10607
              this.type = DeliveryType.findByValue(iprot.readI32());
10608
            } else { 
10609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10610
            }
10611
            break;
10612
          default:
10613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10614
        }
10615
        iprot.readFieldEnd();
10616
      }
10617
      iprot.readStructEnd();
10618
      validate();
10619
    }
10620
 
10621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10622
      validate();
10623
 
10624
      oprot.writeStructBegin(STRUCT_DESC);
10625
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10626
      oprot.writeI64(this.catalogItemId);
10627
      oprot.writeFieldEnd();
10628
      if (this.destination_pin != null) {
10629
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10630
        oprot.writeString(this.destination_pin);
10631
        oprot.writeFieldEnd();
10632
      }
10633
      if (this.type != null) {
10634
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10635
        oprot.writeI32(this.type.getValue());
10636
        oprot.writeFieldEnd();
10637
      }
10638
      oprot.writeFieldStop();
10639
      oprot.writeStructEnd();
10640
    }
10641
 
10642
    @Override
10643
    public String toString() {
10644
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10645
      boolean first = true;
10646
 
10647
      sb.append("catalogItemId:");
10648
      sb.append(this.catalogItemId);
10649
      first = false;
10650
      if (!first) sb.append(", ");
10651
      sb.append("destination_pin:");
10652
      if (this.destination_pin == null) {
10653
        sb.append("null");
10654
      } else {
10655
        sb.append(this.destination_pin);
10656
      }
10657
      first = false;
10658
      if (!first) sb.append(", ");
10659
      sb.append("type:");
10660
      if (this.type == null) {
10661
        sb.append("null");
10662
      } else {
10663
        sb.append(this.type);
10664
      }
10665
      first = false;
10666
      sb.append(")");
10667
      return sb.toString();
10668
    }
10669
 
10670
    public void validate() throws org.apache.thrift.TException {
10671
      // check for required fields
10672
    }
10673
 
10674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10675
      try {
10676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10677
      } catch (org.apache.thrift.TException te) {
10678
        throw new java.io.IOException(te);
10679
      }
10680
    }
10681
 
10682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10683
      try {
10684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10685
      } catch (org.apache.thrift.TException te) {
10686
        throw new java.io.IOException(te);
10687
      }
10688
    }
10689
 
10690
  }
10691
 
10692
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10694
 
10695
    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);
10696
    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);
10697
 
10698
    private List<Long> success; // required
10699
    private LogisticsServiceException se; // required
10700
 
10701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10703
      SUCCESS((short)0, "success"),
10704
      SE((short)1, "se");
10705
 
10706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10707
 
10708
      static {
10709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10710
          byName.put(field.getFieldName(), field);
10711
        }
10712
      }
10713
 
10714
      /**
10715
       * Find the _Fields constant that matches fieldId, or null if its not found.
10716
       */
10717
      public static _Fields findByThriftId(int fieldId) {
10718
        switch(fieldId) {
10719
          case 0: // SUCCESS
10720
            return SUCCESS;
10721
          case 1: // SE
10722
            return SE;
10723
          default:
10724
            return null;
10725
        }
10726
      }
10727
 
10728
      /**
10729
       * Find the _Fields constant that matches fieldId, throwing an exception
10730
       * if it is not found.
10731
       */
10732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10733
        _Fields fields = findByThriftId(fieldId);
10734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10735
        return fields;
10736
      }
10737
 
10738
      /**
10739
       * Find the _Fields constant that matches name, or null if its not found.
10740
       */
10741
      public static _Fields findByName(String name) {
10742
        return byName.get(name);
10743
      }
10744
 
10745
      private final short _thriftId;
10746
      private final String _fieldName;
10747
 
10748
      _Fields(short thriftId, String fieldName) {
10749
        _thriftId = thriftId;
10750
        _fieldName = fieldName;
10751
      }
10752
 
10753
      public short getThriftFieldId() {
10754
        return _thriftId;
10755
      }
10756
 
10757
      public String getFieldName() {
10758
        return _fieldName;
10759
      }
10760
    }
10761
 
10762
    // isset id assignments
10763
 
10764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10765
    static {
10766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10768
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10769
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10770
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
10774
    }
10775
 
10776
    public getEntityLogisticsEstimation_result() {
10777
    }
10778
 
10779
    public getEntityLogisticsEstimation_result(
10780
      List<Long> success,
10781
      LogisticsServiceException se)
10782
    {
10783
      this();
10784
      this.success = success;
10785
      this.se = se;
10786
    }
10787
 
10788
    /**
10789
     * Performs a deep copy on <i>other</i>.
10790
     */
10791
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
10792
      if (other.isSetSuccess()) {
10793
        List<Long> __this__success = new ArrayList<Long>();
10794
        for (Long other_element : other.success) {
10795
          __this__success.add(other_element);
10796
        }
10797
        this.success = __this__success;
10798
      }
10799
      if (other.isSetSe()) {
10800
        this.se = new LogisticsServiceException(other.se);
10801
      }
10802
    }
10803
 
10804
    public getEntityLogisticsEstimation_result deepCopy() {
10805
      return new getEntityLogisticsEstimation_result(this);
10806
    }
10807
 
10808
    @Override
10809
    public void clear() {
10810
      this.success = null;
10811
      this.se = null;
10812
    }
10813
 
10814
    public int getSuccessSize() {
10815
      return (this.success == null) ? 0 : this.success.size();
10816
    }
10817
 
10818
    public java.util.Iterator<Long> getSuccessIterator() {
10819
      return (this.success == null) ? null : this.success.iterator();
10820
    }
10821
 
10822
    public void addToSuccess(long elem) {
10823
      if (this.success == null) {
10824
        this.success = new ArrayList<Long>();
10825
      }
10826
      this.success.add(elem);
10827
    }
10828
 
10829
    public List<Long> getSuccess() {
10830
      return this.success;
10831
    }
10832
 
10833
    public void setSuccess(List<Long> success) {
10834
      this.success = success;
10835
    }
10836
 
10837
    public void unsetSuccess() {
10838
      this.success = null;
10839
    }
10840
 
10841
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10842
    public boolean isSetSuccess() {
10843
      return this.success != null;
10844
    }
10845
 
10846
    public void setSuccessIsSet(boolean value) {
10847
      if (!value) {
10848
        this.success = null;
10849
      }
10850
    }
10851
 
10852
    public LogisticsServiceException getSe() {
10853
      return this.se;
10854
    }
10855
 
10856
    public void setSe(LogisticsServiceException se) {
10857
      this.se = se;
10858
    }
10859
 
10860
    public void unsetSe() {
10861
      this.se = null;
10862
    }
10863
 
10864
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10865
    public boolean isSetSe() {
10866
      return this.se != null;
10867
    }
10868
 
10869
    public void setSeIsSet(boolean value) {
10870
      if (!value) {
10871
        this.se = null;
10872
      }
10873
    }
10874
 
10875
    public void setFieldValue(_Fields field, Object value) {
10876
      switch (field) {
10877
      case SUCCESS:
10878
        if (value == null) {
10879
          unsetSuccess();
10880
        } else {
10881
          setSuccess((List<Long>)value);
10882
        }
10883
        break;
10884
 
10885
      case SE:
10886
        if (value == null) {
10887
          unsetSe();
10888
        } else {
10889
          setSe((LogisticsServiceException)value);
10890
        }
10891
        break;
10892
 
10893
      }
10894
    }
10895
 
10896
    public Object getFieldValue(_Fields field) {
10897
      switch (field) {
10898
      case SUCCESS:
10899
        return getSuccess();
10900
 
10901
      case SE:
10902
        return getSe();
10903
 
10904
      }
10905
      throw new IllegalStateException();
10906
    }
10907
 
10908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10909
    public boolean isSet(_Fields field) {
10910
      if (field == null) {
10911
        throw new IllegalArgumentException();
10912
      }
10913
 
10914
      switch (field) {
10915
      case SUCCESS:
10916
        return isSetSuccess();
10917
      case SE:
10918
        return isSetSe();
10919
      }
10920
      throw new IllegalStateException();
10921
    }
10922
 
10923
    @Override
10924
    public boolean equals(Object that) {
10925
      if (that == null)
10926
        return false;
10927
      if (that instanceof getEntityLogisticsEstimation_result)
10928
        return this.equals((getEntityLogisticsEstimation_result)that);
10929
      return false;
10930
    }
10931
 
10932
    public boolean equals(getEntityLogisticsEstimation_result that) {
10933
      if (that == null)
10934
        return false;
10935
 
10936
      boolean this_present_success = true && this.isSetSuccess();
10937
      boolean that_present_success = true && that.isSetSuccess();
10938
      if (this_present_success || that_present_success) {
10939
        if (!(this_present_success && that_present_success))
10940
          return false;
10941
        if (!this.success.equals(that.success))
10942
          return false;
10943
      }
10944
 
10945
      boolean this_present_se = true && this.isSetSe();
10946
      boolean that_present_se = true && that.isSetSe();
10947
      if (this_present_se || that_present_se) {
10948
        if (!(this_present_se && that_present_se))
10949
          return false;
10950
        if (!this.se.equals(that.se))
10951
          return false;
10952
      }
10953
 
10954
      return true;
10955
    }
10956
 
10957
    @Override
10958
    public int hashCode() {
10959
      return 0;
10960
    }
10961
 
10962
    public int compareTo(getEntityLogisticsEstimation_result other) {
10963
      if (!getClass().equals(other.getClass())) {
10964
        return getClass().getName().compareTo(other.getClass().getName());
10965
      }
10966
 
10967
      int lastComparison = 0;
10968
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
10969
 
10970
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10971
      if (lastComparison != 0) {
10972
        return lastComparison;
10973
      }
10974
      if (isSetSuccess()) {
10975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10976
        if (lastComparison != 0) {
10977
          return lastComparison;
10978
        }
10979
      }
10980
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10981
      if (lastComparison != 0) {
10982
        return lastComparison;
10983
      }
10984
      if (isSetSe()) {
10985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10986
        if (lastComparison != 0) {
10987
          return lastComparison;
10988
        }
10989
      }
10990
      return 0;
10991
    }
10992
 
10993
    public _Fields fieldForId(int fieldId) {
10994
      return _Fields.findByThriftId(fieldId);
10995
    }
10996
 
10997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10998
      org.apache.thrift.protocol.TField field;
10999
      iprot.readStructBegin();
11000
      while (true)
11001
      {
11002
        field = iprot.readFieldBegin();
11003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11004
          break;
11005
        }
11006
        switch (field.id) {
11007
          case 0: // SUCCESS
11008
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11009
              {
7792 anupam.sin 11010
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
11011
                this.success = new ArrayList<Long>(_list16.size);
11012
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11013
                {
7792 anupam.sin 11014
                  long _elem18; // required
11015
                  _elem18 = iprot.readI64();
11016
                  this.success.add(_elem18);
4934 amit.gupta 11017
                }
11018
                iprot.readListEnd();
11019
              }
11020
            } else { 
11021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11022
            }
11023
            break;
11024
          case 1: // SE
11025
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11026
              this.se = new LogisticsServiceException();
11027
              this.se.read(iprot);
11028
            } else { 
11029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11030
            }
11031
            break;
11032
          default:
11033
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11034
        }
11035
        iprot.readFieldEnd();
11036
      }
11037
      iprot.readStructEnd();
11038
      validate();
11039
    }
11040
 
11041
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11042
      oprot.writeStructBegin(STRUCT_DESC);
11043
 
11044
      if (this.isSetSuccess()) {
11045
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11046
        {
11047
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 11048
          for (long _iter19 : this.success)
4934 amit.gupta 11049
          {
7792 anupam.sin 11050
            oprot.writeI64(_iter19);
4934 amit.gupta 11051
          }
11052
          oprot.writeListEnd();
11053
        }
11054
        oprot.writeFieldEnd();
11055
      } else if (this.isSetSe()) {
11056
        oprot.writeFieldBegin(SE_FIELD_DESC);
11057
        this.se.write(oprot);
11058
        oprot.writeFieldEnd();
11059
      }
11060
      oprot.writeFieldStop();
11061
      oprot.writeStructEnd();
11062
    }
11063
 
11064
    @Override
11065
    public String toString() {
11066
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11067
      boolean first = true;
11068
 
11069
      sb.append("success:");
11070
      if (this.success == null) {
11071
        sb.append("null");
11072
      } else {
11073
        sb.append(this.success);
11074
      }
11075
      first = false;
11076
      if (!first) sb.append(", ");
11077
      sb.append("se:");
11078
      if (this.se == null) {
11079
        sb.append("null");
11080
      } else {
11081
        sb.append(this.se);
11082
      }
11083
      first = false;
11084
      sb.append(")");
11085
      return sb.toString();
11086
    }
11087
 
11088
    public void validate() throws org.apache.thrift.TException {
11089
      // check for required fields
11090
    }
11091
 
11092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11093
      try {
11094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11095
      } catch (org.apache.thrift.TException te) {
11096
        throw new java.io.IOException(te);
11097
      }
11098
    }
11099
 
11100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11101
      try {
11102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11103
      } catch (org.apache.thrift.TException te) {
11104
        throw new java.io.IOException(te);
11105
      }
11106
    }
11107
 
11108
  }
11109
 
5527 anupam.sin 11110
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11112
 
11113
    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);
11114
 
11115
    private long pickUp; // required
11116
 
11117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11119
      PICK_UP((short)1, "pickUp");
11120
 
11121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11122
 
11123
      static {
11124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11125
          byName.put(field.getFieldName(), field);
11126
        }
11127
      }
11128
 
11129
      /**
11130
       * Find the _Fields constant that matches fieldId, or null if its not found.
11131
       */
11132
      public static _Fields findByThriftId(int fieldId) {
11133
        switch(fieldId) {
11134
          case 1: // PICK_UP
11135
            return PICK_UP;
11136
          default:
11137
            return null;
11138
        }
11139
      }
11140
 
11141
      /**
11142
       * Find the _Fields constant that matches fieldId, throwing an exception
11143
       * if it is not found.
11144
       */
11145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11146
        _Fields fields = findByThriftId(fieldId);
11147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11148
        return fields;
11149
      }
11150
 
11151
      /**
11152
       * Find the _Fields constant that matches name, or null if its not found.
11153
       */
11154
      public static _Fields findByName(String name) {
11155
        return byName.get(name);
11156
      }
11157
 
11158
      private final short _thriftId;
11159
      private final String _fieldName;
11160
 
11161
      _Fields(short thriftId, String fieldName) {
11162
        _thriftId = thriftId;
11163
        _fieldName = fieldName;
11164
      }
11165
 
11166
      public short getThriftFieldId() {
11167
        return _thriftId;
11168
      }
11169
 
11170
      public String getFieldName() {
11171
        return _fieldName;
11172
      }
11173
    }
11174
 
11175
    // isset id assignments
11176
    private static final int __PICKUP_ISSET_ID = 0;
11177
    private BitSet __isset_bit_vector = new BitSet(1);
11178
 
11179
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11180
    static {
11181
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11182
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11183
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11184
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11185
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11186
    }
11187
 
11188
    public getProviderForPickupType_args() {
11189
    }
11190
 
11191
    public getProviderForPickupType_args(
11192
      long pickUp)
11193
    {
11194
      this();
11195
      this.pickUp = pickUp;
11196
      setPickUpIsSet(true);
11197
    }
11198
 
11199
    /**
11200
     * Performs a deep copy on <i>other</i>.
11201
     */
11202
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11203
      __isset_bit_vector.clear();
11204
      __isset_bit_vector.or(other.__isset_bit_vector);
11205
      this.pickUp = other.pickUp;
11206
    }
11207
 
11208
    public getProviderForPickupType_args deepCopy() {
11209
      return new getProviderForPickupType_args(this);
11210
    }
11211
 
11212
    @Override
11213
    public void clear() {
11214
      setPickUpIsSet(false);
11215
      this.pickUp = 0;
11216
    }
11217
 
11218
    public long getPickUp() {
11219
      return this.pickUp;
11220
    }
11221
 
11222
    public void setPickUp(long pickUp) {
11223
      this.pickUp = pickUp;
11224
      setPickUpIsSet(true);
11225
    }
11226
 
11227
    public void unsetPickUp() {
11228
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11229
    }
11230
 
11231
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11232
    public boolean isSetPickUp() {
11233
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11234
    }
11235
 
11236
    public void setPickUpIsSet(boolean value) {
11237
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11238
    }
11239
 
11240
    public void setFieldValue(_Fields field, Object value) {
11241
      switch (field) {
11242
      case PICK_UP:
11243
        if (value == null) {
11244
          unsetPickUp();
11245
        } else {
11246
          setPickUp((Long)value);
11247
        }
11248
        break;
11249
 
11250
      }
11251
    }
11252
 
11253
    public Object getFieldValue(_Fields field) {
11254
      switch (field) {
11255
      case PICK_UP:
11256
        return Long.valueOf(getPickUp());
11257
 
11258
      }
11259
      throw new IllegalStateException();
11260
    }
11261
 
11262
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11263
    public boolean isSet(_Fields field) {
11264
      if (field == null) {
11265
        throw new IllegalArgumentException();
11266
      }
11267
 
11268
      switch (field) {
11269
      case PICK_UP:
11270
        return isSetPickUp();
11271
      }
11272
      throw new IllegalStateException();
11273
    }
11274
 
11275
    @Override
11276
    public boolean equals(Object that) {
11277
      if (that == null)
11278
        return false;
11279
      if (that instanceof getProviderForPickupType_args)
11280
        return this.equals((getProviderForPickupType_args)that);
11281
      return false;
11282
    }
11283
 
11284
    public boolean equals(getProviderForPickupType_args that) {
11285
      if (that == null)
11286
        return false;
11287
 
11288
      boolean this_present_pickUp = true;
11289
      boolean that_present_pickUp = true;
11290
      if (this_present_pickUp || that_present_pickUp) {
11291
        if (!(this_present_pickUp && that_present_pickUp))
11292
          return false;
11293
        if (this.pickUp != that.pickUp)
11294
          return false;
11295
      }
11296
 
11297
      return true;
11298
    }
11299
 
11300
    @Override
11301
    public int hashCode() {
11302
      return 0;
11303
    }
11304
 
11305
    public int compareTo(getProviderForPickupType_args other) {
11306
      if (!getClass().equals(other.getClass())) {
11307
        return getClass().getName().compareTo(other.getClass().getName());
11308
      }
11309
 
11310
      int lastComparison = 0;
11311
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11312
 
11313
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11314
      if (lastComparison != 0) {
11315
        return lastComparison;
11316
      }
11317
      if (isSetPickUp()) {
11318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11319
        if (lastComparison != 0) {
11320
          return lastComparison;
11321
        }
11322
      }
11323
      return 0;
11324
    }
11325
 
11326
    public _Fields fieldForId(int fieldId) {
11327
      return _Fields.findByThriftId(fieldId);
11328
    }
11329
 
11330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11331
      org.apache.thrift.protocol.TField field;
11332
      iprot.readStructBegin();
11333
      while (true)
11334
      {
11335
        field = iprot.readFieldBegin();
11336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11337
          break;
11338
        }
11339
        switch (field.id) {
11340
          case 1: // PICK_UP
11341
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11342
              this.pickUp = iprot.readI64();
11343
              setPickUpIsSet(true);
11344
            } else { 
11345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11346
            }
11347
            break;
11348
          default:
11349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11350
        }
11351
        iprot.readFieldEnd();
11352
      }
11353
      iprot.readStructEnd();
11354
      validate();
11355
    }
11356
 
11357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11358
      validate();
11359
 
11360
      oprot.writeStructBegin(STRUCT_DESC);
11361
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11362
      oprot.writeI64(this.pickUp);
11363
      oprot.writeFieldEnd();
11364
      oprot.writeFieldStop();
11365
      oprot.writeStructEnd();
11366
    }
11367
 
11368
    @Override
11369
    public String toString() {
11370
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11371
      boolean first = true;
11372
 
11373
      sb.append("pickUp:");
11374
      sb.append(this.pickUp);
11375
      first = false;
11376
      sb.append(")");
11377
      return sb.toString();
11378
    }
11379
 
11380
    public void validate() throws org.apache.thrift.TException {
11381
      // check for required fields
11382
    }
11383
 
11384
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11385
      try {
11386
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11387
      } catch (org.apache.thrift.TException te) {
11388
        throw new java.io.IOException(te);
11389
      }
11390
    }
11391
 
11392
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11393
      try {
11394
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11395
        __isset_bit_vector = new BitSet(1);
11396
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11397
      } catch (org.apache.thrift.TException te) {
11398
        throw new java.io.IOException(te);
11399
      }
11400
    }
11401
 
11402
  }
11403
 
11404
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11405
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11406
 
11407
    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);
11408
 
11409
    private long success; // required
11410
 
11411
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11412
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11413
      SUCCESS((short)0, "success");
11414
 
11415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11416
 
11417
      static {
11418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11419
          byName.put(field.getFieldName(), field);
11420
        }
11421
      }
11422
 
11423
      /**
11424
       * Find the _Fields constant that matches fieldId, or null if its not found.
11425
       */
11426
      public static _Fields findByThriftId(int fieldId) {
11427
        switch(fieldId) {
11428
          case 0: // SUCCESS
11429
            return SUCCESS;
11430
          default:
11431
            return null;
11432
        }
11433
      }
11434
 
11435
      /**
11436
       * Find the _Fields constant that matches fieldId, throwing an exception
11437
       * if it is not found.
11438
       */
11439
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11440
        _Fields fields = findByThriftId(fieldId);
11441
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11442
        return fields;
11443
      }
11444
 
11445
      /**
11446
       * Find the _Fields constant that matches name, or null if its not found.
11447
       */
11448
      public static _Fields findByName(String name) {
11449
        return byName.get(name);
11450
      }
11451
 
11452
      private final short _thriftId;
11453
      private final String _fieldName;
11454
 
11455
      _Fields(short thriftId, String fieldName) {
11456
        _thriftId = thriftId;
11457
        _fieldName = fieldName;
11458
      }
11459
 
11460
      public short getThriftFieldId() {
11461
        return _thriftId;
11462
      }
11463
 
11464
      public String getFieldName() {
11465
        return _fieldName;
11466
      }
11467
    }
11468
 
11469
    // isset id assignments
11470
    private static final int __SUCCESS_ISSET_ID = 0;
11471
    private BitSet __isset_bit_vector = new BitSet(1);
11472
 
11473
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11474
    static {
11475
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11476
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11477
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11478
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11479
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11480
    }
11481
 
11482
    public getProviderForPickupType_result() {
11483
    }
11484
 
11485
    public getProviderForPickupType_result(
11486
      long success)
11487
    {
11488
      this();
11489
      this.success = success;
11490
      setSuccessIsSet(true);
11491
    }
11492
 
11493
    /**
11494
     * Performs a deep copy on <i>other</i>.
11495
     */
11496
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11497
      __isset_bit_vector.clear();
11498
      __isset_bit_vector.or(other.__isset_bit_vector);
11499
      this.success = other.success;
11500
    }
11501
 
11502
    public getProviderForPickupType_result deepCopy() {
11503
      return new getProviderForPickupType_result(this);
11504
    }
11505
 
11506
    @Override
11507
    public void clear() {
11508
      setSuccessIsSet(false);
11509
      this.success = 0;
11510
    }
11511
 
11512
    public long getSuccess() {
11513
      return this.success;
11514
    }
11515
 
11516
    public void setSuccess(long success) {
11517
      this.success = success;
11518
      setSuccessIsSet(true);
11519
    }
11520
 
11521
    public void unsetSuccess() {
11522
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11523
    }
11524
 
11525
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11526
    public boolean isSetSuccess() {
11527
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11528
    }
11529
 
11530
    public void setSuccessIsSet(boolean value) {
11531
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11532
    }
11533
 
11534
    public void setFieldValue(_Fields field, Object value) {
11535
      switch (field) {
11536
      case SUCCESS:
11537
        if (value == null) {
11538
          unsetSuccess();
11539
        } else {
11540
          setSuccess((Long)value);
11541
        }
11542
        break;
11543
 
11544
      }
11545
    }
11546
 
11547
    public Object getFieldValue(_Fields field) {
11548
      switch (field) {
11549
      case SUCCESS:
11550
        return Long.valueOf(getSuccess());
11551
 
11552
      }
11553
      throw new IllegalStateException();
11554
    }
11555
 
11556
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11557
    public boolean isSet(_Fields field) {
11558
      if (field == null) {
11559
        throw new IllegalArgumentException();
11560
      }
11561
 
11562
      switch (field) {
11563
      case SUCCESS:
11564
        return isSetSuccess();
11565
      }
11566
      throw new IllegalStateException();
11567
    }
11568
 
11569
    @Override
11570
    public boolean equals(Object that) {
11571
      if (that == null)
11572
        return false;
11573
      if (that instanceof getProviderForPickupType_result)
11574
        return this.equals((getProviderForPickupType_result)that);
11575
      return false;
11576
    }
11577
 
11578
    public boolean equals(getProviderForPickupType_result that) {
11579
      if (that == null)
11580
        return false;
11581
 
11582
      boolean this_present_success = true;
11583
      boolean that_present_success = true;
11584
      if (this_present_success || that_present_success) {
11585
        if (!(this_present_success && that_present_success))
11586
          return false;
11587
        if (this.success != that.success)
11588
          return false;
11589
      }
11590
 
11591
      return true;
11592
    }
11593
 
11594
    @Override
11595
    public int hashCode() {
11596
      return 0;
11597
    }
11598
 
11599
    public int compareTo(getProviderForPickupType_result other) {
11600
      if (!getClass().equals(other.getClass())) {
11601
        return getClass().getName().compareTo(other.getClass().getName());
11602
      }
11603
 
11604
      int lastComparison = 0;
11605
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11606
 
11607
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11608
      if (lastComparison != 0) {
11609
        return lastComparison;
11610
      }
11611
      if (isSetSuccess()) {
11612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11613
        if (lastComparison != 0) {
11614
          return lastComparison;
11615
        }
11616
      }
11617
      return 0;
11618
    }
11619
 
11620
    public _Fields fieldForId(int fieldId) {
11621
      return _Fields.findByThriftId(fieldId);
11622
    }
11623
 
11624
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11625
      org.apache.thrift.protocol.TField field;
11626
      iprot.readStructBegin();
11627
      while (true)
11628
      {
11629
        field = iprot.readFieldBegin();
11630
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11631
          break;
11632
        }
11633
        switch (field.id) {
11634
          case 0: // SUCCESS
11635
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11636
              this.success = iprot.readI64();
11637
              setSuccessIsSet(true);
11638
            } else { 
11639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11640
            }
11641
            break;
11642
          default:
11643
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11644
        }
11645
        iprot.readFieldEnd();
11646
      }
11647
      iprot.readStructEnd();
11648
      validate();
11649
    }
11650
 
11651
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11652
      oprot.writeStructBegin(STRUCT_DESC);
11653
 
11654
      if (this.isSetSuccess()) {
11655
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11656
        oprot.writeI64(this.success);
11657
        oprot.writeFieldEnd();
11658
      }
11659
      oprot.writeFieldStop();
11660
      oprot.writeStructEnd();
11661
    }
11662
 
11663
    @Override
11664
    public String toString() {
11665
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11666
      boolean first = true;
11667
 
11668
      sb.append("success:");
11669
      sb.append(this.success);
11670
      first = false;
11671
      sb.append(")");
11672
      return sb.toString();
11673
    }
11674
 
11675
    public void validate() throws org.apache.thrift.TException {
11676
      // check for required fields
11677
    }
11678
 
11679
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11680
      try {
11681
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11682
      } catch (org.apache.thrift.TException te) {
11683
        throw new java.io.IOException(te);
11684
      }
11685
    }
11686
 
11687
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11688
      try {
11689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11690
      } catch (org.apache.thrift.TException te) {
11691
        throw new java.io.IOException(te);
11692
      }
11693
    }
11694
 
11695
  }
11696
 
5553 rajveer 11697
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11699
 
11700
 
11701
 
11702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11703
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11704
;
11705
 
11706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11707
 
11708
      static {
11709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11710
          byName.put(field.getFieldName(), field);
11711
        }
11712
      }
11713
 
11714
      /**
11715
       * Find the _Fields constant that matches fieldId, or null if its not found.
11716
       */
11717
      public static _Fields findByThriftId(int fieldId) {
11718
        switch(fieldId) {
11719
          default:
11720
            return null;
11721
        }
11722
      }
11723
 
11724
      /**
11725
       * Find the _Fields constant that matches fieldId, throwing an exception
11726
       * if it is not found.
11727
       */
11728
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11729
        _Fields fields = findByThriftId(fieldId);
11730
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11731
        return fields;
11732
      }
11733
 
11734
      /**
11735
       * Find the _Fields constant that matches name, or null if its not found.
11736
       */
11737
      public static _Fields findByName(String name) {
11738
        return byName.get(name);
11739
      }
11740
 
11741
      private final short _thriftId;
11742
      private final String _fieldName;
11743
 
11744
      _Fields(short thriftId, String fieldName) {
11745
        _thriftId = thriftId;
11746
        _fieldName = fieldName;
11747
      }
11748
 
11749
      public short getThriftFieldId() {
11750
        return _thriftId;
11751
      }
11752
 
11753
      public String getFieldName() {
11754
        return _fieldName;
11755
      }
11756
    }
11757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11758
    static {
11759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11760
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11761
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
11762
    }
11763
 
11764
    public getAllPickupStores_args() {
11765
    }
11766
 
11767
    /**
11768
     * Performs a deep copy on <i>other</i>.
11769
     */
11770
    public getAllPickupStores_args(getAllPickupStores_args other) {
11771
    }
11772
 
11773
    public getAllPickupStores_args deepCopy() {
11774
      return new getAllPickupStores_args(this);
11775
    }
11776
 
11777
    @Override
11778
    public void clear() {
11779
    }
11780
 
11781
    public void setFieldValue(_Fields field, Object value) {
11782
      switch (field) {
11783
      }
11784
    }
11785
 
11786
    public Object getFieldValue(_Fields field) {
11787
      switch (field) {
11788
      }
11789
      throw new IllegalStateException();
11790
    }
11791
 
11792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11793
    public boolean isSet(_Fields field) {
11794
      if (field == null) {
11795
        throw new IllegalArgumentException();
11796
      }
11797
 
11798
      switch (field) {
11799
      }
11800
      throw new IllegalStateException();
11801
    }
11802
 
11803
    @Override
11804
    public boolean equals(Object that) {
11805
      if (that == null)
11806
        return false;
11807
      if (that instanceof getAllPickupStores_args)
11808
        return this.equals((getAllPickupStores_args)that);
11809
      return false;
11810
    }
11811
 
11812
    public boolean equals(getAllPickupStores_args that) {
11813
      if (that == null)
11814
        return false;
11815
 
11816
      return true;
11817
    }
11818
 
11819
    @Override
11820
    public int hashCode() {
11821
      return 0;
11822
    }
11823
 
11824
    public int compareTo(getAllPickupStores_args other) {
11825
      if (!getClass().equals(other.getClass())) {
11826
        return getClass().getName().compareTo(other.getClass().getName());
11827
      }
11828
 
11829
      int lastComparison = 0;
11830
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
11831
 
11832
      return 0;
11833
    }
11834
 
11835
    public _Fields fieldForId(int fieldId) {
11836
      return _Fields.findByThriftId(fieldId);
11837
    }
11838
 
11839
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11840
      org.apache.thrift.protocol.TField field;
11841
      iprot.readStructBegin();
11842
      while (true)
11843
      {
11844
        field = iprot.readFieldBegin();
11845
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11846
          break;
11847
        }
11848
        switch (field.id) {
11849
          default:
11850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11851
        }
11852
        iprot.readFieldEnd();
11853
      }
11854
      iprot.readStructEnd();
11855
      validate();
11856
    }
11857
 
11858
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11859
      validate();
11860
 
11861
      oprot.writeStructBegin(STRUCT_DESC);
11862
      oprot.writeFieldStop();
11863
      oprot.writeStructEnd();
11864
    }
11865
 
11866
    @Override
11867
    public String toString() {
11868
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
11869
      boolean first = true;
11870
 
11871
      sb.append(")");
11872
      return sb.toString();
11873
    }
11874
 
11875
    public void validate() throws org.apache.thrift.TException {
11876
      // check for required fields
11877
    }
11878
 
11879
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11880
      try {
11881
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11882
      } catch (org.apache.thrift.TException te) {
11883
        throw new java.io.IOException(te);
11884
      }
11885
    }
11886
 
11887
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11888
      try {
11889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11890
      } catch (org.apache.thrift.TException te) {
11891
        throw new java.io.IOException(te);
11892
      }
11893
    }
11894
 
11895
  }
11896
 
11897
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
11898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
11899
 
11900
    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);
11901
 
11902
    private List<PickupStore> success; // required
11903
 
11904
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11905
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11906
      SUCCESS((short)0, "success");
11907
 
11908
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11909
 
11910
      static {
11911
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11912
          byName.put(field.getFieldName(), field);
11913
        }
11914
      }
11915
 
11916
      /**
11917
       * Find the _Fields constant that matches fieldId, or null if its not found.
11918
       */
11919
      public static _Fields findByThriftId(int fieldId) {
11920
        switch(fieldId) {
11921
          case 0: // SUCCESS
11922
            return SUCCESS;
11923
          default:
11924
            return null;
11925
        }
11926
      }
11927
 
11928
      /**
11929
       * Find the _Fields constant that matches fieldId, throwing an exception
11930
       * if it is not found.
11931
       */
11932
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11933
        _Fields fields = findByThriftId(fieldId);
11934
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11935
        return fields;
11936
      }
11937
 
11938
      /**
11939
       * Find the _Fields constant that matches name, or null if its not found.
11940
       */
11941
      public static _Fields findByName(String name) {
11942
        return byName.get(name);
11943
      }
11944
 
11945
      private final short _thriftId;
11946
      private final String _fieldName;
11947
 
11948
      _Fields(short thriftId, String fieldName) {
11949
        _thriftId = thriftId;
11950
        _fieldName = fieldName;
11951
      }
11952
 
11953
      public short getThriftFieldId() {
11954
        return _thriftId;
11955
      }
11956
 
11957
      public String getFieldName() {
11958
        return _fieldName;
11959
      }
11960
    }
11961
 
11962
    // isset id assignments
11963
 
11964
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11965
    static {
11966
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11967
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11968
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11969
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
11970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
11972
    }
11973
 
11974
    public getAllPickupStores_result() {
11975
    }
11976
 
11977
    public getAllPickupStores_result(
11978
      List<PickupStore> success)
11979
    {
11980
      this();
11981
      this.success = success;
11982
    }
11983
 
11984
    /**
11985
     * Performs a deep copy on <i>other</i>.
11986
     */
11987
    public getAllPickupStores_result(getAllPickupStores_result other) {
11988
      if (other.isSetSuccess()) {
11989
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
11990
        for (PickupStore other_element : other.success) {
11991
          __this__success.add(new PickupStore(other_element));
11992
        }
11993
        this.success = __this__success;
11994
      }
11995
    }
11996
 
11997
    public getAllPickupStores_result deepCopy() {
11998
      return new getAllPickupStores_result(this);
11999
    }
12000
 
12001
    @Override
12002
    public void clear() {
12003
      this.success = null;
12004
    }
12005
 
12006
    public int getSuccessSize() {
12007
      return (this.success == null) ? 0 : this.success.size();
12008
    }
12009
 
12010
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12011
      return (this.success == null) ? null : this.success.iterator();
12012
    }
12013
 
12014
    public void addToSuccess(PickupStore elem) {
12015
      if (this.success == null) {
12016
        this.success = new ArrayList<PickupStore>();
12017
      }
12018
      this.success.add(elem);
12019
    }
12020
 
12021
    public List<PickupStore> getSuccess() {
12022
      return this.success;
12023
    }
12024
 
12025
    public void setSuccess(List<PickupStore> success) {
12026
      this.success = success;
12027
    }
12028
 
12029
    public void unsetSuccess() {
12030
      this.success = null;
12031
    }
12032
 
12033
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12034
    public boolean isSetSuccess() {
12035
      return this.success != null;
12036
    }
12037
 
12038
    public void setSuccessIsSet(boolean value) {
12039
      if (!value) {
12040
        this.success = null;
12041
      }
12042
    }
12043
 
12044
    public void setFieldValue(_Fields field, Object value) {
12045
      switch (field) {
12046
      case SUCCESS:
12047
        if (value == null) {
12048
          unsetSuccess();
12049
        } else {
12050
          setSuccess((List<PickupStore>)value);
12051
        }
12052
        break;
12053
 
12054
      }
12055
    }
12056
 
12057
    public Object getFieldValue(_Fields field) {
12058
      switch (field) {
12059
      case SUCCESS:
12060
        return getSuccess();
12061
 
12062
      }
12063
      throw new IllegalStateException();
12064
    }
12065
 
12066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12067
    public boolean isSet(_Fields field) {
12068
      if (field == null) {
12069
        throw new IllegalArgumentException();
12070
      }
12071
 
12072
      switch (field) {
12073
      case SUCCESS:
12074
        return isSetSuccess();
12075
      }
12076
      throw new IllegalStateException();
12077
    }
12078
 
12079
    @Override
12080
    public boolean equals(Object that) {
12081
      if (that == null)
12082
        return false;
12083
      if (that instanceof getAllPickupStores_result)
12084
        return this.equals((getAllPickupStores_result)that);
12085
      return false;
12086
    }
12087
 
12088
    public boolean equals(getAllPickupStores_result that) {
12089
      if (that == null)
12090
        return false;
12091
 
12092
      boolean this_present_success = true && this.isSetSuccess();
12093
      boolean that_present_success = true && that.isSetSuccess();
12094
      if (this_present_success || that_present_success) {
12095
        if (!(this_present_success && that_present_success))
12096
          return false;
12097
        if (!this.success.equals(that.success))
12098
          return false;
12099
      }
12100
 
12101
      return true;
12102
    }
12103
 
12104
    @Override
12105
    public int hashCode() {
12106
      return 0;
12107
    }
12108
 
12109
    public int compareTo(getAllPickupStores_result other) {
12110
      if (!getClass().equals(other.getClass())) {
12111
        return getClass().getName().compareTo(other.getClass().getName());
12112
      }
12113
 
12114
      int lastComparison = 0;
12115
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12116
 
12117
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12118
      if (lastComparison != 0) {
12119
        return lastComparison;
12120
      }
12121
      if (isSetSuccess()) {
12122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12123
        if (lastComparison != 0) {
12124
          return lastComparison;
12125
        }
12126
      }
12127
      return 0;
12128
    }
12129
 
12130
    public _Fields fieldForId(int fieldId) {
12131
      return _Fields.findByThriftId(fieldId);
12132
    }
12133
 
12134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12135
      org.apache.thrift.protocol.TField field;
12136
      iprot.readStructBegin();
12137
      while (true)
12138
      {
12139
        field = iprot.readFieldBegin();
12140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12141
          break;
12142
        }
12143
        switch (field.id) {
12144
          case 0: // SUCCESS
12145
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12146
              {
7792 anupam.sin 12147
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12148
                this.success = new ArrayList<PickupStore>(_list20.size);
12149
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12150
                {
7792 anupam.sin 12151
                  PickupStore _elem22; // required
12152
                  _elem22 = new PickupStore();
12153
                  _elem22.read(iprot);
12154
                  this.success.add(_elem22);
5553 rajveer 12155
                }
12156
                iprot.readListEnd();
12157
              }
12158
            } else { 
12159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12160
            }
12161
            break;
12162
          default:
12163
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12164
        }
12165
        iprot.readFieldEnd();
12166
      }
12167
      iprot.readStructEnd();
12168
      validate();
12169
    }
12170
 
12171
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12172
      oprot.writeStructBegin(STRUCT_DESC);
12173
 
12174
      if (this.isSetSuccess()) {
12175
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12176
        {
12177
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12178
          for (PickupStore _iter23 : this.success)
5553 rajveer 12179
          {
7792 anupam.sin 12180
            _iter23.write(oprot);
5553 rajveer 12181
          }
12182
          oprot.writeListEnd();
12183
        }
12184
        oprot.writeFieldEnd();
12185
      }
12186
      oprot.writeFieldStop();
12187
      oprot.writeStructEnd();
12188
    }
12189
 
12190
    @Override
12191
    public String toString() {
12192
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12193
      boolean first = true;
12194
 
12195
      sb.append("success:");
12196
      if (this.success == null) {
12197
        sb.append("null");
12198
      } else {
12199
        sb.append(this.success);
12200
      }
12201
      first = false;
12202
      sb.append(")");
12203
      return sb.toString();
12204
    }
12205
 
12206
    public void validate() throws org.apache.thrift.TException {
12207
      // check for required fields
12208
    }
12209
 
12210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12211
      try {
12212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12213
      } catch (org.apache.thrift.TException te) {
12214
        throw new java.io.IOException(te);
12215
      }
12216
    }
12217
 
12218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12219
      try {
12220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12221
      } catch (org.apache.thrift.TException te) {
12222
        throw new java.io.IOException(te);
12223
      }
12224
    }
12225
 
12226
  }
12227
 
12228
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12230
 
12231
    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);
12232
 
12233
    private long storeId; // required
12234
 
12235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12237
      STORE_ID((short)1, "storeId");
12238
 
12239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12240
 
12241
      static {
12242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12243
          byName.put(field.getFieldName(), field);
12244
        }
12245
      }
12246
 
12247
      /**
12248
       * Find the _Fields constant that matches fieldId, or null if its not found.
12249
       */
12250
      public static _Fields findByThriftId(int fieldId) {
12251
        switch(fieldId) {
12252
          case 1: // STORE_ID
12253
            return STORE_ID;
12254
          default:
12255
            return null;
12256
        }
12257
      }
12258
 
12259
      /**
12260
       * Find the _Fields constant that matches fieldId, throwing an exception
12261
       * if it is not found.
12262
       */
12263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12264
        _Fields fields = findByThriftId(fieldId);
12265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12266
        return fields;
12267
      }
12268
 
12269
      /**
12270
       * Find the _Fields constant that matches name, or null if its not found.
12271
       */
12272
      public static _Fields findByName(String name) {
12273
        return byName.get(name);
12274
      }
12275
 
12276
      private final short _thriftId;
12277
      private final String _fieldName;
12278
 
12279
      _Fields(short thriftId, String fieldName) {
12280
        _thriftId = thriftId;
12281
        _fieldName = fieldName;
12282
      }
12283
 
12284
      public short getThriftFieldId() {
12285
        return _thriftId;
12286
      }
12287
 
12288
      public String getFieldName() {
12289
        return _fieldName;
12290
      }
12291
    }
12292
 
12293
    // isset id assignments
12294
    private static final int __STOREID_ISSET_ID = 0;
12295
    private BitSet __isset_bit_vector = new BitSet(1);
12296
 
12297
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12298
    static {
12299
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12300
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12304
    }
12305
 
12306
    public getPickupStore_args() {
12307
    }
12308
 
12309
    public getPickupStore_args(
12310
      long storeId)
12311
    {
12312
      this();
12313
      this.storeId = storeId;
12314
      setStoreIdIsSet(true);
12315
    }
12316
 
12317
    /**
12318
     * Performs a deep copy on <i>other</i>.
12319
     */
12320
    public getPickupStore_args(getPickupStore_args other) {
12321
      __isset_bit_vector.clear();
12322
      __isset_bit_vector.or(other.__isset_bit_vector);
12323
      this.storeId = other.storeId;
12324
    }
12325
 
12326
    public getPickupStore_args deepCopy() {
12327
      return new getPickupStore_args(this);
12328
    }
12329
 
12330
    @Override
12331
    public void clear() {
12332
      setStoreIdIsSet(false);
12333
      this.storeId = 0;
12334
    }
12335
 
12336
    public long getStoreId() {
12337
      return this.storeId;
12338
    }
12339
 
12340
    public void setStoreId(long storeId) {
12341
      this.storeId = storeId;
12342
      setStoreIdIsSet(true);
12343
    }
12344
 
12345
    public void unsetStoreId() {
12346
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12347
    }
12348
 
12349
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12350
    public boolean isSetStoreId() {
12351
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12352
    }
12353
 
12354
    public void setStoreIdIsSet(boolean value) {
12355
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12356
    }
12357
 
12358
    public void setFieldValue(_Fields field, Object value) {
12359
      switch (field) {
12360
      case STORE_ID:
12361
        if (value == null) {
12362
          unsetStoreId();
12363
        } else {
12364
          setStoreId((Long)value);
12365
        }
12366
        break;
12367
 
12368
      }
12369
    }
12370
 
12371
    public Object getFieldValue(_Fields field) {
12372
      switch (field) {
12373
      case STORE_ID:
12374
        return Long.valueOf(getStoreId());
12375
 
12376
      }
12377
      throw new IllegalStateException();
12378
    }
12379
 
12380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12381
    public boolean isSet(_Fields field) {
12382
      if (field == null) {
12383
        throw new IllegalArgumentException();
12384
      }
12385
 
12386
      switch (field) {
12387
      case STORE_ID:
12388
        return isSetStoreId();
12389
      }
12390
      throw new IllegalStateException();
12391
    }
12392
 
12393
    @Override
12394
    public boolean equals(Object that) {
12395
      if (that == null)
12396
        return false;
12397
      if (that instanceof getPickupStore_args)
12398
        return this.equals((getPickupStore_args)that);
12399
      return false;
12400
    }
12401
 
12402
    public boolean equals(getPickupStore_args that) {
12403
      if (that == null)
12404
        return false;
12405
 
12406
      boolean this_present_storeId = true;
12407
      boolean that_present_storeId = true;
12408
      if (this_present_storeId || that_present_storeId) {
12409
        if (!(this_present_storeId && that_present_storeId))
12410
          return false;
12411
        if (this.storeId != that.storeId)
12412
          return false;
12413
      }
12414
 
12415
      return true;
12416
    }
12417
 
12418
    @Override
12419
    public int hashCode() {
12420
      return 0;
12421
    }
12422
 
12423
    public int compareTo(getPickupStore_args other) {
12424
      if (!getClass().equals(other.getClass())) {
12425
        return getClass().getName().compareTo(other.getClass().getName());
12426
      }
12427
 
12428
      int lastComparison = 0;
12429
      getPickupStore_args typedOther = (getPickupStore_args)other;
12430
 
12431
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12432
      if (lastComparison != 0) {
12433
        return lastComparison;
12434
      }
12435
      if (isSetStoreId()) {
12436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12437
        if (lastComparison != 0) {
12438
          return lastComparison;
12439
        }
12440
      }
12441
      return 0;
12442
    }
12443
 
12444
    public _Fields fieldForId(int fieldId) {
12445
      return _Fields.findByThriftId(fieldId);
12446
    }
12447
 
12448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12449
      org.apache.thrift.protocol.TField field;
12450
      iprot.readStructBegin();
12451
      while (true)
12452
      {
12453
        field = iprot.readFieldBegin();
12454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12455
          break;
12456
        }
12457
        switch (field.id) {
12458
          case 1: // STORE_ID
12459
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12460
              this.storeId = iprot.readI64();
12461
              setStoreIdIsSet(true);
12462
            } else { 
12463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12464
            }
12465
            break;
12466
          default:
12467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12468
        }
12469
        iprot.readFieldEnd();
12470
      }
12471
      iprot.readStructEnd();
12472
      validate();
12473
    }
12474
 
12475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12476
      validate();
12477
 
12478
      oprot.writeStructBegin(STRUCT_DESC);
12479
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12480
      oprot.writeI64(this.storeId);
12481
      oprot.writeFieldEnd();
12482
      oprot.writeFieldStop();
12483
      oprot.writeStructEnd();
12484
    }
12485
 
12486
    @Override
12487
    public String toString() {
12488
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12489
      boolean first = true;
12490
 
12491
      sb.append("storeId:");
12492
      sb.append(this.storeId);
12493
      first = false;
12494
      sb.append(")");
12495
      return sb.toString();
12496
    }
12497
 
12498
    public void validate() throws org.apache.thrift.TException {
12499
      // check for required fields
12500
    }
12501
 
12502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12503
      try {
12504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12505
      } catch (org.apache.thrift.TException te) {
12506
        throw new java.io.IOException(te);
12507
      }
12508
    }
12509
 
12510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12511
      try {
12512
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12513
        __isset_bit_vector = new BitSet(1);
12514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12515
      } catch (org.apache.thrift.TException te) {
12516
        throw new java.io.IOException(te);
12517
      }
12518
    }
12519
 
12520
  }
12521
 
12522
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12524
 
12525
    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);
12526
 
12527
    private PickupStore success; // required
12528
 
12529
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12530
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12531
      SUCCESS((short)0, "success");
12532
 
12533
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12534
 
12535
      static {
12536
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12537
          byName.put(field.getFieldName(), field);
12538
        }
12539
      }
12540
 
12541
      /**
12542
       * Find the _Fields constant that matches fieldId, or null if its not found.
12543
       */
12544
      public static _Fields findByThriftId(int fieldId) {
12545
        switch(fieldId) {
12546
          case 0: // SUCCESS
12547
            return SUCCESS;
12548
          default:
12549
            return null;
12550
        }
12551
      }
12552
 
12553
      /**
12554
       * Find the _Fields constant that matches fieldId, throwing an exception
12555
       * if it is not found.
12556
       */
12557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12558
        _Fields fields = findByThriftId(fieldId);
12559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12560
        return fields;
12561
      }
12562
 
12563
      /**
12564
       * Find the _Fields constant that matches name, or null if its not found.
12565
       */
12566
      public static _Fields findByName(String name) {
12567
        return byName.get(name);
12568
      }
12569
 
12570
      private final short _thriftId;
12571
      private final String _fieldName;
12572
 
12573
      _Fields(short thriftId, String fieldName) {
12574
        _thriftId = thriftId;
12575
        _fieldName = fieldName;
12576
      }
12577
 
12578
      public short getThriftFieldId() {
12579
        return _thriftId;
12580
      }
12581
 
12582
      public String getFieldName() {
12583
        return _fieldName;
12584
      }
12585
    }
12586
 
12587
    // isset id assignments
12588
 
12589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12590
    static {
12591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12593
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12596
    }
12597
 
12598
    public getPickupStore_result() {
12599
    }
12600
 
12601
    public getPickupStore_result(
12602
      PickupStore success)
12603
    {
12604
      this();
12605
      this.success = success;
12606
    }
12607
 
12608
    /**
12609
     * Performs a deep copy on <i>other</i>.
12610
     */
12611
    public getPickupStore_result(getPickupStore_result other) {
12612
      if (other.isSetSuccess()) {
12613
        this.success = new PickupStore(other.success);
12614
      }
12615
    }
12616
 
12617
    public getPickupStore_result deepCopy() {
12618
      return new getPickupStore_result(this);
12619
    }
12620
 
12621
    @Override
12622
    public void clear() {
12623
      this.success = null;
12624
    }
12625
 
12626
    public PickupStore getSuccess() {
12627
      return this.success;
12628
    }
12629
 
12630
    public void setSuccess(PickupStore success) {
12631
      this.success = success;
12632
    }
12633
 
12634
    public void unsetSuccess() {
12635
      this.success = null;
12636
    }
12637
 
12638
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12639
    public boolean isSetSuccess() {
12640
      return this.success != null;
12641
    }
12642
 
12643
    public void setSuccessIsSet(boolean value) {
12644
      if (!value) {
12645
        this.success = null;
12646
      }
12647
    }
12648
 
12649
    public void setFieldValue(_Fields field, Object value) {
12650
      switch (field) {
12651
      case SUCCESS:
12652
        if (value == null) {
12653
          unsetSuccess();
12654
        } else {
12655
          setSuccess((PickupStore)value);
12656
        }
12657
        break;
12658
 
12659
      }
12660
    }
12661
 
12662
    public Object getFieldValue(_Fields field) {
12663
      switch (field) {
12664
      case SUCCESS:
12665
        return getSuccess();
12666
 
12667
      }
12668
      throw new IllegalStateException();
12669
    }
12670
 
12671
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12672
    public boolean isSet(_Fields field) {
12673
      if (field == null) {
12674
        throw new IllegalArgumentException();
12675
      }
12676
 
12677
      switch (field) {
12678
      case SUCCESS:
12679
        return isSetSuccess();
12680
      }
12681
      throw new IllegalStateException();
12682
    }
12683
 
12684
    @Override
12685
    public boolean equals(Object that) {
12686
      if (that == null)
12687
        return false;
12688
      if (that instanceof getPickupStore_result)
12689
        return this.equals((getPickupStore_result)that);
12690
      return false;
12691
    }
12692
 
12693
    public boolean equals(getPickupStore_result that) {
12694
      if (that == null)
12695
        return false;
12696
 
12697
      boolean this_present_success = true && this.isSetSuccess();
12698
      boolean that_present_success = true && that.isSetSuccess();
12699
      if (this_present_success || that_present_success) {
12700
        if (!(this_present_success && that_present_success))
12701
          return false;
12702
        if (!this.success.equals(that.success))
12703
          return false;
12704
      }
12705
 
12706
      return true;
12707
    }
12708
 
12709
    @Override
12710
    public int hashCode() {
12711
      return 0;
12712
    }
12713
 
12714
    public int compareTo(getPickupStore_result other) {
12715
      if (!getClass().equals(other.getClass())) {
12716
        return getClass().getName().compareTo(other.getClass().getName());
12717
      }
12718
 
12719
      int lastComparison = 0;
12720
      getPickupStore_result typedOther = (getPickupStore_result)other;
12721
 
12722
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12723
      if (lastComparison != 0) {
12724
        return lastComparison;
12725
      }
12726
      if (isSetSuccess()) {
12727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12728
        if (lastComparison != 0) {
12729
          return lastComparison;
12730
        }
12731
      }
12732
      return 0;
12733
    }
12734
 
12735
    public _Fields fieldForId(int fieldId) {
12736
      return _Fields.findByThriftId(fieldId);
12737
    }
12738
 
12739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12740
      org.apache.thrift.protocol.TField field;
12741
      iprot.readStructBegin();
12742
      while (true)
12743
      {
12744
        field = iprot.readFieldBegin();
12745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12746
          break;
12747
        }
12748
        switch (field.id) {
12749
          case 0: // SUCCESS
12750
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12751
              this.success = new PickupStore();
12752
              this.success.read(iprot);
12753
            } else { 
12754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12755
            }
12756
            break;
12757
          default:
12758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12759
        }
12760
        iprot.readFieldEnd();
12761
      }
12762
      iprot.readStructEnd();
12763
      validate();
12764
    }
12765
 
12766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12767
      oprot.writeStructBegin(STRUCT_DESC);
12768
 
12769
      if (this.isSetSuccess()) {
12770
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12771
        this.success.write(oprot);
12772
        oprot.writeFieldEnd();
12773
      }
12774
      oprot.writeFieldStop();
12775
      oprot.writeStructEnd();
12776
    }
12777
 
12778
    @Override
12779
    public String toString() {
12780
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
12781
      boolean first = true;
12782
 
12783
      sb.append("success:");
12784
      if (this.success == null) {
12785
        sb.append("null");
12786
      } else {
12787
        sb.append(this.success);
12788
      }
12789
      first = false;
12790
      sb.append(")");
12791
      return sb.toString();
12792
    }
12793
 
12794
    public void validate() throws org.apache.thrift.TException {
12795
      // check for required fields
12796
    }
12797
 
12798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12799
      try {
12800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12801
      } catch (org.apache.thrift.TException te) {
12802
        throw new java.io.IOException(te);
12803
      }
12804
    }
12805
 
12806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12807
      try {
12808
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12809
      } catch (org.apache.thrift.TException te) {
12810
        throw new java.io.IOException(te);
12811
      }
12812
    }
12813
 
12814
  }
12815
 
5719 rajveer 12816
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
12817
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
12818
 
12819
    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);
12820
 
12821
    private String hotspotId; // required
12822
 
12823
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12824
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12825
      HOTSPOT_ID((short)1, "hotspotId");
12826
 
12827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12828
 
12829
      static {
12830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12831
          byName.put(field.getFieldName(), field);
12832
        }
12833
      }
12834
 
12835
      /**
12836
       * Find the _Fields constant that matches fieldId, or null if its not found.
12837
       */
12838
      public static _Fields findByThriftId(int fieldId) {
12839
        switch(fieldId) {
12840
          case 1: // HOTSPOT_ID
12841
            return HOTSPOT_ID;
12842
          default:
12843
            return null;
12844
        }
12845
      }
12846
 
12847
      /**
12848
       * Find the _Fields constant that matches fieldId, throwing an exception
12849
       * if it is not found.
12850
       */
12851
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12852
        _Fields fields = findByThriftId(fieldId);
12853
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12854
        return fields;
12855
      }
12856
 
12857
      /**
12858
       * Find the _Fields constant that matches name, or null if its not found.
12859
       */
12860
      public static _Fields findByName(String name) {
12861
        return byName.get(name);
12862
      }
12863
 
12864
      private final short _thriftId;
12865
      private final String _fieldName;
12866
 
12867
      _Fields(short thriftId, String fieldName) {
12868
        _thriftId = thriftId;
12869
        _fieldName = fieldName;
12870
      }
12871
 
12872
      public short getThriftFieldId() {
12873
        return _thriftId;
12874
      }
12875
 
12876
      public String getFieldName() {
12877
        return _fieldName;
12878
      }
12879
    }
12880
 
12881
    // isset id assignments
12882
 
12883
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12884
    static {
12885
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12886
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
12890
    }
12891
 
12892
    public getPickupStoreByHotspotId_args() {
12893
    }
12894
 
12895
    public getPickupStoreByHotspotId_args(
12896
      String hotspotId)
12897
    {
12898
      this();
12899
      this.hotspotId = hotspotId;
12900
    }
12901
 
12902
    /**
12903
     * Performs a deep copy on <i>other</i>.
12904
     */
12905
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
12906
      if (other.isSetHotspotId()) {
12907
        this.hotspotId = other.hotspotId;
12908
      }
12909
    }
12910
 
12911
    public getPickupStoreByHotspotId_args deepCopy() {
12912
      return new getPickupStoreByHotspotId_args(this);
12913
    }
12914
 
12915
    @Override
12916
    public void clear() {
12917
      this.hotspotId = null;
12918
    }
12919
 
12920
    public String getHotspotId() {
12921
      return this.hotspotId;
12922
    }
12923
 
12924
    public void setHotspotId(String hotspotId) {
12925
      this.hotspotId = hotspotId;
12926
    }
12927
 
12928
    public void unsetHotspotId() {
12929
      this.hotspotId = null;
12930
    }
12931
 
12932
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
12933
    public boolean isSetHotspotId() {
12934
      return this.hotspotId != null;
12935
    }
12936
 
12937
    public void setHotspotIdIsSet(boolean value) {
12938
      if (!value) {
12939
        this.hotspotId = null;
12940
      }
12941
    }
12942
 
12943
    public void setFieldValue(_Fields field, Object value) {
12944
      switch (field) {
12945
      case HOTSPOT_ID:
12946
        if (value == null) {
12947
          unsetHotspotId();
12948
        } else {
12949
          setHotspotId((String)value);
12950
        }
12951
        break;
12952
 
12953
      }
12954
    }
12955
 
12956
    public Object getFieldValue(_Fields field) {
12957
      switch (field) {
12958
      case HOTSPOT_ID:
12959
        return getHotspotId();
12960
 
12961
      }
12962
      throw new IllegalStateException();
12963
    }
12964
 
12965
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12966
    public boolean isSet(_Fields field) {
12967
      if (field == null) {
12968
        throw new IllegalArgumentException();
12969
      }
12970
 
12971
      switch (field) {
12972
      case HOTSPOT_ID:
12973
        return isSetHotspotId();
12974
      }
12975
      throw new IllegalStateException();
12976
    }
12977
 
12978
    @Override
12979
    public boolean equals(Object that) {
12980
      if (that == null)
12981
        return false;
12982
      if (that instanceof getPickupStoreByHotspotId_args)
12983
        return this.equals((getPickupStoreByHotspotId_args)that);
12984
      return false;
12985
    }
12986
 
12987
    public boolean equals(getPickupStoreByHotspotId_args that) {
12988
      if (that == null)
12989
        return false;
12990
 
12991
      boolean this_present_hotspotId = true && this.isSetHotspotId();
12992
      boolean that_present_hotspotId = true && that.isSetHotspotId();
12993
      if (this_present_hotspotId || that_present_hotspotId) {
12994
        if (!(this_present_hotspotId && that_present_hotspotId))
12995
          return false;
12996
        if (!this.hotspotId.equals(that.hotspotId))
12997
          return false;
12998
      }
12999
 
13000
      return true;
13001
    }
13002
 
13003
    @Override
13004
    public int hashCode() {
13005
      return 0;
13006
    }
13007
 
13008
    public int compareTo(getPickupStoreByHotspotId_args other) {
13009
      if (!getClass().equals(other.getClass())) {
13010
        return getClass().getName().compareTo(other.getClass().getName());
13011
      }
13012
 
13013
      int lastComparison = 0;
13014
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13015
 
13016
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13017
      if (lastComparison != 0) {
13018
        return lastComparison;
13019
      }
13020
      if (isSetHotspotId()) {
13021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13022
        if (lastComparison != 0) {
13023
          return lastComparison;
13024
        }
13025
      }
13026
      return 0;
13027
    }
13028
 
13029
    public _Fields fieldForId(int fieldId) {
13030
      return _Fields.findByThriftId(fieldId);
13031
    }
13032
 
13033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13034
      org.apache.thrift.protocol.TField field;
13035
      iprot.readStructBegin();
13036
      while (true)
13037
      {
13038
        field = iprot.readFieldBegin();
13039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13040
          break;
13041
        }
13042
        switch (field.id) {
13043
          case 1: // HOTSPOT_ID
13044
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13045
              this.hotspotId = iprot.readString();
13046
            } else { 
13047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13048
            }
13049
            break;
13050
          default:
13051
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13052
        }
13053
        iprot.readFieldEnd();
13054
      }
13055
      iprot.readStructEnd();
13056
      validate();
13057
    }
13058
 
13059
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13060
      validate();
13061
 
13062
      oprot.writeStructBegin(STRUCT_DESC);
13063
      if (this.hotspotId != null) {
13064
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13065
        oprot.writeString(this.hotspotId);
13066
        oprot.writeFieldEnd();
13067
      }
13068
      oprot.writeFieldStop();
13069
      oprot.writeStructEnd();
13070
    }
13071
 
13072
    @Override
13073
    public String toString() {
13074
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13075
      boolean first = true;
13076
 
13077
      sb.append("hotspotId:");
13078
      if (this.hotspotId == null) {
13079
        sb.append("null");
13080
      } else {
13081
        sb.append(this.hotspotId);
13082
      }
13083
      first = false;
13084
      sb.append(")");
13085
      return sb.toString();
13086
    }
13087
 
13088
    public void validate() throws org.apache.thrift.TException {
13089
      // check for required fields
13090
    }
13091
 
13092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13093
      try {
13094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13095
      } catch (org.apache.thrift.TException te) {
13096
        throw new java.io.IOException(te);
13097
      }
13098
    }
13099
 
13100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13101
      try {
13102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13103
      } catch (org.apache.thrift.TException te) {
13104
        throw new java.io.IOException(te);
13105
      }
13106
    }
13107
 
13108
  }
13109
 
13110
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13112
 
13113
    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);
13114
 
13115
    private PickupStore success; // required
13116
 
13117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13119
      SUCCESS((short)0, "success");
13120
 
13121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13122
 
13123
      static {
13124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13125
          byName.put(field.getFieldName(), field);
13126
        }
13127
      }
13128
 
13129
      /**
13130
       * Find the _Fields constant that matches fieldId, or null if its not found.
13131
       */
13132
      public static _Fields findByThriftId(int fieldId) {
13133
        switch(fieldId) {
13134
          case 0: // SUCCESS
13135
            return SUCCESS;
13136
          default:
13137
            return null;
13138
        }
13139
      }
13140
 
13141
      /**
13142
       * Find the _Fields constant that matches fieldId, throwing an exception
13143
       * if it is not found.
13144
       */
13145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13146
        _Fields fields = findByThriftId(fieldId);
13147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13148
        return fields;
13149
      }
13150
 
13151
      /**
13152
       * Find the _Fields constant that matches name, or null if its not found.
13153
       */
13154
      public static _Fields findByName(String name) {
13155
        return byName.get(name);
13156
      }
13157
 
13158
      private final short _thriftId;
13159
      private final String _fieldName;
13160
 
13161
      _Fields(short thriftId, String fieldName) {
13162
        _thriftId = thriftId;
13163
        _fieldName = fieldName;
13164
      }
13165
 
13166
      public short getThriftFieldId() {
13167
        return _thriftId;
13168
      }
13169
 
13170
      public String getFieldName() {
13171
        return _fieldName;
13172
      }
13173
    }
13174
 
13175
    // isset id assignments
13176
 
13177
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13178
    static {
13179
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13180
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13181
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13184
    }
13185
 
13186
    public getPickupStoreByHotspotId_result() {
13187
    }
13188
 
13189
    public getPickupStoreByHotspotId_result(
13190
      PickupStore success)
13191
    {
13192
      this();
13193
      this.success = success;
13194
    }
13195
 
13196
    /**
13197
     * Performs a deep copy on <i>other</i>.
13198
     */
13199
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13200
      if (other.isSetSuccess()) {
13201
        this.success = new PickupStore(other.success);
13202
      }
13203
    }
13204
 
13205
    public getPickupStoreByHotspotId_result deepCopy() {
13206
      return new getPickupStoreByHotspotId_result(this);
13207
    }
13208
 
13209
    @Override
13210
    public void clear() {
13211
      this.success = null;
13212
    }
13213
 
13214
    public PickupStore getSuccess() {
13215
      return this.success;
13216
    }
13217
 
13218
    public void setSuccess(PickupStore success) {
13219
      this.success = success;
13220
    }
13221
 
13222
    public void unsetSuccess() {
13223
      this.success = null;
13224
    }
13225
 
13226
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13227
    public boolean isSetSuccess() {
13228
      return this.success != null;
13229
    }
13230
 
13231
    public void setSuccessIsSet(boolean value) {
13232
      if (!value) {
13233
        this.success = null;
13234
      }
13235
    }
13236
 
13237
    public void setFieldValue(_Fields field, Object value) {
13238
      switch (field) {
13239
      case SUCCESS:
13240
        if (value == null) {
13241
          unsetSuccess();
13242
        } else {
13243
          setSuccess((PickupStore)value);
13244
        }
13245
        break;
13246
 
13247
      }
13248
    }
13249
 
13250
    public Object getFieldValue(_Fields field) {
13251
      switch (field) {
13252
      case SUCCESS:
13253
        return getSuccess();
13254
 
13255
      }
13256
      throw new IllegalStateException();
13257
    }
13258
 
13259
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13260
    public boolean isSet(_Fields field) {
13261
      if (field == null) {
13262
        throw new IllegalArgumentException();
13263
      }
13264
 
13265
      switch (field) {
13266
      case SUCCESS:
13267
        return isSetSuccess();
13268
      }
13269
      throw new IllegalStateException();
13270
    }
13271
 
13272
    @Override
13273
    public boolean equals(Object that) {
13274
      if (that == null)
13275
        return false;
13276
      if (that instanceof getPickupStoreByHotspotId_result)
13277
        return this.equals((getPickupStoreByHotspotId_result)that);
13278
      return false;
13279
    }
13280
 
13281
    public boolean equals(getPickupStoreByHotspotId_result that) {
13282
      if (that == null)
13283
        return false;
13284
 
13285
      boolean this_present_success = true && this.isSetSuccess();
13286
      boolean that_present_success = true && that.isSetSuccess();
13287
      if (this_present_success || that_present_success) {
13288
        if (!(this_present_success && that_present_success))
13289
          return false;
13290
        if (!this.success.equals(that.success))
13291
          return false;
13292
      }
13293
 
13294
      return true;
13295
    }
13296
 
13297
    @Override
13298
    public int hashCode() {
13299
      return 0;
13300
    }
13301
 
13302
    public int compareTo(getPickupStoreByHotspotId_result other) {
13303
      if (!getClass().equals(other.getClass())) {
13304
        return getClass().getName().compareTo(other.getClass().getName());
13305
      }
13306
 
13307
      int lastComparison = 0;
13308
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13309
 
13310
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13311
      if (lastComparison != 0) {
13312
        return lastComparison;
13313
      }
13314
      if (isSetSuccess()) {
13315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13316
        if (lastComparison != 0) {
13317
          return lastComparison;
13318
        }
13319
      }
13320
      return 0;
13321
    }
13322
 
13323
    public _Fields fieldForId(int fieldId) {
13324
      return _Fields.findByThriftId(fieldId);
13325
    }
13326
 
13327
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13328
      org.apache.thrift.protocol.TField field;
13329
      iprot.readStructBegin();
13330
      while (true)
13331
      {
13332
        field = iprot.readFieldBegin();
13333
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13334
          break;
13335
        }
13336
        switch (field.id) {
13337
          case 0: // SUCCESS
13338
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13339
              this.success = new PickupStore();
13340
              this.success.read(iprot);
13341
            } else { 
13342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13343
            }
13344
            break;
13345
          default:
13346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13347
        }
13348
        iprot.readFieldEnd();
13349
      }
13350
      iprot.readStructEnd();
13351
      validate();
13352
    }
13353
 
13354
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13355
      oprot.writeStructBegin(STRUCT_DESC);
13356
 
13357
      if (this.isSetSuccess()) {
13358
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13359
        this.success.write(oprot);
13360
        oprot.writeFieldEnd();
13361
      }
13362
      oprot.writeFieldStop();
13363
      oprot.writeStructEnd();
13364
    }
13365
 
13366
    @Override
13367
    public String toString() {
13368
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13369
      boolean first = true;
13370
 
13371
      sb.append("success:");
13372
      if (this.success == null) {
13373
        sb.append("null");
13374
      } else {
13375
        sb.append(this.success);
13376
      }
13377
      first = false;
13378
      sb.append(")");
13379
      return sb.toString();
13380
    }
13381
 
13382
    public void validate() throws org.apache.thrift.TException {
13383
      // check for required fields
13384
    }
13385
 
13386
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13387
      try {
13388
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13389
      } catch (org.apache.thrift.TException te) {
13390
        throw new java.io.IOException(te);
13391
      }
13392
    }
13393
 
13394
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13395
      try {
13396
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13397
      } catch (org.apache.thrift.TException te) {
13398
        throw new java.io.IOException(te);
13399
      }
13400
    }
13401
 
13402
  }
13403
 
6322 amar.kumar 13404
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13405
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13406
 
13407
    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);
13408
    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);
13409
    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);
13410
    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);
13411
    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);
13412
    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 13413
    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 13414
 
13415
    private long providerId; // required
13416
    private String pincode; // required
13417
    private String destCode; // required
13418
    private boolean exp; // required
13419
    private boolean cod; // required
13420
    private int stationType; // required
6524 rajveer 13421
    private boolean otgAvailable; // required
6322 amar.kumar 13422
 
13423
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13424
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13425
      PROVIDER_ID((short)1, "providerId"),
13426
      PINCODE((short)2, "pincode"),
13427
      DEST_CODE((short)3, "destCode"),
13428
      EXP((short)4, "exp"),
13429
      COD((short)5, "cod"),
6524 rajveer 13430
      STATION_TYPE((short)6, "stationType"),
13431
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13432
 
13433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13434
 
13435
      static {
13436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13437
          byName.put(field.getFieldName(), field);
13438
        }
13439
      }
13440
 
13441
      /**
13442
       * Find the _Fields constant that matches fieldId, or null if its not found.
13443
       */
13444
      public static _Fields findByThriftId(int fieldId) {
13445
        switch(fieldId) {
13446
          case 1: // PROVIDER_ID
13447
            return PROVIDER_ID;
13448
          case 2: // PINCODE
13449
            return PINCODE;
13450
          case 3: // DEST_CODE
13451
            return DEST_CODE;
13452
          case 4: // EXP
13453
            return EXP;
13454
          case 5: // COD
13455
            return COD;
13456
          case 6: // STATION_TYPE
13457
            return STATION_TYPE;
6524 rajveer 13458
          case 7: // OTG_AVAILABLE
13459
            return OTG_AVAILABLE;
6322 amar.kumar 13460
          default:
13461
            return null;
13462
        }
13463
      }
13464
 
13465
      /**
13466
       * Find the _Fields constant that matches fieldId, throwing an exception
13467
       * if it is not found.
13468
       */
13469
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13470
        _Fields fields = findByThriftId(fieldId);
13471
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13472
        return fields;
13473
      }
13474
 
13475
      /**
13476
       * Find the _Fields constant that matches name, or null if its not found.
13477
       */
13478
      public static _Fields findByName(String name) {
13479
        return byName.get(name);
13480
      }
13481
 
13482
      private final short _thriftId;
13483
      private final String _fieldName;
13484
 
13485
      _Fields(short thriftId, String fieldName) {
13486
        _thriftId = thriftId;
13487
        _fieldName = fieldName;
13488
      }
13489
 
13490
      public short getThriftFieldId() {
13491
        return _thriftId;
13492
      }
13493
 
13494
      public String getFieldName() {
13495
        return _fieldName;
13496
      }
13497
    }
13498
 
13499
    // isset id assignments
13500
    private static final int __PROVIDERID_ISSET_ID = 0;
13501
    private static final int __EXP_ISSET_ID = 1;
13502
    private static final int __COD_ISSET_ID = 2;
13503
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13504
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13505
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13506
 
13507
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13508
    static {
13509
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13510
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13511
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13512
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13514
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13516
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13518
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13519
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13520
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13521
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13522
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13523
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13524
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13525
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13526
    }
13527
 
13528
    public addPincode_args() {
13529
    }
13530
 
13531
    public addPincode_args(
13532
      long providerId,
13533
      String pincode,
13534
      String destCode,
13535
      boolean exp,
13536
      boolean cod,
6524 rajveer 13537
      int stationType,
13538
      boolean otgAvailable)
6322 amar.kumar 13539
    {
13540
      this();
13541
      this.providerId = providerId;
13542
      setProviderIdIsSet(true);
13543
      this.pincode = pincode;
13544
      this.destCode = destCode;
13545
      this.exp = exp;
13546
      setExpIsSet(true);
13547
      this.cod = cod;
13548
      setCodIsSet(true);
13549
      this.stationType = stationType;
13550
      setStationTypeIsSet(true);
6524 rajveer 13551
      this.otgAvailable = otgAvailable;
13552
      setOtgAvailableIsSet(true);
6322 amar.kumar 13553
    }
13554
 
13555
    /**
13556
     * Performs a deep copy on <i>other</i>.
13557
     */
13558
    public addPincode_args(addPincode_args other) {
13559
      __isset_bit_vector.clear();
13560
      __isset_bit_vector.or(other.__isset_bit_vector);
13561
      this.providerId = other.providerId;
13562
      if (other.isSetPincode()) {
13563
        this.pincode = other.pincode;
13564
      }
13565
      if (other.isSetDestCode()) {
13566
        this.destCode = other.destCode;
13567
      }
13568
      this.exp = other.exp;
13569
      this.cod = other.cod;
13570
      this.stationType = other.stationType;
6524 rajveer 13571
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13572
    }
13573
 
13574
    public addPincode_args deepCopy() {
13575
      return new addPincode_args(this);
13576
    }
13577
 
13578
    @Override
13579
    public void clear() {
13580
      setProviderIdIsSet(false);
13581
      this.providerId = 0;
13582
      this.pincode = null;
13583
      this.destCode = null;
13584
      setExpIsSet(false);
13585
      this.exp = false;
13586
      setCodIsSet(false);
13587
      this.cod = false;
13588
      setStationTypeIsSet(false);
13589
      this.stationType = 0;
6524 rajveer 13590
      setOtgAvailableIsSet(false);
13591
      this.otgAvailable = false;
6322 amar.kumar 13592
    }
13593
 
13594
    public long getProviderId() {
13595
      return this.providerId;
13596
    }
13597
 
13598
    public void setProviderId(long providerId) {
13599
      this.providerId = providerId;
13600
      setProviderIdIsSet(true);
13601
    }
13602
 
13603
    public void unsetProviderId() {
13604
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13605
    }
13606
 
13607
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13608
    public boolean isSetProviderId() {
13609
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13610
    }
13611
 
13612
    public void setProviderIdIsSet(boolean value) {
13613
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13614
    }
13615
 
13616
    public String getPincode() {
13617
      return this.pincode;
13618
    }
13619
 
13620
    public void setPincode(String pincode) {
13621
      this.pincode = pincode;
13622
    }
13623
 
13624
    public void unsetPincode() {
13625
      this.pincode = null;
13626
    }
13627
 
13628
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13629
    public boolean isSetPincode() {
13630
      return this.pincode != null;
13631
    }
13632
 
13633
    public void setPincodeIsSet(boolean value) {
13634
      if (!value) {
13635
        this.pincode = null;
13636
      }
13637
    }
13638
 
13639
    public String getDestCode() {
13640
      return this.destCode;
13641
    }
13642
 
13643
    public void setDestCode(String destCode) {
13644
      this.destCode = destCode;
13645
    }
13646
 
13647
    public void unsetDestCode() {
13648
      this.destCode = null;
13649
    }
13650
 
13651
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13652
    public boolean isSetDestCode() {
13653
      return this.destCode != null;
13654
    }
13655
 
13656
    public void setDestCodeIsSet(boolean value) {
13657
      if (!value) {
13658
        this.destCode = null;
13659
      }
13660
    }
13661
 
13662
    public boolean isExp() {
13663
      return this.exp;
13664
    }
13665
 
13666
    public void setExp(boolean exp) {
13667
      this.exp = exp;
13668
      setExpIsSet(true);
13669
    }
13670
 
13671
    public void unsetExp() {
13672
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13673
    }
13674
 
13675
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13676
    public boolean isSetExp() {
13677
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13678
    }
13679
 
13680
    public void setExpIsSet(boolean value) {
13681
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13682
    }
13683
 
13684
    public boolean isCod() {
13685
      return this.cod;
13686
    }
13687
 
13688
    public void setCod(boolean cod) {
13689
      this.cod = cod;
13690
      setCodIsSet(true);
13691
    }
13692
 
13693
    public void unsetCod() {
13694
      __isset_bit_vector.clear(__COD_ISSET_ID);
13695
    }
13696
 
13697
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13698
    public boolean isSetCod() {
13699
      return __isset_bit_vector.get(__COD_ISSET_ID);
13700
    }
13701
 
13702
    public void setCodIsSet(boolean value) {
13703
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13704
    }
13705
 
13706
    public int getStationType() {
13707
      return this.stationType;
13708
    }
13709
 
13710
    public void setStationType(int stationType) {
13711
      this.stationType = stationType;
13712
      setStationTypeIsSet(true);
13713
    }
13714
 
13715
    public void unsetStationType() {
13716
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13717
    }
13718
 
13719
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13720
    public boolean isSetStationType() {
13721
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13722
    }
13723
 
13724
    public void setStationTypeIsSet(boolean value) {
13725
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13726
    }
13727
 
6524 rajveer 13728
    public boolean isOtgAvailable() {
13729
      return this.otgAvailable;
13730
    }
13731
 
13732
    public void setOtgAvailable(boolean otgAvailable) {
13733
      this.otgAvailable = otgAvailable;
13734
      setOtgAvailableIsSet(true);
13735
    }
13736
 
13737
    public void unsetOtgAvailable() {
13738
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13739
    }
13740
 
13741
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13742
    public boolean isSetOtgAvailable() {
13743
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13744
    }
13745
 
13746
    public void setOtgAvailableIsSet(boolean value) {
13747
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13748
    }
13749
 
6322 amar.kumar 13750
    public void setFieldValue(_Fields field, Object value) {
13751
      switch (field) {
13752
      case PROVIDER_ID:
13753
        if (value == null) {
13754
          unsetProviderId();
13755
        } else {
13756
          setProviderId((Long)value);
13757
        }
13758
        break;
13759
 
13760
      case PINCODE:
13761
        if (value == null) {
13762
          unsetPincode();
13763
        } else {
13764
          setPincode((String)value);
13765
        }
13766
        break;
13767
 
13768
      case DEST_CODE:
13769
        if (value == null) {
13770
          unsetDestCode();
13771
        } else {
13772
          setDestCode((String)value);
13773
        }
13774
        break;
13775
 
13776
      case EXP:
13777
        if (value == null) {
13778
          unsetExp();
13779
        } else {
13780
          setExp((Boolean)value);
13781
        }
13782
        break;
13783
 
13784
      case COD:
13785
        if (value == null) {
13786
          unsetCod();
13787
        } else {
13788
          setCod((Boolean)value);
13789
        }
13790
        break;
13791
 
13792
      case STATION_TYPE:
13793
        if (value == null) {
13794
          unsetStationType();
13795
        } else {
13796
          setStationType((Integer)value);
13797
        }
13798
        break;
13799
 
6524 rajveer 13800
      case OTG_AVAILABLE:
13801
        if (value == null) {
13802
          unsetOtgAvailable();
13803
        } else {
13804
          setOtgAvailable((Boolean)value);
13805
        }
13806
        break;
13807
 
6322 amar.kumar 13808
      }
13809
    }
13810
 
13811
    public Object getFieldValue(_Fields field) {
13812
      switch (field) {
13813
      case PROVIDER_ID:
13814
        return Long.valueOf(getProviderId());
13815
 
13816
      case PINCODE:
13817
        return getPincode();
13818
 
13819
      case DEST_CODE:
13820
        return getDestCode();
13821
 
13822
      case EXP:
13823
        return Boolean.valueOf(isExp());
13824
 
13825
      case COD:
13826
        return Boolean.valueOf(isCod());
13827
 
13828
      case STATION_TYPE:
13829
        return Integer.valueOf(getStationType());
13830
 
6524 rajveer 13831
      case OTG_AVAILABLE:
13832
        return Boolean.valueOf(isOtgAvailable());
13833
 
6322 amar.kumar 13834
      }
13835
      throw new IllegalStateException();
13836
    }
13837
 
13838
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13839
    public boolean isSet(_Fields field) {
13840
      if (field == null) {
13841
        throw new IllegalArgumentException();
13842
      }
13843
 
13844
      switch (field) {
13845
      case PROVIDER_ID:
13846
        return isSetProviderId();
13847
      case PINCODE:
13848
        return isSetPincode();
13849
      case DEST_CODE:
13850
        return isSetDestCode();
13851
      case EXP:
13852
        return isSetExp();
13853
      case COD:
13854
        return isSetCod();
13855
      case STATION_TYPE:
13856
        return isSetStationType();
6524 rajveer 13857
      case OTG_AVAILABLE:
13858
        return isSetOtgAvailable();
6322 amar.kumar 13859
      }
13860
      throw new IllegalStateException();
13861
    }
13862
 
13863
    @Override
13864
    public boolean equals(Object that) {
13865
      if (that == null)
13866
        return false;
13867
      if (that instanceof addPincode_args)
13868
        return this.equals((addPincode_args)that);
13869
      return false;
13870
    }
13871
 
13872
    public boolean equals(addPincode_args that) {
13873
      if (that == null)
13874
        return false;
13875
 
13876
      boolean this_present_providerId = true;
13877
      boolean that_present_providerId = true;
13878
      if (this_present_providerId || that_present_providerId) {
13879
        if (!(this_present_providerId && that_present_providerId))
13880
          return false;
13881
        if (this.providerId != that.providerId)
13882
          return false;
13883
      }
13884
 
13885
      boolean this_present_pincode = true && this.isSetPincode();
13886
      boolean that_present_pincode = true && that.isSetPincode();
13887
      if (this_present_pincode || that_present_pincode) {
13888
        if (!(this_present_pincode && that_present_pincode))
13889
          return false;
13890
        if (!this.pincode.equals(that.pincode))
13891
          return false;
13892
      }
13893
 
13894
      boolean this_present_destCode = true && this.isSetDestCode();
13895
      boolean that_present_destCode = true && that.isSetDestCode();
13896
      if (this_present_destCode || that_present_destCode) {
13897
        if (!(this_present_destCode && that_present_destCode))
13898
          return false;
13899
        if (!this.destCode.equals(that.destCode))
13900
          return false;
13901
      }
13902
 
13903
      boolean this_present_exp = true;
13904
      boolean that_present_exp = true;
13905
      if (this_present_exp || that_present_exp) {
13906
        if (!(this_present_exp && that_present_exp))
13907
          return false;
13908
        if (this.exp != that.exp)
13909
          return false;
13910
      }
13911
 
13912
      boolean this_present_cod = true;
13913
      boolean that_present_cod = true;
13914
      if (this_present_cod || that_present_cod) {
13915
        if (!(this_present_cod && that_present_cod))
13916
          return false;
13917
        if (this.cod != that.cod)
13918
          return false;
13919
      }
13920
 
13921
      boolean this_present_stationType = true;
13922
      boolean that_present_stationType = true;
13923
      if (this_present_stationType || that_present_stationType) {
13924
        if (!(this_present_stationType && that_present_stationType))
13925
          return false;
13926
        if (this.stationType != that.stationType)
13927
          return false;
13928
      }
13929
 
6524 rajveer 13930
      boolean this_present_otgAvailable = true;
13931
      boolean that_present_otgAvailable = true;
13932
      if (this_present_otgAvailable || that_present_otgAvailable) {
13933
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13934
          return false;
13935
        if (this.otgAvailable != that.otgAvailable)
13936
          return false;
13937
      }
13938
 
6322 amar.kumar 13939
      return true;
13940
    }
13941
 
13942
    @Override
13943
    public int hashCode() {
13944
      return 0;
13945
    }
13946
 
13947
    public int compareTo(addPincode_args other) {
13948
      if (!getClass().equals(other.getClass())) {
13949
        return getClass().getName().compareTo(other.getClass().getName());
13950
      }
13951
 
13952
      int lastComparison = 0;
13953
      addPincode_args typedOther = (addPincode_args)other;
13954
 
13955
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13956
      if (lastComparison != 0) {
13957
        return lastComparison;
13958
      }
13959
      if (isSetProviderId()) {
13960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13961
        if (lastComparison != 0) {
13962
          return lastComparison;
13963
        }
13964
      }
13965
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13966
      if (lastComparison != 0) {
13967
        return lastComparison;
13968
      }
13969
      if (isSetPincode()) {
13970
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13971
        if (lastComparison != 0) {
13972
          return lastComparison;
13973
        }
13974
      }
13975
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
13976
      if (lastComparison != 0) {
13977
        return lastComparison;
13978
      }
13979
      if (isSetDestCode()) {
13980
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
13981
        if (lastComparison != 0) {
13982
          return lastComparison;
13983
        }
13984
      }
13985
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13986
      if (lastComparison != 0) {
13987
        return lastComparison;
13988
      }
13989
      if (isSetExp()) {
13990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13991
        if (lastComparison != 0) {
13992
          return lastComparison;
13993
        }
13994
      }
13995
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13996
      if (lastComparison != 0) {
13997
        return lastComparison;
13998
      }
13999
      if (isSetCod()) {
14000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14001
        if (lastComparison != 0) {
14002
          return lastComparison;
14003
        }
14004
      }
14005
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14006
      if (lastComparison != 0) {
14007
        return lastComparison;
14008
      }
14009
      if (isSetStationType()) {
14010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14011
        if (lastComparison != 0) {
14012
          return lastComparison;
14013
        }
14014
      }
6524 rajveer 14015
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14016
      if (lastComparison != 0) {
14017
        return lastComparison;
14018
      }
14019
      if (isSetOtgAvailable()) {
14020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14021
        if (lastComparison != 0) {
14022
          return lastComparison;
14023
        }
14024
      }
6322 amar.kumar 14025
      return 0;
14026
    }
14027
 
14028
    public _Fields fieldForId(int fieldId) {
14029
      return _Fields.findByThriftId(fieldId);
14030
    }
14031
 
14032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14033
      org.apache.thrift.protocol.TField field;
14034
      iprot.readStructBegin();
14035
      while (true)
14036
      {
14037
        field = iprot.readFieldBegin();
14038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14039
          break;
14040
        }
14041
        switch (field.id) {
14042
          case 1: // PROVIDER_ID
14043
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14044
              this.providerId = iprot.readI64();
14045
              setProviderIdIsSet(true);
14046
            } else { 
14047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14048
            }
14049
            break;
14050
          case 2: // PINCODE
14051
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14052
              this.pincode = iprot.readString();
14053
            } else { 
14054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14055
            }
14056
            break;
14057
          case 3: // DEST_CODE
14058
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14059
              this.destCode = iprot.readString();
14060
            } else { 
14061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14062
            }
14063
            break;
14064
          case 4: // EXP
14065
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14066
              this.exp = iprot.readBool();
14067
              setExpIsSet(true);
14068
            } else { 
14069
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14070
            }
14071
            break;
14072
          case 5: // COD
14073
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14074
              this.cod = iprot.readBool();
14075
              setCodIsSet(true);
14076
            } else { 
14077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14078
            }
14079
            break;
14080
          case 6: // STATION_TYPE
14081
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14082
              this.stationType = iprot.readI32();
14083
              setStationTypeIsSet(true);
14084
            } else { 
14085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14086
            }
14087
            break;
6524 rajveer 14088
          case 7: // OTG_AVAILABLE
14089
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14090
              this.otgAvailable = iprot.readBool();
14091
              setOtgAvailableIsSet(true);
14092
            } else { 
14093
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14094
            }
14095
            break;
6322 amar.kumar 14096
          default:
14097
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14098
        }
14099
        iprot.readFieldEnd();
14100
      }
14101
      iprot.readStructEnd();
14102
      validate();
14103
    }
14104
 
14105
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14106
      validate();
14107
 
14108
      oprot.writeStructBegin(STRUCT_DESC);
14109
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14110
      oprot.writeI64(this.providerId);
14111
      oprot.writeFieldEnd();
14112
      if (this.pincode != null) {
14113
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14114
        oprot.writeString(this.pincode);
14115
        oprot.writeFieldEnd();
14116
      }
14117
      if (this.destCode != null) {
14118
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14119
        oprot.writeString(this.destCode);
14120
        oprot.writeFieldEnd();
14121
      }
14122
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14123
      oprot.writeBool(this.exp);
14124
      oprot.writeFieldEnd();
14125
      oprot.writeFieldBegin(COD_FIELD_DESC);
14126
      oprot.writeBool(this.cod);
14127
      oprot.writeFieldEnd();
14128
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14129
      oprot.writeI32(this.stationType);
14130
      oprot.writeFieldEnd();
6524 rajveer 14131
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14132
      oprot.writeBool(this.otgAvailable);
14133
      oprot.writeFieldEnd();
6322 amar.kumar 14134
      oprot.writeFieldStop();
14135
      oprot.writeStructEnd();
14136
    }
14137
 
14138
    @Override
14139
    public String toString() {
14140
      StringBuilder sb = new StringBuilder("addPincode_args(");
14141
      boolean first = true;
14142
 
14143
      sb.append("providerId:");
14144
      sb.append(this.providerId);
14145
      first = false;
14146
      if (!first) sb.append(", ");
14147
      sb.append("pincode:");
14148
      if (this.pincode == null) {
14149
        sb.append("null");
14150
      } else {
14151
        sb.append(this.pincode);
14152
      }
14153
      first = false;
14154
      if (!first) sb.append(", ");
14155
      sb.append("destCode:");
14156
      if (this.destCode == null) {
14157
        sb.append("null");
14158
      } else {
14159
        sb.append(this.destCode);
14160
      }
14161
      first = false;
14162
      if (!first) sb.append(", ");
14163
      sb.append("exp:");
14164
      sb.append(this.exp);
14165
      first = false;
14166
      if (!first) sb.append(", ");
14167
      sb.append("cod:");
14168
      sb.append(this.cod);
14169
      first = false;
14170
      if (!first) sb.append(", ");
14171
      sb.append("stationType:");
14172
      sb.append(this.stationType);
14173
      first = false;
6524 rajveer 14174
      if (!first) sb.append(", ");
14175
      sb.append("otgAvailable:");
14176
      sb.append(this.otgAvailable);
14177
      first = false;
6322 amar.kumar 14178
      sb.append(")");
14179
      return sb.toString();
14180
    }
14181
 
14182
    public void validate() throws org.apache.thrift.TException {
14183
      // check for required fields
14184
    }
14185
 
14186
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14187
      try {
14188
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14189
      } catch (org.apache.thrift.TException te) {
14190
        throw new java.io.IOException(te);
14191
      }
14192
    }
14193
 
14194
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14195
      try {
14196
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14197
        __isset_bit_vector = new BitSet(1);
14198
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14199
      } catch (org.apache.thrift.TException te) {
14200
        throw new java.io.IOException(te);
14201
      }
14202
    }
14203
 
14204
  }
14205
 
14206
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14207
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14208
 
14209
 
14210
 
14211
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14212
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14213
;
14214
 
14215
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14216
 
14217
      static {
14218
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14219
          byName.put(field.getFieldName(), field);
14220
        }
14221
      }
14222
 
14223
      /**
14224
       * Find the _Fields constant that matches fieldId, or null if its not found.
14225
       */
14226
      public static _Fields findByThriftId(int fieldId) {
14227
        switch(fieldId) {
14228
          default:
14229
            return null;
14230
        }
14231
      }
14232
 
14233
      /**
14234
       * Find the _Fields constant that matches fieldId, throwing an exception
14235
       * if it is not found.
14236
       */
14237
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14238
        _Fields fields = findByThriftId(fieldId);
14239
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14240
        return fields;
14241
      }
14242
 
14243
      /**
14244
       * Find the _Fields constant that matches name, or null if its not found.
14245
       */
14246
      public static _Fields findByName(String name) {
14247
        return byName.get(name);
14248
      }
14249
 
14250
      private final short _thriftId;
14251
      private final String _fieldName;
14252
 
14253
      _Fields(short thriftId, String fieldName) {
14254
        _thriftId = thriftId;
14255
        _fieldName = fieldName;
14256
      }
14257
 
14258
      public short getThriftFieldId() {
14259
        return _thriftId;
14260
      }
14261
 
14262
      public String getFieldName() {
14263
        return _fieldName;
14264
      }
14265
    }
14266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14267
    static {
14268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14269
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14270
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14271
    }
14272
 
14273
    public addPincode_result() {
14274
    }
14275
 
14276
    /**
14277
     * Performs a deep copy on <i>other</i>.
14278
     */
14279
    public addPincode_result(addPincode_result other) {
14280
    }
14281
 
14282
    public addPincode_result deepCopy() {
14283
      return new addPincode_result(this);
14284
    }
14285
 
14286
    @Override
14287
    public void clear() {
14288
    }
14289
 
14290
    public void setFieldValue(_Fields field, Object value) {
14291
      switch (field) {
14292
      }
14293
    }
14294
 
14295
    public Object getFieldValue(_Fields field) {
14296
      switch (field) {
14297
      }
14298
      throw new IllegalStateException();
14299
    }
14300
 
14301
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14302
    public boolean isSet(_Fields field) {
14303
      if (field == null) {
14304
        throw new IllegalArgumentException();
14305
      }
14306
 
14307
      switch (field) {
14308
      }
14309
      throw new IllegalStateException();
14310
    }
14311
 
14312
    @Override
14313
    public boolean equals(Object that) {
14314
      if (that == null)
14315
        return false;
14316
      if (that instanceof addPincode_result)
14317
        return this.equals((addPincode_result)that);
14318
      return false;
14319
    }
14320
 
14321
    public boolean equals(addPincode_result that) {
14322
      if (that == null)
14323
        return false;
14324
 
14325
      return true;
14326
    }
14327
 
14328
    @Override
14329
    public int hashCode() {
14330
      return 0;
14331
    }
14332
 
14333
    public int compareTo(addPincode_result other) {
14334
      if (!getClass().equals(other.getClass())) {
14335
        return getClass().getName().compareTo(other.getClass().getName());
14336
      }
14337
 
14338
      int lastComparison = 0;
14339
      addPincode_result typedOther = (addPincode_result)other;
14340
 
14341
      return 0;
14342
    }
14343
 
14344
    public _Fields fieldForId(int fieldId) {
14345
      return _Fields.findByThriftId(fieldId);
14346
    }
14347
 
14348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14349
      org.apache.thrift.protocol.TField field;
14350
      iprot.readStructBegin();
14351
      while (true)
14352
      {
14353
        field = iprot.readFieldBegin();
14354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14355
          break;
14356
        }
14357
        switch (field.id) {
14358
          default:
14359
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14360
        }
14361
        iprot.readFieldEnd();
14362
      }
14363
      iprot.readStructEnd();
14364
      validate();
14365
    }
14366
 
14367
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14368
      oprot.writeStructBegin(STRUCT_DESC);
14369
 
14370
      oprot.writeFieldStop();
14371
      oprot.writeStructEnd();
14372
    }
14373
 
14374
    @Override
14375
    public String toString() {
14376
      StringBuilder sb = new StringBuilder("addPincode_result(");
14377
      boolean first = true;
14378
 
14379
      sb.append(")");
14380
      return sb.toString();
14381
    }
14382
 
14383
    public void validate() throws org.apache.thrift.TException {
14384
      // check for required fields
14385
    }
14386
 
14387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14388
      try {
14389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14390
      } catch (org.apache.thrift.TException te) {
14391
        throw new java.io.IOException(te);
14392
      }
14393
    }
14394
 
14395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14396
      try {
14397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14398
      } catch (org.apache.thrift.TException te) {
14399
        throw new java.io.IOException(te);
14400
      }
14401
    }
14402
 
14403
  }
14404
 
14405
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14407
 
14408
    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);
14409
    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);
14410
    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);
14411
    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 14412
    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 14413
 
14414
    private long providerId; // required
14415
    private String pincode; // required
14416
    private boolean exp; // required
14417
    private boolean cod; // required
6524 rajveer 14418
    private boolean otgAvailable; // required
6322 amar.kumar 14419
 
14420
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14421
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14422
      PROVIDER_ID((short)1, "providerId"),
14423
      PINCODE((short)2, "pincode"),
14424
      EXP((short)3, "exp"),
6524 rajveer 14425
      COD((short)4, "cod"),
14426
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14427
 
14428
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14429
 
14430
      static {
14431
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14432
          byName.put(field.getFieldName(), field);
14433
        }
14434
      }
14435
 
14436
      /**
14437
       * Find the _Fields constant that matches fieldId, or null if its not found.
14438
       */
14439
      public static _Fields findByThriftId(int fieldId) {
14440
        switch(fieldId) {
14441
          case 1: // PROVIDER_ID
14442
            return PROVIDER_ID;
14443
          case 2: // PINCODE
14444
            return PINCODE;
14445
          case 3: // EXP
14446
            return EXP;
14447
          case 4: // COD
14448
            return COD;
6524 rajveer 14449
          case 5: // OTG_AVAILABLE
14450
            return OTG_AVAILABLE;
6322 amar.kumar 14451
          default:
14452
            return null;
14453
        }
14454
      }
14455
 
14456
      /**
14457
       * Find the _Fields constant that matches fieldId, throwing an exception
14458
       * if it is not found.
14459
       */
14460
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14461
        _Fields fields = findByThriftId(fieldId);
14462
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14463
        return fields;
14464
      }
14465
 
14466
      /**
14467
       * Find the _Fields constant that matches name, or null if its not found.
14468
       */
14469
      public static _Fields findByName(String name) {
14470
        return byName.get(name);
14471
      }
14472
 
14473
      private final short _thriftId;
14474
      private final String _fieldName;
14475
 
14476
      _Fields(short thriftId, String fieldName) {
14477
        _thriftId = thriftId;
14478
        _fieldName = fieldName;
14479
      }
14480
 
14481
      public short getThriftFieldId() {
14482
        return _thriftId;
14483
      }
14484
 
14485
      public String getFieldName() {
14486
        return _fieldName;
14487
      }
14488
    }
14489
 
14490
    // isset id assignments
14491
    private static final int __PROVIDERID_ISSET_ID = 0;
14492
    private static final int __EXP_ISSET_ID = 1;
14493
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14494
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14495
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14496
 
14497
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14498
    static {
14499
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14500
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14501
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14502
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14503
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14504
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14506
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14508
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14512
    }
14513
 
14514
    public updatePincode_args() {
14515
    }
14516
 
14517
    public updatePincode_args(
14518
      long providerId,
14519
      String pincode,
14520
      boolean exp,
6524 rajveer 14521
      boolean cod,
14522
      boolean otgAvailable)
6322 amar.kumar 14523
    {
14524
      this();
14525
      this.providerId = providerId;
14526
      setProviderIdIsSet(true);
14527
      this.pincode = pincode;
14528
      this.exp = exp;
14529
      setExpIsSet(true);
14530
      this.cod = cod;
14531
      setCodIsSet(true);
6524 rajveer 14532
      this.otgAvailable = otgAvailable;
14533
      setOtgAvailableIsSet(true);
6322 amar.kumar 14534
    }
14535
 
14536
    /**
14537
     * Performs a deep copy on <i>other</i>.
14538
     */
14539
    public updatePincode_args(updatePincode_args other) {
14540
      __isset_bit_vector.clear();
14541
      __isset_bit_vector.or(other.__isset_bit_vector);
14542
      this.providerId = other.providerId;
14543
      if (other.isSetPincode()) {
14544
        this.pincode = other.pincode;
14545
      }
14546
      this.exp = other.exp;
14547
      this.cod = other.cod;
6524 rajveer 14548
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14549
    }
14550
 
14551
    public updatePincode_args deepCopy() {
14552
      return new updatePincode_args(this);
14553
    }
14554
 
14555
    @Override
14556
    public void clear() {
14557
      setProviderIdIsSet(false);
14558
      this.providerId = 0;
14559
      this.pincode = null;
14560
      setExpIsSet(false);
14561
      this.exp = false;
14562
      setCodIsSet(false);
14563
      this.cod = false;
6524 rajveer 14564
      setOtgAvailableIsSet(false);
14565
      this.otgAvailable = false;
6322 amar.kumar 14566
    }
14567
 
14568
    public long getProviderId() {
14569
      return this.providerId;
14570
    }
14571
 
14572
    public void setProviderId(long providerId) {
14573
      this.providerId = providerId;
14574
      setProviderIdIsSet(true);
14575
    }
14576
 
14577
    public void unsetProviderId() {
14578
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14579
    }
14580
 
14581
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14582
    public boolean isSetProviderId() {
14583
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14584
    }
14585
 
14586
    public void setProviderIdIsSet(boolean value) {
14587
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14588
    }
14589
 
14590
    public String getPincode() {
14591
      return this.pincode;
14592
    }
14593
 
14594
    public void setPincode(String pincode) {
14595
      this.pincode = pincode;
14596
    }
14597
 
14598
    public void unsetPincode() {
14599
      this.pincode = null;
14600
    }
14601
 
14602
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14603
    public boolean isSetPincode() {
14604
      return this.pincode != null;
14605
    }
14606
 
14607
    public void setPincodeIsSet(boolean value) {
14608
      if (!value) {
14609
        this.pincode = null;
14610
      }
14611
    }
14612
 
14613
    public boolean isExp() {
14614
      return this.exp;
14615
    }
14616
 
14617
    public void setExp(boolean exp) {
14618
      this.exp = exp;
14619
      setExpIsSet(true);
14620
    }
14621
 
14622
    public void unsetExp() {
14623
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14624
    }
14625
 
14626
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14627
    public boolean isSetExp() {
14628
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14629
    }
14630
 
14631
    public void setExpIsSet(boolean value) {
14632
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14633
    }
14634
 
14635
    public boolean isCod() {
14636
      return this.cod;
14637
    }
14638
 
14639
    public void setCod(boolean cod) {
14640
      this.cod = cod;
14641
      setCodIsSet(true);
14642
    }
14643
 
14644
    public void unsetCod() {
14645
      __isset_bit_vector.clear(__COD_ISSET_ID);
14646
    }
14647
 
14648
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14649
    public boolean isSetCod() {
14650
      return __isset_bit_vector.get(__COD_ISSET_ID);
14651
    }
14652
 
14653
    public void setCodIsSet(boolean value) {
14654
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14655
    }
14656
 
6524 rajveer 14657
    public boolean isOtgAvailable() {
14658
      return this.otgAvailable;
14659
    }
14660
 
14661
    public void setOtgAvailable(boolean otgAvailable) {
14662
      this.otgAvailable = otgAvailable;
14663
      setOtgAvailableIsSet(true);
14664
    }
14665
 
14666
    public void unsetOtgAvailable() {
14667
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14668
    }
14669
 
14670
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14671
    public boolean isSetOtgAvailable() {
14672
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14673
    }
14674
 
14675
    public void setOtgAvailableIsSet(boolean value) {
14676
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14677
    }
14678
 
6322 amar.kumar 14679
    public void setFieldValue(_Fields field, Object value) {
14680
      switch (field) {
14681
      case PROVIDER_ID:
14682
        if (value == null) {
14683
          unsetProviderId();
14684
        } else {
14685
          setProviderId((Long)value);
14686
        }
14687
        break;
14688
 
14689
      case PINCODE:
14690
        if (value == null) {
14691
          unsetPincode();
14692
        } else {
14693
          setPincode((String)value);
14694
        }
14695
        break;
14696
 
14697
      case EXP:
14698
        if (value == null) {
14699
          unsetExp();
14700
        } else {
14701
          setExp((Boolean)value);
14702
        }
14703
        break;
14704
 
14705
      case COD:
14706
        if (value == null) {
14707
          unsetCod();
14708
        } else {
14709
          setCod((Boolean)value);
14710
        }
14711
        break;
14712
 
6524 rajveer 14713
      case OTG_AVAILABLE:
14714
        if (value == null) {
14715
          unsetOtgAvailable();
14716
        } else {
14717
          setOtgAvailable((Boolean)value);
14718
        }
14719
        break;
14720
 
6322 amar.kumar 14721
      }
14722
    }
14723
 
14724
    public Object getFieldValue(_Fields field) {
14725
      switch (field) {
14726
      case PROVIDER_ID:
14727
        return Long.valueOf(getProviderId());
14728
 
14729
      case PINCODE:
14730
        return getPincode();
14731
 
14732
      case EXP:
14733
        return Boolean.valueOf(isExp());
14734
 
14735
      case COD:
14736
        return Boolean.valueOf(isCod());
14737
 
6524 rajveer 14738
      case OTG_AVAILABLE:
14739
        return Boolean.valueOf(isOtgAvailable());
14740
 
6322 amar.kumar 14741
      }
14742
      throw new IllegalStateException();
14743
    }
14744
 
14745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14746
    public boolean isSet(_Fields field) {
14747
      if (field == null) {
14748
        throw new IllegalArgumentException();
14749
      }
14750
 
14751
      switch (field) {
14752
      case PROVIDER_ID:
14753
        return isSetProviderId();
14754
      case PINCODE:
14755
        return isSetPincode();
14756
      case EXP:
14757
        return isSetExp();
14758
      case COD:
14759
        return isSetCod();
6524 rajveer 14760
      case OTG_AVAILABLE:
14761
        return isSetOtgAvailable();
6322 amar.kumar 14762
      }
14763
      throw new IllegalStateException();
14764
    }
14765
 
14766
    @Override
14767
    public boolean equals(Object that) {
14768
      if (that == null)
14769
        return false;
14770
      if (that instanceof updatePincode_args)
14771
        return this.equals((updatePincode_args)that);
14772
      return false;
14773
    }
14774
 
14775
    public boolean equals(updatePincode_args that) {
14776
      if (that == null)
14777
        return false;
14778
 
14779
      boolean this_present_providerId = true;
14780
      boolean that_present_providerId = true;
14781
      if (this_present_providerId || that_present_providerId) {
14782
        if (!(this_present_providerId && that_present_providerId))
14783
          return false;
14784
        if (this.providerId != that.providerId)
14785
          return false;
14786
      }
14787
 
14788
      boolean this_present_pincode = true && this.isSetPincode();
14789
      boolean that_present_pincode = true && that.isSetPincode();
14790
      if (this_present_pincode || that_present_pincode) {
14791
        if (!(this_present_pincode && that_present_pincode))
14792
          return false;
14793
        if (!this.pincode.equals(that.pincode))
14794
          return false;
14795
      }
14796
 
14797
      boolean this_present_exp = true;
14798
      boolean that_present_exp = true;
14799
      if (this_present_exp || that_present_exp) {
14800
        if (!(this_present_exp && that_present_exp))
14801
          return false;
14802
        if (this.exp != that.exp)
14803
          return false;
14804
      }
14805
 
14806
      boolean this_present_cod = true;
14807
      boolean that_present_cod = true;
14808
      if (this_present_cod || that_present_cod) {
14809
        if (!(this_present_cod && that_present_cod))
14810
          return false;
14811
        if (this.cod != that.cod)
14812
          return false;
14813
      }
14814
 
6524 rajveer 14815
      boolean this_present_otgAvailable = true;
14816
      boolean that_present_otgAvailable = true;
14817
      if (this_present_otgAvailable || that_present_otgAvailable) {
14818
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14819
          return false;
14820
        if (this.otgAvailable != that.otgAvailable)
14821
          return false;
14822
      }
14823
 
6322 amar.kumar 14824
      return true;
14825
    }
14826
 
14827
    @Override
14828
    public int hashCode() {
14829
      return 0;
14830
    }
14831
 
14832
    public int compareTo(updatePincode_args other) {
14833
      if (!getClass().equals(other.getClass())) {
14834
        return getClass().getName().compareTo(other.getClass().getName());
14835
      }
14836
 
14837
      int lastComparison = 0;
14838
      updatePincode_args typedOther = (updatePincode_args)other;
14839
 
14840
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14841
      if (lastComparison != 0) {
14842
        return lastComparison;
14843
      }
14844
      if (isSetProviderId()) {
14845
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14846
        if (lastComparison != 0) {
14847
          return lastComparison;
14848
        }
14849
      }
14850
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14851
      if (lastComparison != 0) {
14852
        return lastComparison;
14853
      }
14854
      if (isSetPincode()) {
14855
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14856
        if (lastComparison != 0) {
14857
          return lastComparison;
14858
        }
14859
      }
14860
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14861
      if (lastComparison != 0) {
14862
        return lastComparison;
14863
      }
14864
      if (isSetExp()) {
14865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14866
        if (lastComparison != 0) {
14867
          return lastComparison;
14868
        }
14869
      }
14870
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14871
      if (lastComparison != 0) {
14872
        return lastComparison;
14873
      }
14874
      if (isSetCod()) {
14875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14876
        if (lastComparison != 0) {
14877
          return lastComparison;
14878
        }
14879
      }
6524 rajveer 14880
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14881
      if (lastComparison != 0) {
14882
        return lastComparison;
14883
      }
14884
      if (isSetOtgAvailable()) {
14885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14886
        if (lastComparison != 0) {
14887
          return lastComparison;
14888
        }
14889
      }
6322 amar.kumar 14890
      return 0;
14891
    }
14892
 
14893
    public _Fields fieldForId(int fieldId) {
14894
      return _Fields.findByThriftId(fieldId);
14895
    }
14896
 
14897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14898
      org.apache.thrift.protocol.TField field;
14899
      iprot.readStructBegin();
14900
      while (true)
14901
      {
14902
        field = iprot.readFieldBegin();
14903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14904
          break;
14905
        }
14906
        switch (field.id) {
14907
          case 1: // PROVIDER_ID
14908
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14909
              this.providerId = iprot.readI64();
14910
              setProviderIdIsSet(true);
14911
            } else { 
14912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14913
            }
14914
            break;
14915
          case 2: // PINCODE
14916
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14917
              this.pincode = iprot.readString();
14918
            } else { 
14919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14920
            }
14921
            break;
14922
          case 3: // EXP
14923
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14924
              this.exp = iprot.readBool();
14925
              setExpIsSet(true);
14926
            } else { 
14927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14928
            }
14929
            break;
14930
          case 4: // COD
14931
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14932
              this.cod = iprot.readBool();
14933
              setCodIsSet(true);
14934
            } else { 
14935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14936
            }
14937
            break;
6524 rajveer 14938
          case 5: // OTG_AVAILABLE
14939
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14940
              this.otgAvailable = iprot.readBool();
14941
              setOtgAvailableIsSet(true);
14942
            } else { 
14943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14944
            }
14945
            break;
6322 amar.kumar 14946
          default:
14947
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14948
        }
14949
        iprot.readFieldEnd();
14950
      }
14951
      iprot.readStructEnd();
14952
      validate();
14953
    }
14954
 
14955
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14956
      validate();
14957
 
14958
      oprot.writeStructBegin(STRUCT_DESC);
14959
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14960
      oprot.writeI64(this.providerId);
14961
      oprot.writeFieldEnd();
14962
      if (this.pincode != null) {
14963
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14964
        oprot.writeString(this.pincode);
14965
        oprot.writeFieldEnd();
14966
      }
14967
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14968
      oprot.writeBool(this.exp);
14969
      oprot.writeFieldEnd();
14970
      oprot.writeFieldBegin(COD_FIELD_DESC);
14971
      oprot.writeBool(this.cod);
14972
      oprot.writeFieldEnd();
6524 rajveer 14973
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14974
      oprot.writeBool(this.otgAvailable);
14975
      oprot.writeFieldEnd();
6322 amar.kumar 14976
      oprot.writeFieldStop();
14977
      oprot.writeStructEnd();
14978
    }
14979
 
14980
    @Override
14981
    public String toString() {
14982
      StringBuilder sb = new StringBuilder("updatePincode_args(");
14983
      boolean first = true;
14984
 
14985
      sb.append("providerId:");
14986
      sb.append(this.providerId);
14987
      first = false;
14988
      if (!first) sb.append(", ");
14989
      sb.append("pincode:");
14990
      if (this.pincode == null) {
14991
        sb.append("null");
14992
      } else {
14993
        sb.append(this.pincode);
14994
      }
14995
      first = false;
14996
      if (!first) sb.append(", ");
14997
      sb.append("exp:");
14998
      sb.append(this.exp);
14999
      first = false;
15000
      if (!first) sb.append(", ");
15001
      sb.append("cod:");
15002
      sb.append(this.cod);
15003
      first = false;
6524 rajveer 15004
      if (!first) sb.append(", ");
15005
      sb.append("otgAvailable:");
15006
      sb.append(this.otgAvailable);
15007
      first = false;
6322 amar.kumar 15008
      sb.append(")");
15009
      return sb.toString();
15010
    }
15011
 
15012
    public void validate() throws org.apache.thrift.TException {
15013
      // check for required fields
15014
    }
15015
 
15016
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15017
      try {
15018
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15019
      } catch (org.apache.thrift.TException te) {
15020
        throw new java.io.IOException(te);
15021
      }
15022
    }
15023
 
15024
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15025
      try {
15026
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15027
        __isset_bit_vector = new BitSet(1);
15028
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15029
      } catch (org.apache.thrift.TException te) {
15030
        throw new java.io.IOException(te);
15031
      }
15032
    }
15033
 
15034
  }
15035
 
15036
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15037
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15038
 
15039
 
15040
 
15041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15042
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15043
;
15044
 
15045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15046
 
15047
      static {
15048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15049
          byName.put(field.getFieldName(), field);
15050
        }
15051
      }
15052
 
15053
      /**
15054
       * Find the _Fields constant that matches fieldId, or null if its not found.
15055
       */
15056
      public static _Fields findByThriftId(int fieldId) {
15057
        switch(fieldId) {
15058
          default:
15059
            return null;
15060
        }
15061
      }
15062
 
15063
      /**
15064
       * Find the _Fields constant that matches fieldId, throwing an exception
15065
       * if it is not found.
15066
       */
15067
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15068
        _Fields fields = findByThriftId(fieldId);
15069
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15070
        return fields;
15071
      }
15072
 
15073
      /**
15074
       * Find the _Fields constant that matches name, or null if its not found.
15075
       */
15076
      public static _Fields findByName(String name) {
15077
        return byName.get(name);
15078
      }
15079
 
15080
      private final short _thriftId;
15081
      private final String _fieldName;
15082
 
15083
      _Fields(short thriftId, String fieldName) {
15084
        _thriftId = thriftId;
15085
        _fieldName = fieldName;
15086
      }
15087
 
15088
      public short getThriftFieldId() {
15089
        return _thriftId;
15090
      }
15091
 
15092
      public String getFieldName() {
15093
        return _fieldName;
15094
      }
15095
    }
15096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15097
    static {
15098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15101
    }
15102
 
15103
    public updatePincode_result() {
15104
    }
15105
 
15106
    /**
15107
     * Performs a deep copy on <i>other</i>.
15108
     */
15109
    public updatePincode_result(updatePincode_result other) {
15110
    }
15111
 
15112
    public updatePincode_result deepCopy() {
15113
      return new updatePincode_result(this);
15114
    }
15115
 
15116
    @Override
15117
    public void clear() {
15118
    }
15119
 
15120
    public void setFieldValue(_Fields field, Object value) {
15121
      switch (field) {
15122
      }
15123
    }
15124
 
15125
    public Object getFieldValue(_Fields field) {
15126
      switch (field) {
15127
      }
15128
      throw new IllegalStateException();
15129
    }
15130
 
15131
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15132
    public boolean isSet(_Fields field) {
15133
      if (field == null) {
15134
        throw new IllegalArgumentException();
15135
      }
15136
 
15137
      switch (field) {
15138
      }
15139
      throw new IllegalStateException();
15140
    }
15141
 
15142
    @Override
15143
    public boolean equals(Object that) {
15144
      if (that == null)
15145
        return false;
15146
      if (that instanceof updatePincode_result)
15147
        return this.equals((updatePincode_result)that);
15148
      return false;
15149
    }
15150
 
15151
    public boolean equals(updatePincode_result that) {
15152
      if (that == null)
15153
        return false;
15154
 
15155
      return true;
15156
    }
15157
 
15158
    @Override
15159
    public int hashCode() {
15160
      return 0;
15161
    }
15162
 
15163
    public int compareTo(updatePincode_result other) {
15164
      if (!getClass().equals(other.getClass())) {
15165
        return getClass().getName().compareTo(other.getClass().getName());
15166
      }
15167
 
15168
      int lastComparison = 0;
15169
      updatePincode_result typedOther = (updatePincode_result)other;
15170
 
15171
      return 0;
15172
    }
15173
 
15174
    public _Fields fieldForId(int fieldId) {
15175
      return _Fields.findByThriftId(fieldId);
15176
    }
15177
 
15178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15179
      org.apache.thrift.protocol.TField field;
15180
      iprot.readStructBegin();
15181
      while (true)
15182
      {
15183
        field = iprot.readFieldBegin();
15184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15185
          break;
15186
        }
15187
        switch (field.id) {
15188
          default:
15189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15190
        }
15191
        iprot.readFieldEnd();
15192
      }
15193
      iprot.readStructEnd();
15194
      validate();
15195
    }
15196
 
15197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15198
      oprot.writeStructBegin(STRUCT_DESC);
15199
 
15200
      oprot.writeFieldStop();
15201
      oprot.writeStructEnd();
15202
    }
15203
 
15204
    @Override
15205
    public String toString() {
15206
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15207
      boolean first = true;
15208
 
15209
      sb.append(")");
15210
      return sb.toString();
15211
    }
15212
 
15213
    public void validate() throws org.apache.thrift.TException {
15214
      // check for required fields
15215
    }
15216
 
15217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15218
      try {
15219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15220
      } catch (org.apache.thrift.TException te) {
15221
        throw new java.io.IOException(te);
15222
      }
15223
    }
15224
 
15225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15226
      try {
15227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15228
      } catch (org.apache.thrift.TException te) {
15229
        throw new java.io.IOException(te);
15230
      }
15231
    }
15232
 
15233
  }
15234
 
7567 rajveer 15235
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15237
 
15238
    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);
15239
    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);
15240
    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);
15241
 
15242
    private long providerId; // required
15243
    private boolean cod; // required
15244
    private List<String> awbs; // required
15245
 
15246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15248
      PROVIDER_ID((short)1, "providerId"),
15249
      COD((short)2, "cod"),
15250
      AWBS((short)3, "awbs");
15251
 
15252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15253
 
15254
      static {
15255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15256
          byName.put(field.getFieldName(), field);
15257
        }
15258
      }
15259
 
15260
      /**
15261
       * Find the _Fields constant that matches fieldId, or null if its not found.
15262
       */
15263
      public static _Fields findByThriftId(int fieldId) {
15264
        switch(fieldId) {
15265
          case 1: // PROVIDER_ID
15266
            return PROVIDER_ID;
15267
          case 2: // COD
15268
            return COD;
15269
          case 3: // AWBS
15270
            return AWBS;
15271
          default:
15272
            return null;
15273
        }
15274
      }
15275
 
15276
      /**
15277
       * Find the _Fields constant that matches fieldId, throwing an exception
15278
       * if it is not found.
15279
       */
15280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15281
        _Fields fields = findByThriftId(fieldId);
15282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15283
        return fields;
15284
      }
15285
 
15286
      /**
15287
       * Find the _Fields constant that matches name, or null if its not found.
15288
       */
15289
      public static _Fields findByName(String name) {
15290
        return byName.get(name);
15291
      }
15292
 
15293
      private final short _thriftId;
15294
      private final String _fieldName;
15295
 
15296
      _Fields(short thriftId, String fieldName) {
15297
        _thriftId = thriftId;
15298
        _fieldName = fieldName;
15299
      }
15300
 
15301
      public short getThriftFieldId() {
15302
        return _thriftId;
15303
      }
15304
 
15305
      public String getFieldName() {
15306
        return _fieldName;
15307
      }
15308
    }
15309
 
15310
    // isset id assignments
15311
    private static final int __PROVIDERID_ISSET_ID = 0;
15312
    private static final int __COD_ISSET_ID = 1;
15313
    private BitSet __isset_bit_vector = new BitSet(2);
15314
 
15315
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15316
    static {
15317
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15318
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15320
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15321
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15322
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15323
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15324
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15325
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15326
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15327
    }
15328
 
15329
    public addNewAwbs_args() {
15330
    }
15331
 
15332
    public addNewAwbs_args(
15333
      long providerId,
15334
      boolean cod,
15335
      List<String> awbs)
15336
    {
15337
      this();
15338
      this.providerId = providerId;
15339
      setProviderIdIsSet(true);
15340
      this.cod = cod;
15341
      setCodIsSet(true);
15342
      this.awbs = awbs;
15343
    }
15344
 
15345
    /**
15346
     * Performs a deep copy on <i>other</i>.
15347
     */
15348
    public addNewAwbs_args(addNewAwbs_args other) {
15349
      __isset_bit_vector.clear();
15350
      __isset_bit_vector.or(other.__isset_bit_vector);
15351
      this.providerId = other.providerId;
15352
      this.cod = other.cod;
15353
      if (other.isSetAwbs()) {
15354
        List<String> __this__awbs = new ArrayList<String>();
15355
        for (String other_element : other.awbs) {
15356
          __this__awbs.add(other_element);
15357
        }
15358
        this.awbs = __this__awbs;
15359
      }
15360
    }
15361
 
15362
    public addNewAwbs_args deepCopy() {
15363
      return new addNewAwbs_args(this);
15364
    }
15365
 
15366
    @Override
15367
    public void clear() {
15368
      setProviderIdIsSet(false);
15369
      this.providerId = 0;
15370
      setCodIsSet(false);
15371
      this.cod = false;
15372
      this.awbs = null;
15373
    }
15374
 
15375
    public long getProviderId() {
15376
      return this.providerId;
15377
    }
15378
 
15379
    public void setProviderId(long providerId) {
15380
      this.providerId = providerId;
15381
      setProviderIdIsSet(true);
15382
    }
15383
 
15384
    public void unsetProviderId() {
15385
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15386
    }
15387
 
15388
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15389
    public boolean isSetProviderId() {
15390
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15391
    }
15392
 
15393
    public void setProviderIdIsSet(boolean value) {
15394
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15395
    }
15396
 
15397
    public boolean isCod() {
15398
      return this.cod;
15399
    }
15400
 
15401
    public void setCod(boolean cod) {
15402
      this.cod = cod;
15403
      setCodIsSet(true);
15404
    }
15405
 
15406
    public void unsetCod() {
15407
      __isset_bit_vector.clear(__COD_ISSET_ID);
15408
    }
15409
 
15410
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15411
    public boolean isSetCod() {
15412
      return __isset_bit_vector.get(__COD_ISSET_ID);
15413
    }
15414
 
15415
    public void setCodIsSet(boolean value) {
15416
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15417
    }
15418
 
15419
    public int getAwbsSize() {
15420
      return (this.awbs == null) ? 0 : this.awbs.size();
15421
    }
15422
 
15423
    public java.util.Iterator<String> getAwbsIterator() {
15424
      return (this.awbs == null) ? null : this.awbs.iterator();
15425
    }
15426
 
15427
    public void addToAwbs(String elem) {
15428
      if (this.awbs == null) {
15429
        this.awbs = new ArrayList<String>();
15430
      }
15431
      this.awbs.add(elem);
15432
    }
15433
 
15434
    public List<String> getAwbs() {
15435
      return this.awbs;
15436
    }
15437
 
15438
    public void setAwbs(List<String> awbs) {
15439
      this.awbs = awbs;
15440
    }
15441
 
15442
    public void unsetAwbs() {
15443
      this.awbs = null;
15444
    }
15445
 
15446
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15447
    public boolean isSetAwbs() {
15448
      return this.awbs != null;
15449
    }
15450
 
15451
    public void setAwbsIsSet(boolean value) {
15452
      if (!value) {
15453
        this.awbs = null;
15454
      }
15455
    }
15456
 
15457
    public void setFieldValue(_Fields field, Object value) {
15458
      switch (field) {
15459
      case PROVIDER_ID:
15460
        if (value == null) {
15461
          unsetProviderId();
15462
        } else {
15463
          setProviderId((Long)value);
15464
        }
15465
        break;
15466
 
15467
      case COD:
15468
        if (value == null) {
15469
          unsetCod();
15470
        } else {
15471
          setCod((Boolean)value);
15472
        }
15473
        break;
15474
 
15475
      case AWBS:
15476
        if (value == null) {
15477
          unsetAwbs();
15478
        } else {
15479
          setAwbs((List<String>)value);
15480
        }
15481
        break;
15482
 
15483
      }
15484
    }
15485
 
15486
    public Object getFieldValue(_Fields field) {
15487
      switch (field) {
15488
      case PROVIDER_ID:
15489
        return Long.valueOf(getProviderId());
15490
 
15491
      case COD:
15492
        return Boolean.valueOf(isCod());
15493
 
15494
      case AWBS:
15495
        return getAwbs();
15496
 
15497
      }
15498
      throw new IllegalStateException();
15499
    }
15500
 
15501
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15502
    public boolean isSet(_Fields field) {
15503
      if (field == null) {
15504
        throw new IllegalArgumentException();
15505
      }
15506
 
15507
      switch (field) {
15508
      case PROVIDER_ID:
15509
        return isSetProviderId();
15510
      case COD:
15511
        return isSetCod();
15512
      case AWBS:
15513
        return isSetAwbs();
15514
      }
15515
      throw new IllegalStateException();
15516
    }
15517
 
15518
    @Override
15519
    public boolean equals(Object that) {
15520
      if (that == null)
15521
        return false;
15522
      if (that instanceof addNewAwbs_args)
15523
        return this.equals((addNewAwbs_args)that);
15524
      return false;
15525
    }
15526
 
15527
    public boolean equals(addNewAwbs_args that) {
15528
      if (that == null)
15529
        return false;
15530
 
15531
      boolean this_present_providerId = true;
15532
      boolean that_present_providerId = true;
15533
      if (this_present_providerId || that_present_providerId) {
15534
        if (!(this_present_providerId && that_present_providerId))
15535
          return false;
15536
        if (this.providerId != that.providerId)
15537
          return false;
15538
      }
15539
 
15540
      boolean this_present_cod = true;
15541
      boolean that_present_cod = true;
15542
      if (this_present_cod || that_present_cod) {
15543
        if (!(this_present_cod && that_present_cod))
15544
          return false;
15545
        if (this.cod != that.cod)
15546
          return false;
15547
      }
15548
 
15549
      boolean this_present_awbs = true && this.isSetAwbs();
15550
      boolean that_present_awbs = true && that.isSetAwbs();
15551
      if (this_present_awbs || that_present_awbs) {
15552
        if (!(this_present_awbs && that_present_awbs))
15553
          return false;
15554
        if (!this.awbs.equals(that.awbs))
15555
          return false;
15556
      }
15557
 
15558
      return true;
15559
    }
15560
 
15561
    @Override
15562
    public int hashCode() {
15563
      return 0;
15564
    }
15565
 
15566
    public int compareTo(addNewAwbs_args other) {
15567
      if (!getClass().equals(other.getClass())) {
15568
        return getClass().getName().compareTo(other.getClass().getName());
15569
      }
15570
 
15571
      int lastComparison = 0;
15572
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15573
 
15574
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15575
      if (lastComparison != 0) {
15576
        return lastComparison;
15577
      }
15578
      if (isSetProviderId()) {
15579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15580
        if (lastComparison != 0) {
15581
          return lastComparison;
15582
        }
15583
      }
15584
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15585
      if (lastComparison != 0) {
15586
        return lastComparison;
15587
      }
15588
      if (isSetCod()) {
15589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15590
        if (lastComparison != 0) {
15591
          return lastComparison;
15592
        }
15593
      }
15594
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
15595
      if (lastComparison != 0) {
15596
        return lastComparison;
15597
      }
15598
      if (isSetAwbs()) {
15599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15600
        if (lastComparison != 0) {
15601
          return lastComparison;
15602
        }
15603
      }
15604
      return 0;
15605
    }
15606
 
15607
    public _Fields fieldForId(int fieldId) {
15608
      return _Fields.findByThriftId(fieldId);
15609
    }
15610
 
15611
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15612
      org.apache.thrift.protocol.TField field;
15613
      iprot.readStructBegin();
15614
      while (true)
15615
      {
15616
        field = iprot.readFieldBegin();
15617
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15618
          break;
15619
        }
15620
        switch (field.id) {
15621
          case 1: // PROVIDER_ID
15622
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15623
              this.providerId = iprot.readI64();
15624
              setProviderIdIsSet(true);
15625
            } else { 
15626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15627
            }
15628
            break;
15629
          case 2: // COD
15630
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15631
              this.cod = iprot.readBool();
15632
              setCodIsSet(true);
15633
            } else { 
15634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15635
            }
15636
            break;
15637
          case 3: // AWBS
15638
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15639
              {
7792 anupam.sin 15640
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15641
                this.awbs = new ArrayList<String>(_list24.size);
15642
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 15643
                {
7792 anupam.sin 15644
                  String _elem26; // required
15645
                  _elem26 = iprot.readString();
15646
                  this.awbs.add(_elem26);
7567 rajveer 15647
                }
15648
                iprot.readListEnd();
15649
              }
15650
            } else { 
15651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15652
            }
15653
            break;
15654
          default:
15655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15656
        }
15657
        iprot.readFieldEnd();
15658
      }
15659
      iprot.readStructEnd();
15660
      validate();
15661
    }
15662
 
15663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15664
      validate();
15665
 
15666
      oprot.writeStructBegin(STRUCT_DESC);
15667
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15668
      oprot.writeI64(this.providerId);
15669
      oprot.writeFieldEnd();
15670
      oprot.writeFieldBegin(COD_FIELD_DESC);
15671
      oprot.writeBool(this.cod);
15672
      oprot.writeFieldEnd();
15673
      if (this.awbs != null) {
15674
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
15675
        {
15676
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 15677
          for (String _iter27 : this.awbs)
7567 rajveer 15678
          {
7792 anupam.sin 15679
            oprot.writeString(_iter27);
7567 rajveer 15680
          }
15681
          oprot.writeListEnd();
15682
        }
15683
        oprot.writeFieldEnd();
15684
      }
15685
      oprot.writeFieldStop();
15686
      oprot.writeStructEnd();
15687
    }
15688
 
15689
    @Override
15690
    public String toString() {
15691
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
15692
      boolean first = true;
15693
 
15694
      sb.append("providerId:");
15695
      sb.append(this.providerId);
15696
      first = false;
15697
      if (!first) sb.append(", ");
15698
      sb.append("cod:");
15699
      sb.append(this.cod);
15700
      first = false;
15701
      if (!first) sb.append(", ");
15702
      sb.append("awbs:");
15703
      if (this.awbs == null) {
15704
        sb.append("null");
15705
      } else {
15706
        sb.append(this.awbs);
15707
      }
15708
      first = false;
15709
      sb.append(")");
15710
      return sb.toString();
15711
    }
15712
 
15713
    public void validate() throws org.apache.thrift.TException {
15714
      // check for required fields
15715
    }
15716
 
15717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15718
      try {
15719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15720
      } catch (org.apache.thrift.TException te) {
15721
        throw new java.io.IOException(te);
15722
      }
15723
    }
15724
 
15725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15726
      try {
15727
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15728
        __isset_bit_vector = new BitSet(1);
15729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15730
      } catch (org.apache.thrift.TException te) {
15731
        throw new java.io.IOException(te);
15732
      }
15733
    }
15734
 
15735
  }
15736
 
15737
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
15738
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
15739
 
15740
    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);
15741
 
15742
    private boolean success; // required
15743
 
15744
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15745
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15746
      SUCCESS((short)0, "success");
15747
 
15748
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15749
 
15750
      static {
15751
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15752
          byName.put(field.getFieldName(), field);
15753
        }
15754
      }
15755
 
15756
      /**
15757
       * Find the _Fields constant that matches fieldId, or null if its not found.
15758
       */
15759
      public static _Fields findByThriftId(int fieldId) {
15760
        switch(fieldId) {
15761
          case 0: // SUCCESS
15762
            return SUCCESS;
15763
          default:
15764
            return null;
15765
        }
15766
      }
15767
 
15768
      /**
15769
       * Find the _Fields constant that matches fieldId, throwing an exception
15770
       * if it is not found.
15771
       */
15772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15773
        _Fields fields = findByThriftId(fieldId);
15774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15775
        return fields;
15776
      }
15777
 
15778
      /**
15779
       * Find the _Fields constant that matches name, or null if its not found.
15780
       */
15781
      public static _Fields findByName(String name) {
15782
        return byName.get(name);
15783
      }
15784
 
15785
      private final short _thriftId;
15786
      private final String _fieldName;
15787
 
15788
      _Fields(short thriftId, String fieldName) {
15789
        _thriftId = thriftId;
15790
        _fieldName = fieldName;
15791
      }
15792
 
15793
      public short getThriftFieldId() {
15794
        return _thriftId;
15795
      }
15796
 
15797
      public String getFieldName() {
15798
        return _fieldName;
15799
      }
15800
    }
15801
 
15802
    // isset id assignments
15803
    private static final int __SUCCESS_ISSET_ID = 0;
15804
    private BitSet __isset_bit_vector = new BitSet(1);
15805
 
15806
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15807
    static {
15808
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15809
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15810
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
15813
    }
15814
 
15815
    public addNewAwbs_result() {
15816
    }
15817
 
15818
    public addNewAwbs_result(
15819
      boolean success)
15820
    {
15821
      this();
15822
      this.success = success;
15823
      setSuccessIsSet(true);
15824
    }
15825
 
15826
    /**
15827
     * Performs a deep copy on <i>other</i>.
15828
     */
15829
    public addNewAwbs_result(addNewAwbs_result other) {
15830
      __isset_bit_vector.clear();
15831
      __isset_bit_vector.or(other.__isset_bit_vector);
15832
      this.success = other.success;
15833
    }
15834
 
15835
    public addNewAwbs_result deepCopy() {
15836
      return new addNewAwbs_result(this);
15837
    }
15838
 
15839
    @Override
15840
    public void clear() {
15841
      setSuccessIsSet(false);
15842
      this.success = false;
15843
    }
15844
 
15845
    public boolean isSuccess() {
15846
      return this.success;
15847
    }
15848
 
15849
    public void setSuccess(boolean success) {
15850
      this.success = success;
15851
      setSuccessIsSet(true);
15852
    }
15853
 
15854
    public void unsetSuccess() {
15855
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15856
    }
15857
 
15858
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15859
    public boolean isSetSuccess() {
15860
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15861
    }
15862
 
15863
    public void setSuccessIsSet(boolean value) {
15864
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15865
    }
15866
 
15867
    public void setFieldValue(_Fields field, Object value) {
15868
      switch (field) {
15869
      case SUCCESS:
15870
        if (value == null) {
15871
          unsetSuccess();
15872
        } else {
15873
          setSuccess((Boolean)value);
15874
        }
15875
        break;
15876
 
15877
      }
15878
    }
15879
 
15880
    public Object getFieldValue(_Fields field) {
15881
      switch (field) {
15882
      case SUCCESS:
15883
        return Boolean.valueOf(isSuccess());
15884
 
15885
      }
15886
      throw new IllegalStateException();
15887
    }
15888
 
15889
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15890
    public boolean isSet(_Fields field) {
15891
      if (field == null) {
15892
        throw new IllegalArgumentException();
15893
      }
15894
 
15895
      switch (field) {
15896
      case SUCCESS:
15897
        return isSetSuccess();
15898
      }
15899
      throw new IllegalStateException();
15900
    }
15901
 
15902
    @Override
15903
    public boolean equals(Object that) {
15904
      if (that == null)
15905
        return false;
15906
      if (that instanceof addNewAwbs_result)
15907
        return this.equals((addNewAwbs_result)that);
15908
      return false;
15909
    }
15910
 
15911
    public boolean equals(addNewAwbs_result that) {
15912
      if (that == null)
15913
        return false;
15914
 
15915
      boolean this_present_success = true;
15916
      boolean that_present_success = true;
15917
      if (this_present_success || that_present_success) {
15918
        if (!(this_present_success && that_present_success))
15919
          return false;
15920
        if (this.success != that.success)
15921
          return false;
15922
      }
15923
 
15924
      return true;
15925
    }
15926
 
15927
    @Override
15928
    public int hashCode() {
15929
      return 0;
15930
    }
15931
 
15932
    public int compareTo(addNewAwbs_result other) {
15933
      if (!getClass().equals(other.getClass())) {
15934
        return getClass().getName().compareTo(other.getClass().getName());
15935
      }
15936
 
15937
      int lastComparison = 0;
15938
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
15939
 
15940
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15941
      if (lastComparison != 0) {
15942
        return lastComparison;
15943
      }
15944
      if (isSetSuccess()) {
15945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15946
        if (lastComparison != 0) {
15947
          return lastComparison;
15948
        }
15949
      }
15950
      return 0;
15951
    }
15952
 
15953
    public _Fields fieldForId(int fieldId) {
15954
      return _Fields.findByThriftId(fieldId);
15955
    }
15956
 
15957
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15958
      org.apache.thrift.protocol.TField field;
15959
      iprot.readStructBegin();
15960
      while (true)
15961
      {
15962
        field = iprot.readFieldBegin();
15963
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15964
          break;
15965
        }
15966
        switch (field.id) {
15967
          case 0: // SUCCESS
15968
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15969
              this.success = iprot.readBool();
15970
              setSuccessIsSet(true);
15971
            } else { 
15972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15973
            }
15974
            break;
15975
          default:
15976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15977
        }
15978
        iprot.readFieldEnd();
15979
      }
15980
      iprot.readStructEnd();
15981
      validate();
15982
    }
15983
 
15984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15985
      oprot.writeStructBegin(STRUCT_DESC);
15986
 
15987
      if (this.isSetSuccess()) {
15988
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15989
        oprot.writeBool(this.success);
15990
        oprot.writeFieldEnd();
15991
      }
15992
      oprot.writeFieldStop();
15993
      oprot.writeStructEnd();
15994
    }
15995
 
15996
    @Override
15997
    public String toString() {
15998
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
15999
      boolean first = true;
16000
 
16001
      sb.append("success:");
16002
      sb.append(this.success);
16003
      first = false;
16004
      sb.append(")");
16005
      return sb.toString();
16006
    }
16007
 
16008
    public void validate() throws org.apache.thrift.TException {
16009
      // check for required fields
16010
    }
16011
 
16012
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16013
      try {
16014
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16015
      } catch (org.apache.thrift.TException te) {
16016
        throw new java.io.IOException(te);
16017
      }
16018
    }
16019
 
16020
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16021
      try {
16022
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16023
      } catch (org.apache.thrift.TException te) {
16024
        throw new java.io.IOException(te);
16025
      }
16026
    }
16027
 
16028
  }
16029
 
7788 manish.sha 16030
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16031
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16032
 
7788 manish.sha 16033
    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);
16034
    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 16035
 
7788 manish.sha 16036
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16037
    private boolean runCompleteUpdate; // required
7737 manish.sha 16038
 
16039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16041
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16042
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16043
 
16044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16045
 
16046
      static {
16047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16048
          byName.put(field.getFieldName(), field);
16049
        }
16050
      }
16051
 
16052
      /**
16053
       * Find the _Fields constant that matches fieldId, or null if its not found.
16054
       */
16055
      public static _Fields findByThriftId(int fieldId) {
16056
        switch(fieldId) {
7788 manish.sha 16057
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16058
            return LOGISTICS_LOCATION_INFO_LIST;
16059
          case 2: // RUN_COMPLETE_UPDATE
16060
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16061
          default:
16062
            return null;
16063
        }
16064
      }
16065
 
16066
      /**
16067
       * Find the _Fields constant that matches fieldId, throwing an exception
16068
       * if it is not found.
16069
       */
16070
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16071
        _Fields fields = findByThriftId(fieldId);
16072
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16073
        return fields;
16074
      }
16075
 
16076
      /**
16077
       * Find the _Fields constant that matches name, or null if its not found.
16078
       */
16079
      public static _Fields findByName(String name) {
16080
        return byName.get(name);
16081
      }
16082
 
16083
      private final short _thriftId;
16084
      private final String _fieldName;
16085
 
16086
      _Fields(short thriftId, String fieldName) {
16087
        _thriftId = thriftId;
16088
        _fieldName = fieldName;
16089
      }
16090
 
16091
      public short getThriftFieldId() {
16092
        return _thriftId;
16093
      }
16094
 
16095
      public String getFieldName() {
16096
        return _fieldName;
16097
      }
16098
    }
16099
 
16100
    // isset id assignments
7788 manish.sha 16101
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16102
    private BitSet __isset_bit_vector = new BitSet(1);
16103
 
16104
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16105
    static {
16106
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16107
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16108
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16109
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16110
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16111
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16114
    }
16115
 
7788 manish.sha 16116
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16117
    }
16118
 
7788 manish.sha 16119
    public runLogisticsLocationInfoUpdate_args(
16120
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16121
      boolean runCompleteUpdate)
7737 manish.sha 16122
    {
16123
      this();
7788 manish.sha 16124
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16125
      this.runCompleteUpdate = runCompleteUpdate;
16126
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16127
    }
16128
 
16129
    /**
16130
     * Performs a deep copy on <i>other</i>.
16131
     */
7788 manish.sha 16132
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16133
      __isset_bit_vector.clear();
16134
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16135
      if (other.isSetLogisticsLocationInfoList()) {
16136
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16137
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16138
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16139
        }
16140
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16141
      }
7788 manish.sha 16142
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16143
    }
16144
 
7788 manish.sha 16145
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16146
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16147
    }
16148
 
16149
    @Override
16150
    public void clear() {
7788 manish.sha 16151
      this.logisticsLocationInfoList = null;
16152
      setRunCompleteUpdateIsSet(false);
16153
      this.runCompleteUpdate = false;
7737 manish.sha 16154
    }
16155
 
7788 manish.sha 16156
    public int getLogisticsLocationInfoListSize() {
16157
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16158
    }
16159
 
7788 manish.sha 16160
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16161
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16162
    }
16163
 
7788 manish.sha 16164
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16165
      if (this.logisticsLocationInfoList == null) {
16166
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16167
      }
16168
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16169
    }
16170
 
7788 manish.sha 16171
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16172
      return this.logisticsLocationInfoList;
7737 manish.sha 16173
    }
16174
 
7788 manish.sha 16175
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16176
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16177
    }
16178
 
7788 manish.sha 16179
    public void unsetLogisticsLocationInfoList() {
16180
      this.logisticsLocationInfoList = null;
7737 manish.sha 16181
    }
16182
 
7788 manish.sha 16183
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16184
    public boolean isSetLogisticsLocationInfoList() {
16185
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16186
    }
16187
 
7788 manish.sha 16188
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16189
      if (!value) {
16190
        this.logisticsLocationInfoList = null;
16191
      }
7737 manish.sha 16192
    }
16193
 
7788 manish.sha 16194
    public boolean isRunCompleteUpdate() {
16195
      return this.runCompleteUpdate;
7737 manish.sha 16196
    }
16197
 
7788 manish.sha 16198
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16199
      this.runCompleteUpdate = runCompleteUpdate;
16200
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16201
    }
16202
 
7788 manish.sha 16203
    public void unsetRunCompleteUpdate() {
16204
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16205
    }
16206
 
16207
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16208
    public boolean isSetRunCompleteUpdate() {
16209
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16210
    }
16211
 
16212
    public void setRunCompleteUpdateIsSet(boolean value) {
16213
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16214
    }
16215
 
7737 manish.sha 16216
    public void setFieldValue(_Fields field, Object value) {
16217
      switch (field) {
7788 manish.sha 16218
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16219
        if (value == null) {
7788 manish.sha 16220
          unsetLogisticsLocationInfoList();
7737 manish.sha 16221
        } else {
7788 manish.sha 16222
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16223
        }
16224
        break;
16225
 
7788 manish.sha 16226
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16227
        if (value == null) {
7788 manish.sha 16228
          unsetRunCompleteUpdate();
7737 manish.sha 16229
        } else {
7788 manish.sha 16230
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16231
        }
16232
        break;
16233
 
16234
      }
16235
    }
16236
 
16237
    public Object getFieldValue(_Fields field) {
16238
      switch (field) {
7788 manish.sha 16239
      case LOGISTICS_LOCATION_INFO_LIST:
16240
        return getLogisticsLocationInfoList();
7737 manish.sha 16241
 
7788 manish.sha 16242
      case RUN_COMPLETE_UPDATE:
16243
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16244
 
16245
      }
16246
      throw new IllegalStateException();
16247
    }
16248
 
16249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16250
    public boolean isSet(_Fields field) {
16251
      if (field == null) {
16252
        throw new IllegalArgumentException();
16253
      }
16254
 
16255
      switch (field) {
7788 manish.sha 16256
      case LOGISTICS_LOCATION_INFO_LIST:
16257
        return isSetLogisticsLocationInfoList();
16258
      case RUN_COMPLETE_UPDATE:
16259
        return isSetRunCompleteUpdate();
7737 manish.sha 16260
      }
16261
      throw new IllegalStateException();
16262
    }
16263
 
16264
    @Override
16265
    public boolean equals(Object that) {
16266
      if (that == null)
16267
        return false;
7788 manish.sha 16268
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16269
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16270
      return false;
16271
    }
16272
 
7788 manish.sha 16273
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16274
      if (that == null)
16275
        return false;
16276
 
7788 manish.sha 16277
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16278
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16279
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16280
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16281
          return false;
7788 manish.sha 16282
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16283
          return false;
16284
      }
16285
 
7788 manish.sha 16286
      boolean this_present_runCompleteUpdate = true;
16287
      boolean that_present_runCompleteUpdate = true;
16288
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16289
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16290
          return false;
7788 manish.sha 16291
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16292
          return false;
16293
      }
16294
 
16295
      return true;
16296
    }
16297
 
16298
    @Override
16299
    public int hashCode() {
16300
      return 0;
16301
    }
16302
 
7788 manish.sha 16303
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16304
      if (!getClass().equals(other.getClass())) {
16305
        return getClass().getName().compareTo(other.getClass().getName());
16306
      }
16307
 
16308
      int lastComparison = 0;
7788 manish.sha 16309
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16310
 
7788 manish.sha 16311
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16312
      if (lastComparison != 0) {
16313
        return lastComparison;
16314
      }
7788 manish.sha 16315
      if (isSetLogisticsLocationInfoList()) {
16316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16317
        if (lastComparison != 0) {
16318
          return lastComparison;
16319
        }
16320
      }
7788 manish.sha 16321
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16322
      if (lastComparison != 0) {
16323
        return lastComparison;
16324
      }
7788 manish.sha 16325
      if (isSetRunCompleteUpdate()) {
16326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16327
        if (lastComparison != 0) {
16328
          return lastComparison;
16329
        }
16330
      }
16331
      return 0;
16332
    }
16333
 
16334
    public _Fields fieldForId(int fieldId) {
16335
      return _Fields.findByThriftId(fieldId);
16336
    }
16337
 
16338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16339
      org.apache.thrift.protocol.TField field;
16340
      iprot.readStructBegin();
16341
      while (true)
16342
      {
16343
        field = iprot.readFieldBegin();
16344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16345
          break;
16346
        }
16347
        switch (field.id) {
7788 manish.sha 16348
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16349
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16350
              {
7808 anupam.sin 16351
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16352
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16353
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16354
                {
7808 anupam.sin 16355
                  LogisticsLocationInfo _elem30; // required
16356
                  _elem30 = new LogisticsLocationInfo();
16357
                  _elem30.read(iprot);
16358
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16359
                }
16360
                iprot.readListEnd();
16361
              }
7737 manish.sha 16362
            } else { 
16363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16364
            }
16365
            break;
7788 manish.sha 16366
          case 2: // RUN_COMPLETE_UPDATE
16367
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16368
              this.runCompleteUpdate = iprot.readBool();
16369
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16370
            } else { 
16371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16372
            }
16373
            break;
16374
          default:
16375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16376
        }
16377
        iprot.readFieldEnd();
16378
      }
16379
      iprot.readStructEnd();
16380
      validate();
16381
    }
16382
 
16383
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16384
      validate();
16385
 
16386
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16387
      if (this.logisticsLocationInfoList != null) {
16388
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16389
        {
16390
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16391
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16392
          {
7808 anupam.sin 16393
            _iter31.write(oprot);
7788 manish.sha 16394
          }
16395
          oprot.writeListEnd();
16396
        }
7737 manish.sha 16397
        oprot.writeFieldEnd();
16398
      }
7788 manish.sha 16399
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16400
      oprot.writeBool(this.runCompleteUpdate);
16401
      oprot.writeFieldEnd();
7737 manish.sha 16402
      oprot.writeFieldStop();
16403
      oprot.writeStructEnd();
16404
    }
16405
 
16406
    @Override
16407
    public String toString() {
7788 manish.sha 16408
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16409
      boolean first = true;
16410
 
7788 manish.sha 16411
      sb.append("logisticsLocationInfoList:");
16412
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16413
        sb.append("null");
16414
      } else {
7788 manish.sha 16415
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16416
      }
16417
      first = false;
7788 manish.sha 16418
      if (!first) sb.append(", ");
16419
      sb.append("runCompleteUpdate:");
16420
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16421
      first = false;
16422
      sb.append(")");
16423
      return sb.toString();
16424
    }
16425
 
16426
    public void validate() throws org.apache.thrift.TException {
16427
      // check for required fields
16428
    }
16429
 
16430
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16431
      try {
16432
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16433
      } catch (org.apache.thrift.TException te) {
16434
        throw new java.io.IOException(te);
16435
      }
16436
    }
16437
 
16438
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16439
      try {
7788 manish.sha 16440
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16441
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16442
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16443
      } catch (org.apache.thrift.TException te) {
16444
        throw new java.io.IOException(te);
16445
      }
16446
    }
16447
 
16448
  }
16449
 
7788 manish.sha 16450
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16451
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16452
 
16453
 
16454
 
16455
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16456
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16457
;
16458
 
16459
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16460
 
16461
      static {
16462
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16463
          byName.put(field.getFieldName(), field);
16464
        }
16465
      }
16466
 
16467
      /**
16468
       * Find the _Fields constant that matches fieldId, or null if its not found.
16469
       */
16470
      public static _Fields findByThriftId(int fieldId) {
16471
        switch(fieldId) {
16472
          default:
16473
            return null;
16474
        }
16475
      }
16476
 
16477
      /**
16478
       * Find the _Fields constant that matches fieldId, throwing an exception
16479
       * if it is not found.
16480
       */
16481
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16482
        _Fields fields = findByThriftId(fieldId);
16483
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16484
        return fields;
16485
      }
16486
 
16487
      /**
16488
       * Find the _Fields constant that matches name, or null if its not found.
16489
       */
16490
      public static _Fields findByName(String name) {
16491
        return byName.get(name);
16492
      }
16493
 
16494
      private final short _thriftId;
16495
      private final String _fieldName;
16496
 
16497
      _Fields(short thriftId, String fieldName) {
16498
        _thriftId = thriftId;
16499
        _fieldName = fieldName;
16500
      }
16501
 
16502
      public short getThriftFieldId() {
16503
        return _thriftId;
16504
      }
16505
 
16506
      public String getFieldName() {
16507
        return _fieldName;
16508
      }
16509
    }
16510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16511
    static {
16512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16513
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16514
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 16515
    }
16516
 
7788 manish.sha 16517
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 16518
    }
16519
 
16520
    /**
16521
     * Performs a deep copy on <i>other</i>.
16522
     */
7788 manish.sha 16523
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16524
    }
16525
 
7788 manish.sha 16526
    public runLogisticsLocationInfoUpdate_result deepCopy() {
16527
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 16528
    }
16529
 
16530
    @Override
16531
    public void clear() {
16532
    }
16533
 
16534
    public void setFieldValue(_Fields field, Object value) {
16535
      switch (field) {
16536
      }
16537
    }
16538
 
16539
    public Object getFieldValue(_Fields field) {
16540
      switch (field) {
16541
      }
16542
      throw new IllegalStateException();
16543
    }
16544
 
16545
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16546
    public boolean isSet(_Fields field) {
16547
      if (field == null) {
16548
        throw new IllegalArgumentException();
16549
      }
16550
 
16551
      switch (field) {
16552
      }
16553
      throw new IllegalStateException();
16554
    }
16555
 
16556
    @Override
16557
    public boolean equals(Object that) {
16558
      if (that == null)
16559
        return false;
7788 manish.sha 16560
      if (that instanceof runLogisticsLocationInfoUpdate_result)
16561
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 16562
      return false;
16563
    }
16564
 
7788 manish.sha 16565
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 16566
      if (that == null)
16567
        return false;
16568
 
16569
      return true;
16570
    }
16571
 
16572
    @Override
16573
    public int hashCode() {
16574
      return 0;
16575
    }
16576
 
7788 manish.sha 16577
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16578
      if (!getClass().equals(other.getClass())) {
16579
        return getClass().getName().compareTo(other.getClass().getName());
16580
      }
16581
 
16582
      int lastComparison = 0;
7788 manish.sha 16583
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 16584
 
16585
      return 0;
16586
    }
16587
 
16588
    public _Fields fieldForId(int fieldId) {
16589
      return _Fields.findByThriftId(fieldId);
16590
    }
16591
 
16592
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16593
      org.apache.thrift.protocol.TField field;
16594
      iprot.readStructBegin();
16595
      while (true)
16596
      {
16597
        field = iprot.readFieldBegin();
16598
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16599
          break;
16600
        }
16601
        switch (field.id) {
16602
          default:
16603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16604
        }
16605
        iprot.readFieldEnd();
16606
      }
16607
      iprot.readStructEnd();
16608
      validate();
16609
    }
16610
 
16611
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16612
      oprot.writeStructBegin(STRUCT_DESC);
16613
 
16614
      oprot.writeFieldStop();
16615
      oprot.writeStructEnd();
16616
    }
16617
 
16618
    @Override
16619
    public String toString() {
7788 manish.sha 16620
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 16621
      boolean first = true;
16622
 
16623
      sb.append(")");
16624
      return sb.toString();
16625
    }
16626
 
16627
    public void validate() throws org.apache.thrift.TException {
16628
      // check for required fields
16629
    }
16630
 
16631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16632
      try {
16633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16634
      } catch (org.apache.thrift.TException te) {
16635
        throw new java.io.IOException(te);
16636
      }
16637
    }
16638
 
16639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16640
      try {
16641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16642
      } catch (org.apache.thrift.TException te) {
16643
        throw new java.io.IOException(te);
16644
      }
16645
    }
16646
 
16647
  }
16648
 
7888 rajveer 16649
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
16650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
16651
 
16652
    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);
16653
    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);
16654
 
16655
    private long startDate; // required
16656
    private long days; // required
16657
 
16658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16660
      START_DATE((short)1, "startDate"),
16661
      DAYS((short)2, "days");
16662
 
16663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16664
 
16665
      static {
16666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16667
          byName.put(field.getFieldName(), field);
16668
        }
16669
      }
16670
 
16671
      /**
16672
       * Find the _Fields constant that matches fieldId, or null if its not found.
16673
       */
16674
      public static _Fields findByThriftId(int fieldId) {
16675
        switch(fieldId) {
16676
          case 1: // START_DATE
16677
            return START_DATE;
16678
          case 2: // DAYS
16679
            return DAYS;
16680
          default:
16681
            return null;
16682
        }
16683
      }
16684
 
16685
      /**
16686
       * Find the _Fields constant that matches fieldId, throwing an exception
16687
       * if it is not found.
16688
       */
16689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16690
        _Fields fields = findByThriftId(fieldId);
16691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16692
        return fields;
16693
      }
16694
 
16695
      /**
16696
       * Find the _Fields constant that matches name, or null if its not found.
16697
       */
16698
      public static _Fields findByName(String name) {
16699
        return byName.get(name);
16700
      }
16701
 
16702
      private final short _thriftId;
16703
      private final String _fieldName;
16704
 
16705
      _Fields(short thriftId, String fieldName) {
16706
        _thriftId = thriftId;
16707
        _fieldName = fieldName;
16708
      }
16709
 
16710
      public short getThriftFieldId() {
16711
        return _thriftId;
16712
      }
16713
 
16714
      public String getFieldName() {
16715
        return _fieldName;
16716
      }
16717
    }
16718
 
16719
    // isset id assignments
16720
    private static final int __STARTDATE_ISSET_ID = 0;
16721
    private static final int __DAYS_ISSET_ID = 1;
16722
    private BitSet __isset_bit_vector = new BitSet(2);
16723
 
16724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16725
    static {
16726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16727
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16729
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
16733
    }
16734
 
16735
    public adjustDeliveryDays_args() {
16736
    }
16737
 
16738
    public adjustDeliveryDays_args(
16739
      long startDate,
16740
      long days)
16741
    {
16742
      this();
16743
      this.startDate = startDate;
16744
      setStartDateIsSet(true);
16745
      this.days = days;
16746
      setDaysIsSet(true);
16747
    }
16748
 
16749
    /**
16750
     * Performs a deep copy on <i>other</i>.
16751
     */
16752
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
16753
      __isset_bit_vector.clear();
16754
      __isset_bit_vector.or(other.__isset_bit_vector);
16755
      this.startDate = other.startDate;
16756
      this.days = other.days;
16757
    }
16758
 
16759
    public adjustDeliveryDays_args deepCopy() {
16760
      return new adjustDeliveryDays_args(this);
16761
    }
16762
 
16763
    @Override
16764
    public void clear() {
16765
      setStartDateIsSet(false);
16766
      this.startDate = 0;
16767
      setDaysIsSet(false);
16768
      this.days = 0;
16769
    }
16770
 
16771
    public long getStartDate() {
16772
      return this.startDate;
16773
    }
16774
 
16775
    public void setStartDate(long startDate) {
16776
      this.startDate = startDate;
16777
      setStartDateIsSet(true);
16778
    }
16779
 
16780
    public void unsetStartDate() {
16781
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
16782
    }
16783
 
16784
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
16785
    public boolean isSetStartDate() {
16786
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
16787
    }
16788
 
16789
    public void setStartDateIsSet(boolean value) {
16790
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
16791
    }
16792
 
16793
    public long getDays() {
16794
      return this.days;
16795
    }
16796
 
16797
    public void setDays(long days) {
16798
      this.days = days;
16799
      setDaysIsSet(true);
16800
    }
16801
 
16802
    public void unsetDays() {
16803
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
16804
    }
16805
 
16806
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
16807
    public boolean isSetDays() {
16808
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
16809
    }
16810
 
16811
    public void setDaysIsSet(boolean value) {
16812
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
16813
    }
16814
 
16815
    public void setFieldValue(_Fields field, Object value) {
16816
      switch (field) {
16817
      case START_DATE:
16818
        if (value == null) {
16819
          unsetStartDate();
16820
        } else {
16821
          setStartDate((Long)value);
16822
        }
16823
        break;
16824
 
16825
      case DAYS:
16826
        if (value == null) {
16827
          unsetDays();
16828
        } else {
16829
          setDays((Long)value);
16830
        }
16831
        break;
16832
 
16833
      }
16834
    }
16835
 
16836
    public Object getFieldValue(_Fields field) {
16837
      switch (field) {
16838
      case START_DATE:
16839
        return Long.valueOf(getStartDate());
16840
 
16841
      case DAYS:
16842
        return Long.valueOf(getDays());
16843
 
16844
      }
16845
      throw new IllegalStateException();
16846
    }
16847
 
16848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16849
    public boolean isSet(_Fields field) {
16850
      if (field == null) {
16851
        throw new IllegalArgumentException();
16852
      }
16853
 
16854
      switch (field) {
16855
      case START_DATE:
16856
        return isSetStartDate();
16857
      case DAYS:
16858
        return isSetDays();
16859
      }
16860
      throw new IllegalStateException();
16861
    }
16862
 
16863
    @Override
16864
    public boolean equals(Object that) {
16865
      if (that == null)
16866
        return false;
16867
      if (that instanceof adjustDeliveryDays_args)
16868
        return this.equals((adjustDeliveryDays_args)that);
16869
      return false;
16870
    }
16871
 
16872
    public boolean equals(adjustDeliveryDays_args that) {
16873
      if (that == null)
16874
        return false;
16875
 
16876
      boolean this_present_startDate = true;
16877
      boolean that_present_startDate = true;
16878
      if (this_present_startDate || that_present_startDate) {
16879
        if (!(this_present_startDate && that_present_startDate))
16880
          return false;
16881
        if (this.startDate != that.startDate)
16882
          return false;
16883
      }
16884
 
16885
      boolean this_present_days = true;
16886
      boolean that_present_days = true;
16887
      if (this_present_days || that_present_days) {
16888
        if (!(this_present_days && that_present_days))
16889
          return false;
16890
        if (this.days != that.days)
16891
          return false;
16892
      }
16893
 
16894
      return true;
16895
    }
16896
 
16897
    @Override
16898
    public int hashCode() {
16899
      return 0;
16900
    }
16901
 
16902
    public int compareTo(adjustDeliveryDays_args other) {
16903
      if (!getClass().equals(other.getClass())) {
16904
        return getClass().getName().compareTo(other.getClass().getName());
16905
      }
16906
 
16907
      int lastComparison = 0;
16908
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
16909
 
16910
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
16911
      if (lastComparison != 0) {
16912
        return lastComparison;
16913
      }
16914
      if (isSetStartDate()) {
16915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
16916
        if (lastComparison != 0) {
16917
          return lastComparison;
16918
        }
16919
      }
16920
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
16921
      if (lastComparison != 0) {
16922
        return lastComparison;
16923
      }
16924
      if (isSetDays()) {
16925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
16926
        if (lastComparison != 0) {
16927
          return lastComparison;
16928
        }
16929
      }
16930
      return 0;
16931
    }
16932
 
16933
    public _Fields fieldForId(int fieldId) {
16934
      return _Fields.findByThriftId(fieldId);
16935
    }
16936
 
16937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16938
      org.apache.thrift.protocol.TField field;
16939
      iprot.readStructBegin();
16940
      while (true)
16941
      {
16942
        field = iprot.readFieldBegin();
16943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16944
          break;
16945
        }
16946
        switch (field.id) {
16947
          case 1: // START_DATE
16948
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16949
              this.startDate = iprot.readI64();
16950
              setStartDateIsSet(true);
16951
            } else { 
16952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16953
            }
16954
            break;
16955
          case 2: // DAYS
16956
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16957
              this.days = iprot.readI64();
16958
              setDaysIsSet(true);
16959
            } else { 
16960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16961
            }
16962
            break;
16963
          default:
16964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16965
        }
16966
        iprot.readFieldEnd();
16967
      }
16968
      iprot.readStructEnd();
16969
      validate();
16970
    }
16971
 
16972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16973
      validate();
16974
 
16975
      oprot.writeStructBegin(STRUCT_DESC);
16976
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
16977
      oprot.writeI64(this.startDate);
16978
      oprot.writeFieldEnd();
16979
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
16980
      oprot.writeI64(this.days);
16981
      oprot.writeFieldEnd();
16982
      oprot.writeFieldStop();
16983
      oprot.writeStructEnd();
16984
    }
16985
 
16986
    @Override
16987
    public String toString() {
16988
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
16989
      boolean first = true;
16990
 
16991
      sb.append("startDate:");
16992
      sb.append(this.startDate);
16993
      first = false;
16994
      if (!first) sb.append(", ");
16995
      sb.append("days:");
16996
      sb.append(this.days);
16997
      first = false;
16998
      sb.append(")");
16999
      return sb.toString();
17000
    }
17001
 
17002
    public void validate() throws org.apache.thrift.TException {
17003
      // check for required fields
17004
    }
17005
 
17006
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17007
      try {
17008
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17009
      } catch (org.apache.thrift.TException te) {
17010
        throw new java.io.IOException(te);
17011
      }
17012
    }
17013
 
17014
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17015
      try {
17016
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17017
        __isset_bit_vector = new BitSet(1);
17018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17019
      } catch (org.apache.thrift.TException te) {
17020
        throw new java.io.IOException(te);
17021
      }
17022
    }
17023
 
17024
  }
17025
 
17026
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17028
 
17029
    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);
17030
 
17031
    private long success; // required
17032
 
17033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17035
      SUCCESS((short)0, "success");
17036
 
17037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17038
 
17039
      static {
17040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17041
          byName.put(field.getFieldName(), field);
17042
        }
17043
      }
17044
 
17045
      /**
17046
       * Find the _Fields constant that matches fieldId, or null if its not found.
17047
       */
17048
      public static _Fields findByThriftId(int fieldId) {
17049
        switch(fieldId) {
17050
          case 0: // SUCCESS
17051
            return SUCCESS;
17052
          default:
17053
            return null;
17054
        }
17055
      }
17056
 
17057
      /**
17058
       * Find the _Fields constant that matches fieldId, throwing an exception
17059
       * if it is not found.
17060
       */
17061
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17062
        _Fields fields = findByThriftId(fieldId);
17063
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17064
        return fields;
17065
      }
17066
 
17067
      /**
17068
       * Find the _Fields constant that matches name, or null if its not found.
17069
       */
17070
      public static _Fields findByName(String name) {
17071
        return byName.get(name);
17072
      }
17073
 
17074
      private final short _thriftId;
17075
      private final String _fieldName;
17076
 
17077
      _Fields(short thriftId, String fieldName) {
17078
        _thriftId = thriftId;
17079
        _fieldName = fieldName;
17080
      }
17081
 
17082
      public short getThriftFieldId() {
17083
        return _thriftId;
17084
      }
17085
 
17086
      public String getFieldName() {
17087
        return _fieldName;
17088
      }
17089
    }
17090
 
17091
    // isset id assignments
17092
    private static final int __SUCCESS_ISSET_ID = 0;
17093
    private BitSet __isset_bit_vector = new BitSet(1);
17094
 
17095
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17096
    static {
17097
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17098
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17100
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17101
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17102
    }
17103
 
17104
    public adjustDeliveryDays_result() {
17105
    }
17106
 
17107
    public adjustDeliveryDays_result(
17108
      long success)
17109
    {
17110
      this();
17111
      this.success = success;
17112
      setSuccessIsSet(true);
17113
    }
17114
 
17115
    /**
17116
     * Performs a deep copy on <i>other</i>.
17117
     */
17118
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17119
      __isset_bit_vector.clear();
17120
      __isset_bit_vector.or(other.__isset_bit_vector);
17121
      this.success = other.success;
17122
    }
17123
 
17124
    public adjustDeliveryDays_result deepCopy() {
17125
      return new adjustDeliveryDays_result(this);
17126
    }
17127
 
17128
    @Override
17129
    public void clear() {
17130
      setSuccessIsSet(false);
17131
      this.success = 0;
17132
    }
17133
 
17134
    public long getSuccess() {
17135
      return this.success;
17136
    }
17137
 
17138
    public void setSuccess(long success) {
17139
      this.success = success;
17140
      setSuccessIsSet(true);
17141
    }
17142
 
17143
    public void unsetSuccess() {
17144
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17145
    }
17146
 
17147
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17148
    public boolean isSetSuccess() {
17149
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17150
    }
17151
 
17152
    public void setSuccessIsSet(boolean value) {
17153
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17154
    }
17155
 
17156
    public void setFieldValue(_Fields field, Object value) {
17157
      switch (field) {
17158
      case SUCCESS:
17159
        if (value == null) {
17160
          unsetSuccess();
17161
        } else {
17162
          setSuccess((Long)value);
17163
        }
17164
        break;
17165
 
17166
      }
17167
    }
17168
 
17169
    public Object getFieldValue(_Fields field) {
17170
      switch (field) {
17171
      case SUCCESS:
17172
        return Long.valueOf(getSuccess());
17173
 
17174
      }
17175
      throw new IllegalStateException();
17176
    }
17177
 
17178
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17179
    public boolean isSet(_Fields field) {
17180
      if (field == null) {
17181
        throw new IllegalArgumentException();
17182
      }
17183
 
17184
      switch (field) {
17185
      case SUCCESS:
17186
        return isSetSuccess();
17187
      }
17188
      throw new IllegalStateException();
17189
    }
17190
 
17191
    @Override
17192
    public boolean equals(Object that) {
17193
      if (that == null)
17194
        return false;
17195
      if (that instanceof adjustDeliveryDays_result)
17196
        return this.equals((adjustDeliveryDays_result)that);
17197
      return false;
17198
    }
17199
 
17200
    public boolean equals(adjustDeliveryDays_result that) {
17201
      if (that == null)
17202
        return false;
17203
 
17204
      boolean this_present_success = true;
17205
      boolean that_present_success = true;
17206
      if (this_present_success || that_present_success) {
17207
        if (!(this_present_success && that_present_success))
17208
          return false;
17209
        if (this.success != that.success)
17210
          return false;
17211
      }
17212
 
17213
      return true;
17214
    }
17215
 
17216
    @Override
17217
    public int hashCode() {
17218
      return 0;
17219
    }
17220
 
17221
    public int compareTo(adjustDeliveryDays_result other) {
17222
      if (!getClass().equals(other.getClass())) {
17223
        return getClass().getName().compareTo(other.getClass().getName());
17224
      }
17225
 
17226
      int lastComparison = 0;
17227
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17228
 
17229
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17230
      if (lastComparison != 0) {
17231
        return lastComparison;
17232
      }
17233
      if (isSetSuccess()) {
17234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17235
        if (lastComparison != 0) {
17236
          return lastComparison;
17237
        }
17238
      }
17239
      return 0;
17240
    }
17241
 
17242
    public _Fields fieldForId(int fieldId) {
17243
      return _Fields.findByThriftId(fieldId);
17244
    }
17245
 
17246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17247
      org.apache.thrift.protocol.TField field;
17248
      iprot.readStructBegin();
17249
      while (true)
17250
      {
17251
        field = iprot.readFieldBegin();
17252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17253
          break;
17254
        }
17255
        switch (field.id) {
17256
          case 0: // SUCCESS
17257
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17258
              this.success = iprot.readI64();
17259
              setSuccessIsSet(true);
17260
            } else { 
17261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17262
            }
17263
            break;
17264
          default:
17265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17266
        }
17267
        iprot.readFieldEnd();
17268
      }
17269
      iprot.readStructEnd();
17270
      validate();
17271
    }
17272
 
17273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17274
      oprot.writeStructBegin(STRUCT_DESC);
17275
 
17276
      if (this.isSetSuccess()) {
17277
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17278
        oprot.writeI64(this.success);
17279
        oprot.writeFieldEnd();
17280
      }
17281
      oprot.writeFieldStop();
17282
      oprot.writeStructEnd();
17283
    }
17284
 
17285
    @Override
17286
    public String toString() {
17287
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17288
      boolean first = true;
17289
 
17290
      sb.append("success:");
17291
      sb.append(this.success);
17292
      first = false;
17293
      sb.append(")");
17294
      return sb.toString();
17295
    }
17296
 
17297
    public void validate() throws org.apache.thrift.TException {
17298
      // check for required fields
17299
    }
17300
 
17301
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17302
      try {
17303
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17304
      } catch (org.apache.thrift.TException te) {
17305
        throw new java.io.IOException(te);
17306
      }
17307
    }
17308
 
17309
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17310
      try {
17311
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17312
      } catch (org.apache.thrift.TException te) {
17313
        throw new java.io.IOException(te);
17314
      }
17315
    }
17316
 
17317
  }
17318
 
412 ashish 17319
}