Subversion Repositories SmartDukaan

Rev

Rev 7792 | Rev 7888 | 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
 
412 ashish 145
  }
146
 
3430 rajveer 147
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
148
 
149
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
150
 
151
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
152
 
4630 mandeep.dh 153
    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 154
 
7256 rajveer 155
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
156
 
5766 rajveer 157
    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 158
 
5247 rajveer 159
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 160
 
6643 rajveer 161
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 162
 
6643 rajveer 163
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
164
 
3430 rajveer 165
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
170
 
4934 amit.gupta 171
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
172
 
5527 anupam.sin 173
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
174
 
5553 rajveer 175
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
178
 
5719 rajveer 179
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
180
 
6524 rajveer 181
    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 182
 
6524 rajveer 183
    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 184
 
7567 rajveer 185
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
186
 
7788 manish.sha 187
    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 188
 
3430 rajveer 189
  }
190
 
3374 rajveer 191
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 192
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
193
      public Factory() {}
194
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
195
        return new Client(prot);
196
      }
197
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
198
        return new Client(iprot, oprot);
199
      }
200
    }
201
 
202
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 203
    {
3430 rajveer 204
      super(prot, prot);
412 ashish 205
    }
206
 
3430 rajveer 207
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 208
      super(iprot, oprot);
412 ashish 209
    }
210
 
3430 rajveer 211
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 212
    {
213
      send_getProvider(providerId);
214
      return recv_getProvider();
215
    }
216
 
3430 rajveer 217
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 218
    {
219
      getProvider_args args = new getProvider_args();
3430 rajveer 220
      args.setProviderId(providerId);
221
      sendBase("getProvider", args);
668 chandransh 222
    }
223
 
3430 rajveer 224
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 225
    {
226
      getProvider_result result = new getProvider_result();
3430 rajveer 227
      receiveBase(result, "getProvider");
668 chandransh 228
      if (result.isSetSuccess()) {
229
        return result.success;
230
      }
231
      if (result.lse != null) {
232
        throw result.lse;
233
      }
3430 rajveer 234
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 235
    }
236
 
3430 rajveer 237
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 238
    {
239
      send_getAllProviders();
240
      return recv_getAllProviders();
241
    }
242
 
3430 rajveer 243
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 244
    {
245
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 246
      sendBase("getAllProviders", args);
674 chandransh 247
    }
248
 
3430 rajveer 249
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 250
    {
251
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 252
      receiveBase(result, "getAllProviders");
674 chandransh 253
      if (result.isSetSuccess()) {
254
        return result.success;
255
      }
256
      if (result.lse != null) {
257
        throw result.lse;
258
      }
3430 rajveer 259
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 260
    }
261
 
4630 mandeep.dh 262
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 263
    {
4630 mandeep.dh 264
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 265
      return recv_getLogisticsEstimation();
266
    }
267
 
4630 mandeep.dh 268
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 269
    {
270
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 271
      args.setItemId(itemId);
272
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 273
      args.setType(type);
3430 rajveer 274
      sendBase("getLogisticsEstimation", args);
471 rajveer 275
    }
276
 
3430 rajveer 277
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 278
    {
279
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 280
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 281
      if (result.isSetSuccess()) {
282
        return result.success;
283
      }
284
      if (result.se != null) {
285
        throw result.se;
286
      }
3430 rajveer 287
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 288
    }
289
 
7256 rajveer 290
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
291
    {
292
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
293
      return recv_getLogisticsEstimationForStore();
294
    }
295
 
296
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
297
    {
298
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
299
      args.setItemId(itemId);
300
      args.setDestination_pin(destination_pin);
301
      args.setType(type);
302
      sendBase("getLogisticsEstimationForStore", args);
303
    }
304
 
305
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
306
    {
307
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
308
      receiveBase(result, "getLogisticsEstimationForStore");
309
      if (result.isSetSuccess()) {
310
        return result.success;
311
      }
312
      if (result.se != null) {
313
        throw result.se;
314
      }
315
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
316
    }
317
 
5766 rajveer 318
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 319
    {
5766 rajveer 320
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 321
      return recv_getLogisticsInfo();
471 rajveer 322
    }
323
 
5766 rajveer 324
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 325
    {
648 chandransh 326
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 327
      args.setDestination_pincode(destination_pincode);
328
      args.setItem_id(item_id);
329
      args.setType(type);
5766 rajveer 330
      args.setPickUp(pickUp);
3430 rajveer 331
      sendBase("getLogisticsInfo", args);
471 rajveer 332
    }
333
 
3430 rajveer 334
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 335
    {
648 chandransh 336
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 337
      receiveBase(result, "getLogisticsInfo");
648 chandransh 338
      if (result.isSetSuccess()) {
339
        return result.success;
477 rajveer 340
      }
648 chandransh 341
      if (result.se != null) {
342
        throw result.se;
412 ashish 343
      }
3430 rajveer 344
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 345
    }
346
 
5247 rajveer 347
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 348
    {
5247 rajveer 349
      send_getEmptyAWB(providerId, type);
412 ashish 350
      return recv_getEmptyAWB();
351
    }
352
 
5247 rajveer 353
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 354
    {
355
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 356
      args.setProviderId(providerId);
5247 rajveer 357
      args.setType(type);
3430 rajveer 358
      sendBase("getEmptyAWB", args);
412 ashish 359
    }
360
 
3430 rajveer 361
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 362
    {
363
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 364
      receiveBase(result, "getEmptyAWB");
412 ashish 365
      if (result.isSetSuccess()) {
366
        return result.success;
367
      }
648 chandransh 368
      if (result.se != null) {
369
        throw result.se;
370
      }
3430 rajveer 371
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 372
    }
373
 
6643 rajveer 374
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 375
    {
6643 rajveer 376
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 377
      return recv_getShipmentInfo();
378
    }
379
 
6643 rajveer 380
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 381
    {
382
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 383
      args.setAwbNumber(awbNumber);
3430 rajveer 384
      args.setProviderId(providerId);
385
      sendBase("getShipmentInfo", args);
412 ashish 386
    }
387
 
3430 rajveer 388
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 389
    {
390
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 391
      receiveBase(result, "getShipmentInfo");
412 ashish 392
      if (result.isSetSuccess()) {
393
        return result.success;
394
      }
648 chandransh 395
      if (result.se != null) {
396
        throw result.se;
397
      }
3430 rajveer 398
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 399
    }
400
 
6643 rajveer 401
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
402
    {
403
      send_storeShipmentInfo(update);
404
      recv_storeShipmentInfo();
405
    }
406
 
407
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
408
    {
409
      storeShipmentInfo_args args = new storeShipmentInfo_args();
410
      args.setUpdate(update);
411
      sendBase("storeShipmentInfo", args);
412
    }
413
 
414
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
415
    {
416
      storeShipmentInfo_result result = new storeShipmentInfo_result();
417
      receiveBase(result, "storeShipmentInfo");
418
      if (result.se != null) {
419
        throw result.se;
420
      }
421
      return;
422
    }
423
 
3430 rajveer 424
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 425
    {
426
      send_getDestinationCode(providerId, pinCode);
427
      return recv_getDestinationCode();
428
    }
429
 
3430 rajveer 430
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 431
    {
432
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 433
      args.setProviderId(providerId);
434
      args.setPinCode(pinCode);
435
      sendBase("getDestinationCode", args);
730 chandransh 436
    }
437
 
3430 rajveer 438
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 439
    {
440
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 441
      receiveBase(result, "getDestinationCode");
730 chandransh 442
      if (result.isSetSuccess()) {
443
        return result.success;
444
      }
445
      if (result.se != null) {
446
        throw result.se;
447
      }
3430 rajveer 448
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 449
    }
450
 
3430 rajveer 451
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 452
    {
3103 chandransh 453
      send_getFreeAwbCount(providerId, type);
1139 chandransh 454
      return recv_getFreeAwbCount();
455
    }
456
 
3430 rajveer 457
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 458
    {
459
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 460
      args.setProviderId(providerId);
461
      args.setType(type);
462
      sendBase("getFreeAwbCount", args);
1139 chandransh 463
    }
464
 
3430 rajveer 465
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 466
    {
467
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 468
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 469
      if (result.isSetSuccess()) {
470
        return result.success;
471
      }
3430 rajveer 472
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 473
    }
474
 
3430 rajveer 475
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 476
    {
477
      send_getHolidays(fromDate, toDate);
478
      return recv_getHolidays();
479
    }
480
 
3430 rajveer 481
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 482
    {
483
      getHolidays_args args = new getHolidays_args();
3430 rajveer 484
      args.setFromDate(fromDate);
485
      args.setToDate(toDate);
486
      sendBase("getHolidays", args);
1730 ankur.sing 487
    }
488
 
3430 rajveer 489
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 490
    {
491
      getHolidays_result result = new getHolidays_result();
3430 rajveer 492
      receiveBase(result, "getHolidays");
1730 ankur.sing 493
      if (result.isSetSuccess()) {
494
        return result.success;
495
      }
3430 rajveer 496
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 497
    }
498
 
4934 amit.gupta 499
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
500
    {
501
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
502
      return recv_getEntityLogisticsEstimation();
503
    }
504
 
505
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
506
    {
507
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
508
      args.setCatalogItemId(catalogItemId);
509
      args.setDestination_pin(destination_pin);
510
      args.setType(type);
511
      sendBase("getEntityLogisticsEstimation", args);
512
    }
513
 
514
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
515
    {
516
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
517
      receiveBase(result, "getEntityLogisticsEstimation");
518
      if (result.isSetSuccess()) {
519
        return result.success;
520
      }
521
      if (result.se != null) {
522
        throw result.se;
523
      }
524
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
525
    }
526
 
5527 anupam.sin 527
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
528
    {
529
      send_getProviderForPickupType(pickUp);
530
      return recv_getProviderForPickupType();
531
    }
532
 
533
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
534
    {
535
      getProviderForPickupType_args args = new getProviderForPickupType_args();
536
      args.setPickUp(pickUp);
537
      sendBase("getProviderForPickupType", args);
538
    }
539
 
540
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
541
    {
542
      getProviderForPickupType_result result = new getProviderForPickupType_result();
543
      receiveBase(result, "getProviderForPickupType");
544
      if (result.isSetSuccess()) {
545
        return result.success;
546
      }
547
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
548
    }
549
 
5553 rajveer 550
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
551
    {
552
      send_getAllPickupStores();
553
      return recv_getAllPickupStores();
554
    }
555
 
556
    public void send_getAllPickupStores() throws org.apache.thrift.TException
557
    {
558
      getAllPickupStores_args args = new getAllPickupStores_args();
559
      sendBase("getAllPickupStores", args);
560
    }
561
 
562
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
563
    {
564
      getAllPickupStores_result result = new getAllPickupStores_result();
565
      receiveBase(result, "getAllPickupStores");
566
      if (result.isSetSuccess()) {
567
        return result.success;
568
      }
569
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
570
    }
571
 
572
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
573
    {
574
      send_getPickupStore(storeId);
575
      return recv_getPickupStore();
576
    }
577
 
578
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
579
    {
580
      getPickupStore_args args = new getPickupStore_args();
581
      args.setStoreId(storeId);
582
      sendBase("getPickupStore", args);
583
    }
584
 
585
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
586
    {
587
      getPickupStore_result result = new getPickupStore_result();
588
      receiveBase(result, "getPickupStore");
589
      if (result.isSetSuccess()) {
590
        return result.success;
591
      }
592
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
593
    }
594
 
5719 rajveer 595
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
596
    {
597
      send_getPickupStoreByHotspotId(hotspotId);
598
      return recv_getPickupStoreByHotspotId();
599
    }
600
 
601
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
602
    {
603
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
604
      args.setHotspotId(hotspotId);
605
      sendBase("getPickupStoreByHotspotId", args);
606
    }
607
 
608
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
609
    {
610
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
611
      receiveBase(result, "getPickupStoreByHotspotId");
612
      if (result.isSetSuccess()) {
613
        return result.success;
614
      }
615
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
616
    }
617
 
6524 rajveer 618
    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 619
    {
6524 rajveer 620
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 621
      recv_addPincode();
622
    }
623
 
6524 rajveer 624
    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 625
    {
626
      addPincode_args args = new addPincode_args();
627
      args.setProviderId(providerId);
628
      args.setPincode(pincode);
629
      args.setDestCode(destCode);
630
      args.setExp(exp);
631
      args.setCod(cod);
632
      args.setStationType(stationType);
6524 rajveer 633
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 634
      sendBase("addPincode", args);
635
    }
636
 
637
    public void recv_addPincode() throws org.apache.thrift.TException
638
    {
639
      addPincode_result result = new addPincode_result();
640
      receiveBase(result, "addPincode");
641
      return;
642
    }
643
 
6524 rajveer 644
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 645
    {
6524 rajveer 646
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 647
      recv_updatePincode();
648
    }
649
 
6524 rajveer 650
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 651
    {
652
      updatePincode_args args = new updatePincode_args();
653
      args.setProviderId(providerId);
654
      args.setPincode(pincode);
655
      args.setExp(exp);
656
      args.setCod(cod);
6524 rajveer 657
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 658
      sendBase("updatePincode", args);
659
    }
660
 
661
    public void recv_updatePincode() throws org.apache.thrift.TException
662
    {
663
      updatePincode_result result = new updatePincode_result();
664
      receiveBase(result, "updatePincode");
665
      return;
666
    }
667
 
7567 rajveer 668
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
669
    {
670
      send_addNewAwbs(providerId, cod, awbs);
671
      return recv_addNewAwbs();
672
    }
673
 
674
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
675
    {
676
      addNewAwbs_args args = new addNewAwbs_args();
677
      args.setProviderId(providerId);
678
      args.setCod(cod);
679
      args.setAwbs(awbs);
680
      sendBase("addNewAwbs", args);
681
    }
682
 
683
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
684
    {
685
      addNewAwbs_result result = new addNewAwbs_result();
686
      receiveBase(result, "addNewAwbs");
687
      if (result.isSetSuccess()) {
688
        return result.success;
689
      }
690
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
691
    }
692
 
7788 manish.sha 693
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 694
    {
7788 manish.sha 695
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
696
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 697
    }
698
 
7788 manish.sha 699
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 700
    {
7788 manish.sha 701
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
702
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
703
      args.setRunCompleteUpdate(runCompleteUpdate);
704
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 705
    }
706
 
7788 manish.sha 707
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 708
    {
7788 manish.sha 709
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
710
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 711
      return;
712
    }
713
 
412 ashish 714
  }
3430 rajveer 715
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
716
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
717
      private org.apache.thrift.async.TAsyncClientManager clientManager;
718
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
719
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
720
        this.clientManager = clientManager;
721
        this.protocolFactory = protocolFactory;
722
      }
723
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
724
        return new AsyncClient(protocolFactory, clientManager, transport);
725
      }
412 ashish 726
    }
727
 
3430 rajveer 728
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
729
      super(protocolFactory, clientManager, transport);
730
    }
412 ashish 731
 
3430 rajveer 732
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
733
      checkReady();
734
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
735
      this.___currentMethod = method_call;
736
      ___manager.call(method_call);
737
    }
738
 
739
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
740
      private long providerId;
741
      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 {
742
        super(client, protocolFactory, transport, resultHandler, false);
743
        this.providerId = providerId;
412 ashish 744
      }
3430 rajveer 745
 
746
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
747
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
748
        getProvider_args args = new getProvider_args();
749
        args.setProviderId(providerId);
750
        args.write(prot);
751
        prot.writeMessageEnd();
752
      }
753
 
754
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
755
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
756
          throw new IllegalStateException("Method call not finished!");
757
        }
758
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
759
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
760
        return (new Client(prot)).recv_getProvider();
761
      }
412 ashish 762
    }
763
 
3430 rajveer 764
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
765
      checkReady();
766
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
767
      this.___currentMethod = method_call;
768
      ___manager.call(method_call);
769
    }
770
 
771
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
772
      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 {
773
        super(client, protocolFactory, transport, resultHandler, false);
774
      }
775
 
776
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
777
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
778
        getAllProviders_args args = new getAllProviders_args();
779
        args.write(prot);
780
        prot.writeMessageEnd();
781
      }
782
 
783
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
784
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
785
          throw new IllegalStateException("Method call not finished!");
786
        }
787
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
788
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
789
        return (new Client(prot)).recv_getAllProviders();
790
      }
791
    }
792
 
4630 mandeep.dh 793
    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 794
      checkReady();
4630 mandeep.dh 795
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 796
      this.___currentMethod = method_call;
797
      ___manager.call(method_call);
798
    }
799
 
800
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
801
      private long itemId;
802
      private String destination_pin;
4630 mandeep.dh 803
      private DeliveryType type;
804
      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 805
        super(client, protocolFactory, transport, resultHandler, false);
806
        this.itemId = itemId;
807
        this.destination_pin = destination_pin;
4630 mandeep.dh 808
        this.type = type;
3430 rajveer 809
      }
810
 
811
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
812
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
813
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
814
        args.setItemId(itemId);
815
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 816
        args.setType(type);
3430 rajveer 817
        args.write(prot);
818
        prot.writeMessageEnd();
819
      }
820
 
821
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
822
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
823
          throw new IllegalStateException("Method call not finished!");
824
        }
825
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
826
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
827
        return (new Client(prot)).recv_getLogisticsEstimation();
828
      }
829
    }
830
 
7256 rajveer 831
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
832
      checkReady();
833
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
834
      this.___currentMethod = method_call;
835
      ___manager.call(method_call);
836
    }
837
 
838
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
839
      private long itemId;
840
      private String destination_pin;
841
      private DeliveryType type;
842
      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 {
843
        super(client, protocolFactory, transport, resultHandler, false);
844
        this.itemId = itemId;
845
        this.destination_pin = destination_pin;
846
        this.type = type;
847
      }
848
 
849
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
850
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
851
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
852
        args.setItemId(itemId);
853
        args.setDestination_pin(destination_pin);
854
        args.setType(type);
855
        args.write(prot);
856
        prot.writeMessageEnd();
857
      }
858
 
859
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
860
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
861
          throw new IllegalStateException("Method call not finished!");
862
        }
863
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
864
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
865
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
866
      }
867
    }
868
 
5766 rajveer 869
    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 870
      checkReady();
5766 rajveer 871
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 872
      this.___currentMethod = method_call;
873
      ___manager.call(method_call);
874
    }
875
 
876
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
877
      private String destination_pincode;
878
      private long item_id;
879
      private DeliveryType type;
5766 rajveer 880
      private PickUpType pickUp;
881
      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 882
        super(client, protocolFactory, transport, resultHandler, false);
883
        this.destination_pincode = destination_pincode;
884
        this.item_id = item_id;
885
        this.type = type;
5766 rajveer 886
        this.pickUp = pickUp;
3430 rajveer 887
      }
888
 
889
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
890
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
891
        getLogisticsInfo_args args = new getLogisticsInfo_args();
892
        args.setDestination_pincode(destination_pincode);
893
        args.setItem_id(item_id);
894
        args.setType(type);
5766 rajveer 895
        args.setPickUp(pickUp);
3430 rajveer 896
        args.write(prot);
897
        prot.writeMessageEnd();
898
      }
899
 
900
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
901
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
902
          throw new IllegalStateException("Method call not finished!");
903
        }
904
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
905
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
906
        return (new Client(prot)).recv_getLogisticsInfo();
907
      }
908
    }
909
 
5247 rajveer 910
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 911
      checkReady();
5247 rajveer 912
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 913
      this.___currentMethod = method_call;
914
      ___manager.call(method_call);
915
    }
916
 
917
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
918
      private long providerId;
5247 rajveer 919
      private DeliveryType type;
920
      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 921
        super(client, protocolFactory, transport, resultHandler, false);
922
        this.providerId = providerId;
5247 rajveer 923
        this.type = type;
3430 rajveer 924
      }
925
 
926
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
927
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
928
        getEmptyAWB_args args = new getEmptyAWB_args();
929
        args.setProviderId(providerId);
5247 rajveer 930
        args.setType(type);
3430 rajveer 931
        args.write(prot);
932
        prot.writeMessageEnd();
933
      }
934
 
935
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
936
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
937
          throw new IllegalStateException("Method call not finished!");
938
        }
939
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
940
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
941
        return (new Client(prot)).recv_getEmptyAWB();
942
      }
943
    }
944
 
6643 rajveer 945
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 946
      checkReady();
6643 rajveer 947
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 948
      this.___currentMethod = method_call;
949
      ___manager.call(method_call);
950
    }
951
 
952
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 953
      private String awbNumber;
3430 rajveer 954
      private long providerId;
6643 rajveer 955
      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 956
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 957
        this.awbNumber = awbNumber;
3430 rajveer 958
        this.providerId = providerId;
959
      }
960
 
961
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
962
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
963
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 964
        args.setAwbNumber(awbNumber);
3430 rajveer 965
        args.setProviderId(providerId);
966
        args.write(prot);
967
        prot.writeMessageEnd();
968
      }
969
 
970
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
971
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
972
          throw new IllegalStateException("Method call not finished!");
973
        }
974
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
975
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
976
        return (new Client(prot)).recv_getShipmentInfo();
977
      }
978
    }
979
 
6643 rajveer 980
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
981
      checkReady();
982
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
983
      this.___currentMethod = method_call;
984
      ___manager.call(method_call);
985
    }
986
 
987
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
988
      private AwbUpdate update;
989
      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 {
990
        super(client, protocolFactory, transport, resultHandler, false);
991
        this.update = update;
992
      }
993
 
994
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
995
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
996
        storeShipmentInfo_args args = new storeShipmentInfo_args();
997
        args.setUpdate(update);
998
        args.write(prot);
999
        prot.writeMessageEnd();
1000
      }
1001
 
1002
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1004
          throw new IllegalStateException("Method call not finished!");
1005
        }
1006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1008
        (new Client(prot)).recv_storeShipmentInfo();
1009
      }
1010
    }
1011
 
3430 rajveer 1012
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1013
      checkReady();
1014
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1015
      this.___currentMethod = method_call;
1016
      ___manager.call(method_call);
1017
    }
1018
 
1019
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1020
      private long providerId;
1021
      private String pinCode;
1022
      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 {
1023
        super(client, protocolFactory, transport, resultHandler, false);
1024
        this.providerId = providerId;
1025
        this.pinCode = pinCode;
1026
      }
1027
 
1028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1030
        getDestinationCode_args args = new getDestinationCode_args();
1031
        args.setProviderId(providerId);
1032
        args.setPinCode(pinCode);
1033
        args.write(prot);
1034
        prot.writeMessageEnd();
1035
      }
1036
 
1037
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1038
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1039
          throw new IllegalStateException("Method call not finished!");
1040
        }
1041
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1043
        return (new Client(prot)).recv_getDestinationCode();
1044
      }
1045
    }
1046
 
1047
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1048
      checkReady();
1049
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1050
      this.___currentMethod = method_call;
1051
      ___manager.call(method_call);
1052
    }
1053
 
1054
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1055
      private long providerId;
1056
      private String type;
1057
      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 {
1058
        super(client, protocolFactory, transport, resultHandler, false);
1059
        this.providerId = providerId;
1060
        this.type = type;
1061
      }
1062
 
1063
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1064
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1065
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1066
        args.setProviderId(providerId);
1067
        args.setType(type);
1068
        args.write(prot);
1069
        prot.writeMessageEnd();
1070
      }
1071
 
1072
      public long getResult() throws org.apache.thrift.TException {
1073
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1074
          throw new IllegalStateException("Method call not finished!");
1075
        }
1076
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1077
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1078
        return (new Client(prot)).recv_getFreeAwbCount();
1079
      }
1080
    }
1081
 
1082
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1083
      checkReady();
1084
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1085
      this.___currentMethod = method_call;
1086
      ___manager.call(method_call);
1087
    }
1088
 
1089
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1090
      private long fromDate;
1091
      private long toDate;
1092
      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 {
1093
        super(client, protocolFactory, transport, resultHandler, false);
1094
        this.fromDate = fromDate;
1095
        this.toDate = toDate;
1096
      }
1097
 
1098
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1099
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1100
        getHolidays_args args = new getHolidays_args();
1101
        args.setFromDate(fromDate);
1102
        args.setToDate(toDate);
1103
        args.write(prot);
1104
        prot.writeMessageEnd();
1105
      }
1106
 
1107
      public List<Long> getResult() throws org.apache.thrift.TException {
1108
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1109
          throw new IllegalStateException("Method call not finished!");
1110
        }
1111
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1112
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1113
        return (new Client(prot)).recv_getHolidays();
1114
      }
1115
    }
1116
 
4934 amit.gupta 1117
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1118
      checkReady();
1119
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1120
      this.___currentMethod = method_call;
1121
      ___manager.call(method_call);
1122
    }
1123
 
1124
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1125
      private long catalogItemId;
1126
      private String destination_pin;
1127
      private DeliveryType type;
1128
      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 {
1129
        super(client, protocolFactory, transport, resultHandler, false);
1130
        this.catalogItemId = catalogItemId;
1131
        this.destination_pin = destination_pin;
1132
        this.type = type;
1133
      }
1134
 
1135
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1136
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1137
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1138
        args.setCatalogItemId(catalogItemId);
1139
        args.setDestination_pin(destination_pin);
1140
        args.setType(type);
1141
        args.write(prot);
1142
        prot.writeMessageEnd();
1143
      }
1144
 
1145
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1147
          throw new IllegalStateException("Method call not finished!");
1148
        }
1149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1151
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1152
      }
1153
    }
1154
 
5527 anupam.sin 1155
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1156
      checkReady();
1157
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1158
      this.___currentMethod = method_call;
1159
      ___manager.call(method_call);
1160
    }
1161
 
1162
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1163
      private long pickUp;
1164
      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 {
1165
        super(client, protocolFactory, transport, resultHandler, false);
1166
        this.pickUp = pickUp;
1167
      }
1168
 
1169
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1170
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1171
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1172
        args.setPickUp(pickUp);
1173
        args.write(prot);
1174
        prot.writeMessageEnd();
1175
      }
1176
 
1177
      public long getResult() throws org.apache.thrift.TException {
1178
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1179
          throw new IllegalStateException("Method call not finished!");
1180
        }
1181
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1182
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1183
        return (new Client(prot)).recv_getProviderForPickupType();
1184
      }
1185
    }
1186
 
5553 rajveer 1187
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1188
      checkReady();
1189
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1190
      this.___currentMethod = method_call;
1191
      ___manager.call(method_call);
1192
    }
1193
 
1194
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1195
      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 {
1196
        super(client, protocolFactory, transport, resultHandler, false);
1197
      }
1198
 
1199
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1200
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1201
        getAllPickupStores_args args = new getAllPickupStores_args();
1202
        args.write(prot);
1203
        prot.writeMessageEnd();
1204
      }
1205
 
1206
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1207
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1208
          throw new IllegalStateException("Method call not finished!");
1209
        }
1210
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1211
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1212
        return (new Client(prot)).recv_getAllPickupStores();
1213
      }
1214
    }
1215
 
1216
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1217
      checkReady();
1218
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1219
      this.___currentMethod = method_call;
1220
      ___manager.call(method_call);
1221
    }
1222
 
1223
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1224
      private long storeId;
1225
      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 {
1226
        super(client, protocolFactory, transport, resultHandler, false);
1227
        this.storeId = storeId;
1228
      }
1229
 
1230
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1231
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1232
        getPickupStore_args args = new getPickupStore_args();
1233
        args.setStoreId(storeId);
1234
        args.write(prot);
1235
        prot.writeMessageEnd();
1236
      }
1237
 
1238
      public PickupStore getResult() throws org.apache.thrift.TException {
1239
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1240
          throw new IllegalStateException("Method call not finished!");
1241
        }
1242
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1243
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1244
        return (new Client(prot)).recv_getPickupStore();
1245
      }
1246
    }
1247
 
5719 rajveer 1248
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1249
      checkReady();
1250
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1251
      this.___currentMethod = method_call;
1252
      ___manager.call(method_call);
1253
    }
1254
 
1255
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1256
      private String hotspotId;
1257
      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 {
1258
        super(client, protocolFactory, transport, resultHandler, false);
1259
        this.hotspotId = hotspotId;
1260
      }
1261
 
1262
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1263
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1264
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1265
        args.setHotspotId(hotspotId);
1266
        args.write(prot);
1267
        prot.writeMessageEnd();
1268
      }
1269
 
1270
      public PickupStore getResult() throws org.apache.thrift.TException {
1271
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1272
          throw new IllegalStateException("Method call not finished!");
1273
        }
1274
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1275
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1276
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1277
      }
1278
    }
1279
 
6524 rajveer 1280
    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 1281
      checkReady();
6524 rajveer 1282
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1283
      this.___currentMethod = method_call;
1284
      ___manager.call(method_call);
1285
    }
1286
 
1287
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1288
      private long providerId;
1289
      private String pincode;
1290
      private String destCode;
1291
      private boolean exp;
1292
      private boolean cod;
1293
      private int stationType;
6524 rajveer 1294
      private boolean otgAvailable;
1295
      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 1296
        super(client, protocolFactory, transport, resultHandler, false);
1297
        this.providerId = providerId;
1298
        this.pincode = pincode;
1299
        this.destCode = destCode;
1300
        this.exp = exp;
1301
        this.cod = cod;
1302
        this.stationType = stationType;
6524 rajveer 1303
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1304
      }
1305
 
1306
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1307
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1308
        addPincode_args args = new addPincode_args();
1309
        args.setProviderId(providerId);
1310
        args.setPincode(pincode);
1311
        args.setDestCode(destCode);
1312
        args.setExp(exp);
1313
        args.setCod(cod);
1314
        args.setStationType(stationType);
6524 rajveer 1315
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1316
        args.write(prot);
1317
        prot.writeMessageEnd();
1318
      }
1319
 
1320
      public void getResult() throws org.apache.thrift.TException {
1321
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1322
          throw new IllegalStateException("Method call not finished!");
1323
        }
1324
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1325
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1326
        (new Client(prot)).recv_addPincode();
1327
      }
1328
    }
1329
 
6524 rajveer 1330
    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 1331
      checkReady();
6524 rajveer 1332
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1333
      this.___currentMethod = method_call;
1334
      ___manager.call(method_call);
1335
    }
1336
 
1337
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1338
      private long providerId;
1339
      private String pincode;
1340
      private boolean exp;
1341
      private boolean cod;
6524 rajveer 1342
      private boolean otgAvailable;
1343
      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 1344
        super(client, protocolFactory, transport, resultHandler, false);
1345
        this.providerId = providerId;
1346
        this.pincode = pincode;
1347
        this.exp = exp;
1348
        this.cod = cod;
6524 rajveer 1349
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1350
      }
1351
 
1352
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1353
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1354
        updatePincode_args args = new updatePincode_args();
1355
        args.setProviderId(providerId);
1356
        args.setPincode(pincode);
1357
        args.setExp(exp);
1358
        args.setCod(cod);
6524 rajveer 1359
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1360
        args.write(prot);
1361
        prot.writeMessageEnd();
1362
      }
1363
 
1364
      public void getResult() throws org.apache.thrift.TException {
1365
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1366
          throw new IllegalStateException("Method call not finished!");
1367
        }
1368
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1369
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1370
        (new Client(prot)).recv_updatePincode();
1371
      }
1372
    }
1373
 
7567 rajveer 1374
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1375
      checkReady();
1376
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
1377
      this.___currentMethod = method_call;
1378
      ___manager.call(method_call);
1379
    }
1380
 
1381
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1382
      private long providerId;
1383
      private boolean cod;
1384
      private List<String> awbs;
1385
      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 {
1386
        super(client, protocolFactory, transport, resultHandler, false);
1387
        this.providerId = providerId;
1388
        this.cod = cod;
1389
        this.awbs = awbs;
1390
      }
1391
 
1392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1394
        addNewAwbs_args args = new addNewAwbs_args();
1395
        args.setProviderId(providerId);
1396
        args.setCod(cod);
1397
        args.setAwbs(awbs);
1398
        args.write(prot);
1399
        prot.writeMessageEnd();
1400
      }
1401
 
1402
      public boolean getResult() throws org.apache.thrift.TException {
1403
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1404
          throw new IllegalStateException("Method call not finished!");
1405
        }
1406
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1407
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1408
        return (new Client(prot)).recv_addNewAwbs();
1409
      }
1410
    }
1411
 
7788 manish.sha 1412
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1413
      checkReady();
7788 manish.sha 1414
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1415
      this.___currentMethod = method_call;
1416
      ___manager.call(method_call);
1417
    }
1418
 
7788 manish.sha 1419
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1420
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1421
      private boolean runCompleteUpdate;
1422
      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 1423
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1424
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1425
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1426
      }
1427
 
1428
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1429
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1430
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1431
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1432
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1433
        args.write(prot);
1434
        prot.writeMessageEnd();
1435
      }
1436
 
1437
      public void getResult() throws org.apache.thrift.TException {
1438
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1439
          throw new IllegalStateException("Method call not finished!");
1440
        }
1441
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1442
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1443
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1444
      }
1445
    }
1446
 
3430 rajveer 1447
  }
1448
 
1449
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1450
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1451
    public Processor(I iface) {
1452
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1453
    }
1454
 
1455
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1456
      super(iface, getProcessMap(processMap));
1457
    }
1458
 
1459
    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) {
1460
      processMap.put("getProvider", new getProvider());
1461
      processMap.put("getAllProviders", new getAllProviders());
1462
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1463
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1464
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1465
      processMap.put("getEmptyAWB", new getEmptyAWB());
1466
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1467
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1468
      processMap.put("getDestinationCode", new getDestinationCode());
1469
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1470
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1471
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1472
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1473
      processMap.put("getAllPickupStores", new getAllPickupStores());
1474
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1475
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1476
      processMap.put("addPincode", new addPincode());
1477
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1478
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1479
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
3430 rajveer 1480
      return processMap;
1481
    }
1482
 
1483
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1484
      public getProvider() {
1485
        super("getProvider");
1486
      }
1487
 
1488
      protected getProvider_args getEmptyArgsInstance() {
1489
        return new getProvider_args();
1490
      }
1491
 
1492
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1493
        getProvider_result result = new getProvider_result();
1494
        try {
3430 rajveer 1495
          result.success = iface.getProvider(args.providerId);
668 chandransh 1496
        } catch (LogisticsServiceException lse) {
1497
          result.lse = lse;
1498
        }
3430 rajveer 1499
        return result;
668 chandransh 1500
      }
1501
    }
1502
 
3430 rajveer 1503
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1504
      public getAllProviders() {
1505
        super("getAllProviders");
1506
      }
1507
 
1508
      protected getAllProviders_args getEmptyArgsInstance() {
1509
        return new getAllProviders_args();
1510
      }
1511
 
1512
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1513
        getAllProviders_result result = new getAllProviders_result();
1514
        try {
3430 rajveer 1515
          result.success = iface.getAllProviders();
674 chandransh 1516
        } catch (LogisticsServiceException lse) {
1517
          result.lse = lse;
1518
        }
3430 rajveer 1519
        return result;
674 chandransh 1520
      }
1521
    }
1522
 
3430 rajveer 1523
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1524
      public getLogisticsEstimation() {
1525
        super("getLogisticsEstimation");
1526
      }
1527
 
1528
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1529
        return new getLogisticsEstimation_args();
1530
      }
1531
 
1532
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1533
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1534
        try {
4630 mandeep.dh 1535
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1536
        } catch (LogisticsServiceException se) {
1537
          result.se = se;
1538
        }
3430 rajveer 1539
        return result;
483 rajveer 1540
      }
1541
    }
1542
 
7256 rajveer 1543
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1544
      public getLogisticsEstimationForStore() {
1545
        super("getLogisticsEstimationForStore");
1546
      }
1547
 
1548
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1549
        return new getLogisticsEstimationForStore_args();
1550
      }
1551
 
1552
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1553
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1554
        try {
1555
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1556
        } catch (LogisticsServiceException se) {
1557
          result.se = se;
1558
        }
1559
        return result;
1560
      }
1561
    }
1562
 
3430 rajveer 1563
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1564
      public getLogisticsInfo() {
1565
        super("getLogisticsInfo");
1566
      }
1567
 
1568
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1569
        return new getLogisticsInfo_args();
1570
      }
1571
 
1572
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1573
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1574
        try {
5766 rajveer 1575
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1576
        } catch (LogisticsServiceException se) {
1577
          result.se = se;
1578
        }
3430 rajveer 1579
        return result;
471 rajveer 1580
      }
1581
    }
1582
 
3430 rajveer 1583
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1584
      public getEmptyAWB() {
1585
        super("getEmptyAWB");
1586
      }
1587
 
1588
      protected getEmptyAWB_args getEmptyArgsInstance() {
1589
        return new getEmptyAWB_args();
1590
      }
1591
 
1592
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1593
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1594
        try {
5247 rajveer 1595
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1596
        } catch (LogisticsServiceException se) {
1597
          result.se = se;
1598
        }
3430 rajveer 1599
        return result;
412 ashish 1600
      }
1601
    }
1602
 
3430 rajveer 1603
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1604
      public getShipmentInfo() {
1605
        super("getShipmentInfo");
1606
      }
1607
 
1608
      protected getShipmentInfo_args getEmptyArgsInstance() {
1609
        return new getShipmentInfo_args();
1610
      }
1611
 
1612
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1613
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1614
        try {
6643 rajveer 1615
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1616
        } catch (LogisticsServiceException se) {
1617
          result.se = se;
1618
        }
3430 rajveer 1619
        return result;
412 ashish 1620
      }
1621
    }
1622
 
6643 rajveer 1623
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1624
      public storeShipmentInfo() {
1625
        super("storeShipmentInfo");
1626
      }
1627
 
1628
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1629
        return new storeShipmentInfo_args();
1630
      }
1631
 
1632
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1633
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1634
        try {
1635
          iface.storeShipmentInfo(args.update);
1636
        } catch (LogisticsServiceException se) {
1637
          result.se = se;
1638
        }
1639
        return result;
1640
      }
1641
    }
1642
 
3430 rajveer 1643
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1644
      public getDestinationCode() {
1645
        super("getDestinationCode");
1646
      }
1647
 
1648
      protected getDestinationCode_args getEmptyArgsInstance() {
1649
        return new getDestinationCode_args();
1650
      }
1651
 
1652
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1653
        getDestinationCode_result result = new getDestinationCode_result();
1654
        try {
3430 rajveer 1655
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1656
        } catch (LogisticsServiceException se) {
1657
          result.se = se;
1658
        }
3430 rajveer 1659
        return result;
730 chandransh 1660
      }
1661
    }
1662
 
3430 rajveer 1663
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1664
      public getFreeAwbCount() {
1665
        super("getFreeAwbCount");
1666
      }
1667
 
1668
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1669
        return new getFreeAwbCount_args();
1670
      }
1671
 
1672
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1673
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1674
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1675
        result.setSuccessIsSet(true);
3430 rajveer 1676
        return result;
1139 chandransh 1677
      }
1678
    }
1679
 
3430 rajveer 1680
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1681
      public getHolidays() {
1682
        super("getHolidays");
1683
      }
1684
 
1685
      protected getHolidays_args getEmptyArgsInstance() {
1686
        return new getHolidays_args();
1687
      }
1688
 
1689
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1690
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1691
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1692
        return result;
1730 ankur.sing 1693
      }
1694
    }
1695
 
4934 amit.gupta 1696
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1697
      public getEntityLogisticsEstimation() {
1698
        super("getEntityLogisticsEstimation");
1699
      }
1700
 
1701
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1702
        return new getEntityLogisticsEstimation_args();
1703
      }
1704
 
1705
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1706
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1707
        try {
1708
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1709
        } catch (LogisticsServiceException se) {
1710
          result.se = se;
1711
        }
1712
        return result;
1713
      }
1714
    }
1715
 
5527 anupam.sin 1716
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1717
      public getProviderForPickupType() {
1718
        super("getProviderForPickupType");
1719
      }
1720
 
1721
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1722
        return new getProviderForPickupType_args();
1723
      }
1724
 
1725
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1726
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1727
        result.success = iface.getProviderForPickupType(args.pickUp);
1728
        result.setSuccessIsSet(true);
1729
        return result;
1730
      }
1731
    }
1732
 
5553 rajveer 1733
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1734
      public getAllPickupStores() {
1735
        super("getAllPickupStores");
1736
      }
1737
 
1738
      protected getAllPickupStores_args getEmptyArgsInstance() {
1739
        return new getAllPickupStores_args();
1740
      }
1741
 
1742
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1743
        getAllPickupStores_result result = new getAllPickupStores_result();
1744
        result.success = iface.getAllPickupStores();
1745
        return result;
1746
      }
1747
    }
1748
 
1749
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1750
      public getPickupStore() {
1751
        super("getPickupStore");
1752
      }
1753
 
1754
      protected getPickupStore_args getEmptyArgsInstance() {
1755
        return new getPickupStore_args();
1756
      }
1757
 
1758
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1759
        getPickupStore_result result = new getPickupStore_result();
1760
        result.success = iface.getPickupStore(args.storeId);
1761
        return result;
1762
      }
1763
    }
1764
 
5719 rajveer 1765
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1766
      public getPickupStoreByHotspotId() {
1767
        super("getPickupStoreByHotspotId");
1768
      }
1769
 
1770
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1771
        return new getPickupStoreByHotspotId_args();
1772
      }
1773
 
1774
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1775
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1776
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1777
        return result;
1778
      }
1779
    }
1780
 
6322 amar.kumar 1781
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1782
      public addPincode() {
1783
        super("addPincode");
1784
      }
1785
 
1786
      protected addPincode_args getEmptyArgsInstance() {
1787
        return new addPincode_args();
1788
      }
1789
 
1790
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1791
        addPincode_result result = new addPincode_result();
6524 rajveer 1792
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1793
        return result;
1794
      }
1795
    }
1796
 
1797
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1798
      public updatePincode() {
1799
        super("updatePincode");
1800
      }
1801
 
1802
      protected updatePincode_args getEmptyArgsInstance() {
1803
        return new updatePincode_args();
1804
      }
1805
 
1806
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1807
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1808
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1809
        return result;
1810
      }
1811
    }
1812
 
7567 rajveer 1813
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
1814
      public addNewAwbs() {
1815
        super("addNewAwbs");
1816
      }
1817
 
1818
      protected addNewAwbs_args getEmptyArgsInstance() {
1819
        return new addNewAwbs_args();
1820
      }
1821
 
1822
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
1823
        addNewAwbs_result result = new addNewAwbs_result();
1824
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
1825
        result.setSuccessIsSet(true);
1826
        return result;
1827
      }
1828
    }
1829
 
7788 manish.sha 1830
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
1831
      public runLogisticsLocationInfoUpdate() {
1832
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 1833
      }
1834
 
7788 manish.sha 1835
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
1836
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 1837
      }
1838
 
7788 manish.sha 1839
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
1840
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
1841
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 1842
        return result;
1843
      }
1844
    }
1845
 
412 ashish 1846
  }
1847
 
3430 rajveer 1848
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1850
 
3430 rajveer 1851
    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 1852
 
3430 rajveer 1853
    private long providerId; // required
668 chandransh 1854
 
1855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1857
      PROVIDER_ID((short)1, "providerId");
1858
 
1859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1860
 
1861
      static {
1862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1863
          byName.put(field.getFieldName(), field);
1864
        }
1865
      }
1866
 
1867
      /**
1868
       * Find the _Fields constant that matches fieldId, or null if its not found.
1869
       */
1870
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1871
        switch(fieldId) {
1872
          case 1: // PROVIDER_ID
1873
            return PROVIDER_ID;
1874
          default:
1875
            return null;
1876
        }
668 chandransh 1877
      }
1878
 
1879
      /**
1880
       * Find the _Fields constant that matches fieldId, throwing an exception
1881
       * if it is not found.
1882
       */
1883
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1884
        _Fields fields = findByThriftId(fieldId);
1885
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1886
        return fields;
1887
      }
1888
 
1889
      /**
1890
       * Find the _Fields constant that matches name, or null if its not found.
1891
       */
1892
      public static _Fields findByName(String name) {
1893
        return byName.get(name);
1894
      }
1895
 
1896
      private final short _thriftId;
1897
      private final String _fieldName;
1898
 
1899
      _Fields(short thriftId, String fieldName) {
1900
        _thriftId = thriftId;
1901
        _fieldName = fieldName;
1902
      }
1903
 
1904
      public short getThriftFieldId() {
1905
        return _thriftId;
1906
      }
1907
 
1908
      public String getFieldName() {
1909
        return _fieldName;
1910
      }
1911
    }
1912
 
1913
    // isset id assignments
1914
    private static final int __PROVIDERID_ISSET_ID = 0;
1915
    private BitSet __isset_bit_vector = new BitSet(1);
1916
 
3430 rajveer 1917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1918
    static {
3430 rajveer 1919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1920
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1922
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1923
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1924
    }
1925
 
1926
    public getProvider_args() {
1927
    }
1928
 
1929
    public getProvider_args(
1930
      long providerId)
1931
    {
1932
      this();
1933
      this.providerId = providerId;
1934
      setProviderIdIsSet(true);
1935
    }
1936
 
1937
    /**
1938
     * Performs a deep copy on <i>other</i>.
1939
     */
1940
    public getProvider_args(getProvider_args other) {
1941
      __isset_bit_vector.clear();
1942
      __isset_bit_vector.or(other.__isset_bit_vector);
1943
      this.providerId = other.providerId;
1944
    }
1945
 
1946
    public getProvider_args deepCopy() {
1947
      return new getProvider_args(this);
1948
    }
1949
 
3430 rajveer 1950
    @Override
1951
    public void clear() {
1952
      setProviderIdIsSet(false);
1953
      this.providerId = 0;
668 chandransh 1954
    }
1955
 
1956
    public long getProviderId() {
1957
      return this.providerId;
1958
    }
1959
 
3430 rajveer 1960
    public void setProviderId(long providerId) {
668 chandransh 1961
      this.providerId = providerId;
1962
      setProviderIdIsSet(true);
1963
    }
1964
 
1965
    public void unsetProviderId() {
1966
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1967
    }
1968
 
3430 rajveer 1969
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1970
    public boolean isSetProviderId() {
1971
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1972
    }
1973
 
1974
    public void setProviderIdIsSet(boolean value) {
1975
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1976
    }
1977
 
1978
    public void setFieldValue(_Fields field, Object value) {
1979
      switch (field) {
1980
      case PROVIDER_ID:
1981
        if (value == null) {
1982
          unsetProviderId();
1983
        } else {
1984
          setProviderId((Long)value);
1985
        }
1986
        break;
1987
 
1988
      }
1989
    }
1990
 
1991
    public Object getFieldValue(_Fields field) {
1992
      switch (field) {
1993
      case PROVIDER_ID:
3430 rajveer 1994
        return Long.valueOf(getProviderId());
668 chandransh 1995
 
1996
      }
1997
      throw new IllegalStateException();
1998
    }
1999
 
3430 rajveer 2000
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2001
    public boolean isSet(_Fields field) {
2002
      if (field == null) {
2003
        throw new IllegalArgumentException();
2004
      }
668 chandransh 2005
 
2006
      switch (field) {
2007
      case PROVIDER_ID:
2008
        return isSetProviderId();
2009
      }
2010
      throw new IllegalStateException();
2011
    }
2012
 
2013
    @Override
2014
    public boolean equals(Object that) {
2015
      if (that == null)
2016
        return false;
2017
      if (that instanceof getProvider_args)
2018
        return this.equals((getProvider_args)that);
2019
      return false;
2020
    }
2021
 
2022
    public boolean equals(getProvider_args that) {
2023
      if (that == null)
2024
        return false;
2025
 
2026
      boolean this_present_providerId = true;
2027
      boolean that_present_providerId = true;
2028
      if (this_present_providerId || that_present_providerId) {
2029
        if (!(this_present_providerId && that_present_providerId))
2030
          return false;
2031
        if (this.providerId != that.providerId)
2032
          return false;
2033
      }
2034
 
2035
      return true;
2036
    }
2037
 
2038
    @Override
2039
    public int hashCode() {
2040
      return 0;
2041
    }
2042
 
2043
    public int compareTo(getProvider_args other) {
2044
      if (!getClass().equals(other.getClass())) {
2045
        return getClass().getName().compareTo(other.getClass().getName());
2046
      }
2047
 
2048
      int lastComparison = 0;
2049
      getProvider_args typedOther = (getProvider_args)other;
2050
 
3430 rajveer 2051
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2052
      if (lastComparison != 0) {
2053
        return lastComparison;
2054
      }
3430 rajveer 2055
      if (isSetProviderId()) {
2056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2057
        if (lastComparison != 0) {
2058
          return lastComparison;
2059
        }
668 chandransh 2060
      }
2061
      return 0;
2062
    }
2063
 
3430 rajveer 2064
    public _Fields fieldForId(int fieldId) {
2065
      return _Fields.findByThriftId(fieldId);
2066
    }
2067
 
2068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2069
      org.apache.thrift.protocol.TField field;
668 chandransh 2070
      iprot.readStructBegin();
2071
      while (true)
2072
      {
2073
        field = iprot.readFieldBegin();
3430 rajveer 2074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2075
          break;
2076
        }
3430 rajveer 2077
        switch (field.id) {
2078
          case 1: // PROVIDER_ID
2079
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2080
              this.providerId = iprot.readI64();
2081
              setProviderIdIsSet(true);
2082
            } else { 
2083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2084
            }
2085
            break;
2086
          default:
2087
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2088
        }
3430 rajveer 2089
        iprot.readFieldEnd();
668 chandransh 2090
      }
2091
      iprot.readStructEnd();
2092
      validate();
2093
    }
2094
 
3430 rajveer 2095
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2096
      validate();
2097
 
2098
      oprot.writeStructBegin(STRUCT_DESC);
2099
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2100
      oprot.writeI64(this.providerId);
2101
      oprot.writeFieldEnd();
2102
      oprot.writeFieldStop();
2103
      oprot.writeStructEnd();
2104
    }
2105
 
2106
    @Override
2107
    public String toString() {
2108
      StringBuilder sb = new StringBuilder("getProvider_args(");
2109
      boolean first = true;
2110
 
2111
      sb.append("providerId:");
2112
      sb.append(this.providerId);
2113
      first = false;
2114
      sb.append(")");
2115
      return sb.toString();
2116
    }
2117
 
3430 rajveer 2118
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2119
      // check for required fields
2120
    }
2121
 
3430 rajveer 2122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2123
      try {
2124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2125
      } catch (org.apache.thrift.TException te) {
2126
        throw new java.io.IOException(te);
2127
      }
2128
    }
2129
 
2130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2131
      try {
2132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2133
      } catch (org.apache.thrift.TException te) {
2134
        throw new java.io.IOException(te);
2135
      }
2136
    }
2137
 
668 chandransh 2138
  }
2139
 
3430 rajveer 2140
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2142
 
3430 rajveer 2143
    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);
2144
    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 2145
 
3430 rajveer 2146
    private Provider success; // required
2147
    private LogisticsServiceException lse; // required
668 chandransh 2148
 
2149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2151
      SUCCESS((short)0, "success"),
2152
      LSE((short)1, "lse");
2153
 
2154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2155
 
2156
      static {
2157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2158
          byName.put(field.getFieldName(), field);
2159
        }
2160
      }
2161
 
2162
      /**
2163
       * Find the _Fields constant that matches fieldId, or null if its not found.
2164
       */
2165
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2166
        switch(fieldId) {
2167
          case 0: // SUCCESS
2168
            return SUCCESS;
2169
          case 1: // LSE
2170
            return LSE;
2171
          default:
2172
            return null;
2173
        }
668 chandransh 2174
      }
2175
 
2176
      /**
2177
       * Find the _Fields constant that matches fieldId, throwing an exception
2178
       * if it is not found.
2179
       */
2180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2181
        _Fields fields = findByThriftId(fieldId);
2182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2183
        return fields;
2184
      }
2185
 
2186
      /**
2187
       * Find the _Fields constant that matches name, or null if its not found.
2188
       */
2189
      public static _Fields findByName(String name) {
2190
        return byName.get(name);
2191
      }
2192
 
2193
      private final short _thriftId;
2194
      private final String _fieldName;
2195
 
2196
      _Fields(short thriftId, String fieldName) {
2197
        _thriftId = thriftId;
2198
        _fieldName = fieldName;
2199
      }
2200
 
2201
      public short getThriftFieldId() {
2202
        return _thriftId;
2203
      }
2204
 
2205
      public String getFieldName() {
2206
        return _fieldName;
2207
      }
2208
    }
2209
 
2210
    // isset id assignments
2211
 
3430 rajveer 2212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2213
    static {
3430 rajveer 2214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2216
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2217
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2221
    }
2222
 
2223
    public getProvider_result() {
2224
    }
2225
 
2226
    public getProvider_result(
2227
      Provider success,
2228
      LogisticsServiceException lse)
2229
    {
2230
      this();
2231
      this.success = success;
2232
      this.lse = lse;
2233
    }
2234
 
2235
    /**
2236
     * Performs a deep copy on <i>other</i>.
2237
     */
2238
    public getProvider_result(getProvider_result other) {
2239
      if (other.isSetSuccess()) {
2240
        this.success = new Provider(other.success);
2241
      }
2242
      if (other.isSetLse()) {
2243
        this.lse = new LogisticsServiceException(other.lse);
2244
      }
2245
    }
2246
 
2247
    public getProvider_result deepCopy() {
2248
      return new getProvider_result(this);
2249
    }
2250
 
3430 rajveer 2251
    @Override
2252
    public void clear() {
2253
      this.success = null;
2254
      this.lse = null;
668 chandransh 2255
    }
2256
 
2257
    public Provider getSuccess() {
2258
      return this.success;
2259
    }
2260
 
3430 rajveer 2261
    public void setSuccess(Provider success) {
668 chandransh 2262
      this.success = success;
2263
    }
2264
 
2265
    public void unsetSuccess() {
2266
      this.success = null;
2267
    }
2268
 
3430 rajveer 2269
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2270
    public boolean isSetSuccess() {
2271
      return this.success != null;
2272
    }
2273
 
2274
    public void setSuccessIsSet(boolean value) {
2275
      if (!value) {
2276
        this.success = null;
2277
      }
2278
    }
2279
 
2280
    public LogisticsServiceException getLse() {
2281
      return this.lse;
2282
    }
2283
 
3430 rajveer 2284
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2285
      this.lse = lse;
2286
    }
2287
 
2288
    public void unsetLse() {
2289
      this.lse = null;
2290
    }
2291
 
3430 rajveer 2292
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2293
    public boolean isSetLse() {
2294
      return this.lse != null;
2295
    }
2296
 
2297
    public void setLseIsSet(boolean value) {
2298
      if (!value) {
2299
        this.lse = null;
2300
      }
2301
    }
2302
 
2303
    public void setFieldValue(_Fields field, Object value) {
2304
      switch (field) {
2305
      case SUCCESS:
2306
        if (value == null) {
2307
          unsetSuccess();
2308
        } else {
2309
          setSuccess((Provider)value);
2310
        }
2311
        break;
2312
 
2313
      case LSE:
2314
        if (value == null) {
2315
          unsetLse();
2316
        } else {
2317
          setLse((LogisticsServiceException)value);
2318
        }
2319
        break;
2320
 
2321
      }
2322
    }
2323
 
2324
    public Object getFieldValue(_Fields field) {
2325
      switch (field) {
2326
      case SUCCESS:
2327
        return getSuccess();
2328
 
2329
      case LSE:
2330
        return getLse();
2331
 
2332
      }
2333
      throw new IllegalStateException();
2334
    }
2335
 
3430 rajveer 2336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2337
    public boolean isSet(_Fields field) {
2338
      if (field == null) {
2339
        throw new IllegalArgumentException();
2340
      }
668 chandransh 2341
 
2342
      switch (field) {
2343
      case SUCCESS:
2344
        return isSetSuccess();
2345
      case LSE:
2346
        return isSetLse();
2347
      }
2348
      throw new IllegalStateException();
2349
    }
2350
 
2351
    @Override
2352
    public boolean equals(Object that) {
2353
      if (that == null)
2354
        return false;
2355
      if (that instanceof getProvider_result)
2356
        return this.equals((getProvider_result)that);
2357
      return false;
2358
    }
2359
 
2360
    public boolean equals(getProvider_result that) {
2361
      if (that == null)
2362
        return false;
2363
 
2364
      boolean this_present_success = true && this.isSetSuccess();
2365
      boolean that_present_success = true && that.isSetSuccess();
2366
      if (this_present_success || that_present_success) {
2367
        if (!(this_present_success && that_present_success))
2368
          return false;
2369
        if (!this.success.equals(that.success))
2370
          return false;
2371
      }
2372
 
2373
      boolean this_present_lse = true && this.isSetLse();
2374
      boolean that_present_lse = true && that.isSetLse();
2375
      if (this_present_lse || that_present_lse) {
2376
        if (!(this_present_lse && that_present_lse))
2377
          return false;
2378
        if (!this.lse.equals(that.lse))
2379
          return false;
2380
      }
2381
 
2382
      return true;
2383
    }
2384
 
2385
    @Override
2386
    public int hashCode() {
2387
      return 0;
2388
    }
2389
 
3430 rajveer 2390
    public int compareTo(getProvider_result other) {
2391
      if (!getClass().equals(other.getClass())) {
2392
        return getClass().getName().compareTo(other.getClass().getName());
2393
      }
2394
 
2395
      int lastComparison = 0;
2396
      getProvider_result typedOther = (getProvider_result)other;
2397
 
2398
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2399
      if (lastComparison != 0) {
2400
        return lastComparison;
2401
      }
2402
      if (isSetSuccess()) {
2403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2404
        if (lastComparison != 0) {
2405
          return lastComparison;
2406
        }
2407
      }
2408
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2409
      if (lastComparison != 0) {
2410
        return lastComparison;
2411
      }
2412
      if (isSetLse()) {
2413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2414
        if (lastComparison != 0) {
2415
          return lastComparison;
2416
        }
2417
      }
2418
      return 0;
2419
    }
2420
 
2421
    public _Fields fieldForId(int fieldId) {
2422
      return _Fields.findByThriftId(fieldId);
2423
    }
2424
 
2425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2426
      org.apache.thrift.protocol.TField field;
668 chandransh 2427
      iprot.readStructBegin();
2428
      while (true)
2429
      {
2430
        field = iprot.readFieldBegin();
3430 rajveer 2431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2432
          break;
2433
        }
3430 rajveer 2434
        switch (field.id) {
2435
          case 0: // SUCCESS
2436
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2437
              this.success = new Provider();
2438
              this.success.read(iprot);
2439
            } else { 
2440
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2441
            }
2442
            break;
2443
          case 1: // LSE
2444
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2445
              this.lse = new LogisticsServiceException();
2446
              this.lse.read(iprot);
2447
            } else { 
2448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2449
            }
2450
            break;
2451
          default:
2452
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2453
        }
3430 rajveer 2454
        iprot.readFieldEnd();
668 chandransh 2455
      }
2456
      iprot.readStructEnd();
2457
      validate();
2458
    }
2459
 
3430 rajveer 2460
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2461
      oprot.writeStructBegin(STRUCT_DESC);
2462
 
2463
      if (this.isSetSuccess()) {
2464
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2465
        this.success.write(oprot);
2466
        oprot.writeFieldEnd();
2467
      } else if (this.isSetLse()) {
2468
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2469
        this.lse.write(oprot);
2470
        oprot.writeFieldEnd();
2471
      }
2472
      oprot.writeFieldStop();
2473
      oprot.writeStructEnd();
2474
    }
2475
 
2476
    @Override
2477
    public String toString() {
2478
      StringBuilder sb = new StringBuilder("getProvider_result(");
2479
      boolean first = true;
2480
 
2481
      sb.append("success:");
2482
      if (this.success == null) {
2483
        sb.append("null");
2484
      } else {
2485
        sb.append(this.success);
2486
      }
2487
      first = false;
2488
      if (!first) sb.append(", ");
2489
      sb.append("lse:");
2490
      if (this.lse == null) {
2491
        sb.append("null");
2492
      } else {
2493
        sb.append(this.lse);
2494
      }
2495
      first = false;
2496
      sb.append(")");
2497
      return sb.toString();
2498
    }
2499
 
3430 rajveer 2500
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2501
      // check for required fields
2502
    }
2503
 
3430 rajveer 2504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2505
      try {
2506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2507
      } catch (org.apache.thrift.TException te) {
2508
        throw new java.io.IOException(te);
2509
      }
2510
    }
2511
 
2512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2513
      try {
2514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2515
      } catch (org.apache.thrift.TException te) {
2516
        throw new java.io.IOException(te);
2517
      }
2518
    }
2519
 
668 chandransh 2520
  }
2521
 
3430 rajveer 2522
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2524
 
2525
 
2526
 
2527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2529
;
2530
 
2531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2532
 
2533
      static {
2534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2535
          byName.put(field.getFieldName(), field);
2536
        }
2537
      }
2538
 
2539
      /**
2540
       * Find the _Fields constant that matches fieldId, or null if its not found.
2541
       */
2542
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2543
        switch(fieldId) {
2544
          default:
2545
            return null;
2546
        }
674 chandransh 2547
      }
2548
 
2549
      /**
2550
       * Find the _Fields constant that matches fieldId, throwing an exception
2551
       * if it is not found.
2552
       */
2553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2554
        _Fields fields = findByThriftId(fieldId);
2555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2556
        return fields;
2557
      }
2558
 
2559
      /**
2560
       * Find the _Fields constant that matches name, or null if its not found.
2561
       */
2562
      public static _Fields findByName(String name) {
2563
        return byName.get(name);
2564
      }
2565
 
2566
      private final short _thriftId;
2567
      private final String _fieldName;
2568
 
2569
      _Fields(short thriftId, String fieldName) {
2570
        _thriftId = thriftId;
2571
        _fieldName = fieldName;
2572
      }
2573
 
2574
      public short getThriftFieldId() {
2575
        return _thriftId;
2576
      }
2577
 
2578
      public String getFieldName() {
2579
        return _fieldName;
2580
      }
2581
    }
3430 rajveer 2582
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2583
    static {
3430 rajveer 2584
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2587
    }
2588
 
2589
    public getAllProviders_args() {
2590
    }
2591
 
2592
    /**
2593
     * Performs a deep copy on <i>other</i>.
2594
     */
2595
    public getAllProviders_args(getAllProviders_args other) {
2596
    }
2597
 
2598
    public getAllProviders_args deepCopy() {
2599
      return new getAllProviders_args(this);
2600
    }
2601
 
3430 rajveer 2602
    @Override
2603
    public void clear() {
674 chandransh 2604
    }
2605
 
2606
    public void setFieldValue(_Fields field, Object value) {
2607
      switch (field) {
2608
      }
2609
    }
2610
 
2611
    public Object getFieldValue(_Fields field) {
2612
      switch (field) {
2613
      }
2614
      throw new IllegalStateException();
2615
    }
2616
 
3430 rajveer 2617
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2618
    public boolean isSet(_Fields field) {
2619
      if (field == null) {
2620
        throw new IllegalArgumentException();
2621
      }
674 chandransh 2622
 
2623
      switch (field) {
2624
      }
2625
      throw new IllegalStateException();
2626
    }
2627
 
2628
    @Override
2629
    public boolean equals(Object that) {
2630
      if (that == null)
2631
        return false;
2632
      if (that instanceof getAllProviders_args)
2633
        return this.equals((getAllProviders_args)that);
2634
      return false;
2635
    }
2636
 
2637
    public boolean equals(getAllProviders_args that) {
2638
      if (that == null)
2639
        return false;
2640
 
2641
      return true;
2642
    }
2643
 
2644
    @Override
2645
    public int hashCode() {
2646
      return 0;
2647
    }
2648
 
2649
    public int compareTo(getAllProviders_args other) {
2650
      if (!getClass().equals(other.getClass())) {
2651
        return getClass().getName().compareTo(other.getClass().getName());
2652
      }
2653
 
2654
      int lastComparison = 0;
2655
      getAllProviders_args typedOther = (getAllProviders_args)other;
2656
 
2657
      return 0;
2658
    }
2659
 
3430 rajveer 2660
    public _Fields fieldForId(int fieldId) {
2661
      return _Fields.findByThriftId(fieldId);
2662
    }
2663
 
2664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2665
      org.apache.thrift.protocol.TField field;
674 chandransh 2666
      iprot.readStructBegin();
2667
      while (true)
2668
      {
2669
        field = iprot.readFieldBegin();
3430 rajveer 2670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2671
          break;
2672
        }
3430 rajveer 2673
        switch (field.id) {
2674
          default:
2675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2676
        }
3430 rajveer 2677
        iprot.readFieldEnd();
674 chandransh 2678
      }
2679
      iprot.readStructEnd();
2680
      validate();
2681
    }
2682
 
3430 rajveer 2683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2684
      validate();
2685
 
2686
      oprot.writeStructBegin(STRUCT_DESC);
2687
      oprot.writeFieldStop();
2688
      oprot.writeStructEnd();
2689
    }
2690
 
2691
    @Override
2692
    public String toString() {
2693
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2694
      boolean first = true;
2695
 
2696
      sb.append(")");
2697
      return sb.toString();
2698
    }
2699
 
3430 rajveer 2700
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2701
      // check for required fields
2702
    }
2703
 
3430 rajveer 2704
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2705
      try {
2706
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2707
      } catch (org.apache.thrift.TException te) {
2708
        throw new java.io.IOException(te);
2709
      }
2710
    }
2711
 
2712
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2713
      try {
2714
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2715
      } catch (org.apache.thrift.TException te) {
2716
        throw new java.io.IOException(te);
2717
      }
2718
    }
2719
 
674 chandransh 2720
  }
2721
 
3430 rajveer 2722
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2724
 
3430 rajveer 2725
    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);
2726
    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 2727
 
3430 rajveer 2728
    private List<Provider> success; // required
2729
    private LogisticsServiceException lse; // required
674 chandransh 2730
 
2731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2733
      SUCCESS((short)0, "success"),
2734
      LSE((short)1, "lse");
2735
 
2736
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2737
 
2738
      static {
2739
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2740
          byName.put(field.getFieldName(), field);
2741
        }
2742
      }
2743
 
2744
      /**
2745
       * Find the _Fields constant that matches fieldId, or null if its not found.
2746
       */
2747
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2748
        switch(fieldId) {
2749
          case 0: // SUCCESS
2750
            return SUCCESS;
2751
          case 1: // LSE
2752
            return LSE;
2753
          default:
2754
            return null;
2755
        }
674 chandransh 2756
      }
2757
 
2758
      /**
2759
       * Find the _Fields constant that matches fieldId, throwing an exception
2760
       * if it is not found.
2761
       */
2762
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2763
        _Fields fields = findByThriftId(fieldId);
2764
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2765
        return fields;
2766
      }
2767
 
2768
      /**
2769
       * Find the _Fields constant that matches name, or null if its not found.
2770
       */
2771
      public static _Fields findByName(String name) {
2772
        return byName.get(name);
2773
      }
2774
 
2775
      private final short _thriftId;
2776
      private final String _fieldName;
2777
 
2778
      _Fields(short thriftId, String fieldName) {
2779
        _thriftId = thriftId;
2780
        _fieldName = fieldName;
2781
      }
2782
 
2783
      public short getThriftFieldId() {
2784
        return _thriftId;
2785
      }
2786
 
2787
      public String getFieldName() {
2788
        return _fieldName;
2789
      }
2790
    }
2791
 
2792
    // isset id assignments
2793
 
3430 rajveer 2794
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2795
    static {
3430 rajveer 2796
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2797
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2798
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2799
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2800
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2802
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2803
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2804
    }
2805
 
2806
    public getAllProviders_result() {
2807
    }
2808
 
2809
    public getAllProviders_result(
2810
      List<Provider> success,
2811
      LogisticsServiceException lse)
2812
    {
2813
      this();
2814
      this.success = success;
2815
      this.lse = lse;
2816
    }
2817
 
2818
    /**
2819
     * Performs a deep copy on <i>other</i>.
2820
     */
2821
    public getAllProviders_result(getAllProviders_result other) {
2822
      if (other.isSetSuccess()) {
2823
        List<Provider> __this__success = new ArrayList<Provider>();
2824
        for (Provider other_element : other.success) {
2825
          __this__success.add(new Provider(other_element));
2826
        }
2827
        this.success = __this__success;
2828
      }
2829
      if (other.isSetLse()) {
2830
        this.lse = new LogisticsServiceException(other.lse);
2831
      }
2832
    }
2833
 
2834
    public getAllProviders_result deepCopy() {
2835
      return new getAllProviders_result(this);
2836
    }
2837
 
3430 rajveer 2838
    @Override
2839
    public void clear() {
2840
      this.success = null;
2841
      this.lse = null;
674 chandransh 2842
    }
2843
 
2844
    public int getSuccessSize() {
2845
      return (this.success == null) ? 0 : this.success.size();
2846
    }
2847
 
2848
    public java.util.Iterator<Provider> getSuccessIterator() {
2849
      return (this.success == null) ? null : this.success.iterator();
2850
    }
2851
 
2852
    public void addToSuccess(Provider elem) {
2853
      if (this.success == null) {
2854
        this.success = new ArrayList<Provider>();
2855
      }
2856
      this.success.add(elem);
2857
    }
2858
 
2859
    public List<Provider> getSuccess() {
2860
      return this.success;
2861
    }
2862
 
3430 rajveer 2863
    public void setSuccess(List<Provider> success) {
674 chandransh 2864
      this.success = success;
2865
    }
2866
 
2867
    public void unsetSuccess() {
2868
      this.success = null;
2869
    }
2870
 
3430 rajveer 2871
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2872
    public boolean isSetSuccess() {
2873
      return this.success != null;
2874
    }
2875
 
2876
    public void setSuccessIsSet(boolean value) {
2877
      if (!value) {
2878
        this.success = null;
2879
      }
2880
    }
2881
 
2882
    public LogisticsServiceException getLse() {
2883
      return this.lse;
2884
    }
2885
 
3430 rajveer 2886
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2887
      this.lse = lse;
2888
    }
2889
 
2890
    public void unsetLse() {
2891
      this.lse = null;
2892
    }
2893
 
3430 rajveer 2894
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2895
    public boolean isSetLse() {
2896
      return this.lse != null;
2897
    }
2898
 
2899
    public void setLseIsSet(boolean value) {
2900
      if (!value) {
2901
        this.lse = null;
2902
      }
2903
    }
2904
 
2905
    public void setFieldValue(_Fields field, Object value) {
2906
      switch (field) {
2907
      case SUCCESS:
2908
        if (value == null) {
2909
          unsetSuccess();
2910
        } else {
2911
          setSuccess((List<Provider>)value);
2912
        }
2913
        break;
2914
 
2915
      case LSE:
2916
        if (value == null) {
2917
          unsetLse();
2918
        } else {
2919
          setLse((LogisticsServiceException)value);
2920
        }
2921
        break;
2922
 
2923
      }
2924
    }
2925
 
2926
    public Object getFieldValue(_Fields field) {
2927
      switch (field) {
2928
      case SUCCESS:
2929
        return getSuccess();
2930
 
2931
      case LSE:
2932
        return getLse();
2933
 
2934
      }
2935
      throw new IllegalStateException();
2936
    }
2937
 
3430 rajveer 2938
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2939
    public boolean isSet(_Fields field) {
2940
      if (field == null) {
2941
        throw new IllegalArgumentException();
2942
      }
674 chandransh 2943
 
2944
      switch (field) {
2945
      case SUCCESS:
2946
        return isSetSuccess();
2947
      case LSE:
2948
        return isSetLse();
2949
      }
2950
      throw new IllegalStateException();
2951
    }
2952
 
2953
    @Override
2954
    public boolean equals(Object that) {
2955
      if (that == null)
2956
        return false;
2957
      if (that instanceof getAllProviders_result)
2958
        return this.equals((getAllProviders_result)that);
2959
      return false;
2960
    }
2961
 
2962
    public boolean equals(getAllProviders_result that) {
2963
      if (that == null)
2964
        return false;
2965
 
2966
      boolean this_present_success = true && this.isSetSuccess();
2967
      boolean that_present_success = true && that.isSetSuccess();
2968
      if (this_present_success || that_present_success) {
2969
        if (!(this_present_success && that_present_success))
2970
          return false;
2971
        if (!this.success.equals(that.success))
2972
          return false;
2973
      }
2974
 
2975
      boolean this_present_lse = true && this.isSetLse();
2976
      boolean that_present_lse = true && that.isSetLse();
2977
      if (this_present_lse || that_present_lse) {
2978
        if (!(this_present_lse && that_present_lse))
2979
          return false;
2980
        if (!this.lse.equals(that.lse))
2981
          return false;
2982
      }
2983
 
2984
      return true;
2985
    }
2986
 
2987
    @Override
2988
    public int hashCode() {
2989
      return 0;
2990
    }
2991
 
3430 rajveer 2992
    public int compareTo(getAllProviders_result other) {
2993
      if (!getClass().equals(other.getClass())) {
2994
        return getClass().getName().compareTo(other.getClass().getName());
2995
      }
2996
 
2997
      int lastComparison = 0;
2998
      getAllProviders_result typedOther = (getAllProviders_result)other;
2999
 
3000
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3001
      if (lastComparison != 0) {
3002
        return lastComparison;
3003
      }
3004
      if (isSetSuccess()) {
3005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3006
        if (lastComparison != 0) {
3007
          return lastComparison;
3008
        }
3009
      }
3010
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3011
      if (lastComparison != 0) {
3012
        return lastComparison;
3013
      }
3014
      if (isSetLse()) {
3015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3016
        if (lastComparison != 0) {
3017
          return lastComparison;
3018
        }
3019
      }
3020
      return 0;
3021
    }
3022
 
3023
    public _Fields fieldForId(int fieldId) {
3024
      return _Fields.findByThriftId(fieldId);
3025
    }
3026
 
3027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3028
      org.apache.thrift.protocol.TField field;
674 chandransh 3029
      iprot.readStructBegin();
3030
      while (true)
3031
      {
3032
        field = iprot.readFieldBegin();
3430 rajveer 3033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3034
          break;
3035
        }
3430 rajveer 3036
        switch (field.id) {
3037
          case 0: // SUCCESS
3038
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3039
              {
7792 anupam.sin 3040
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3041
                this.success = new ArrayList<Provider>(_list4.size);
3042
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3043
                {
7792 anupam.sin 3044
                  Provider _elem6; // required
3045
                  _elem6 = new Provider();
3046
                  _elem6.read(iprot);
3047
                  this.success.add(_elem6);
674 chandransh 3048
                }
3430 rajveer 3049
                iprot.readListEnd();
674 chandransh 3050
              }
3430 rajveer 3051
            } else { 
3052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3053
            }
3054
            break;
3055
          case 1: // LSE
3056
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3057
              this.lse = new LogisticsServiceException();
3058
              this.lse.read(iprot);
3059
            } else { 
3060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061
            }
3062
            break;
3063
          default:
3064
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3065
        }
3430 rajveer 3066
        iprot.readFieldEnd();
674 chandransh 3067
      }
3068
      iprot.readStructEnd();
3069
      validate();
3070
    }
3071
 
3430 rajveer 3072
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3073
      oprot.writeStructBegin(STRUCT_DESC);
3074
 
3075
      if (this.isSetSuccess()) {
3076
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3077
        {
3430 rajveer 3078
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3079
          for (Provider _iter7 : this.success)
674 chandransh 3080
          {
7792 anupam.sin 3081
            _iter7.write(oprot);
674 chandransh 3082
          }
3083
          oprot.writeListEnd();
3084
        }
3085
        oprot.writeFieldEnd();
3086
      } else if (this.isSetLse()) {
3087
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3088
        this.lse.write(oprot);
3089
        oprot.writeFieldEnd();
3090
      }
3091
      oprot.writeFieldStop();
3092
      oprot.writeStructEnd();
3093
    }
3094
 
3095
    @Override
3096
    public String toString() {
3097
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3098
      boolean first = true;
3099
 
3100
      sb.append("success:");
3101
      if (this.success == null) {
3102
        sb.append("null");
3103
      } else {
3104
        sb.append(this.success);
3105
      }
3106
      first = false;
3107
      if (!first) sb.append(", ");
3108
      sb.append("lse:");
3109
      if (this.lse == null) {
3110
        sb.append("null");
3111
      } else {
3112
        sb.append(this.lse);
3113
      }
3114
      first = false;
3115
      sb.append(")");
3116
      return sb.toString();
3117
    }
3118
 
3430 rajveer 3119
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3120
      // check for required fields
3121
    }
3122
 
3430 rajveer 3123
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3124
      try {
3125
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3126
      } catch (org.apache.thrift.TException te) {
3127
        throw new java.io.IOException(te);
3128
      }
3129
    }
3130
 
3131
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3132
      try {
3133
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3134
      } catch (org.apache.thrift.TException te) {
3135
        throw new java.io.IOException(te);
3136
      }
3137
    }
3138
 
674 chandransh 3139
  }
3140
 
3430 rajveer 3141
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3142
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3143
 
3430 rajveer 3144
    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);
3145
    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 3146
    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 3147
 
3430 rajveer 3148
    private long itemId; // required
3149
    private String destination_pin; // required
4630 mandeep.dh 3150
    private DeliveryType type; // required
471 rajveer 3151
 
3152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3154
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3155
      DESTINATION_PIN((short)2, "destination_pin"),
3156
      /**
3157
       * 
3158
       * @see DeliveryType
3159
       */
3160
      TYPE((short)3, "type");
471 rajveer 3161
 
3162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3163
 
3164
      static {
3165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3166
          byName.put(field.getFieldName(), field);
3167
        }
3168
      }
3169
 
3170
      /**
3171
       * Find the _Fields constant that matches fieldId, or null if its not found.
3172
       */
3173
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3174
        switch(fieldId) {
3175
          case 1: // ITEM_ID
3176
            return ITEM_ID;
3177
          case 2: // DESTINATION_PIN
3178
            return DESTINATION_PIN;
4630 mandeep.dh 3179
          case 3: // TYPE
3180
            return TYPE;
3430 rajveer 3181
          default:
3182
            return null;
3183
        }
471 rajveer 3184
      }
3185
 
3186
      /**
3187
       * Find the _Fields constant that matches fieldId, throwing an exception
3188
       * if it is not found.
3189
       */
3190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3191
        _Fields fields = findByThriftId(fieldId);
3192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3193
        return fields;
3194
      }
3195
 
3196
      /**
3197
       * Find the _Fields constant that matches name, or null if its not found.
3198
       */
3199
      public static _Fields findByName(String name) {
3200
        return byName.get(name);
3201
      }
3202
 
3203
      private final short _thriftId;
3204
      private final String _fieldName;
3205
 
3206
      _Fields(short thriftId, String fieldName) {
3207
        _thriftId = thriftId;
3208
        _fieldName = fieldName;
3209
      }
3210
 
3211
      public short getThriftFieldId() {
3212
        return _thriftId;
3213
      }
3214
 
3215
      public String getFieldName() {
3216
        return _fieldName;
3217
      }
3218
    }
3219
 
3220
    // isset id assignments
3221
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3222
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3223
 
3430 rajveer 3224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3225
    static {
3430 rajveer 3226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3227
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3229
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3231
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3232
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3235
    }
3236
 
3237
    public getLogisticsEstimation_args() {
3238
    }
3239
 
3240
    public getLogisticsEstimation_args(
3241
      long itemId,
4630 mandeep.dh 3242
      String destination_pin,
3243
      DeliveryType type)
471 rajveer 3244
    {
3245
      this();
3246
      this.itemId = itemId;
3247
      setItemIdIsSet(true);
3248
      this.destination_pin = destination_pin;
4630 mandeep.dh 3249
      this.type = type;
471 rajveer 3250
    }
3251
 
3252
    /**
3253
     * Performs a deep copy on <i>other</i>.
3254
     */
3255
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3256
      __isset_bit_vector.clear();
3257
      __isset_bit_vector.or(other.__isset_bit_vector);
3258
      this.itemId = other.itemId;
3259
      if (other.isSetDestination_pin()) {
3260
        this.destination_pin = other.destination_pin;
3261
      }
4630 mandeep.dh 3262
      if (other.isSetType()) {
3263
        this.type = other.type;
3264
      }
471 rajveer 3265
    }
3266
 
3267
    public getLogisticsEstimation_args deepCopy() {
3268
      return new getLogisticsEstimation_args(this);
3269
    }
3270
 
3430 rajveer 3271
    @Override
3272
    public void clear() {
3273
      setItemIdIsSet(false);
3274
      this.itemId = 0;
3275
      this.destination_pin = null;
4630 mandeep.dh 3276
      this.type = null;
471 rajveer 3277
    }
3278
 
3279
    public long getItemId() {
3280
      return this.itemId;
3281
    }
3282
 
3430 rajveer 3283
    public void setItemId(long itemId) {
471 rajveer 3284
      this.itemId = itemId;
3285
      setItemIdIsSet(true);
3286
    }
3287
 
3288
    public void unsetItemId() {
3289
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3290
    }
3291
 
3430 rajveer 3292
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3293
    public boolean isSetItemId() {
3294
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3295
    }
3296
 
3297
    public void setItemIdIsSet(boolean value) {
3298
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3299
    }
3300
 
3301
    public String getDestination_pin() {
3302
      return this.destination_pin;
3303
    }
3304
 
3430 rajveer 3305
    public void setDestination_pin(String destination_pin) {
471 rajveer 3306
      this.destination_pin = destination_pin;
3307
    }
3308
 
3309
    public void unsetDestination_pin() {
3310
      this.destination_pin = null;
3311
    }
3312
 
3430 rajveer 3313
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3314
    public boolean isSetDestination_pin() {
3315
      return this.destination_pin != null;
3316
    }
3317
 
3318
    public void setDestination_pinIsSet(boolean value) {
3319
      if (!value) {
3320
        this.destination_pin = null;
3321
      }
3322
    }
3323
 
4630 mandeep.dh 3324
    /**
3325
     * 
3326
     * @see DeliveryType
3327
     */
3328
    public DeliveryType getType() {
3329
      return this.type;
3330
    }
3331
 
3332
    /**
3333
     * 
3334
     * @see DeliveryType
3335
     */
3336
    public void setType(DeliveryType type) {
3337
      this.type = type;
3338
    }
3339
 
3340
    public void unsetType() {
3341
      this.type = null;
3342
    }
3343
 
3344
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3345
    public boolean isSetType() {
3346
      return this.type != null;
3347
    }
3348
 
3349
    public void setTypeIsSet(boolean value) {
3350
      if (!value) {
3351
        this.type = null;
3352
      }
3353
    }
3354
 
471 rajveer 3355
    public void setFieldValue(_Fields field, Object value) {
3356
      switch (field) {
3357
      case ITEM_ID:
3358
        if (value == null) {
3359
          unsetItemId();
3360
        } else {
3361
          setItemId((Long)value);
3362
        }
3363
        break;
3364
 
3365
      case DESTINATION_PIN:
3366
        if (value == null) {
3367
          unsetDestination_pin();
3368
        } else {
3369
          setDestination_pin((String)value);
3370
        }
3371
        break;
3372
 
4630 mandeep.dh 3373
      case TYPE:
3374
        if (value == null) {
3375
          unsetType();
3376
        } else {
3377
          setType((DeliveryType)value);
3378
        }
3379
        break;
3380
 
471 rajveer 3381
      }
3382
    }
3383
 
3384
    public Object getFieldValue(_Fields field) {
3385
      switch (field) {
3386
      case ITEM_ID:
3430 rajveer 3387
        return Long.valueOf(getItemId());
471 rajveer 3388
 
3389
      case DESTINATION_PIN:
3390
        return getDestination_pin();
3391
 
4630 mandeep.dh 3392
      case TYPE:
3393
        return getType();
3394
 
471 rajveer 3395
      }
3396
      throw new IllegalStateException();
3397
    }
3398
 
3430 rajveer 3399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3400
    public boolean isSet(_Fields field) {
3401
      if (field == null) {
3402
        throw new IllegalArgumentException();
3403
      }
471 rajveer 3404
 
3405
      switch (field) {
3406
      case ITEM_ID:
3407
        return isSetItemId();
3408
      case DESTINATION_PIN:
3409
        return isSetDestination_pin();
4630 mandeep.dh 3410
      case TYPE:
3411
        return isSetType();
471 rajveer 3412
      }
3413
      throw new IllegalStateException();
3414
    }
3415
 
3416
    @Override
3417
    public boolean equals(Object that) {
3418
      if (that == null)
3419
        return false;
3420
      if (that instanceof getLogisticsEstimation_args)
3421
        return this.equals((getLogisticsEstimation_args)that);
3422
      return false;
3423
    }
3424
 
3425
    public boolean equals(getLogisticsEstimation_args that) {
3426
      if (that == null)
3427
        return false;
3428
 
3429
      boolean this_present_itemId = true;
3430
      boolean that_present_itemId = true;
3431
      if (this_present_itemId || that_present_itemId) {
3432
        if (!(this_present_itemId && that_present_itemId))
3433
          return false;
3434
        if (this.itemId != that.itemId)
3435
          return false;
3436
      }
3437
 
3438
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3439
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3440
      if (this_present_destination_pin || that_present_destination_pin) {
3441
        if (!(this_present_destination_pin && that_present_destination_pin))
3442
          return false;
3443
        if (!this.destination_pin.equals(that.destination_pin))
3444
          return false;
3445
      }
3446
 
4630 mandeep.dh 3447
      boolean this_present_type = true && this.isSetType();
3448
      boolean that_present_type = true && that.isSetType();
3449
      if (this_present_type || that_present_type) {
3450
        if (!(this_present_type && that_present_type))
3451
          return false;
3452
        if (!this.type.equals(that.type))
3453
          return false;
3454
      }
3455
 
471 rajveer 3456
      return true;
3457
    }
3458
 
3459
    @Override
3460
    public int hashCode() {
3461
      return 0;
3462
    }
3463
 
3464
    public int compareTo(getLogisticsEstimation_args other) {
3465
      if (!getClass().equals(other.getClass())) {
3466
        return getClass().getName().compareTo(other.getClass().getName());
3467
      }
3468
 
3469
      int lastComparison = 0;
3470
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3471
 
3430 rajveer 3472
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3473
      if (lastComparison != 0) {
3474
        return lastComparison;
3475
      }
3430 rajveer 3476
      if (isSetItemId()) {
3477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3478
        if (lastComparison != 0) {
3479
          return lastComparison;
3480
        }
471 rajveer 3481
      }
3430 rajveer 3482
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3483
      if (lastComparison != 0) {
3484
        return lastComparison;
3485
      }
3430 rajveer 3486
      if (isSetDestination_pin()) {
3487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3488
        if (lastComparison != 0) {
3489
          return lastComparison;
3490
        }
471 rajveer 3491
      }
4630 mandeep.dh 3492
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3493
      if (lastComparison != 0) {
3494
        return lastComparison;
3495
      }
3496
      if (isSetType()) {
3497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3498
        if (lastComparison != 0) {
3499
          return lastComparison;
3500
        }
3501
      }
471 rajveer 3502
      return 0;
3503
    }
3504
 
3430 rajveer 3505
    public _Fields fieldForId(int fieldId) {
3506
      return _Fields.findByThriftId(fieldId);
3507
    }
3508
 
3509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3510
      org.apache.thrift.protocol.TField field;
471 rajveer 3511
      iprot.readStructBegin();
3512
      while (true)
3513
      {
3514
        field = iprot.readFieldBegin();
3430 rajveer 3515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3516
          break;
3517
        }
3430 rajveer 3518
        switch (field.id) {
3519
          case 1: // ITEM_ID
3520
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3521
              this.itemId = iprot.readI64();
3522
              setItemIdIsSet(true);
3523
            } else { 
3524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3525
            }
3526
            break;
3527
          case 2: // DESTINATION_PIN
3528
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3529
              this.destination_pin = iprot.readString();
3530
            } else { 
3531
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3532
            }
3533
            break;
4630 mandeep.dh 3534
          case 3: // TYPE
3535
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3536
              this.type = DeliveryType.findByValue(iprot.readI32());
3537
            } else { 
3538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3539
            }
3540
            break;
3430 rajveer 3541
          default:
3542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3543
        }
3430 rajveer 3544
        iprot.readFieldEnd();
471 rajveer 3545
      }
3546
      iprot.readStructEnd();
3547
      validate();
3548
    }
3549
 
3430 rajveer 3550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3551
      validate();
3552
 
3553
      oprot.writeStructBegin(STRUCT_DESC);
3554
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3555
      oprot.writeI64(this.itemId);
3556
      oprot.writeFieldEnd();
3557
      if (this.destination_pin != null) {
3558
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3559
        oprot.writeString(this.destination_pin);
3560
        oprot.writeFieldEnd();
3561
      }
4630 mandeep.dh 3562
      if (this.type != null) {
3563
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3564
        oprot.writeI32(this.type.getValue());
3565
        oprot.writeFieldEnd();
3566
      }
471 rajveer 3567
      oprot.writeFieldStop();
3568
      oprot.writeStructEnd();
3569
    }
3570
 
3571
    @Override
3572
    public String toString() {
3573
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3574
      boolean first = true;
3575
 
3576
      sb.append("itemId:");
3577
      sb.append(this.itemId);
3578
      first = false;
3579
      if (!first) sb.append(", ");
3580
      sb.append("destination_pin:");
3581
      if (this.destination_pin == null) {
3582
        sb.append("null");
3583
      } else {
3584
        sb.append(this.destination_pin);
3585
      }
3586
      first = false;
4630 mandeep.dh 3587
      if (!first) sb.append(", ");
3588
      sb.append("type:");
3589
      if (this.type == null) {
3590
        sb.append("null");
3591
      } else {
3592
        sb.append(this.type);
3593
      }
3594
      first = false;
471 rajveer 3595
      sb.append(")");
3596
      return sb.toString();
3597
    }
3598
 
3430 rajveer 3599
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3600
      // check for required fields
3601
    }
3602
 
3430 rajveer 3603
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3604
      try {
3605
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3606
      } catch (org.apache.thrift.TException te) {
3607
        throw new java.io.IOException(te);
3608
      }
3609
    }
3610
 
3611
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3612
      try {
3613
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3614
      } catch (org.apache.thrift.TException te) {
3615
        throw new java.io.IOException(te);
3616
      }
3617
    }
3618
 
471 rajveer 3619
  }
3620
 
3430 rajveer 3621
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3622
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3623
 
3430 rajveer 3624
    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);
3625
    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 3626
 
3430 rajveer 3627
    private LogisticsInfo success; // required
3628
    private LogisticsServiceException se; // required
471 rajveer 3629
 
3630
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3631
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3632
      SUCCESS((short)0, "success"),
3633
      SE((short)1, "se");
3634
 
3635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3636
 
3637
      static {
3638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3639
          byName.put(field.getFieldName(), field);
3640
        }
3641
      }
3642
 
3643
      /**
3644
       * Find the _Fields constant that matches fieldId, or null if its not found.
3645
       */
3646
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3647
        switch(fieldId) {
3648
          case 0: // SUCCESS
3649
            return SUCCESS;
3650
          case 1: // SE
3651
            return SE;
3652
          default:
3653
            return null;
3654
        }
471 rajveer 3655
      }
3656
 
3657
      /**
3658
       * Find the _Fields constant that matches fieldId, throwing an exception
3659
       * if it is not found.
3660
       */
3661
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3662
        _Fields fields = findByThriftId(fieldId);
3663
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3664
        return fields;
3665
      }
3666
 
3667
      /**
3668
       * Find the _Fields constant that matches name, or null if its not found.
3669
       */
3670
      public static _Fields findByName(String name) {
3671
        return byName.get(name);
3672
      }
3673
 
3674
      private final short _thriftId;
3675
      private final String _fieldName;
3676
 
3677
      _Fields(short thriftId, String fieldName) {
3678
        _thriftId = thriftId;
3679
        _fieldName = fieldName;
3680
      }
3681
 
3682
      public short getThriftFieldId() {
3683
        return _thriftId;
3684
      }
3685
 
3686
      public String getFieldName() {
3687
        return _fieldName;
3688
      }
3689
    }
3690
 
3691
    // isset id assignments
3692
 
3430 rajveer 3693
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3694
    static {
3430 rajveer 3695
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3696
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3697
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3698
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3699
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3702
    }
3703
 
3704
    public getLogisticsEstimation_result() {
3705
    }
3706
 
3707
    public getLogisticsEstimation_result(
648 chandransh 3708
      LogisticsInfo success,
471 rajveer 3709
      LogisticsServiceException se)
3710
    {
3711
      this();
3712
      this.success = success;
3713
      this.se = se;
3714
    }
3715
 
3716
    /**
3717
     * Performs a deep copy on <i>other</i>.
3718
     */
3719
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3720
      if (other.isSetSuccess()) {
648 chandransh 3721
        this.success = new LogisticsInfo(other.success);
471 rajveer 3722
      }
3723
      if (other.isSetSe()) {
3724
        this.se = new LogisticsServiceException(other.se);
3725
      }
3726
    }
3727
 
3728
    public getLogisticsEstimation_result deepCopy() {
3729
      return new getLogisticsEstimation_result(this);
3730
    }
3731
 
3430 rajveer 3732
    @Override
3733
    public void clear() {
3734
      this.success = null;
3735
      this.se = null;
471 rajveer 3736
    }
3737
 
648 chandransh 3738
    public LogisticsInfo getSuccess() {
471 rajveer 3739
      return this.success;
3740
    }
3741
 
3430 rajveer 3742
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3743
      this.success = success;
3744
    }
3745
 
3746
    public void unsetSuccess() {
3747
      this.success = null;
3748
    }
3749
 
3430 rajveer 3750
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3751
    public boolean isSetSuccess() {
3752
      return this.success != null;
3753
    }
3754
 
3755
    public void setSuccessIsSet(boolean value) {
3756
      if (!value) {
3757
        this.success = null;
3758
      }
3759
    }
3760
 
3761
    public LogisticsServiceException getSe() {
3762
      return this.se;
3763
    }
3764
 
3430 rajveer 3765
    public void setSe(LogisticsServiceException se) {
471 rajveer 3766
      this.se = se;
3767
    }
3768
 
3769
    public void unsetSe() {
3770
      this.se = null;
3771
    }
3772
 
3430 rajveer 3773
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3774
    public boolean isSetSe() {
3775
      return this.se != null;
3776
    }
3777
 
3778
    public void setSeIsSet(boolean value) {
3779
      if (!value) {
3780
        this.se = null;
3781
      }
3782
    }
3783
 
3784
    public void setFieldValue(_Fields field, Object value) {
3785
      switch (field) {
3786
      case SUCCESS:
3787
        if (value == null) {
3788
          unsetSuccess();
3789
        } else {
648 chandransh 3790
          setSuccess((LogisticsInfo)value);
471 rajveer 3791
        }
3792
        break;
3793
 
3794
      case SE:
3795
        if (value == null) {
3796
          unsetSe();
3797
        } else {
3798
          setSe((LogisticsServiceException)value);
3799
        }
3800
        break;
3801
 
3802
      }
3803
    }
3804
 
3805
    public Object getFieldValue(_Fields field) {
3806
      switch (field) {
3807
      case SUCCESS:
3808
        return getSuccess();
3809
 
3810
      case SE:
3811
        return getSe();
3812
 
3813
      }
3814
      throw new IllegalStateException();
3815
    }
3816
 
3430 rajveer 3817
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3818
    public boolean isSet(_Fields field) {
3819
      if (field == null) {
3820
        throw new IllegalArgumentException();
3821
      }
471 rajveer 3822
 
3823
      switch (field) {
3824
      case SUCCESS:
3825
        return isSetSuccess();
3826
      case SE:
3827
        return isSetSe();
3828
      }
3829
      throw new IllegalStateException();
3830
    }
3831
 
3832
    @Override
3833
    public boolean equals(Object that) {
3834
      if (that == null)
3835
        return false;
3836
      if (that instanceof getLogisticsEstimation_result)
3837
        return this.equals((getLogisticsEstimation_result)that);
3838
      return false;
3839
    }
3840
 
3841
    public boolean equals(getLogisticsEstimation_result that) {
3842
      if (that == null)
3843
        return false;
3844
 
3845
      boolean this_present_success = true && this.isSetSuccess();
3846
      boolean that_present_success = true && that.isSetSuccess();
3847
      if (this_present_success || that_present_success) {
3848
        if (!(this_present_success && that_present_success))
3849
          return false;
3850
        if (!this.success.equals(that.success))
3851
          return false;
3852
      }
3853
 
3854
      boolean this_present_se = true && this.isSetSe();
3855
      boolean that_present_se = true && that.isSetSe();
3856
      if (this_present_se || that_present_se) {
3857
        if (!(this_present_se && that_present_se))
3858
          return false;
3859
        if (!this.se.equals(that.se))
3860
          return false;
3861
      }
3862
 
3863
      return true;
3864
    }
3865
 
3866
    @Override
3867
    public int hashCode() {
3868
      return 0;
3869
    }
3870
 
3871
    public int compareTo(getLogisticsEstimation_result other) {
3872
      if (!getClass().equals(other.getClass())) {
3873
        return getClass().getName().compareTo(other.getClass().getName());
3874
      }
3875
 
3876
      int lastComparison = 0;
3877
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3878
 
3430 rajveer 3879
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3880
      if (lastComparison != 0) {
3881
        return lastComparison;
3882
      }
3430 rajveer 3883
      if (isSetSuccess()) {
3884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3885
        if (lastComparison != 0) {
3886
          return lastComparison;
3887
        }
471 rajveer 3888
      }
3430 rajveer 3889
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3890
      if (lastComparison != 0) {
3891
        return lastComparison;
3892
      }
3430 rajveer 3893
      if (isSetSe()) {
3894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3895
        if (lastComparison != 0) {
3896
          return lastComparison;
3897
        }
471 rajveer 3898
      }
3899
      return 0;
3900
    }
3901
 
3430 rajveer 3902
    public _Fields fieldForId(int fieldId) {
3903
      return _Fields.findByThriftId(fieldId);
3904
    }
3905
 
3906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3907
      org.apache.thrift.protocol.TField field;
471 rajveer 3908
      iprot.readStructBegin();
3909
      while (true)
3910
      {
3911
        field = iprot.readFieldBegin();
3430 rajveer 3912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3913
          break;
3914
        }
3430 rajveer 3915
        switch (field.id) {
3916
          case 0: // SUCCESS
3917
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3918
              this.success = new LogisticsInfo();
3919
              this.success.read(iprot);
3920
            } else { 
3921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3922
            }
3923
            break;
3924
          case 1: // SE
3925
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3926
              this.se = new LogisticsServiceException();
3927
              this.se.read(iprot);
3928
            } else { 
3929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3930
            }
3931
            break;
3932
          default:
3933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3934
        }
3430 rajveer 3935
        iprot.readFieldEnd();
471 rajveer 3936
      }
3937
      iprot.readStructEnd();
3938
      validate();
3939
    }
3940
 
3430 rajveer 3941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3942
      oprot.writeStructBegin(STRUCT_DESC);
3943
 
3944
      if (this.isSetSuccess()) {
3945
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3946
        this.success.write(oprot);
3947
        oprot.writeFieldEnd();
3948
      } else if (this.isSetSe()) {
3949
        oprot.writeFieldBegin(SE_FIELD_DESC);
3950
        this.se.write(oprot);
3951
        oprot.writeFieldEnd();
3952
      }
3953
      oprot.writeFieldStop();
3954
      oprot.writeStructEnd();
3955
    }
3956
 
3957
    @Override
3958
    public String toString() {
3959
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3960
      boolean first = true;
3961
 
3962
      sb.append("success:");
3963
      if (this.success == null) {
3964
        sb.append("null");
3965
      } else {
3966
        sb.append(this.success);
3967
      }
3968
      first = false;
3969
      if (!first) sb.append(", ");
3970
      sb.append("se:");
3971
      if (this.se == null) {
3972
        sb.append("null");
3973
      } else {
3974
        sb.append(this.se);
3975
      }
3976
      first = false;
3977
      sb.append(")");
3978
      return sb.toString();
3979
    }
3980
 
3430 rajveer 3981
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3982
      // check for required fields
3983
    }
3984
 
3430 rajveer 3985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3986
      try {
3987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3988
      } catch (org.apache.thrift.TException te) {
3989
        throw new java.io.IOException(te);
3990
      }
3991
    }
3992
 
3993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3994
      try {
3995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3996
      } catch (org.apache.thrift.TException te) {
3997
        throw new java.io.IOException(te);
3998
      }
3999
    }
4000
 
471 rajveer 4001
  }
4002
 
7256 rajveer 4003
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4005
 
4006
    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);
4007
    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);
4008
    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);
4009
 
4010
    private long itemId; // required
4011
    private String destination_pin; // required
4012
    private DeliveryType type; // required
4013
 
4014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4016
      ITEM_ID((short)1, "itemId"),
4017
      DESTINATION_PIN((short)2, "destination_pin"),
4018
      /**
4019
       * 
4020
       * @see DeliveryType
4021
       */
4022
      TYPE((short)3, "type");
4023
 
4024
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4025
 
4026
      static {
4027
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4028
          byName.put(field.getFieldName(), field);
4029
        }
4030
      }
4031
 
4032
      /**
4033
       * Find the _Fields constant that matches fieldId, or null if its not found.
4034
       */
4035
      public static _Fields findByThriftId(int fieldId) {
4036
        switch(fieldId) {
4037
          case 1: // ITEM_ID
4038
            return ITEM_ID;
4039
          case 2: // DESTINATION_PIN
4040
            return DESTINATION_PIN;
4041
          case 3: // TYPE
4042
            return TYPE;
4043
          default:
4044
            return null;
4045
        }
4046
      }
4047
 
4048
      /**
4049
       * Find the _Fields constant that matches fieldId, throwing an exception
4050
       * if it is not found.
4051
       */
4052
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4053
        _Fields fields = findByThriftId(fieldId);
4054
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4055
        return fields;
4056
      }
4057
 
4058
      /**
4059
       * Find the _Fields constant that matches name, or null if its not found.
4060
       */
4061
      public static _Fields findByName(String name) {
4062
        return byName.get(name);
4063
      }
4064
 
4065
      private final short _thriftId;
4066
      private final String _fieldName;
4067
 
4068
      _Fields(short thriftId, String fieldName) {
4069
        _thriftId = thriftId;
4070
        _fieldName = fieldName;
4071
      }
4072
 
4073
      public short getThriftFieldId() {
4074
        return _thriftId;
4075
      }
4076
 
4077
      public String getFieldName() {
4078
        return _fieldName;
4079
      }
4080
    }
4081
 
4082
    // isset id assignments
4083
    private static final int __ITEMID_ISSET_ID = 0;
4084
    private BitSet __isset_bit_vector = new BitSet(1);
4085
 
4086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4087
    static {
4088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4089
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4091
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4093
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4094
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4097
    }
4098
 
4099
    public getLogisticsEstimationForStore_args() {
4100
    }
4101
 
4102
    public getLogisticsEstimationForStore_args(
4103
      long itemId,
4104
      String destination_pin,
4105
      DeliveryType type)
4106
    {
4107
      this();
4108
      this.itemId = itemId;
4109
      setItemIdIsSet(true);
4110
      this.destination_pin = destination_pin;
4111
      this.type = type;
4112
    }
4113
 
4114
    /**
4115
     * Performs a deep copy on <i>other</i>.
4116
     */
4117
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4118
      __isset_bit_vector.clear();
4119
      __isset_bit_vector.or(other.__isset_bit_vector);
4120
      this.itemId = other.itemId;
4121
      if (other.isSetDestination_pin()) {
4122
        this.destination_pin = other.destination_pin;
4123
      }
4124
      if (other.isSetType()) {
4125
        this.type = other.type;
4126
      }
4127
    }
4128
 
4129
    public getLogisticsEstimationForStore_args deepCopy() {
4130
      return new getLogisticsEstimationForStore_args(this);
4131
    }
4132
 
4133
    @Override
4134
    public void clear() {
4135
      setItemIdIsSet(false);
4136
      this.itemId = 0;
4137
      this.destination_pin = null;
4138
      this.type = null;
4139
    }
4140
 
4141
    public long getItemId() {
4142
      return this.itemId;
4143
    }
4144
 
4145
    public void setItemId(long itemId) {
4146
      this.itemId = itemId;
4147
      setItemIdIsSet(true);
4148
    }
4149
 
4150
    public void unsetItemId() {
4151
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4152
    }
4153
 
4154
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4155
    public boolean isSetItemId() {
4156
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4157
    }
4158
 
4159
    public void setItemIdIsSet(boolean value) {
4160
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4161
    }
4162
 
4163
    public String getDestination_pin() {
4164
      return this.destination_pin;
4165
    }
4166
 
4167
    public void setDestination_pin(String destination_pin) {
4168
      this.destination_pin = destination_pin;
4169
    }
4170
 
4171
    public void unsetDestination_pin() {
4172
      this.destination_pin = null;
4173
    }
4174
 
4175
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4176
    public boolean isSetDestination_pin() {
4177
      return this.destination_pin != null;
4178
    }
4179
 
4180
    public void setDestination_pinIsSet(boolean value) {
4181
      if (!value) {
4182
        this.destination_pin = null;
4183
      }
4184
    }
4185
 
4186
    /**
4187
     * 
4188
     * @see DeliveryType
4189
     */
4190
    public DeliveryType getType() {
4191
      return this.type;
4192
    }
4193
 
4194
    /**
4195
     * 
4196
     * @see DeliveryType
4197
     */
4198
    public void setType(DeliveryType type) {
4199
      this.type = type;
4200
    }
4201
 
4202
    public void unsetType() {
4203
      this.type = null;
4204
    }
4205
 
4206
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4207
    public boolean isSetType() {
4208
      return this.type != null;
4209
    }
4210
 
4211
    public void setTypeIsSet(boolean value) {
4212
      if (!value) {
4213
        this.type = null;
4214
      }
4215
    }
4216
 
4217
    public void setFieldValue(_Fields field, Object value) {
4218
      switch (field) {
4219
      case ITEM_ID:
4220
        if (value == null) {
4221
          unsetItemId();
4222
        } else {
4223
          setItemId((Long)value);
4224
        }
4225
        break;
4226
 
4227
      case DESTINATION_PIN:
4228
        if (value == null) {
4229
          unsetDestination_pin();
4230
        } else {
4231
          setDestination_pin((String)value);
4232
        }
4233
        break;
4234
 
4235
      case TYPE:
4236
        if (value == null) {
4237
          unsetType();
4238
        } else {
4239
          setType((DeliveryType)value);
4240
        }
4241
        break;
4242
 
4243
      }
4244
    }
4245
 
4246
    public Object getFieldValue(_Fields field) {
4247
      switch (field) {
4248
      case ITEM_ID:
4249
        return Long.valueOf(getItemId());
4250
 
4251
      case DESTINATION_PIN:
4252
        return getDestination_pin();
4253
 
4254
      case TYPE:
4255
        return getType();
4256
 
4257
      }
4258
      throw new IllegalStateException();
4259
    }
4260
 
4261
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4262
    public boolean isSet(_Fields field) {
4263
      if (field == null) {
4264
        throw new IllegalArgumentException();
4265
      }
4266
 
4267
      switch (field) {
4268
      case ITEM_ID:
4269
        return isSetItemId();
4270
      case DESTINATION_PIN:
4271
        return isSetDestination_pin();
4272
      case TYPE:
4273
        return isSetType();
4274
      }
4275
      throw new IllegalStateException();
4276
    }
4277
 
4278
    @Override
4279
    public boolean equals(Object that) {
4280
      if (that == null)
4281
        return false;
4282
      if (that instanceof getLogisticsEstimationForStore_args)
4283
        return this.equals((getLogisticsEstimationForStore_args)that);
4284
      return false;
4285
    }
4286
 
4287
    public boolean equals(getLogisticsEstimationForStore_args that) {
4288
      if (that == null)
4289
        return false;
4290
 
4291
      boolean this_present_itemId = true;
4292
      boolean that_present_itemId = true;
4293
      if (this_present_itemId || that_present_itemId) {
4294
        if (!(this_present_itemId && that_present_itemId))
4295
          return false;
4296
        if (this.itemId != that.itemId)
4297
          return false;
4298
      }
4299
 
4300
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4301
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4302
      if (this_present_destination_pin || that_present_destination_pin) {
4303
        if (!(this_present_destination_pin && that_present_destination_pin))
4304
          return false;
4305
        if (!this.destination_pin.equals(that.destination_pin))
4306
          return false;
4307
      }
4308
 
4309
      boolean this_present_type = true && this.isSetType();
4310
      boolean that_present_type = true && that.isSetType();
4311
      if (this_present_type || that_present_type) {
4312
        if (!(this_present_type && that_present_type))
4313
          return false;
4314
        if (!this.type.equals(that.type))
4315
          return false;
4316
      }
4317
 
4318
      return true;
4319
    }
4320
 
4321
    @Override
4322
    public int hashCode() {
4323
      return 0;
4324
    }
4325
 
4326
    public int compareTo(getLogisticsEstimationForStore_args other) {
4327
      if (!getClass().equals(other.getClass())) {
4328
        return getClass().getName().compareTo(other.getClass().getName());
4329
      }
4330
 
4331
      int lastComparison = 0;
4332
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4333
 
4334
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4335
      if (lastComparison != 0) {
4336
        return lastComparison;
4337
      }
4338
      if (isSetItemId()) {
4339
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4340
        if (lastComparison != 0) {
4341
          return lastComparison;
4342
        }
4343
      }
4344
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4345
      if (lastComparison != 0) {
4346
        return lastComparison;
4347
      }
4348
      if (isSetDestination_pin()) {
4349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4350
        if (lastComparison != 0) {
4351
          return lastComparison;
4352
        }
4353
      }
4354
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4355
      if (lastComparison != 0) {
4356
        return lastComparison;
4357
      }
4358
      if (isSetType()) {
4359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4360
        if (lastComparison != 0) {
4361
          return lastComparison;
4362
        }
4363
      }
4364
      return 0;
4365
    }
4366
 
4367
    public _Fields fieldForId(int fieldId) {
4368
      return _Fields.findByThriftId(fieldId);
4369
    }
4370
 
4371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4372
      org.apache.thrift.protocol.TField field;
4373
      iprot.readStructBegin();
4374
      while (true)
4375
      {
4376
        field = iprot.readFieldBegin();
4377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4378
          break;
4379
        }
4380
        switch (field.id) {
4381
          case 1: // ITEM_ID
4382
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4383
              this.itemId = iprot.readI64();
4384
              setItemIdIsSet(true);
4385
            } else { 
4386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4387
            }
4388
            break;
4389
          case 2: // DESTINATION_PIN
4390
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4391
              this.destination_pin = iprot.readString();
4392
            } else { 
4393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4394
            }
4395
            break;
4396
          case 3: // TYPE
4397
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4398
              this.type = DeliveryType.findByValue(iprot.readI32());
4399
            } else { 
4400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4401
            }
4402
            break;
4403
          default:
4404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4405
        }
4406
        iprot.readFieldEnd();
4407
      }
4408
      iprot.readStructEnd();
4409
      validate();
4410
    }
4411
 
4412
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4413
      validate();
4414
 
4415
      oprot.writeStructBegin(STRUCT_DESC);
4416
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4417
      oprot.writeI64(this.itemId);
4418
      oprot.writeFieldEnd();
4419
      if (this.destination_pin != null) {
4420
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4421
        oprot.writeString(this.destination_pin);
4422
        oprot.writeFieldEnd();
4423
      }
4424
      if (this.type != null) {
4425
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4426
        oprot.writeI32(this.type.getValue());
4427
        oprot.writeFieldEnd();
4428
      }
4429
      oprot.writeFieldStop();
4430
      oprot.writeStructEnd();
4431
    }
4432
 
4433
    @Override
4434
    public String toString() {
4435
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4436
      boolean first = true;
4437
 
4438
      sb.append("itemId:");
4439
      sb.append(this.itemId);
4440
      first = false;
4441
      if (!first) sb.append(", ");
4442
      sb.append("destination_pin:");
4443
      if (this.destination_pin == null) {
4444
        sb.append("null");
4445
      } else {
4446
        sb.append(this.destination_pin);
4447
      }
4448
      first = false;
4449
      if (!first) sb.append(", ");
4450
      sb.append("type:");
4451
      if (this.type == null) {
4452
        sb.append("null");
4453
      } else {
4454
        sb.append(this.type);
4455
      }
4456
      first = false;
4457
      sb.append(")");
4458
      return sb.toString();
4459
    }
4460
 
4461
    public void validate() throws org.apache.thrift.TException {
4462
      // check for required fields
4463
    }
4464
 
4465
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4466
      try {
4467
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4468
      } catch (org.apache.thrift.TException te) {
4469
        throw new java.io.IOException(te);
4470
      }
4471
    }
4472
 
4473
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4474
      try {
4475
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4476
        __isset_bit_vector = new BitSet(1);
4477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4478
      } catch (org.apache.thrift.TException te) {
4479
        throw new java.io.IOException(te);
4480
      }
4481
    }
4482
 
4483
  }
4484
 
4485
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4487
 
4488
    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);
4489
    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);
4490
 
4491
    private LogisticsInfo success; // required
4492
    private LogisticsServiceException se; // required
4493
 
4494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496
      SUCCESS((short)0, "success"),
4497
      SE((short)1, "se");
4498
 
4499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4500
 
4501
      static {
4502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4503
          byName.put(field.getFieldName(), field);
4504
        }
4505
      }
4506
 
4507
      /**
4508
       * Find the _Fields constant that matches fieldId, or null if its not found.
4509
       */
4510
      public static _Fields findByThriftId(int fieldId) {
4511
        switch(fieldId) {
4512
          case 0: // SUCCESS
4513
            return SUCCESS;
4514
          case 1: // SE
4515
            return SE;
4516
          default:
4517
            return null;
4518
        }
4519
      }
4520
 
4521
      /**
4522
       * Find the _Fields constant that matches fieldId, throwing an exception
4523
       * if it is not found.
4524
       */
4525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4526
        _Fields fields = findByThriftId(fieldId);
4527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4528
        return fields;
4529
      }
4530
 
4531
      /**
4532
       * Find the _Fields constant that matches name, or null if its not found.
4533
       */
4534
      public static _Fields findByName(String name) {
4535
        return byName.get(name);
4536
      }
4537
 
4538
      private final short _thriftId;
4539
      private final String _fieldName;
4540
 
4541
      _Fields(short thriftId, String fieldName) {
4542
        _thriftId = thriftId;
4543
        _fieldName = fieldName;
4544
      }
4545
 
4546
      public short getThriftFieldId() {
4547
        return _thriftId;
4548
      }
4549
 
4550
      public String getFieldName() {
4551
        return _fieldName;
4552
      }
4553
    }
4554
 
4555
    // isset id assignments
4556
 
4557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4558
    static {
4559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4560
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4561
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4562
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4566
    }
4567
 
4568
    public getLogisticsEstimationForStore_result() {
4569
    }
4570
 
4571
    public getLogisticsEstimationForStore_result(
4572
      LogisticsInfo success,
4573
      LogisticsServiceException se)
4574
    {
4575
      this();
4576
      this.success = success;
4577
      this.se = se;
4578
    }
4579
 
4580
    /**
4581
     * Performs a deep copy on <i>other</i>.
4582
     */
4583
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4584
      if (other.isSetSuccess()) {
4585
        this.success = new LogisticsInfo(other.success);
4586
      }
4587
      if (other.isSetSe()) {
4588
        this.se = new LogisticsServiceException(other.se);
4589
      }
4590
    }
4591
 
4592
    public getLogisticsEstimationForStore_result deepCopy() {
4593
      return new getLogisticsEstimationForStore_result(this);
4594
    }
4595
 
4596
    @Override
4597
    public void clear() {
4598
      this.success = null;
4599
      this.se = null;
4600
    }
4601
 
4602
    public LogisticsInfo getSuccess() {
4603
      return this.success;
4604
    }
4605
 
4606
    public void setSuccess(LogisticsInfo success) {
4607
      this.success = success;
4608
    }
4609
 
4610
    public void unsetSuccess() {
4611
      this.success = null;
4612
    }
4613
 
4614
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4615
    public boolean isSetSuccess() {
4616
      return this.success != null;
4617
    }
4618
 
4619
    public void setSuccessIsSet(boolean value) {
4620
      if (!value) {
4621
        this.success = null;
4622
      }
4623
    }
4624
 
4625
    public LogisticsServiceException getSe() {
4626
      return this.se;
4627
    }
4628
 
4629
    public void setSe(LogisticsServiceException se) {
4630
      this.se = se;
4631
    }
4632
 
4633
    public void unsetSe() {
4634
      this.se = null;
4635
    }
4636
 
4637
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4638
    public boolean isSetSe() {
4639
      return this.se != null;
4640
    }
4641
 
4642
    public void setSeIsSet(boolean value) {
4643
      if (!value) {
4644
        this.se = null;
4645
      }
4646
    }
4647
 
4648
    public void setFieldValue(_Fields field, Object value) {
4649
      switch (field) {
4650
      case SUCCESS:
4651
        if (value == null) {
4652
          unsetSuccess();
4653
        } else {
4654
          setSuccess((LogisticsInfo)value);
4655
        }
4656
        break;
4657
 
4658
      case SE:
4659
        if (value == null) {
4660
          unsetSe();
4661
        } else {
4662
          setSe((LogisticsServiceException)value);
4663
        }
4664
        break;
4665
 
4666
      }
4667
    }
4668
 
4669
    public Object getFieldValue(_Fields field) {
4670
      switch (field) {
4671
      case SUCCESS:
4672
        return getSuccess();
4673
 
4674
      case SE:
4675
        return getSe();
4676
 
4677
      }
4678
      throw new IllegalStateException();
4679
    }
4680
 
4681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4682
    public boolean isSet(_Fields field) {
4683
      if (field == null) {
4684
        throw new IllegalArgumentException();
4685
      }
4686
 
4687
      switch (field) {
4688
      case SUCCESS:
4689
        return isSetSuccess();
4690
      case SE:
4691
        return isSetSe();
4692
      }
4693
      throw new IllegalStateException();
4694
    }
4695
 
4696
    @Override
4697
    public boolean equals(Object that) {
4698
      if (that == null)
4699
        return false;
4700
      if (that instanceof getLogisticsEstimationForStore_result)
4701
        return this.equals((getLogisticsEstimationForStore_result)that);
4702
      return false;
4703
    }
4704
 
4705
    public boolean equals(getLogisticsEstimationForStore_result that) {
4706
      if (that == null)
4707
        return false;
4708
 
4709
      boolean this_present_success = true && this.isSetSuccess();
4710
      boolean that_present_success = true && that.isSetSuccess();
4711
      if (this_present_success || that_present_success) {
4712
        if (!(this_present_success && that_present_success))
4713
          return false;
4714
        if (!this.success.equals(that.success))
4715
          return false;
4716
      }
4717
 
4718
      boolean this_present_se = true && this.isSetSe();
4719
      boolean that_present_se = true && that.isSetSe();
4720
      if (this_present_se || that_present_se) {
4721
        if (!(this_present_se && that_present_se))
4722
          return false;
4723
        if (!this.se.equals(that.se))
4724
          return false;
4725
      }
4726
 
4727
      return true;
4728
    }
4729
 
4730
    @Override
4731
    public int hashCode() {
4732
      return 0;
4733
    }
4734
 
4735
    public int compareTo(getLogisticsEstimationForStore_result other) {
4736
      if (!getClass().equals(other.getClass())) {
4737
        return getClass().getName().compareTo(other.getClass().getName());
4738
      }
4739
 
4740
      int lastComparison = 0;
4741
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
4742
 
4743
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4744
      if (lastComparison != 0) {
4745
        return lastComparison;
4746
      }
4747
      if (isSetSuccess()) {
4748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4749
        if (lastComparison != 0) {
4750
          return lastComparison;
4751
        }
4752
      }
4753
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4754
      if (lastComparison != 0) {
4755
        return lastComparison;
4756
      }
4757
      if (isSetSe()) {
4758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4759
        if (lastComparison != 0) {
4760
          return lastComparison;
4761
        }
4762
      }
4763
      return 0;
4764
    }
4765
 
4766
    public _Fields fieldForId(int fieldId) {
4767
      return _Fields.findByThriftId(fieldId);
4768
    }
4769
 
4770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4771
      org.apache.thrift.protocol.TField field;
4772
      iprot.readStructBegin();
4773
      while (true)
4774
      {
4775
        field = iprot.readFieldBegin();
4776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4777
          break;
4778
        }
4779
        switch (field.id) {
4780
          case 0: // SUCCESS
4781
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4782
              this.success = new LogisticsInfo();
4783
              this.success.read(iprot);
4784
            } else { 
4785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4786
            }
4787
            break;
4788
          case 1: // SE
4789
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4790
              this.se = new LogisticsServiceException();
4791
              this.se.read(iprot);
4792
            } else { 
4793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4794
            }
4795
            break;
4796
          default:
4797
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4798
        }
4799
        iprot.readFieldEnd();
4800
      }
4801
      iprot.readStructEnd();
4802
      validate();
4803
    }
4804
 
4805
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4806
      oprot.writeStructBegin(STRUCT_DESC);
4807
 
4808
      if (this.isSetSuccess()) {
4809
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4810
        this.success.write(oprot);
4811
        oprot.writeFieldEnd();
4812
      } else if (this.isSetSe()) {
4813
        oprot.writeFieldBegin(SE_FIELD_DESC);
4814
        this.se.write(oprot);
4815
        oprot.writeFieldEnd();
4816
      }
4817
      oprot.writeFieldStop();
4818
      oprot.writeStructEnd();
4819
    }
4820
 
4821
    @Override
4822
    public String toString() {
4823
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
4824
      boolean first = true;
4825
 
4826
      sb.append("success:");
4827
      if (this.success == null) {
4828
        sb.append("null");
4829
      } else {
4830
        sb.append(this.success);
4831
      }
4832
      first = false;
4833
      if (!first) sb.append(", ");
4834
      sb.append("se:");
4835
      if (this.se == null) {
4836
        sb.append("null");
4837
      } else {
4838
        sb.append(this.se);
4839
      }
4840
      first = false;
4841
      sb.append(")");
4842
      return sb.toString();
4843
    }
4844
 
4845
    public void validate() throws org.apache.thrift.TException {
4846
      // check for required fields
4847
    }
4848
 
4849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4850
      try {
4851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4852
      } catch (org.apache.thrift.TException te) {
4853
        throw new java.io.IOException(te);
4854
      }
4855
    }
4856
 
4857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4858
      try {
4859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4860
      } catch (org.apache.thrift.TException te) {
4861
        throw new java.io.IOException(te);
4862
      }
4863
    }
4864
 
4865
  }
4866
 
3430 rajveer 4867
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
4868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 4869
 
3430 rajveer 4870
    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);
4871
    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);
4872
    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 4873
    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 4874
 
3430 rajveer 4875
    private String destination_pincode; // required
4876
    private long item_id; // required
4877
    private DeliveryType type; // required
5766 rajveer 4878
    private PickUpType pickUp; // required
471 rajveer 4879
 
4880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4882
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 4883
      ITEM_ID((short)2, "item_id"),
4884
      /**
4885
       * 
4886
       * @see DeliveryType
4887
       */
5766 rajveer 4888
      TYPE((short)3, "type"),
4889
      /**
4890
       * 
4891
       * @see PickUpType
4892
       */
4893
      PICK_UP((short)4, "pickUp");
471 rajveer 4894
 
4895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4896
 
4897
      static {
4898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4899
          byName.put(field.getFieldName(), field);
4900
        }
4901
      }
4902
 
4903
      /**
4904
       * Find the _Fields constant that matches fieldId, or null if its not found.
4905
       */
4906
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4907
        switch(fieldId) {
4908
          case 1: // DESTINATION_PINCODE
4909
            return DESTINATION_PINCODE;
4910
          case 2: // ITEM_ID
4911
            return ITEM_ID;
4912
          case 3: // TYPE
4913
            return TYPE;
5766 rajveer 4914
          case 4: // PICK_UP
4915
            return PICK_UP;
3430 rajveer 4916
          default:
4917
            return null;
4918
        }
471 rajveer 4919
      }
4920
 
4921
      /**
4922
       * Find the _Fields constant that matches fieldId, throwing an exception
4923
       * if it is not found.
4924
       */
4925
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4926
        _Fields fields = findByThriftId(fieldId);
4927
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4928
        return fields;
4929
      }
4930
 
4931
      /**
4932
       * Find the _Fields constant that matches name, or null if its not found.
4933
       */
4934
      public static _Fields findByName(String name) {
4935
        return byName.get(name);
4936
      }
4937
 
4938
      private final short _thriftId;
4939
      private final String _fieldName;
4940
 
4941
      _Fields(short thriftId, String fieldName) {
4942
        _thriftId = thriftId;
4943
        _fieldName = fieldName;
4944
      }
4945
 
4946
      public short getThriftFieldId() {
4947
        return _thriftId;
4948
      }
4949
 
4950
      public String getFieldName() {
4951
        return _fieldName;
4952
      }
4953
    }
4954
 
4955
    // isset id assignments
715 rajveer 4956
    private static final int __ITEM_ID_ISSET_ID = 0;
4957
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 4958
 
3430 rajveer 4959
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 4960
    static {
3430 rajveer 4961
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4962
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4963
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4964
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4965
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4966
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4967
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 4968
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4969
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 4970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 4972
    }
4973
 
648 chandransh 4974
    public getLogisticsInfo_args() {
477 rajveer 4975
    }
4976
 
648 chandransh 4977
    public getLogisticsInfo_args(
4978
      String destination_pincode,
3044 chandransh 4979
      long item_id,
5766 rajveer 4980
      DeliveryType type,
4981
      PickUpType pickUp)
477 rajveer 4982
    {
4983
      this();
648 chandransh 4984
      this.destination_pincode = destination_pincode;
4985
      this.item_id = item_id;
715 rajveer 4986
      setItem_idIsSet(true);
3044 chandransh 4987
      this.type = type;
5766 rajveer 4988
      this.pickUp = pickUp;
477 rajveer 4989
    }
4990
 
4991
    /**
4992
     * Performs a deep copy on <i>other</i>.
4993
     */
648 chandransh 4994
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 4995
      __isset_bit_vector.clear();
4996
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4997
      if (other.isSetDestination_pincode()) {
4998
        this.destination_pincode = other.destination_pincode;
477 rajveer 4999
      }
715 rajveer 5000
      this.item_id = other.item_id;
3044 chandransh 5001
      if (other.isSetType()) {
5002
        this.type = other.type;
5003
      }
5766 rajveer 5004
      if (other.isSetPickUp()) {
5005
        this.pickUp = other.pickUp;
5006
      }
477 rajveer 5007
    }
5008
 
648 chandransh 5009
    public getLogisticsInfo_args deepCopy() {
5010
      return new getLogisticsInfo_args(this);
477 rajveer 5011
    }
5012
 
3430 rajveer 5013
    @Override
5014
    public void clear() {
5015
      this.destination_pincode = null;
5016
      setItem_idIsSet(false);
5017
      this.item_id = 0;
5018
      this.type = null;
5766 rajveer 5019
      this.pickUp = null;
477 rajveer 5020
    }
5021
 
648 chandransh 5022
    public String getDestination_pincode() {
5023
      return this.destination_pincode;
477 rajveer 5024
    }
5025
 
3430 rajveer 5026
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5027
      this.destination_pincode = destination_pincode;
477 rajveer 5028
    }
5029
 
648 chandransh 5030
    public void unsetDestination_pincode() {
5031
      this.destination_pincode = null;
477 rajveer 5032
    }
5033
 
3430 rajveer 5034
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5035
    public boolean isSetDestination_pincode() {
5036
      return this.destination_pincode != null;
477 rajveer 5037
    }
5038
 
648 chandransh 5039
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5040
      if (!value) {
648 chandransh 5041
        this.destination_pincode = null;
477 rajveer 5042
      }
5043
    }
5044
 
715 rajveer 5045
    public long getItem_id() {
648 chandransh 5046
      return this.item_id;
477 rajveer 5047
    }
5048
 
3430 rajveer 5049
    public void setItem_id(long item_id) {
648 chandransh 5050
      this.item_id = item_id;
715 rajveer 5051
      setItem_idIsSet(true);
477 rajveer 5052
    }
5053
 
648 chandransh 5054
    public void unsetItem_id() {
715 rajveer 5055
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5056
    }
5057
 
3430 rajveer 5058
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5059
    public boolean isSetItem_id() {
715 rajveer 5060
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5061
    }
5062
 
648 chandransh 5063
    public void setItem_idIsSet(boolean value) {
715 rajveer 5064
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5065
    }
5066
 
3044 chandransh 5067
    /**
5068
     * 
5069
     * @see DeliveryType
5070
     */
5071
    public DeliveryType getType() {
5072
      return this.type;
5073
    }
5074
 
5075
    /**
5076
     * 
5077
     * @see DeliveryType
5078
     */
3430 rajveer 5079
    public void setType(DeliveryType type) {
3044 chandransh 5080
      this.type = type;
5081
    }
5082
 
5083
    public void unsetType() {
5084
      this.type = null;
5085
    }
5086
 
3430 rajveer 5087
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5088
    public boolean isSetType() {
5089
      return this.type != null;
5090
    }
5091
 
5092
    public void setTypeIsSet(boolean value) {
5093
      if (!value) {
5094
        this.type = null;
5095
      }
5096
    }
5097
 
5766 rajveer 5098
    /**
5099
     * 
5100
     * @see PickUpType
5101
     */
5102
    public PickUpType getPickUp() {
5103
      return this.pickUp;
5104
    }
5105
 
5106
    /**
5107
     * 
5108
     * @see PickUpType
5109
     */
5110
    public void setPickUp(PickUpType pickUp) {
5111
      this.pickUp = pickUp;
5112
    }
5113
 
5114
    public void unsetPickUp() {
5115
      this.pickUp = null;
5116
    }
5117
 
5118
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5119
    public boolean isSetPickUp() {
5120
      return this.pickUp != null;
5121
    }
5122
 
5123
    public void setPickUpIsSet(boolean value) {
5124
      if (!value) {
5125
        this.pickUp = null;
5126
      }
5127
    }
5128
 
477 rajveer 5129
    public void setFieldValue(_Fields field, Object value) {
5130
      switch (field) {
648 chandransh 5131
      case DESTINATION_PINCODE:
477 rajveer 5132
        if (value == null) {
648 chandransh 5133
          unsetDestination_pincode();
477 rajveer 5134
        } else {
648 chandransh 5135
          setDestination_pincode((String)value);
477 rajveer 5136
        }
5137
        break;
5138
 
648 chandransh 5139
      case ITEM_ID:
477 rajveer 5140
        if (value == null) {
648 chandransh 5141
          unsetItem_id();
477 rajveer 5142
        } else {
715 rajveer 5143
          setItem_id((Long)value);
477 rajveer 5144
        }
5145
        break;
5146
 
3044 chandransh 5147
      case TYPE:
5148
        if (value == null) {
5149
          unsetType();
5150
        } else {
5151
          setType((DeliveryType)value);
5152
        }
5153
        break;
5154
 
5766 rajveer 5155
      case PICK_UP:
5156
        if (value == null) {
5157
          unsetPickUp();
5158
        } else {
5159
          setPickUp((PickUpType)value);
5160
        }
5161
        break;
5162
 
477 rajveer 5163
      }
5164
    }
5165
 
5166
    public Object getFieldValue(_Fields field) {
5167
      switch (field) {
648 chandransh 5168
      case DESTINATION_PINCODE:
5169
        return getDestination_pincode();
477 rajveer 5170
 
648 chandransh 5171
      case ITEM_ID:
3430 rajveer 5172
        return Long.valueOf(getItem_id());
477 rajveer 5173
 
3044 chandransh 5174
      case TYPE:
5175
        return getType();
5176
 
5766 rajveer 5177
      case PICK_UP:
5178
        return getPickUp();
5179
 
477 rajveer 5180
      }
5181
      throw new IllegalStateException();
5182
    }
5183
 
3430 rajveer 5184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5185
    public boolean isSet(_Fields field) {
5186
      if (field == null) {
5187
        throw new IllegalArgumentException();
5188
      }
477 rajveer 5189
 
5190
      switch (field) {
648 chandransh 5191
      case DESTINATION_PINCODE:
5192
        return isSetDestination_pincode();
5193
      case ITEM_ID:
5194
        return isSetItem_id();
3044 chandransh 5195
      case TYPE:
5196
        return isSetType();
5766 rajveer 5197
      case PICK_UP:
5198
        return isSetPickUp();
477 rajveer 5199
      }
5200
      throw new IllegalStateException();
5201
    }
5202
 
5203
    @Override
5204
    public boolean equals(Object that) {
5205
      if (that == null)
5206
        return false;
648 chandransh 5207
      if (that instanceof getLogisticsInfo_args)
5208
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5209
      return false;
5210
    }
5211
 
648 chandransh 5212
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5213
      if (that == null)
5214
        return false;
5215
 
648 chandransh 5216
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5217
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5218
      if (this_present_destination_pincode || that_present_destination_pincode) {
5219
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5220
          return false;
648 chandransh 5221
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5222
          return false;
5223
      }
5224
 
715 rajveer 5225
      boolean this_present_item_id = true;
5226
      boolean that_present_item_id = true;
648 chandransh 5227
      if (this_present_item_id || that_present_item_id) {
5228
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5229
          return false;
715 rajveer 5230
        if (this.item_id != that.item_id)
477 rajveer 5231
          return false;
5232
      }
5233
 
3044 chandransh 5234
      boolean this_present_type = true && this.isSetType();
5235
      boolean that_present_type = true && that.isSetType();
5236
      if (this_present_type || that_present_type) {
5237
        if (!(this_present_type && that_present_type))
5238
          return false;
5239
        if (!this.type.equals(that.type))
5240
          return false;
5241
      }
5242
 
5766 rajveer 5243
      boolean this_present_pickUp = true && this.isSetPickUp();
5244
      boolean that_present_pickUp = true && that.isSetPickUp();
5245
      if (this_present_pickUp || that_present_pickUp) {
5246
        if (!(this_present_pickUp && that_present_pickUp))
5247
          return false;
5248
        if (!this.pickUp.equals(that.pickUp))
5249
          return false;
5250
      }
5251
 
477 rajveer 5252
      return true;
5253
    }
5254
 
5255
    @Override
5256
    public int hashCode() {
5257
      return 0;
5258
    }
5259
 
648 chandransh 5260
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5261
      if (!getClass().equals(other.getClass())) {
5262
        return getClass().getName().compareTo(other.getClass().getName());
5263
      }
5264
 
5265
      int lastComparison = 0;
648 chandransh 5266
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5267
 
3430 rajveer 5268
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5269
      if (lastComparison != 0) {
5270
        return lastComparison;
5271
      }
3430 rajveer 5272
      if (isSetDestination_pincode()) {
5273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5274
        if (lastComparison != 0) {
5275
          return lastComparison;
5276
        }
477 rajveer 5277
      }
3430 rajveer 5278
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5279
      if (lastComparison != 0) {
5280
        return lastComparison;
5281
      }
3430 rajveer 5282
      if (isSetItem_id()) {
5283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5284
        if (lastComparison != 0) {
5285
          return lastComparison;
5286
        }
477 rajveer 5287
      }
3430 rajveer 5288
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5289
      if (lastComparison != 0) {
5290
        return lastComparison;
5291
      }
3430 rajveer 5292
      if (isSetType()) {
5293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5294
        if (lastComparison != 0) {
5295
          return lastComparison;
5296
        }
3044 chandransh 5297
      }
5766 rajveer 5298
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5299
      if (lastComparison != 0) {
5300
        return lastComparison;
5301
      }
5302
      if (isSetPickUp()) {
5303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5304
        if (lastComparison != 0) {
5305
          return lastComparison;
5306
        }
5307
      }
477 rajveer 5308
      return 0;
5309
    }
5310
 
3430 rajveer 5311
    public _Fields fieldForId(int fieldId) {
5312
      return _Fields.findByThriftId(fieldId);
5313
    }
5314
 
5315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5316
      org.apache.thrift.protocol.TField field;
477 rajveer 5317
      iprot.readStructBegin();
5318
      while (true)
5319
      {
5320
        field = iprot.readFieldBegin();
3430 rajveer 5321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5322
          break;
5323
        }
3430 rajveer 5324
        switch (field.id) {
5325
          case 1: // DESTINATION_PINCODE
5326
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5327
              this.destination_pincode = iprot.readString();
5328
            } else { 
5329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5330
            }
5331
            break;
5332
          case 2: // ITEM_ID
5333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5334
              this.item_id = iprot.readI64();
5335
              setItem_idIsSet(true);
5336
            } else { 
5337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5338
            }
5339
            break;
5340
          case 3: // TYPE
5341
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5342
              this.type = DeliveryType.findByValue(iprot.readI32());
5343
            } else { 
5344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5345
            }
5346
            break;
5766 rajveer 5347
          case 4: // PICK_UP
5348
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5349
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5350
            } else { 
5351
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5352
            }
5353
            break;
3430 rajveer 5354
          default:
5355
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5356
        }
3430 rajveer 5357
        iprot.readFieldEnd();
477 rajveer 5358
      }
5359
      iprot.readStructEnd();
5360
      validate();
5361
    }
5362
 
3430 rajveer 5363
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5364
      validate();
5365
 
5366
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5367
      if (this.destination_pincode != null) {
5368
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5369
        oprot.writeString(this.destination_pincode);
477 rajveer 5370
        oprot.writeFieldEnd();
5371
      }
715 rajveer 5372
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5373
      oprot.writeI64(this.item_id);
5374
      oprot.writeFieldEnd();
3044 chandransh 5375
      if (this.type != null) {
5376
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5377
        oprot.writeI32(this.type.getValue());
5378
        oprot.writeFieldEnd();
5379
      }
5766 rajveer 5380
      if (this.pickUp != null) {
5381
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5382
        oprot.writeI32(this.pickUp.getValue());
5383
        oprot.writeFieldEnd();
5384
      }
477 rajveer 5385
      oprot.writeFieldStop();
5386
      oprot.writeStructEnd();
5387
    }
5388
 
5389
    @Override
5390
    public String toString() {
648 chandransh 5391
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5392
      boolean first = true;
5393
 
648 chandransh 5394
      sb.append("destination_pincode:");
5395
      if (this.destination_pincode == null) {
477 rajveer 5396
        sb.append("null");
5397
      } else {
648 chandransh 5398
        sb.append(this.destination_pincode);
477 rajveer 5399
      }
5400
      first = false;
5401
      if (!first) sb.append(", ");
648 chandransh 5402
      sb.append("item_id:");
715 rajveer 5403
      sb.append(this.item_id);
477 rajveer 5404
      first = false;
3044 chandransh 5405
      if (!first) sb.append(", ");
5406
      sb.append("type:");
5407
      if (this.type == null) {
5408
        sb.append("null");
5409
      } else {
5410
        sb.append(this.type);
5411
      }
5412
      first = false;
5766 rajveer 5413
      if (!first) sb.append(", ");
5414
      sb.append("pickUp:");
5415
      if (this.pickUp == null) {
5416
        sb.append("null");
5417
      } else {
5418
        sb.append(this.pickUp);
5419
      }
5420
      first = false;
477 rajveer 5421
      sb.append(")");
5422
      return sb.toString();
5423
    }
5424
 
3430 rajveer 5425
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5426
      // check for required fields
5427
    }
5428
 
3430 rajveer 5429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5430
      try {
5431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5432
      } catch (org.apache.thrift.TException te) {
5433
        throw new java.io.IOException(te);
5434
      }
5435
    }
5436
 
5437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5438
      try {
5439
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5440
      } catch (org.apache.thrift.TException te) {
5441
        throw new java.io.IOException(te);
5442
      }
5443
    }
5444
 
477 rajveer 5445
  }
5446
 
3430 rajveer 5447
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5448
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5449
 
3430 rajveer 5450
    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);
5451
    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 5452
 
3430 rajveer 5453
    private LogisticsInfo success; // required
5454
    private LogisticsServiceException se; // required
477 rajveer 5455
 
5456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5458
      SUCCESS((short)0, "success"),
5459
      SE((short)1, "se");
477 rajveer 5460
 
5461
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5462
 
5463
      static {
5464
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5465
          byName.put(field.getFieldName(), field);
5466
        }
5467
      }
5468
 
5469
      /**
5470
       * Find the _Fields constant that matches fieldId, or null if its not found.
5471
       */
5472
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5473
        switch(fieldId) {
5474
          case 0: // SUCCESS
5475
            return SUCCESS;
5476
          case 1: // SE
5477
            return SE;
5478
          default:
5479
            return null;
5480
        }
477 rajveer 5481
      }
5482
 
5483
      /**
5484
       * Find the _Fields constant that matches fieldId, throwing an exception
5485
       * if it is not found.
5486
       */
5487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5488
        _Fields fields = findByThriftId(fieldId);
5489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5490
        return fields;
5491
      }
5492
 
5493
      /**
5494
       * Find the _Fields constant that matches name, or null if its not found.
5495
       */
5496
      public static _Fields findByName(String name) {
5497
        return byName.get(name);
5498
      }
5499
 
5500
      private final short _thriftId;
5501
      private final String _fieldName;
5502
 
5503
      _Fields(short thriftId, String fieldName) {
5504
        _thriftId = thriftId;
5505
        _fieldName = fieldName;
5506
      }
5507
 
5508
      public short getThriftFieldId() {
5509
        return _thriftId;
5510
      }
5511
 
5512
      public String getFieldName() {
5513
        return _fieldName;
5514
      }
5515
    }
5516
 
412 ashish 5517
    // isset id assignments
5518
 
3430 rajveer 5519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5520
    static {
3430 rajveer 5521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5522
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5523
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5524
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5525
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5526
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5527
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5528
    }
5529
 
648 chandransh 5530
    public getLogisticsInfo_result() {
412 ashish 5531
    }
5532
 
648 chandransh 5533
    public getLogisticsInfo_result(
5534
      LogisticsInfo success,
5535
      LogisticsServiceException se)
412 ashish 5536
    {
5537
      this();
648 chandransh 5538
      this.success = success;
5539
      this.se = se;
412 ashish 5540
    }
5541
 
5542
    /**
5543
     * Performs a deep copy on <i>other</i>.
5544
     */
648 chandransh 5545
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5546
      if (other.isSetSuccess()) {
5547
        this.success = new LogisticsInfo(other.success);
412 ashish 5548
      }
648 chandransh 5549
      if (other.isSetSe()) {
5550
        this.se = new LogisticsServiceException(other.se);
5551
      }
412 ashish 5552
    }
5553
 
648 chandransh 5554
    public getLogisticsInfo_result deepCopy() {
5555
      return new getLogisticsInfo_result(this);
412 ashish 5556
    }
5557
 
3430 rajveer 5558
    @Override
5559
    public void clear() {
5560
      this.success = null;
5561
      this.se = null;
412 ashish 5562
    }
5563
 
648 chandransh 5564
    public LogisticsInfo getSuccess() {
5565
      return this.success;
412 ashish 5566
    }
5567
 
3430 rajveer 5568
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5569
      this.success = success;
412 ashish 5570
    }
5571
 
648 chandransh 5572
    public void unsetSuccess() {
5573
      this.success = null;
412 ashish 5574
    }
5575
 
3430 rajveer 5576
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5577
    public boolean isSetSuccess() {
5578
      return this.success != null;
412 ashish 5579
    }
5580
 
648 chandransh 5581
    public void setSuccessIsSet(boolean value) {
412 ashish 5582
      if (!value) {
648 chandransh 5583
        this.success = null;
412 ashish 5584
      }
5585
    }
5586
 
648 chandransh 5587
    public LogisticsServiceException getSe() {
5588
      return this.se;
412 ashish 5589
    }
5590
 
3430 rajveer 5591
    public void setSe(LogisticsServiceException se) {
648 chandransh 5592
      this.se = se;
412 ashish 5593
    }
5594
 
648 chandransh 5595
    public void unsetSe() {
5596
      this.se = null;
412 ashish 5597
    }
5598
 
3430 rajveer 5599
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5600
    public boolean isSetSe() {
5601
      return this.se != null;
412 ashish 5602
    }
5603
 
648 chandransh 5604
    public void setSeIsSet(boolean value) {
5605
      if (!value) {
5606
        this.se = null;
5607
      }
412 ashish 5608
    }
5609
 
5610
    public void setFieldValue(_Fields field, Object value) {
5611
      switch (field) {
648 chandransh 5612
      case SUCCESS:
412 ashish 5613
        if (value == null) {
648 chandransh 5614
          unsetSuccess();
412 ashish 5615
        } else {
648 chandransh 5616
          setSuccess((LogisticsInfo)value);
412 ashish 5617
        }
5618
        break;
5619
 
648 chandransh 5620
      case SE:
412 ashish 5621
        if (value == null) {
648 chandransh 5622
          unsetSe();
412 ashish 5623
        } else {
648 chandransh 5624
          setSe((LogisticsServiceException)value);
412 ashish 5625
        }
5626
        break;
5627
 
5628
      }
5629
    }
5630
 
5631
    public Object getFieldValue(_Fields field) {
5632
      switch (field) {
648 chandransh 5633
      case SUCCESS:
5634
        return getSuccess();
412 ashish 5635
 
648 chandransh 5636
      case SE:
5637
        return getSe();
412 ashish 5638
 
5639
      }
5640
      throw new IllegalStateException();
5641
    }
5642
 
3430 rajveer 5643
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5644
    public boolean isSet(_Fields field) {
5645
      if (field == null) {
5646
        throw new IllegalArgumentException();
5647
      }
412 ashish 5648
 
5649
      switch (field) {
648 chandransh 5650
      case SUCCESS:
5651
        return isSetSuccess();
5652
      case SE:
5653
        return isSetSe();
412 ashish 5654
      }
5655
      throw new IllegalStateException();
5656
    }
5657
 
5658
    @Override
5659
    public boolean equals(Object that) {
5660
      if (that == null)
5661
        return false;
648 chandransh 5662
      if (that instanceof getLogisticsInfo_result)
5663
        return this.equals((getLogisticsInfo_result)that);
412 ashish 5664
      return false;
5665
    }
5666
 
648 chandransh 5667
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 5668
      if (that == null)
5669
        return false;
5670
 
648 chandransh 5671
      boolean this_present_success = true && this.isSetSuccess();
5672
      boolean that_present_success = true && that.isSetSuccess();
5673
      if (this_present_success || that_present_success) {
5674
        if (!(this_present_success && that_present_success))
412 ashish 5675
          return false;
648 chandransh 5676
        if (!this.success.equals(that.success))
412 ashish 5677
          return false;
5678
      }
5679
 
648 chandransh 5680
      boolean this_present_se = true && this.isSetSe();
5681
      boolean that_present_se = true && that.isSetSe();
5682
      if (this_present_se || that_present_se) {
5683
        if (!(this_present_se && that_present_se))
412 ashish 5684
          return false;
648 chandransh 5685
        if (!this.se.equals(that.se))
412 ashish 5686
          return false;
5687
      }
5688
 
5689
      return true;
5690
    }
5691
 
5692
    @Override
5693
    public int hashCode() {
5694
      return 0;
5695
    }
5696
 
648 chandransh 5697
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 5698
      if (!getClass().equals(other.getClass())) {
5699
        return getClass().getName().compareTo(other.getClass().getName());
5700
      }
5701
 
5702
      int lastComparison = 0;
648 chandransh 5703
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 5704
 
3430 rajveer 5705
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5706
      if (lastComparison != 0) {
5707
        return lastComparison;
5708
      }
3430 rajveer 5709
      if (isSetSuccess()) {
5710
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5711
        if (lastComparison != 0) {
5712
          return lastComparison;
5713
        }
412 ashish 5714
      }
3430 rajveer 5715
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5716
      if (lastComparison != 0) {
5717
        return lastComparison;
5718
      }
3430 rajveer 5719
      if (isSetSe()) {
5720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5721
        if (lastComparison != 0) {
5722
          return lastComparison;
5723
        }
412 ashish 5724
      }
5725
      return 0;
5726
    }
5727
 
3430 rajveer 5728
    public _Fields fieldForId(int fieldId) {
5729
      return _Fields.findByThriftId(fieldId);
5730
    }
5731
 
5732
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5733
      org.apache.thrift.protocol.TField field;
412 ashish 5734
      iprot.readStructBegin();
5735
      while (true)
5736
      {
5737
        field = iprot.readFieldBegin();
3430 rajveer 5738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5739
          break;
5740
        }
3430 rajveer 5741
        switch (field.id) {
5742
          case 0: // SUCCESS
5743
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5744
              this.success = new LogisticsInfo();
5745
              this.success.read(iprot);
5746
            } else { 
5747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5748
            }
5749
            break;
5750
          case 1: // SE
5751
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5752
              this.se = new LogisticsServiceException();
5753
              this.se.read(iprot);
5754
            } else { 
5755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5756
            }
5757
            break;
5758
          default:
5759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5760
        }
3430 rajveer 5761
        iprot.readFieldEnd();
412 ashish 5762
      }
5763
      iprot.readStructEnd();
5764
      validate();
5765
    }
5766
 
3430 rajveer 5767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 5768
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 5769
 
648 chandransh 5770
      if (this.isSetSuccess()) {
5771
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5772
        this.success.write(oprot);
412 ashish 5773
        oprot.writeFieldEnd();
648 chandransh 5774
      } else if (this.isSetSe()) {
5775
        oprot.writeFieldBegin(SE_FIELD_DESC);
5776
        this.se.write(oprot);
5777
        oprot.writeFieldEnd();
412 ashish 5778
      }
5779
      oprot.writeFieldStop();
5780
      oprot.writeStructEnd();
5781
    }
5782
 
5783
    @Override
5784
    public String toString() {
648 chandransh 5785
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 5786
      boolean first = true;
5787
 
648 chandransh 5788
      sb.append("success:");
5789
      if (this.success == null) {
412 ashish 5790
        sb.append("null");
5791
      } else {
648 chandransh 5792
        sb.append(this.success);
412 ashish 5793
      }
5794
      first = false;
5795
      if (!first) sb.append(", ");
648 chandransh 5796
      sb.append("se:");
5797
      if (this.se == null) {
5798
        sb.append("null");
5799
      } else {
5800
        sb.append(this.se);
5801
      }
412 ashish 5802
      first = false;
5803
      sb.append(")");
5804
      return sb.toString();
5805
    }
5806
 
3430 rajveer 5807
    public void validate() throws org.apache.thrift.TException {
412 ashish 5808
      // check for required fields
5809
    }
5810
 
3430 rajveer 5811
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5812
      try {
5813
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5814
      } catch (org.apache.thrift.TException te) {
5815
        throw new java.io.IOException(te);
5816
      }
5817
    }
5818
 
5819
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5820
      try {
5821
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5822
      } catch (org.apache.thrift.TException te) {
5823
        throw new java.io.IOException(te);
5824
      }
5825
    }
5826
 
412 ashish 5827
  }
5828
 
3430 rajveer 5829
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
5830
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 5831
 
3430 rajveer 5832
    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 5833
    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 5834
 
3430 rajveer 5835
    private long providerId; // required
5247 rajveer 5836
    private DeliveryType type; // required
412 ashish 5837
 
5838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5839
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 5840
      PROVIDER_ID((short)1, "providerId"),
5841
      /**
5842
       * 
5843
       * @see DeliveryType
5844
       */
5845
      TYPE((short)-1, "type");
412 ashish 5846
 
5847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5848
 
5849
      static {
5850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5851
          byName.put(field.getFieldName(), field);
5852
        }
5853
      }
5854
 
5855
      /**
5856
       * Find the _Fields constant that matches fieldId, or null if its not found.
5857
       */
5858
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5859
        switch(fieldId) {
5860
          case 1: // PROVIDER_ID
5861
            return PROVIDER_ID;
5247 rajveer 5862
          case -1: // TYPE
5863
            return TYPE;
3430 rajveer 5864
          default:
5865
            return null;
5866
        }
412 ashish 5867
      }
5868
 
5869
      /**
5870
       * Find the _Fields constant that matches fieldId, throwing an exception
5871
       * if it is not found.
5872
       */
5873
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5874
        _Fields fields = findByThriftId(fieldId);
5875
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5876
        return fields;
5877
      }
5878
 
5879
      /**
5880
       * Find the _Fields constant that matches name, or null if its not found.
5881
       */
5882
      public static _Fields findByName(String name) {
5883
        return byName.get(name);
5884
      }
5885
 
5886
      private final short _thriftId;
5887
      private final String _fieldName;
5888
 
5889
      _Fields(short thriftId, String fieldName) {
5890
        _thriftId = thriftId;
5891
        _fieldName = fieldName;
5892
      }
5893
 
5894
      public short getThriftFieldId() {
5895
        return _thriftId;
5896
      }
5897
 
5898
      public String getFieldName() {
5899
        return _fieldName;
5900
      }
5901
    }
5902
 
5903
    // isset id assignments
648 chandransh 5904
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 5905
    private BitSet __isset_bit_vector = new BitSet(1);
5906
 
3430 rajveer 5907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5908
    static {
3430 rajveer 5909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5910
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5911
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 5912
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5913
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 5914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 5916
    }
5917
 
5918
    public getEmptyAWB_args() {
5919
    }
5920
 
5921
    public getEmptyAWB_args(
5247 rajveer 5922
      long providerId,
5923
      DeliveryType type)
412 ashish 5924
    {
5925
      this();
648 chandransh 5926
      this.providerId = providerId;
5927
      setProviderIdIsSet(true);
5247 rajveer 5928
      this.type = type;
412 ashish 5929
    }
5930
 
5931
    /**
5932
     * Performs a deep copy on <i>other</i>.
5933
     */
5934
    public getEmptyAWB_args(getEmptyAWB_args other) {
5935
      __isset_bit_vector.clear();
5936
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5937
      this.providerId = other.providerId;
5247 rajveer 5938
      if (other.isSetType()) {
5939
        this.type = other.type;
5940
      }
412 ashish 5941
    }
5942
 
5943
    public getEmptyAWB_args deepCopy() {
5944
      return new getEmptyAWB_args(this);
5945
    }
5946
 
3430 rajveer 5947
    @Override
5948
    public void clear() {
5949
      setProviderIdIsSet(false);
5950
      this.providerId = 0;
5247 rajveer 5951
      this.type = null;
412 ashish 5952
    }
5953
 
648 chandransh 5954
    public long getProviderId() {
5955
      return this.providerId;
412 ashish 5956
    }
5957
 
3430 rajveer 5958
    public void setProviderId(long providerId) {
648 chandransh 5959
      this.providerId = providerId;
5960
      setProviderIdIsSet(true);
412 ashish 5961
    }
5962
 
648 chandransh 5963
    public void unsetProviderId() {
5964
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 5965
    }
5966
 
3430 rajveer 5967
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 5968
    public boolean isSetProviderId() {
5969
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 5970
    }
5971
 
648 chandransh 5972
    public void setProviderIdIsSet(boolean value) {
5973
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 5974
    }
5975
 
5247 rajveer 5976
    /**
5977
     * 
5978
     * @see DeliveryType
5979
     */
5980
    public DeliveryType getType() {
5981
      return this.type;
5982
    }
5983
 
5984
    /**
5985
     * 
5986
     * @see DeliveryType
5987
     */
5988
    public void setType(DeliveryType type) {
5989
      this.type = type;
5990
    }
5991
 
5992
    public void unsetType() {
5993
      this.type = null;
5994
    }
5995
 
5996
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5997
    public boolean isSetType() {
5998
      return this.type != null;
5999
    }
6000
 
6001
    public void setTypeIsSet(boolean value) {
6002
      if (!value) {
6003
        this.type = null;
6004
      }
6005
    }
6006
 
412 ashish 6007
    public void setFieldValue(_Fields field, Object value) {
6008
      switch (field) {
6009
      case PROVIDER_ID:
6010
        if (value == null) {
648 chandransh 6011
          unsetProviderId();
412 ashish 6012
        } else {
648 chandransh 6013
          setProviderId((Long)value);
412 ashish 6014
        }
6015
        break;
6016
 
5247 rajveer 6017
      case TYPE:
6018
        if (value == null) {
6019
          unsetType();
6020
        } else {
6021
          setType((DeliveryType)value);
6022
        }
6023
        break;
6024
 
412 ashish 6025
      }
6026
    }
6027
 
6028
    public Object getFieldValue(_Fields field) {
6029
      switch (field) {
6030
      case PROVIDER_ID:
3430 rajveer 6031
        return Long.valueOf(getProviderId());
412 ashish 6032
 
5247 rajveer 6033
      case TYPE:
6034
        return getType();
6035
 
412 ashish 6036
      }
6037
      throw new IllegalStateException();
6038
    }
6039
 
3430 rajveer 6040
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6041
    public boolean isSet(_Fields field) {
6042
      if (field == null) {
6043
        throw new IllegalArgumentException();
6044
      }
412 ashish 6045
 
6046
      switch (field) {
6047
      case PROVIDER_ID:
648 chandransh 6048
        return isSetProviderId();
5247 rajveer 6049
      case TYPE:
6050
        return isSetType();
412 ashish 6051
      }
6052
      throw new IllegalStateException();
6053
    }
6054
 
6055
    @Override
6056
    public boolean equals(Object that) {
6057
      if (that == null)
6058
        return false;
6059
      if (that instanceof getEmptyAWB_args)
6060
        return this.equals((getEmptyAWB_args)that);
6061
      return false;
6062
    }
6063
 
6064
    public boolean equals(getEmptyAWB_args that) {
6065
      if (that == null)
6066
        return false;
6067
 
648 chandransh 6068
      boolean this_present_providerId = true;
6069
      boolean that_present_providerId = true;
6070
      if (this_present_providerId || that_present_providerId) {
6071
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6072
          return false;
648 chandransh 6073
        if (this.providerId != that.providerId)
412 ashish 6074
          return false;
6075
      }
6076
 
5247 rajveer 6077
      boolean this_present_type = true && this.isSetType();
6078
      boolean that_present_type = true && that.isSetType();
6079
      if (this_present_type || that_present_type) {
6080
        if (!(this_present_type && that_present_type))
6081
          return false;
6082
        if (!this.type.equals(that.type))
6083
          return false;
6084
      }
6085
 
412 ashish 6086
      return true;
6087
    }
6088
 
6089
    @Override
6090
    public int hashCode() {
6091
      return 0;
6092
    }
6093
 
6094
    public int compareTo(getEmptyAWB_args other) {
6095
      if (!getClass().equals(other.getClass())) {
6096
        return getClass().getName().compareTo(other.getClass().getName());
6097
      }
6098
 
6099
      int lastComparison = 0;
6100
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6101
 
3430 rajveer 6102
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6103
      if (lastComparison != 0) {
6104
        return lastComparison;
6105
      }
3430 rajveer 6106
      if (isSetProviderId()) {
6107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6108
        if (lastComparison != 0) {
6109
          return lastComparison;
6110
        }
412 ashish 6111
      }
5247 rajveer 6112
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6113
      if (lastComparison != 0) {
6114
        return lastComparison;
6115
      }
6116
      if (isSetType()) {
6117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6118
        if (lastComparison != 0) {
6119
          return lastComparison;
6120
        }
6121
      }
412 ashish 6122
      return 0;
6123
    }
6124
 
3430 rajveer 6125
    public _Fields fieldForId(int fieldId) {
6126
      return _Fields.findByThriftId(fieldId);
6127
    }
6128
 
6129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6130
      org.apache.thrift.protocol.TField field;
412 ashish 6131
      iprot.readStructBegin();
6132
      while (true)
6133
      {
6134
        field = iprot.readFieldBegin();
3430 rajveer 6135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6136
          break;
6137
        }
3430 rajveer 6138
        switch (field.id) {
6139
          case 1: // PROVIDER_ID
6140
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6141
              this.providerId = iprot.readI64();
6142
              setProviderIdIsSet(true);
6143
            } else { 
6144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6145
            }
6146
            break;
5247 rajveer 6147
          case -1: // TYPE
6148
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6149
              this.type = DeliveryType.findByValue(iprot.readI32());
6150
            } else { 
6151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6152
            }
6153
            break;
3430 rajveer 6154
          default:
6155
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6156
        }
3430 rajveer 6157
        iprot.readFieldEnd();
412 ashish 6158
      }
6159
      iprot.readStructEnd();
6160
      validate();
6161
    }
6162
 
3430 rajveer 6163
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6164
      validate();
6165
 
6166
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6167
      if (this.type != null) {
6168
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6169
        oprot.writeI32(this.type.getValue());
6170
        oprot.writeFieldEnd();
6171
      }
412 ashish 6172
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6173
      oprot.writeI64(this.providerId);
412 ashish 6174
      oprot.writeFieldEnd();
6175
      oprot.writeFieldStop();
6176
      oprot.writeStructEnd();
6177
    }
6178
 
6179
    @Override
6180
    public String toString() {
6181
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6182
      boolean first = true;
6183
 
648 chandransh 6184
      sb.append("providerId:");
6185
      sb.append(this.providerId);
412 ashish 6186
      first = false;
5247 rajveer 6187
      if (!first) sb.append(", ");
6188
      sb.append("type:");
6189
      if (this.type == null) {
6190
        sb.append("null");
6191
      } else {
6192
        sb.append(this.type);
6193
      }
6194
      first = false;
412 ashish 6195
      sb.append(")");
6196
      return sb.toString();
6197
    }
6198
 
3430 rajveer 6199
    public void validate() throws org.apache.thrift.TException {
412 ashish 6200
      // check for required fields
6201
    }
6202
 
3430 rajveer 6203
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6204
      try {
6205
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6206
      } catch (org.apache.thrift.TException te) {
6207
        throw new java.io.IOException(te);
6208
      }
6209
    }
6210
 
6211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6212
      try {
6213
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6214
        __isset_bit_vector = new BitSet(1);
6215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6216
      } catch (org.apache.thrift.TException te) {
6217
        throw new java.io.IOException(te);
6218
      }
6219
    }
6220
 
412 ashish 6221
  }
6222
 
3430 rajveer 6223
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6225
 
3430 rajveer 6226
    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);
6227
    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 6228
 
3430 rajveer 6229
    private String success; // required
6230
    private LogisticsServiceException se; // required
412 ashish 6231
 
6232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6234
      SUCCESS((short)0, "success"),
6235
      SE((short)1, "se");
412 ashish 6236
 
6237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6238
 
6239
      static {
6240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6241
          byName.put(field.getFieldName(), field);
6242
        }
6243
      }
6244
 
6245
      /**
6246
       * Find the _Fields constant that matches fieldId, or null if its not found.
6247
       */
6248
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6249
        switch(fieldId) {
6250
          case 0: // SUCCESS
6251
            return SUCCESS;
6252
          case 1: // SE
6253
            return SE;
6254
          default:
6255
            return null;
6256
        }
412 ashish 6257
      }
6258
 
6259
      /**
6260
       * Find the _Fields constant that matches fieldId, throwing an exception
6261
       * if it is not found.
6262
       */
6263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6264
        _Fields fields = findByThriftId(fieldId);
6265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6266
        return fields;
6267
      }
6268
 
6269
      /**
6270
       * Find the _Fields constant that matches name, or null if its not found.
6271
       */
6272
      public static _Fields findByName(String name) {
6273
        return byName.get(name);
6274
      }
6275
 
6276
      private final short _thriftId;
6277
      private final String _fieldName;
6278
 
6279
      _Fields(short thriftId, String fieldName) {
6280
        _thriftId = thriftId;
6281
        _fieldName = fieldName;
6282
      }
6283
 
6284
      public short getThriftFieldId() {
6285
        return _thriftId;
6286
      }
6287
 
6288
      public String getFieldName() {
6289
        return _fieldName;
6290
      }
6291
    }
6292
 
6293
    // isset id assignments
6294
 
3430 rajveer 6295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6296
    static {
3430 rajveer 6297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6298
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6300
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6304
    }
6305
 
6306
    public getEmptyAWB_result() {
6307
    }
6308
 
6309
    public getEmptyAWB_result(
648 chandransh 6310
      String success,
6311
      LogisticsServiceException se)
412 ashish 6312
    {
6313
      this();
6314
      this.success = success;
648 chandransh 6315
      this.se = se;
412 ashish 6316
    }
6317
 
6318
    /**
6319
     * Performs a deep copy on <i>other</i>.
6320
     */
6321
    public getEmptyAWB_result(getEmptyAWB_result other) {
6322
      if (other.isSetSuccess()) {
6323
        this.success = other.success;
6324
      }
648 chandransh 6325
      if (other.isSetSe()) {
6326
        this.se = new LogisticsServiceException(other.se);
6327
      }
412 ashish 6328
    }
6329
 
6330
    public getEmptyAWB_result deepCopy() {
6331
      return new getEmptyAWB_result(this);
6332
    }
6333
 
3430 rajveer 6334
    @Override
6335
    public void clear() {
6336
      this.success = null;
6337
      this.se = null;
412 ashish 6338
    }
6339
 
6340
    public String getSuccess() {
6341
      return this.success;
6342
    }
6343
 
3430 rajveer 6344
    public void setSuccess(String success) {
412 ashish 6345
      this.success = success;
6346
    }
6347
 
6348
    public void unsetSuccess() {
6349
      this.success = null;
6350
    }
6351
 
3430 rajveer 6352
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6353
    public boolean isSetSuccess() {
6354
      return this.success != null;
6355
    }
6356
 
6357
    public void setSuccessIsSet(boolean value) {
6358
      if (!value) {
6359
        this.success = null;
6360
      }
6361
    }
6362
 
648 chandransh 6363
    public LogisticsServiceException getSe() {
6364
      return this.se;
412 ashish 6365
    }
6366
 
3430 rajveer 6367
    public void setSe(LogisticsServiceException se) {
648 chandransh 6368
      this.se = se;
412 ashish 6369
    }
6370
 
648 chandransh 6371
    public void unsetSe() {
6372
      this.se = null;
412 ashish 6373
    }
6374
 
3430 rajveer 6375
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6376
    public boolean isSetSe() {
6377
      return this.se != null;
412 ashish 6378
    }
6379
 
648 chandransh 6380
    public void setSeIsSet(boolean value) {
412 ashish 6381
      if (!value) {
648 chandransh 6382
        this.se = null;
412 ashish 6383
      }
6384
    }
6385
 
6386
    public void setFieldValue(_Fields field, Object value) {
6387
      switch (field) {
6388
      case SUCCESS:
6389
        if (value == null) {
6390
          unsetSuccess();
6391
        } else {
648 chandransh 6392
          setSuccess((String)value);
412 ashish 6393
        }
6394
        break;
6395
 
648 chandransh 6396
      case SE:
6397
        if (value == null) {
6398
          unsetSe();
6399
        } else {
6400
          setSe((LogisticsServiceException)value);
6401
        }
6402
        break;
6403
 
412 ashish 6404
      }
6405
    }
6406
 
6407
    public Object getFieldValue(_Fields field) {
6408
      switch (field) {
6409
      case SUCCESS:
6410
        return getSuccess();
6411
 
648 chandransh 6412
      case SE:
6413
        return getSe();
6414
 
412 ashish 6415
      }
6416
      throw new IllegalStateException();
6417
    }
6418
 
3430 rajveer 6419
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6420
    public boolean isSet(_Fields field) {
6421
      if (field == null) {
6422
        throw new IllegalArgumentException();
6423
      }
412 ashish 6424
 
6425
      switch (field) {
6426
      case SUCCESS:
6427
        return isSetSuccess();
648 chandransh 6428
      case SE:
6429
        return isSetSe();
412 ashish 6430
      }
6431
      throw new IllegalStateException();
6432
    }
6433
 
6434
    @Override
6435
    public boolean equals(Object that) {
6436
      if (that == null)
6437
        return false;
648 chandransh 6438
      if (that instanceof getEmptyAWB_result)
6439
        return this.equals((getEmptyAWB_result)that);
412 ashish 6440
      return false;
6441
    }
6442
 
648 chandransh 6443
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6444
      if (that == null)
6445
        return false;
6446
 
6447
      boolean this_present_success = true && this.isSetSuccess();
6448
      boolean that_present_success = true && that.isSetSuccess();
6449
      if (this_present_success || that_present_success) {
6450
        if (!(this_present_success && that_present_success))
6451
          return false;
6452
        if (!this.success.equals(that.success))
6453
          return false;
6454
      }
6455
 
648 chandransh 6456
      boolean this_present_se = true && this.isSetSe();
6457
      boolean that_present_se = true && that.isSetSe();
6458
      if (this_present_se || that_present_se) {
6459
        if (!(this_present_se && that_present_se))
6460
          return false;
6461
        if (!this.se.equals(that.se))
6462
          return false;
6463
      }
6464
 
412 ashish 6465
      return true;
6466
    }
6467
 
6468
    @Override
6469
    public int hashCode() {
6470
      return 0;
6471
    }
6472
 
648 chandransh 6473
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6474
      if (!getClass().equals(other.getClass())) {
6475
        return getClass().getName().compareTo(other.getClass().getName());
6476
      }
6477
 
6478
      int lastComparison = 0;
648 chandransh 6479
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6480
 
3430 rajveer 6481
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6482
      if (lastComparison != 0) {
6483
        return lastComparison;
6484
      }
3430 rajveer 6485
      if (isSetSuccess()) {
6486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6487
        if (lastComparison != 0) {
6488
          return lastComparison;
6489
        }
412 ashish 6490
      }
3430 rajveer 6491
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6492
      if (lastComparison != 0) {
6493
        return lastComparison;
6494
      }
3430 rajveer 6495
      if (isSetSe()) {
6496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6497
        if (lastComparison != 0) {
6498
          return lastComparison;
6499
        }
412 ashish 6500
      }
6501
      return 0;
6502
    }
6503
 
3430 rajveer 6504
    public _Fields fieldForId(int fieldId) {
6505
      return _Fields.findByThriftId(fieldId);
6506
    }
6507
 
6508
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6509
      org.apache.thrift.protocol.TField field;
412 ashish 6510
      iprot.readStructBegin();
6511
      while (true)
6512
      {
6513
        field = iprot.readFieldBegin();
3430 rajveer 6514
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6515
          break;
6516
        }
3430 rajveer 6517
        switch (field.id) {
6518
          case 0: // SUCCESS
6519
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6520
              this.success = iprot.readString();
6521
            } else { 
6522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6523
            }
6524
            break;
6525
          case 1: // SE
6526
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6527
              this.se = new LogisticsServiceException();
6528
              this.se.read(iprot);
6529
            } else { 
6530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6531
            }
6532
            break;
6533
          default:
6534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6535
        }
3430 rajveer 6536
        iprot.readFieldEnd();
412 ashish 6537
      }
6538
      iprot.readStructEnd();
6539
      validate();
6540
    }
6541
 
3430 rajveer 6542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6543
      oprot.writeStructBegin(STRUCT_DESC);
6544
 
6545
      if (this.isSetSuccess()) {
6546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6547
        oprot.writeString(this.success);
412 ashish 6548
        oprot.writeFieldEnd();
648 chandransh 6549
      } else if (this.isSetSe()) {
6550
        oprot.writeFieldBegin(SE_FIELD_DESC);
6551
        this.se.write(oprot);
6552
        oprot.writeFieldEnd();
412 ashish 6553
      }
6554
      oprot.writeFieldStop();
6555
      oprot.writeStructEnd();
6556
    }
6557
 
6558
    @Override
6559
    public String toString() {
648 chandransh 6560
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6561
      boolean first = true;
6562
 
6563
      sb.append("success:");
6564
      if (this.success == null) {
6565
        sb.append("null");
6566
      } else {
6567
        sb.append(this.success);
6568
      }
6569
      first = false;
648 chandransh 6570
      if (!first) sb.append(", ");
6571
      sb.append("se:");
6572
      if (this.se == null) {
442 rajveer 6573
        sb.append("null");
6574
      } else {
648 chandransh 6575
        sb.append(this.se);
442 rajveer 6576
      }
6577
      first = false;
6578
      sb.append(")");
6579
      return sb.toString();
6580
    }
6581
 
3430 rajveer 6582
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6583
      // check for required fields
6584
    }
6585
 
3430 rajveer 6586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6587
      try {
6588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6589
      } catch (org.apache.thrift.TException te) {
6590
        throw new java.io.IOException(te);
6591
      }
6592
    }
6593
 
6594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6595
      try {
6596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6597
      } catch (org.apache.thrift.TException te) {
6598
        throw new java.io.IOException(te);
6599
      }
6600
    }
6601
 
442 rajveer 6602
  }
6603
 
3430 rajveer 6604
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6606
 
6643 rajveer 6607
    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 6608
    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 6609
 
6643 rajveer 6610
    private String awbNumber; // required
3430 rajveer 6611
    private long providerId; // required
442 rajveer 6612
 
6613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6615
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6616
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6617
 
6618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6619
 
6620
      static {
6621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6622
          byName.put(field.getFieldName(), field);
6623
        }
6624
      }
6625
 
6626
      /**
6627
       * Find the _Fields constant that matches fieldId, or null if its not found.
6628
       */
6629
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6630
        switch(fieldId) {
6643 rajveer 6631
          case 1: // AWB_NUMBER
6632
            return AWB_NUMBER;
3430 rajveer 6633
          case 2: // PROVIDER_ID
6634
            return PROVIDER_ID;
6635
          default:
6636
            return null;
6637
        }
442 rajveer 6638
      }
6639
 
6640
      /**
6641
       * Find the _Fields constant that matches fieldId, throwing an exception
6642
       * if it is not found.
6643
       */
6644
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6645
        _Fields fields = findByThriftId(fieldId);
6646
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6647
        return fields;
6648
      }
6649
 
6650
      /**
6651
       * Find the _Fields constant that matches name, or null if its not found.
6652
       */
6653
      public static _Fields findByName(String name) {
6654
        return byName.get(name);
6655
      }
6656
 
6657
      private final short _thriftId;
6658
      private final String _fieldName;
6659
 
6660
      _Fields(short thriftId, String fieldName) {
6661
        _thriftId = thriftId;
6662
        _fieldName = fieldName;
6663
      }
6664
 
6665
      public short getThriftFieldId() {
6666
        return _thriftId;
6667
      }
6668
 
6669
      public String getFieldName() {
6670
        return _fieldName;
6671
      }
6672
    }
6673
 
6674
    // isset id assignments
648 chandransh 6675
    private static final int __PROVIDERID_ISSET_ID = 0;
6676
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 6677
 
3430 rajveer 6678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 6679
    static {
3430 rajveer 6680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 6681
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 6682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6683
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 6687
    }
6688
 
648 chandransh 6689
    public getShipmentInfo_args() {
442 rajveer 6690
    }
6691
 
648 chandransh 6692
    public getShipmentInfo_args(
6643 rajveer 6693
      String awbNumber,
648 chandransh 6694
      long providerId)
442 rajveer 6695
    {
6696
      this();
6643 rajveer 6697
      this.awbNumber = awbNumber;
648 chandransh 6698
      this.providerId = providerId;
6699
      setProviderIdIsSet(true);
442 rajveer 6700
    }
6701
 
6702
    /**
6703
     * Performs a deep copy on <i>other</i>.
6704
     */
648 chandransh 6705
    public getShipmentInfo_args(getShipmentInfo_args other) {
6706
      __isset_bit_vector.clear();
6707
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 6708
      if (other.isSetAwbNumber()) {
6709
        this.awbNumber = other.awbNumber;
442 rajveer 6710
      }
648 chandransh 6711
      this.providerId = other.providerId;
442 rajveer 6712
    }
6713
 
648 chandransh 6714
    public getShipmentInfo_args deepCopy() {
6715
      return new getShipmentInfo_args(this);
442 rajveer 6716
    }
6717
 
3430 rajveer 6718
    @Override
6719
    public void clear() {
6643 rajveer 6720
      this.awbNumber = null;
3430 rajveer 6721
      setProviderIdIsSet(false);
6722
      this.providerId = 0;
442 rajveer 6723
    }
6724
 
6643 rajveer 6725
    public String getAwbNumber() {
6726
      return this.awbNumber;
442 rajveer 6727
    }
6728
 
6643 rajveer 6729
    public void setAwbNumber(String awbNumber) {
6730
      this.awbNumber = awbNumber;
442 rajveer 6731
    }
6732
 
6643 rajveer 6733
    public void unsetAwbNumber() {
6734
      this.awbNumber = null;
442 rajveer 6735
    }
6736
 
6643 rajveer 6737
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
6738
    public boolean isSetAwbNumber() {
6739
      return this.awbNumber != null;
442 rajveer 6740
    }
6741
 
6643 rajveer 6742
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 6743
      if (!value) {
6643 rajveer 6744
        this.awbNumber = null;
442 rajveer 6745
      }
6746
    }
6747
 
648 chandransh 6748
    public long getProviderId() {
6749
      return this.providerId;
442 rajveer 6750
    }
6751
 
3430 rajveer 6752
    public void setProviderId(long providerId) {
648 chandransh 6753
      this.providerId = providerId;
6754
      setProviderIdIsSet(true);
442 rajveer 6755
    }
6756
 
648 chandransh 6757
    public void unsetProviderId() {
6758
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 6759
    }
6760
 
3430 rajveer 6761
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6762
    public boolean isSetProviderId() {
6763
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 6764
    }
6765
 
648 chandransh 6766
    public void setProviderIdIsSet(boolean value) {
6767
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 6768
    }
6769
 
6770
    public void setFieldValue(_Fields field, Object value) {
6771
      switch (field) {
6643 rajveer 6772
      case AWB_NUMBER:
442 rajveer 6773
        if (value == null) {
6643 rajveer 6774
          unsetAwbNumber();
442 rajveer 6775
        } else {
6643 rajveer 6776
          setAwbNumber((String)value);
442 rajveer 6777
        }
6778
        break;
6779
 
648 chandransh 6780
      case PROVIDER_ID:
442 rajveer 6781
        if (value == null) {
648 chandransh 6782
          unsetProviderId();
442 rajveer 6783
        } else {
648 chandransh 6784
          setProviderId((Long)value);
442 rajveer 6785
        }
6786
        break;
6787
 
6788
      }
6789
    }
6790
 
6791
    public Object getFieldValue(_Fields field) {
6792
      switch (field) {
6643 rajveer 6793
      case AWB_NUMBER:
6794
        return getAwbNumber();
442 rajveer 6795
 
648 chandransh 6796
      case PROVIDER_ID:
3430 rajveer 6797
        return Long.valueOf(getProviderId());
442 rajveer 6798
 
6799
      }
6800
      throw new IllegalStateException();
6801
    }
6802
 
3430 rajveer 6803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6804
    public boolean isSet(_Fields field) {
6805
      if (field == null) {
6806
        throw new IllegalArgumentException();
6807
      }
442 rajveer 6808
 
6809
      switch (field) {
6643 rajveer 6810
      case AWB_NUMBER:
6811
        return isSetAwbNumber();
648 chandransh 6812
      case PROVIDER_ID:
6813
        return isSetProviderId();
442 rajveer 6814
      }
6815
      throw new IllegalStateException();
6816
    }
6817
 
6818
    @Override
6819
    public boolean equals(Object that) {
6820
      if (that == null)
6821
        return false;
648 chandransh 6822
      if (that instanceof getShipmentInfo_args)
6823
        return this.equals((getShipmentInfo_args)that);
442 rajveer 6824
      return false;
6825
    }
6826
 
648 chandransh 6827
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 6828
      if (that == null)
6829
        return false;
6830
 
6643 rajveer 6831
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
6832
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
6833
      if (this_present_awbNumber || that_present_awbNumber) {
6834
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 6835
          return false;
6643 rajveer 6836
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 6837
          return false;
6838
      }
6839
 
648 chandransh 6840
      boolean this_present_providerId = true;
6841
      boolean that_present_providerId = true;
6842
      if (this_present_providerId || that_present_providerId) {
6843
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 6844
          return false;
648 chandransh 6845
        if (this.providerId != that.providerId)
442 rajveer 6846
          return false;
6847
      }
6848
 
6849
      return true;
6850
    }
6851
 
6852
    @Override
6853
    public int hashCode() {
6854
      return 0;
6855
    }
6856
 
648 chandransh 6857
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 6858
      if (!getClass().equals(other.getClass())) {
6859
        return getClass().getName().compareTo(other.getClass().getName());
6860
      }
6861
 
6862
      int lastComparison = 0;
648 chandransh 6863
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 6864
 
6643 rajveer 6865
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 6866
      if (lastComparison != 0) {
6867
        return lastComparison;
6868
      }
6643 rajveer 6869
      if (isSetAwbNumber()) {
6870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 6871
        if (lastComparison != 0) {
6872
          return lastComparison;
6873
        }
442 rajveer 6874
      }
3430 rajveer 6875
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 6876
      if (lastComparison != 0) {
6877
        return lastComparison;
6878
      }
3430 rajveer 6879
      if (isSetProviderId()) {
6880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6881
        if (lastComparison != 0) {
6882
          return lastComparison;
6883
        }
442 rajveer 6884
      }
6885
      return 0;
6886
    }
6887
 
3430 rajveer 6888
    public _Fields fieldForId(int fieldId) {
6889
      return _Fields.findByThriftId(fieldId);
6890
    }
6891
 
6892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6893
      org.apache.thrift.protocol.TField field;
442 rajveer 6894
      iprot.readStructBegin();
6895
      while (true)
6896
      {
6897
        field = iprot.readFieldBegin();
3430 rajveer 6898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 6899
          break;
6900
        }
3430 rajveer 6901
        switch (field.id) {
6643 rajveer 6902
          case 1: // AWB_NUMBER
3430 rajveer 6903
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 6904
              this.awbNumber = iprot.readString();
3430 rajveer 6905
            } else { 
6906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6907
            }
6908
            break;
6909
          case 2: // PROVIDER_ID
6910
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6911
              this.providerId = iprot.readI64();
6912
              setProviderIdIsSet(true);
6913
            } else { 
6914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6915
            }
6916
            break;
6917
          default:
6918
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 6919
        }
3430 rajveer 6920
        iprot.readFieldEnd();
442 rajveer 6921
      }
6922
      iprot.readStructEnd();
6923
      validate();
6924
    }
6925
 
3430 rajveer 6926
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 6927
      validate();
6928
 
6929
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 6930
      if (this.awbNumber != null) {
6931
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
6932
        oprot.writeString(this.awbNumber);
442 rajveer 6933
        oprot.writeFieldEnd();
6934
      }
648 chandransh 6935
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6936
      oprot.writeI64(this.providerId);
6937
      oprot.writeFieldEnd();
442 rajveer 6938
      oprot.writeFieldStop();
6939
      oprot.writeStructEnd();
6940
    }
6941
 
6942
    @Override
6943
    public String toString() {
648 chandransh 6944
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 6945
      boolean first = true;
6946
 
6643 rajveer 6947
      sb.append("awbNumber:");
6948
      if (this.awbNumber == null) {
442 rajveer 6949
        sb.append("null");
6950
      } else {
6643 rajveer 6951
        sb.append(this.awbNumber);
442 rajveer 6952
      }
6953
      first = false;
6954
      if (!first) sb.append(", ");
648 chandransh 6955
      sb.append("providerId:");
6956
      sb.append(this.providerId);
442 rajveer 6957
      first = false;
6958
      sb.append(")");
6959
      return sb.toString();
6960
    }
6961
 
3430 rajveer 6962
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6963
      // check for required fields
6964
    }
6965
 
3430 rajveer 6966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6967
      try {
6968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6969
      } catch (org.apache.thrift.TException te) {
6970
        throw new java.io.IOException(te);
6971
      }
6972
    }
6973
 
6974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6975
      try {
6976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6977
      } catch (org.apache.thrift.TException te) {
6978
        throw new java.io.IOException(te);
6979
      }
6980
    }
6981
 
442 rajveer 6982
  }
6983
 
3430 rajveer 6984
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
6985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 6986
 
3430 rajveer 6987
    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);
6988
    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 6989
 
3430 rajveer 6990
    private List<AwbUpdate> success; // required
6991
    private LogisticsServiceException se; // required
412 ashish 6992
 
6993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6995
      SUCCESS((short)0, "success"),
6996
      SE((short)1, "se");
412 ashish 6997
 
6998
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6999
 
7000
      static {
7001
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7002
          byName.put(field.getFieldName(), field);
7003
        }
7004
      }
7005
 
7006
      /**
7007
       * Find the _Fields constant that matches fieldId, or null if its not found.
7008
       */
7009
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7010
        switch(fieldId) {
7011
          case 0: // SUCCESS
7012
            return SUCCESS;
7013
          case 1: // SE
7014
            return SE;
7015
          default:
7016
            return null;
7017
        }
412 ashish 7018
      }
7019
 
7020
      /**
7021
       * Find the _Fields constant that matches fieldId, throwing an exception
7022
       * if it is not found.
7023
       */
7024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7025
        _Fields fields = findByThriftId(fieldId);
7026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7027
        return fields;
7028
      }
7029
 
7030
      /**
7031
       * Find the _Fields constant that matches name, or null if its not found.
7032
       */
7033
      public static _Fields findByName(String name) {
7034
        return byName.get(name);
7035
      }
7036
 
7037
      private final short _thriftId;
7038
      private final String _fieldName;
7039
 
7040
      _Fields(short thriftId, String fieldName) {
7041
        _thriftId = thriftId;
7042
        _fieldName = fieldName;
7043
      }
7044
 
7045
      public short getThriftFieldId() {
7046
        return _thriftId;
7047
      }
7048
 
7049
      public String getFieldName() {
7050
        return _fieldName;
7051
      }
7052
    }
7053
 
7054
    // isset id assignments
7055
 
3430 rajveer 7056
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7057
    static {
3430 rajveer 7058
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7059
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7060
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7061
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7062
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7066
    }
7067
 
7068
    public getShipmentInfo_result() {
7069
    }
7070
 
7071
    public getShipmentInfo_result(
648 chandransh 7072
      List<AwbUpdate> success,
7073
      LogisticsServiceException se)
412 ashish 7074
    {
7075
      this();
7076
      this.success = success;
648 chandransh 7077
      this.se = se;
412 ashish 7078
    }
7079
 
7080
    /**
7081
     * Performs a deep copy on <i>other</i>.
7082
     */
7083
    public getShipmentInfo_result(getShipmentInfo_result other) {
7084
      if (other.isSetSuccess()) {
648 chandransh 7085
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7086
        for (AwbUpdate other_element : other.success) {
7087
          __this__success.add(new AwbUpdate(other_element));
7088
        }
7089
        this.success = __this__success;
412 ashish 7090
      }
648 chandransh 7091
      if (other.isSetSe()) {
7092
        this.se = new LogisticsServiceException(other.se);
7093
      }
412 ashish 7094
    }
7095
 
7096
    public getShipmentInfo_result deepCopy() {
7097
      return new getShipmentInfo_result(this);
7098
    }
7099
 
3430 rajveer 7100
    @Override
7101
    public void clear() {
7102
      this.success = null;
7103
      this.se = null;
412 ashish 7104
    }
7105
 
7106
    public int getSuccessSize() {
7107
      return (this.success == null) ? 0 : this.success.size();
7108
    }
7109
 
648 chandransh 7110
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7111
      return (this.success == null) ? null : this.success.iterator();
7112
    }
7113
 
648 chandransh 7114
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7115
      if (this.success == null) {
648 chandransh 7116
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7117
      }
7118
      this.success.add(elem);
7119
    }
7120
 
648 chandransh 7121
    public List<AwbUpdate> getSuccess() {
412 ashish 7122
      return this.success;
7123
    }
7124
 
3430 rajveer 7125
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7126
      this.success = success;
7127
    }
7128
 
7129
    public void unsetSuccess() {
7130
      this.success = null;
7131
    }
7132
 
3430 rajveer 7133
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7134
    public boolean isSetSuccess() {
7135
      return this.success != null;
7136
    }
7137
 
7138
    public void setSuccessIsSet(boolean value) {
7139
      if (!value) {
7140
        this.success = null;
7141
      }
7142
    }
7143
 
648 chandransh 7144
    public LogisticsServiceException getSe() {
7145
      return this.se;
412 ashish 7146
    }
7147
 
3430 rajveer 7148
    public void setSe(LogisticsServiceException se) {
648 chandransh 7149
      this.se = se;
412 ashish 7150
    }
7151
 
648 chandransh 7152
    public void unsetSe() {
7153
      this.se = null;
412 ashish 7154
    }
7155
 
3430 rajveer 7156
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7157
    public boolean isSetSe() {
7158
      return this.se != null;
412 ashish 7159
    }
7160
 
648 chandransh 7161
    public void setSeIsSet(boolean value) {
7162
      if (!value) {
7163
        this.se = null;
412 ashish 7164
      }
7165
    }
7166
 
7167
    public void setFieldValue(_Fields field, Object value) {
7168
      switch (field) {
648 chandransh 7169
      case SUCCESS:
412 ashish 7170
        if (value == null) {
648 chandransh 7171
          unsetSuccess();
412 ashish 7172
        } else {
648 chandransh 7173
          setSuccess((List<AwbUpdate>)value);
412 ashish 7174
        }
7175
        break;
7176
 
648 chandransh 7177
      case SE:
412 ashish 7178
        if (value == null) {
648 chandransh 7179
          unsetSe();
412 ashish 7180
        } else {
648 chandransh 7181
          setSe((LogisticsServiceException)value);
412 ashish 7182
        }
7183
        break;
7184
 
7185
      }
7186
    }
7187
 
7188
    public Object getFieldValue(_Fields field) {
7189
      switch (field) {
648 chandransh 7190
      case SUCCESS:
7191
        return getSuccess();
412 ashish 7192
 
648 chandransh 7193
      case SE:
7194
        return getSe();
412 ashish 7195
 
7196
      }
7197
      throw new IllegalStateException();
7198
    }
7199
 
3430 rajveer 7200
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7201
    public boolean isSet(_Fields field) {
7202
      if (field == null) {
7203
        throw new IllegalArgumentException();
7204
      }
412 ashish 7205
 
7206
      switch (field) {
648 chandransh 7207
      case SUCCESS:
7208
        return isSetSuccess();
7209
      case SE:
7210
        return isSetSe();
412 ashish 7211
      }
7212
      throw new IllegalStateException();
7213
    }
7214
 
7215
    @Override
7216
    public boolean equals(Object that) {
7217
      if (that == null)
7218
        return false;
648 chandransh 7219
      if (that instanceof getShipmentInfo_result)
7220
        return this.equals((getShipmentInfo_result)that);
412 ashish 7221
      return false;
7222
    }
7223
 
648 chandransh 7224
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7225
      if (that == null)
7226
        return false;
7227
 
648 chandransh 7228
      boolean this_present_success = true && this.isSetSuccess();
7229
      boolean that_present_success = true && that.isSetSuccess();
7230
      if (this_present_success || that_present_success) {
7231
        if (!(this_present_success && that_present_success))
412 ashish 7232
          return false;
648 chandransh 7233
        if (!this.success.equals(that.success))
412 ashish 7234
          return false;
7235
      }
7236
 
648 chandransh 7237
      boolean this_present_se = true && this.isSetSe();
7238
      boolean that_present_se = true && that.isSetSe();
7239
      if (this_present_se || that_present_se) {
7240
        if (!(this_present_se && that_present_se))
412 ashish 7241
          return false;
648 chandransh 7242
        if (!this.se.equals(that.se))
412 ashish 7243
          return false;
7244
      }
7245
 
7246
      return true;
7247
    }
7248
 
7249
    @Override
7250
    public int hashCode() {
7251
      return 0;
7252
    }
7253
 
648 chandransh 7254
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7255
      if (!getClass().equals(other.getClass())) {
7256
        return getClass().getName().compareTo(other.getClass().getName());
7257
      }
7258
 
7259
      int lastComparison = 0;
648 chandransh 7260
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7261
 
3430 rajveer 7262
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7263
      if (lastComparison != 0) {
7264
        return lastComparison;
7265
      }
3430 rajveer 7266
      if (isSetSuccess()) {
7267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7268
        if (lastComparison != 0) {
7269
          return lastComparison;
7270
        }
412 ashish 7271
      }
3430 rajveer 7272
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7273
      if (lastComparison != 0) {
7274
        return lastComparison;
7275
      }
3430 rajveer 7276
      if (isSetSe()) {
7277
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7278
        if (lastComparison != 0) {
7279
          return lastComparison;
7280
        }
412 ashish 7281
      }
7282
      return 0;
7283
    }
7284
 
3430 rajveer 7285
    public _Fields fieldForId(int fieldId) {
7286
      return _Fields.findByThriftId(fieldId);
7287
    }
7288
 
7289
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7290
      org.apache.thrift.protocol.TField field;
412 ashish 7291
      iprot.readStructBegin();
7292
      while (true)
7293
      {
7294
        field = iprot.readFieldBegin();
3430 rajveer 7295
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7296
          break;
7297
        }
3430 rajveer 7298
        switch (field.id) {
7299
          case 0: // SUCCESS
7300
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7301
              {
7792 anupam.sin 7302
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7303
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7304
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7305
                {
7792 anupam.sin 7306
                  AwbUpdate _elem10; // required
7307
                  _elem10 = new AwbUpdate();
7308
                  _elem10.read(iprot);
7309
                  this.success.add(_elem10);
412 ashish 7310
                }
3430 rajveer 7311
                iprot.readListEnd();
412 ashish 7312
              }
3430 rajveer 7313
            } else { 
7314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7315
            }
7316
            break;
7317
          case 1: // SE
7318
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7319
              this.se = new LogisticsServiceException();
7320
              this.se.read(iprot);
7321
            } else { 
7322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7323
            }
7324
            break;
7325
          default:
7326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7327
        }
3430 rajveer 7328
        iprot.readFieldEnd();
412 ashish 7329
      }
7330
      iprot.readStructEnd();
7331
      validate();
7332
    }
7333
 
3430 rajveer 7334
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7335
      oprot.writeStructBegin(STRUCT_DESC);
7336
 
7337
      if (this.isSetSuccess()) {
7338
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7339
        {
3430 rajveer 7340
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7341
          for (AwbUpdate _iter11 : this.success)
412 ashish 7342
          {
7792 anupam.sin 7343
            _iter11.write(oprot);
412 ashish 7344
          }
7345
          oprot.writeListEnd();
7346
        }
7347
        oprot.writeFieldEnd();
648 chandransh 7348
      } else if (this.isSetSe()) {
7349
        oprot.writeFieldBegin(SE_FIELD_DESC);
7350
        this.se.write(oprot);
7351
        oprot.writeFieldEnd();
412 ashish 7352
      }
7353
      oprot.writeFieldStop();
7354
      oprot.writeStructEnd();
7355
    }
7356
 
7357
    @Override
7358
    public String toString() {
648 chandransh 7359
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7360
      boolean first = true;
7361
 
7362
      sb.append("success:");
7363
      if (this.success == null) {
7364
        sb.append("null");
7365
      } else {
7366
        sb.append(this.success);
7367
      }
7368
      first = false;
648 chandransh 7369
      if (!first) sb.append(", ");
7370
      sb.append("se:");
7371
      if (this.se == null) {
7372
        sb.append("null");
7373
      } else {
7374
        sb.append(this.se);
7375
      }
7376
      first = false;
412 ashish 7377
      sb.append(")");
7378
      return sb.toString();
7379
    }
7380
 
3430 rajveer 7381
    public void validate() throws org.apache.thrift.TException {
412 ashish 7382
      // check for required fields
7383
    }
7384
 
3430 rajveer 7385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7386
      try {
7387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7388
      } catch (org.apache.thrift.TException te) {
7389
        throw new java.io.IOException(te);
7390
      }
7391
    }
7392
 
7393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7394
      try {
7395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7396
      } catch (org.apache.thrift.TException te) {
7397
        throw new java.io.IOException(te);
7398
      }
7399
    }
7400
 
412 ashish 7401
  }
7402
 
6643 rajveer 7403
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7405
 
7406
    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);
7407
 
7408
    private AwbUpdate update; // required
7409
 
7410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7412
      UPDATE((short)1, "update");
7413
 
7414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7415
 
7416
      static {
7417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7418
          byName.put(field.getFieldName(), field);
7419
        }
7420
      }
7421
 
7422
      /**
7423
       * Find the _Fields constant that matches fieldId, or null if its not found.
7424
       */
7425
      public static _Fields findByThriftId(int fieldId) {
7426
        switch(fieldId) {
7427
          case 1: // UPDATE
7428
            return UPDATE;
7429
          default:
7430
            return null;
7431
        }
7432
      }
7433
 
7434
      /**
7435
       * Find the _Fields constant that matches fieldId, throwing an exception
7436
       * if it is not found.
7437
       */
7438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7439
        _Fields fields = findByThriftId(fieldId);
7440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7441
        return fields;
7442
      }
7443
 
7444
      /**
7445
       * Find the _Fields constant that matches name, or null if its not found.
7446
       */
7447
      public static _Fields findByName(String name) {
7448
        return byName.get(name);
7449
      }
7450
 
7451
      private final short _thriftId;
7452
      private final String _fieldName;
7453
 
7454
      _Fields(short thriftId, String fieldName) {
7455
        _thriftId = thriftId;
7456
        _fieldName = fieldName;
7457
      }
7458
 
7459
      public short getThriftFieldId() {
7460
        return _thriftId;
7461
      }
7462
 
7463
      public String getFieldName() {
7464
        return _fieldName;
7465
      }
7466
    }
7467
 
7468
    // isset id assignments
7469
 
7470
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7471
    static {
7472
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7473
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7474
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7475
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7476
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7477
    }
7478
 
7479
    public storeShipmentInfo_args() {
7480
    }
7481
 
7482
    public storeShipmentInfo_args(
7483
      AwbUpdate update)
7484
    {
7485
      this();
7486
      this.update = update;
7487
    }
7488
 
7489
    /**
7490
     * Performs a deep copy on <i>other</i>.
7491
     */
7492
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7493
      if (other.isSetUpdate()) {
7494
        this.update = new AwbUpdate(other.update);
7495
      }
7496
    }
7497
 
7498
    public storeShipmentInfo_args deepCopy() {
7499
      return new storeShipmentInfo_args(this);
7500
    }
7501
 
7502
    @Override
7503
    public void clear() {
7504
      this.update = null;
7505
    }
7506
 
7507
    public AwbUpdate getUpdate() {
7508
      return this.update;
7509
    }
7510
 
7511
    public void setUpdate(AwbUpdate update) {
7512
      this.update = update;
7513
    }
7514
 
7515
    public void unsetUpdate() {
7516
      this.update = null;
7517
    }
7518
 
7519
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7520
    public boolean isSetUpdate() {
7521
      return this.update != null;
7522
    }
7523
 
7524
    public void setUpdateIsSet(boolean value) {
7525
      if (!value) {
7526
        this.update = null;
7527
      }
7528
    }
7529
 
7530
    public void setFieldValue(_Fields field, Object value) {
7531
      switch (field) {
7532
      case UPDATE:
7533
        if (value == null) {
7534
          unsetUpdate();
7535
        } else {
7536
          setUpdate((AwbUpdate)value);
7537
        }
7538
        break;
7539
 
7540
      }
7541
    }
7542
 
7543
    public Object getFieldValue(_Fields field) {
7544
      switch (field) {
7545
      case UPDATE:
7546
        return getUpdate();
7547
 
7548
      }
7549
      throw new IllegalStateException();
7550
    }
7551
 
7552
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7553
    public boolean isSet(_Fields field) {
7554
      if (field == null) {
7555
        throw new IllegalArgumentException();
7556
      }
7557
 
7558
      switch (field) {
7559
      case UPDATE:
7560
        return isSetUpdate();
7561
      }
7562
      throw new IllegalStateException();
7563
    }
7564
 
7565
    @Override
7566
    public boolean equals(Object that) {
7567
      if (that == null)
7568
        return false;
7569
      if (that instanceof storeShipmentInfo_args)
7570
        return this.equals((storeShipmentInfo_args)that);
7571
      return false;
7572
    }
7573
 
7574
    public boolean equals(storeShipmentInfo_args that) {
7575
      if (that == null)
7576
        return false;
7577
 
7578
      boolean this_present_update = true && this.isSetUpdate();
7579
      boolean that_present_update = true && that.isSetUpdate();
7580
      if (this_present_update || that_present_update) {
7581
        if (!(this_present_update && that_present_update))
7582
          return false;
7583
        if (!this.update.equals(that.update))
7584
          return false;
7585
      }
7586
 
7587
      return true;
7588
    }
7589
 
7590
    @Override
7591
    public int hashCode() {
7592
      return 0;
7593
    }
7594
 
7595
    public int compareTo(storeShipmentInfo_args other) {
7596
      if (!getClass().equals(other.getClass())) {
7597
        return getClass().getName().compareTo(other.getClass().getName());
7598
      }
7599
 
7600
      int lastComparison = 0;
7601
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7602
 
7603
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7604
      if (lastComparison != 0) {
7605
        return lastComparison;
7606
      }
7607
      if (isSetUpdate()) {
7608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7609
        if (lastComparison != 0) {
7610
          return lastComparison;
7611
        }
7612
      }
7613
      return 0;
7614
    }
7615
 
7616
    public _Fields fieldForId(int fieldId) {
7617
      return _Fields.findByThriftId(fieldId);
7618
    }
7619
 
7620
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7621
      org.apache.thrift.protocol.TField field;
7622
      iprot.readStructBegin();
7623
      while (true)
7624
      {
7625
        field = iprot.readFieldBegin();
7626
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7627
          break;
7628
        }
7629
        switch (field.id) {
7630
          case 1: // UPDATE
7631
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7632
              this.update = new AwbUpdate();
7633
              this.update.read(iprot);
7634
            } else { 
7635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7636
            }
7637
            break;
7638
          default:
7639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7640
        }
7641
        iprot.readFieldEnd();
7642
      }
7643
      iprot.readStructEnd();
7644
      validate();
7645
    }
7646
 
7647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7648
      validate();
7649
 
7650
      oprot.writeStructBegin(STRUCT_DESC);
7651
      if (this.update != null) {
7652
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7653
        this.update.write(oprot);
7654
        oprot.writeFieldEnd();
7655
      }
7656
      oprot.writeFieldStop();
7657
      oprot.writeStructEnd();
7658
    }
7659
 
7660
    @Override
7661
    public String toString() {
7662
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
7663
      boolean first = true;
7664
 
7665
      sb.append("update:");
7666
      if (this.update == null) {
7667
        sb.append("null");
7668
      } else {
7669
        sb.append(this.update);
7670
      }
7671
      first = false;
7672
      sb.append(")");
7673
      return sb.toString();
7674
    }
7675
 
7676
    public void validate() throws org.apache.thrift.TException {
7677
      // check for required fields
7678
    }
7679
 
7680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7681
      try {
7682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7683
      } catch (org.apache.thrift.TException te) {
7684
        throw new java.io.IOException(te);
7685
      }
7686
    }
7687
 
7688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7689
      try {
7690
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7691
      } catch (org.apache.thrift.TException te) {
7692
        throw new java.io.IOException(te);
7693
      }
7694
    }
7695
 
7696
  }
7697
 
7698
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7699
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
7700
 
7701
    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);
7702
 
7703
    private LogisticsServiceException se; // required
7704
 
7705
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7706
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7707
      SE((short)1, "se");
7708
 
7709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7710
 
7711
      static {
7712
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7713
          byName.put(field.getFieldName(), field);
7714
        }
7715
      }
7716
 
7717
      /**
7718
       * Find the _Fields constant that matches fieldId, or null if its not found.
7719
       */
7720
      public static _Fields findByThriftId(int fieldId) {
7721
        switch(fieldId) {
7722
          case 1: // SE
7723
            return SE;
7724
          default:
7725
            return null;
7726
        }
7727
      }
7728
 
7729
      /**
7730
       * Find the _Fields constant that matches fieldId, throwing an exception
7731
       * if it is not found.
7732
       */
7733
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7734
        _Fields fields = findByThriftId(fieldId);
7735
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7736
        return fields;
7737
      }
7738
 
7739
      /**
7740
       * Find the _Fields constant that matches name, or null if its not found.
7741
       */
7742
      public static _Fields findByName(String name) {
7743
        return byName.get(name);
7744
      }
7745
 
7746
      private final short _thriftId;
7747
      private final String _fieldName;
7748
 
7749
      _Fields(short thriftId, String fieldName) {
7750
        _thriftId = thriftId;
7751
        _fieldName = fieldName;
7752
      }
7753
 
7754
      public short getThriftFieldId() {
7755
        return _thriftId;
7756
      }
7757
 
7758
      public String getFieldName() {
7759
        return _fieldName;
7760
      }
7761
    }
7762
 
7763
    // isset id assignments
7764
 
7765
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7766
    static {
7767
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7768
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
7772
    }
7773
 
7774
    public storeShipmentInfo_result() {
7775
    }
7776
 
7777
    public storeShipmentInfo_result(
7778
      LogisticsServiceException se)
7779
    {
7780
      this();
7781
      this.se = se;
7782
    }
7783
 
7784
    /**
7785
     * Performs a deep copy on <i>other</i>.
7786
     */
7787
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
7788
      if (other.isSetSe()) {
7789
        this.se = new LogisticsServiceException(other.se);
7790
      }
7791
    }
7792
 
7793
    public storeShipmentInfo_result deepCopy() {
7794
      return new storeShipmentInfo_result(this);
7795
    }
7796
 
7797
    @Override
7798
    public void clear() {
7799
      this.se = null;
7800
    }
7801
 
7802
    public LogisticsServiceException getSe() {
7803
      return this.se;
7804
    }
7805
 
7806
    public void setSe(LogisticsServiceException se) {
7807
      this.se = se;
7808
    }
7809
 
7810
    public void unsetSe() {
7811
      this.se = null;
7812
    }
7813
 
7814
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7815
    public boolean isSetSe() {
7816
      return this.se != null;
7817
    }
7818
 
7819
    public void setSeIsSet(boolean value) {
7820
      if (!value) {
7821
        this.se = null;
7822
      }
7823
    }
7824
 
7825
    public void setFieldValue(_Fields field, Object value) {
7826
      switch (field) {
7827
      case SE:
7828
        if (value == null) {
7829
          unsetSe();
7830
        } else {
7831
          setSe((LogisticsServiceException)value);
7832
        }
7833
        break;
7834
 
7835
      }
7836
    }
7837
 
7838
    public Object getFieldValue(_Fields field) {
7839
      switch (field) {
7840
      case SE:
7841
        return getSe();
7842
 
7843
      }
7844
      throw new IllegalStateException();
7845
    }
7846
 
7847
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7848
    public boolean isSet(_Fields field) {
7849
      if (field == null) {
7850
        throw new IllegalArgumentException();
7851
      }
7852
 
7853
      switch (field) {
7854
      case SE:
7855
        return isSetSe();
7856
      }
7857
      throw new IllegalStateException();
7858
    }
7859
 
7860
    @Override
7861
    public boolean equals(Object that) {
7862
      if (that == null)
7863
        return false;
7864
      if (that instanceof storeShipmentInfo_result)
7865
        return this.equals((storeShipmentInfo_result)that);
7866
      return false;
7867
    }
7868
 
7869
    public boolean equals(storeShipmentInfo_result that) {
7870
      if (that == null)
7871
        return false;
7872
 
7873
      boolean this_present_se = true && this.isSetSe();
7874
      boolean that_present_se = true && that.isSetSe();
7875
      if (this_present_se || that_present_se) {
7876
        if (!(this_present_se && that_present_se))
7877
          return false;
7878
        if (!this.se.equals(that.se))
7879
          return false;
7880
      }
7881
 
7882
      return true;
7883
    }
7884
 
7885
    @Override
7886
    public int hashCode() {
7887
      return 0;
7888
    }
7889
 
7890
    public int compareTo(storeShipmentInfo_result other) {
7891
      if (!getClass().equals(other.getClass())) {
7892
        return getClass().getName().compareTo(other.getClass().getName());
7893
      }
7894
 
7895
      int lastComparison = 0;
7896
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
7897
 
7898
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7899
      if (lastComparison != 0) {
7900
        return lastComparison;
7901
      }
7902
      if (isSetSe()) {
7903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7904
        if (lastComparison != 0) {
7905
          return lastComparison;
7906
        }
7907
      }
7908
      return 0;
7909
    }
7910
 
7911
    public _Fields fieldForId(int fieldId) {
7912
      return _Fields.findByThriftId(fieldId);
7913
    }
7914
 
7915
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7916
      org.apache.thrift.protocol.TField field;
7917
      iprot.readStructBegin();
7918
      while (true)
7919
      {
7920
        field = iprot.readFieldBegin();
7921
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7922
          break;
7923
        }
7924
        switch (field.id) {
7925
          case 1: // SE
7926
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7927
              this.se = new LogisticsServiceException();
7928
              this.se.read(iprot);
7929
            } else { 
7930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7931
            }
7932
            break;
7933
          default:
7934
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7935
        }
7936
        iprot.readFieldEnd();
7937
      }
7938
      iprot.readStructEnd();
7939
      validate();
7940
    }
7941
 
7942
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7943
      oprot.writeStructBegin(STRUCT_DESC);
7944
 
7945
      if (this.isSetSe()) {
7946
        oprot.writeFieldBegin(SE_FIELD_DESC);
7947
        this.se.write(oprot);
7948
        oprot.writeFieldEnd();
7949
      }
7950
      oprot.writeFieldStop();
7951
      oprot.writeStructEnd();
7952
    }
7953
 
7954
    @Override
7955
    public String toString() {
7956
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
7957
      boolean first = true;
7958
 
7959
      sb.append("se:");
7960
      if (this.se == null) {
7961
        sb.append("null");
7962
      } else {
7963
        sb.append(this.se);
7964
      }
7965
      first = false;
7966
      sb.append(")");
7967
      return sb.toString();
7968
    }
7969
 
7970
    public void validate() throws org.apache.thrift.TException {
7971
      // check for required fields
7972
    }
7973
 
7974
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7975
      try {
7976
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7977
      } catch (org.apache.thrift.TException te) {
7978
        throw new java.io.IOException(te);
7979
      }
7980
    }
7981
 
7982
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7983
      try {
7984
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7985
      } catch (org.apache.thrift.TException te) {
7986
        throw new java.io.IOException(te);
7987
      }
7988
    }
7989
 
7990
  }
7991
 
3430 rajveer 7992
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
7993
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 7994
 
3430 rajveer 7995
    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);
7996
    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 7997
 
3430 rajveer 7998
    private long providerId; // required
7999
    private String pinCode; // required
730 chandransh 8000
 
8001
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8002
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8003
      PROVIDER_ID((short)1, "providerId"),
8004
      PIN_CODE((short)2, "pinCode");
8005
 
8006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8007
 
8008
      static {
8009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8010
          byName.put(field.getFieldName(), field);
8011
        }
8012
      }
8013
 
8014
      /**
8015
       * Find the _Fields constant that matches fieldId, or null if its not found.
8016
       */
8017
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8018
        switch(fieldId) {
8019
          case 1: // PROVIDER_ID
8020
            return PROVIDER_ID;
8021
          case 2: // PIN_CODE
8022
            return PIN_CODE;
8023
          default:
8024
            return null;
8025
        }
730 chandransh 8026
      }
8027
 
8028
      /**
8029
       * Find the _Fields constant that matches fieldId, throwing an exception
8030
       * if it is not found.
8031
       */
8032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8033
        _Fields fields = findByThriftId(fieldId);
8034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8035
        return fields;
8036
      }
8037
 
8038
      /**
8039
       * Find the _Fields constant that matches name, or null if its not found.
8040
       */
8041
      public static _Fields findByName(String name) {
8042
        return byName.get(name);
8043
      }
8044
 
8045
      private final short _thriftId;
8046
      private final String _fieldName;
8047
 
8048
      _Fields(short thriftId, String fieldName) {
8049
        _thriftId = thriftId;
8050
        _fieldName = fieldName;
8051
      }
8052
 
8053
      public short getThriftFieldId() {
8054
        return _thriftId;
8055
      }
8056
 
8057
      public String getFieldName() {
8058
        return _fieldName;
8059
      }
8060
    }
8061
 
8062
    // isset id assignments
8063
    private static final int __PROVIDERID_ISSET_ID = 0;
8064
    private BitSet __isset_bit_vector = new BitSet(1);
8065
 
3430 rajveer 8066
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8067
    static {
3430 rajveer 8068
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8069
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8071
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8073
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8074
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8075
    }
8076
 
8077
    public getDestinationCode_args() {
8078
    }
8079
 
8080
    public getDestinationCode_args(
8081
      long providerId,
8082
      String pinCode)
8083
    {
8084
      this();
8085
      this.providerId = providerId;
8086
      setProviderIdIsSet(true);
8087
      this.pinCode = pinCode;
8088
    }
8089
 
8090
    /**
8091
     * Performs a deep copy on <i>other</i>.
8092
     */
8093
    public getDestinationCode_args(getDestinationCode_args other) {
8094
      __isset_bit_vector.clear();
8095
      __isset_bit_vector.or(other.__isset_bit_vector);
8096
      this.providerId = other.providerId;
8097
      if (other.isSetPinCode()) {
8098
        this.pinCode = other.pinCode;
8099
      }
8100
    }
8101
 
8102
    public getDestinationCode_args deepCopy() {
8103
      return new getDestinationCode_args(this);
8104
    }
8105
 
3430 rajveer 8106
    @Override
8107
    public void clear() {
8108
      setProviderIdIsSet(false);
8109
      this.providerId = 0;
8110
      this.pinCode = null;
730 chandransh 8111
    }
8112
 
8113
    public long getProviderId() {
8114
      return this.providerId;
8115
    }
8116
 
3430 rajveer 8117
    public void setProviderId(long providerId) {
730 chandransh 8118
      this.providerId = providerId;
8119
      setProviderIdIsSet(true);
8120
    }
8121
 
8122
    public void unsetProviderId() {
8123
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8124
    }
8125
 
3430 rajveer 8126
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8127
    public boolean isSetProviderId() {
8128
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8129
    }
8130
 
8131
    public void setProviderIdIsSet(boolean value) {
8132
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8133
    }
8134
 
8135
    public String getPinCode() {
8136
      return this.pinCode;
8137
    }
8138
 
3430 rajveer 8139
    public void setPinCode(String pinCode) {
730 chandransh 8140
      this.pinCode = pinCode;
8141
    }
8142
 
8143
    public void unsetPinCode() {
8144
      this.pinCode = null;
8145
    }
8146
 
3430 rajveer 8147
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8148
    public boolean isSetPinCode() {
8149
      return this.pinCode != null;
8150
    }
8151
 
8152
    public void setPinCodeIsSet(boolean value) {
8153
      if (!value) {
8154
        this.pinCode = null;
8155
      }
8156
    }
8157
 
8158
    public void setFieldValue(_Fields field, Object value) {
8159
      switch (field) {
8160
      case PROVIDER_ID:
8161
        if (value == null) {
8162
          unsetProviderId();
8163
        } else {
8164
          setProviderId((Long)value);
8165
        }
8166
        break;
8167
 
8168
      case PIN_CODE:
8169
        if (value == null) {
8170
          unsetPinCode();
8171
        } else {
8172
          setPinCode((String)value);
8173
        }
8174
        break;
8175
 
8176
      }
8177
    }
8178
 
8179
    public Object getFieldValue(_Fields field) {
8180
      switch (field) {
8181
      case PROVIDER_ID:
3430 rajveer 8182
        return Long.valueOf(getProviderId());
730 chandransh 8183
 
8184
      case PIN_CODE:
8185
        return getPinCode();
8186
 
8187
      }
8188
      throw new IllegalStateException();
8189
    }
8190
 
3430 rajveer 8191
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8192
    public boolean isSet(_Fields field) {
8193
      if (field == null) {
8194
        throw new IllegalArgumentException();
8195
      }
730 chandransh 8196
 
8197
      switch (field) {
8198
      case PROVIDER_ID:
8199
        return isSetProviderId();
8200
      case PIN_CODE:
8201
        return isSetPinCode();
8202
      }
8203
      throw new IllegalStateException();
8204
    }
8205
 
8206
    @Override
8207
    public boolean equals(Object that) {
8208
      if (that == null)
8209
        return false;
8210
      if (that instanceof getDestinationCode_args)
8211
        return this.equals((getDestinationCode_args)that);
8212
      return false;
8213
    }
8214
 
8215
    public boolean equals(getDestinationCode_args that) {
8216
      if (that == null)
8217
        return false;
8218
 
8219
      boolean this_present_providerId = true;
8220
      boolean that_present_providerId = true;
8221
      if (this_present_providerId || that_present_providerId) {
8222
        if (!(this_present_providerId && that_present_providerId))
8223
          return false;
8224
        if (this.providerId != that.providerId)
8225
          return false;
8226
      }
8227
 
8228
      boolean this_present_pinCode = true && this.isSetPinCode();
8229
      boolean that_present_pinCode = true && that.isSetPinCode();
8230
      if (this_present_pinCode || that_present_pinCode) {
8231
        if (!(this_present_pinCode && that_present_pinCode))
8232
          return false;
8233
        if (!this.pinCode.equals(that.pinCode))
8234
          return false;
8235
      }
8236
 
8237
      return true;
8238
    }
8239
 
8240
    @Override
8241
    public int hashCode() {
8242
      return 0;
8243
    }
8244
 
8245
    public int compareTo(getDestinationCode_args other) {
8246
      if (!getClass().equals(other.getClass())) {
8247
        return getClass().getName().compareTo(other.getClass().getName());
8248
      }
8249
 
8250
      int lastComparison = 0;
8251
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8252
 
3430 rajveer 8253
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8254
      if (lastComparison != 0) {
8255
        return lastComparison;
8256
      }
3430 rajveer 8257
      if (isSetProviderId()) {
8258
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8259
        if (lastComparison != 0) {
8260
          return lastComparison;
8261
        }
730 chandransh 8262
      }
3430 rajveer 8263
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8264
      if (lastComparison != 0) {
8265
        return lastComparison;
8266
      }
3430 rajveer 8267
      if (isSetPinCode()) {
8268
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8269
        if (lastComparison != 0) {
8270
          return lastComparison;
8271
        }
730 chandransh 8272
      }
8273
      return 0;
8274
    }
8275
 
3430 rajveer 8276
    public _Fields fieldForId(int fieldId) {
8277
      return _Fields.findByThriftId(fieldId);
8278
    }
8279
 
8280
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8281
      org.apache.thrift.protocol.TField field;
730 chandransh 8282
      iprot.readStructBegin();
8283
      while (true)
8284
      {
8285
        field = iprot.readFieldBegin();
3430 rajveer 8286
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8287
          break;
8288
        }
3430 rajveer 8289
        switch (field.id) {
8290
          case 1: // PROVIDER_ID
8291
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8292
              this.providerId = iprot.readI64();
8293
              setProviderIdIsSet(true);
8294
            } else { 
8295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8296
            }
8297
            break;
8298
          case 2: // PIN_CODE
8299
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8300
              this.pinCode = iprot.readString();
8301
            } else { 
8302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8303
            }
8304
            break;
8305
          default:
8306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8307
        }
3430 rajveer 8308
        iprot.readFieldEnd();
730 chandransh 8309
      }
8310
      iprot.readStructEnd();
8311
      validate();
8312
    }
8313
 
3430 rajveer 8314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8315
      validate();
8316
 
8317
      oprot.writeStructBegin(STRUCT_DESC);
8318
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8319
      oprot.writeI64(this.providerId);
8320
      oprot.writeFieldEnd();
8321
      if (this.pinCode != null) {
8322
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8323
        oprot.writeString(this.pinCode);
8324
        oprot.writeFieldEnd();
8325
      }
8326
      oprot.writeFieldStop();
8327
      oprot.writeStructEnd();
8328
    }
8329
 
8330
    @Override
8331
    public String toString() {
8332
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8333
      boolean first = true;
8334
 
8335
      sb.append("providerId:");
8336
      sb.append(this.providerId);
8337
      first = false;
8338
      if (!first) sb.append(", ");
8339
      sb.append("pinCode:");
8340
      if (this.pinCode == null) {
8341
        sb.append("null");
8342
      } else {
8343
        sb.append(this.pinCode);
8344
      }
8345
      first = false;
8346
      sb.append(")");
8347
      return sb.toString();
8348
    }
8349
 
3430 rajveer 8350
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8351
      // check for required fields
8352
    }
8353
 
3430 rajveer 8354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8355
      try {
8356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8357
      } catch (org.apache.thrift.TException te) {
8358
        throw new java.io.IOException(te);
8359
      }
8360
    }
8361
 
8362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8363
      try {
8364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8365
      } catch (org.apache.thrift.TException te) {
8366
        throw new java.io.IOException(te);
8367
      }
8368
    }
8369
 
730 chandransh 8370
  }
8371
 
3430 rajveer 8372
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8374
 
3430 rajveer 8375
    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);
8376
    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 8377
 
3430 rajveer 8378
    private String success; // required
8379
    private LogisticsServiceException se; // required
730 chandransh 8380
 
8381
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8382
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8383
      SUCCESS((short)0, "success"),
8384
      SE((short)1, "se");
8385
 
8386
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8387
 
8388
      static {
8389
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8390
          byName.put(field.getFieldName(), field);
8391
        }
8392
      }
8393
 
8394
      /**
8395
       * Find the _Fields constant that matches fieldId, or null if its not found.
8396
       */
8397
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8398
        switch(fieldId) {
8399
          case 0: // SUCCESS
8400
            return SUCCESS;
8401
          case 1: // SE
8402
            return SE;
8403
          default:
8404
            return null;
8405
        }
730 chandransh 8406
      }
8407
 
8408
      /**
8409
       * Find the _Fields constant that matches fieldId, throwing an exception
8410
       * if it is not found.
8411
       */
8412
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8413
        _Fields fields = findByThriftId(fieldId);
8414
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8415
        return fields;
8416
      }
8417
 
8418
      /**
8419
       * Find the _Fields constant that matches name, or null if its not found.
8420
       */
8421
      public static _Fields findByName(String name) {
8422
        return byName.get(name);
8423
      }
8424
 
8425
      private final short _thriftId;
8426
      private final String _fieldName;
8427
 
8428
      _Fields(short thriftId, String fieldName) {
8429
        _thriftId = thriftId;
8430
        _fieldName = fieldName;
8431
      }
8432
 
8433
      public short getThriftFieldId() {
8434
        return _thriftId;
8435
      }
8436
 
8437
      public String getFieldName() {
8438
        return _fieldName;
8439
      }
8440
    }
8441
 
8442
    // isset id assignments
8443
 
3430 rajveer 8444
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8445
    static {
3430 rajveer 8446
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8447
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8449
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8450
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8453
    }
8454
 
8455
    public getDestinationCode_result() {
8456
    }
8457
 
8458
    public getDestinationCode_result(
8459
      String success,
8460
      LogisticsServiceException se)
8461
    {
8462
      this();
8463
      this.success = success;
8464
      this.se = se;
8465
    }
8466
 
8467
    /**
8468
     * Performs a deep copy on <i>other</i>.
8469
     */
8470
    public getDestinationCode_result(getDestinationCode_result other) {
8471
      if (other.isSetSuccess()) {
8472
        this.success = other.success;
8473
      }
8474
      if (other.isSetSe()) {
8475
        this.se = new LogisticsServiceException(other.se);
8476
      }
8477
    }
8478
 
8479
    public getDestinationCode_result deepCopy() {
8480
      return new getDestinationCode_result(this);
8481
    }
8482
 
3430 rajveer 8483
    @Override
8484
    public void clear() {
8485
      this.success = null;
8486
      this.se = null;
730 chandransh 8487
    }
8488
 
8489
    public String getSuccess() {
8490
      return this.success;
8491
    }
8492
 
3430 rajveer 8493
    public void setSuccess(String success) {
730 chandransh 8494
      this.success = success;
8495
    }
8496
 
8497
    public void unsetSuccess() {
8498
      this.success = null;
8499
    }
8500
 
3430 rajveer 8501
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8502
    public boolean isSetSuccess() {
8503
      return this.success != null;
8504
    }
8505
 
8506
    public void setSuccessIsSet(boolean value) {
8507
      if (!value) {
8508
        this.success = null;
8509
      }
8510
    }
8511
 
8512
    public LogisticsServiceException getSe() {
8513
      return this.se;
8514
    }
8515
 
3430 rajveer 8516
    public void setSe(LogisticsServiceException se) {
730 chandransh 8517
      this.se = se;
8518
    }
8519
 
8520
    public void unsetSe() {
8521
      this.se = null;
8522
    }
8523
 
3430 rajveer 8524
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8525
    public boolean isSetSe() {
8526
      return this.se != null;
8527
    }
8528
 
8529
    public void setSeIsSet(boolean value) {
8530
      if (!value) {
8531
        this.se = null;
8532
      }
8533
    }
8534
 
8535
    public void setFieldValue(_Fields field, Object value) {
8536
      switch (field) {
8537
      case SUCCESS:
8538
        if (value == null) {
8539
          unsetSuccess();
8540
        } else {
8541
          setSuccess((String)value);
8542
        }
8543
        break;
8544
 
8545
      case SE:
8546
        if (value == null) {
8547
          unsetSe();
8548
        } else {
8549
          setSe((LogisticsServiceException)value);
8550
        }
8551
        break;
8552
 
8553
      }
8554
    }
8555
 
8556
    public Object getFieldValue(_Fields field) {
8557
      switch (field) {
8558
      case SUCCESS:
8559
        return getSuccess();
8560
 
8561
      case SE:
8562
        return getSe();
8563
 
8564
      }
8565
      throw new IllegalStateException();
8566
    }
8567
 
3430 rajveer 8568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8569
    public boolean isSet(_Fields field) {
8570
      if (field == null) {
8571
        throw new IllegalArgumentException();
8572
      }
730 chandransh 8573
 
8574
      switch (field) {
8575
      case SUCCESS:
8576
        return isSetSuccess();
8577
      case SE:
8578
        return isSetSe();
8579
      }
8580
      throw new IllegalStateException();
8581
    }
8582
 
8583
    @Override
8584
    public boolean equals(Object that) {
8585
      if (that == null)
8586
        return false;
8587
      if (that instanceof getDestinationCode_result)
8588
        return this.equals((getDestinationCode_result)that);
8589
      return false;
8590
    }
8591
 
8592
    public boolean equals(getDestinationCode_result that) {
8593
      if (that == null)
8594
        return false;
8595
 
8596
      boolean this_present_success = true && this.isSetSuccess();
8597
      boolean that_present_success = true && that.isSetSuccess();
8598
      if (this_present_success || that_present_success) {
8599
        if (!(this_present_success && that_present_success))
8600
          return false;
8601
        if (!this.success.equals(that.success))
8602
          return false;
8603
      }
8604
 
8605
      boolean this_present_se = true && this.isSetSe();
8606
      boolean that_present_se = true && that.isSetSe();
8607
      if (this_present_se || that_present_se) {
8608
        if (!(this_present_se && that_present_se))
8609
          return false;
8610
        if (!this.se.equals(that.se))
8611
          return false;
8612
      }
8613
 
8614
      return true;
8615
    }
8616
 
8617
    @Override
8618
    public int hashCode() {
8619
      return 0;
8620
    }
8621
 
8622
    public int compareTo(getDestinationCode_result other) {
8623
      if (!getClass().equals(other.getClass())) {
8624
        return getClass().getName().compareTo(other.getClass().getName());
8625
      }
8626
 
8627
      int lastComparison = 0;
8628
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8629
 
3430 rajveer 8630
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8631
      if (lastComparison != 0) {
8632
        return lastComparison;
8633
      }
3430 rajveer 8634
      if (isSetSuccess()) {
8635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8636
        if (lastComparison != 0) {
8637
          return lastComparison;
8638
        }
730 chandransh 8639
      }
3430 rajveer 8640
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8641
      if (lastComparison != 0) {
8642
        return lastComparison;
8643
      }
3430 rajveer 8644
      if (isSetSe()) {
8645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8646
        if (lastComparison != 0) {
8647
          return lastComparison;
8648
        }
730 chandransh 8649
      }
8650
      return 0;
8651
    }
8652
 
3430 rajveer 8653
    public _Fields fieldForId(int fieldId) {
8654
      return _Fields.findByThriftId(fieldId);
8655
    }
8656
 
8657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8658
      org.apache.thrift.protocol.TField field;
730 chandransh 8659
      iprot.readStructBegin();
8660
      while (true)
8661
      {
8662
        field = iprot.readFieldBegin();
3430 rajveer 8663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8664
          break;
8665
        }
3430 rajveer 8666
        switch (field.id) {
8667
          case 0: // SUCCESS
8668
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8669
              this.success = iprot.readString();
8670
            } else { 
8671
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8672
            }
8673
            break;
8674
          case 1: // SE
8675
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8676
              this.se = new LogisticsServiceException();
8677
              this.se.read(iprot);
8678
            } else { 
8679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8680
            }
8681
            break;
8682
          default:
8683
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8684
        }
3430 rajveer 8685
        iprot.readFieldEnd();
730 chandransh 8686
      }
8687
      iprot.readStructEnd();
8688
      validate();
8689
    }
8690
 
3430 rajveer 8691
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8692
      oprot.writeStructBegin(STRUCT_DESC);
8693
 
8694
      if (this.isSetSuccess()) {
8695
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8696
        oprot.writeString(this.success);
8697
        oprot.writeFieldEnd();
8698
      } else if (this.isSetSe()) {
8699
        oprot.writeFieldBegin(SE_FIELD_DESC);
8700
        this.se.write(oprot);
8701
        oprot.writeFieldEnd();
8702
      }
8703
      oprot.writeFieldStop();
8704
      oprot.writeStructEnd();
8705
    }
8706
 
8707
    @Override
8708
    public String toString() {
8709
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
8710
      boolean first = true;
8711
 
8712
      sb.append("success:");
8713
      if (this.success == null) {
8714
        sb.append("null");
8715
      } else {
8716
        sb.append(this.success);
8717
      }
8718
      first = false;
8719
      if (!first) sb.append(", ");
8720
      sb.append("se:");
8721
      if (this.se == null) {
8722
        sb.append("null");
8723
      } else {
8724
        sb.append(this.se);
8725
      }
8726
      first = false;
8727
      sb.append(")");
8728
      return sb.toString();
8729
    }
8730
 
3430 rajveer 8731
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8732
      // check for required fields
8733
    }
8734
 
3430 rajveer 8735
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8736
      try {
8737
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8738
      } catch (org.apache.thrift.TException te) {
8739
        throw new java.io.IOException(te);
8740
      }
8741
    }
8742
 
8743
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8744
      try {
8745
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8746
      } catch (org.apache.thrift.TException te) {
8747
        throw new java.io.IOException(te);
8748
      }
8749
    }
8750
 
730 chandransh 8751
  }
8752
 
3430 rajveer 8753
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
8754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 8755
 
3430 rajveer 8756
    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);
8757
    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 8758
 
3430 rajveer 8759
    private long providerId; // required
8760
    private String type; // required
1139 chandransh 8761
 
8762
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8763
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 8764
      PROVIDER_ID((short)1, "providerId"),
8765
      TYPE((short)2, "type");
1139 chandransh 8766
 
8767
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8768
 
8769
      static {
8770
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8771
          byName.put(field.getFieldName(), field);
8772
        }
8773
      }
8774
 
8775
      /**
8776
       * Find the _Fields constant that matches fieldId, or null if its not found.
8777
       */
8778
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8779
        switch(fieldId) {
8780
          case 1: // PROVIDER_ID
8781
            return PROVIDER_ID;
8782
          case 2: // TYPE
8783
            return TYPE;
8784
          default:
8785
            return null;
8786
        }
1139 chandransh 8787
      }
8788
 
8789
      /**
8790
       * Find the _Fields constant that matches fieldId, throwing an exception
8791
       * if it is not found.
8792
       */
8793
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8794
        _Fields fields = findByThriftId(fieldId);
8795
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8796
        return fields;
8797
      }
8798
 
8799
      /**
8800
       * Find the _Fields constant that matches name, or null if its not found.
8801
       */
8802
      public static _Fields findByName(String name) {
8803
        return byName.get(name);
8804
      }
8805
 
8806
      private final short _thriftId;
8807
      private final String _fieldName;
8808
 
8809
      _Fields(short thriftId, String fieldName) {
8810
        _thriftId = thriftId;
8811
        _fieldName = fieldName;
8812
      }
8813
 
8814
      public short getThriftFieldId() {
8815
        return _thriftId;
8816
      }
8817
 
8818
      public String getFieldName() {
8819
        return _fieldName;
8820
      }
8821
    }
8822
 
8823
    // isset id assignments
8824
    private static final int __PROVIDERID_ISSET_ID = 0;
8825
    private BitSet __isset_bit_vector = new BitSet(1);
8826
 
3430 rajveer 8827
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8828
    static {
3430 rajveer 8829
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8830
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8831
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8832
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8833
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 8836
    }
8837
 
8838
    public getFreeAwbCount_args() {
8839
    }
8840
 
8841
    public getFreeAwbCount_args(
3103 chandransh 8842
      long providerId,
8843
      String type)
1139 chandransh 8844
    {
8845
      this();
8846
      this.providerId = providerId;
8847
      setProviderIdIsSet(true);
3103 chandransh 8848
      this.type = type;
1139 chandransh 8849
    }
8850
 
8851
    /**
8852
     * Performs a deep copy on <i>other</i>.
8853
     */
8854
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
8855
      __isset_bit_vector.clear();
8856
      __isset_bit_vector.or(other.__isset_bit_vector);
8857
      this.providerId = other.providerId;
3103 chandransh 8858
      if (other.isSetType()) {
8859
        this.type = other.type;
8860
      }
1139 chandransh 8861
    }
8862
 
8863
    public getFreeAwbCount_args deepCopy() {
8864
      return new getFreeAwbCount_args(this);
8865
    }
8866
 
3430 rajveer 8867
    @Override
8868
    public void clear() {
8869
      setProviderIdIsSet(false);
8870
      this.providerId = 0;
8871
      this.type = null;
1139 chandransh 8872
    }
8873
 
8874
    public long getProviderId() {
8875
      return this.providerId;
8876
    }
8877
 
3430 rajveer 8878
    public void setProviderId(long providerId) {
1139 chandransh 8879
      this.providerId = providerId;
8880
      setProviderIdIsSet(true);
8881
    }
8882
 
8883
    public void unsetProviderId() {
8884
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8885
    }
8886
 
3430 rajveer 8887
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 8888
    public boolean isSetProviderId() {
8889
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8890
    }
8891
 
8892
    public void setProviderIdIsSet(boolean value) {
8893
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8894
    }
8895
 
3103 chandransh 8896
    public String getType() {
8897
      return this.type;
8898
    }
8899
 
3430 rajveer 8900
    public void setType(String type) {
3103 chandransh 8901
      this.type = type;
8902
    }
8903
 
8904
    public void unsetType() {
8905
      this.type = null;
8906
    }
8907
 
3430 rajveer 8908
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 8909
    public boolean isSetType() {
8910
      return this.type != null;
8911
    }
8912
 
8913
    public void setTypeIsSet(boolean value) {
8914
      if (!value) {
8915
        this.type = null;
8916
      }
8917
    }
8918
 
1139 chandransh 8919
    public void setFieldValue(_Fields field, Object value) {
8920
      switch (field) {
8921
      case PROVIDER_ID:
8922
        if (value == null) {
8923
          unsetProviderId();
8924
        } else {
8925
          setProviderId((Long)value);
8926
        }
8927
        break;
8928
 
3103 chandransh 8929
      case TYPE:
8930
        if (value == null) {
8931
          unsetType();
8932
        } else {
8933
          setType((String)value);
8934
        }
8935
        break;
8936
 
1139 chandransh 8937
      }
8938
    }
8939
 
8940
    public Object getFieldValue(_Fields field) {
8941
      switch (field) {
8942
      case PROVIDER_ID:
3430 rajveer 8943
        return Long.valueOf(getProviderId());
1139 chandransh 8944
 
3103 chandransh 8945
      case TYPE:
8946
        return getType();
8947
 
1139 chandransh 8948
      }
8949
      throw new IllegalStateException();
8950
    }
8951
 
3430 rajveer 8952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8953
    public boolean isSet(_Fields field) {
8954
      if (field == null) {
8955
        throw new IllegalArgumentException();
8956
      }
1139 chandransh 8957
 
8958
      switch (field) {
8959
      case PROVIDER_ID:
8960
        return isSetProviderId();
3103 chandransh 8961
      case TYPE:
8962
        return isSetType();
1139 chandransh 8963
      }
8964
      throw new IllegalStateException();
8965
    }
8966
 
8967
    @Override
8968
    public boolean equals(Object that) {
8969
      if (that == null)
8970
        return false;
8971
      if (that instanceof getFreeAwbCount_args)
8972
        return this.equals((getFreeAwbCount_args)that);
8973
      return false;
8974
    }
8975
 
8976
    public boolean equals(getFreeAwbCount_args that) {
8977
      if (that == null)
8978
        return false;
8979
 
8980
      boolean this_present_providerId = true;
8981
      boolean that_present_providerId = true;
8982
      if (this_present_providerId || that_present_providerId) {
8983
        if (!(this_present_providerId && that_present_providerId))
8984
          return false;
8985
        if (this.providerId != that.providerId)
8986
          return false;
8987
      }
8988
 
3103 chandransh 8989
      boolean this_present_type = true && this.isSetType();
8990
      boolean that_present_type = true && that.isSetType();
8991
      if (this_present_type || that_present_type) {
8992
        if (!(this_present_type && that_present_type))
8993
          return false;
8994
        if (!this.type.equals(that.type))
8995
          return false;
8996
      }
8997
 
1139 chandransh 8998
      return true;
8999
    }
9000
 
9001
    @Override
9002
    public int hashCode() {
9003
      return 0;
9004
    }
9005
 
9006
    public int compareTo(getFreeAwbCount_args other) {
9007
      if (!getClass().equals(other.getClass())) {
9008
        return getClass().getName().compareTo(other.getClass().getName());
9009
      }
9010
 
9011
      int lastComparison = 0;
9012
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9013
 
3430 rajveer 9014
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9015
      if (lastComparison != 0) {
9016
        return lastComparison;
9017
      }
3430 rajveer 9018
      if (isSetProviderId()) {
9019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9020
        if (lastComparison != 0) {
9021
          return lastComparison;
9022
        }
1139 chandransh 9023
      }
3430 rajveer 9024
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9025
      if (lastComparison != 0) {
9026
        return lastComparison;
9027
      }
3430 rajveer 9028
      if (isSetType()) {
9029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9030
        if (lastComparison != 0) {
9031
          return lastComparison;
9032
        }
3103 chandransh 9033
      }
1139 chandransh 9034
      return 0;
9035
    }
9036
 
3430 rajveer 9037
    public _Fields fieldForId(int fieldId) {
9038
      return _Fields.findByThriftId(fieldId);
9039
    }
9040
 
9041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9042
      org.apache.thrift.protocol.TField field;
1139 chandransh 9043
      iprot.readStructBegin();
9044
      while (true)
9045
      {
9046
        field = iprot.readFieldBegin();
3430 rajveer 9047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9048
          break;
9049
        }
3430 rajveer 9050
        switch (field.id) {
9051
          case 1: // PROVIDER_ID
9052
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9053
              this.providerId = iprot.readI64();
9054
              setProviderIdIsSet(true);
9055
            } else { 
9056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9057
            }
9058
            break;
9059
          case 2: // TYPE
9060
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9061
              this.type = iprot.readString();
9062
            } else { 
9063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9064
            }
9065
            break;
9066
          default:
9067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9068
        }
3430 rajveer 9069
        iprot.readFieldEnd();
1139 chandransh 9070
      }
9071
      iprot.readStructEnd();
9072
      validate();
9073
    }
9074
 
3430 rajveer 9075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9076
      validate();
9077
 
9078
      oprot.writeStructBegin(STRUCT_DESC);
9079
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9080
      oprot.writeI64(this.providerId);
9081
      oprot.writeFieldEnd();
3103 chandransh 9082
      if (this.type != null) {
9083
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9084
        oprot.writeString(this.type);
9085
        oprot.writeFieldEnd();
9086
      }
1139 chandransh 9087
      oprot.writeFieldStop();
9088
      oprot.writeStructEnd();
9089
    }
9090
 
9091
    @Override
9092
    public String toString() {
9093
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9094
      boolean first = true;
9095
 
9096
      sb.append("providerId:");
9097
      sb.append(this.providerId);
9098
      first = false;
3103 chandransh 9099
      if (!first) sb.append(", ");
9100
      sb.append("type:");
9101
      if (this.type == null) {
9102
        sb.append("null");
9103
      } else {
9104
        sb.append(this.type);
9105
      }
9106
      first = false;
1139 chandransh 9107
      sb.append(")");
9108
      return sb.toString();
9109
    }
9110
 
3430 rajveer 9111
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9112
      // check for required fields
9113
    }
9114
 
3430 rajveer 9115
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9116
      try {
9117
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9118
      } catch (org.apache.thrift.TException te) {
9119
        throw new java.io.IOException(te);
9120
      }
9121
    }
9122
 
9123
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9124
      try {
9125
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9126
      } catch (org.apache.thrift.TException te) {
9127
        throw new java.io.IOException(te);
9128
      }
9129
    }
9130
 
1139 chandransh 9131
  }
9132
 
3430 rajveer 9133
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9134
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9135
 
3430 rajveer 9136
    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 9137
 
3430 rajveer 9138
    private long success; // required
1139 chandransh 9139
 
9140
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9141
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9142
      SUCCESS((short)0, "success");
9143
 
9144
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9145
 
9146
      static {
9147
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9148
          byName.put(field.getFieldName(), field);
9149
        }
9150
      }
9151
 
9152
      /**
9153
       * Find the _Fields constant that matches fieldId, or null if its not found.
9154
       */
9155
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9156
        switch(fieldId) {
9157
          case 0: // SUCCESS
9158
            return SUCCESS;
9159
          default:
9160
            return null;
9161
        }
1139 chandransh 9162
      }
9163
 
9164
      /**
9165
       * Find the _Fields constant that matches fieldId, throwing an exception
9166
       * if it is not found.
9167
       */
9168
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9169
        _Fields fields = findByThriftId(fieldId);
9170
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9171
        return fields;
9172
      }
9173
 
9174
      /**
9175
       * Find the _Fields constant that matches name, or null if its not found.
9176
       */
9177
      public static _Fields findByName(String name) {
9178
        return byName.get(name);
9179
      }
9180
 
9181
      private final short _thriftId;
9182
      private final String _fieldName;
9183
 
9184
      _Fields(short thriftId, String fieldName) {
9185
        _thriftId = thriftId;
9186
        _fieldName = fieldName;
9187
      }
9188
 
9189
      public short getThriftFieldId() {
9190
        return _thriftId;
9191
      }
9192
 
9193
      public String getFieldName() {
9194
        return _fieldName;
9195
      }
9196
    }
9197
 
9198
    // isset id assignments
9199
    private static final int __SUCCESS_ISSET_ID = 0;
9200
    private BitSet __isset_bit_vector = new BitSet(1);
9201
 
3430 rajveer 9202
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9203
    static {
3430 rajveer 9204
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9205
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9207
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9208
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9209
    }
9210
 
9211
    public getFreeAwbCount_result() {
9212
    }
9213
 
9214
    public getFreeAwbCount_result(
9215
      long success)
9216
    {
9217
      this();
9218
      this.success = success;
9219
      setSuccessIsSet(true);
9220
    }
9221
 
9222
    /**
9223
     * Performs a deep copy on <i>other</i>.
9224
     */
9225
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9226
      __isset_bit_vector.clear();
9227
      __isset_bit_vector.or(other.__isset_bit_vector);
9228
      this.success = other.success;
9229
    }
9230
 
9231
    public getFreeAwbCount_result deepCopy() {
9232
      return new getFreeAwbCount_result(this);
9233
    }
9234
 
3430 rajveer 9235
    @Override
9236
    public void clear() {
9237
      setSuccessIsSet(false);
9238
      this.success = 0;
1139 chandransh 9239
    }
9240
 
9241
    public long getSuccess() {
9242
      return this.success;
9243
    }
9244
 
3430 rajveer 9245
    public void setSuccess(long success) {
1139 chandransh 9246
      this.success = success;
9247
      setSuccessIsSet(true);
9248
    }
9249
 
9250
    public void unsetSuccess() {
9251
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9252
    }
9253
 
3430 rajveer 9254
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9255
    public boolean isSetSuccess() {
9256
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9257
    }
9258
 
9259
    public void setSuccessIsSet(boolean value) {
9260
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9261
    }
9262
 
9263
    public void setFieldValue(_Fields field, Object value) {
9264
      switch (field) {
9265
      case SUCCESS:
9266
        if (value == null) {
9267
          unsetSuccess();
9268
        } else {
9269
          setSuccess((Long)value);
9270
        }
9271
        break;
9272
 
9273
      }
9274
    }
9275
 
9276
    public Object getFieldValue(_Fields field) {
9277
      switch (field) {
9278
      case SUCCESS:
3430 rajveer 9279
        return Long.valueOf(getSuccess());
1139 chandransh 9280
 
9281
      }
9282
      throw new IllegalStateException();
9283
    }
9284
 
3430 rajveer 9285
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9286
    public boolean isSet(_Fields field) {
9287
      if (field == null) {
9288
        throw new IllegalArgumentException();
9289
      }
1139 chandransh 9290
 
9291
      switch (field) {
9292
      case SUCCESS:
9293
        return isSetSuccess();
9294
      }
9295
      throw new IllegalStateException();
9296
    }
9297
 
9298
    @Override
9299
    public boolean equals(Object that) {
9300
      if (that == null)
9301
        return false;
9302
      if (that instanceof getFreeAwbCount_result)
9303
        return this.equals((getFreeAwbCount_result)that);
9304
      return false;
9305
    }
9306
 
9307
    public boolean equals(getFreeAwbCount_result that) {
9308
      if (that == null)
9309
        return false;
9310
 
9311
      boolean this_present_success = true;
9312
      boolean that_present_success = true;
9313
      if (this_present_success || that_present_success) {
9314
        if (!(this_present_success && that_present_success))
9315
          return false;
9316
        if (this.success != that.success)
9317
          return false;
9318
      }
9319
 
9320
      return true;
9321
    }
9322
 
9323
    @Override
9324
    public int hashCode() {
9325
      return 0;
9326
    }
9327
 
9328
    public int compareTo(getFreeAwbCount_result other) {
9329
      if (!getClass().equals(other.getClass())) {
9330
        return getClass().getName().compareTo(other.getClass().getName());
9331
      }
9332
 
9333
      int lastComparison = 0;
9334
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9335
 
3430 rajveer 9336
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9337
      if (lastComparison != 0) {
9338
        return lastComparison;
9339
      }
3430 rajveer 9340
      if (isSetSuccess()) {
9341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9342
        if (lastComparison != 0) {
9343
          return lastComparison;
9344
        }
1139 chandransh 9345
      }
9346
      return 0;
9347
    }
9348
 
3430 rajveer 9349
    public _Fields fieldForId(int fieldId) {
9350
      return _Fields.findByThriftId(fieldId);
9351
    }
9352
 
9353
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9354
      org.apache.thrift.protocol.TField field;
1139 chandransh 9355
      iprot.readStructBegin();
9356
      while (true)
9357
      {
9358
        field = iprot.readFieldBegin();
3430 rajveer 9359
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9360
          break;
9361
        }
3430 rajveer 9362
        switch (field.id) {
9363
          case 0: // SUCCESS
9364
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9365
              this.success = iprot.readI64();
9366
              setSuccessIsSet(true);
9367
            } else { 
9368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9369
            }
9370
            break;
9371
          default:
9372
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9373
        }
3430 rajveer 9374
        iprot.readFieldEnd();
1139 chandransh 9375
      }
9376
      iprot.readStructEnd();
9377
      validate();
9378
    }
9379
 
3430 rajveer 9380
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9381
      oprot.writeStructBegin(STRUCT_DESC);
9382
 
9383
      if (this.isSetSuccess()) {
9384
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9385
        oprot.writeI64(this.success);
9386
        oprot.writeFieldEnd();
9387
      }
9388
      oprot.writeFieldStop();
9389
      oprot.writeStructEnd();
9390
    }
9391
 
9392
    @Override
9393
    public String toString() {
9394
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9395
      boolean first = true;
9396
 
9397
      sb.append("success:");
9398
      sb.append(this.success);
9399
      first = false;
9400
      sb.append(")");
9401
      return sb.toString();
9402
    }
9403
 
3430 rajveer 9404
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9405
      // check for required fields
9406
    }
9407
 
3430 rajveer 9408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9409
      try {
9410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9411
      } catch (org.apache.thrift.TException te) {
9412
        throw new java.io.IOException(te);
9413
      }
9414
    }
9415
 
9416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9417
      try {
9418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9419
      } catch (org.apache.thrift.TException te) {
9420
        throw new java.io.IOException(te);
9421
      }
9422
    }
9423
 
1139 chandransh 9424
  }
9425
 
3430 rajveer 9426
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9428
 
3430 rajveer 9429
    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);
9430
    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 9431
 
3430 rajveer 9432
    private long fromDate; // required
9433
    private long toDate; // required
1730 ankur.sing 9434
 
9435
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9436
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9437
      FROM_DATE((short)1, "fromDate"),
9438
      TO_DATE((short)2, "toDate");
9439
 
9440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9441
 
9442
      static {
9443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9444
          byName.put(field.getFieldName(), field);
9445
        }
9446
      }
9447
 
9448
      /**
9449
       * Find the _Fields constant that matches fieldId, or null if its not found.
9450
       */
9451
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9452
        switch(fieldId) {
9453
          case 1: // FROM_DATE
9454
            return FROM_DATE;
9455
          case 2: // TO_DATE
9456
            return TO_DATE;
9457
          default:
9458
            return null;
9459
        }
1730 ankur.sing 9460
      }
9461
 
9462
      /**
9463
       * Find the _Fields constant that matches fieldId, throwing an exception
9464
       * if it is not found.
9465
       */
9466
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9467
        _Fields fields = findByThriftId(fieldId);
9468
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9469
        return fields;
9470
      }
9471
 
9472
      /**
9473
       * Find the _Fields constant that matches name, or null if its not found.
9474
       */
9475
      public static _Fields findByName(String name) {
9476
        return byName.get(name);
9477
      }
9478
 
9479
      private final short _thriftId;
9480
      private final String _fieldName;
9481
 
9482
      _Fields(short thriftId, String fieldName) {
9483
        _thriftId = thriftId;
9484
        _fieldName = fieldName;
9485
      }
9486
 
9487
      public short getThriftFieldId() {
9488
        return _thriftId;
9489
      }
9490
 
9491
      public String getFieldName() {
9492
        return _fieldName;
9493
      }
9494
    }
9495
 
9496
    // isset id assignments
9497
    private static final int __FROMDATE_ISSET_ID = 0;
9498
    private static final int __TODATE_ISSET_ID = 1;
9499
    private BitSet __isset_bit_vector = new BitSet(2);
9500
 
3430 rajveer 9501
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9502
    static {
3430 rajveer 9503
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9504
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9506
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9510
    }
9511
 
9512
    public getHolidays_args() {
9513
    }
9514
 
9515
    public getHolidays_args(
9516
      long fromDate,
9517
      long toDate)
9518
    {
9519
      this();
9520
      this.fromDate = fromDate;
9521
      setFromDateIsSet(true);
9522
      this.toDate = toDate;
9523
      setToDateIsSet(true);
9524
    }
9525
 
9526
    /**
9527
     * Performs a deep copy on <i>other</i>.
9528
     */
9529
    public getHolidays_args(getHolidays_args other) {
9530
      __isset_bit_vector.clear();
9531
      __isset_bit_vector.or(other.__isset_bit_vector);
9532
      this.fromDate = other.fromDate;
9533
      this.toDate = other.toDate;
9534
    }
9535
 
9536
    public getHolidays_args deepCopy() {
9537
      return new getHolidays_args(this);
9538
    }
9539
 
3430 rajveer 9540
    @Override
9541
    public void clear() {
9542
      setFromDateIsSet(false);
9543
      this.fromDate = 0;
9544
      setToDateIsSet(false);
9545
      this.toDate = 0;
1730 ankur.sing 9546
    }
9547
 
9548
    public long getFromDate() {
9549
      return this.fromDate;
9550
    }
9551
 
3430 rajveer 9552
    public void setFromDate(long fromDate) {
1730 ankur.sing 9553
      this.fromDate = fromDate;
9554
      setFromDateIsSet(true);
9555
    }
9556
 
9557
    public void unsetFromDate() {
9558
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9559
    }
9560
 
3430 rajveer 9561
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9562
    public boolean isSetFromDate() {
9563
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9564
    }
9565
 
9566
    public void setFromDateIsSet(boolean value) {
9567
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9568
    }
9569
 
9570
    public long getToDate() {
9571
      return this.toDate;
9572
    }
9573
 
3430 rajveer 9574
    public void setToDate(long toDate) {
1730 ankur.sing 9575
      this.toDate = toDate;
9576
      setToDateIsSet(true);
9577
    }
9578
 
9579
    public void unsetToDate() {
9580
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9581
    }
9582
 
3430 rajveer 9583
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9584
    public boolean isSetToDate() {
9585
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9586
    }
9587
 
9588
    public void setToDateIsSet(boolean value) {
9589
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9590
    }
9591
 
9592
    public void setFieldValue(_Fields field, Object value) {
9593
      switch (field) {
9594
      case FROM_DATE:
9595
        if (value == null) {
9596
          unsetFromDate();
9597
        } else {
9598
          setFromDate((Long)value);
9599
        }
9600
        break;
9601
 
9602
      case TO_DATE:
9603
        if (value == null) {
9604
          unsetToDate();
9605
        } else {
9606
          setToDate((Long)value);
9607
        }
9608
        break;
9609
 
9610
      }
9611
    }
9612
 
9613
    public Object getFieldValue(_Fields field) {
9614
      switch (field) {
9615
      case FROM_DATE:
3430 rajveer 9616
        return Long.valueOf(getFromDate());
1730 ankur.sing 9617
 
9618
      case TO_DATE:
3430 rajveer 9619
        return Long.valueOf(getToDate());
1730 ankur.sing 9620
 
9621
      }
9622
      throw new IllegalStateException();
9623
    }
9624
 
3430 rajveer 9625
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9626
    public boolean isSet(_Fields field) {
9627
      if (field == null) {
9628
        throw new IllegalArgumentException();
9629
      }
1730 ankur.sing 9630
 
9631
      switch (field) {
9632
      case FROM_DATE:
9633
        return isSetFromDate();
9634
      case TO_DATE:
9635
        return isSetToDate();
9636
      }
9637
      throw new IllegalStateException();
9638
    }
9639
 
9640
    @Override
9641
    public boolean equals(Object that) {
9642
      if (that == null)
9643
        return false;
9644
      if (that instanceof getHolidays_args)
9645
        return this.equals((getHolidays_args)that);
9646
      return false;
9647
    }
9648
 
9649
    public boolean equals(getHolidays_args that) {
9650
      if (that == null)
9651
        return false;
9652
 
9653
      boolean this_present_fromDate = true;
9654
      boolean that_present_fromDate = true;
9655
      if (this_present_fromDate || that_present_fromDate) {
9656
        if (!(this_present_fromDate && that_present_fromDate))
9657
          return false;
9658
        if (this.fromDate != that.fromDate)
9659
          return false;
9660
      }
9661
 
9662
      boolean this_present_toDate = true;
9663
      boolean that_present_toDate = true;
9664
      if (this_present_toDate || that_present_toDate) {
9665
        if (!(this_present_toDate && that_present_toDate))
9666
          return false;
9667
        if (this.toDate != that.toDate)
9668
          return false;
9669
      }
9670
 
9671
      return true;
9672
    }
9673
 
9674
    @Override
9675
    public int hashCode() {
9676
      return 0;
9677
    }
9678
 
9679
    public int compareTo(getHolidays_args other) {
9680
      if (!getClass().equals(other.getClass())) {
9681
        return getClass().getName().compareTo(other.getClass().getName());
9682
      }
9683
 
9684
      int lastComparison = 0;
9685
      getHolidays_args typedOther = (getHolidays_args)other;
9686
 
3430 rajveer 9687
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 9688
      if (lastComparison != 0) {
9689
        return lastComparison;
9690
      }
3430 rajveer 9691
      if (isSetFromDate()) {
9692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
9693
        if (lastComparison != 0) {
9694
          return lastComparison;
9695
        }
1730 ankur.sing 9696
      }
3430 rajveer 9697
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 9698
      if (lastComparison != 0) {
9699
        return lastComparison;
9700
      }
3430 rajveer 9701
      if (isSetToDate()) {
9702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
9703
        if (lastComparison != 0) {
9704
          return lastComparison;
9705
        }
1730 ankur.sing 9706
      }
9707
      return 0;
9708
    }
9709
 
3430 rajveer 9710
    public _Fields fieldForId(int fieldId) {
9711
      return _Fields.findByThriftId(fieldId);
9712
    }
9713
 
9714
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9715
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9716
      iprot.readStructBegin();
9717
      while (true)
9718
      {
9719
        field = iprot.readFieldBegin();
3430 rajveer 9720
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9721
          break;
9722
        }
3430 rajveer 9723
        switch (field.id) {
9724
          case 1: // FROM_DATE
9725
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9726
              this.fromDate = iprot.readI64();
9727
              setFromDateIsSet(true);
9728
            } else { 
9729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9730
            }
9731
            break;
9732
          case 2: // TO_DATE
9733
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9734
              this.toDate = iprot.readI64();
9735
              setToDateIsSet(true);
9736
            } else { 
9737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9738
            }
9739
            break;
9740
          default:
9741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9742
        }
3430 rajveer 9743
        iprot.readFieldEnd();
1730 ankur.sing 9744
      }
9745
      iprot.readStructEnd();
9746
      validate();
9747
    }
9748
 
3430 rajveer 9749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9750
      validate();
9751
 
9752
      oprot.writeStructBegin(STRUCT_DESC);
9753
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
9754
      oprot.writeI64(this.fromDate);
9755
      oprot.writeFieldEnd();
9756
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
9757
      oprot.writeI64(this.toDate);
9758
      oprot.writeFieldEnd();
9759
      oprot.writeFieldStop();
9760
      oprot.writeStructEnd();
9761
    }
9762
 
9763
    @Override
9764
    public String toString() {
9765
      StringBuilder sb = new StringBuilder("getHolidays_args(");
9766
      boolean first = true;
9767
 
9768
      sb.append("fromDate:");
9769
      sb.append(this.fromDate);
9770
      first = false;
9771
      if (!first) sb.append(", ");
9772
      sb.append("toDate:");
9773
      sb.append(this.toDate);
9774
      first = false;
9775
      sb.append(")");
9776
      return sb.toString();
9777
    }
9778
 
3430 rajveer 9779
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9780
      // check for required fields
9781
    }
9782
 
3430 rajveer 9783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9784
      try {
9785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9786
      } catch (org.apache.thrift.TException te) {
9787
        throw new java.io.IOException(te);
9788
      }
9789
    }
9790
 
9791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9792
      try {
9793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9794
      } catch (org.apache.thrift.TException te) {
9795
        throw new java.io.IOException(te);
9796
      }
9797
    }
9798
 
1730 ankur.sing 9799
  }
9800
 
3430 rajveer 9801
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
9802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 9803
 
3430 rajveer 9804
    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 9805
 
3430 rajveer 9806
    private List<Long> success; // required
1730 ankur.sing 9807
 
9808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9810
      SUCCESS((short)0, "success");
9811
 
9812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9813
 
9814
      static {
9815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9816
          byName.put(field.getFieldName(), field);
9817
        }
9818
      }
9819
 
9820
      /**
9821
       * Find the _Fields constant that matches fieldId, or null if its not found.
9822
       */
9823
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9824
        switch(fieldId) {
9825
          case 0: // SUCCESS
9826
            return SUCCESS;
9827
          default:
9828
            return null;
9829
        }
1730 ankur.sing 9830
      }
9831
 
9832
      /**
9833
       * Find the _Fields constant that matches fieldId, throwing an exception
9834
       * if it is not found.
9835
       */
9836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9837
        _Fields fields = findByThriftId(fieldId);
9838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9839
        return fields;
9840
      }
9841
 
9842
      /**
9843
       * Find the _Fields constant that matches name, or null if its not found.
9844
       */
9845
      public static _Fields findByName(String name) {
9846
        return byName.get(name);
9847
      }
9848
 
9849
      private final short _thriftId;
9850
      private final String _fieldName;
9851
 
9852
      _Fields(short thriftId, String fieldName) {
9853
        _thriftId = thriftId;
9854
        _fieldName = fieldName;
9855
      }
9856
 
9857
      public short getThriftFieldId() {
9858
        return _thriftId;
9859
      }
9860
 
9861
      public String getFieldName() {
9862
        return _fieldName;
9863
      }
9864
    }
9865
 
9866
    // isset id assignments
9867
 
3430 rajveer 9868
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9869
    static {
3430 rajveer 9870
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9871
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9872
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9873
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 9876
    }
9877
 
9878
    public getHolidays_result() {
9879
    }
9880
 
9881
    public getHolidays_result(
9882
      List<Long> success)
9883
    {
9884
      this();
9885
      this.success = success;
9886
    }
9887
 
9888
    /**
9889
     * Performs a deep copy on <i>other</i>.
9890
     */
9891
    public getHolidays_result(getHolidays_result other) {
9892
      if (other.isSetSuccess()) {
9893
        List<Long> __this__success = new ArrayList<Long>();
9894
        for (Long other_element : other.success) {
9895
          __this__success.add(other_element);
9896
        }
9897
        this.success = __this__success;
9898
      }
9899
    }
9900
 
9901
    public getHolidays_result deepCopy() {
9902
      return new getHolidays_result(this);
9903
    }
9904
 
3430 rajveer 9905
    @Override
9906
    public void clear() {
9907
      this.success = null;
1730 ankur.sing 9908
    }
9909
 
9910
    public int getSuccessSize() {
9911
      return (this.success == null) ? 0 : this.success.size();
9912
    }
9913
 
9914
    public java.util.Iterator<Long> getSuccessIterator() {
9915
      return (this.success == null) ? null : this.success.iterator();
9916
    }
9917
 
9918
    public void addToSuccess(long elem) {
9919
      if (this.success == null) {
9920
        this.success = new ArrayList<Long>();
9921
      }
9922
      this.success.add(elem);
9923
    }
9924
 
9925
    public List<Long> getSuccess() {
9926
      return this.success;
9927
    }
9928
 
3430 rajveer 9929
    public void setSuccess(List<Long> success) {
1730 ankur.sing 9930
      this.success = success;
9931
    }
9932
 
9933
    public void unsetSuccess() {
9934
      this.success = null;
9935
    }
9936
 
3430 rajveer 9937
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9938
    public boolean isSetSuccess() {
9939
      return this.success != null;
9940
    }
9941
 
9942
    public void setSuccessIsSet(boolean value) {
9943
      if (!value) {
9944
        this.success = null;
9945
      }
9946
    }
9947
 
9948
    public void setFieldValue(_Fields field, Object value) {
9949
      switch (field) {
9950
      case SUCCESS:
9951
        if (value == null) {
9952
          unsetSuccess();
9953
        } else {
9954
          setSuccess((List<Long>)value);
9955
        }
9956
        break;
9957
 
9958
      }
9959
    }
9960
 
9961
    public Object getFieldValue(_Fields field) {
9962
      switch (field) {
9963
      case SUCCESS:
9964
        return getSuccess();
9965
 
9966
      }
9967
      throw new IllegalStateException();
9968
    }
9969
 
3430 rajveer 9970
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9971
    public boolean isSet(_Fields field) {
9972
      if (field == null) {
9973
        throw new IllegalArgumentException();
9974
      }
1730 ankur.sing 9975
 
9976
      switch (field) {
9977
      case SUCCESS:
9978
        return isSetSuccess();
9979
      }
9980
      throw new IllegalStateException();
9981
    }
9982
 
9983
    @Override
9984
    public boolean equals(Object that) {
9985
      if (that == null)
9986
        return false;
9987
      if (that instanceof getHolidays_result)
9988
        return this.equals((getHolidays_result)that);
9989
      return false;
9990
    }
9991
 
9992
    public boolean equals(getHolidays_result that) {
9993
      if (that == null)
9994
        return false;
9995
 
9996
      boolean this_present_success = true && this.isSetSuccess();
9997
      boolean that_present_success = true && that.isSetSuccess();
9998
      if (this_present_success || that_present_success) {
9999
        if (!(this_present_success && that_present_success))
10000
          return false;
10001
        if (!this.success.equals(that.success))
10002
          return false;
10003
      }
10004
 
10005
      return true;
10006
    }
10007
 
10008
    @Override
10009
    public int hashCode() {
10010
      return 0;
10011
    }
10012
 
10013
    public int compareTo(getHolidays_result other) {
10014
      if (!getClass().equals(other.getClass())) {
10015
        return getClass().getName().compareTo(other.getClass().getName());
10016
      }
10017
 
10018
      int lastComparison = 0;
10019
      getHolidays_result typedOther = (getHolidays_result)other;
10020
 
3430 rajveer 10021
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10022
      if (lastComparison != 0) {
10023
        return lastComparison;
10024
      }
3430 rajveer 10025
      if (isSetSuccess()) {
10026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10027
        if (lastComparison != 0) {
10028
          return lastComparison;
10029
        }
1730 ankur.sing 10030
      }
10031
      return 0;
10032
    }
10033
 
3430 rajveer 10034
    public _Fields fieldForId(int fieldId) {
10035
      return _Fields.findByThriftId(fieldId);
10036
    }
10037
 
10038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10039
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10040
      iprot.readStructBegin();
10041
      while (true)
10042
      {
10043
        field = iprot.readFieldBegin();
3430 rajveer 10044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10045
          break;
10046
        }
3430 rajveer 10047
        switch (field.id) {
10048
          case 0: // SUCCESS
10049
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10050
              {
7792 anupam.sin 10051
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10052
                this.success = new ArrayList<Long>(_list12.size);
10053
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10054
                {
7792 anupam.sin 10055
                  long _elem14; // required
10056
                  _elem14 = iprot.readI64();
10057
                  this.success.add(_elem14);
1730 ankur.sing 10058
                }
3430 rajveer 10059
                iprot.readListEnd();
1730 ankur.sing 10060
              }
3430 rajveer 10061
            } else { 
10062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10063
            }
10064
            break;
10065
          default:
10066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10067
        }
3430 rajveer 10068
        iprot.readFieldEnd();
1730 ankur.sing 10069
      }
10070
      iprot.readStructEnd();
10071
      validate();
10072
    }
10073
 
3430 rajveer 10074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10075
      oprot.writeStructBegin(STRUCT_DESC);
10076
 
10077
      if (this.isSetSuccess()) {
10078
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10079
        {
3430 rajveer 10080
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10081
          for (long _iter15 : this.success)
1730 ankur.sing 10082
          {
7792 anupam.sin 10083
            oprot.writeI64(_iter15);
1730 ankur.sing 10084
          }
10085
          oprot.writeListEnd();
10086
        }
10087
        oprot.writeFieldEnd();
10088
      }
10089
      oprot.writeFieldStop();
10090
      oprot.writeStructEnd();
10091
    }
10092
 
10093
    @Override
10094
    public String toString() {
10095
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10096
      boolean first = true;
10097
 
10098
      sb.append("success:");
10099
      if (this.success == null) {
10100
        sb.append("null");
10101
      } else {
10102
        sb.append(this.success);
10103
      }
10104
      first = false;
10105
      sb.append(")");
10106
      return sb.toString();
10107
    }
10108
 
3430 rajveer 10109
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10110
      // check for required fields
10111
    }
10112
 
3430 rajveer 10113
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10114
      try {
10115
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10116
      } catch (org.apache.thrift.TException te) {
10117
        throw new java.io.IOException(te);
10118
      }
10119
    }
10120
 
10121
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10122
      try {
10123
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10124
      } catch (org.apache.thrift.TException te) {
10125
        throw new java.io.IOException(te);
10126
      }
10127
    }
10128
 
1730 ankur.sing 10129
  }
10130
 
4934 amit.gupta 10131
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10132
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10133
 
10134
    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);
10135
    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);
10136
    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);
10137
 
10138
    private long catalogItemId; // required
10139
    private String destination_pin; // required
10140
    private DeliveryType type; // required
10141
 
10142
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10143
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10144
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10145
      DESTINATION_PIN((short)2, "destination_pin"),
10146
      /**
10147
       * 
10148
       * @see DeliveryType
10149
       */
10150
      TYPE((short)3, "type");
10151
 
10152
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10153
 
10154
      static {
10155
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10156
          byName.put(field.getFieldName(), field);
10157
        }
10158
      }
10159
 
10160
      /**
10161
       * Find the _Fields constant that matches fieldId, or null if its not found.
10162
       */
10163
      public static _Fields findByThriftId(int fieldId) {
10164
        switch(fieldId) {
10165
          case 1: // CATALOG_ITEM_ID
10166
            return CATALOG_ITEM_ID;
10167
          case 2: // DESTINATION_PIN
10168
            return DESTINATION_PIN;
10169
          case 3: // TYPE
10170
            return TYPE;
10171
          default:
10172
            return null;
10173
        }
10174
      }
10175
 
10176
      /**
10177
       * Find the _Fields constant that matches fieldId, throwing an exception
10178
       * if it is not found.
10179
       */
10180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10181
        _Fields fields = findByThriftId(fieldId);
10182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10183
        return fields;
10184
      }
10185
 
10186
      /**
10187
       * Find the _Fields constant that matches name, or null if its not found.
10188
       */
10189
      public static _Fields findByName(String name) {
10190
        return byName.get(name);
10191
      }
10192
 
10193
      private final short _thriftId;
10194
      private final String _fieldName;
10195
 
10196
      _Fields(short thriftId, String fieldName) {
10197
        _thriftId = thriftId;
10198
        _fieldName = fieldName;
10199
      }
10200
 
10201
      public short getThriftFieldId() {
10202
        return _thriftId;
10203
      }
10204
 
10205
      public String getFieldName() {
10206
        return _fieldName;
10207
      }
10208
    }
10209
 
10210
    // isset id assignments
10211
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10212
    private BitSet __isset_bit_vector = new BitSet(1);
10213
 
10214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10215
    static {
10216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10217
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10219
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10221
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10222
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10223
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10224
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10225
    }
10226
 
10227
    public getEntityLogisticsEstimation_args() {
10228
    }
10229
 
10230
    public getEntityLogisticsEstimation_args(
10231
      long catalogItemId,
10232
      String destination_pin,
10233
      DeliveryType type)
10234
    {
10235
      this();
10236
      this.catalogItemId = catalogItemId;
10237
      setCatalogItemIdIsSet(true);
10238
      this.destination_pin = destination_pin;
10239
      this.type = type;
10240
    }
10241
 
10242
    /**
10243
     * Performs a deep copy on <i>other</i>.
10244
     */
10245
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10246
      __isset_bit_vector.clear();
10247
      __isset_bit_vector.or(other.__isset_bit_vector);
10248
      this.catalogItemId = other.catalogItemId;
10249
      if (other.isSetDestination_pin()) {
10250
        this.destination_pin = other.destination_pin;
10251
      }
10252
      if (other.isSetType()) {
10253
        this.type = other.type;
10254
      }
10255
    }
10256
 
10257
    public getEntityLogisticsEstimation_args deepCopy() {
10258
      return new getEntityLogisticsEstimation_args(this);
10259
    }
10260
 
10261
    @Override
10262
    public void clear() {
10263
      setCatalogItemIdIsSet(false);
10264
      this.catalogItemId = 0;
10265
      this.destination_pin = null;
10266
      this.type = null;
10267
    }
10268
 
10269
    public long getCatalogItemId() {
10270
      return this.catalogItemId;
10271
    }
10272
 
10273
    public void setCatalogItemId(long catalogItemId) {
10274
      this.catalogItemId = catalogItemId;
10275
      setCatalogItemIdIsSet(true);
10276
    }
10277
 
10278
    public void unsetCatalogItemId() {
10279
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10280
    }
10281
 
10282
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10283
    public boolean isSetCatalogItemId() {
10284
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10285
    }
10286
 
10287
    public void setCatalogItemIdIsSet(boolean value) {
10288
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10289
    }
10290
 
10291
    public String getDestination_pin() {
10292
      return this.destination_pin;
10293
    }
10294
 
10295
    public void setDestination_pin(String destination_pin) {
10296
      this.destination_pin = destination_pin;
10297
    }
10298
 
10299
    public void unsetDestination_pin() {
10300
      this.destination_pin = null;
10301
    }
10302
 
10303
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10304
    public boolean isSetDestination_pin() {
10305
      return this.destination_pin != null;
10306
    }
10307
 
10308
    public void setDestination_pinIsSet(boolean value) {
10309
      if (!value) {
10310
        this.destination_pin = null;
10311
      }
10312
    }
10313
 
10314
    /**
10315
     * 
10316
     * @see DeliveryType
10317
     */
10318
    public DeliveryType getType() {
10319
      return this.type;
10320
    }
10321
 
10322
    /**
10323
     * 
10324
     * @see DeliveryType
10325
     */
10326
    public void setType(DeliveryType type) {
10327
      this.type = type;
10328
    }
10329
 
10330
    public void unsetType() {
10331
      this.type = null;
10332
    }
10333
 
10334
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10335
    public boolean isSetType() {
10336
      return this.type != null;
10337
    }
10338
 
10339
    public void setTypeIsSet(boolean value) {
10340
      if (!value) {
10341
        this.type = null;
10342
      }
10343
    }
10344
 
10345
    public void setFieldValue(_Fields field, Object value) {
10346
      switch (field) {
10347
      case CATALOG_ITEM_ID:
10348
        if (value == null) {
10349
          unsetCatalogItemId();
10350
        } else {
10351
          setCatalogItemId((Long)value);
10352
        }
10353
        break;
10354
 
10355
      case DESTINATION_PIN:
10356
        if (value == null) {
10357
          unsetDestination_pin();
10358
        } else {
10359
          setDestination_pin((String)value);
10360
        }
10361
        break;
10362
 
10363
      case TYPE:
10364
        if (value == null) {
10365
          unsetType();
10366
        } else {
10367
          setType((DeliveryType)value);
10368
        }
10369
        break;
10370
 
10371
      }
10372
    }
10373
 
10374
    public Object getFieldValue(_Fields field) {
10375
      switch (field) {
10376
      case CATALOG_ITEM_ID:
10377
        return Long.valueOf(getCatalogItemId());
10378
 
10379
      case DESTINATION_PIN:
10380
        return getDestination_pin();
10381
 
10382
      case TYPE:
10383
        return getType();
10384
 
10385
      }
10386
      throw new IllegalStateException();
10387
    }
10388
 
10389
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10390
    public boolean isSet(_Fields field) {
10391
      if (field == null) {
10392
        throw new IllegalArgumentException();
10393
      }
10394
 
10395
      switch (field) {
10396
      case CATALOG_ITEM_ID:
10397
        return isSetCatalogItemId();
10398
      case DESTINATION_PIN:
10399
        return isSetDestination_pin();
10400
      case TYPE:
10401
        return isSetType();
10402
      }
10403
      throw new IllegalStateException();
10404
    }
10405
 
10406
    @Override
10407
    public boolean equals(Object that) {
10408
      if (that == null)
10409
        return false;
10410
      if (that instanceof getEntityLogisticsEstimation_args)
10411
        return this.equals((getEntityLogisticsEstimation_args)that);
10412
      return false;
10413
    }
10414
 
10415
    public boolean equals(getEntityLogisticsEstimation_args that) {
10416
      if (that == null)
10417
        return false;
10418
 
10419
      boolean this_present_catalogItemId = true;
10420
      boolean that_present_catalogItemId = true;
10421
      if (this_present_catalogItemId || that_present_catalogItemId) {
10422
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10423
          return false;
10424
        if (this.catalogItemId != that.catalogItemId)
10425
          return false;
10426
      }
10427
 
10428
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10429
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10430
      if (this_present_destination_pin || that_present_destination_pin) {
10431
        if (!(this_present_destination_pin && that_present_destination_pin))
10432
          return false;
10433
        if (!this.destination_pin.equals(that.destination_pin))
10434
          return false;
10435
      }
10436
 
10437
      boolean this_present_type = true && this.isSetType();
10438
      boolean that_present_type = true && that.isSetType();
10439
      if (this_present_type || that_present_type) {
10440
        if (!(this_present_type && that_present_type))
10441
          return false;
10442
        if (!this.type.equals(that.type))
10443
          return false;
10444
      }
10445
 
10446
      return true;
10447
    }
10448
 
10449
    @Override
10450
    public int hashCode() {
10451
      return 0;
10452
    }
10453
 
10454
    public int compareTo(getEntityLogisticsEstimation_args other) {
10455
      if (!getClass().equals(other.getClass())) {
10456
        return getClass().getName().compareTo(other.getClass().getName());
10457
      }
10458
 
10459
      int lastComparison = 0;
10460
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10461
 
10462
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10463
      if (lastComparison != 0) {
10464
        return lastComparison;
10465
      }
10466
      if (isSetCatalogItemId()) {
10467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10468
        if (lastComparison != 0) {
10469
          return lastComparison;
10470
        }
10471
      }
10472
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10473
      if (lastComparison != 0) {
10474
        return lastComparison;
10475
      }
10476
      if (isSetDestination_pin()) {
10477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10478
        if (lastComparison != 0) {
10479
          return lastComparison;
10480
        }
10481
      }
10482
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10483
      if (lastComparison != 0) {
10484
        return lastComparison;
10485
      }
10486
      if (isSetType()) {
10487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10488
        if (lastComparison != 0) {
10489
          return lastComparison;
10490
        }
10491
      }
10492
      return 0;
10493
    }
10494
 
10495
    public _Fields fieldForId(int fieldId) {
10496
      return _Fields.findByThriftId(fieldId);
10497
    }
10498
 
10499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10500
      org.apache.thrift.protocol.TField field;
10501
      iprot.readStructBegin();
10502
      while (true)
10503
      {
10504
        field = iprot.readFieldBegin();
10505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10506
          break;
10507
        }
10508
        switch (field.id) {
10509
          case 1: // CATALOG_ITEM_ID
10510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10511
              this.catalogItemId = iprot.readI64();
10512
              setCatalogItemIdIsSet(true);
10513
            } else { 
10514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10515
            }
10516
            break;
10517
          case 2: // DESTINATION_PIN
10518
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10519
              this.destination_pin = iprot.readString();
10520
            } else { 
10521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10522
            }
10523
            break;
10524
          case 3: // TYPE
10525
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10526
              this.type = DeliveryType.findByValue(iprot.readI32());
10527
            } else { 
10528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10529
            }
10530
            break;
10531
          default:
10532
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10533
        }
10534
        iprot.readFieldEnd();
10535
      }
10536
      iprot.readStructEnd();
10537
      validate();
10538
    }
10539
 
10540
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10541
      validate();
10542
 
10543
      oprot.writeStructBegin(STRUCT_DESC);
10544
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10545
      oprot.writeI64(this.catalogItemId);
10546
      oprot.writeFieldEnd();
10547
      if (this.destination_pin != null) {
10548
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10549
        oprot.writeString(this.destination_pin);
10550
        oprot.writeFieldEnd();
10551
      }
10552
      if (this.type != null) {
10553
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10554
        oprot.writeI32(this.type.getValue());
10555
        oprot.writeFieldEnd();
10556
      }
10557
      oprot.writeFieldStop();
10558
      oprot.writeStructEnd();
10559
    }
10560
 
10561
    @Override
10562
    public String toString() {
10563
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10564
      boolean first = true;
10565
 
10566
      sb.append("catalogItemId:");
10567
      sb.append(this.catalogItemId);
10568
      first = false;
10569
      if (!first) sb.append(", ");
10570
      sb.append("destination_pin:");
10571
      if (this.destination_pin == null) {
10572
        sb.append("null");
10573
      } else {
10574
        sb.append(this.destination_pin);
10575
      }
10576
      first = false;
10577
      if (!first) sb.append(", ");
10578
      sb.append("type:");
10579
      if (this.type == null) {
10580
        sb.append("null");
10581
      } else {
10582
        sb.append(this.type);
10583
      }
10584
      first = false;
10585
      sb.append(")");
10586
      return sb.toString();
10587
    }
10588
 
10589
    public void validate() throws org.apache.thrift.TException {
10590
      // check for required fields
10591
    }
10592
 
10593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10594
      try {
10595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10596
      } catch (org.apache.thrift.TException te) {
10597
        throw new java.io.IOException(te);
10598
      }
10599
    }
10600
 
10601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10602
      try {
10603
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10604
      } catch (org.apache.thrift.TException te) {
10605
        throw new java.io.IOException(te);
10606
      }
10607
    }
10608
 
10609
  }
10610
 
10611
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10613
 
10614
    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);
10615
    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);
10616
 
10617
    private List<Long> success; // required
10618
    private LogisticsServiceException se; // required
10619
 
10620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10622
      SUCCESS((short)0, "success"),
10623
      SE((short)1, "se");
10624
 
10625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10626
 
10627
      static {
10628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10629
          byName.put(field.getFieldName(), field);
10630
        }
10631
      }
10632
 
10633
      /**
10634
       * Find the _Fields constant that matches fieldId, or null if its not found.
10635
       */
10636
      public static _Fields findByThriftId(int fieldId) {
10637
        switch(fieldId) {
10638
          case 0: // SUCCESS
10639
            return SUCCESS;
10640
          case 1: // SE
10641
            return SE;
10642
          default:
10643
            return null;
10644
        }
10645
      }
10646
 
10647
      /**
10648
       * Find the _Fields constant that matches fieldId, throwing an exception
10649
       * if it is not found.
10650
       */
10651
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10652
        _Fields fields = findByThriftId(fieldId);
10653
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10654
        return fields;
10655
      }
10656
 
10657
      /**
10658
       * Find the _Fields constant that matches name, or null if its not found.
10659
       */
10660
      public static _Fields findByName(String name) {
10661
        return byName.get(name);
10662
      }
10663
 
10664
      private final short _thriftId;
10665
      private final String _fieldName;
10666
 
10667
      _Fields(short thriftId, String fieldName) {
10668
        _thriftId = thriftId;
10669
        _fieldName = fieldName;
10670
      }
10671
 
10672
      public short getThriftFieldId() {
10673
        return _thriftId;
10674
      }
10675
 
10676
      public String getFieldName() {
10677
        return _fieldName;
10678
      }
10679
    }
10680
 
10681
    // isset id assignments
10682
 
10683
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10684
    static {
10685
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10686
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10687
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10688
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10689
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
10693
    }
10694
 
10695
    public getEntityLogisticsEstimation_result() {
10696
    }
10697
 
10698
    public getEntityLogisticsEstimation_result(
10699
      List<Long> success,
10700
      LogisticsServiceException se)
10701
    {
10702
      this();
10703
      this.success = success;
10704
      this.se = se;
10705
    }
10706
 
10707
    /**
10708
     * Performs a deep copy on <i>other</i>.
10709
     */
10710
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
10711
      if (other.isSetSuccess()) {
10712
        List<Long> __this__success = new ArrayList<Long>();
10713
        for (Long other_element : other.success) {
10714
          __this__success.add(other_element);
10715
        }
10716
        this.success = __this__success;
10717
      }
10718
      if (other.isSetSe()) {
10719
        this.se = new LogisticsServiceException(other.se);
10720
      }
10721
    }
10722
 
10723
    public getEntityLogisticsEstimation_result deepCopy() {
10724
      return new getEntityLogisticsEstimation_result(this);
10725
    }
10726
 
10727
    @Override
10728
    public void clear() {
10729
      this.success = null;
10730
      this.se = null;
10731
    }
10732
 
10733
    public int getSuccessSize() {
10734
      return (this.success == null) ? 0 : this.success.size();
10735
    }
10736
 
10737
    public java.util.Iterator<Long> getSuccessIterator() {
10738
      return (this.success == null) ? null : this.success.iterator();
10739
    }
10740
 
10741
    public void addToSuccess(long elem) {
10742
      if (this.success == null) {
10743
        this.success = new ArrayList<Long>();
10744
      }
10745
      this.success.add(elem);
10746
    }
10747
 
10748
    public List<Long> getSuccess() {
10749
      return this.success;
10750
    }
10751
 
10752
    public void setSuccess(List<Long> success) {
10753
      this.success = success;
10754
    }
10755
 
10756
    public void unsetSuccess() {
10757
      this.success = null;
10758
    }
10759
 
10760
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10761
    public boolean isSetSuccess() {
10762
      return this.success != null;
10763
    }
10764
 
10765
    public void setSuccessIsSet(boolean value) {
10766
      if (!value) {
10767
        this.success = null;
10768
      }
10769
    }
10770
 
10771
    public LogisticsServiceException getSe() {
10772
      return this.se;
10773
    }
10774
 
10775
    public void setSe(LogisticsServiceException se) {
10776
      this.se = se;
10777
    }
10778
 
10779
    public void unsetSe() {
10780
      this.se = null;
10781
    }
10782
 
10783
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10784
    public boolean isSetSe() {
10785
      return this.se != null;
10786
    }
10787
 
10788
    public void setSeIsSet(boolean value) {
10789
      if (!value) {
10790
        this.se = null;
10791
      }
10792
    }
10793
 
10794
    public void setFieldValue(_Fields field, Object value) {
10795
      switch (field) {
10796
      case SUCCESS:
10797
        if (value == null) {
10798
          unsetSuccess();
10799
        } else {
10800
          setSuccess((List<Long>)value);
10801
        }
10802
        break;
10803
 
10804
      case SE:
10805
        if (value == null) {
10806
          unsetSe();
10807
        } else {
10808
          setSe((LogisticsServiceException)value);
10809
        }
10810
        break;
10811
 
10812
      }
10813
    }
10814
 
10815
    public Object getFieldValue(_Fields field) {
10816
      switch (field) {
10817
      case SUCCESS:
10818
        return getSuccess();
10819
 
10820
      case SE:
10821
        return getSe();
10822
 
10823
      }
10824
      throw new IllegalStateException();
10825
    }
10826
 
10827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10828
    public boolean isSet(_Fields field) {
10829
      if (field == null) {
10830
        throw new IllegalArgumentException();
10831
      }
10832
 
10833
      switch (field) {
10834
      case SUCCESS:
10835
        return isSetSuccess();
10836
      case SE:
10837
        return isSetSe();
10838
      }
10839
      throw new IllegalStateException();
10840
    }
10841
 
10842
    @Override
10843
    public boolean equals(Object that) {
10844
      if (that == null)
10845
        return false;
10846
      if (that instanceof getEntityLogisticsEstimation_result)
10847
        return this.equals((getEntityLogisticsEstimation_result)that);
10848
      return false;
10849
    }
10850
 
10851
    public boolean equals(getEntityLogisticsEstimation_result that) {
10852
      if (that == null)
10853
        return false;
10854
 
10855
      boolean this_present_success = true && this.isSetSuccess();
10856
      boolean that_present_success = true && that.isSetSuccess();
10857
      if (this_present_success || that_present_success) {
10858
        if (!(this_present_success && that_present_success))
10859
          return false;
10860
        if (!this.success.equals(that.success))
10861
          return false;
10862
      }
10863
 
10864
      boolean this_present_se = true && this.isSetSe();
10865
      boolean that_present_se = true && that.isSetSe();
10866
      if (this_present_se || that_present_se) {
10867
        if (!(this_present_se && that_present_se))
10868
          return false;
10869
        if (!this.se.equals(that.se))
10870
          return false;
10871
      }
10872
 
10873
      return true;
10874
    }
10875
 
10876
    @Override
10877
    public int hashCode() {
10878
      return 0;
10879
    }
10880
 
10881
    public int compareTo(getEntityLogisticsEstimation_result other) {
10882
      if (!getClass().equals(other.getClass())) {
10883
        return getClass().getName().compareTo(other.getClass().getName());
10884
      }
10885
 
10886
      int lastComparison = 0;
10887
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
10888
 
10889
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10890
      if (lastComparison != 0) {
10891
        return lastComparison;
10892
      }
10893
      if (isSetSuccess()) {
10894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10895
        if (lastComparison != 0) {
10896
          return lastComparison;
10897
        }
10898
      }
10899
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10900
      if (lastComparison != 0) {
10901
        return lastComparison;
10902
      }
10903
      if (isSetSe()) {
10904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10905
        if (lastComparison != 0) {
10906
          return lastComparison;
10907
        }
10908
      }
10909
      return 0;
10910
    }
10911
 
10912
    public _Fields fieldForId(int fieldId) {
10913
      return _Fields.findByThriftId(fieldId);
10914
    }
10915
 
10916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10917
      org.apache.thrift.protocol.TField field;
10918
      iprot.readStructBegin();
10919
      while (true)
10920
      {
10921
        field = iprot.readFieldBegin();
10922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10923
          break;
10924
        }
10925
        switch (field.id) {
10926
          case 0: // SUCCESS
10927
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10928
              {
7792 anupam.sin 10929
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
10930
                this.success = new ArrayList<Long>(_list16.size);
10931
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 10932
                {
7792 anupam.sin 10933
                  long _elem18; // required
10934
                  _elem18 = iprot.readI64();
10935
                  this.success.add(_elem18);
4934 amit.gupta 10936
                }
10937
                iprot.readListEnd();
10938
              }
10939
            } else { 
10940
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10941
            }
10942
            break;
10943
          case 1: // SE
10944
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10945
              this.se = new LogisticsServiceException();
10946
              this.se.read(iprot);
10947
            } else { 
10948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10949
            }
10950
            break;
10951
          default:
10952
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10953
        }
10954
        iprot.readFieldEnd();
10955
      }
10956
      iprot.readStructEnd();
10957
      validate();
10958
    }
10959
 
10960
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10961
      oprot.writeStructBegin(STRUCT_DESC);
10962
 
10963
      if (this.isSetSuccess()) {
10964
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10965
        {
10966
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10967
          for (long _iter19 : this.success)
4934 amit.gupta 10968
          {
7792 anupam.sin 10969
            oprot.writeI64(_iter19);
4934 amit.gupta 10970
          }
10971
          oprot.writeListEnd();
10972
        }
10973
        oprot.writeFieldEnd();
10974
      } else if (this.isSetSe()) {
10975
        oprot.writeFieldBegin(SE_FIELD_DESC);
10976
        this.se.write(oprot);
10977
        oprot.writeFieldEnd();
10978
      }
10979
      oprot.writeFieldStop();
10980
      oprot.writeStructEnd();
10981
    }
10982
 
10983
    @Override
10984
    public String toString() {
10985
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
10986
      boolean first = true;
10987
 
10988
      sb.append("success:");
10989
      if (this.success == null) {
10990
        sb.append("null");
10991
      } else {
10992
        sb.append(this.success);
10993
      }
10994
      first = false;
10995
      if (!first) sb.append(", ");
10996
      sb.append("se:");
10997
      if (this.se == null) {
10998
        sb.append("null");
10999
      } else {
11000
        sb.append(this.se);
11001
      }
11002
      first = false;
11003
      sb.append(")");
11004
      return sb.toString();
11005
    }
11006
 
11007
    public void validate() throws org.apache.thrift.TException {
11008
      // check for required fields
11009
    }
11010
 
11011
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11012
      try {
11013
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11014
      } catch (org.apache.thrift.TException te) {
11015
        throw new java.io.IOException(te);
11016
      }
11017
    }
11018
 
11019
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11020
      try {
11021
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11022
      } catch (org.apache.thrift.TException te) {
11023
        throw new java.io.IOException(te);
11024
      }
11025
    }
11026
 
11027
  }
11028
 
5527 anupam.sin 11029
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11030
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11031
 
11032
    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);
11033
 
11034
    private long pickUp; // required
11035
 
11036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11037
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11038
      PICK_UP((short)1, "pickUp");
11039
 
11040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11041
 
11042
      static {
11043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11044
          byName.put(field.getFieldName(), field);
11045
        }
11046
      }
11047
 
11048
      /**
11049
       * Find the _Fields constant that matches fieldId, or null if its not found.
11050
       */
11051
      public static _Fields findByThriftId(int fieldId) {
11052
        switch(fieldId) {
11053
          case 1: // PICK_UP
11054
            return PICK_UP;
11055
          default:
11056
            return null;
11057
        }
11058
      }
11059
 
11060
      /**
11061
       * Find the _Fields constant that matches fieldId, throwing an exception
11062
       * if it is not found.
11063
       */
11064
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11065
        _Fields fields = findByThriftId(fieldId);
11066
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11067
        return fields;
11068
      }
11069
 
11070
      /**
11071
       * Find the _Fields constant that matches name, or null if its not found.
11072
       */
11073
      public static _Fields findByName(String name) {
11074
        return byName.get(name);
11075
      }
11076
 
11077
      private final short _thriftId;
11078
      private final String _fieldName;
11079
 
11080
      _Fields(short thriftId, String fieldName) {
11081
        _thriftId = thriftId;
11082
        _fieldName = fieldName;
11083
      }
11084
 
11085
      public short getThriftFieldId() {
11086
        return _thriftId;
11087
      }
11088
 
11089
      public String getFieldName() {
11090
        return _fieldName;
11091
      }
11092
    }
11093
 
11094
    // isset id assignments
11095
    private static final int __PICKUP_ISSET_ID = 0;
11096
    private BitSet __isset_bit_vector = new BitSet(1);
11097
 
11098
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11099
    static {
11100
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11101
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11102
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11103
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11104
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11105
    }
11106
 
11107
    public getProviderForPickupType_args() {
11108
    }
11109
 
11110
    public getProviderForPickupType_args(
11111
      long pickUp)
11112
    {
11113
      this();
11114
      this.pickUp = pickUp;
11115
      setPickUpIsSet(true);
11116
    }
11117
 
11118
    /**
11119
     * Performs a deep copy on <i>other</i>.
11120
     */
11121
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11122
      __isset_bit_vector.clear();
11123
      __isset_bit_vector.or(other.__isset_bit_vector);
11124
      this.pickUp = other.pickUp;
11125
    }
11126
 
11127
    public getProviderForPickupType_args deepCopy() {
11128
      return new getProviderForPickupType_args(this);
11129
    }
11130
 
11131
    @Override
11132
    public void clear() {
11133
      setPickUpIsSet(false);
11134
      this.pickUp = 0;
11135
    }
11136
 
11137
    public long getPickUp() {
11138
      return this.pickUp;
11139
    }
11140
 
11141
    public void setPickUp(long pickUp) {
11142
      this.pickUp = pickUp;
11143
      setPickUpIsSet(true);
11144
    }
11145
 
11146
    public void unsetPickUp() {
11147
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11148
    }
11149
 
11150
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11151
    public boolean isSetPickUp() {
11152
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11153
    }
11154
 
11155
    public void setPickUpIsSet(boolean value) {
11156
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11157
    }
11158
 
11159
    public void setFieldValue(_Fields field, Object value) {
11160
      switch (field) {
11161
      case PICK_UP:
11162
        if (value == null) {
11163
          unsetPickUp();
11164
        } else {
11165
          setPickUp((Long)value);
11166
        }
11167
        break;
11168
 
11169
      }
11170
    }
11171
 
11172
    public Object getFieldValue(_Fields field) {
11173
      switch (field) {
11174
      case PICK_UP:
11175
        return Long.valueOf(getPickUp());
11176
 
11177
      }
11178
      throw new IllegalStateException();
11179
    }
11180
 
11181
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11182
    public boolean isSet(_Fields field) {
11183
      if (field == null) {
11184
        throw new IllegalArgumentException();
11185
      }
11186
 
11187
      switch (field) {
11188
      case PICK_UP:
11189
        return isSetPickUp();
11190
      }
11191
      throw new IllegalStateException();
11192
    }
11193
 
11194
    @Override
11195
    public boolean equals(Object that) {
11196
      if (that == null)
11197
        return false;
11198
      if (that instanceof getProviderForPickupType_args)
11199
        return this.equals((getProviderForPickupType_args)that);
11200
      return false;
11201
    }
11202
 
11203
    public boolean equals(getProviderForPickupType_args that) {
11204
      if (that == null)
11205
        return false;
11206
 
11207
      boolean this_present_pickUp = true;
11208
      boolean that_present_pickUp = true;
11209
      if (this_present_pickUp || that_present_pickUp) {
11210
        if (!(this_present_pickUp && that_present_pickUp))
11211
          return false;
11212
        if (this.pickUp != that.pickUp)
11213
          return false;
11214
      }
11215
 
11216
      return true;
11217
    }
11218
 
11219
    @Override
11220
    public int hashCode() {
11221
      return 0;
11222
    }
11223
 
11224
    public int compareTo(getProviderForPickupType_args other) {
11225
      if (!getClass().equals(other.getClass())) {
11226
        return getClass().getName().compareTo(other.getClass().getName());
11227
      }
11228
 
11229
      int lastComparison = 0;
11230
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11231
 
11232
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11233
      if (lastComparison != 0) {
11234
        return lastComparison;
11235
      }
11236
      if (isSetPickUp()) {
11237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11238
        if (lastComparison != 0) {
11239
          return lastComparison;
11240
        }
11241
      }
11242
      return 0;
11243
    }
11244
 
11245
    public _Fields fieldForId(int fieldId) {
11246
      return _Fields.findByThriftId(fieldId);
11247
    }
11248
 
11249
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11250
      org.apache.thrift.protocol.TField field;
11251
      iprot.readStructBegin();
11252
      while (true)
11253
      {
11254
        field = iprot.readFieldBegin();
11255
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11256
          break;
11257
        }
11258
        switch (field.id) {
11259
          case 1: // PICK_UP
11260
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11261
              this.pickUp = iprot.readI64();
11262
              setPickUpIsSet(true);
11263
            } else { 
11264
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11265
            }
11266
            break;
11267
          default:
11268
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11269
        }
11270
        iprot.readFieldEnd();
11271
      }
11272
      iprot.readStructEnd();
11273
      validate();
11274
    }
11275
 
11276
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11277
      validate();
11278
 
11279
      oprot.writeStructBegin(STRUCT_DESC);
11280
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11281
      oprot.writeI64(this.pickUp);
11282
      oprot.writeFieldEnd();
11283
      oprot.writeFieldStop();
11284
      oprot.writeStructEnd();
11285
    }
11286
 
11287
    @Override
11288
    public String toString() {
11289
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11290
      boolean first = true;
11291
 
11292
      sb.append("pickUp:");
11293
      sb.append(this.pickUp);
11294
      first = false;
11295
      sb.append(")");
11296
      return sb.toString();
11297
    }
11298
 
11299
    public void validate() throws org.apache.thrift.TException {
11300
      // check for required fields
11301
    }
11302
 
11303
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11304
      try {
11305
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11306
      } catch (org.apache.thrift.TException te) {
11307
        throw new java.io.IOException(te);
11308
      }
11309
    }
11310
 
11311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11312
      try {
11313
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11314
        __isset_bit_vector = new BitSet(1);
11315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11316
      } catch (org.apache.thrift.TException te) {
11317
        throw new java.io.IOException(te);
11318
      }
11319
    }
11320
 
11321
  }
11322
 
11323
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11325
 
11326
    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);
11327
 
11328
    private long success; // required
11329
 
11330
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11331
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11332
      SUCCESS((short)0, "success");
11333
 
11334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11335
 
11336
      static {
11337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11338
          byName.put(field.getFieldName(), field);
11339
        }
11340
      }
11341
 
11342
      /**
11343
       * Find the _Fields constant that matches fieldId, or null if its not found.
11344
       */
11345
      public static _Fields findByThriftId(int fieldId) {
11346
        switch(fieldId) {
11347
          case 0: // SUCCESS
11348
            return SUCCESS;
11349
          default:
11350
            return null;
11351
        }
11352
      }
11353
 
11354
      /**
11355
       * Find the _Fields constant that matches fieldId, throwing an exception
11356
       * if it is not found.
11357
       */
11358
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11359
        _Fields fields = findByThriftId(fieldId);
11360
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11361
        return fields;
11362
      }
11363
 
11364
      /**
11365
       * Find the _Fields constant that matches name, or null if its not found.
11366
       */
11367
      public static _Fields findByName(String name) {
11368
        return byName.get(name);
11369
      }
11370
 
11371
      private final short _thriftId;
11372
      private final String _fieldName;
11373
 
11374
      _Fields(short thriftId, String fieldName) {
11375
        _thriftId = thriftId;
11376
        _fieldName = fieldName;
11377
      }
11378
 
11379
      public short getThriftFieldId() {
11380
        return _thriftId;
11381
      }
11382
 
11383
      public String getFieldName() {
11384
        return _fieldName;
11385
      }
11386
    }
11387
 
11388
    // isset id assignments
11389
    private static final int __SUCCESS_ISSET_ID = 0;
11390
    private BitSet __isset_bit_vector = new BitSet(1);
11391
 
11392
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11393
    static {
11394
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11395
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11396
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11397
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11398
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11399
    }
11400
 
11401
    public getProviderForPickupType_result() {
11402
    }
11403
 
11404
    public getProviderForPickupType_result(
11405
      long success)
11406
    {
11407
      this();
11408
      this.success = success;
11409
      setSuccessIsSet(true);
11410
    }
11411
 
11412
    /**
11413
     * Performs a deep copy on <i>other</i>.
11414
     */
11415
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11416
      __isset_bit_vector.clear();
11417
      __isset_bit_vector.or(other.__isset_bit_vector);
11418
      this.success = other.success;
11419
    }
11420
 
11421
    public getProviderForPickupType_result deepCopy() {
11422
      return new getProviderForPickupType_result(this);
11423
    }
11424
 
11425
    @Override
11426
    public void clear() {
11427
      setSuccessIsSet(false);
11428
      this.success = 0;
11429
    }
11430
 
11431
    public long getSuccess() {
11432
      return this.success;
11433
    }
11434
 
11435
    public void setSuccess(long success) {
11436
      this.success = success;
11437
      setSuccessIsSet(true);
11438
    }
11439
 
11440
    public void unsetSuccess() {
11441
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11442
    }
11443
 
11444
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11445
    public boolean isSetSuccess() {
11446
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11447
    }
11448
 
11449
    public void setSuccessIsSet(boolean value) {
11450
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11451
    }
11452
 
11453
    public void setFieldValue(_Fields field, Object value) {
11454
      switch (field) {
11455
      case SUCCESS:
11456
        if (value == null) {
11457
          unsetSuccess();
11458
        } else {
11459
          setSuccess((Long)value);
11460
        }
11461
        break;
11462
 
11463
      }
11464
    }
11465
 
11466
    public Object getFieldValue(_Fields field) {
11467
      switch (field) {
11468
      case SUCCESS:
11469
        return Long.valueOf(getSuccess());
11470
 
11471
      }
11472
      throw new IllegalStateException();
11473
    }
11474
 
11475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11476
    public boolean isSet(_Fields field) {
11477
      if (field == null) {
11478
        throw new IllegalArgumentException();
11479
      }
11480
 
11481
      switch (field) {
11482
      case SUCCESS:
11483
        return isSetSuccess();
11484
      }
11485
      throw new IllegalStateException();
11486
    }
11487
 
11488
    @Override
11489
    public boolean equals(Object that) {
11490
      if (that == null)
11491
        return false;
11492
      if (that instanceof getProviderForPickupType_result)
11493
        return this.equals((getProviderForPickupType_result)that);
11494
      return false;
11495
    }
11496
 
11497
    public boolean equals(getProviderForPickupType_result that) {
11498
      if (that == null)
11499
        return false;
11500
 
11501
      boolean this_present_success = true;
11502
      boolean that_present_success = true;
11503
      if (this_present_success || that_present_success) {
11504
        if (!(this_present_success && that_present_success))
11505
          return false;
11506
        if (this.success != that.success)
11507
          return false;
11508
      }
11509
 
11510
      return true;
11511
    }
11512
 
11513
    @Override
11514
    public int hashCode() {
11515
      return 0;
11516
    }
11517
 
11518
    public int compareTo(getProviderForPickupType_result other) {
11519
      if (!getClass().equals(other.getClass())) {
11520
        return getClass().getName().compareTo(other.getClass().getName());
11521
      }
11522
 
11523
      int lastComparison = 0;
11524
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11525
 
11526
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11527
      if (lastComparison != 0) {
11528
        return lastComparison;
11529
      }
11530
      if (isSetSuccess()) {
11531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11532
        if (lastComparison != 0) {
11533
          return lastComparison;
11534
        }
11535
      }
11536
      return 0;
11537
    }
11538
 
11539
    public _Fields fieldForId(int fieldId) {
11540
      return _Fields.findByThriftId(fieldId);
11541
    }
11542
 
11543
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11544
      org.apache.thrift.protocol.TField field;
11545
      iprot.readStructBegin();
11546
      while (true)
11547
      {
11548
        field = iprot.readFieldBegin();
11549
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11550
          break;
11551
        }
11552
        switch (field.id) {
11553
          case 0: // SUCCESS
11554
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11555
              this.success = iprot.readI64();
11556
              setSuccessIsSet(true);
11557
            } else { 
11558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11559
            }
11560
            break;
11561
          default:
11562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11563
        }
11564
        iprot.readFieldEnd();
11565
      }
11566
      iprot.readStructEnd();
11567
      validate();
11568
    }
11569
 
11570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11571
      oprot.writeStructBegin(STRUCT_DESC);
11572
 
11573
      if (this.isSetSuccess()) {
11574
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11575
        oprot.writeI64(this.success);
11576
        oprot.writeFieldEnd();
11577
      }
11578
      oprot.writeFieldStop();
11579
      oprot.writeStructEnd();
11580
    }
11581
 
11582
    @Override
11583
    public String toString() {
11584
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11585
      boolean first = true;
11586
 
11587
      sb.append("success:");
11588
      sb.append(this.success);
11589
      first = false;
11590
      sb.append(")");
11591
      return sb.toString();
11592
    }
11593
 
11594
    public void validate() throws org.apache.thrift.TException {
11595
      // check for required fields
11596
    }
11597
 
11598
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11599
      try {
11600
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11601
      } catch (org.apache.thrift.TException te) {
11602
        throw new java.io.IOException(te);
11603
      }
11604
    }
11605
 
11606
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11607
      try {
11608
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11609
      } catch (org.apache.thrift.TException te) {
11610
        throw new java.io.IOException(te);
11611
      }
11612
    }
11613
 
11614
  }
11615
 
5553 rajveer 11616
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11617
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11618
 
11619
 
11620
 
11621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11623
;
11624
 
11625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11626
 
11627
      static {
11628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11629
          byName.put(field.getFieldName(), field);
11630
        }
11631
      }
11632
 
11633
      /**
11634
       * Find the _Fields constant that matches fieldId, or null if its not found.
11635
       */
11636
      public static _Fields findByThriftId(int fieldId) {
11637
        switch(fieldId) {
11638
          default:
11639
            return null;
11640
        }
11641
      }
11642
 
11643
      /**
11644
       * Find the _Fields constant that matches fieldId, throwing an exception
11645
       * if it is not found.
11646
       */
11647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11648
        _Fields fields = findByThriftId(fieldId);
11649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11650
        return fields;
11651
      }
11652
 
11653
      /**
11654
       * Find the _Fields constant that matches name, or null if its not found.
11655
       */
11656
      public static _Fields findByName(String name) {
11657
        return byName.get(name);
11658
      }
11659
 
11660
      private final short _thriftId;
11661
      private final String _fieldName;
11662
 
11663
      _Fields(short thriftId, String fieldName) {
11664
        _thriftId = thriftId;
11665
        _fieldName = fieldName;
11666
      }
11667
 
11668
      public short getThriftFieldId() {
11669
        return _thriftId;
11670
      }
11671
 
11672
      public String getFieldName() {
11673
        return _fieldName;
11674
      }
11675
    }
11676
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11677
    static {
11678
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11679
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11680
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
11681
    }
11682
 
11683
    public getAllPickupStores_args() {
11684
    }
11685
 
11686
    /**
11687
     * Performs a deep copy on <i>other</i>.
11688
     */
11689
    public getAllPickupStores_args(getAllPickupStores_args other) {
11690
    }
11691
 
11692
    public getAllPickupStores_args deepCopy() {
11693
      return new getAllPickupStores_args(this);
11694
    }
11695
 
11696
    @Override
11697
    public void clear() {
11698
    }
11699
 
11700
    public void setFieldValue(_Fields field, Object value) {
11701
      switch (field) {
11702
      }
11703
    }
11704
 
11705
    public Object getFieldValue(_Fields field) {
11706
      switch (field) {
11707
      }
11708
      throw new IllegalStateException();
11709
    }
11710
 
11711
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11712
    public boolean isSet(_Fields field) {
11713
      if (field == null) {
11714
        throw new IllegalArgumentException();
11715
      }
11716
 
11717
      switch (field) {
11718
      }
11719
      throw new IllegalStateException();
11720
    }
11721
 
11722
    @Override
11723
    public boolean equals(Object that) {
11724
      if (that == null)
11725
        return false;
11726
      if (that instanceof getAllPickupStores_args)
11727
        return this.equals((getAllPickupStores_args)that);
11728
      return false;
11729
    }
11730
 
11731
    public boolean equals(getAllPickupStores_args that) {
11732
      if (that == null)
11733
        return false;
11734
 
11735
      return true;
11736
    }
11737
 
11738
    @Override
11739
    public int hashCode() {
11740
      return 0;
11741
    }
11742
 
11743
    public int compareTo(getAllPickupStores_args other) {
11744
      if (!getClass().equals(other.getClass())) {
11745
        return getClass().getName().compareTo(other.getClass().getName());
11746
      }
11747
 
11748
      int lastComparison = 0;
11749
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
11750
 
11751
      return 0;
11752
    }
11753
 
11754
    public _Fields fieldForId(int fieldId) {
11755
      return _Fields.findByThriftId(fieldId);
11756
    }
11757
 
11758
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11759
      org.apache.thrift.protocol.TField field;
11760
      iprot.readStructBegin();
11761
      while (true)
11762
      {
11763
        field = iprot.readFieldBegin();
11764
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11765
          break;
11766
        }
11767
        switch (field.id) {
11768
          default:
11769
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11770
        }
11771
        iprot.readFieldEnd();
11772
      }
11773
      iprot.readStructEnd();
11774
      validate();
11775
    }
11776
 
11777
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11778
      validate();
11779
 
11780
      oprot.writeStructBegin(STRUCT_DESC);
11781
      oprot.writeFieldStop();
11782
      oprot.writeStructEnd();
11783
    }
11784
 
11785
    @Override
11786
    public String toString() {
11787
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
11788
      boolean first = true;
11789
 
11790
      sb.append(")");
11791
      return sb.toString();
11792
    }
11793
 
11794
    public void validate() throws org.apache.thrift.TException {
11795
      // check for required fields
11796
    }
11797
 
11798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11799
      try {
11800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11801
      } catch (org.apache.thrift.TException te) {
11802
        throw new java.io.IOException(te);
11803
      }
11804
    }
11805
 
11806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11807
      try {
11808
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11809
      } catch (org.apache.thrift.TException te) {
11810
        throw new java.io.IOException(te);
11811
      }
11812
    }
11813
 
11814
  }
11815
 
11816
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
11817
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
11818
 
11819
    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);
11820
 
11821
    private List<PickupStore> success; // required
11822
 
11823
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11824
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11825
      SUCCESS((short)0, "success");
11826
 
11827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11828
 
11829
      static {
11830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11831
          byName.put(field.getFieldName(), field);
11832
        }
11833
      }
11834
 
11835
      /**
11836
       * Find the _Fields constant that matches fieldId, or null if its not found.
11837
       */
11838
      public static _Fields findByThriftId(int fieldId) {
11839
        switch(fieldId) {
11840
          case 0: // SUCCESS
11841
            return SUCCESS;
11842
          default:
11843
            return null;
11844
        }
11845
      }
11846
 
11847
      /**
11848
       * Find the _Fields constant that matches fieldId, throwing an exception
11849
       * if it is not found.
11850
       */
11851
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11852
        _Fields fields = findByThriftId(fieldId);
11853
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11854
        return fields;
11855
      }
11856
 
11857
      /**
11858
       * Find the _Fields constant that matches name, or null if its not found.
11859
       */
11860
      public static _Fields findByName(String name) {
11861
        return byName.get(name);
11862
      }
11863
 
11864
      private final short _thriftId;
11865
      private final String _fieldName;
11866
 
11867
      _Fields(short thriftId, String fieldName) {
11868
        _thriftId = thriftId;
11869
        _fieldName = fieldName;
11870
      }
11871
 
11872
      public short getThriftFieldId() {
11873
        return _thriftId;
11874
      }
11875
 
11876
      public String getFieldName() {
11877
        return _fieldName;
11878
      }
11879
    }
11880
 
11881
    // isset id assignments
11882
 
11883
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11884
    static {
11885
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11886
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11887
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11888
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
11889
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11890
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
11891
    }
11892
 
11893
    public getAllPickupStores_result() {
11894
    }
11895
 
11896
    public getAllPickupStores_result(
11897
      List<PickupStore> success)
11898
    {
11899
      this();
11900
      this.success = success;
11901
    }
11902
 
11903
    /**
11904
     * Performs a deep copy on <i>other</i>.
11905
     */
11906
    public getAllPickupStores_result(getAllPickupStores_result other) {
11907
      if (other.isSetSuccess()) {
11908
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
11909
        for (PickupStore other_element : other.success) {
11910
          __this__success.add(new PickupStore(other_element));
11911
        }
11912
        this.success = __this__success;
11913
      }
11914
    }
11915
 
11916
    public getAllPickupStores_result deepCopy() {
11917
      return new getAllPickupStores_result(this);
11918
    }
11919
 
11920
    @Override
11921
    public void clear() {
11922
      this.success = null;
11923
    }
11924
 
11925
    public int getSuccessSize() {
11926
      return (this.success == null) ? 0 : this.success.size();
11927
    }
11928
 
11929
    public java.util.Iterator<PickupStore> getSuccessIterator() {
11930
      return (this.success == null) ? null : this.success.iterator();
11931
    }
11932
 
11933
    public void addToSuccess(PickupStore elem) {
11934
      if (this.success == null) {
11935
        this.success = new ArrayList<PickupStore>();
11936
      }
11937
      this.success.add(elem);
11938
    }
11939
 
11940
    public List<PickupStore> getSuccess() {
11941
      return this.success;
11942
    }
11943
 
11944
    public void setSuccess(List<PickupStore> success) {
11945
      this.success = success;
11946
    }
11947
 
11948
    public void unsetSuccess() {
11949
      this.success = null;
11950
    }
11951
 
11952
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11953
    public boolean isSetSuccess() {
11954
      return this.success != null;
11955
    }
11956
 
11957
    public void setSuccessIsSet(boolean value) {
11958
      if (!value) {
11959
        this.success = null;
11960
      }
11961
    }
11962
 
11963
    public void setFieldValue(_Fields field, Object value) {
11964
      switch (field) {
11965
      case SUCCESS:
11966
        if (value == null) {
11967
          unsetSuccess();
11968
        } else {
11969
          setSuccess((List<PickupStore>)value);
11970
        }
11971
        break;
11972
 
11973
      }
11974
    }
11975
 
11976
    public Object getFieldValue(_Fields field) {
11977
      switch (field) {
11978
      case SUCCESS:
11979
        return getSuccess();
11980
 
11981
      }
11982
      throw new IllegalStateException();
11983
    }
11984
 
11985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11986
    public boolean isSet(_Fields field) {
11987
      if (field == null) {
11988
        throw new IllegalArgumentException();
11989
      }
11990
 
11991
      switch (field) {
11992
      case SUCCESS:
11993
        return isSetSuccess();
11994
      }
11995
      throw new IllegalStateException();
11996
    }
11997
 
11998
    @Override
11999
    public boolean equals(Object that) {
12000
      if (that == null)
12001
        return false;
12002
      if (that instanceof getAllPickupStores_result)
12003
        return this.equals((getAllPickupStores_result)that);
12004
      return false;
12005
    }
12006
 
12007
    public boolean equals(getAllPickupStores_result that) {
12008
      if (that == null)
12009
        return false;
12010
 
12011
      boolean this_present_success = true && this.isSetSuccess();
12012
      boolean that_present_success = true && that.isSetSuccess();
12013
      if (this_present_success || that_present_success) {
12014
        if (!(this_present_success && that_present_success))
12015
          return false;
12016
        if (!this.success.equals(that.success))
12017
          return false;
12018
      }
12019
 
12020
      return true;
12021
    }
12022
 
12023
    @Override
12024
    public int hashCode() {
12025
      return 0;
12026
    }
12027
 
12028
    public int compareTo(getAllPickupStores_result other) {
12029
      if (!getClass().equals(other.getClass())) {
12030
        return getClass().getName().compareTo(other.getClass().getName());
12031
      }
12032
 
12033
      int lastComparison = 0;
12034
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12035
 
12036
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12037
      if (lastComparison != 0) {
12038
        return lastComparison;
12039
      }
12040
      if (isSetSuccess()) {
12041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12042
        if (lastComparison != 0) {
12043
          return lastComparison;
12044
        }
12045
      }
12046
      return 0;
12047
    }
12048
 
12049
    public _Fields fieldForId(int fieldId) {
12050
      return _Fields.findByThriftId(fieldId);
12051
    }
12052
 
12053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12054
      org.apache.thrift.protocol.TField field;
12055
      iprot.readStructBegin();
12056
      while (true)
12057
      {
12058
        field = iprot.readFieldBegin();
12059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12060
          break;
12061
        }
12062
        switch (field.id) {
12063
          case 0: // SUCCESS
12064
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12065
              {
7792 anupam.sin 12066
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12067
                this.success = new ArrayList<PickupStore>(_list20.size);
12068
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12069
                {
7792 anupam.sin 12070
                  PickupStore _elem22; // required
12071
                  _elem22 = new PickupStore();
12072
                  _elem22.read(iprot);
12073
                  this.success.add(_elem22);
5553 rajveer 12074
                }
12075
                iprot.readListEnd();
12076
              }
12077
            } else { 
12078
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12079
            }
12080
            break;
12081
          default:
12082
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12083
        }
12084
        iprot.readFieldEnd();
12085
      }
12086
      iprot.readStructEnd();
12087
      validate();
12088
    }
12089
 
12090
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12091
      oprot.writeStructBegin(STRUCT_DESC);
12092
 
12093
      if (this.isSetSuccess()) {
12094
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12095
        {
12096
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12097
          for (PickupStore _iter23 : this.success)
5553 rajveer 12098
          {
7792 anupam.sin 12099
            _iter23.write(oprot);
5553 rajveer 12100
          }
12101
          oprot.writeListEnd();
12102
        }
12103
        oprot.writeFieldEnd();
12104
      }
12105
      oprot.writeFieldStop();
12106
      oprot.writeStructEnd();
12107
    }
12108
 
12109
    @Override
12110
    public String toString() {
12111
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12112
      boolean first = true;
12113
 
12114
      sb.append("success:");
12115
      if (this.success == null) {
12116
        sb.append("null");
12117
      } else {
12118
        sb.append(this.success);
12119
      }
12120
      first = false;
12121
      sb.append(")");
12122
      return sb.toString();
12123
    }
12124
 
12125
    public void validate() throws org.apache.thrift.TException {
12126
      // check for required fields
12127
    }
12128
 
12129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12130
      try {
12131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12132
      } catch (org.apache.thrift.TException te) {
12133
        throw new java.io.IOException(te);
12134
      }
12135
    }
12136
 
12137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12138
      try {
12139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12140
      } catch (org.apache.thrift.TException te) {
12141
        throw new java.io.IOException(te);
12142
      }
12143
    }
12144
 
12145
  }
12146
 
12147
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12149
 
12150
    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);
12151
 
12152
    private long storeId; // required
12153
 
12154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12156
      STORE_ID((short)1, "storeId");
12157
 
12158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12159
 
12160
      static {
12161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12162
          byName.put(field.getFieldName(), field);
12163
        }
12164
      }
12165
 
12166
      /**
12167
       * Find the _Fields constant that matches fieldId, or null if its not found.
12168
       */
12169
      public static _Fields findByThriftId(int fieldId) {
12170
        switch(fieldId) {
12171
          case 1: // STORE_ID
12172
            return STORE_ID;
12173
          default:
12174
            return null;
12175
        }
12176
      }
12177
 
12178
      /**
12179
       * Find the _Fields constant that matches fieldId, throwing an exception
12180
       * if it is not found.
12181
       */
12182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12183
        _Fields fields = findByThriftId(fieldId);
12184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12185
        return fields;
12186
      }
12187
 
12188
      /**
12189
       * Find the _Fields constant that matches name, or null if its not found.
12190
       */
12191
      public static _Fields findByName(String name) {
12192
        return byName.get(name);
12193
      }
12194
 
12195
      private final short _thriftId;
12196
      private final String _fieldName;
12197
 
12198
      _Fields(short thriftId, String fieldName) {
12199
        _thriftId = thriftId;
12200
        _fieldName = fieldName;
12201
      }
12202
 
12203
      public short getThriftFieldId() {
12204
        return _thriftId;
12205
      }
12206
 
12207
      public String getFieldName() {
12208
        return _fieldName;
12209
      }
12210
    }
12211
 
12212
    // isset id assignments
12213
    private static final int __STOREID_ISSET_ID = 0;
12214
    private BitSet __isset_bit_vector = new BitSet(1);
12215
 
12216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12217
    static {
12218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12219
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12223
    }
12224
 
12225
    public getPickupStore_args() {
12226
    }
12227
 
12228
    public getPickupStore_args(
12229
      long storeId)
12230
    {
12231
      this();
12232
      this.storeId = storeId;
12233
      setStoreIdIsSet(true);
12234
    }
12235
 
12236
    /**
12237
     * Performs a deep copy on <i>other</i>.
12238
     */
12239
    public getPickupStore_args(getPickupStore_args other) {
12240
      __isset_bit_vector.clear();
12241
      __isset_bit_vector.or(other.__isset_bit_vector);
12242
      this.storeId = other.storeId;
12243
    }
12244
 
12245
    public getPickupStore_args deepCopy() {
12246
      return new getPickupStore_args(this);
12247
    }
12248
 
12249
    @Override
12250
    public void clear() {
12251
      setStoreIdIsSet(false);
12252
      this.storeId = 0;
12253
    }
12254
 
12255
    public long getStoreId() {
12256
      return this.storeId;
12257
    }
12258
 
12259
    public void setStoreId(long storeId) {
12260
      this.storeId = storeId;
12261
      setStoreIdIsSet(true);
12262
    }
12263
 
12264
    public void unsetStoreId() {
12265
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12266
    }
12267
 
12268
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12269
    public boolean isSetStoreId() {
12270
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12271
    }
12272
 
12273
    public void setStoreIdIsSet(boolean value) {
12274
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12275
    }
12276
 
12277
    public void setFieldValue(_Fields field, Object value) {
12278
      switch (field) {
12279
      case STORE_ID:
12280
        if (value == null) {
12281
          unsetStoreId();
12282
        } else {
12283
          setStoreId((Long)value);
12284
        }
12285
        break;
12286
 
12287
      }
12288
    }
12289
 
12290
    public Object getFieldValue(_Fields field) {
12291
      switch (field) {
12292
      case STORE_ID:
12293
        return Long.valueOf(getStoreId());
12294
 
12295
      }
12296
      throw new IllegalStateException();
12297
    }
12298
 
12299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12300
    public boolean isSet(_Fields field) {
12301
      if (field == null) {
12302
        throw new IllegalArgumentException();
12303
      }
12304
 
12305
      switch (field) {
12306
      case STORE_ID:
12307
        return isSetStoreId();
12308
      }
12309
      throw new IllegalStateException();
12310
    }
12311
 
12312
    @Override
12313
    public boolean equals(Object that) {
12314
      if (that == null)
12315
        return false;
12316
      if (that instanceof getPickupStore_args)
12317
        return this.equals((getPickupStore_args)that);
12318
      return false;
12319
    }
12320
 
12321
    public boolean equals(getPickupStore_args that) {
12322
      if (that == null)
12323
        return false;
12324
 
12325
      boolean this_present_storeId = true;
12326
      boolean that_present_storeId = true;
12327
      if (this_present_storeId || that_present_storeId) {
12328
        if (!(this_present_storeId && that_present_storeId))
12329
          return false;
12330
        if (this.storeId != that.storeId)
12331
          return false;
12332
      }
12333
 
12334
      return true;
12335
    }
12336
 
12337
    @Override
12338
    public int hashCode() {
12339
      return 0;
12340
    }
12341
 
12342
    public int compareTo(getPickupStore_args other) {
12343
      if (!getClass().equals(other.getClass())) {
12344
        return getClass().getName().compareTo(other.getClass().getName());
12345
      }
12346
 
12347
      int lastComparison = 0;
12348
      getPickupStore_args typedOther = (getPickupStore_args)other;
12349
 
12350
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12351
      if (lastComparison != 0) {
12352
        return lastComparison;
12353
      }
12354
      if (isSetStoreId()) {
12355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12356
        if (lastComparison != 0) {
12357
          return lastComparison;
12358
        }
12359
      }
12360
      return 0;
12361
    }
12362
 
12363
    public _Fields fieldForId(int fieldId) {
12364
      return _Fields.findByThriftId(fieldId);
12365
    }
12366
 
12367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12368
      org.apache.thrift.protocol.TField field;
12369
      iprot.readStructBegin();
12370
      while (true)
12371
      {
12372
        field = iprot.readFieldBegin();
12373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12374
          break;
12375
        }
12376
        switch (field.id) {
12377
          case 1: // STORE_ID
12378
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12379
              this.storeId = iprot.readI64();
12380
              setStoreIdIsSet(true);
12381
            } else { 
12382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12383
            }
12384
            break;
12385
          default:
12386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12387
        }
12388
        iprot.readFieldEnd();
12389
      }
12390
      iprot.readStructEnd();
12391
      validate();
12392
    }
12393
 
12394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12395
      validate();
12396
 
12397
      oprot.writeStructBegin(STRUCT_DESC);
12398
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12399
      oprot.writeI64(this.storeId);
12400
      oprot.writeFieldEnd();
12401
      oprot.writeFieldStop();
12402
      oprot.writeStructEnd();
12403
    }
12404
 
12405
    @Override
12406
    public String toString() {
12407
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12408
      boolean first = true;
12409
 
12410
      sb.append("storeId:");
12411
      sb.append(this.storeId);
12412
      first = false;
12413
      sb.append(")");
12414
      return sb.toString();
12415
    }
12416
 
12417
    public void validate() throws org.apache.thrift.TException {
12418
      // check for required fields
12419
    }
12420
 
12421
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12422
      try {
12423
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12424
      } catch (org.apache.thrift.TException te) {
12425
        throw new java.io.IOException(te);
12426
      }
12427
    }
12428
 
12429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12430
      try {
12431
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12432
        __isset_bit_vector = new BitSet(1);
12433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12434
      } catch (org.apache.thrift.TException te) {
12435
        throw new java.io.IOException(te);
12436
      }
12437
    }
12438
 
12439
  }
12440
 
12441
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12443
 
12444
    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);
12445
 
12446
    private PickupStore success; // required
12447
 
12448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12450
      SUCCESS((short)0, "success");
12451
 
12452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12453
 
12454
      static {
12455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12456
          byName.put(field.getFieldName(), field);
12457
        }
12458
      }
12459
 
12460
      /**
12461
       * Find the _Fields constant that matches fieldId, or null if its not found.
12462
       */
12463
      public static _Fields findByThriftId(int fieldId) {
12464
        switch(fieldId) {
12465
          case 0: // SUCCESS
12466
            return SUCCESS;
12467
          default:
12468
            return null;
12469
        }
12470
      }
12471
 
12472
      /**
12473
       * Find the _Fields constant that matches fieldId, throwing an exception
12474
       * if it is not found.
12475
       */
12476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12477
        _Fields fields = findByThriftId(fieldId);
12478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12479
        return fields;
12480
      }
12481
 
12482
      /**
12483
       * Find the _Fields constant that matches name, or null if its not found.
12484
       */
12485
      public static _Fields findByName(String name) {
12486
        return byName.get(name);
12487
      }
12488
 
12489
      private final short _thriftId;
12490
      private final String _fieldName;
12491
 
12492
      _Fields(short thriftId, String fieldName) {
12493
        _thriftId = thriftId;
12494
        _fieldName = fieldName;
12495
      }
12496
 
12497
      public short getThriftFieldId() {
12498
        return _thriftId;
12499
      }
12500
 
12501
      public String getFieldName() {
12502
        return _fieldName;
12503
      }
12504
    }
12505
 
12506
    // isset id assignments
12507
 
12508
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12509
    static {
12510
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12511
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12512
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12513
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12514
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12515
    }
12516
 
12517
    public getPickupStore_result() {
12518
    }
12519
 
12520
    public getPickupStore_result(
12521
      PickupStore success)
12522
    {
12523
      this();
12524
      this.success = success;
12525
    }
12526
 
12527
    /**
12528
     * Performs a deep copy on <i>other</i>.
12529
     */
12530
    public getPickupStore_result(getPickupStore_result other) {
12531
      if (other.isSetSuccess()) {
12532
        this.success = new PickupStore(other.success);
12533
      }
12534
    }
12535
 
12536
    public getPickupStore_result deepCopy() {
12537
      return new getPickupStore_result(this);
12538
    }
12539
 
12540
    @Override
12541
    public void clear() {
12542
      this.success = null;
12543
    }
12544
 
12545
    public PickupStore getSuccess() {
12546
      return this.success;
12547
    }
12548
 
12549
    public void setSuccess(PickupStore success) {
12550
      this.success = success;
12551
    }
12552
 
12553
    public void unsetSuccess() {
12554
      this.success = null;
12555
    }
12556
 
12557
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12558
    public boolean isSetSuccess() {
12559
      return this.success != null;
12560
    }
12561
 
12562
    public void setSuccessIsSet(boolean value) {
12563
      if (!value) {
12564
        this.success = null;
12565
      }
12566
    }
12567
 
12568
    public void setFieldValue(_Fields field, Object value) {
12569
      switch (field) {
12570
      case SUCCESS:
12571
        if (value == null) {
12572
          unsetSuccess();
12573
        } else {
12574
          setSuccess((PickupStore)value);
12575
        }
12576
        break;
12577
 
12578
      }
12579
    }
12580
 
12581
    public Object getFieldValue(_Fields field) {
12582
      switch (field) {
12583
      case SUCCESS:
12584
        return getSuccess();
12585
 
12586
      }
12587
      throw new IllegalStateException();
12588
    }
12589
 
12590
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12591
    public boolean isSet(_Fields field) {
12592
      if (field == null) {
12593
        throw new IllegalArgumentException();
12594
      }
12595
 
12596
      switch (field) {
12597
      case SUCCESS:
12598
        return isSetSuccess();
12599
      }
12600
      throw new IllegalStateException();
12601
    }
12602
 
12603
    @Override
12604
    public boolean equals(Object that) {
12605
      if (that == null)
12606
        return false;
12607
      if (that instanceof getPickupStore_result)
12608
        return this.equals((getPickupStore_result)that);
12609
      return false;
12610
    }
12611
 
12612
    public boolean equals(getPickupStore_result that) {
12613
      if (that == null)
12614
        return false;
12615
 
12616
      boolean this_present_success = true && this.isSetSuccess();
12617
      boolean that_present_success = true && that.isSetSuccess();
12618
      if (this_present_success || that_present_success) {
12619
        if (!(this_present_success && that_present_success))
12620
          return false;
12621
        if (!this.success.equals(that.success))
12622
          return false;
12623
      }
12624
 
12625
      return true;
12626
    }
12627
 
12628
    @Override
12629
    public int hashCode() {
12630
      return 0;
12631
    }
12632
 
12633
    public int compareTo(getPickupStore_result other) {
12634
      if (!getClass().equals(other.getClass())) {
12635
        return getClass().getName().compareTo(other.getClass().getName());
12636
      }
12637
 
12638
      int lastComparison = 0;
12639
      getPickupStore_result typedOther = (getPickupStore_result)other;
12640
 
12641
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12642
      if (lastComparison != 0) {
12643
        return lastComparison;
12644
      }
12645
      if (isSetSuccess()) {
12646
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12647
        if (lastComparison != 0) {
12648
          return lastComparison;
12649
        }
12650
      }
12651
      return 0;
12652
    }
12653
 
12654
    public _Fields fieldForId(int fieldId) {
12655
      return _Fields.findByThriftId(fieldId);
12656
    }
12657
 
12658
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12659
      org.apache.thrift.protocol.TField field;
12660
      iprot.readStructBegin();
12661
      while (true)
12662
      {
12663
        field = iprot.readFieldBegin();
12664
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12665
          break;
12666
        }
12667
        switch (field.id) {
12668
          case 0: // SUCCESS
12669
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12670
              this.success = new PickupStore();
12671
              this.success.read(iprot);
12672
            } else { 
12673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12674
            }
12675
            break;
12676
          default:
12677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12678
        }
12679
        iprot.readFieldEnd();
12680
      }
12681
      iprot.readStructEnd();
12682
      validate();
12683
    }
12684
 
12685
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12686
      oprot.writeStructBegin(STRUCT_DESC);
12687
 
12688
      if (this.isSetSuccess()) {
12689
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12690
        this.success.write(oprot);
12691
        oprot.writeFieldEnd();
12692
      }
12693
      oprot.writeFieldStop();
12694
      oprot.writeStructEnd();
12695
    }
12696
 
12697
    @Override
12698
    public String toString() {
12699
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
12700
      boolean first = true;
12701
 
12702
      sb.append("success:");
12703
      if (this.success == null) {
12704
        sb.append("null");
12705
      } else {
12706
        sb.append(this.success);
12707
      }
12708
      first = false;
12709
      sb.append(")");
12710
      return sb.toString();
12711
    }
12712
 
12713
    public void validate() throws org.apache.thrift.TException {
12714
      // check for required fields
12715
    }
12716
 
12717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12718
      try {
12719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12720
      } catch (org.apache.thrift.TException te) {
12721
        throw new java.io.IOException(te);
12722
      }
12723
    }
12724
 
12725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12726
      try {
12727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12728
      } catch (org.apache.thrift.TException te) {
12729
        throw new java.io.IOException(te);
12730
      }
12731
    }
12732
 
12733
  }
12734
 
5719 rajveer 12735
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
12736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
12737
 
12738
    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);
12739
 
12740
    private String hotspotId; // required
12741
 
12742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12744
      HOTSPOT_ID((short)1, "hotspotId");
12745
 
12746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12747
 
12748
      static {
12749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12750
          byName.put(field.getFieldName(), field);
12751
        }
12752
      }
12753
 
12754
      /**
12755
       * Find the _Fields constant that matches fieldId, or null if its not found.
12756
       */
12757
      public static _Fields findByThriftId(int fieldId) {
12758
        switch(fieldId) {
12759
          case 1: // HOTSPOT_ID
12760
            return HOTSPOT_ID;
12761
          default:
12762
            return null;
12763
        }
12764
      }
12765
 
12766
      /**
12767
       * Find the _Fields constant that matches fieldId, throwing an exception
12768
       * if it is not found.
12769
       */
12770
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12771
        _Fields fields = findByThriftId(fieldId);
12772
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12773
        return fields;
12774
      }
12775
 
12776
      /**
12777
       * Find the _Fields constant that matches name, or null if its not found.
12778
       */
12779
      public static _Fields findByName(String name) {
12780
        return byName.get(name);
12781
      }
12782
 
12783
      private final short _thriftId;
12784
      private final String _fieldName;
12785
 
12786
      _Fields(short thriftId, String fieldName) {
12787
        _thriftId = thriftId;
12788
        _fieldName = fieldName;
12789
      }
12790
 
12791
      public short getThriftFieldId() {
12792
        return _thriftId;
12793
      }
12794
 
12795
      public String getFieldName() {
12796
        return _fieldName;
12797
      }
12798
    }
12799
 
12800
    // isset id assignments
12801
 
12802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12803
    static {
12804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12805
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12807
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12808
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
12809
    }
12810
 
12811
    public getPickupStoreByHotspotId_args() {
12812
    }
12813
 
12814
    public getPickupStoreByHotspotId_args(
12815
      String hotspotId)
12816
    {
12817
      this();
12818
      this.hotspotId = hotspotId;
12819
    }
12820
 
12821
    /**
12822
     * Performs a deep copy on <i>other</i>.
12823
     */
12824
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
12825
      if (other.isSetHotspotId()) {
12826
        this.hotspotId = other.hotspotId;
12827
      }
12828
    }
12829
 
12830
    public getPickupStoreByHotspotId_args deepCopy() {
12831
      return new getPickupStoreByHotspotId_args(this);
12832
    }
12833
 
12834
    @Override
12835
    public void clear() {
12836
      this.hotspotId = null;
12837
    }
12838
 
12839
    public String getHotspotId() {
12840
      return this.hotspotId;
12841
    }
12842
 
12843
    public void setHotspotId(String hotspotId) {
12844
      this.hotspotId = hotspotId;
12845
    }
12846
 
12847
    public void unsetHotspotId() {
12848
      this.hotspotId = null;
12849
    }
12850
 
12851
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
12852
    public boolean isSetHotspotId() {
12853
      return this.hotspotId != null;
12854
    }
12855
 
12856
    public void setHotspotIdIsSet(boolean value) {
12857
      if (!value) {
12858
        this.hotspotId = null;
12859
      }
12860
    }
12861
 
12862
    public void setFieldValue(_Fields field, Object value) {
12863
      switch (field) {
12864
      case HOTSPOT_ID:
12865
        if (value == null) {
12866
          unsetHotspotId();
12867
        } else {
12868
          setHotspotId((String)value);
12869
        }
12870
        break;
12871
 
12872
      }
12873
    }
12874
 
12875
    public Object getFieldValue(_Fields field) {
12876
      switch (field) {
12877
      case HOTSPOT_ID:
12878
        return getHotspotId();
12879
 
12880
      }
12881
      throw new IllegalStateException();
12882
    }
12883
 
12884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12885
    public boolean isSet(_Fields field) {
12886
      if (field == null) {
12887
        throw new IllegalArgumentException();
12888
      }
12889
 
12890
      switch (field) {
12891
      case HOTSPOT_ID:
12892
        return isSetHotspotId();
12893
      }
12894
      throw new IllegalStateException();
12895
    }
12896
 
12897
    @Override
12898
    public boolean equals(Object that) {
12899
      if (that == null)
12900
        return false;
12901
      if (that instanceof getPickupStoreByHotspotId_args)
12902
        return this.equals((getPickupStoreByHotspotId_args)that);
12903
      return false;
12904
    }
12905
 
12906
    public boolean equals(getPickupStoreByHotspotId_args that) {
12907
      if (that == null)
12908
        return false;
12909
 
12910
      boolean this_present_hotspotId = true && this.isSetHotspotId();
12911
      boolean that_present_hotspotId = true && that.isSetHotspotId();
12912
      if (this_present_hotspotId || that_present_hotspotId) {
12913
        if (!(this_present_hotspotId && that_present_hotspotId))
12914
          return false;
12915
        if (!this.hotspotId.equals(that.hotspotId))
12916
          return false;
12917
      }
12918
 
12919
      return true;
12920
    }
12921
 
12922
    @Override
12923
    public int hashCode() {
12924
      return 0;
12925
    }
12926
 
12927
    public int compareTo(getPickupStoreByHotspotId_args other) {
12928
      if (!getClass().equals(other.getClass())) {
12929
        return getClass().getName().compareTo(other.getClass().getName());
12930
      }
12931
 
12932
      int lastComparison = 0;
12933
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
12934
 
12935
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
12936
      if (lastComparison != 0) {
12937
        return lastComparison;
12938
      }
12939
      if (isSetHotspotId()) {
12940
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
12941
        if (lastComparison != 0) {
12942
          return lastComparison;
12943
        }
12944
      }
12945
      return 0;
12946
    }
12947
 
12948
    public _Fields fieldForId(int fieldId) {
12949
      return _Fields.findByThriftId(fieldId);
12950
    }
12951
 
12952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12953
      org.apache.thrift.protocol.TField field;
12954
      iprot.readStructBegin();
12955
      while (true)
12956
      {
12957
        field = iprot.readFieldBegin();
12958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12959
          break;
12960
        }
12961
        switch (field.id) {
12962
          case 1: // HOTSPOT_ID
12963
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12964
              this.hotspotId = iprot.readString();
12965
            } else { 
12966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12967
            }
12968
            break;
12969
          default:
12970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12971
        }
12972
        iprot.readFieldEnd();
12973
      }
12974
      iprot.readStructEnd();
12975
      validate();
12976
    }
12977
 
12978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12979
      validate();
12980
 
12981
      oprot.writeStructBegin(STRUCT_DESC);
12982
      if (this.hotspotId != null) {
12983
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
12984
        oprot.writeString(this.hotspotId);
12985
        oprot.writeFieldEnd();
12986
      }
12987
      oprot.writeFieldStop();
12988
      oprot.writeStructEnd();
12989
    }
12990
 
12991
    @Override
12992
    public String toString() {
12993
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
12994
      boolean first = true;
12995
 
12996
      sb.append("hotspotId:");
12997
      if (this.hotspotId == null) {
12998
        sb.append("null");
12999
      } else {
13000
        sb.append(this.hotspotId);
13001
      }
13002
      first = false;
13003
      sb.append(")");
13004
      return sb.toString();
13005
    }
13006
 
13007
    public void validate() throws org.apache.thrift.TException {
13008
      // check for required fields
13009
    }
13010
 
13011
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13012
      try {
13013
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13014
      } catch (org.apache.thrift.TException te) {
13015
        throw new java.io.IOException(te);
13016
      }
13017
    }
13018
 
13019
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13020
      try {
13021
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13022
      } catch (org.apache.thrift.TException te) {
13023
        throw new java.io.IOException(te);
13024
      }
13025
    }
13026
 
13027
  }
13028
 
13029
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13030
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13031
 
13032
    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);
13033
 
13034
    private PickupStore success; // required
13035
 
13036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13037
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13038
      SUCCESS((short)0, "success");
13039
 
13040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13041
 
13042
      static {
13043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13044
          byName.put(field.getFieldName(), field);
13045
        }
13046
      }
13047
 
13048
      /**
13049
       * Find the _Fields constant that matches fieldId, or null if its not found.
13050
       */
13051
      public static _Fields findByThriftId(int fieldId) {
13052
        switch(fieldId) {
13053
          case 0: // SUCCESS
13054
            return SUCCESS;
13055
          default:
13056
            return null;
13057
        }
13058
      }
13059
 
13060
      /**
13061
       * Find the _Fields constant that matches fieldId, throwing an exception
13062
       * if it is not found.
13063
       */
13064
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13065
        _Fields fields = findByThriftId(fieldId);
13066
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13067
        return fields;
13068
      }
13069
 
13070
      /**
13071
       * Find the _Fields constant that matches name, or null if its not found.
13072
       */
13073
      public static _Fields findByName(String name) {
13074
        return byName.get(name);
13075
      }
13076
 
13077
      private final short _thriftId;
13078
      private final String _fieldName;
13079
 
13080
      _Fields(short thriftId, String fieldName) {
13081
        _thriftId = thriftId;
13082
        _fieldName = fieldName;
13083
      }
13084
 
13085
      public short getThriftFieldId() {
13086
        return _thriftId;
13087
      }
13088
 
13089
      public String getFieldName() {
13090
        return _fieldName;
13091
      }
13092
    }
13093
 
13094
    // isset id assignments
13095
 
13096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13097
    static {
13098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13099
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13100
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13103
    }
13104
 
13105
    public getPickupStoreByHotspotId_result() {
13106
    }
13107
 
13108
    public getPickupStoreByHotspotId_result(
13109
      PickupStore success)
13110
    {
13111
      this();
13112
      this.success = success;
13113
    }
13114
 
13115
    /**
13116
     * Performs a deep copy on <i>other</i>.
13117
     */
13118
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13119
      if (other.isSetSuccess()) {
13120
        this.success = new PickupStore(other.success);
13121
      }
13122
    }
13123
 
13124
    public getPickupStoreByHotspotId_result deepCopy() {
13125
      return new getPickupStoreByHotspotId_result(this);
13126
    }
13127
 
13128
    @Override
13129
    public void clear() {
13130
      this.success = null;
13131
    }
13132
 
13133
    public PickupStore getSuccess() {
13134
      return this.success;
13135
    }
13136
 
13137
    public void setSuccess(PickupStore success) {
13138
      this.success = success;
13139
    }
13140
 
13141
    public void unsetSuccess() {
13142
      this.success = null;
13143
    }
13144
 
13145
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13146
    public boolean isSetSuccess() {
13147
      return this.success != null;
13148
    }
13149
 
13150
    public void setSuccessIsSet(boolean value) {
13151
      if (!value) {
13152
        this.success = null;
13153
      }
13154
    }
13155
 
13156
    public void setFieldValue(_Fields field, Object value) {
13157
      switch (field) {
13158
      case SUCCESS:
13159
        if (value == null) {
13160
          unsetSuccess();
13161
        } else {
13162
          setSuccess((PickupStore)value);
13163
        }
13164
        break;
13165
 
13166
      }
13167
    }
13168
 
13169
    public Object getFieldValue(_Fields field) {
13170
      switch (field) {
13171
      case SUCCESS:
13172
        return getSuccess();
13173
 
13174
      }
13175
      throw new IllegalStateException();
13176
    }
13177
 
13178
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13179
    public boolean isSet(_Fields field) {
13180
      if (field == null) {
13181
        throw new IllegalArgumentException();
13182
      }
13183
 
13184
      switch (field) {
13185
      case SUCCESS:
13186
        return isSetSuccess();
13187
      }
13188
      throw new IllegalStateException();
13189
    }
13190
 
13191
    @Override
13192
    public boolean equals(Object that) {
13193
      if (that == null)
13194
        return false;
13195
      if (that instanceof getPickupStoreByHotspotId_result)
13196
        return this.equals((getPickupStoreByHotspotId_result)that);
13197
      return false;
13198
    }
13199
 
13200
    public boolean equals(getPickupStoreByHotspotId_result that) {
13201
      if (that == null)
13202
        return false;
13203
 
13204
      boolean this_present_success = true && this.isSetSuccess();
13205
      boolean that_present_success = true && that.isSetSuccess();
13206
      if (this_present_success || that_present_success) {
13207
        if (!(this_present_success && that_present_success))
13208
          return false;
13209
        if (!this.success.equals(that.success))
13210
          return false;
13211
      }
13212
 
13213
      return true;
13214
    }
13215
 
13216
    @Override
13217
    public int hashCode() {
13218
      return 0;
13219
    }
13220
 
13221
    public int compareTo(getPickupStoreByHotspotId_result other) {
13222
      if (!getClass().equals(other.getClass())) {
13223
        return getClass().getName().compareTo(other.getClass().getName());
13224
      }
13225
 
13226
      int lastComparison = 0;
13227
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13228
 
13229
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13230
      if (lastComparison != 0) {
13231
        return lastComparison;
13232
      }
13233
      if (isSetSuccess()) {
13234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13235
        if (lastComparison != 0) {
13236
          return lastComparison;
13237
        }
13238
      }
13239
      return 0;
13240
    }
13241
 
13242
    public _Fields fieldForId(int fieldId) {
13243
      return _Fields.findByThriftId(fieldId);
13244
    }
13245
 
13246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13247
      org.apache.thrift.protocol.TField field;
13248
      iprot.readStructBegin();
13249
      while (true)
13250
      {
13251
        field = iprot.readFieldBegin();
13252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13253
          break;
13254
        }
13255
        switch (field.id) {
13256
          case 0: // SUCCESS
13257
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13258
              this.success = new PickupStore();
13259
              this.success.read(iprot);
13260
            } else { 
13261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13262
            }
13263
            break;
13264
          default:
13265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13266
        }
13267
        iprot.readFieldEnd();
13268
      }
13269
      iprot.readStructEnd();
13270
      validate();
13271
    }
13272
 
13273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13274
      oprot.writeStructBegin(STRUCT_DESC);
13275
 
13276
      if (this.isSetSuccess()) {
13277
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13278
        this.success.write(oprot);
13279
        oprot.writeFieldEnd();
13280
      }
13281
      oprot.writeFieldStop();
13282
      oprot.writeStructEnd();
13283
    }
13284
 
13285
    @Override
13286
    public String toString() {
13287
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13288
      boolean first = true;
13289
 
13290
      sb.append("success:");
13291
      if (this.success == null) {
13292
        sb.append("null");
13293
      } else {
13294
        sb.append(this.success);
13295
      }
13296
      first = false;
13297
      sb.append(")");
13298
      return sb.toString();
13299
    }
13300
 
13301
    public void validate() throws org.apache.thrift.TException {
13302
      // check for required fields
13303
    }
13304
 
13305
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13306
      try {
13307
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13308
      } catch (org.apache.thrift.TException te) {
13309
        throw new java.io.IOException(te);
13310
      }
13311
    }
13312
 
13313
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13314
      try {
13315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13316
      } catch (org.apache.thrift.TException te) {
13317
        throw new java.io.IOException(te);
13318
      }
13319
    }
13320
 
13321
  }
13322
 
6322 amar.kumar 13323
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13325
 
13326
    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);
13327
    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);
13328
    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);
13329
    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);
13330
    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);
13331
    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 13332
    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 13333
 
13334
    private long providerId; // required
13335
    private String pincode; // required
13336
    private String destCode; // required
13337
    private boolean exp; // required
13338
    private boolean cod; // required
13339
    private int stationType; // required
6524 rajveer 13340
    private boolean otgAvailable; // required
6322 amar.kumar 13341
 
13342
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13343
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13344
      PROVIDER_ID((short)1, "providerId"),
13345
      PINCODE((short)2, "pincode"),
13346
      DEST_CODE((short)3, "destCode"),
13347
      EXP((short)4, "exp"),
13348
      COD((short)5, "cod"),
6524 rajveer 13349
      STATION_TYPE((short)6, "stationType"),
13350
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13351
 
13352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13353
 
13354
      static {
13355
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13356
          byName.put(field.getFieldName(), field);
13357
        }
13358
      }
13359
 
13360
      /**
13361
       * Find the _Fields constant that matches fieldId, or null if its not found.
13362
       */
13363
      public static _Fields findByThriftId(int fieldId) {
13364
        switch(fieldId) {
13365
          case 1: // PROVIDER_ID
13366
            return PROVIDER_ID;
13367
          case 2: // PINCODE
13368
            return PINCODE;
13369
          case 3: // DEST_CODE
13370
            return DEST_CODE;
13371
          case 4: // EXP
13372
            return EXP;
13373
          case 5: // COD
13374
            return COD;
13375
          case 6: // STATION_TYPE
13376
            return STATION_TYPE;
6524 rajveer 13377
          case 7: // OTG_AVAILABLE
13378
            return OTG_AVAILABLE;
6322 amar.kumar 13379
          default:
13380
            return null;
13381
        }
13382
      }
13383
 
13384
      /**
13385
       * Find the _Fields constant that matches fieldId, throwing an exception
13386
       * if it is not found.
13387
       */
13388
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13389
        _Fields fields = findByThriftId(fieldId);
13390
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13391
        return fields;
13392
      }
13393
 
13394
      /**
13395
       * Find the _Fields constant that matches name, or null if its not found.
13396
       */
13397
      public static _Fields findByName(String name) {
13398
        return byName.get(name);
13399
      }
13400
 
13401
      private final short _thriftId;
13402
      private final String _fieldName;
13403
 
13404
      _Fields(short thriftId, String fieldName) {
13405
        _thriftId = thriftId;
13406
        _fieldName = fieldName;
13407
      }
13408
 
13409
      public short getThriftFieldId() {
13410
        return _thriftId;
13411
      }
13412
 
13413
      public String getFieldName() {
13414
        return _fieldName;
13415
      }
13416
    }
13417
 
13418
    // isset id assignments
13419
    private static final int __PROVIDERID_ISSET_ID = 0;
13420
    private static final int __EXP_ISSET_ID = 1;
13421
    private static final int __COD_ISSET_ID = 2;
13422
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13423
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13424
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13425
 
13426
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13427
    static {
13428
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13429
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13430
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13431
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13433
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13435
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13437
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13439
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13441
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13445
    }
13446
 
13447
    public addPincode_args() {
13448
    }
13449
 
13450
    public addPincode_args(
13451
      long providerId,
13452
      String pincode,
13453
      String destCode,
13454
      boolean exp,
13455
      boolean cod,
6524 rajveer 13456
      int stationType,
13457
      boolean otgAvailable)
6322 amar.kumar 13458
    {
13459
      this();
13460
      this.providerId = providerId;
13461
      setProviderIdIsSet(true);
13462
      this.pincode = pincode;
13463
      this.destCode = destCode;
13464
      this.exp = exp;
13465
      setExpIsSet(true);
13466
      this.cod = cod;
13467
      setCodIsSet(true);
13468
      this.stationType = stationType;
13469
      setStationTypeIsSet(true);
6524 rajveer 13470
      this.otgAvailable = otgAvailable;
13471
      setOtgAvailableIsSet(true);
6322 amar.kumar 13472
    }
13473
 
13474
    /**
13475
     * Performs a deep copy on <i>other</i>.
13476
     */
13477
    public addPincode_args(addPincode_args other) {
13478
      __isset_bit_vector.clear();
13479
      __isset_bit_vector.or(other.__isset_bit_vector);
13480
      this.providerId = other.providerId;
13481
      if (other.isSetPincode()) {
13482
        this.pincode = other.pincode;
13483
      }
13484
      if (other.isSetDestCode()) {
13485
        this.destCode = other.destCode;
13486
      }
13487
      this.exp = other.exp;
13488
      this.cod = other.cod;
13489
      this.stationType = other.stationType;
6524 rajveer 13490
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13491
    }
13492
 
13493
    public addPincode_args deepCopy() {
13494
      return new addPincode_args(this);
13495
    }
13496
 
13497
    @Override
13498
    public void clear() {
13499
      setProviderIdIsSet(false);
13500
      this.providerId = 0;
13501
      this.pincode = null;
13502
      this.destCode = null;
13503
      setExpIsSet(false);
13504
      this.exp = false;
13505
      setCodIsSet(false);
13506
      this.cod = false;
13507
      setStationTypeIsSet(false);
13508
      this.stationType = 0;
6524 rajveer 13509
      setOtgAvailableIsSet(false);
13510
      this.otgAvailable = false;
6322 amar.kumar 13511
    }
13512
 
13513
    public long getProviderId() {
13514
      return this.providerId;
13515
    }
13516
 
13517
    public void setProviderId(long providerId) {
13518
      this.providerId = providerId;
13519
      setProviderIdIsSet(true);
13520
    }
13521
 
13522
    public void unsetProviderId() {
13523
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13524
    }
13525
 
13526
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13527
    public boolean isSetProviderId() {
13528
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13529
    }
13530
 
13531
    public void setProviderIdIsSet(boolean value) {
13532
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13533
    }
13534
 
13535
    public String getPincode() {
13536
      return this.pincode;
13537
    }
13538
 
13539
    public void setPincode(String pincode) {
13540
      this.pincode = pincode;
13541
    }
13542
 
13543
    public void unsetPincode() {
13544
      this.pincode = null;
13545
    }
13546
 
13547
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13548
    public boolean isSetPincode() {
13549
      return this.pincode != null;
13550
    }
13551
 
13552
    public void setPincodeIsSet(boolean value) {
13553
      if (!value) {
13554
        this.pincode = null;
13555
      }
13556
    }
13557
 
13558
    public String getDestCode() {
13559
      return this.destCode;
13560
    }
13561
 
13562
    public void setDestCode(String destCode) {
13563
      this.destCode = destCode;
13564
    }
13565
 
13566
    public void unsetDestCode() {
13567
      this.destCode = null;
13568
    }
13569
 
13570
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13571
    public boolean isSetDestCode() {
13572
      return this.destCode != null;
13573
    }
13574
 
13575
    public void setDestCodeIsSet(boolean value) {
13576
      if (!value) {
13577
        this.destCode = null;
13578
      }
13579
    }
13580
 
13581
    public boolean isExp() {
13582
      return this.exp;
13583
    }
13584
 
13585
    public void setExp(boolean exp) {
13586
      this.exp = exp;
13587
      setExpIsSet(true);
13588
    }
13589
 
13590
    public void unsetExp() {
13591
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13592
    }
13593
 
13594
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13595
    public boolean isSetExp() {
13596
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13597
    }
13598
 
13599
    public void setExpIsSet(boolean value) {
13600
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13601
    }
13602
 
13603
    public boolean isCod() {
13604
      return this.cod;
13605
    }
13606
 
13607
    public void setCod(boolean cod) {
13608
      this.cod = cod;
13609
      setCodIsSet(true);
13610
    }
13611
 
13612
    public void unsetCod() {
13613
      __isset_bit_vector.clear(__COD_ISSET_ID);
13614
    }
13615
 
13616
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13617
    public boolean isSetCod() {
13618
      return __isset_bit_vector.get(__COD_ISSET_ID);
13619
    }
13620
 
13621
    public void setCodIsSet(boolean value) {
13622
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13623
    }
13624
 
13625
    public int getStationType() {
13626
      return this.stationType;
13627
    }
13628
 
13629
    public void setStationType(int stationType) {
13630
      this.stationType = stationType;
13631
      setStationTypeIsSet(true);
13632
    }
13633
 
13634
    public void unsetStationType() {
13635
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13636
    }
13637
 
13638
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13639
    public boolean isSetStationType() {
13640
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13641
    }
13642
 
13643
    public void setStationTypeIsSet(boolean value) {
13644
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13645
    }
13646
 
6524 rajveer 13647
    public boolean isOtgAvailable() {
13648
      return this.otgAvailable;
13649
    }
13650
 
13651
    public void setOtgAvailable(boolean otgAvailable) {
13652
      this.otgAvailable = otgAvailable;
13653
      setOtgAvailableIsSet(true);
13654
    }
13655
 
13656
    public void unsetOtgAvailable() {
13657
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13658
    }
13659
 
13660
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13661
    public boolean isSetOtgAvailable() {
13662
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13663
    }
13664
 
13665
    public void setOtgAvailableIsSet(boolean value) {
13666
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13667
    }
13668
 
6322 amar.kumar 13669
    public void setFieldValue(_Fields field, Object value) {
13670
      switch (field) {
13671
      case PROVIDER_ID:
13672
        if (value == null) {
13673
          unsetProviderId();
13674
        } else {
13675
          setProviderId((Long)value);
13676
        }
13677
        break;
13678
 
13679
      case PINCODE:
13680
        if (value == null) {
13681
          unsetPincode();
13682
        } else {
13683
          setPincode((String)value);
13684
        }
13685
        break;
13686
 
13687
      case DEST_CODE:
13688
        if (value == null) {
13689
          unsetDestCode();
13690
        } else {
13691
          setDestCode((String)value);
13692
        }
13693
        break;
13694
 
13695
      case EXP:
13696
        if (value == null) {
13697
          unsetExp();
13698
        } else {
13699
          setExp((Boolean)value);
13700
        }
13701
        break;
13702
 
13703
      case COD:
13704
        if (value == null) {
13705
          unsetCod();
13706
        } else {
13707
          setCod((Boolean)value);
13708
        }
13709
        break;
13710
 
13711
      case STATION_TYPE:
13712
        if (value == null) {
13713
          unsetStationType();
13714
        } else {
13715
          setStationType((Integer)value);
13716
        }
13717
        break;
13718
 
6524 rajveer 13719
      case OTG_AVAILABLE:
13720
        if (value == null) {
13721
          unsetOtgAvailable();
13722
        } else {
13723
          setOtgAvailable((Boolean)value);
13724
        }
13725
        break;
13726
 
6322 amar.kumar 13727
      }
13728
    }
13729
 
13730
    public Object getFieldValue(_Fields field) {
13731
      switch (field) {
13732
      case PROVIDER_ID:
13733
        return Long.valueOf(getProviderId());
13734
 
13735
      case PINCODE:
13736
        return getPincode();
13737
 
13738
      case DEST_CODE:
13739
        return getDestCode();
13740
 
13741
      case EXP:
13742
        return Boolean.valueOf(isExp());
13743
 
13744
      case COD:
13745
        return Boolean.valueOf(isCod());
13746
 
13747
      case STATION_TYPE:
13748
        return Integer.valueOf(getStationType());
13749
 
6524 rajveer 13750
      case OTG_AVAILABLE:
13751
        return Boolean.valueOf(isOtgAvailable());
13752
 
6322 amar.kumar 13753
      }
13754
      throw new IllegalStateException();
13755
    }
13756
 
13757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13758
    public boolean isSet(_Fields field) {
13759
      if (field == null) {
13760
        throw new IllegalArgumentException();
13761
      }
13762
 
13763
      switch (field) {
13764
      case PROVIDER_ID:
13765
        return isSetProviderId();
13766
      case PINCODE:
13767
        return isSetPincode();
13768
      case DEST_CODE:
13769
        return isSetDestCode();
13770
      case EXP:
13771
        return isSetExp();
13772
      case COD:
13773
        return isSetCod();
13774
      case STATION_TYPE:
13775
        return isSetStationType();
6524 rajveer 13776
      case OTG_AVAILABLE:
13777
        return isSetOtgAvailable();
6322 amar.kumar 13778
      }
13779
      throw new IllegalStateException();
13780
    }
13781
 
13782
    @Override
13783
    public boolean equals(Object that) {
13784
      if (that == null)
13785
        return false;
13786
      if (that instanceof addPincode_args)
13787
        return this.equals((addPincode_args)that);
13788
      return false;
13789
    }
13790
 
13791
    public boolean equals(addPincode_args that) {
13792
      if (that == null)
13793
        return false;
13794
 
13795
      boolean this_present_providerId = true;
13796
      boolean that_present_providerId = true;
13797
      if (this_present_providerId || that_present_providerId) {
13798
        if (!(this_present_providerId && that_present_providerId))
13799
          return false;
13800
        if (this.providerId != that.providerId)
13801
          return false;
13802
      }
13803
 
13804
      boolean this_present_pincode = true && this.isSetPincode();
13805
      boolean that_present_pincode = true && that.isSetPincode();
13806
      if (this_present_pincode || that_present_pincode) {
13807
        if (!(this_present_pincode && that_present_pincode))
13808
          return false;
13809
        if (!this.pincode.equals(that.pincode))
13810
          return false;
13811
      }
13812
 
13813
      boolean this_present_destCode = true && this.isSetDestCode();
13814
      boolean that_present_destCode = true && that.isSetDestCode();
13815
      if (this_present_destCode || that_present_destCode) {
13816
        if (!(this_present_destCode && that_present_destCode))
13817
          return false;
13818
        if (!this.destCode.equals(that.destCode))
13819
          return false;
13820
      }
13821
 
13822
      boolean this_present_exp = true;
13823
      boolean that_present_exp = true;
13824
      if (this_present_exp || that_present_exp) {
13825
        if (!(this_present_exp && that_present_exp))
13826
          return false;
13827
        if (this.exp != that.exp)
13828
          return false;
13829
      }
13830
 
13831
      boolean this_present_cod = true;
13832
      boolean that_present_cod = true;
13833
      if (this_present_cod || that_present_cod) {
13834
        if (!(this_present_cod && that_present_cod))
13835
          return false;
13836
        if (this.cod != that.cod)
13837
          return false;
13838
      }
13839
 
13840
      boolean this_present_stationType = true;
13841
      boolean that_present_stationType = true;
13842
      if (this_present_stationType || that_present_stationType) {
13843
        if (!(this_present_stationType && that_present_stationType))
13844
          return false;
13845
        if (this.stationType != that.stationType)
13846
          return false;
13847
      }
13848
 
6524 rajveer 13849
      boolean this_present_otgAvailable = true;
13850
      boolean that_present_otgAvailable = true;
13851
      if (this_present_otgAvailable || that_present_otgAvailable) {
13852
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13853
          return false;
13854
        if (this.otgAvailable != that.otgAvailable)
13855
          return false;
13856
      }
13857
 
6322 amar.kumar 13858
      return true;
13859
    }
13860
 
13861
    @Override
13862
    public int hashCode() {
13863
      return 0;
13864
    }
13865
 
13866
    public int compareTo(addPincode_args other) {
13867
      if (!getClass().equals(other.getClass())) {
13868
        return getClass().getName().compareTo(other.getClass().getName());
13869
      }
13870
 
13871
      int lastComparison = 0;
13872
      addPincode_args typedOther = (addPincode_args)other;
13873
 
13874
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13875
      if (lastComparison != 0) {
13876
        return lastComparison;
13877
      }
13878
      if (isSetProviderId()) {
13879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13880
        if (lastComparison != 0) {
13881
          return lastComparison;
13882
        }
13883
      }
13884
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13885
      if (lastComparison != 0) {
13886
        return lastComparison;
13887
      }
13888
      if (isSetPincode()) {
13889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13890
        if (lastComparison != 0) {
13891
          return lastComparison;
13892
        }
13893
      }
13894
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
13895
      if (lastComparison != 0) {
13896
        return lastComparison;
13897
      }
13898
      if (isSetDestCode()) {
13899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
13900
        if (lastComparison != 0) {
13901
          return lastComparison;
13902
        }
13903
      }
13904
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13905
      if (lastComparison != 0) {
13906
        return lastComparison;
13907
      }
13908
      if (isSetExp()) {
13909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13910
        if (lastComparison != 0) {
13911
          return lastComparison;
13912
        }
13913
      }
13914
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13915
      if (lastComparison != 0) {
13916
        return lastComparison;
13917
      }
13918
      if (isSetCod()) {
13919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
13920
        if (lastComparison != 0) {
13921
          return lastComparison;
13922
        }
13923
      }
13924
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
13925
      if (lastComparison != 0) {
13926
        return lastComparison;
13927
      }
13928
      if (isSetStationType()) {
13929
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
13930
        if (lastComparison != 0) {
13931
          return lastComparison;
13932
        }
13933
      }
6524 rajveer 13934
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
13935
      if (lastComparison != 0) {
13936
        return lastComparison;
13937
      }
13938
      if (isSetOtgAvailable()) {
13939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
13940
        if (lastComparison != 0) {
13941
          return lastComparison;
13942
        }
13943
      }
6322 amar.kumar 13944
      return 0;
13945
    }
13946
 
13947
    public _Fields fieldForId(int fieldId) {
13948
      return _Fields.findByThriftId(fieldId);
13949
    }
13950
 
13951
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13952
      org.apache.thrift.protocol.TField field;
13953
      iprot.readStructBegin();
13954
      while (true)
13955
      {
13956
        field = iprot.readFieldBegin();
13957
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13958
          break;
13959
        }
13960
        switch (field.id) {
13961
          case 1: // PROVIDER_ID
13962
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13963
              this.providerId = iprot.readI64();
13964
              setProviderIdIsSet(true);
13965
            } else { 
13966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13967
            }
13968
            break;
13969
          case 2: // PINCODE
13970
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13971
              this.pincode = iprot.readString();
13972
            } else { 
13973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13974
            }
13975
            break;
13976
          case 3: // DEST_CODE
13977
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13978
              this.destCode = iprot.readString();
13979
            } else { 
13980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13981
            }
13982
            break;
13983
          case 4: // EXP
13984
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13985
              this.exp = iprot.readBool();
13986
              setExpIsSet(true);
13987
            } else { 
13988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13989
            }
13990
            break;
13991
          case 5: // COD
13992
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13993
              this.cod = iprot.readBool();
13994
              setCodIsSet(true);
13995
            } else { 
13996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13997
            }
13998
            break;
13999
          case 6: // STATION_TYPE
14000
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14001
              this.stationType = iprot.readI32();
14002
              setStationTypeIsSet(true);
14003
            } else { 
14004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14005
            }
14006
            break;
6524 rajveer 14007
          case 7: // OTG_AVAILABLE
14008
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14009
              this.otgAvailable = iprot.readBool();
14010
              setOtgAvailableIsSet(true);
14011
            } else { 
14012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14013
            }
14014
            break;
6322 amar.kumar 14015
          default:
14016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14017
        }
14018
        iprot.readFieldEnd();
14019
      }
14020
      iprot.readStructEnd();
14021
      validate();
14022
    }
14023
 
14024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14025
      validate();
14026
 
14027
      oprot.writeStructBegin(STRUCT_DESC);
14028
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14029
      oprot.writeI64(this.providerId);
14030
      oprot.writeFieldEnd();
14031
      if (this.pincode != null) {
14032
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14033
        oprot.writeString(this.pincode);
14034
        oprot.writeFieldEnd();
14035
      }
14036
      if (this.destCode != null) {
14037
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14038
        oprot.writeString(this.destCode);
14039
        oprot.writeFieldEnd();
14040
      }
14041
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14042
      oprot.writeBool(this.exp);
14043
      oprot.writeFieldEnd();
14044
      oprot.writeFieldBegin(COD_FIELD_DESC);
14045
      oprot.writeBool(this.cod);
14046
      oprot.writeFieldEnd();
14047
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14048
      oprot.writeI32(this.stationType);
14049
      oprot.writeFieldEnd();
6524 rajveer 14050
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14051
      oprot.writeBool(this.otgAvailable);
14052
      oprot.writeFieldEnd();
6322 amar.kumar 14053
      oprot.writeFieldStop();
14054
      oprot.writeStructEnd();
14055
    }
14056
 
14057
    @Override
14058
    public String toString() {
14059
      StringBuilder sb = new StringBuilder("addPincode_args(");
14060
      boolean first = true;
14061
 
14062
      sb.append("providerId:");
14063
      sb.append(this.providerId);
14064
      first = false;
14065
      if (!first) sb.append(", ");
14066
      sb.append("pincode:");
14067
      if (this.pincode == null) {
14068
        sb.append("null");
14069
      } else {
14070
        sb.append(this.pincode);
14071
      }
14072
      first = false;
14073
      if (!first) sb.append(", ");
14074
      sb.append("destCode:");
14075
      if (this.destCode == null) {
14076
        sb.append("null");
14077
      } else {
14078
        sb.append(this.destCode);
14079
      }
14080
      first = false;
14081
      if (!first) sb.append(", ");
14082
      sb.append("exp:");
14083
      sb.append(this.exp);
14084
      first = false;
14085
      if (!first) sb.append(", ");
14086
      sb.append("cod:");
14087
      sb.append(this.cod);
14088
      first = false;
14089
      if (!first) sb.append(", ");
14090
      sb.append("stationType:");
14091
      sb.append(this.stationType);
14092
      first = false;
6524 rajveer 14093
      if (!first) sb.append(", ");
14094
      sb.append("otgAvailable:");
14095
      sb.append(this.otgAvailable);
14096
      first = false;
6322 amar.kumar 14097
      sb.append(")");
14098
      return sb.toString();
14099
    }
14100
 
14101
    public void validate() throws org.apache.thrift.TException {
14102
      // check for required fields
14103
    }
14104
 
14105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14106
      try {
14107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14108
      } catch (org.apache.thrift.TException te) {
14109
        throw new java.io.IOException(te);
14110
      }
14111
    }
14112
 
14113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14114
      try {
14115
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14116
        __isset_bit_vector = new BitSet(1);
14117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14118
      } catch (org.apache.thrift.TException te) {
14119
        throw new java.io.IOException(te);
14120
      }
14121
    }
14122
 
14123
  }
14124
 
14125
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14127
 
14128
 
14129
 
14130
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14131
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14132
;
14133
 
14134
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14135
 
14136
      static {
14137
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14138
          byName.put(field.getFieldName(), field);
14139
        }
14140
      }
14141
 
14142
      /**
14143
       * Find the _Fields constant that matches fieldId, or null if its not found.
14144
       */
14145
      public static _Fields findByThriftId(int fieldId) {
14146
        switch(fieldId) {
14147
          default:
14148
            return null;
14149
        }
14150
      }
14151
 
14152
      /**
14153
       * Find the _Fields constant that matches fieldId, throwing an exception
14154
       * if it is not found.
14155
       */
14156
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14157
        _Fields fields = findByThriftId(fieldId);
14158
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14159
        return fields;
14160
      }
14161
 
14162
      /**
14163
       * Find the _Fields constant that matches name, or null if its not found.
14164
       */
14165
      public static _Fields findByName(String name) {
14166
        return byName.get(name);
14167
      }
14168
 
14169
      private final short _thriftId;
14170
      private final String _fieldName;
14171
 
14172
      _Fields(short thriftId, String fieldName) {
14173
        _thriftId = thriftId;
14174
        _fieldName = fieldName;
14175
      }
14176
 
14177
      public short getThriftFieldId() {
14178
        return _thriftId;
14179
      }
14180
 
14181
      public String getFieldName() {
14182
        return _fieldName;
14183
      }
14184
    }
14185
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14186
    static {
14187
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14190
    }
14191
 
14192
    public addPincode_result() {
14193
    }
14194
 
14195
    /**
14196
     * Performs a deep copy on <i>other</i>.
14197
     */
14198
    public addPincode_result(addPincode_result other) {
14199
    }
14200
 
14201
    public addPincode_result deepCopy() {
14202
      return new addPincode_result(this);
14203
    }
14204
 
14205
    @Override
14206
    public void clear() {
14207
    }
14208
 
14209
    public void setFieldValue(_Fields field, Object value) {
14210
      switch (field) {
14211
      }
14212
    }
14213
 
14214
    public Object getFieldValue(_Fields field) {
14215
      switch (field) {
14216
      }
14217
      throw new IllegalStateException();
14218
    }
14219
 
14220
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14221
    public boolean isSet(_Fields field) {
14222
      if (field == null) {
14223
        throw new IllegalArgumentException();
14224
      }
14225
 
14226
      switch (field) {
14227
      }
14228
      throw new IllegalStateException();
14229
    }
14230
 
14231
    @Override
14232
    public boolean equals(Object that) {
14233
      if (that == null)
14234
        return false;
14235
      if (that instanceof addPincode_result)
14236
        return this.equals((addPincode_result)that);
14237
      return false;
14238
    }
14239
 
14240
    public boolean equals(addPincode_result that) {
14241
      if (that == null)
14242
        return false;
14243
 
14244
      return true;
14245
    }
14246
 
14247
    @Override
14248
    public int hashCode() {
14249
      return 0;
14250
    }
14251
 
14252
    public int compareTo(addPincode_result other) {
14253
      if (!getClass().equals(other.getClass())) {
14254
        return getClass().getName().compareTo(other.getClass().getName());
14255
      }
14256
 
14257
      int lastComparison = 0;
14258
      addPincode_result typedOther = (addPincode_result)other;
14259
 
14260
      return 0;
14261
    }
14262
 
14263
    public _Fields fieldForId(int fieldId) {
14264
      return _Fields.findByThriftId(fieldId);
14265
    }
14266
 
14267
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14268
      org.apache.thrift.protocol.TField field;
14269
      iprot.readStructBegin();
14270
      while (true)
14271
      {
14272
        field = iprot.readFieldBegin();
14273
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14274
          break;
14275
        }
14276
        switch (field.id) {
14277
          default:
14278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14279
        }
14280
        iprot.readFieldEnd();
14281
      }
14282
      iprot.readStructEnd();
14283
      validate();
14284
    }
14285
 
14286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14287
      oprot.writeStructBegin(STRUCT_DESC);
14288
 
14289
      oprot.writeFieldStop();
14290
      oprot.writeStructEnd();
14291
    }
14292
 
14293
    @Override
14294
    public String toString() {
14295
      StringBuilder sb = new StringBuilder("addPincode_result(");
14296
      boolean first = true;
14297
 
14298
      sb.append(")");
14299
      return sb.toString();
14300
    }
14301
 
14302
    public void validate() throws org.apache.thrift.TException {
14303
      // check for required fields
14304
    }
14305
 
14306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14307
      try {
14308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14309
      } catch (org.apache.thrift.TException te) {
14310
        throw new java.io.IOException(te);
14311
      }
14312
    }
14313
 
14314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14315
      try {
14316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14317
      } catch (org.apache.thrift.TException te) {
14318
        throw new java.io.IOException(te);
14319
      }
14320
    }
14321
 
14322
  }
14323
 
14324
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14326
 
14327
    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);
14328
    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);
14329
    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);
14330
    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 14331
    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 14332
 
14333
    private long providerId; // required
14334
    private String pincode; // required
14335
    private boolean exp; // required
14336
    private boolean cod; // required
6524 rajveer 14337
    private boolean otgAvailable; // required
6322 amar.kumar 14338
 
14339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14341
      PROVIDER_ID((short)1, "providerId"),
14342
      PINCODE((short)2, "pincode"),
14343
      EXP((short)3, "exp"),
6524 rajveer 14344
      COD((short)4, "cod"),
14345
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14346
 
14347
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14348
 
14349
      static {
14350
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14351
          byName.put(field.getFieldName(), field);
14352
        }
14353
      }
14354
 
14355
      /**
14356
       * Find the _Fields constant that matches fieldId, or null if its not found.
14357
       */
14358
      public static _Fields findByThriftId(int fieldId) {
14359
        switch(fieldId) {
14360
          case 1: // PROVIDER_ID
14361
            return PROVIDER_ID;
14362
          case 2: // PINCODE
14363
            return PINCODE;
14364
          case 3: // EXP
14365
            return EXP;
14366
          case 4: // COD
14367
            return COD;
6524 rajveer 14368
          case 5: // OTG_AVAILABLE
14369
            return OTG_AVAILABLE;
6322 amar.kumar 14370
          default:
14371
            return null;
14372
        }
14373
      }
14374
 
14375
      /**
14376
       * Find the _Fields constant that matches fieldId, throwing an exception
14377
       * if it is not found.
14378
       */
14379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14380
        _Fields fields = findByThriftId(fieldId);
14381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14382
        return fields;
14383
      }
14384
 
14385
      /**
14386
       * Find the _Fields constant that matches name, or null if its not found.
14387
       */
14388
      public static _Fields findByName(String name) {
14389
        return byName.get(name);
14390
      }
14391
 
14392
      private final short _thriftId;
14393
      private final String _fieldName;
14394
 
14395
      _Fields(short thriftId, String fieldName) {
14396
        _thriftId = thriftId;
14397
        _fieldName = fieldName;
14398
      }
14399
 
14400
      public short getThriftFieldId() {
14401
        return _thriftId;
14402
      }
14403
 
14404
      public String getFieldName() {
14405
        return _fieldName;
14406
      }
14407
    }
14408
 
14409
    // isset id assignments
14410
    private static final int __PROVIDERID_ISSET_ID = 0;
14411
    private static final int __EXP_ISSET_ID = 1;
14412
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14413
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14414
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14415
 
14416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14417
    static {
14418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14419
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14421
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14423
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14425
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14427
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14428
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14429
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14430
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14431
    }
14432
 
14433
    public updatePincode_args() {
14434
    }
14435
 
14436
    public updatePincode_args(
14437
      long providerId,
14438
      String pincode,
14439
      boolean exp,
6524 rajveer 14440
      boolean cod,
14441
      boolean otgAvailable)
6322 amar.kumar 14442
    {
14443
      this();
14444
      this.providerId = providerId;
14445
      setProviderIdIsSet(true);
14446
      this.pincode = pincode;
14447
      this.exp = exp;
14448
      setExpIsSet(true);
14449
      this.cod = cod;
14450
      setCodIsSet(true);
6524 rajveer 14451
      this.otgAvailable = otgAvailable;
14452
      setOtgAvailableIsSet(true);
6322 amar.kumar 14453
    }
14454
 
14455
    /**
14456
     * Performs a deep copy on <i>other</i>.
14457
     */
14458
    public updatePincode_args(updatePincode_args other) {
14459
      __isset_bit_vector.clear();
14460
      __isset_bit_vector.or(other.__isset_bit_vector);
14461
      this.providerId = other.providerId;
14462
      if (other.isSetPincode()) {
14463
        this.pincode = other.pincode;
14464
      }
14465
      this.exp = other.exp;
14466
      this.cod = other.cod;
6524 rajveer 14467
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14468
    }
14469
 
14470
    public updatePincode_args deepCopy() {
14471
      return new updatePincode_args(this);
14472
    }
14473
 
14474
    @Override
14475
    public void clear() {
14476
      setProviderIdIsSet(false);
14477
      this.providerId = 0;
14478
      this.pincode = null;
14479
      setExpIsSet(false);
14480
      this.exp = false;
14481
      setCodIsSet(false);
14482
      this.cod = false;
6524 rajveer 14483
      setOtgAvailableIsSet(false);
14484
      this.otgAvailable = false;
6322 amar.kumar 14485
    }
14486
 
14487
    public long getProviderId() {
14488
      return this.providerId;
14489
    }
14490
 
14491
    public void setProviderId(long providerId) {
14492
      this.providerId = providerId;
14493
      setProviderIdIsSet(true);
14494
    }
14495
 
14496
    public void unsetProviderId() {
14497
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14498
    }
14499
 
14500
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14501
    public boolean isSetProviderId() {
14502
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14503
    }
14504
 
14505
    public void setProviderIdIsSet(boolean value) {
14506
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14507
    }
14508
 
14509
    public String getPincode() {
14510
      return this.pincode;
14511
    }
14512
 
14513
    public void setPincode(String pincode) {
14514
      this.pincode = pincode;
14515
    }
14516
 
14517
    public void unsetPincode() {
14518
      this.pincode = null;
14519
    }
14520
 
14521
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14522
    public boolean isSetPincode() {
14523
      return this.pincode != null;
14524
    }
14525
 
14526
    public void setPincodeIsSet(boolean value) {
14527
      if (!value) {
14528
        this.pincode = null;
14529
      }
14530
    }
14531
 
14532
    public boolean isExp() {
14533
      return this.exp;
14534
    }
14535
 
14536
    public void setExp(boolean exp) {
14537
      this.exp = exp;
14538
      setExpIsSet(true);
14539
    }
14540
 
14541
    public void unsetExp() {
14542
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14543
    }
14544
 
14545
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14546
    public boolean isSetExp() {
14547
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14548
    }
14549
 
14550
    public void setExpIsSet(boolean value) {
14551
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14552
    }
14553
 
14554
    public boolean isCod() {
14555
      return this.cod;
14556
    }
14557
 
14558
    public void setCod(boolean cod) {
14559
      this.cod = cod;
14560
      setCodIsSet(true);
14561
    }
14562
 
14563
    public void unsetCod() {
14564
      __isset_bit_vector.clear(__COD_ISSET_ID);
14565
    }
14566
 
14567
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14568
    public boolean isSetCod() {
14569
      return __isset_bit_vector.get(__COD_ISSET_ID);
14570
    }
14571
 
14572
    public void setCodIsSet(boolean value) {
14573
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14574
    }
14575
 
6524 rajveer 14576
    public boolean isOtgAvailable() {
14577
      return this.otgAvailable;
14578
    }
14579
 
14580
    public void setOtgAvailable(boolean otgAvailable) {
14581
      this.otgAvailable = otgAvailable;
14582
      setOtgAvailableIsSet(true);
14583
    }
14584
 
14585
    public void unsetOtgAvailable() {
14586
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14587
    }
14588
 
14589
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14590
    public boolean isSetOtgAvailable() {
14591
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14592
    }
14593
 
14594
    public void setOtgAvailableIsSet(boolean value) {
14595
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14596
    }
14597
 
6322 amar.kumar 14598
    public void setFieldValue(_Fields field, Object value) {
14599
      switch (field) {
14600
      case PROVIDER_ID:
14601
        if (value == null) {
14602
          unsetProviderId();
14603
        } else {
14604
          setProviderId((Long)value);
14605
        }
14606
        break;
14607
 
14608
      case PINCODE:
14609
        if (value == null) {
14610
          unsetPincode();
14611
        } else {
14612
          setPincode((String)value);
14613
        }
14614
        break;
14615
 
14616
      case EXP:
14617
        if (value == null) {
14618
          unsetExp();
14619
        } else {
14620
          setExp((Boolean)value);
14621
        }
14622
        break;
14623
 
14624
      case COD:
14625
        if (value == null) {
14626
          unsetCod();
14627
        } else {
14628
          setCod((Boolean)value);
14629
        }
14630
        break;
14631
 
6524 rajveer 14632
      case OTG_AVAILABLE:
14633
        if (value == null) {
14634
          unsetOtgAvailable();
14635
        } else {
14636
          setOtgAvailable((Boolean)value);
14637
        }
14638
        break;
14639
 
6322 amar.kumar 14640
      }
14641
    }
14642
 
14643
    public Object getFieldValue(_Fields field) {
14644
      switch (field) {
14645
      case PROVIDER_ID:
14646
        return Long.valueOf(getProviderId());
14647
 
14648
      case PINCODE:
14649
        return getPincode();
14650
 
14651
      case EXP:
14652
        return Boolean.valueOf(isExp());
14653
 
14654
      case COD:
14655
        return Boolean.valueOf(isCod());
14656
 
6524 rajveer 14657
      case OTG_AVAILABLE:
14658
        return Boolean.valueOf(isOtgAvailable());
14659
 
6322 amar.kumar 14660
      }
14661
      throw new IllegalStateException();
14662
    }
14663
 
14664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14665
    public boolean isSet(_Fields field) {
14666
      if (field == null) {
14667
        throw new IllegalArgumentException();
14668
      }
14669
 
14670
      switch (field) {
14671
      case PROVIDER_ID:
14672
        return isSetProviderId();
14673
      case PINCODE:
14674
        return isSetPincode();
14675
      case EXP:
14676
        return isSetExp();
14677
      case COD:
14678
        return isSetCod();
6524 rajveer 14679
      case OTG_AVAILABLE:
14680
        return isSetOtgAvailable();
6322 amar.kumar 14681
      }
14682
      throw new IllegalStateException();
14683
    }
14684
 
14685
    @Override
14686
    public boolean equals(Object that) {
14687
      if (that == null)
14688
        return false;
14689
      if (that instanceof updatePincode_args)
14690
        return this.equals((updatePincode_args)that);
14691
      return false;
14692
    }
14693
 
14694
    public boolean equals(updatePincode_args that) {
14695
      if (that == null)
14696
        return false;
14697
 
14698
      boolean this_present_providerId = true;
14699
      boolean that_present_providerId = true;
14700
      if (this_present_providerId || that_present_providerId) {
14701
        if (!(this_present_providerId && that_present_providerId))
14702
          return false;
14703
        if (this.providerId != that.providerId)
14704
          return false;
14705
      }
14706
 
14707
      boolean this_present_pincode = true && this.isSetPincode();
14708
      boolean that_present_pincode = true && that.isSetPincode();
14709
      if (this_present_pincode || that_present_pincode) {
14710
        if (!(this_present_pincode && that_present_pincode))
14711
          return false;
14712
        if (!this.pincode.equals(that.pincode))
14713
          return false;
14714
      }
14715
 
14716
      boolean this_present_exp = true;
14717
      boolean that_present_exp = true;
14718
      if (this_present_exp || that_present_exp) {
14719
        if (!(this_present_exp && that_present_exp))
14720
          return false;
14721
        if (this.exp != that.exp)
14722
          return false;
14723
      }
14724
 
14725
      boolean this_present_cod = true;
14726
      boolean that_present_cod = true;
14727
      if (this_present_cod || that_present_cod) {
14728
        if (!(this_present_cod && that_present_cod))
14729
          return false;
14730
        if (this.cod != that.cod)
14731
          return false;
14732
      }
14733
 
6524 rajveer 14734
      boolean this_present_otgAvailable = true;
14735
      boolean that_present_otgAvailable = true;
14736
      if (this_present_otgAvailable || that_present_otgAvailable) {
14737
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14738
          return false;
14739
        if (this.otgAvailable != that.otgAvailable)
14740
          return false;
14741
      }
14742
 
6322 amar.kumar 14743
      return true;
14744
    }
14745
 
14746
    @Override
14747
    public int hashCode() {
14748
      return 0;
14749
    }
14750
 
14751
    public int compareTo(updatePincode_args other) {
14752
      if (!getClass().equals(other.getClass())) {
14753
        return getClass().getName().compareTo(other.getClass().getName());
14754
      }
14755
 
14756
      int lastComparison = 0;
14757
      updatePincode_args typedOther = (updatePincode_args)other;
14758
 
14759
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14760
      if (lastComparison != 0) {
14761
        return lastComparison;
14762
      }
14763
      if (isSetProviderId()) {
14764
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14765
        if (lastComparison != 0) {
14766
          return lastComparison;
14767
        }
14768
      }
14769
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14770
      if (lastComparison != 0) {
14771
        return lastComparison;
14772
      }
14773
      if (isSetPincode()) {
14774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14775
        if (lastComparison != 0) {
14776
          return lastComparison;
14777
        }
14778
      }
14779
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14780
      if (lastComparison != 0) {
14781
        return lastComparison;
14782
      }
14783
      if (isSetExp()) {
14784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14785
        if (lastComparison != 0) {
14786
          return lastComparison;
14787
        }
14788
      }
14789
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14790
      if (lastComparison != 0) {
14791
        return lastComparison;
14792
      }
14793
      if (isSetCod()) {
14794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14795
        if (lastComparison != 0) {
14796
          return lastComparison;
14797
        }
14798
      }
6524 rajveer 14799
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14800
      if (lastComparison != 0) {
14801
        return lastComparison;
14802
      }
14803
      if (isSetOtgAvailable()) {
14804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14805
        if (lastComparison != 0) {
14806
          return lastComparison;
14807
        }
14808
      }
6322 amar.kumar 14809
      return 0;
14810
    }
14811
 
14812
    public _Fields fieldForId(int fieldId) {
14813
      return _Fields.findByThriftId(fieldId);
14814
    }
14815
 
14816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14817
      org.apache.thrift.protocol.TField field;
14818
      iprot.readStructBegin();
14819
      while (true)
14820
      {
14821
        field = iprot.readFieldBegin();
14822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14823
          break;
14824
        }
14825
        switch (field.id) {
14826
          case 1: // PROVIDER_ID
14827
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14828
              this.providerId = iprot.readI64();
14829
              setProviderIdIsSet(true);
14830
            } else { 
14831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14832
            }
14833
            break;
14834
          case 2: // PINCODE
14835
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14836
              this.pincode = iprot.readString();
14837
            } else { 
14838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14839
            }
14840
            break;
14841
          case 3: // EXP
14842
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14843
              this.exp = iprot.readBool();
14844
              setExpIsSet(true);
14845
            } else { 
14846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14847
            }
14848
            break;
14849
          case 4: // COD
14850
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14851
              this.cod = iprot.readBool();
14852
              setCodIsSet(true);
14853
            } else { 
14854
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14855
            }
14856
            break;
6524 rajveer 14857
          case 5: // OTG_AVAILABLE
14858
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14859
              this.otgAvailable = iprot.readBool();
14860
              setOtgAvailableIsSet(true);
14861
            } else { 
14862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14863
            }
14864
            break;
6322 amar.kumar 14865
          default:
14866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14867
        }
14868
        iprot.readFieldEnd();
14869
      }
14870
      iprot.readStructEnd();
14871
      validate();
14872
    }
14873
 
14874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14875
      validate();
14876
 
14877
      oprot.writeStructBegin(STRUCT_DESC);
14878
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14879
      oprot.writeI64(this.providerId);
14880
      oprot.writeFieldEnd();
14881
      if (this.pincode != null) {
14882
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14883
        oprot.writeString(this.pincode);
14884
        oprot.writeFieldEnd();
14885
      }
14886
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14887
      oprot.writeBool(this.exp);
14888
      oprot.writeFieldEnd();
14889
      oprot.writeFieldBegin(COD_FIELD_DESC);
14890
      oprot.writeBool(this.cod);
14891
      oprot.writeFieldEnd();
6524 rajveer 14892
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14893
      oprot.writeBool(this.otgAvailable);
14894
      oprot.writeFieldEnd();
6322 amar.kumar 14895
      oprot.writeFieldStop();
14896
      oprot.writeStructEnd();
14897
    }
14898
 
14899
    @Override
14900
    public String toString() {
14901
      StringBuilder sb = new StringBuilder("updatePincode_args(");
14902
      boolean first = true;
14903
 
14904
      sb.append("providerId:");
14905
      sb.append(this.providerId);
14906
      first = false;
14907
      if (!first) sb.append(", ");
14908
      sb.append("pincode:");
14909
      if (this.pincode == null) {
14910
        sb.append("null");
14911
      } else {
14912
        sb.append(this.pincode);
14913
      }
14914
      first = false;
14915
      if (!first) sb.append(", ");
14916
      sb.append("exp:");
14917
      sb.append(this.exp);
14918
      first = false;
14919
      if (!first) sb.append(", ");
14920
      sb.append("cod:");
14921
      sb.append(this.cod);
14922
      first = false;
6524 rajveer 14923
      if (!first) sb.append(", ");
14924
      sb.append("otgAvailable:");
14925
      sb.append(this.otgAvailable);
14926
      first = false;
6322 amar.kumar 14927
      sb.append(")");
14928
      return sb.toString();
14929
    }
14930
 
14931
    public void validate() throws org.apache.thrift.TException {
14932
      // check for required fields
14933
    }
14934
 
14935
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14936
      try {
14937
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14938
      } catch (org.apache.thrift.TException te) {
14939
        throw new java.io.IOException(te);
14940
      }
14941
    }
14942
 
14943
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14944
      try {
14945
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14946
        __isset_bit_vector = new BitSet(1);
14947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14948
      } catch (org.apache.thrift.TException te) {
14949
        throw new java.io.IOException(te);
14950
      }
14951
    }
14952
 
14953
  }
14954
 
14955
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
14956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
14957
 
14958
 
14959
 
14960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14961
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14962
;
14963
 
14964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14965
 
14966
      static {
14967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14968
          byName.put(field.getFieldName(), field);
14969
        }
14970
      }
14971
 
14972
      /**
14973
       * Find the _Fields constant that matches fieldId, or null if its not found.
14974
       */
14975
      public static _Fields findByThriftId(int fieldId) {
14976
        switch(fieldId) {
14977
          default:
14978
            return null;
14979
        }
14980
      }
14981
 
14982
      /**
14983
       * Find the _Fields constant that matches fieldId, throwing an exception
14984
       * if it is not found.
14985
       */
14986
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14987
        _Fields fields = findByThriftId(fieldId);
14988
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14989
        return fields;
14990
      }
14991
 
14992
      /**
14993
       * Find the _Fields constant that matches name, or null if its not found.
14994
       */
14995
      public static _Fields findByName(String name) {
14996
        return byName.get(name);
14997
      }
14998
 
14999
      private final short _thriftId;
15000
      private final String _fieldName;
15001
 
15002
      _Fields(short thriftId, String fieldName) {
15003
        _thriftId = thriftId;
15004
        _fieldName = fieldName;
15005
      }
15006
 
15007
      public short getThriftFieldId() {
15008
        return _thriftId;
15009
      }
15010
 
15011
      public String getFieldName() {
15012
        return _fieldName;
15013
      }
15014
    }
15015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15016
    static {
15017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15018
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15019
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15020
    }
15021
 
15022
    public updatePincode_result() {
15023
    }
15024
 
15025
    /**
15026
     * Performs a deep copy on <i>other</i>.
15027
     */
15028
    public updatePincode_result(updatePincode_result other) {
15029
    }
15030
 
15031
    public updatePincode_result deepCopy() {
15032
      return new updatePincode_result(this);
15033
    }
15034
 
15035
    @Override
15036
    public void clear() {
15037
    }
15038
 
15039
    public void setFieldValue(_Fields field, Object value) {
15040
      switch (field) {
15041
      }
15042
    }
15043
 
15044
    public Object getFieldValue(_Fields field) {
15045
      switch (field) {
15046
      }
15047
      throw new IllegalStateException();
15048
    }
15049
 
15050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15051
    public boolean isSet(_Fields field) {
15052
      if (field == null) {
15053
        throw new IllegalArgumentException();
15054
      }
15055
 
15056
      switch (field) {
15057
      }
15058
      throw new IllegalStateException();
15059
    }
15060
 
15061
    @Override
15062
    public boolean equals(Object that) {
15063
      if (that == null)
15064
        return false;
15065
      if (that instanceof updatePincode_result)
15066
        return this.equals((updatePincode_result)that);
15067
      return false;
15068
    }
15069
 
15070
    public boolean equals(updatePincode_result that) {
15071
      if (that == null)
15072
        return false;
15073
 
15074
      return true;
15075
    }
15076
 
15077
    @Override
15078
    public int hashCode() {
15079
      return 0;
15080
    }
15081
 
15082
    public int compareTo(updatePincode_result other) {
15083
      if (!getClass().equals(other.getClass())) {
15084
        return getClass().getName().compareTo(other.getClass().getName());
15085
      }
15086
 
15087
      int lastComparison = 0;
15088
      updatePincode_result typedOther = (updatePincode_result)other;
15089
 
15090
      return 0;
15091
    }
15092
 
15093
    public _Fields fieldForId(int fieldId) {
15094
      return _Fields.findByThriftId(fieldId);
15095
    }
15096
 
15097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15098
      org.apache.thrift.protocol.TField field;
15099
      iprot.readStructBegin();
15100
      while (true)
15101
      {
15102
        field = iprot.readFieldBegin();
15103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15104
          break;
15105
        }
15106
        switch (field.id) {
15107
          default:
15108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15109
        }
15110
        iprot.readFieldEnd();
15111
      }
15112
      iprot.readStructEnd();
15113
      validate();
15114
    }
15115
 
15116
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15117
      oprot.writeStructBegin(STRUCT_DESC);
15118
 
15119
      oprot.writeFieldStop();
15120
      oprot.writeStructEnd();
15121
    }
15122
 
15123
    @Override
15124
    public String toString() {
15125
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15126
      boolean first = true;
15127
 
15128
      sb.append(")");
15129
      return sb.toString();
15130
    }
15131
 
15132
    public void validate() throws org.apache.thrift.TException {
15133
      // check for required fields
15134
    }
15135
 
15136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15137
      try {
15138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15139
      } catch (org.apache.thrift.TException te) {
15140
        throw new java.io.IOException(te);
15141
      }
15142
    }
15143
 
15144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15145
      try {
15146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15147
      } catch (org.apache.thrift.TException te) {
15148
        throw new java.io.IOException(te);
15149
      }
15150
    }
15151
 
15152
  }
15153
 
7567 rajveer 15154
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15156
 
15157
    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);
15158
    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);
15159
    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);
15160
 
15161
    private long providerId; // required
15162
    private boolean cod; // required
15163
    private List<String> awbs; // required
15164
 
15165
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15166
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15167
      PROVIDER_ID((short)1, "providerId"),
15168
      COD((short)2, "cod"),
15169
      AWBS((short)3, "awbs");
15170
 
15171
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15172
 
15173
      static {
15174
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15175
          byName.put(field.getFieldName(), field);
15176
        }
15177
      }
15178
 
15179
      /**
15180
       * Find the _Fields constant that matches fieldId, or null if its not found.
15181
       */
15182
      public static _Fields findByThriftId(int fieldId) {
15183
        switch(fieldId) {
15184
          case 1: // PROVIDER_ID
15185
            return PROVIDER_ID;
15186
          case 2: // COD
15187
            return COD;
15188
          case 3: // AWBS
15189
            return AWBS;
15190
          default:
15191
            return null;
15192
        }
15193
      }
15194
 
15195
      /**
15196
       * Find the _Fields constant that matches fieldId, throwing an exception
15197
       * if it is not found.
15198
       */
15199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15200
        _Fields fields = findByThriftId(fieldId);
15201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15202
        return fields;
15203
      }
15204
 
15205
      /**
15206
       * Find the _Fields constant that matches name, or null if its not found.
15207
       */
15208
      public static _Fields findByName(String name) {
15209
        return byName.get(name);
15210
      }
15211
 
15212
      private final short _thriftId;
15213
      private final String _fieldName;
15214
 
15215
      _Fields(short thriftId, String fieldName) {
15216
        _thriftId = thriftId;
15217
        _fieldName = fieldName;
15218
      }
15219
 
15220
      public short getThriftFieldId() {
15221
        return _thriftId;
15222
      }
15223
 
15224
      public String getFieldName() {
15225
        return _fieldName;
15226
      }
15227
    }
15228
 
15229
    // isset id assignments
15230
    private static final int __PROVIDERID_ISSET_ID = 0;
15231
    private static final int __COD_ISSET_ID = 1;
15232
    private BitSet __isset_bit_vector = new BitSet(2);
15233
 
15234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15235
    static {
15236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15237
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15239
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15241
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15242
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15243
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15244
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15245
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15246
    }
15247
 
15248
    public addNewAwbs_args() {
15249
    }
15250
 
15251
    public addNewAwbs_args(
15252
      long providerId,
15253
      boolean cod,
15254
      List<String> awbs)
15255
    {
15256
      this();
15257
      this.providerId = providerId;
15258
      setProviderIdIsSet(true);
15259
      this.cod = cod;
15260
      setCodIsSet(true);
15261
      this.awbs = awbs;
15262
    }
15263
 
15264
    /**
15265
     * Performs a deep copy on <i>other</i>.
15266
     */
15267
    public addNewAwbs_args(addNewAwbs_args other) {
15268
      __isset_bit_vector.clear();
15269
      __isset_bit_vector.or(other.__isset_bit_vector);
15270
      this.providerId = other.providerId;
15271
      this.cod = other.cod;
15272
      if (other.isSetAwbs()) {
15273
        List<String> __this__awbs = new ArrayList<String>();
15274
        for (String other_element : other.awbs) {
15275
          __this__awbs.add(other_element);
15276
        }
15277
        this.awbs = __this__awbs;
15278
      }
15279
    }
15280
 
15281
    public addNewAwbs_args deepCopy() {
15282
      return new addNewAwbs_args(this);
15283
    }
15284
 
15285
    @Override
15286
    public void clear() {
15287
      setProviderIdIsSet(false);
15288
      this.providerId = 0;
15289
      setCodIsSet(false);
15290
      this.cod = false;
15291
      this.awbs = null;
15292
    }
15293
 
15294
    public long getProviderId() {
15295
      return this.providerId;
15296
    }
15297
 
15298
    public void setProviderId(long providerId) {
15299
      this.providerId = providerId;
15300
      setProviderIdIsSet(true);
15301
    }
15302
 
15303
    public void unsetProviderId() {
15304
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15305
    }
15306
 
15307
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15308
    public boolean isSetProviderId() {
15309
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15310
    }
15311
 
15312
    public void setProviderIdIsSet(boolean value) {
15313
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15314
    }
15315
 
15316
    public boolean isCod() {
15317
      return this.cod;
15318
    }
15319
 
15320
    public void setCod(boolean cod) {
15321
      this.cod = cod;
15322
      setCodIsSet(true);
15323
    }
15324
 
15325
    public void unsetCod() {
15326
      __isset_bit_vector.clear(__COD_ISSET_ID);
15327
    }
15328
 
15329
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15330
    public boolean isSetCod() {
15331
      return __isset_bit_vector.get(__COD_ISSET_ID);
15332
    }
15333
 
15334
    public void setCodIsSet(boolean value) {
15335
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15336
    }
15337
 
15338
    public int getAwbsSize() {
15339
      return (this.awbs == null) ? 0 : this.awbs.size();
15340
    }
15341
 
15342
    public java.util.Iterator<String> getAwbsIterator() {
15343
      return (this.awbs == null) ? null : this.awbs.iterator();
15344
    }
15345
 
15346
    public void addToAwbs(String elem) {
15347
      if (this.awbs == null) {
15348
        this.awbs = new ArrayList<String>();
15349
      }
15350
      this.awbs.add(elem);
15351
    }
15352
 
15353
    public List<String> getAwbs() {
15354
      return this.awbs;
15355
    }
15356
 
15357
    public void setAwbs(List<String> awbs) {
15358
      this.awbs = awbs;
15359
    }
15360
 
15361
    public void unsetAwbs() {
15362
      this.awbs = null;
15363
    }
15364
 
15365
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15366
    public boolean isSetAwbs() {
15367
      return this.awbs != null;
15368
    }
15369
 
15370
    public void setAwbsIsSet(boolean value) {
15371
      if (!value) {
15372
        this.awbs = null;
15373
      }
15374
    }
15375
 
15376
    public void setFieldValue(_Fields field, Object value) {
15377
      switch (field) {
15378
      case PROVIDER_ID:
15379
        if (value == null) {
15380
          unsetProviderId();
15381
        } else {
15382
          setProviderId((Long)value);
15383
        }
15384
        break;
15385
 
15386
      case COD:
15387
        if (value == null) {
15388
          unsetCod();
15389
        } else {
15390
          setCod((Boolean)value);
15391
        }
15392
        break;
15393
 
15394
      case AWBS:
15395
        if (value == null) {
15396
          unsetAwbs();
15397
        } else {
15398
          setAwbs((List<String>)value);
15399
        }
15400
        break;
15401
 
15402
      }
15403
    }
15404
 
15405
    public Object getFieldValue(_Fields field) {
15406
      switch (field) {
15407
      case PROVIDER_ID:
15408
        return Long.valueOf(getProviderId());
15409
 
15410
      case COD:
15411
        return Boolean.valueOf(isCod());
15412
 
15413
      case AWBS:
15414
        return getAwbs();
15415
 
15416
      }
15417
      throw new IllegalStateException();
15418
    }
15419
 
15420
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15421
    public boolean isSet(_Fields field) {
15422
      if (field == null) {
15423
        throw new IllegalArgumentException();
15424
      }
15425
 
15426
      switch (field) {
15427
      case PROVIDER_ID:
15428
        return isSetProviderId();
15429
      case COD:
15430
        return isSetCod();
15431
      case AWBS:
15432
        return isSetAwbs();
15433
      }
15434
      throw new IllegalStateException();
15435
    }
15436
 
15437
    @Override
15438
    public boolean equals(Object that) {
15439
      if (that == null)
15440
        return false;
15441
      if (that instanceof addNewAwbs_args)
15442
        return this.equals((addNewAwbs_args)that);
15443
      return false;
15444
    }
15445
 
15446
    public boolean equals(addNewAwbs_args that) {
15447
      if (that == null)
15448
        return false;
15449
 
15450
      boolean this_present_providerId = true;
15451
      boolean that_present_providerId = true;
15452
      if (this_present_providerId || that_present_providerId) {
15453
        if (!(this_present_providerId && that_present_providerId))
15454
          return false;
15455
        if (this.providerId != that.providerId)
15456
          return false;
15457
      }
15458
 
15459
      boolean this_present_cod = true;
15460
      boolean that_present_cod = true;
15461
      if (this_present_cod || that_present_cod) {
15462
        if (!(this_present_cod && that_present_cod))
15463
          return false;
15464
        if (this.cod != that.cod)
15465
          return false;
15466
      }
15467
 
15468
      boolean this_present_awbs = true && this.isSetAwbs();
15469
      boolean that_present_awbs = true && that.isSetAwbs();
15470
      if (this_present_awbs || that_present_awbs) {
15471
        if (!(this_present_awbs && that_present_awbs))
15472
          return false;
15473
        if (!this.awbs.equals(that.awbs))
15474
          return false;
15475
      }
15476
 
15477
      return true;
15478
    }
15479
 
15480
    @Override
15481
    public int hashCode() {
15482
      return 0;
15483
    }
15484
 
15485
    public int compareTo(addNewAwbs_args other) {
15486
      if (!getClass().equals(other.getClass())) {
15487
        return getClass().getName().compareTo(other.getClass().getName());
15488
      }
15489
 
15490
      int lastComparison = 0;
15491
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15492
 
15493
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15494
      if (lastComparison != 0) {
15495
        return lastComparison;
15496
      }
15497
      if (isSetProviderId()) {
15498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15499
        if (lastComparison != 0) {
15500
          return lastComparison;
15501
        }
15502
      }
15503
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15504
      if (lastComparison != 0) {
15505
        return lastComparison;
15506
      }
15507
      if (isSetCod()) {
15508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15509
        if (lastComparison != 0) {
15510
          return lastComparison;
15511
        }
15512
      }
15513
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
15514
      if (lastComparison != 0) {
15515
        return lastComparison;
15516
      }
15517
      if (isSetAwbs()) {
15518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15519
        if (lastComparison != 0) {
15520
          return lastComparison;
15521
        }
15522
      }
15523
      return 0;
15524
    }
15525
 
15526
    public _Fields fieldForId(int fieldId) {
15527
      return _Fields.findByThriftId(fieldId);
15528
    }
15529
 
15530
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15531
      org.apache.thrift.protocol.TField field;
15532
      iprot.readStructBegin();
15533
      while (true)
15534
      {
15535
        field = iprot.readFieldBegin();
15536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15537
          break;
15538
        }
15539
        switch (field.id) {
15540
          case 1: // PROVIDER_ID
15541
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15542
              this.providerId = iprot.readI64();
15543
              setProviderIdIsSet(true);
15544
            } else { 
15545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15546
            }
15547
            break;
15548
          case 2: // COD
15549
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15550
              this.cod = iprot.readBool();
15551
              setCodIsSet(true);
15552
            } else { 
15553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15554
            }
15555
            break;
15556
          case 3: // AWBS
15557
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15558
              {
7792 anupam.sin 15559
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15560
                this.awbs = new ArrayList<String>(_list24.size);
15561
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 15562
                {
7792 anupam.sin 15563
                  String _elem26; // required
15564
                  _elem26 = iprot.readString();
15565
                  this.awbs.add(_elem26);
7567 rajveer 15566
                }
15567
                iprot.readListEnd();
15568
              }
15569
            } else { 
15570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15571
            }
15572
            break;
15573
          default:
15574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15575
        }
15576
        iprot.readFieldEnd();
15577
      }
15578
      iprot.readStructEnd();
15579
      validate();
15580
    }
15581
 
15582
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15583
      validate();
15584
 
15585
      oprot.writeStructBegin(STRUCT_DESC);
15586
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15587
      oprot.writeI64(this.providerId);
15588
      oprot.writeFieldEnd();
15589
      oprot.writeFieldBegin(COD_FIELD_DESC);
15590
      oprot.writeBool(this.cod);
15591
      oprot.writeFieldEnd();
15592
      if (this.awbs != null) {
15593
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
15594
        {
15595
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 15596
          for (String _iter27 : this.awbs)
7567 rajveer 15597
          {
7792 anupam.sin 15598
            oprot.writeString(_iter27);
7567 rajveer 15599
          }
15600
          oprot.writeListEnd();
15601
        }
15602
        oprot.writeFieldEnd();
15603
      }
15604
      oprot.writeFieldStop();
15605
      oprot.writeStructEnd();
15606
    }
15607
 
15608
    @Override
15609
    public String toString() {
15610
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
15611
      boolean first = true;
15612
 
15613
      sb.append("providerId:");
15614
      sb.append(this.providerId);
15615
      first = false;
15616
      if (!first) sb.append(", ");
15617
      sb.append("cod:");
15618
      sb.append(this.cod);
15619
      first = false;
15620
      if (!first) sb.append(", ");
15621
      sb.append("awbs:");
15622
      if (this.awbs == null) {
15623
        sb.append("null");
15624
      } else {
15625
        sb.append(this.awbs);
15626
      }
15627
      first = false;
15628
      sb.append(")");
15629
      return sb.toString();
15630
    }
15631
 
15632
    public void validate() throws org.apache.thrift.TException {
15633
      // check for required fields
15634
    }
15635
 
15636
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15637
      try {
15638
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15639
      } catch (org.apache.thrift.TException te) {
15640
        throw new java.io.IOException(te);
15641
      }
15642
    }
15643
 
15644
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15645
      try {
15646
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15647
        __isset_bit_vector = new BitSet(1);
15648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15649
      } catch (org.apache.thrift.TException te) {
15650
        throw new java.io.IOException(te);
15651
      }
15652
    }
15653
 
15654
  }
15655
 
15656
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
15657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
15658
 
15659
    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);
15660
 
15661
    private boolean success; // required
15662
 
15663
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15664
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15665
      SUCCESS((short)0, "success");
15666
 
15667
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15668
 
15669
      static {
15670
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15671
          byName.put(field.getFieldName(), field);
15672
        }
15673
      }
15674
 
15675
      /**
15676
       * Find the _Fields constant that matches fieldId, or null if its not found.
15677
       */
15678
      public static _Fields findByThriftId(int fieldId) {
15679
        switch(fieldId) {
15680
          case 0: // SUCCESS
15681
            return SUCCESS;
15682
          default:
15683
            return null;
15684
        }
15685
      }
15686
 
15687
      /**
15688
       * Find the _Fields constant that matches fieldId, throwing an exception
15689
       * if it is not found.
15690
       */
15691
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15692
        _Fields fields = findByThriftId(fieldId);
15693
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15694
        return fields;
15695
      }
15696
 
15697
      /**
15698
       * Find the _Fields constant that matches name, or null if its not found.
15699
       */
15700
      public static _Fields findByName(String name) {
15701
        return byName.get(name);
15702
      }
15703
 
15704
      private final short _thriftId;
15705
      private final String _fieldName;
15706
 
15707
      _Fields(short thriftId, String fieldName) {
15708
        _thriftId = thriftId;
15709
        _fieldName = fieldName;
15710
      }
15711
 
15712
      public short getThriftFieldId() {
15713
        return _thriftId;
15714
      }
15715
 
15716
      public String getFieldName() {
15717
        return _fieldName;
15718
      }
15719
    }
15720
 
15721
    // isset id assignments
15722
    private static final int __SUCCESS_ISSET_ID = 0;
15723
    private BitSet __isset_bit_vector = new BitSet(1);
15724
 
15725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15726
    static {
15727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15728
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15730
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15731
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
15732
    }
15733
 
15734
    public addNewAwbs_result() {
15735
    }
15736
 
15737
    public addNewAwbs_result(
15738
      boolean success)
15739
    {
15740
      this();
15741
      this.success = success;
15742
      setSuccessIsSet(true);
15743
    }
15744
 
15745
    /**
15746
     * Performs a deep copy on <i>other</i>.
15747
     */
15748
    public addNewAwbs_result(addNewAwbs_result other) {
15749
      __isset_bit_vector.clear();
15750
      __isset_bit_vector.or(other.__isset_bit_vector);
15751
      this.success = other.success;
15752
    }
15753
 
15754
    public addNewAwbs_result deepCopy() {
15755
      return new addNewAwbs_result(this);
15756
    }
15757
 
15758
    @Override
15759
    public void clear() {
15760
      setSuccessIsSet(false);
15761
      this.success = false;
15762
    }
15763
 
15764
    public boolean isSuccess() {
15765
      return this.success;
15766
    }
15767
 
15768
    public void setSuccess(boolean success) {
15769
      this.success = success;
15770
      setSuccessIsSet(true);
15771
    }
15772
 
15773
    public void unsetSuccess() {
15774
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15775
    }
15776
 
15777
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15778
    public boolean isSetSuccess() {
15779
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15780
    }
15781
 
15782
    public void setSuccessIsSet(boolean value) {
15783
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15784
    }
15785
 
15786
    public void setFieldValue(_Fields field, Object value) {
15787
      switch (field) {
15788
      case SUCCESS:
15789
        if (value == null) {
15790
          unsetSuccess();
15791
        } else {
15792
          setSuccess((Boolean)value);
15793
        }
15794
        break;
15795
 
15796
      }
15797
    }
15798
 
15799
    public Object getFieldValue(_Fields field) {
15800
      switch (field) {
15801
      case SUCCESS:
15802
        return Boolean.valueOf(isSuccess());
15803
 
15804
      }
15805
      throw new IllegalStateException();
15806
    }
15807
 
15808
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15809
    public boolean isSet(_Fields field) {
15810
      if (field == null) {
15811
        throw new IllegalArgumentException();
15812
      }
15813
 
15814
      switch (field) {
15815
      case SUCCESS:
15816
        return isSetSuccess();
15817
      }
15818
      throw new IllegalStateException();
15819
    }
15820
 
15821
    @Override
15822
    public boolean equals(Object that) {
15823
      if (that == null)
15824
        return false;
15825
      if (that instanceof addNewAwbs_result)
15826
        return this.equals((addNewAwbs_result)that);
15827
      return false;
15828
    }
15829
 
15830
    public boolean equals(addNewAwbs_result that) {
15831
      if (that == null)
15832
        return false;
15833
 
15834
      boolean this_present_success = true;
15835
      boolean that_present_success = true;
15836
      if (this_present_success || that_present_success) {
15837
        if (!(this_present_success && that_present_success))
15838
          return false;
15839
        if (this.success != that.success)
15840
          return false;
15841
      }
15842
 
15843
      return true;
15844
    }
15845
 
15846
    @Override
15847
    public int hashCode() {
15848
      return 0;
15849
    }
15850
 
15851
    public int compareTo(addNewAwbs_result other) {
15852
      if (!getClass().equals(other.getClass())) {
15853
        return getClass().getName().compareTo(other.getClass().getName());
15854
      }
15855
 
15856
      int lastComparison = 0;
15857
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
15858
 
15859
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15860
      if (lastComparison != 0) {
15861
        return lastComparison;
15862
      }
15863
      if (isSetSuccess()) {
15864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15865
        if (lastComparison != 0) {
15866
          return lastComparison;
15867
        }
15868
      }
15869
      return 0;
15870
    }
15871
 
15872
    public _Fields fieldForId(int fieldId) {
15873
      return _Fields.findByThriftId(fieldId);
15874
    }
15875
 
15876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15877
      org.apache.thrift.protocol.TField field;
15878
      iprot.readStructBegin();
15879
      while (true)
15880
      {
15881
        field = iprot.readFieldBegin();
15882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15883
          break;
15884
        }
15885
        switch (field.id) {
15886
          case 0: // SUCCESS
15887
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15888
              this.success = iprot.readBool();
15889
              setSuccessIsSet(true);
15890
            } else { 
15891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15892
            }
15893
            break;
15894
          default:
15895
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15896
        }
15897
        iprot.readFieldEnd();
15898
      }
15899
      iprot.readStructEnd();
15900
      validate();
15901
    }
15902
 
15903
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15904
      oprot.writeStructBegin(STRUCT_DESC);
15905
 
15906
      if (this.isSetSuccess()) {
15907
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15908
        oprot.writeBool(this.success);
15909
        oprot.writeFieldEnd();
15910
      }
15911
      oprot.writeFieldStop();
15912
      oprot.writeStructEnd();
15913
    }
15914
 
15915
    @Override
15916
    public String toString() {
15917
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
15918
      boolean first = true;
15919
 
15920
      sb.append("success:");
15921
      sb.append(this.success);
15922
      first = false;
15923
      sb.append(")");
15924
      return sb.toString();
15925
    }
15926
 
15927
    public void validate() throws org.apache.thrift.TException {
15928
      // check for required fields
15929
    }
15930
 
15931
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15932
      try {
15933
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15934
      } catch (org.apache.thrift.TException te) {
15935
        throw new java.io.IOException(te);
15936
      }
15937
    }
15938
 
15939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15940
      try {
15941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15942
      } catch (org.apache.thrift.TException te) {
15943
        throw new java.io.IOException(te);
15944
      }
15945
    }
15946
 
15947
  }
15948
 
7788 manish.sha 15949
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
15950
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 15951
 
7788 manish.sha 15952
    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);
15953
    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 15954
 
7788 manish.sha 15955
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
15956
    private boolean runCompleteUpdate; // required
7737 manish.sha 15957
 
15958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15959
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 15960
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
15961
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 15962
 
15963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15964
 
15965
      static {
15966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15967
          byName.put(field.getFieldName(), field);
15968
        }
15969
      }
15970
 
15971
      /**
15972
       * Find the _Fields constant that matches fieldId, or null if its not found.
15973
       */
15974
      public static _Fields findByThriftId(int fieldId) {
15975
        switch(fieldId) {
7788 manish.sha 15976
          case 1: // LOGISTICS_LOCATION_INFO_LIST
15977
            return LOGISTICS_LOCATION_INFO_LIST;
15978
          case 2: // RUN_COMPLETE_UPDATE
15979
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 15980
          default:
15981
            return null;
15982
        }
15983
      }
15984
 
15985
      /**
15986
       * Find the _Fields constant that matches fieldId, throwing an exception
15987
       * if it is not found.
15988
       */
15989
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15990
        _Fields fields = findByThriftId(fieldId);
15991
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15992
        return fields;
15993
      }
15994
 
15995
      /**
15996
       * Find the _Fields constant that matches name, or null if its not found.
15997
       */
15998
      public static _Fields findByName(String name) {
15999
        return byName.get(name);
16000
      }
16001
 
16002
      private final short _thriftId;
16003
      private final String _fieldName;
16004
 
16005
      _Fields(short thriftId, String fieldName) {
16006
        _thriftId = thriftId;
16007
        _fieldName = fieldName;
16008
      }
16009
 
16010
      public short getThriftFieldId() {
16011
        return _thriftId;
16012
      }
16013
 
16014
      public String getFieldName() {
16015
        return _fieldName;
16016
      }
16017
    }
16018
 
16019
    // isset id assignments
7788 manish.sha 16020
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16021
    private BitSet __isset_bit_vector = new BitSet(1);
16022
 
16023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16024
    static {
16025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16026
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16027
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16028
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16029
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16031
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16032
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16033
    }
16034
 
7788 manish.sha 16035
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16036
    }
16037
 
7788 manish.sha 16038
    public runLogisticsLocationInfoUpdate_args(
16039
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16040
      boolean runCompleteUpdate)
7737 manish.sha 16041
    {
16042
      this();
7788 manish.sha 16043
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16044
      this.runCompleteUpdate = runCompleteUpdate;
16045
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16046
    }
16047
 
16048
    /**
16049
     * Performs a deep copy on <i>other</i>.
16050
     */
7788 manish.sha 16051
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16052
      __isset_bit_vector.clear();
16053
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16054
      if (other.isSetLogisticsLocationInfoList()) {
16055
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16056
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16057
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16058
        }
16059
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16060
      }
7788 manish.sha 16061
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16062
    }
16063
 
7788 manish.sha 16064
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16065
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16066
    }
16067
 
16068
    @Override
16069
    public void clear() {
7788 manish.sha 16070
      this.logisticsLocationInfoList = null;
16071
      setRunCompleteUpdateIsSet(false);
16072
      this.runCompleteUpdate = false;
7737 manish.sha 16073
    }
16074
 
7788 manish.sha 16075
    public int getLogisticsLocationInfoListSize() {
16076
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16077
    }
16078
 
7788 manish.sha 16079
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16080
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16081
    }
16082
 
7788 manish.sha 16083
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16084
      if (this.logisticsLocationInfoList == null) {
16085
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16086
      }
16087
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16088
    }
16089
 
7788 manish.sha 16090
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16091
      return this.logisticsLocationInfoList;
7737 manish.sha 16092
    }
16093
 
7788 manish.sha 16094
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16095
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16096
    }
16097
 
7788 manish.sha 16098
    public void unsetLogisticsLocationInfoList() {
16099
      this.logisticsLocationInfoList = null;
7737 manish.sha 16100
    }
16101
 
7788 manish.sha 16102
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16103
    public boolean isSetLogisticsLocationInfoList() {
16104
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16105
    }
16106
 
7788 manish.sha 16107
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16108
      if (!value) {
16109
        this.logisticsLocationInfoList = null;
16110
      }
7737 manish.sha 16111
    }
16112
 
7788 manish.sha 16113
    public boolean isRunCompleteUpdate() {
16114
      return this.runCompleteUpdate;
7737 manish.sha 16115
    }
16116
 
7788 manish.sha 16117
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16118
      this.runCompleteUpdate = runCompleteUpdate;
16119
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16120
    }
16121
 
7788 manish.sha 16122
    public void unsetRunCompleteUpdate() {
16123
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16124
    }
16125
 
16126
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16127
    public boolean isSetRunCompleteUpdate() {
16128
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16129
    }
16130
 
16131
    public void setRunCompleteUpdateIsSet(boolean value) {
16132
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16133
    }
16134
 
7737 manish.sha 16135
    public void setFieldValue(_Fields field, Object value) {
16136
      switch (field) {
7788 manish.sha 16137
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16138
        if (value == null) {
7788 manish.sha 16139
          unsetLogisticsLocationInfoList();
7737 manish.sha 16140
        } else {
7788 manish.sha 16141
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16142
        }
16143
        break;
16144
 
7788 manish.sha 16145
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16146
        if (value == null) {
7788 manish.sha 16147
          unsetRunCompleteUpdate();
7737 manish.sha 16148
        } else {
7788 manish.sha 16149
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16150
        }
16151
        break;
16152
 
16153
      }
16154
    }
16155
 
16156
    public Object getFieldValue(_Fields field) {
16157
      switch (field) {
7788 manish.sha 16158
      case LOGISTICS_LOCATION_INFO_LIST:
16159
        return getLogisticsLocationInfoList();
7737 manish.sha 16160
 
7788 manish.sha 16161
      case RUN_COMPLETE_UPDATE:
16162
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16163
 
16164
      }
16165
      throw new IllegalStateException();
16166
    }
16167
 
16168
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16169
    public boolean isSet(_Fields field) {
16170
      if (field == null) {
16171
        throw new IllegalArgumentException();
16172
      }
16173
 
16174
      switch (field) {
7788 manish.sha 16175
      case LOGISTICS_LOCATION_INFO_LIST:
16176
        return isSetLogisticsLocationInfoList();
16177
      case RUN_COMPLETE_UPDATE:
16178
        return isSetRunCompleteUpdate();
7737 manish.sha 16179
      }
16180
      throw new IllegalStateException();
16181
    }
16182
 
16183
    @Override
16184
    public boolean equals(Object that) {
16185
      if (that == null)
16186
        return false;
7788 manish.sha 16187
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16188
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16189
      return false;
16190
    }
16191
 
7788 manish.sha 16192
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16193
      if (that == null)
16194
        return false;
16195
 
7788 manish.sha 16196
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16197
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16198
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16199
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16200
          return false;
7788 manish.sha 16201
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16202
          return false;
16203
      }
16204
 
7788 manish.sha 16205
      boolean this_present_runCompleteUpdate = true;
16206
      boolean that_present_runCompleteUpdate = true;
16207
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16208
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16209
          return false;
7788 manish.sha 16210
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16211
          return false;
16212
      }
16213
 
16214
      return true;
16215
    }
16216
 
16217
    @Override
16218
    public int hashCode() {
16219
      return 0;
16220
    }
16221
 
7788 manish.sha 16222
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16223
      if (!getClass().equals(other.getClass())) {
16224
        return getClass().getName().compareTo(other.getClass().getName());
16225
      }
16226
 
16227
      int lastComparison = 0;
7788 manish.sha 16228
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16229
 
7788 manish.sha 16230
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16231
      if (lastComparison != 0) {
16232
        return lastComparison;
16233
      }
7788 manish.sha 16234
      if (isSetLogisticsLocationInfoList()) {
16235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16236
        if (lastComparison != 0) {
16237
          return lastComparison;
16238
        }
16239
      }
7788 manish.sha 16240
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16241
      if (lastComparison != 0) {
16242
        return lastComparison;
16243
      }
7788 manish.sha 16244
      if (isSetRunCompleteUpdate()) {
16245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16246
        if (lastComparison != 0) {
16247
          return lastComparison;
16248
        }
16249
      }
16250
      return 0;
16251
    }
16252
 
16253
    public _Fields fieldForId(int fieldId) {
16254
      return _Fields.findByThriftId(fieldId);
16255
    }
16256
 
16257
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16258
      org.apache.thrift.protocol.TField field;
16259
      iprot.readStructBegin();
16260
      while (true)
16261
      {
16262
        field = iprot.readFieldBegin();
16263
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16264
          break;
16265
        }
16266
        switch (field.id) {
7788 manish.sha 16267
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16268
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16269
              {
7808 anupam.sin 16270
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16271
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16272
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16273
                {
7808 anupam.sin 16274
                  LogisticsLocationInfo _elem30; // required
16275
                  _elem30 = new LogisticsLocationInfo();
16276
                  _elem30.read(iprot);
16277
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16278
                }
16279
                iprot.readListEnd();
16280
              }
7737 manish.sha 16281
            } else { 
16282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16283
            }
16284
            break;
7788 manish.sha 16285
          case 2: // RUN_COMPLETE_UPDATE
16286
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16287
              this.runCompleteUpdate = iprot.readBool();
16288
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16289
            } else { 
16290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16291
            }
16292
            break;
16293
          default:
16294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16295
        }
16296
        iprot.readFieldEnd();
16297
      }
16298
      iprot.readStructEnd();
16299
      validate();
16300
    }
16301
 
16302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16303
      validate();
16304
 
16305
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16306
      if (this.logisticsLocationInfoList != null) {
16307
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16308
        {
16309
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16310
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16311
          {
7808 anupam.sin 16312
            _iter31.write(oprot);
7788 manish.sha 16313
          }
16314
          oprot.writeListEnd();
16315
        }
7737 manish.sha 16316
        oprot.writeFieldEnd();
16317
      }
7788 manish.sha 16318
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16319
      oprot.writeBool(this.runCompleteUpdate);
16320
      oprot.writeFieldEnd();
7737 manish.sha 16321
      oprot.writeFieldStop();
16322
      oprot.writeStructEnd();
16323
    }
16324
 
16325
    @Override
16326
    public String toString() {
7788 manish.sha 16327
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16328
      boolean first = true;
16329
 
7788 manish.sha 16330
      sb.append("logisticsLocationInfoList:");
16331
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16332
        sb.append("null");
16333
      } else {
7788 manish.sha 16334
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16335
      }
16336
      first = false;
7788 manish.sha 16337
      if (!first) sb.append(", ");
16338
      sb.append("runCompleteUpdate:");
16339
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16340
      first = false;
16341
      sb.append(")");
16342
      return sb.toString();
16343
    }
16344
 
16345
    public void validate() throws org.apache.thrift.TException {
16346
      // check for required fields
16347
    }
16348
 
16349
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16350
      try {
16351
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16352
      } catch (org.apache.thrift.TException te) {
16353
        throw new java.io.IOException(te);
16354
      }
16355
    }
16356
 
16357
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16358
      try {
7788 manish.sha 16359
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16360
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16361
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16362
      } catch (org.apache.thrift.TException te) {
16363
        throw new java.io.IOException(te);
16364
      }
16365
    }
16366
 
16367
  }
16368
 
7788 manish.sha 16369
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16371
 
16372
 
16373
 
16374
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16375
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16376
;
16377
 
16378
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16379
 
16380
      static {
16381
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16382
          byName.put(field.getFieldName(), field);
16383
        }
16384
      }
16385
 
16386
      /**
16387
       * Find the _Fields constant that matches fieldId, or null if its not found.
16388
       */
16389
      public static _Fields findByThriftId(int fieldId) {
16390
        switch(fieldId) {
16391
          default:
16392
            return null;
16393
        }
16394
      }
16395
 
16396
      /**
16397
       * Find the _Fields constant that matches fieldId, throwing an exception
16398
       * if it is not found.
16399
       */
16400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16401
        _Fields fields = findByThriftId(fieldId);
16402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16403
        return fields;
16404
      }
16405
 
16406
      /**
16407
       * Find the _Fields constant that matches name, or null if its not found.
16408
       */
16409
      public static _Fields findByName(String name) {
16410
        return byName.get(name);
16411
      }
16412
 
16413
      private final short _thriftId;
16414
      private final String _fieldName;
16415
 
16416
      _Fields(short thriftId, String fieldName) {
16417
        _thriftId = thriftId;
16418
        _fieldName = fieldName;
16419
      }
16420
 
16421
      public short getThriftFieldId() {
16422
        return _thriftId;
16423
      }
16424
 
16425
      public String getFieldName() {
16426
        return _fieldName;
16427
      }
16428
    }
16429
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16430
    static {
16431
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16432
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16433
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 16434
    }
16435
 
7788 manish.sha 16436
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 16437
    }
16438
 
16439
    /**
16440
     * Performs a deep copy on <i>other</i>.
16441
     */
7788 manish.sha 16442
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16443
    }
16444
 
7788 manish.sha 16445
    public runLogisticsLocationInfoUpdate_result deepCopy() {
16446
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 16447
    }
16448
 
16449
    @Override
16450
    public void clear() {
16451
    }
16452
 
16453
    public void setFieldValue(_Fields field, Object value) {
16454
      switch (field) {
16455
      }
16456
    }
16457
 
16458
    public Object getFieldValue(_Fields field) {
16459
      switch (field) {
16460
      }
16461
      throw new IllegalStateException();
16462
    }
16463
 
16464
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16465
    public boolean isSet(_Fields field) {
16466
      if (field == null) {
16467
        throw new IllegalArgumentException();
16468
      }
16469
 
16470
      switch (field) {
16471
      }
16472
      throw new IllegalStateException();
16473
    }
16474
 
16475
    @Override
16476
    public boolean equals(Object that) {
16477
      if (that == null)
16478
        return false;
7788 manish.sha 16479
      if (that instanceof runLogisticsLocationInfoUpdate_result)
16480
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 16481
      return false;
16482
    }
16483
 
7788 manish.sha 16484
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 16485
      if (that == null)
16486
        return false;
16487
 
16488
      return true;
16489
    }
16490
 
16491
    @Override
16492
    public int hashCode() {
16493
      return 0;
16494
    }
16495
 
7788 manish.sha 16496
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16497
      if (!getClass().equals(other.getClass())) {
16498
        return getClass().getName().compareTo(other.getClass().getName());
16499
      }
16500
 
16501
      int lastComparison = 0;
7788 manish.sha 16502
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 16503
 
16504
      return 0;
16505
    }
16506
 
16507
    public _Fields fieldForId(int fieldId) {
16508
      return _Fields.findByThriftId(fieldId);
16509
    }
16510
 
16511
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16512
      org.apache.thrift.protocol.TField field;
16513
      iprot.readStructBegin();
16514
      while (true)
16515
      {
16516
        field = iprot.readFieldBegin();
16517
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16518
          break;
16519
        }
16520
        switch (field.id) {
16521
          default:
16522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16523
        }
16524
        iprot.readFieldEnd();
16525
      }
16526
      iprot.readStructEnd();
16527
      validate();
16528
    }
16529
 
16530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16531
      oprot.writeStructBegin(STRUCT_DESC);
16532
 
16533
      oprot.writeFieldStop();
16534
      oprot.writeStructEnd();
16535
    }
16536
 
16537
    @Override
16538
    public String toString() {
7788 manish.sha 16539
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 16540
      boolean first = true;
16541
 
16542
      sb.append(")");
16543
      return sb.toString();
16544
    }
16545
 
16546
    public void validate() throws org.apache.thrift.TException {
16547
      // check for required fields
16548
    }
16549
 
16550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16551
      try {
16552
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16553
      } catch (org.apache.thrift.TException te) {
16554
        throw new java.io.IOException(te);
16555
      }
16556
    }
16557
 
16558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16559
      try {
16560
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16561
      } catch (org.apache.thrift.TException te) {
16562
        throw new java.io.IOException(te);
16563
      }
16564
    }
16565
 
16566
  }
16567
 
412 ashish 16568
}