Subversion Repositories SmartDukaan

Rev

Rev 7256 | Rev 7737 | 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
 
412 ashish 143
  }
144
 
3430 rajveer 145
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
146
 
147
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
148
 
149
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
150
 
4630 mandeep.dh 151
    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 152
 
7256 rajveer 153
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
154
 
5766 rajveer 155
    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 156
 
5247 rajveer 157
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 158
 
6643 rajveer 159
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 160
 
6643 rajveer 161
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
162
 
3430 rajveer 163
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
168
 
4934 amit.gupta 169
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
170
 
5527 anupam.sin 171
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
172
 
5553 rajveer 173
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
176
 
5719 rajveer 177
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
178
 
6524 rajveer 179
    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 180
 
6524 rajveer 181
    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 182
 
7567 rajveer 183
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
184
 
3430 rajveer 185
  }
186
 
3374 rajveer 187
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 188
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
189
      public Factory() {}
190
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
191
        return new Client(prot);
192
      }
193
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
194
        return new Client(iprot, oprot);
195
      }
196
    }
197
 
198
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 199
    {
3430 rajveer 200
      super(prot, prot);
412 ashish 201
    }
202
 
3430 rajveer 203
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 204
      super(iprot, oprot);
412 ashish 205
    }
206
 
3430 rajveer 207
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 208
    {
209
      send_getProvider(providerId);
210
      return recv_getProvider();
211
    }
212
 
3430 rajveer 213
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 214
    {
215
      getProvider_args args = new getProvider_args();
3430 rajveer 216
      args.setProviderId(providerId);
217
      sendBase("getProvider", args);
668 chandransh 218
    }
219
 
3430 rajveer 220
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 221
    {
222
      getProvider_result result = new getProvider_result();
3430 rajveer 223
      receiveBase(result, "getProvider");
668 chandransh 224
      if (result.isSetSuccess()) {
225
        return result.success;
226
      }
227
      if (result.lse != null) {
228
        throw result.lse;
229
      }
3430 rajveer 230
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 231
    }
232
 
3430 rajveer 233
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 234
    {
235
      send_getAllProviders();
236
      return recv_getAllProviders();
237
    }
238
 
3430 rajveer 239
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 240
    {
241
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 242
      sendBase("getAllProviders", args);
674 chandransh 243
    }
244
 
3430 rajveer 245
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 246
    {
247
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 248
      receiveBase(result, "getAllProviders");
674 chandransh 249
      if (result.isSetSuccess()) {
250
        return result.success;
251
      }
252
      if (result.lse != null) {
253
        throw result.lse;
254
      }
3430 rajveer 255
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 256
    }
257
 
4630 mandeep.dh 258
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 259
    {
4630 mandeep.dh 260
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 261
      return recv_getLogisticsEstimation();
262
    }
263
 
4630 mandeep.dh 264
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 265
    {
266
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 267
      args.setItemId(itemId);
268
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 269
      args.setType(type);
3430 rajveer 270
      sendBase("getLogisticsEstimation", args);
471 rajveer 271
    }
272
 
3430 rajveer 273
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 274
    {
275
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 276
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 277
      if (result.isSetSuccess()) {
278
        return result.success;
279
      }
280
      if (result.se != null) {
281
        throw result.se;
282
      }
3430 rajveer 283
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 284
    }
285
 
7256 rajveer 286
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
287
    {
288
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
289
      return recv_getLogisticsEstimationForStore();
290
    }
291
 
292
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
293
    {
294
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
295
      args.setItemId(itemId);
296
      args.setDestination_pin(destination_pin);
297
      args.setType(type);
298
      sendBase("getLogisticsEstimationForStore", args);
299
    }
300
 
301
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
302
    {
303
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
304
      receiveBase(result, "getLogisticsEstimationForStore");
305
      if (result.isSetSuccess()) {
306
        return result.success;
307
      }
308
      if (result.se != null) {
309
        throw result.se;
310
      }
311
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
312
    }
313
 
5766 rajveer 314
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 315
    {
5766 rajveer 316
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 317
      return recv_getLogisticsInfo();
471 rajveer 318
    }
319
 
5766 rajveer 320
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 321
    {
648 chandransh 322
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 323
      args.setDestination_pincode(destination_pincode);
324
      args.setItem_id(item_id);
325
      args.setType(type);
5766 rajveer 326
      args.setPickUp(pickUp);
3430 rajveer 327
      sendBase("getLogisticsInfo", args);
471 rajveer 328
    }
329
 
3430 rajveer 330
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 331
    {
648 chandransh 332
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 333
      receiveBase(result, "getLogisticsInfo");
648 chandransh 334
      if (result.isSetSuccess()) {
335
        return result.success;
477 rajveer 336
      }
648 chandransh 337
      if (result.se != null) {
338
        throw result.se;
412 ashish 339
      }
3430 rajveer 340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 341
    }
342
 
5247 rajveer 343
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 344
    {
5247 rajveer 345
      send_getEmptyAWB(providerId, type);
412 ashish 346
      return recv_getEmptyAWB();
347
    }
348
 
5247 rajveer 349
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 350
    {
351
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 352
      args.setProviderId(providerId);
5247 rajveer 353
      args.setType(type);
3430 rajveer 354
      sendBase("getEmptyAWB", args);
412 ashish 355
    }
356
 
3430 rajveer 357
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 358
    {
359
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 360
      receiveBase(result, "getEmptyAWB");
412 ashish 361
      if (result.isSetSuccess()) {
362
        return result.success;
363
      }
648 chandransh 364
      if (result.se != null) {
365
        throw result.se;
366
      }
3430 rajveer 367
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 368
    }
369
 
6643 rajveer 370
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 371
    {
6643 rajveer 372
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 373
      return recv_getShipmentInfo();
374
    }
375
 
6643 rajveer 376
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 377
    {
378
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 379
      args.setAwbNumber(awbNumber);
3430 rajveer 380
      args.setProviderId(providerId);
381
      sendBase("getShipmentInfo", args);
412 ashish 382
    }
383
 
3430 rajveer 384
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 385
    {
386
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 387
      receiveBase(result, "getShipmentInfo");
412 ashish 388
      if (result.isSetSuccess()) {
389
        return result.success;
390
      }
648 chandransh 391
      if (result.se != null) {
392
        throw result.se;
393
      }
3430 rajveer 394
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 395
    }
396
 
6643 rajveer 397
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
398
    {
399
      send_storeShipmentInfo(update);
400
      recv_storeShipmentInfo();
401
    }
402
 
403
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
404
    {
405
      storeShipmentInfo_args args = new storeShipmentInfo_args();
406
      args.setUpdate(update);
407
      sendBase("storeShipmentInfo", args);
408
    }
409
 
410
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
411
    {
412
      storeShipmentInfo_result result = new storeShipmentInfo_result();
413
      receiveBase(result, "storeShipmentInfo");
414
      if (result.se != null) {
415
        throw result.se;
416
      }
417
      return;
418
    }
419
 
3430 rajveer 420
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 421
    {
422
      send_getDestinationCode(providerId, pinCode);
423
      return recv_getDestinationCode();
424
    }
425
 
3430 rajveer 426
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 427
    {
428
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 429
      args.setProviderId(providerId);
430
      args.setPinCode(pinCode);
431
      sendBase("getDestinationCode", args);
730 chandransh 432
    }
433
 
3430 rajveer 434
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 435
    {
436
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 437
      receiveBase(result, "getDestinationCode");
730 chandransh 438
      if (result.isSetSuccess()) {
439
        return result.success;
440
      }
441
      if (result.se != null) {
442
        throw result.se;
443
      }
3430 rajveer 444
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 445
    }
446
 
3430 rajveer 447
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 448
    {
3103 chandransh 449
      send_getFreeAwbCount(providerId, type);
1139 chandransh 450
      return recv_getFreeAwbCount();
451
    }
452
 
3430 rajveer 453
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 454
    {
455
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 456
      args.setProviderId(providerId);
457
      args.setType(type);
458
      sendBase("getFreeAwbCount", args);
1139 chandransh 459
    }
460
 
3430 rajveer 461
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 462
    {
463
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 464
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 465
      if (result.isSetSuccess()) {
466
        return result.success;
467
      }
3430 rajveer 468
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 469
    }
470
 
3430 rajveer 471
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 472
    {
473
      send_getHolidays(fromDate, toDate);
474
      return recv_getHolidays();
475
    }
476
 
3430 rajveer 477
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 478
    {
479
      getHolidays_args args = new getHolidays_args();
3430 rajveer 480
      args.setFromDate(fromDate);
481
      args.setToDate(toDate);
482
      sendBase("getHolidays", args);
1730 ankur.sing 483
    }
484
 
3430 rajveer 485
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 486
    {
487
      getHolidays_result result = new getHolidays_result();
3430 rajveer 488
      receiveBase(result, "getHolidays");
1730 ankur.sing 489
      if (result.isSetSuccess()) {
490
        return result.success;
491
      }
3430 rajveer 492
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 493
    }
494
 
4934 amit.gupta 495
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
496
    {
497
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
498
      return recv_getEntityLogisticsEstimation();
499
    }
500
 
501
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
502
    {
503
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
504
      args.setCatalogItemId(catalogItemId);
505
      args.setDestination_pin(destination_pin);
506
      args.setType(type);
507
      sendBase("getEntityLogisticsEstimation", args);
508
    }
509
 
510
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
511
    {
512
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
513
      receiveBase(result, "getEntityLogisticsEstimation");
514
      if (result.isSetSuccess()) {
515
        return result.success;
516
      }
517
      if (result.se != null) {
518
        throw result.se;
519
      }
520
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
521
    }
522
 
5527 anupam.sin 523
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
524
    {
525
      send_getProviderForPickupType(pickUp);
526
      return recv_getProviderForPickupType();
527
    }
528
 
529
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
530
    {
531
      getProviderForPickupType_args args = new getProviderForPickupType_args();
532
      args.setPickUp(pickUp);
533
      sendBase("getProviderForPickupType", args);
534
    }
535
 
536
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
537
    {
538
      getProviderForPickupType_result result = new getProviderForPickupType_result();
539
      receiveBase(result, "getProviderForPickupType");
540
      if (result.isSetSuccess()) {
541
        return result.success;
542
      }
543
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
544
    }
545
 
5553 rajveer 546
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
547
    {
548
      send_getAllPickupStores();
549
      return recv_getAllPickupStores();
550
    }
551
 
552
    public void send_getAllPickupStores() throws org.apache.thrift.TException
553
    {
554
      getAllPickupStores_args args = new getAllPickupStores_args();
555
      sendBase("getAllPickupStores", args);
556
    }
557
 
558
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
559
    {
560
      getAllPickupStores_result result = new getAllPickupStores_result();
561
      receiveBase(result, "getAllPickupStores");
562
      if (result.isSetSuccess()) {
563
        return result.success;
564
      }
565
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
566
    }
567
 
568
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
569
    {
570
      send_getPickupStore(storeId);
571
      return recv_getPickupStore();
572
    }
573
 
574
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
575
    {
576
      getPickupStore_args args = new getPickupStore_args();
577
      args.setStoreId(storeId);
578
      sendBase("getPickupStore", args);
579
    }
580
 
581
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
582
    {
583
      getPickupStore_result result = new getPickupStore_result();
584
      receiveBase(result, "getPickupStore");
585
      if (result.isSetSuccess()) {
586
        return result.success;
587
      }
588
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
589
    }
590
 
5719 rajveer 591
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
592
    {
593
      send_getPickupStoreByHotspotId(hotspotId);
594
      return recv_getPickupStoreByHotspotId();
595
    }
596
 
597
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
598
    {
599
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
600
      args.setHotspotId(hotspotId);
601
      sendBase("getPickupStoreByHotspotId", args);
602
    }
603
 
604
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
605
    {
606
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
607
      receiveBase(result, "getPickupStoreByHotspotId");
608
      if (result.isSetSuccess()) {
609
        return result.success;
610
      }
611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
612
    }
613
 
6524 rajveer 614
    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 615
    {
6524 rajveer 616
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 617
      recv_addPincode();
618
    }
619
 
6524 rajveer 620
    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 621
    {
622
      addPincode_args args = new addPincode_args();
623
      args.setProviderId(providerId);
624
      args.setPincode(pincode);
625
      args.setDestCode(destCode);
626
      args.setExp(exp);
627
      args.setCod(cod);
628
      args.setStationType(stationType);
6524 rajveer 629
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 630
      sendBase("addPincode", args);
631
    }
632
 
633
    public void recv_addPincode() throws org.apache.thrift.TException
634
    {
635
      addPincode_result result = new addPincode_result();
636
      receiveBase(result, "addPincode");
637
      return;
638
    }
639
 
6524 rajveer 640
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 641
    {
6524 rajveer 642
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 643
      recv_updatePincode();
644
    }
645
 
6524 rajveer 646
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 647
    {
648
      updatePincode_args args = new updatePincode_args();
649
      args.setProviderId(providerId);
650
      args.setPincode(pincode);
651
      args.setExp(exp);
652
      args.setCod(cod);
6524 rajveer 653
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 654
      sendBase("updatePincode", args);
655
    }
656
 
657
    public void recv_updatePincode() throws org.apache.thrift.TException
658
    {
659
      updatePincode_result result = new updatePincode_result();
660
      receiveBase(result, "updatePincode");
661
      return;
662
    }
663
 
7567 rajveer 664
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
665
    {
666
      send_addNewAwbs(providerId, cod, awbs);
667
      return recv_addNewAwbs();
668
    }
669
 
670
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
671
    {
672
      addNewAwbs_args args = new addNewAwbs_args();
673
      args.setProviderId(providerId);
674
      args.setCod(cod);
675
      args.setAwbs(awbs);
676
      sendBase("addNewAwbs", args);
677
    }
678
 
679
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
680
    {
681
      addNewAwbs_result result = new addNewAwbs_result();
682
      receiveBase(result, "addNewAwbs");
683
      if (result.isSetSuccess()) {
684
        return result.success;
685
      }
686
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
687
    }
688
 
412 ashish 689
  }
3430 rajveer 690
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
691
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
692
      private org.apache.thrift.async.TAsyncClientManager clientManager;
693
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
694
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
695
        this.clientManager = clientManager;
696
        this.protocolFactory = protocolFactory;
697
      }
698
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
699
        return new AsyncClient(protocolFactory, clientManager, transport);
700
      }
412 ashish 701
    }
702
 
3430 rajveer 703
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
704
      super(protocolFactory, clientManager, transport);
705
    }
412 ashish 706
 
3430 rajveer 707
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
708
      checkReady();
709
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
710
      this.___currentMethod = method_call;
711
      ___manager.call(method_call);
712
    }
713
 
714
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
715
      private long providerId;
716
      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 {
717
        super(client, protocolFactory, transport, resultHandler, false);
718
        this.providerId = providerId;
412 ashish 719
      }
3430 rajveer 720
 
721
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
722
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
723
        getProvider_args args = new getProvider_args();
724
        args.setProviderId(providerId);
725
        args.write(prot);
726
        prot.writeMessageEnd();
727
      }
728
 
729
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
730
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
731
          throw new IllegalStateException("Method call not finished!");
732
        }
733
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
734
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
735
        return (new Client(prot)).recv_getProvider();
736
      }
412 ashish 737
    }
738
 
3430 rajveer 739
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
740
      checkReady();
741
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
742
      this.___currentMethod = method_call;
743
      ___manager.call(method_call);
744
    }
745
 
746
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
747
      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 {
748
        super(client, protocolFactory, transport, resultHandler, false);
749
      }
750
 
751
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
752
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
753
        getAllProviders_args args = new getAllProviders_args();
754
        args.write(prot);
755
        prot.writeMessageEnd();
756
      }
757
 
758
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
759
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
760
          throw new IllegalStateException("Method call not finished!");
761
        }
762
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
763
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
764
        return (new Client(prot)).recv_getAllProviders();
765
      }
766
    }
767
 
4630 mandeep.dh 768
    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 769
      checkReady();
4630 mandeep.dh 770
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 771
      this.___currentMethod = method_call;
772
      ___manager.call(method_call);
773
    }
774
 
775
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
776
      private long itemId;
777
      private String destination_pin;
4630 mandeep.dh 778
      private DeliveryType type;
779
      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 780
        super(client, protocolFactory, transport, resultHandler, false);
781
        this.itemId = itemId;
782
        this.destination_pin = destination_pin;
4630 mandeep.dh 783
        this.type = type;
3430 rajveer 784
      }
785
 
786
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
787
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
788
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
789
        args.setItemId(itemId);
790
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 791
        args.setType(type);
3430 rajveer 792
        args.write(prot);
793
        prot.writeMessageEnd();
794
      }
795
 
796
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
797
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
798
          throw new IllegalStateException("Method call not finished!");
799
        }
800
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
801
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
802
        return (new Client(prot)).recv_getLogisticsEstimation();
803
      }
804
    }
805
 
7256 rajveer 806
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
807
      checkReady();
808
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
809
      this.___currentMethod = method_call;
810
      ___manager.call(method_call);
811
    }
812
 
813
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
814
      private long itemId;
815
      private String destination_pin;
816
      private DeliveryType type;
817
      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 {
818
        super(client, protocolFactory, transport, resultHandler, false);
819
        this.itemId = itemId;
820
        this.destination_pin = destination_pin;
821
        this.type = type;
822
      }
823
 
824
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
825
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
826
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
827
        args.setItemId(itemId);
828
        args.setDestination_pin(destination_pin);
829
        args.setType(type);
830
        args.write(prot);
831
        prot.writeMessageEnd();
832
      }
833
 
834
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
835
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
836
          throw new IllegalStateException("Method call not finished!");
837
        }
838
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
839
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
840
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
841
      }
842
    }
843
 
5766 rajveer 844
    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 845
      checkReady();
5766 rajveer 846
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 847
      this.___currentMethod = method_call;
848
      ___manager.call(method_call);
849
    }
850
 
851
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
852
      private String destination_pincode;
853
      private long item_id;
854
      private DeliveryType type;
5766 rajveer 855
      private PickUpType pickUp;
856
      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 857
        super(client, protocolFactory, transport, resultHandler, false);
858
        this.destination_pincode = destination_pincode;
859
        this.item_id = item_id;
860
        this.type = type;
5766 rajveer 861
        this.pickUp = pickUp;
3430 rajveer 862
      }
863
 
864
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
865
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
866
        getLogisticsInfo_args args = new getLogisticsInfo_args();
867
        args.setDestination_pincode(destination_pincode);
868
        args.setItem_id(item_id);
869
        args.setType(type);
5766 rajveer 870
        args.setPickUp(pickUp);
3430 rajveer 871
        args.write(prot);
872
        prot.writeMessageEnd();
873
      }
874
 
875
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
876
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
877
          throw new IllegalStateException("Method call not finished!");
878
        }
879
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
880
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
881
        return (new Client(prot)).recv_getLogisticsInfo();
882
      }
883
    }
884
 
5247 rajveer 885
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 886
      checkReady();
5247 rajveer 887
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 888
      this.___currentMethod = method_call;
889
      ___manager.call(method_call);
890
    }
891
 
892
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
893
      private long providerId;
5247 rajveer 894
      private DeliveryType type;
895
      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 896
        super(client, protocolFactory, transport, resultHandler, false);
897
        this.providerId = providerId;
5247 rajveer 898
        this.type = type;
3430 rajveer 899
      }
900
 
901
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
903
        getEmptyAWB_args args = new getEmptyAWB_args();
904
        args.setProviderId(providerId);
5247 rajveer 905
        args.setType(type);
3430 rajveer 906
        args.write(prot);
907
        prot.writeMessageEnd();
908
      }
909
 
910
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
911
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
912
          throw new IllegalStateException("Method call not finished!");
913
        }
914
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
915
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
916
        return (new Client(prot)).recv_getEmptyAWB();
917
      }
918
    }
919
 
6643 rajveer 920
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 921
      checkReady();
6643 rajveer 922
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 923
      this.___currentMethod = method_call;
924
      ___manager.call(method_call);
925
    }
926
 
927
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 928
      private String awbNumber;
3430 rajveer 929
      private long providerId;
6643 rajveer 930
      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 931
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 932
        this.awbNumber = awbNumber;
3430 rajveer 933
        this.providerId = providerId;
934
      }
935
 
936
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
937
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
938
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 939
        args.setAwbNumber(awbNumber);
3430 rajveer 940
        args.setProviderId(providerId);
941
        args.write(prot);
942
        prot.writeMessageEnd();
943
      }
944
 
945
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
946
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
947
          throw new IllegalStateException("Method call not finished!");
948
        }
949
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
950
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
951
        return (new Client(prot)).recv_getShipmentInfo();
952
      }
953
    }
954
 
6643 rajveer 955
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
956
      checkReady();
957
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
958
      this.___currentMethod = method_call;
959
      ___manager.call(method_call);
960
    }
961
 
962
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
963
      private AwbUpdate update;
964
      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 {
965
        super(client, protocolFactory, transport, resultHandler, false);
966
        this.update = update;
967
      }
968
 
969
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
970
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
971
        storeShipmentInfo_args args = new storeShipmentInfo_args();
972
        args.setUpdate(update);
973
        args.write(prot);
974
        prot.writeMessageEnd();
975
      }
976
 
977
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
978
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
979
          throw new IllegalStateException("Method call not finished!");
980
        }
981
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
982
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
983
        (new Client(prot)).recv_storeShipmentInfo();
984
      }
985
    }
986
 
3430 rajveer 987
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
988
      checkReady();
989
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
990
      this.___currentMethod = method_call;
991
      ___manager.call(method_call);
992
    }
993
 
994
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
995
      private long providerId;
996
      private String pinCode;
997
      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 {
998
        super(client, protocolFactory, transport, resultHandler, false);
999
        this.providerId = providerId;
1000
        this.pinCode = pinCode;
1001
      }
1002
 
1003
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1004
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1005
        getDestinationCode_args args = new getDestinationCode_args();
1006
        args.setProviderId(providerId);
1007
        args.setPinCode(pinCode);
1008
        args.write(prot);
1009
        prot.writeMessageEnd();
1010
      }
1011
 
1012
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1013
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1014
          throw new IllegalStateException("Method call not finished!");
1015
        }
1016
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1017
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1018
        return (new Client(prot)).recv_getDestinationCode();
1019
      }
1020
    }
1021
 
1022
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1023
      checkReady();
1024
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1025
      this.___currentMethod = method_call;
1026
      ___manager.call(method_call);
1027
    }
1028
 
1029
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1030
      private long providerId;
1031
      private String type;
1032
      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 {
1033
        super(client, protocolFactory, transport, resultHandler, false);
1034
        this.providerId = providerId;
1035
        this.type = type;
1036
      }
1037
 
1038
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1039
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1040
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1041
        args.setProviderId(providerId);
1042
        args.setType(type);
1043
        args.write(prot);
1044
        prot.writeMessageEnd();
1045
      }
1046
 
1047
      public long getResult() throws org.apache.thrift.TException {
1048
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1049
          throw new IllegalStateException("Method call not finished!");
1050
        }
1051
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1052
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1053
        return (new Client(prot)).recv_getFreeAwbCount();
1054
      }
1055
    }
1056
 
1057
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1058
      checkReady();
1059
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1060
      this.___currentMethod = method_call;
1061
      ___manager.call(method_call);
1062
    }
1063
 
1064
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1065
      private long fromDate;
1066
      private long toDate;
1067
      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 {
1068
        super(client, protocolFactory, transport, resultHandler, false);
1069
        this.fromDate = fromDate;
1070
        this.toDate = toDate;
1071
      }
1072
 
1073
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1074
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1075
        getHolidays_args args = new getHolidays_args();
1076
        args.setFromDate(fromDate);
1077
        args.setToDate(toDate);
1078
        args.write(prot);
1079
        prot.writeMessageEnd();
1080
      }
1081
 
1082
      public List<Long> getResult() throws org.apache.thrift.TException {
1083
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1084
          throw new IllegalStateException("Method call not finished!");
1085
        }
1086
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1087
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1088
        return (new Client(prot)).recv_getHolidays();
1089
      }
1090
    }
1091
 
4934 amit.gupta 1092
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1093
      checkReady();
1094
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1095
      this.___currentMethod = method_call;
1096
      ___manager.call(method_call);
1097
    }
1098
 
1099
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1100
      private long catalogItemId;
1101
      private String destination_pin;
1102
      private DeliveryType type;
1103
      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 {
1104
        super(client, protocolFactory, transport, resultHandler, false);
1105
        this.catalogItemId = catalogItemId;
1106
        this.destination_pin = destination_pin;
1107
        this.type = type;
1108
      }
1109
 
1110
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1111
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1112
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1113
        args.setCatalogItemId(catalogItemId);
1114
        args.setDestination_pin(destination_pin);
1115
        args.setType(type);
1116
        args.write(prot);
1117
        prot.writeMessageEnd();
1118
      }
1119
 
1120
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1121
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1122
          throw new IllegalStateException("Method call not finished!");
1123
        }
1124
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1125
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1126
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1127
      }
1128
    }
1129
 
5527 anupam.sin 1130
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1131
      checkReady();
1132
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1133
      this.___currentMethod = method_call;
1134
      ___manager.call(method_call);
1135
    }
1136
 
1137
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1138
      private long pickUp;
1139
      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 {
1140
        super(client, protocolFactory, transport, resultHandler, false);
1141
        this.pickUp = pickUp;
1142
      }
1143
 
1144
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1145
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1146
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1147
        args.setPickUp(pickUp);
1148
        args.write(prot);
1149
        prot.writeMessageEnd();
1150
      }
1151
 
1152
      public long getResult() throws org.apache.thrift.TException {
1153
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1154
          throw new IllegalStateException("Method call not finished!");
1155
        }
1156
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1157
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1158
        return (new Client(prot)).recv_getProviderForPickupType();
1159
      }
1160
    }
1161
 
5553 rajveer 1162
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1163
      checkReady();
1164
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1165
      this.___currentMethod = method_call;
1166
      ___manager.call(method_call);
1167
    }
1168
 
1169
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1170
      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 {
1171
        super(client, protocolFactory, transport, resultHandler, false);
1172
      }
1173
 
1174
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1175
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1176
        getAllPickupStores_args args = new getAllPickupStores_args();
1177
        args.write(prot);
1178
        prot.writeMessageEnd();
1179
      }
1180
 
1181
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1182
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1183
          throw new IllegalStateException("Method call not finished!");
1184
        }
1185
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1186
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1187
        return (new Client(prot)).recv_getAllPickupStores();
1188
      }
1189
    }
1190
 
1191
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1192
      checkReady();
1193
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1194
      this.___currentMethod = method_call;
1195
      ___manager.call(method_call);
1196
    }
1197
 
1198
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1199
      private long storeId;
1200
      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 {
1201
        super(client, protocolFactory, transport, resultHandler, false);
1202
        this.storeId = storeId;
1203
      }
1204
 
1205
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1206
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1207
        getPickupStore_args args = new getPickupStore_args();
1208
        args.setStoreId(storeId);
1209
        args.write(prot);
1210
        prot.writeMessageEnd();
1211
      }
1212
 
1213
      public PickupStore getResult() throws org.apache.thrift.TException {
1214
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1215
          throw new IllegalStateException("Method call not finished!");
1216
        }
1217
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1218
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1219
        return (new Client(prot)).recv_getPickupStore();
1220
      }
1221
    }
1222
 
5719 rajveer 1223
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1224
      checkReady();
1225
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1226
      this.___currentMethod = method_call;
1227
      ___manager.call(method_call);
1228
    }
1229
 
1230
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1231
      private String hotspotId;
1232
      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 {
1233
        super(client, protocolFactory, transport, resultHandler, false);
1234
        this.hotspotId = hotspotId;
1235
      }
1236
 
1237
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1238
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1239
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1240
        args.setHotspotId(hotspotId);
1241
        args.write(prot);
1242
        prot.writeMessageEnd();
1243
      }
1244
 
1245
      public PickupStore getResult() throws org.apache.thrift.TException {
1246
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1247
          throw new IllegalStateException("Method call not finished!");
1248
        }
1249
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1250
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1251
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1252
      }
1253
    }
1254
 
6524 rajveer 1255
    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 1256
      checkReady();
6524 rajveer 1257
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1258
      this.___currentMethod = method_call;
1259
      ___manager.call(method_call);
1260
    }
1261
 
1262
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1263
      private long providerId;
1264
      private String pincode;
1265
      private String destCode;
1266
      private boolean exp;
1267
      private boolean cod;
1268
      private int stationType;
6524 rajveer 1269
      private boolean otgAvailable;
1270
      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 1271
        super(client, protocolFactory, transport, resultHandler, false);
1272
        this.providerId = providerId;
1273
        this.pincode = pincode;
1274
        this.destCode = destCode;
1275
        this.exp = exp;
1276
        this.cod = cod;
1277
        this.stationType = stationType;
6524 rajveer 1278
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1279
      }
1280
 
1281
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1282
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1283
        addPincode_args args = new addPincode_args();
1284
        args.setProviderId(providerId);
1285
        args.setPincode(pincode);
1286
        args.setDestCode(destCode);
1287
        args.setExp(exp);
1288
        args.setCod(cod);
1289
        args.setStationType(stationType);
6524 rajveer 1290
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1291
        args.write(prot);
1292
        prot.writeMessageEnd();
1293
      }
1294
 
1295
      public void getResult() throws org.apache.thrift.TException {
1296
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1297
          throw new IllegalStateException("Method call not finished!");
1298
        }
1299
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1300
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1301
        (new Client(prot)).recv_addPincode();
1302
      }
1303
    }
1304
 
6524 rajveer 1305
    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 1306
      checkReady();
6524 rajveer 1307
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1308
      this.___currentMethod = method_call;
1309
      ___manager.call(method_call);
1310
    }
1311
 
1312
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1313
      private long providerId;
1314
      private String pincode;
1315
      private boolean exp;
1316
      private boolean cod;
6524 rajveer 1317
      private boolean otgAvailable;
1318
      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 1319
        super(client, protocolFactory, transport, resultHandler, false);
1320
        this.providerId = providerId;
1321
        this.pincode = pincode;
1322
        this.exp = exp;
1323
        this.cod = cod;
6524 rajveer 1324
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1325
      }
1326
 
1327
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1328
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1329
        updatePincode_args args = new updatePincode_args();
1330
        args.setProviderId(providerId);
1331
        args.setPincode(pincode);
1332
        args.setExp(exp);
1333
        args.setCod(cod);
6524 rajveer 1334
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1335
        args.write(prot);
1336
        prot.writeMessageEnd();
1337
      }
1338
 
1339
      public void getResult() throws org.apache.thrift.TException {
1340
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1341
          throw new IllegalStateException("Method call not finished!");
1342
        }
1343
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1344
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1345
        (new Client(prot)).recv_updatePincode();
1346
      }
1347
    }
1348
 
7567 rajveer 1349
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1350
      checkReady();
1351
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
1352
      this.___currentMethod = method_call;
1353
      ___manager.call(method_call);
1354
    }
1355
 
1356
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1357
      private long providerId;
1358
      private boolean cod;
1359
      private List<String> awbs;
1360
      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 {
1361
        super(client, protocolFactory, transport, resultHandler, false);
1362
        this.providerId = providerId;
1363
        this.cod = cod;
1364
        this.awbs = awbs;
1365
      }
1366
 
1367
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1368
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1369
        addNewAwbs_args args = new addNewAwbs_args();
1370
        args.setProviderId(providerId);
1371
        args.setCod(cod);
1372
        args.setAwbs(awbs);
1373
        args.write(prot);
1374
        prot.writeMessageEnd();
1375
      }
1376
 
1377
      public boolean getResult() throws org.apache.thrift.TException {
1378
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1379
          throw new IllegalStateException("Method call not finished!");
1380
        }
1381
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1382
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1383
        return (new Client(prot)).recv_addNewAwbs();
1384
      }
1385
    }
1386
 
3430 rajveer 1387
  }
1388
 
1389
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1390
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1391
    public Processor(I iface) {
1392
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1393
    }
1394
 
1395
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1396
      super(iface, getProcessMap(processMap));
1397
    }
1398
 
1399
    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) {
1400
      processMap.put("getProvider", new getProvider());
1401
      processMap.put("getAllProviders", new getAllProviders());
1402
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1403
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1404
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1405
      processMap.put("getEmptyAWB", new getEmptyAWB());
1406
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1407
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1408
      processMap.put("getDestinationCode", new getDestinationCode());
1409
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1410
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1411
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1412
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1413
      processMap.put("getAllPickupStores", new getAllPickupStores());
1414
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1415
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1416
      processMap.put("addPincode", new addPincode());
1417
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1418
      processMap.put("addNewAwbs", new addNewAwbs());
3430 rajveer 1419
      return processMap;
1420
    }
1421
 
1422
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1423
      public getProvider() {
1424
        super("getProvider");
1425
      }
1426
 
1427
      protected getProvider_args getEmptyArgsInstance() {
1428
        return new getProvider_args();
1429
      }
1430
 
1431
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1432
        getProvider_result result = new getProvider_result();
1433
        try {
3430 rajveer 1434
          result.success = iface.getProvider(args.providerId);
668 chandransh 1435
        } catch (LogisticsServiceException lse) {
1436
          result.lse = lse;
1437
        }
3430 rajveer 1438
        return result;
668 chandransh 1439
      }
1440
    }
1441
 
3430 rajveer 1442
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1443
      public getAllProviders() {
1444
        super("getAllProviders");
1445
      }
1446
 
1447
      protected getAllProviders_args getEmptyArgsInstance() {
1448
        return new getAllProviders_args();
1449
      }
1450
 
1451
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1452
        getAllProviders_result result = new getAllProviders_result();
1453
        try {
3430 rajveer 1454
          result.success = iface.getAllProviders();
674 chandransh 1455
        } catch (LogisticsServiceException lse) {
1456
          result.lse = lse;
1457
        }
3430 rajveer 1458
        return result;
674 chandransh 1459
      }
1460
    }
1461
 
3430 rajveer 1462
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1463
      public getLogisticsEstimation() {
1464
        super("getLogisticsEstimation");
1465
      }
1466
 
1467
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1468
        return new getLogisticsEstimation_args();
1469
      }
1470
 
1471
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1472
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1473
        try {
4630 mandeep.dh 1474
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1475
        } catch (LogisticsServiceException se) {
1476
          result.se = se;
1477
        }
3430 rajveer 1478
        return result;
483 rajveer 1479
      }
1480
    }
1481
 
7256 rajveer 1482
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1483
      public getLogisticsEstimationForStore() {
1484
        super("getLogisticsEstimationForStore");
1485
      }
1486
 
1487
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1488
        return new getLogisticsEstimationForStore_args();
1489
      }
1490
 
1491
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1492
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1493
        try {
1494
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1495
        } catch (LogisticsServiceException se) {
1496
          result.se = se;
1497
        }
1498
        return result;
1499
      }
1500
    }
1501
 
3430 rajveer 1502
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1503
      public getLogisticsInfo() {
1504
        super("getLogisticsInfo");
1505
      }
1506
 
1507
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1508
        return new getLogisticsInfo_args();
1509
      }
1510
 
1511
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1512
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1513
        try {
5766 rajveer 1514
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1515
        } catch (LogisticsServiceException se) {
1516
          result.se = se;
1517
        }
3430 rajveer 1518
        return result;
471 rajveer 1519
      }
1520
    }
1521
 
3430 rajveer 1522
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1523
      public getEmptyAWB() {
1524
        super("getEmptyAWB");
1525
      }
1526
 
1527
      protected getEmptyAWB_args getEmptyArgsInstance() {
1528
        return new getEmptyAWB_args();
1529
      }
1530
 
1531
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1532
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1533
        try {
5247 rajveer 1534
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1535
        } catch (LogisticsServiceException se) {
1536
          result.se = se;
1537
        }
3430 rajveer 1538
        return result;
412 ashish 1539
      }
1540
    }
1541
 
3430 rajveer 1542
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1543
      public getShipmentInfo() {
1544
        super("getShipmentInfo");
1545
      }
1546
 
1547
      protected getShipmentInfo_args getEmptyArgsInstance() {
1548
        return new getShipmentInfo_args();
1549
      }
1550
 
1551
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1552
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1553
        try {
6643 rajveer 1554
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1555
        } catch (LogisticsServiceException se) {
1556
          result.se = se;
1557
        }
3430 rajveer 1558
        return result;
412 ashish 1559
      }
1560
    }
1561
 
6643 rajveer 1562
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1563
      public storeShipmentInfo() {
1564
        super("storeShipmentInfo");
1565
      }
1566
 
1567
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1568
        return new storeShipmentInfo_args();
1569
      }
1570
 
1571
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1572
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1573
        try {
1574
          iface.storeShipmentInfo(args.update);
1575
        } catch (LogisticsServiceException se) {
1576
          result.se = se;
1577
        }
1578
        return result;
1579
      }
1580
    }
1581
 
3430 rajveer 1582
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1583
      public getDestinationCode() {
1584
        super("getDestinationCode");
1585
      }
1586
 
1587
      protected getDestinationCode_args getEmptyArgsInstance() {
1588
        return new getDestinationCode_args();
1589
      }
1590
 
1591
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1592
        getDestinationCode_result result = new getDestinationCode_result();
1593
        try {
3430 rajveer 1594
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1595
        } catch (LogisticsServiceException se) {
1596
          result.se = se;
1597
        }
3430 rajveer 1598
        return result;
730 chandransh 1599
      }
1600
    }
1601
 
3430 rajveer 1602
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1603
      public getFreeAwbCount() {
1604
        super("getFreeAwbCount");
1605
      }
1606
 
1607
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1608
        return new getFreeAwbCount_args();
1609
      }
1610
 
1611
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1612
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1613
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1614
        result.setSuccessIsSet(true);
3430 rajveer 1615
        return result;
1139 chandransh 1616
      }
1617
    }
1618
 
3430 rajveer 1619
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1620
      public getHolidays() {
1621
        super("getHolidays");
1622
      }
1623
 
1624
      protected getHolidays_args getEmptyArgsInstance() {
1625
        return new getHolidays_args();
1626
      }
1627
 
1628
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1629
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1630
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1631
        return result;
1730 ankur.sing 1632
      }
1633
    }
1634
 
4934 amit.gupta 1635
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1636
      public getEntityLogisticsEstimation() {
1637
        super("getEntityLogisticsEstimation");
1638
      }
1639
 
1640
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1641
        return new getEntityLogisticsEstimation_args();
1642
      }
1643
 
1644
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1645
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1646
        try {
1647
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1648
        } catch (LogisticsServiceException se) {
1649
          result.se = se;
1650
        }
1651
        return result;
1652
      }
1653
    }
1654
 
5527 anupam.sin 1655
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1656
      public getProviderForPickupType() {
1657
        super("getProviderForPickupType");
1658
      }
1659
 
1660
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1661
        return new getProviderForPickupType_args();
1662
      }
1663
 
1664
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1665
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1666
        result.success = iface.getProviderForPickupType(args.pickUp);
1667
        result.setSuccessIsSet(true);
1668
        return result;
1669
      }
1670
    }
1671
 
5553 rajveer 1672
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1673
      public getAllPickupStores() {
1674
        super("getAllPickupStores");
1675
      }
1676
 
1677
      protected getAllPickupStores_args getEmptyArgsInstance() {
1678
        return new getAllPickupStores_args();
1679
      }
1680
 
1681
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1682
        getAllPickupStores_result result = new getAllPickupStores_result();
1683
        result.success = iface.getAllPickupStores();
1684
        return result;
1685
      }
1686
    }
1687
 
1688
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1689
      public getPickupStore() {
1690
        super("getPickupStore");
1691
      }
1692
 
1693
      protected getPickupStore_args getEmptyArgsInstance() {
1694
        return new getPickupStore_args();
1695
      }
1696
 
1697
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1698
        getPickupStore_result result = new getPickupStore_result();
1699
        result.success = iface.getPickupStore(args.storeId);
1700
        return result;
1701
      }
1702
    }
1703
 
5719 rajveer 1704
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1705
      public getPickupStoreByHotspotId() {
1706
        super("getPickupStoreByHotspotId");
1707
      }
1708
 
1709
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1710
        return new getPickupStoreByHotspotId_args();
1711
      }
1712
 
1713
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1714
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1715
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1716
        return result;
1717
      }
1718
    }
1719
 
6322 amar.kumar 1720
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1721
      public addPincode() {
1722
        super("addPincode");
1723
      }
1724
 
1725
      protected addPincode_args getEmptyArgsInstance() {
1726
        return new addPincode_args();
1727
      }
1728
 
1729
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1730
        addPincode_result result = new addPincode_result();
6524 rajveer 1731
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1732
        return result;
1733
      }
1734
    }
1735
 
1736
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1737
      public updatePincode() {
1738
        super("updatePincode");
1739
      }
1740
 
1741
      protected updatePincode_args getEmptyArgsInstance() {
1742
        return new updatePincode_args();
1743
      }
1744
 
1745
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1746
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1747
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1748
        return result;
1749
      }
1750
    }
1751
 
7567 rajveer 1752
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
1753
      public addNewAwbs() {
1754
        super("addNewAwbs");
1755
      }
1756
 
1757
      protected addNewAwbs_args getEmptyArgsInstance() {
1758
        return new addNewAwbs_args();
1759
      }
1760
 
1761
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
1762
        addNewAwbs_result result = new addNewAwbs_result();
1763
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
1764
        result.setSuccessIsSet(true);
1765
        return result;
1766
      }
1767
    }
1768
 
412 ashish 1769
  }
1770
 
3430 rajveer 1771
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1773
 
3430 rajveer 1774
    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 1775
 
3430 rajveer 1776
    private long providerId; // required
668 chandransh 1777
 
1778
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1779
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1780
      PROVIDER_ID((short)1, "providerId");
1781
 
1782
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1783
 
1784
      static {
1785
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1786
          byName.put(field.getFieldName(), field);
1787
        }
1788
      }
1789
 
1790
      /**
1791
       * Find the _Fields constant that matches fieldId, or null if its not found.
1792
       */
1793
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1794
        switch(fieldId) {
1795
          case 1: // PROVIDER_ID
1796
            return PROVIDER_ID;
1797
          default:
1798
            return null;
1799
        }
668 chandransh 1800
      }
1801
 
1802
      /**
1803
       * Find the _Fields constant that matches fieldId, throwing an exception
1804
       * if it is not found.
1805
       */
1806
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1807
        _Fields fields = findByThriftId(fieldId);
1808
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1809
        return fields;
1810
      }
1811
 
1812
      /**
1813
       * Find the _Fields constant that matches name, or null if its not found.
1814
       */
1815
      public static _Fields findByName(String name) {
1816
        return byName.get(name);
1817
      }
1818
 
1819
      private final short _thriftId;
1820
      private final String _fieldName;
1821
 
1822
      _Fields(short thriftId, String fieldName) {
1823
        _thriftId = thriftId;
1824
        _fieldName = fieldName;
1825
      }
1826
 
1827
      public short getThriftFieldId() {
1828
        return _thriftId;
1829
      }
1830
 
1831
      public String getFieldName() {
1832
        return _fieldName;
1833
      }
1834
    }
1835
 
1836
    // isset id assignments
1837
    private static final int __PROVIDERID_ISSET_ID = 0;
1838
    private BitSet __isset_bit_vector = new BitSet(1);
1839
 
3430 rajveer 1840
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1841
    static {
3430 rajveer 1842
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1843
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1844
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1845
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1846
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1847
    }
1848
 
1849
    public getProvider_args() {
1850
    }
1851
 
1852
    public getProvider_args(
1853
      long providerId)
1854
    {
1855
      this();
1856
      this.providerId = providerId;
1857
      setProviderIdIsSet(true);
1858
    }
1859
 
1860
    /**
1861
     * Performs a deep copy on <i>other</i>.
1862
     */
1863
    public getProvider_args(getProvider_args other) {
1864
      __isset_bit_vector.clear();
1865
      __isset_bit_vector.or(other.__isset_bit_vector);
1866
      this.providerId = other.providerId;
1867
    }
1868
 
1869
    public getProvider_args deepCopy() {
1870
      return new getProvider_args(this);
1871
    }
1872
 
3430 rajveer 1873
    @Override
1874
    public void clear() {
1875
      setProviderIdIsSet(false);
1876
      this.providerId = 0;
668 chandransh 1877
    }
1878
 
1879
    public long getProviderId() {
1880
      return this.providerId;
1881
    }
1882
 
3430 rajveer 1883
    public void setProviderId(long providerId) {
668 chandransh 1884
      this.providerId = providerId;
1885
      setProviderIdIsSet(true);
1886
    }
1887
 
1888
    public void unsetProviderId() {
1889
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1890
    }
1891
 
3430 rajveer 1892
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1893
    public boolean isSetProviderId() {
1894
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1895
    }
1896
 
1897
    public void setProviderIdIsSet(boolean value) {
1898
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1899
    }
1900
 
1901
    public void setFieldValue(_Fields field, Object value) {
1902
      switch (field) {
1903
      case PROVIDER_ID:
1904
        if (value == null) {
1905
          unsetProviderId();
1906
        } else {
1907
          setProviderId((Long)value);
1908
        }
1909
        break;
1910
 
1911
      }
1912
    }
1913
 
1914
    public Object getFieldValue(_Fields field) {
1915
      switch (field) {
1916
      case PROVIDER_ID:
3430 rajveer 1917
        return Long.valueOf(getProviderId());
668 chandransh 1918
 
1919
      }
1920
      throw new IllegalStateException();
1921
    }
1922
 
3430 rajveer 1923
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1924
    public boolean isSet(_Fields field) {
1925
      if (field == null) {
1926
        throw new IllegalArgumentException();
1927
      }
668 chandransh 1928
 
1929
      switch (field) {
1930
      case PROVIDER_ID:
1931
        return isSetProviderId();
1932
      }
1933
      throw new IllegalStateException();
1934
    }
1935
 
1936
    @Override
1937
    public boolean equals(Object that) {
1938
      if (that == null)
1939
        return false;
1940
      if (that instanceof getProvider_args)
1941
        return this.equals((getProvider_args)that);
1942
      return false;
1943
    }
1944
 
1945
    public boolean equals(getProvider_args that) {
1946
      if (that == null)
1947
        return false;
1948
 
1949
      boolean this_present_providerId = true;
1950
      boolean that_present_providerId = true;
1951
      if (this_present_providerId || that_present_providerId) {
1952
        if (!(this_present_providerId && that_present_providerId))
1953
          return false;
1954
        if (this.providerId != that.providerId)
1955
          return false;
1956
      }
1957
 
1958
      return true;
1959
    }
1960
 
1961
    @Override
1962
    public int hashCode() {
1963
      return 0;
1964
    }
1965
 
1966
    public int compareTo(getProvider_args other) {
1967
      if (!getClass().equals(other.getClass())) {
1968
        return getClass().getName().compareTo(other.getClass().getName());
1969
      }
1970
 
1971
      int lastComparison = 0;
1972
      getProvider_args typedOther = (getProvider_args)other;
1973
 
3430 rajveer 1974
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 1975
      if (lastComparison != 0) {
1976
        return lastComparison;
1977
      }
3430 rajveer 1978
      if (isSetProviderId()) {
1979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
1980
        if (lastComparison != 0) {
1981
          return lastComparison;
1982
        }
668 chandransh 1983
      }
1984
      return 0;
1985
    }
1986
 
3430 rajveer 1987
    public _Fields fieldForId(int fieldId) {
1988
      return _Fields.findByThriftId(fieldId);
1989
    }
1990
 
1991
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1992
      org.apache.thrift.protocol.TField field;
668 chandransh 1993
      iprot.readStructBegin();
1994
      while (true)
1995
      {
1996
        field = iprot.readFieldBegin();
3430 rajveer 1997
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1998
          break;
1999
        }
3430 rajveer 2000
        switch (field.id) {
2001
          case 1: // PROVIDER_ID
2002
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2003
              this.providerId = iprot.readI64();
2004
              setProviderIdIsSet(true);
2005
            } else { 
2006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2007
            }
2008
            break;
2009
          default:
2010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2011
        }
3430 rajveer 2012
        iprot.readFieldEnd();
668 chandransh 2013
      }
2014
      iprot.readStructEnd();
2015
      validate();
2016
    }
2017
 
3430 rajveer 2018
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2019
      validate();
2020
 
2021
      oprot.writeStructBegin(STRUCT_DESC);
2022
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2023
      oprot.writeI64(this.providerId);
2024
      oprot.writeFieldEnd();
2025
      oprot.writeFieldStop();
2026
      oprot.writeStructEnd();
2027
    }
2028
 
2029
    @Override
2030
    public String toString() {
2031
      StringBuilder sb = new StringBuilder("getProvider_args(");
2032
      boolean first = true;
2033
 
2034
      sb.append("providerId:");
2035
      sb.append(this.providerId);
2036
      first = false;
2037
      sb.append(")");
2038
      return sb.toString();
2039
    }
2040
 
3430 rajveer 2041
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2042
      // check for required fields
2043
    }
2044
 
3430 rajveer 2045
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2046
      try {
2047
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2048
      } catch (org.apache.thrift.TException te) {
2049
        throw new java.io.IOException(te);
2050
      }
2051
    }
2052
 
2053
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2054
      try {
2055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2056
      } catch (org.apache.thrift.TException te) {
2057
        throw new java.io.IOException(te);
2058
      }
2059
    }
2060
 
668 chandransh 2061
  }
2062
 
3430 rajveer 2063
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2064
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2065
 
3430 rajveer 2066
    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);
2067
    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 2068
 
3430 rajveer 2069
    private Provider success; // required
2070
    private LogisticsServiceException lse; // required
668 chandransh 2071
 
2072
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2073
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2074
      SUCCESS((short)0, "success"),
2075
      LSE((short)1, "lse");
2076
 
2077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2078
 
2079
      static {
2080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2081
          byName.put(field.getFieldName(), field);
2082
        }
2083
      }
2084
 
2085
      /**
2086
       * Find the _Fields constant that matches fieldId, or null if its not found.
2087
       */
2088
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2089
        switch(fieldId) {
2090
          case 0: // SUCCESS
2091
            return SUCCESS;
2092
          case 1: // LSE
2093
            return LSE;
2094
          default:
2095
            return null;
2096
        }
668 chandransh 2097
      }
2098
 
2099
      /**
2100
       * Find the _Fields constant that matches fieldId, throwing an exception
2101
       * if it is not found.
2102
       */
2103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2104
        _Fields fields = findByThriftId(fieldId);
2105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2106
        return fields;
2107
      }
2108
 
2109
      /**
2110
       * Find the _Fields constant that matches name, or null if its not found.
2111
       */
2112
      public static _Fields findByName(String name) {
2113
        return byName.get(name);
2114
      }
2115
 
2116
      private final short _thriftId;
2117
      private final String _fieldName;
2118
 
2119
      _Fields(short thriftId, String fieldName) {
2120
        _thriftId = thriftId;
2121
        _fieldName = fieldName;
2122
      }
2123
 
2124
      public short getThriftFieldId() {
2125
        return _thriftId;
2126
      }
2127
 
2128
      public String getFieldName() {
2129
        return _fieldName;
2130
      }
2131
    }
2132
 
2133
    // isset id assignments
2134
 
3430 rajveer 2135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2136
    static {
3430 rajveer 2137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2138
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2139
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2140
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2144
    }
2145
 
2146
    public getProvider_result() {
2147
    }
2148
 
2149
    public getProvider_result(
2150
      Provider success,
2151
      LogisticsServiceException lse)
2152
    {
2153
      this();
2154
      this.success = success;
2155
      this.lse = lse;
2156
    }
2157
 
2158
    /**
2159
     * Performs a deep copy on <i>other</i>.
2160
     */
2161
    public getProvider_result(getProvider_result other) {
2162
      if (other.isSetSuccess()) {
2163
        this.success = new Provider(other.success);
2164
      }
2165
      if (other.isSetLse()) {
2166
        this.lse = new LogisticsServiceException(other.lse);
2167
      }
2168
    }
2169
 
2170
    public getProvider_result deepCopy() {
2171
      return new getProvider_result(this);
2172
    }
2173
 
3430 rajveer 2174
    @Override
2175
    public void clear() {
2176
      this.success = null;
2177
      this.lse = null;
668 chandransh 2178
    }
2179
 
2180
    public Provider getSuccess() {
2181
      return this.success;
2182
    }
2183
 
3430 rajveer 2184
    public void setSuccess(Provider success) {
668 chandransh 2185
      this.success = success;
2186
    }
2187
 
2188
    public void unsetSuccess() {
2189
      this.success = null;
2190
    }
2191
 
3430 rajveer 2192
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2193
    public boolean isSetSuccess() {
2194
      return this.success != null;
2195
    }
2196
 
2197
    public void setSuccessIsSet(boolean value) {
2198
      if (!value) {
2199
        this.success = null;
2200
      }
2201
    }
2202
 
2203
    public LogisticsServiceException getLse() {
2204
      return this.lse;
2205
    }
2206
 
3430 rajveer 2207
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2208
      this.lse = lse;
2209
    }
2210
 
2211
    public void unsetLse() {
2212
      this.lse = null;
2213
    }
2214
 
3430 rajveer 2215
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2216
    public boolean isSetLse() {
2217
      return this.lse != null;
2218
    }
2219
 
2220
    public void setLseIsSet(boolean value) {
2221
      if (!value) {
2222
        this.lse = null;
2223
      }
2224
    }
2225
 
2226
    public void setFieldValue(_Fields field, Object value) {
2227
      switch (field) {
2228
      case SUCCESS:
2229
        if (value == null) {
2230
          unsetSuccess();
2231
        } else {
2232
          setSuccess((Provider)value);
2233
        }
2234
        break;
2235
 
2236
      case LSE:
2237
        if (value == null) {
2238
          unsetLse();
2239
        } else {
2240
          setLse((LogisticsServiceException)value);
2241
        }
2242
        break;
2243
 
2244
      }
2245
    }
2246
 
2247
    public Object getFieldValue(_Fields field) {
2248
      switch (field) {
2249
      case SUCCESS:
2250
        return getSuccess();
2251
 
2252
      case LSE:
2253
        return getLse();
2254
 
2255
      }
2256
      throw new IllegalStateException();
2257
    }
2258
 
3430 rajveer 2259
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2260
    public boolean isSet(_Fields field) {
2261
      if (field == null) {
2262
        throw new IllegalArgumentException();
2263
      }
668 chandransh 2264
 
2265
      switch (field) {
2266
      case SUCCESS:
2267
        return isSetSuccess();
2268
      case LSE:
2269
        return isSetLse();
2270
      }
2271
      throw new IllegalStateException();
2272
    }
2273
 
2274
    @Override
2275
    public boolean equals(Object that) {
2276
      if (that == null)
2277
        return false;
2278
      if (that instanceof getProvider_result)
2279
        return this.equals((getProvider_result)that);
2280
      return false;
2281
    }
2282
 
2283
    public boolean equals(getProvider_result that) {
2284
      if (that == null)
2285
        return false;
2286
 
2287
      boolean this_present_success = true && this.isSetSuccess();
2288
      boolean that_present_success = true && that.isSetSuccess();
2289
      if (this_present_success || that_present_success) {
2290
        if (!(this_present_success && that_present_success))
2291
          return false;
2292
        if (!this.success.equals(that.success))
2293
          return false;
2294
      }
2295
 
2296
      boolean this_present_lse = true && this.isSetLse();
2297
      boolean that_present_lse = true && that.isSetLse();
2298
      if (this_present_lse || that_present_lse) {
2299
        if (!(this_present_lse && that_present_lse))
2300
          return false;
2301
        if (!this.lse.equals(that.lse))
2302
          return false;
2303
      }
2304
 
2305
      return true;
2306
    }
2307
 
2308
    @Override
2309
    public int hashCode() {
2310
      return 0;
2311
    }
2312
 
3430 rajveer 2313
    public int compareTo(getProvider_result other) {
2314
      if (!getClass().equals(other.getClass())) {
2315
        return getClass().getName().compareTo(other.getClass().getName());
2316
      }
2317
 
2318
      int lastComparison = 0;
2319
      getProvider_result typedOther = (getProvider_result)other;
2320
 
2321
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2322
      if (lastComparison != 0) {
2323
        return lastComparison;
2324
      }
2325
      if (isSetSuccess()) {
2326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2327
        if (lastComparison != 0) {
2328
          return lastComparison;
2329
        }
2330
      }
2331
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2332
      if (lastComparison != 0) {
2333
        return lastComparison;
2334
      }
2335
      if (isSetLse()) {
2336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2337
        if (lastComparison != 0) {
2338
          return lastComparison;
2339
        }
2340
      }
2341
      return 0;
2342
    }
2343
 
2344
    public _Fields fieldForId(int fieldId) {
2345
      return _Fields.findByThriftId(fieldId);
2346
    }
2347
 
2348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2349
      org.apache.thrift.protocol.TField field;
668 chandransh 2350
      iprot.readStructBegin();
2351
      while (true)
2352
      {
2353
        field = iprot.readFieldBegin();
3430 rajveer 2354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2355
          break;
2356
        }
3430 rajveer 2357
        switch (field.id) {
2358
          case 0: // SUCCESS
2359
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2360
              this.success = new Provider();
2361
              this.success.read(iprot);
2362
            } else { 
2363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2364
            }
2365
            break;
2366
          case 1: // LSE
2367
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2368
              this.lse = new LogisticsServiceException();
2369
              this.lse.read(iprot);
2370
            } else { 
2371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2372
            }
2373
            break;
2374
          default:
2375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2376
        }
3430 rajveer 2377
        iprot.readFieldEnd();
668 chandransh 2378
      }
2379
      iprot.readStructEnd();
2380
      validate();
2381
    }
2382
 
3430 rajveer 2383
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2384
      oprot.writeStructBegin(STRUCT_DESC);
2385
 
2386
      if (this.isSetSuccess()) {
2387
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2388
        this.success.write(oprot);
2389
        oprot.writeFieldEnd();
2390
      } else if (this.isSetLse()) {
2391
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2392
        this.lse.write(oprot);
2393
        oprot.writeFieldEnd();
2394
      }
2395
      oprot.writeFieldStop();
2396
      oprot.writeStructEnd();
2397
    }
2398
 
2399
    @Override
2400
    public String toString() {
2401
      StringBuilder sb = new StringBuilder("getProvider_result(");
2402
      boolean first = true;
2403
 
2404
      sb.append("success:");
2405
      if (this.success == null) {
2406
        sb.append("null");
2407
      } else {
2408
        sb.append(this.success);
2409
      }
2410
      first = false;
2411
      if (!first) sb.append(", ");
2412
      sb.append("lse:");
2413
      if (this.lse == null) {
2414
        sb.append("null");
2415
      } else {
2416
        sb.append(this.lse);
2417
      }
2418
      first = false;
2419
      sb.append(")");
2420
      return sb.toString();
2421
    }
2422
 
3430 rajveer 2423
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2424
      // check for required fields
2425
    }
2426
 
3430 rajveer 2427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2428
      try {
2429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2430
      } catch (org.apache.thrift.TException te) {
2431
        throw new java.io.IOException(te);
2432
      }
2433
    }
2434
 
2435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2436
      try {
2437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2438
      } catch (org.apache.thrift.TException te) {
2439
        throw new java.io.IOException(te);
2440
      }
2441
    }
2442
 
668 chandransh 2443
  }
2444
 
3430 rajveer 2445
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2447
 
2448
 
2449
 
2450
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2451
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2452
;
2453
 
2454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2455
 
2456
      static {
2457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2458
          byName.put(field.getFieldName(), field);
2459
        }
2460
      }
2461
 
2462
      /**
2463
       * Find the _Fields constant that matches fieldId, or null if its not found.
2464
       */
2465
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2466
        switch(fieldId) {
2467
          default:
2468
            return null;
2469
        }
674 chandransh 2470
      }
2471
 
2472
      /**
2473
       * Find the _Fields constant that matches fieldId, throwing an exception
2474
       * if it is not found.
2475
       */
2476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2477
        _Fields fields = findByThriftId(fieldId);
2478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2479
        return fields;
2480
      }
2481
 
2482
      /**
2483
       * Find the _Fields constant that matches name, or null if its not found.
2484
       */
2485
      public static _Fields findByName(String name) {
2486
        return byName.get(name);
2487
      }
2488
 
2489
      private final short _thriftId;
2490
      private final String _fieldName;
2491
 
2492
      _Fields(short thriftId, String fieldName) {
2493
        _thriftId = thriftId;
2494
        _fieldName = fieldName;
2495
      }
2496
 
2497
      public short getThriftFieldId() {
2498
        return _thriftId;
2499
      }
2500
 
2501
      public String getFieldName() {
2502
        return _fieldName;
2503
      }
2504
    }
3430 rajveer 2505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2506
    static {
3430 rajveer 2507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2510
    }
2511
 
2512
    public getAllProviders_args() {
2513
    }
2514
 
2515
    /**
2516
     * Performs a deep copy on <i>other</i>.
2517
     */
2518
    public getAllProviders_args(getAllProviders_args other) {
2519
    }
2520
 
2521
    public getAllProviders_args deepCopy() {
2522
      return new getAllProviders_args(this);
2523
    }
2524
 
3430 rajveer 2525
    @Override
2526
    public void clear() {
674 chandransh 2527
    }
2528
 
2529
    public void setFieldValue(_Fields field, Object value) {
2530
      switch (field) {
2531
      }
2532
    }
2533
 
2534
    public Object getFieldValue(_Fields field) {
2535
      switch (field) {
2536
      }
2537
      throw new IllegalStateException();
2538
    }
2539
 
3430 rajveer 2540
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2541
    public boolean isSet(_Fields field) {
2542
      if (field == null) {
2543
        throw new IllegalArgumentException();
2544
      }
674 chandransh 2545
 
2546
      switch (field) {
2547
      }
2548
      throw new IllegalStateException();
2549
    }
2550
 
2551
    @Override
2552
    public boolean equals(Object that) {
2553
      if (that == null)
2554
        return false;
2555
      if (that instanceof getAllProviders_args)
2556
        return this.equals((getAllProviders_args)that);
2557
      return false;
2558
    }
2559
 
2560
    public boolean equals(getAllProviders_args that) {
2561
      if (that == null)
2562
        return false;
2563
 
2564
      return true;
2565
    }
2566
 
2567
    @Override
2568
    public int hashCode() {
2569
      return 0;
2570
    }
2571
 
2572
    public int compareTo(getAllProviders_args other) {
2573
      if (!getClass().equals(other.getClass())) {
2574
        return getClass().getName().compareTo(other.getClass().getName());
2575
      }
2576
 
2577
      int lastComparison = 0;
2578
      getAllProviders_args typedOther = (getAllProviders_args)other;
2579
 
2580
      return 0;
2581
    }
2582
 
3430 rajveer 2583
    public _Fields fieldForId(int fieldId) {
2584
      return _Fields.findByThriftId(fieldId);
2585
    }
2586
 
2587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2588
      org.apache.thrift.protocol.TField field;
674 chandransh 2589
      iprot.readStructBegin();
2590
      while (true)
2591
      {
2592
        field = iprot.readFieldBegin();
3430 rajveer 2593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2594
          break;
2595
        }
3430 rajveer 2596
        switch (field.id) {
2597
          default:
2598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2599
        }
3430 rajveer 2600
        iprot.readFieldEnd();
674 chandransh 2601
      }
2602
      iprot.readStructEnd();
2603
      validate();
2604
    }
2605
 
3430 rajveer 2606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2607
      validate();
2608
 
2609
      oprot.writeStructBegin(STRUCT_DESC);
2610
      oprot.writeFieldStop();
2611
      oprot.writeStructEnd();
2612
    }
2613
 
2614
    @Override
2615
    public String toString() {
2616
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2617
      boolean first = true;
2618
 
2619
      sb.append(")");
2620
      return sb.toString();
2621
    }
2622
 
3430 rajveer 2623
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2624
      // check for required fields
2625
    }
2626
 
3430 rajveer 2627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2628
      try {
2629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2630
      } catch (org.apache.thrift.TException te) {
2631
        throw new java.io.IOException(te);
2632
      }
2633
    }
2634
 
2635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2636
      try {
2637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2638
      } catch (org.apache.thrift.TException te) {
2639
        throw new java.io.IOException(te);
2640
      }
2641
    }
2642
 
674 chandransh 2643
  }
2644
 
3430 rajveer 2645
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2647
 
3430 rajveer 2648
    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);
2649
    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 2650
 
3430 rajveer 2651
    private List<Provider> success; // required
2652
    private LogisticsServiceException lse; // required
674 chandransh 2653
 
2654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2656
      SUCCESS((short)0, "success"),
2657
      LSE((short)1, "lse");
2658
 
2659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2660
 
2661
      static {
2662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2663
          byName.put(field.getFieldName(), field);
2664
        }
2665
      }
2666
 
2667
      /**
2668
       * Find the _Fields constant that matches fieldId, or null if its not found.
2669
       */
2670
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2671
        switch(fieldId) {
2672
          case 0: // SUCCESS
2673
            return SUCCESS;
2674
          case 1: // LSE
2675
            return LSE;
2676
          default:
2677
            return null;
2678
        }
674 chandransh 2679
      }
2680
 
2681
      /**
2682
       * Find the _Fields constant that matches fieldId, throwing an exception
2683
       * if it is not found.
2684
       */
2685
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2686
        _Fields fields = findByThriftId(fieldId);
2687
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2688
        return fields;
2689
      }
2690
 
2691
      /**
2692
       * Find the _Fields constant that matches name, or null if its not found.
2693
       */
2694
      public static _Fields findByName(String name) {
2695
        return byName.get(name);
2696
      }
2697
 
2698
      private final short _thriftId;
2699
      private final String _fieldName;
2700
 
2701
      _Fields(short thriftId, String fieldName) {
2702
        _thriftId = thriftId;
2703
        _fieldName = fieldName;
2704
      }
2705
 
2706
      public short getThriftFieldId() {
2707
        return _thriftId;
2708
      }
2709
 
2710
      public String getFieldName() {
2711
        return _fieldName;
2712
      }
2713
    }
2714
 
2715
    // isset id assignments
2716
 
3430 rajveer 2717
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2718
    static {
3430 rajveer 2719
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2720
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2721
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2722
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2723
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2725
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2726
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2727
    }
2728
 
2729
    public getAllProviders_result() {
2730
    }
2731
 
2732
    public getAllProviders_result(
2733
      List<Provider> success,
2734
      LogisticsServiceException lse)
2735
    {
2736
      this();
2737
      this.success = success;
2738
      this.lse = lse;
2739
    }
2740
 
2741
    /**
2742
     * Performs a deep copy on <i>other</i>.
2743
     */
2744
    public getAllProviders_result(getAllProviders_result other) {
2745
      if (other.isSetSuccess()) {
2746
        List<Provider> __this__success = new ArrayList<Provider>();
2747
        for (Provider other_element : other.success) {
2748
          __this__success.add(new Provider(other_element));
2749
        }
2750
        this.success = __this__success;
2751
      }
2752
      if (other.isSetLse()) {
2753
        this.lse = new LogisticsServiceException(other.lse);
2754
      }
2755
    }
2756
 
2757
    public getAllProviders_result deepCopy() {
2758
      return new getAllProviders_result(this);
2759
    }
2760
 
3430 rajveer 2761
    @Override
2762
    public void clear() {
2763
      this.success = null;
2764
      this.lse = null;
674 chandransh 2765
    }
2766
 
2767
    public int getSuccessSize() {
2768
      return (this.success == null) ? 0 : this.success.size();
2769
    }
2770
 
2771
    public java.util.Iterator<Provider> getSuccessIterator() {
2772
      return (this.success == null) ? null : this.success.iterator();
2773
    }
2774
 
2775
    public void addToSuccess(Provider elem) {
2776
      if (this.success == null) {
2777
        this.success = new ArrayList<Provider>();
2778
      }
2779
      this.success.add(elem);
2780
    }
2781
 
2782
    public List<Provider> getSuccess() {
2783
      return this.success;
2784
    }
2785
 
3430 rajveer 2786
    public void setSuccess(List<Provider> success) {
674 chandransh 2787
      this.success = success;
2788
    }
2789
 
2790
    public void unsetSuccess() {
2791
      this.success = null;
2792
    }
2793
 
3430 rajveer 2794
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2795
    public boolean isSetSuccess() {
2796
      return this.success != null;
2797
    }
2798
 
2799
    public void setSuccessIsSet(boolean value) {
2800
      if (!value) {
2801
        this.success = null;
2802
      }
2803
    }
2804
 
2805
    public LogisticsServiceException getLse() {
2806
      return this.lse;
2807
    }
2808
 
3430 rajveer 2809
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2810
      this.lse = lse;
2811
    }
2812
 
2813
    public void unsetLse() {
2814
      this.lse = null;
2815
    }
2816
 
3430 rajveer 2817
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2818
    public boolean isSetLse() {
2819
      return this.lse != null;
2820
    }
2821
 
2822
    public void setLseIsSet(boolean value) {
2823
      if (!value) {
2824
        this.lse = null;
2825
      }
2826
    }
2827
 
2828
    public void setFieldValue(_Fields field, Object value) {
2829
      switch (field) {
2830
      case SUCCESS:
2831
        if (value == null) {
2832
          unsetSuccess();
2833
        } else {
2834
          setSuccess((List<Provider>)value);
2835
        }
2836
        break;
2837
 
2838
      case LSE:
2839
        if (value == null) {
2840
          unsetLse();
2841
        } else {
2842
          setLse((LogisticsServiceException)value);
2843
        }
2844
        break;
2845
 
2846
      }
2847
    }
2848
 
2849
    public Object getFieldValue(_Fields field) {
2850
      switch (field) {
2851
      case SUCCESS:
2852
        return getSuccess();
2853
 
2854
      case LSE:
2855
        return getLse();
2856
 
2857
      }
2858
      throw new IllegalStateException();
2859
    }
2860
 
3430 rajveer 2861
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2862
    public boolean isSet(_Fields field) {
2863
      if (field == null) {
2864
        throw new IllegalArgumentException();
2865
      }
674 chandransh 2866
 
2867
      switch (field) {
2868
      case SUCCESS:
2869
        return isSetSuccess();
2870
      case LSE:
2871
        return isSetLse();
2872
      }
2873
      throw new IllegalStateException();
2874
    }
2875
 
2876
    @Override
2877
    public boolean equals(Object that) {
2878
      if (that == null)
2879
        return false;
2880
      if (that instanceof getAllProviders_result)
2881
        return this.equals((getAllProviders_result)that);
2882
      return false;
2883
    }
2884
 
2885
    public boolean equals(getAllProviders_result that) {
2886
      if (that == null)
2887
        return false;
2888
 
2889
      boolean this_present_success = true && this.isSetSuccess();
2890
      boolean that_present_success = true && that.isSetSuccess();
2891
      if (this_present_success || that_present_success) {
2892
        if (!(this_present_success && that_present_success))
2893
          return false;
2894
        if (!this.success.equals(that.success))
2895
          return false;
2896
      }
2897
 
2898
      boolean this_present_lse = true && this.isSetLse();
2899
      boolean that_present_lse = true && that.isSetLse();
2900
      if (this_present_lse || that_present_lse) {
2901
        if (!(this_present_lse && that_present_lse))
2902
          return false;
2903
        if (!this.lse.equals(that.lse))
2904
          return false;
2905
      }
2906
 
2907
      return true;
2908
    }
2909
 
2910
    @Override
2911
    public int hashCode() {
2912
      return 0;
2913
    }
2914
 
3430 rajveer 2915
    public int compareTo(getAllProviders_result other) {
2916
      if (!getClass().equals(other.getClass())) {
2917
        return getClass().getName().compareTo(other.getClass().getName());
2918
      }
2919
 
2920
      int lastComparison = 0;
2921
      getAllProviders_result typedOther = (getAllProviders_result)other;
2922
 
2923
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2924
      if (lastComparison != 0) {
2925
        return lastComparison;
2926
      }
2927
      if (isSetSuccess()) {
2928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2929
        if (lastComparison != 0) {
2930
          return lastComparison;
2931
        }
2932
      }
2933
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2934
      if (lastComparison != 0) {
2935
        return lastComparison;
2936
      }
2937
      if (isSetLse()) {
2938
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2939
        if (lastComparison != 0) {
2940
          return lastComparison;
2941
        }
2942
      }
2943
      return 0;
2944
    }
2945
 
2946
    public _Fields fieldForId(int fieldId) {
2947
      return _Fields.findByThriftId(fieldId);
2948
    }
2949
 
2950
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2951
      org.apache.thrift.protocol.TField field;
674 chandransh 2952
      iprot.readStructBegin();
2953
      while (true)
2954
      {
2955
        field = iprot.readFieldBegin();
3430 rajveer 2956
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2957
          break;
2958
        }
3430 rajveer 2959
        switch (field.id) {
2960
          case 0: // SUCCESS
2961
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2962
              {
2963
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
2964
                this.success = new ArrayList<Provider>(_list5.size);
2965
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 2966
                {
3430 rajveer 2967
                  Provider _elem7; // required
2968
                  _elem7 = new Provider();
2969
                  _elem7.read(iprot);
2970
                  this.success.add(_elem7);
674 chandransh 2971
                }
3430 rajveer 2972
                iprot.readListEnd();
674 chandransh 2973
              }
3430 rajveer 2974
            } else { 
2975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2976
            }
2977
            break;
2978
          case 1: // LSE
2979
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2980
              this.lse = new LogisticsServiceException();
2981
              this.lse.read(iprot);
2982
            } else { 
2983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2984
            }
2985
            break;
2986
          default:
2987
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2988
        }
3430 rajveer 2989
        iprot.readFieldEnd();
674 chandransh 2990
      }
2991
      iprot.readStructEnd();
2992
      validate();
2993
    }
2994
 
3430 rajveer 2995
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2996
      oprot.writeStructBegin(STRUCT_DESC);
2997
 
2998
      if (this.isSetSuccess()) {
2999
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3000
        {
3430 rajveer 3001
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 3002
          for (Provider _iter8 : this.success)
674 chandransh 3003
          {
3044 chandransh 3004
            _iter8.write(oprot);
674 chandransh 3005
          }
3006
          oprot.writeListEnd();
3007
        }
3008
        oprot.writeFieldEnd();
3009
      } else if (this.isSetLse()) {
3010
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3011
        this.lse.write(oprot);
3012
        oprot.writeFieldEnd();
3013
      }
3014
      oprot.writeFieldStop();
3015
      oprot.writeStructEnd();
3016
    }
3017
 
3018
    @Override
3019
    public String toString() {
3020
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3021
      boolean first = true;
3022
 
3023
      sb.append("success:");
3024
      if (this.success == null) {
3025
        sb.append("null");
3026
      } else {
3027
        sb.append(this.success);
3028
      }
3029
      first = false;
3030
      if (!first) sb.append(", ");
3031
      sb.append("lse:");
3032
      if (this.lse == null) {
3033
        sb.append("null");
3034
      } else {
3035
        sb.append(this.lse);
3036
      }
3037
      first = false;
3038
      sb.append(")");
3039
      return sb.toString();
3040
    }
3041
 
3430 rajveer 3042
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3043
      // check for required fields
3044
    }
3045
 
3430 rajveer 3046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3047
      try {
3048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3049
      } catch (org.apache.thrift.TException te) {
3050
        throw new java.io.IOException(te);
3051
      }
3052
    }
3053
 
3054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3055
      try {
3056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3057
      } catch (org.apache.thrift.TException te) {
3058
        throw new java.io.IOException(te);
3059
      }
3060
    }
3061
 
674 chandransh 3062
  }
3063
 
3430 rajveer 3064
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3066
 
3430 rajveer 3067
    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);
3068
    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 3069
    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 3070
 
3430 rajveer 3071
    private long itemId; // required
3072
    private String destination_pin; // required
4630 mandeep.dh 3073
    private DeliveryType type; // required
471 rajveer 3074
 
3075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3077
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3078
      DESTINATION_PIN((short)2, "destination_pin"),
3079
      /**
3080
       * 
3081
       * @see DeliveryType
3082
       */
3083
      TYPE((short)3, "type");
471 rajveer 3084
 
3085
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3086
 
3087
      static {
3088
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3089
          byName.put(field.getFieldName(), field);
3090
        }
3091
      }
3092
 
3093
      /**
3094
       * Find the _Fields constant that matches fieldId, or null if its not found.
3095
       */
3096
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3097
        switch(fieldId) {
3098
          case 1: // ITEM_ID
3099
            return ITEM_ID;
3100
          case 2: // DESTINATION_PIN
3101
            return DESTINATION_PIN;
4630 mandeep.dh 3102
          case 3: // TYPE
3103
            return TYPE;
3430 rajveer 3104
          default:
3105
            return null;
3106
        }
471 rajveer 3107
      }
3108
 
3109
      /**
3110
       * Find the _Fields constant that matches fieldId, throwing an exception
3111
       * if it is not found.
3112
       */
3113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3114
        _Fields fields = findByThriftId(fieldId);
3115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3116
        return fields;
3117
      }
3118
 
3119
      /**
3120
       * Find the _Fields constant that matches name, or null if its not found.
3121
       */
3122
      public static _Fields findByName(String name) {
3123
        return byName.get(name);
3124
      }
3125
 
3126
      private final short _thriftId;
3127
      private final String _fieldName;
3128
 
3129
      _Fields(short thriftId, String fieldName) {
3130
        _thriftId = thriftId;
3131
        _fieldName = fieldName;
3132
      }
3133
 
3134
      public short getThriftFieldId() {
3135
        return _thriftId;
3136
      }
3137
 
3138
      public String getFieldName() {
3139
        return _fieldName;
3140
      }
3141
    }
3142
 
3143
    // isset id assignments
3144
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3145
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3146
 
3430 rajveer 3147
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3148
    static {
3430 rajveer 3149
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3150
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3152
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3153
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3154
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3155
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3156
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3157
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3158
    }
3159
 
3160
    public getLogisticsEstimation_args() {
3161
    }
3162
 
3163
    public getLogisticsEstimation_args(
3164
      long itemId,
4630 mandeep.dh 3165
      String destination_pin,
3166
      DeliveryType type)
471 rajveer 3167
    {
3168
      this();
3169
      this.itemId = itemId;
3170
      setItemIdIsSet(true);
3171
      this.destination_pin = destination_pin;
4630 mandeep.dh 3172
      this.type = type;
471 rajveer 3173
    }
3174
 
3175
    /**
3176
     * Performs a deep copy on <i>other</i>.
3177
     */
3178
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3179
      __isset_bit_vector.clear();
3180
      __isset_bit_vector.or(other.__isset_bit_vector);
3181
      this.itemId = other.itemId;
3182
      if (other.isSetDestination_pin()) {
3183
        this.destination_pin = other.destination_pin;
3184
      }
4630 mandeep.dh 3185
      if (other.isSetType()) {
3186
        this.type = other.type;
3187
      }
471 rajveer 3188
    }
3189
 
3190
    public getLogisticsEstimation_args deepCopy() {
3191
      return new getLogisticsEstimation_args(this);
3192
    }
3193
 
3430 rajveer 3194
    @Override
3195
    public void clear() {
3196
      setItemIdIsSet(false);
3197
      this.itemId = 0;
3198
      this.destination_pin = null;
4630 mandeep.dh 3199
      this.type = null;
471 rajveer 3200
    }
3201
 
3202
    public long getItemId() {
3203
      return this.itemId;
3204
    }
3205
 
3430 rajveer 3206
    public void setItemId(long itemId) {
471 rajveer 3207
      this.itemId = itemId;
3208
      setItemIdIsSet(true);
3209
    }
3210
 
3211
    public void unsetItemId() {
3212
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3213
    }
3214
 
3430 rajveer 3215
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3216
    public boolean isSetItemId() {
3217
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3218
    }
3219
 
3220
    public void setItemIdIsSet(boolean value) {
3221
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3222
    }
3223
 
3224
    public String getDestination_pin() {
3225
      return this.destination_pin;
3226
    }
3227
 
3430 rajveer 3228
    public void setDestination_pin(String destination_pin) {
471 rajveer 3229
      this.destination_pin = destination_pin;
3230
    }
3231
 
3232
    public void unsetDestination_pin() {
3233
      this.destination_pin = null;
3234
    }
3235
 
3430 rajveer 3236
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3237
    public boolean isSetDestination_pin() {
3238
      return this.destination_pin != null;
3239
    }
3240
 
3241
    public void setDestination_pinIsSet(boolean value) {
3242
      if (!value) {
3243
        this.destination_pin = null;
3244
      }
3245
    }
3246
 
4630 mandeep.dh 3247
    /**
3248
     * 
3249
     * @see DeliveryType
3250
     */
3251
    public DeliveryType getType() {
3252
      return this.type;
3253
    }
3254
 
3255
    /**
3256
     * 
3257
     * @see DeliveryType
3258
     */
3259
    public void setType(DeliveryType type) {
3260
      this.type = type;
3261
    }
3262
 
3263
    public void unsetType() {
3264
      this.type = null;
3265
    }
3266
 
3267
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3268
    public boolean isSetType() {
3269
      return this.type != null;
3270
    }
3271
 
3272
    public void setTypeIsSet(boolean value) {
3273
      if (!value) {
3274
        this.type = null;
3275
      }
3276
    }
3277
 
471 rajveer 3278
    public void setFieldValue(_Fields field, Object value) {
3279
      switch (field) {
3280
      case ITEM_ID:
3281
        if (value == null) {
3282
          unsetItemId();
3283
        } else {
3284
          setItemId((Long)value);
3285
        }
3286
        break;
3287
 
3288
      case DESTINATION_PIN:
3289
        if (value == null) {
3290
          unsetDestination_pin();
3291
        } else {
3292
          setDestination_pin((String)value);
3293
        }
3294
        break;
3295
 
4630 mandeep.dh 3296
      case TYPE:
3297
        if (value == null) {
3298
          unsetType();
3299
        } else {
3300
          setType((DeliveryType)value);
3301
        }
3302
        break;
3303
 
471 rajveer 3304
      }
3305
    }
3306
 
3307
    public Object getFieldValue(_Fields field) {
3308
      switch (field) {
3309
      case ITEM_ID:
3430 rajveer 3310
        return Long.valueOf(getItemId());
471 rajveer 3311
 
3312
      case DESTINATION_PIN:
3313
        return getDestination_pin();
3314
 
4630 mandeep.dh 3315
      case TYPE:
3316
        return getType();
3317
 
471 rajveer 3318
      }
3319
      throw new IllegalStateException();
3320
    }
3321
 
3430 rajveer 3322
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3323
    public boolean isSet(_Fields field) {
3324
      if (field == null) {
3325
        throw new IllegalArgumentException();
3326
      }
471 rajveer 3327
 
3328
      switch (field) {
3329
      case ITEM_ID:
3330
        return isSetItemId();
3331
      case DESTINATION_PIN:
3332
        return isSetDestination_pin();
4630 mandeep.dh 3333
      case TYPE:
3334
        return isSetType();
471 rajveer 3335
      }
3336
      throw new IllegalStateException();
3337
    }
3338
 
3339
    @Override
3340
    public boolean equals(Object that) {
3341
      if (that == null)
3342
        return false;
3343
      if (that instanceof getLogisticsEstimation_args)
3344
        return this.equals((getLogisticsEstimation_args)that);
3345
      return false;
3346
    }
3347
 
3348
    public boolean equals(getLogisticsEstimation_args that) {
3349
      if (that == null)
3350
        return false;
3351
 
3352
      boolean this_present_itemId = true;
3353
      boolean that_present_itemId = true;
3354
      if (this_present_itemId || that_present_itemId) {
3355
        if (!(this_present_itemId && that_present_itemId))
3356
          return false;
3357
        if (this.itemId != that.itemId)
3358
          return false;
3359
      }
3360
 
3361
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3362
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3363
      if (this_present_destination_pin || that_present_destination_pin) {
3364
        if (!(this_present_destination_pin && that_present_destination_pin))
3365
          return false;
3366
        if (!this.destination_pin.equals(that.destination_pin))
3367
          return false;
3368
      }
3369
 
4630 mandeep.dh 3370
      boolean this_present_type = true && this.isSetType();
3371
      boolean that_present_type = true && that.isSetType();
3372
      if (this_present_type || that_present_type) {
3373
        if (!(this_present_type && that_present_type))
3374
          return false;
3375
        if (!this.type.equals(that.type))
3376
          return false;
3377
      }
3378
 
471 rajveer 3379
      return true;
3380
    }
3381
 
3382
    @Override
3383
    public int hashCode() {
3384
      return 0;
3385
    }
3386
 
3387
    public int compareTo(getLogisticsEstimation_args other) {
3388
      if (!getClass().equals(other.getClass())) {
3389
        return getClass().getName().compareTo(other.getClass().getName());
3390
      }
3391
 
3392
      int lastComparison = 0;
3393
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3394
 
3430 rajveer 3395
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3396
      if (lastComparison != 0) {
3397
        return lastComparison;
3398
      }
3430 rajveer 3399
      if (isSetItemId()) {
3400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3401
        if (lastComparison != 0) {
3402
          return lastComparison;
3403
        }
471 rajveer 3404
      }
3430 rajveer 3405
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3406
      if (lastComparison != 0) {
3407
        return lastComparison;
3408
      }
3430 rajveer 3409
      if (isSetDestination_pin()) {
3410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3411
        if (lastComparison != 0) {
3412
          return lastComparison;
3413
        }
471 rajveer 3414
      }
4630 mandeep.dh 3415
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3416
      if (lastComparison != 0) {
3417
        return lastComparison;
3418
      }
3419
      if (isSetType()) {
3420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3421
        if (lastComparison != 0) {
3422
          return lastComparison;
3423
        }
3424
      }
471 rajveer 3425
      return 0;
3426
    }
3427
 
3430 rajveer 3428
    public _Fields fieldForId(int fieldId) {
3429
      return _Fields.findByThriftId(fieldId);
3430
    }
3431
 
3432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3433
      org.apache.thrift.protocol.TField field;
471 rajveer 3434
      iprot.readStructBegin();
3435
      while (true)
3436
      {
3437
        field = iprot.readFieldBegin();
3430 rajveer 3438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3439
          break;
3440
        }
3430 rajveer 3441
        switch (field.id) {
3442
          case 1: // ITEM_ID
3443
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3444
              this.itemId = iprot.readI64();
3445
              setItemIdIsSet(true);
3446
            } else { 
3447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3448
            }
3449
            break;
3450
          case 2: // DESTINATION_PIN
3451
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3452
              this.destination_pin = iprot.readString();
3453
            } else { 
3454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3455
            }
3456
            break;
4630 mandeep.dh 3457
          case 3: // TYPE
3458
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3459
              this.type = DeliveryType.findByValue(iprot.readI32());
3460
            } else { 
3461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3462
            }
3463
            break;
3430 rajveer 3464
          default:
3465
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3466
        }
3430 rajveer 3467
        iprot.readFieldEnd();
471 rajveer 3468
      }
3469
      iprot.readStructEnd();
3470
      validate();
3471
    }
3472
 
3430 rajveer 3473
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3474
      validate();
3475
 
3476
      oprot.writeStructBegin(STRUCT_DESC);
3477
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3478
      oprot.writeI64(this.itemId);
3479
      oprot.writeFieldEnd();
3480
      if (this.destination_pin != null) {
3481
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3482
        oprot.writeString(this.destination_pin);
3483
        oprot.writeFieldEnd();
3484
      }
4630 mandeep.dh 3485
      if (this.type != null) {
3486
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3487
        oprot.writeI32(this.type.getValue());
3488
        oprot.writeFieldEnd();
3489
      }
471 rajveer 3490
      oprot.writeFieldStop();
3491
      oprot.writeStructEnd();
3492
    }
3493
 
3494
    @Override
3495
    public String toString() {
3496
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3497
      boolean first = true;
3498
 
3499
      sb.append("itemId:");
3500
      sb.append(this.itemId);
3501
      first = false;
3502
      if (!first) sb.append(", ");
3503
      sb.append("destination_pin:");
3504
      if (this.destination_pin == null) {
3505
        sb.append("null");
3506
      } else {
3507
        sb.append(this.destination_pin);
3508
      }
3509
      first = false;
4630 mandeep.dh 3510
      if (!first) sb.append(", ");
3511
      sb.append("type:");
3512
      if (this.type == null) {
3513
        sb.append("null");
3514
      } else {
3515
        sb.append(this.type);
3516
      }
3517
      first = false;
471 rajveer 3518
      sb.append(")");
3519
      return sb.toString();
3520
    }
3521
 
3430 rajveer 3522
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3523
      // check for required fields
3524
    }
3525
 
3430 rajveer 3526
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3527
      try {
3528
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3529
      } catch (org.apache.thrift.TException te) {
3530
        throw new java.io.IOException(te);
3531
      }
3532
    }
3533
 
3534
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3535
      try {
3536
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3537
      } catch (org.apache.thrift.TException te) {
3538
        throw new java.io.IOException(te);
3539
      }
3540
    }
3541
 
471 rajveer 3542
  }
3543
 
3430 rajveer 3544
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3545
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3546
 
3430 rajveer 3547
    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);
3548
    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 3549
 
3430 rajveer 3550
    private LogisticsInfo success; // required
3551
    private LogisticsServiceException se; // required
471 rajveer 3552
 
3553
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3554
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3555
      SUCCESS((short)0, "success"),
3556
      SE((short)1, "se");
3557
 
3558
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3559
 
3560
      static {
3561
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3562
          byName.put(field.getFieldName(), field);
3563
        }
3564
      }
3565
 
3566
      /**
3567
       * Find the _Fields constant that matches fieldId, or null if its not found.
3568
       */
3569
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3570
        switch(fieldId) {
3571
          case 0: // SUCCESS
3572
            return SUCCESS;
3573
          case 1: // SE
3574
            return SE;
3575
          default:
3576
            return null;
3577
        }
471 rajveer 3578
      }
3579
 
3580
      /**
3581
       * Find the _Fields constant that matches fieldId, throwing an exception
3582
       * if it is not found.
3583
       */
3584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3585
        _Fields fields = findByThriftId(fieldId);
3586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3587
        return fields;
3588
      }
3589
 
3590
      /**
3591
       * Find the _Fields constant that matches name, or null if its not found.
3592
       */
3593
      public static _Fields findByName(String name) {
3594
        return byName.get(name);
3595
      }
3596
 
3597
      private final short _thriftId;
3598
      private final String _fieldName;
3599
 
3600
      _Fields(short thriftId, String fieldName) {
3601
        _thriftId = thriftId;
3602
        _fieldName = fieldName;
3603
      }
3604
 
3605
      public short getThriftFieldId() {
3606
        return _thriftId;
3607
      }
3608
 
3609
      public String getFieldName() {
3610
        return _fieldName;
3611
      }
3612
    }
3613
 
3614
    // isset id assignments
3615
 
3430 rajveer 3616
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3617
    static {
3430 rajveer 3618
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3619
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3620
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3621
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3622
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3625
    }
3626
 
3627
    public getLogisticsEstimation_result() {
3628
    }
3629
 
3630
    public getLogisticsEstimation_result(
648 chandransh 3631
      LogisticsInfo success,
471 rajveer 3632
      LogisticsServiceException se)
3633
    {
3634
      this();
3635
      this.success = success;
3636
      this.se = se;
3637
    }
3638
 
3639
    /**
3640
     * Performs a deep copy on <i>other</i>.
3641
     */
3642
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3643
      if (other.isSetSuccess()) {
648 chandransh 3644
        this.success = new LogisticsInfo(other.success);
471 rajveer 3645
      }
3646
      if (other.isSetSe()) {
3647
        this.se = new LogisticsServiceException(other.se);
3648
      }
3649
    }
3650
 
3651
    public getLogisticsEstimation_result deepCopy() {
3652
      return new getLogisticsEstimation_result(this);
3653
    }
3654
 
3430 rajveer 3655
    @Override
3656
    public void clear() {
3657
      this.success = null;
3658
      this.se = null;
471 rajveer 3659
    }
3660
 
648 chandransh 3661
    public LogisticsInfo getSuccess() {
471 rajveer 3662
      return this.success;
3663
    }
3664
 
3430 rajveer 3665
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3666
      this.success = success;
3667
    }
3668
 
3669
    public void unsetSuccess() {
3670
      this.success = null;
3671
    }
3672
 
3430 rajveer 3673
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3674
    public boolean isSetSuccess() {
3675
      return this.success != null;
3676
    }
3677
 
3678
    public void setSuccessIsSet(boolean value) {
3679
      if (!value) {
3680
        this.success = null;
3681
      }
3682
    }
3683
 
3684
    public LogisticsServiceException getSe() {
3685
      return this.se;
3686
    }
3687
 
3430 rajveer 3688
    public void setSe(LogisticsServiceException se) {
471 rajveer 3689
      this.se = se;
3690
    }
3691
 
3692
    public void unsetSe() {
3693
      this.se = null;
3694
    }
3695
 
3430 rajveer 3696
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3697
    public boolean isSetSe() {
3698
      return this.se != null;
3699
    }
3700
 
3701
    public void setSeIsSet(boolean value) {
3702
      if (!value) {
3703
        this.se = null;
3704
      }
3705
    }
3706
 
3707
    public void setFieldValue(_Fields field, Object value) {
3708
      switch (field) {
3709
      case SUCCESS:
3710
        if (value == null) {
3711
          unsetSuccess();
3712
        } else {
648 chandransh 3713
          setSuccess((LogisticsInfo)value);
471 rajveer 3714
        }
3715
        break;
3716
 
3717
      case SE:
3718
        if (value == null) {
3719
          unsetSe();
3720
        } else {
3721
          setSe((LogisticsServiceException)value);
3722
        }
3723
        break;
3724
 
3725
      }
3726
    }
3727
 
3728
    public Object getFieldValue(_Fields field) {
3729
      switch (field) {
3730
      case SUCCESS:
3731
        return getSuccess();
3732
 
3733
      case SE:
3734
        return getSe();
3735
 
3736
      }
3737
      throw new IllegalStateException();
3738
    }
3739
 
3430 rajveer 3740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3741
    public boolean isSet(_Fields field) {
3742
      if (field == null) {
3743
        throw new IllegalArgumentException();
3744
      }
471 rajveer 3745
 
3746
      switch (field) {
3747
      case SUCCESS:
3748
        return isSetSuccess();
3749
      case SE:
3750
        return isSetSe();
3751
      }
3752
      throw new IllegalStateException();
3753
    }
3754
 
3755
    @Override
3756
    public boolean equals(Object that) {
3757
      if (that == null)
3758
        return false;
3759
      if (that instanceof getLogisticsEstimation_result)
3760
        return this.equals((getLogisticsEstimation_result)that);
3761
      return false;
3762
    }
3763
 
3764
    public boolean equals(getLogisticsEstimation_result that) {
3765
      if (that == null)
3766
        return false;
3767
 
3768
      boolean this_present_success = true && this.isSetSuccess();
3769
      boolean that_present_success = true && that.isSetSuccess();
3770
      if (this_present_success || that_present_success) {
3771
        if (!(this_present_success && that_present_success))
3772
          return false;
3773
        if (!this.success.equals(that.success))
3774
          return false;
3775
      }
3776
 
3777
      boolean this_present_se = true && this.isSetSe();
3778
      boolean that_present_se = true && that.isSetSe();
3779
      if (this_present_se || that_present_se) {
3780
        if (!(this_present_se && that_present_se))
3781
          return false;
3782
        if (!this.se.equals(that.se))
3783
          return false;
3784
      }
3785
 
3786
      return true;
3787
    }
3788
 
3789
    @Override
3790
    public int hashCode() {
3791
      return 0;
3792
    }
3793
 
3794
    public int compareTo(getLogisticsEstimation_result other) {
3795
      if (!getClass().equals(other.getClass())) {
3796
        return getClass().getName().compareTo(other.getClass().getName());
3797
      }
3798
 
3799
      int lastComparison = 0;
3800
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3801
 
3430 rajveer 3802
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3803
      if (lastComparison != 0) {
3804
        return lastComparison;
3805
      }
3430 rajveer 3806
      if (isSetSuccess()) {
3807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3808
        if (lastComparison != 0) {
3809
          return lastComparison;
3810
        }
471 rajveer 3811
      }
3430 rajveer 3812
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3813
      if (lastComparison != 0) {
3814
        return lastComparison;
3815
      }
3430 rajveer 3816
      if (isSetSe()) {
3817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3818
        if (lastComparison != 0) {
3819
          return lastComparison;
3820
        }
471 rajveer 3821
      }
3822
      return 0;
3823
    }
3824
 
3430 rajveer 3825
    public _Fields fieldForId(int fieldId) {
3826
      return _Fields.findByThriftId(fieldId);
3827
    }
3828
 
3829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3830
      org.apache.thrift.protocol.TField field;
471 rajveer 3831
      iprot.readStructBegin();
3832
      while (true)
3833
      {
3834
        field = iprot.readFieldBegin();
3430 rajveer 3835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3836
          break;
3837
        }
3430 rajveer 3838
        switch (field.id) {
3839
          case 0: // SUCCESS
3840
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3841
              this.success = new LogisticsInfo();
3842
              this.success.read(iprot);
3843
            } else { 
3844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3845
            }
3846
            break;
3847
          case 1: // SE
3848
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3849
              this.se = new LogisticsServiceException();
3850
              this.se.read(iprot);
3851
            } else { 
3852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3853
            }
3854
            break;
3855
          default:
3856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3857
        }
3430 rajveer 3858
        iprot.readFieldEnd();
471 rajveer 3859
      }
3860
      iprot.readStructEnd();
3861
      validate();
3862
    }
3863
 
3430 rajveer 3864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3865
      oprot.writeStructBegin(STRUCT_DESC);
3866
 
3867
      if (this.isSetSuccess()) {
3868
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3869
        this.success.write(oprot);
3870
        oprot.writeFieldEnd();
3871
      } else if (this.isSetSe()) {
3872
        oprot.writeFieldBegin(SE_FIELD_DESC);
3873
        this.se.write(oprot);
3874
        oprot.writeFieldEnd();
3875
      }
3876
      oprot.writeFieldStop();
3877
      oprot.writeStructEnd();
3878
    }
3879
 
3880
    @Override
3881
    public String toString() {
3882
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3883
      boolean first = true;
3884
 
3885
      sb.append("success:");
3886
      if (this.success == null) {
3887
        sb.append("null");
3888
      } else {
3889
        sb.append(this.success);
3890
      }
3891
      first = false;
3892
      if (!first) sb.append(", ");
3893
      sb.append("se:");
3894
      if (this.se == null) {
3895
        sb.append("null");
3896
      } else {
3897
        sb.append(this.se);
3898
      }
3899
      first = false;
3900
      sb.append(")");
3901
      return sb.toString();
3902
    }
3903
 
3430 rajveer 3904
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3905
      // check for required fields
3906
    }
3907
 
3430 rajveer 3908
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3909
      try {
3910
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3911
      } catch (org.apache.thrift.TException te) {
3912
        throw new java.io.IOException(te);
3913
      }
3914
    }
3915
 
3916
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3917
      try {
3918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3919
      } catch (org.apache.thrift.TException te) {
3920
        throw new java.io.IOException(te);
3921
      }
3922
    }
3923
 
471 rajveer 3924
  }
3925
 
7256 rajveer 3926
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
3927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
3928
 
3929
    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);
3930
    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);
3931
    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);
3932
 
3933
    private long itemId; // required
3934
    private String destination_pin; // required
3935
    private DeliveryType type; // required
3936
 
3937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3939
      ITEM_ID((short)1, "itemId"),
3940
      DESTINATION_PIN((short)2, "destination_pin"),
3941
      /**
3942
       * 
3943
       * @see DeliveryType
3944
       */
3945
      TYPE((short)3, "type");
3946
 
3947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3948
 
3949
      static {
3950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3951
          byName.put(field.getFieldName(), field);
3952
        }
3953
      }
3954
 
3955
      /**
3956
       * Find the _Fields constant that matches fieldId, or null if its not found.
3957
       */
3958
      public static _Fields findByThriftId(int fieldId) {
3959
        switch(fieldId) {
3960
          case 1: // ITEM_ID
3961
            return ITEM_ID;
3962
          case 2: // DESTINATION_PIN
3963
            return DESTINATION_PIN;
3964
          case 3: // TYPE
3965
            return TYPE;
3966
          default:
3967
            return null;
3968
        }
3969
      }
3970
 
3971
      /**
3972
       * Find the _Fields constant that matches fieldId, throwing an exception
3973
       * if it is not found.
3974
       */
3975
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3976
        _Fields fields = findByThriftId(fieldId);
3977
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3978
        return fields;
3979
      }
3980
 
3981
      /**
3982
       * Find the _Fields constant that matches name, or null if its not found.
3983
       */
3984
      public static _Fields findByName(String name) {
3985
        return byName.get(name);
3986
      }
3987
 
3988
      private final short _thriftId;
3989
      private final String _fieldName;
3990
 
3991
      _Fields(short thriftId, String fieldName) {
3992
        _thriftId = thriftId;
3993
        _fieldName = fieldName;
3994
      }
3995
 
3996
      public short getThriftFieldId() {
3997
        return _thriftId;
3998
      }
3999
 
4000
      public String getFieldName() {
4001
        return _fieldName;
4002
      }
4003
    }
4004
 
4005
    // isset id assignments
4006
    private static final int __ITEMID_ISSET_ID = 0;
4007
    private BitSet __isset_bit_vector = new BitSet(1);
4008
 
4009
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4010
    static {
4011
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4012
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4014
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4016
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4017
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4018
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4019
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4020
    }
4021
 
4022
    public getLogisticsEstimationForStore_args() {
4023
    }
4024
 
4025
    public getLogisticsEstimationForStore_args(
4026
      long itemId,
4027
      String destination_pin,
4028
      DeliveryType type)
4029
    {
4030
      this();
4031
      this.itemId = itemId;
4032
      setItemIdIsSet(true);
4033
      this.destination_pin = destination_pin;
4034
      this.type = type;
4035
    }
4036
 
4037
    /**
4038
     * Performs a deep copy on <i>other</i>.
4039
     */
4040
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4041
      __isset_bit_vector.clear();
4042
      __isset_bit_vector.or(other.__isset_bit_vector);
4043
      this.itemId = other.itemId;
4044
      if (other.isSetDestination_pin()) {
4045
        this.destination_pin = other.destination_pin;
4046
      }
4047
      if (other.isSetType()) {
4048
        this.type = other.type;
4049
      }
4050
    }
4051
 
4052
    public getLogisticsEstimationForStore_args deepCopy() {
4053
      return new getLogisticsEstimationForStore_args(this);
4054
    }
4055
 
4056
    @Override
4057
    public void clear() {
4058
      setItemIdIsSet(false);
4059
      this.itemId = 0;
4060
      this.destination_pin = null;
4061
      this.type = null;
4062
    }
4063
 
4064
    public long getItemId() {
4065
      return this.itemId;
4066
    }
4067
 
4068
    public void setItemId(long itemId) {
4069
      this.itemId = itemId;
4070
      setItemIdIsSet(true);
4071
    }
4072
 
4073
    public void unsetItemId() {
4074
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4075
    }
4076
 
4077
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4078
    public boolean isSetItemId() {
4079
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4080
    }
4081
 
4082
    public void setItemIdIsSet(boolean value) {
4083
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4084
    }
4085
 
4086
    public String getDestination_pin() {
4087
      return this.destination_pin;
4088
    }
4089
 
4090
    public void setDestination_pin(String destination_pin) {
4091
      this.destination_pin = destination_pin;
4092
    }
4093
 
4094
    public void unsetDestination_pin() {
4095
      this.destination_pin = null;
4096
    }
4097
 
4098
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4099
    public boolean isSetDestination_pin() {
4100
      return this.destination_pin != null;
4101
    }
4102
 
4103
    public void setDestination_pinIsSet(boolean value) {
4104
      if (!value) {
4105
        this.destination_pin = null;
4106
      }
4107
    }
4108
 
4109
    /**
4110
     * 
4111
     * @see DeliveryType
4112
     */
4113
    public DeliveryType getType() {
4114
      return this.type;
4115
    }
4116
 
4117
    /**
4118
     * 
4119
     * @see DeliveryType
4120
     */
4121
    public void setType(DeliveryType type) {
4122
      this.type = type;
4123
    }
4124
 
4125
    public void unsetType() {
4126
      this.type = null;
4127
    }
4128
 
4129
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4130
    public boolean isSetType() {
4131
      return this.type != null;
4132
    }
4133
 
4134
    public void setTypeIsSet(boolean value) {
4135
      if (!value) {
4136
        this.type = null;
4137
      }
4138
    }
4139
 
4140
    public void setFieldValue(_Fields field, Object value) {
4141
      switch (field) {
4142
      case ITEM_ID:
4143
        if (value == null) {
4144
          unsetItemId();
4145
        } else {
4146
          setItemId((Long)value);
4147
        }
4148
        break;
4149
 
4150
      case DESTINATION_PIN:
4151
        if (value == null) {
4152
          unsetDestination_pin();
4153
        } else {
4154
          setDestination_pin((String)value);
4155
        }
4156
        break;
4157
 
4158
      case TYPE:
4159
        if (value == null) {
4160
          unsetType();
4161
        } else {
4162
          setType((DeliveryType)value);
4163
        }
4164
        break;
4165
 
4166
      }
4167
    }
4168
 
4169
    public Object getFieldValue(_Fields field) {
4170
      switch (field) {
4171
      case ITEM_ID:
4172
        return Long.valueOf(getItemId());
4173
 
4174
      case DESTINATION_PIN:
4175
        return getDestination_pin();
4176
 
4177
      case TYPE:
4178
        return getType();
4179
 
4180
      }
4181
      throw new IllegalStateException();
4182
    }
4183
 
4184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4185
    public boolean isSet(_Fields field) {
4186
      if (field == null) {
4187
        throw new IllegalArgumentException();
4188
      }
4189
 
4190
      switch (field) {
4191
      case ITEM_ID:
4192
        return isSetItemId();
4193
      case DESTINATION_PIN:
4194
        return isSetDestination_pin();
4195
      case TYPE:
4196
        return isSetType();
4197
      }
4198
      throw new IllegalStateException();
4199
    }
4200
 
4201
    @Override
4202
    public boolean equals(Object that) {
4203
      if (that == null)
4204
        return false;
4205
      if (that instanceof getLogisticsEstimationForStore_args)
4206
        return this.equals((getLogisticsEstimationForStore_args)that);
4207
      return false;
4208
    }
4209
 
4210
    public boolean equals(getLogisticsEstimationForStore_args that) {
4211
      if (that == null)
4212
        return false;
4213
 
4214
      boolean this_present_itemId = true;
4215
      boolean that_present_itemId = true;
4216
      if (this_present_itemId || that_present_itemId) {
4217
        if (!(this_present_itemId && that_present_itemId))
4218
          return false;
4219
        if (this.itemId != that.itemId)
4220
          return false;
4221
      }
4222
 
4223
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4224
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4225
      if (this_present_destination_pin || that_present_destination_pin) {
4226
        if (!(this_present_destination_pin && that_present_destination_pin))
4227
          return false;
4228
        if (!this.destination_pin.equals(that.destination_pin))
4229
          return false;
4230
      }
4231
 
4232
      boolean this_present_type = true && this.isSetType();
4233
      boolean that_present_type = true && that.isSetType();
4234
      if (this_present_type || that_present_type) {
4235
        if (!(this_present_type && that_present_type))
4236
          return false;
4237
        if (!this.type.equals(that.type))
4238
          return false;
4239
      }
4240
 
4241
      return true;
4242
    }
4243
 
4244
    @Override
4245
    public int hashCode() {
4246
      return 0;
4247
    }
4248
 
4249
    public int compareTo(getLogisticsEstimationForStore_args other) {
4250
      if (!getClass().equals(other.getClass())) {
4251
        return getClass().getName().compareTo(other.getClass().getName());
4252
      }
4253
 
4254
      int lastComparison = 0;
4255
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4256
 
4257
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4258
      if (lastComparison != 0) {
4259
        return lastComparison;
4260
      }
4261
      if (isSetItemId()) {
4262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4263
        if (lastComparison != 0) {
4264
          return lastComparison;
4265
        }
4266
      }
4267
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4268
      if (lastComparison != 0) {
4269
        return lastComparison;
4270
      }
4271
      if (isSetDestination_pin()) {
4272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4273
        if (lastComparison != 0) {
4274
          return lastComparison;
4275
        }
4276
      }
4277
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4278
      if (lastComparison != 0) {
4279
        return lastComparison;
4280
      }
4281
      if (isSetType()) {
4282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4283
        if (lastComparison != 0) {
4284
          return lastComparison;
4285
        }
4286
      }
4287
      return 0;
4288
    }
4289
 
4290
    public _Fields fieldForId(int fieldId) {
4291
      return _Fields.findByThriftId(fieldId);
4292
    }
4293
 
4294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4295
      org.apache.thrift.protocol.TField field;
4296
      iprot.readStructBegin();
4297
      while (true)
4298
      {
4299
        field = iprot.readFieldBegin();
4300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4301
          break;
4302
        }
4303
        switch (field.id) {
4304
          case 1: // ITEM_ID
4305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4306
              this.itemId = iprot.readI64();
4307
              setItemIdIsSet(true);
4308
            } else { 
4309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4310
            }
4311
            break;
4312
          case 2: // DESTINATION_PIN
4313
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4314
              this.destination_pin = iprot.readString();
4315
            } else { 
4316
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4317
            }
4318
            break;
4319
          case 3: // TYPE
4320
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4321
              this.type = DeliveryType.findByValue(iprot.readI32());
4322
            } else { 
4323
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4324
            }
4325
            break;
4326
          default:
4327
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4328
        }
4329
        iprot.readFieldEnd();
4330
      }
4331
      iprot.readStructEnd();
4332
      validate();
4333
    }
4334
 
4335
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4336
      validate();
4337
 
4338
      oprot.writeStructBegin(STRUCT_DESC);
4339
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4340
      oprot.writeI64(this.itemId);
4341
      oprot.writeFieldEnd();
4342
      if (this.destination_pin != null) {
4343
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4344
        oprot.writeString(this.destination_pin);
4345
        oprot.writeFieldEnd();
4346
      }
4347
      if (this.type != null) {
4348
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4349
        oprot.writeI32(this.type.getValue());
4350
        oprot.writeFieldEnd();
4351
      }
4352
      oprot.writeFieldStop();
4353
      oprot.writeStructEnd();
4354
    }
4355
 
4356
    @Override
4357
    public String toString() {
4358
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4359
      boolean first = true;
4360
 
4361
      sb.append("itemId:");
4362
      sb.append(this.itemId);
4363
      first = false;
4364
      if (!first) sb.append(", ");
4365
      sb.append("destination_pin:");
4366
      if (this.destination_pin == null) {
4367
        sb.append("null");
4368
      } else {
4369
        sb.append(this.destination_pin);
4370
      }
4371
      first = false;
4372
      if (!first) sb.append(", ");
4373
      sb.append("type:");
4374
      if (this.type == null) {
4375
        sb.append("null");
4376
      } else {
4377
        sb.append(this.type);
4378
      }
4379
      first = false;
4380
      sb.append(")");
4381
      return sb.toString();
4382
    }
4383
 
4384
    public void validate() throws org.apache.thrift.TException {
4385
      // check for required fields
4386
    }
4387
 
4388
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4389
      try {
4390
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4391
      } catch (org.apache.thrift.TException te) {
4392
        throw new java.io.IOException(te);
4393
      }
4394
    }
4395
 
4396
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4397
      try {
4398
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4399
        __isset_bit_vector = new BitSet(1);
4400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4401
      } catch (org.apache.thrift.TException te) {
4402
        throw new java.io.IOException(te);
4403
      }
4404
    }
4405
 
4406
  }
4407
 
4408
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4410
 
4411
    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);
4412
    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);
4413
 
4414
    private LogisticsInfo success; // required
4415
    private LogisticsServiceException se; // required
4416
 
4417
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4418
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4419
      SUCCESS((short)0, "success"),
4420
      SE((short)1, "se");
4421
 
4422
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4423
 
4424
      static {
4425
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4426
          byName.put(field.getFieldName(), field);
4427
        }
4428
      }
4429
 
4430
      /**
4431
       * Find the _Fields constant that matches fieldId, or null if its not found.
4432
       */
4433
      public static _Fields findByThriftId(int fieldId) {
4434
        switch(fieldId) {
4435
          case 0: // SUCCESS
4436
            return SUCCESS;
4437
          case 1: // SE
4438
            return SE;
4439
          default:
4440
            return null;
4441
        }
4442
      }
4443
 
4444
      /**
4445
       * Find the _Fields constant that matches fieldId, throwing an exception
4446
       * if it is not found.
4447
       */
4448
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4449
        _Fields fields = findByThriftId(fieldId);
4450
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4451
        return fields;
4452
      }
4453
 
4454
      /**
4455
       * Find the _Fields constant that matches name, or null if its not found.
4456
       */
4457
      public static _Fields findByName(String name) {
4458
        return byName.get(name);
4459
      }
4460
 
4461
      private final short _thriftId;
4462
      private final String _fieldName;
4463
 
4464
      _Fields(short thriftId, String fieldName) {
4465
        _thriftId = thriftId;
4466
        _fieldName = fieldName;
4467
      }
4468
 
4469
      public short getThriftFieldId() {
4470
        return _thriftId;
4471
      }
4472
 
4473
      public String getFieldName() {
4474
        return _fieldName;
4475
      }
4476
    }
4477
 
4478
    // isset id assignments
4479
 
4480
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4481
    static {
4482
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4483
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4484
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4485
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4487
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4488
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4489
    }
4490
 
4491
    public getLogisticsEstimationForStore_result() {
4492
    }
4493
 
4494
    public getLogisticsEstimationForStore_result(
4495
      LogisticsInfo success,
4496
      LogisticsServiceException se)
4497
    {
4498
      this();
4499
      this.success = success;
4500
      this.se = se;
4501
    }
4502
 
4503
    /**
4504
     * Performs a deep copy on <i>other</i>.
4505
     */
4506
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4507
      if (other.isSetSuccess()) {
4508
        this.success = new LogisticsInfo(other.success);
4509
      }
4510
      if (other.isSetSe()) {
4511
        this.se = new LogisticsServiceException(other.se);
4512
      }
4513
    }
4514
 
4515
    public getLogisticsEstimationForStore_result deepCopy() {
4516
      return new getLogisticsEstimationForStore_result(this);
4517
    }
4518
 
4519
    @Override
4520
    public void clear() {
4521
      this.success = null;
4522
      this.se = null;
4523
    }
4524
 
4525
    public LogisticsInfo getSuccess() {
4526
      return this.success;
4527
    }
4528
 
4529
    public void setSuccess(LogisticsInfo success) {
4530
      this.success = success;
4531
    }
4532
 
4533
    public void unsetSuccess() {
4534
      this.success = null;
4535
    }
4536
 
4537
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4538
    public boolean isSetSuccess() {
4539
      return this.success != null;
4540
    }
4541
 
4542
    public void setSuccessIsSet(boolean value) {
4543
      if (!value) {
4544
        this.success = null;
4545
      }
4546
    }
4547
 
4548
    public LogisticsServiceException getSe() {
4549
      return this.se;
4550
    }
4551
 
4552
    public void setSe(LogisticsServiceException se) {
4553
      this.se = se;
4554
    }
4555
 
4556
    public void unsetSe() {
4557
      this.se = null;
4558
    }
4559
 
4560
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4561
    public boolean isSetSe() {
4562
      return this.se != null;
4563
    }
4564
 
4565
    public void setSeIsSet(boolean value) {
4566
      if (!value) {
4567
        this.se = null;
4568
      }
4569
    }
4570
 
4571
    public void setFieldValue(_Fields field, Object value) {
4572
      switch (field) {
4573
      case SUCCESS:
4574
        if (value == null) {
4575
          unsetSuccess();
4576
        } else {
4577
          setSuccess((LogisticsInfo)value);
4578
        }
4579
        break;
4580
 
4581
      case SE:
4582
        if (value == null) {
4583
          unsetSe();
4584
        } else {
4585
          setSe((LogisticsServiceException)value);
4586
        }
4587
        break;
4588
 
4589
      }
4590
    }
4591
 
4592
    public Object getFieldValue(_Fields field) {
4593
      switch (field) {
4594
      case SUCCESS:
4595
        return getSuccess();
4596
 
4597
      case SE:
4598
        return getSe();
4599
 
4600
      }
4601
      throw new IllegalStateException();
4602
    }
4603
 
4604
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4605
    public boolean isSet(_Fields field) {
4606
      if (field == null) {
4607
        throw new IllegalArgumentException();
4608
      }
4609
 
4610
      switch (field) {
4611
      case SUCCESS:
4612
        return isSetSuccess();
4613
      case SE:
4614
        return isSetSe();
4615
      }
4616
      throw new IllegalStateException();
4617
    }
4618
 
4619
    @Override
4620
    public boolean equals(Object that) {
4621
      if (that == null)
4622
        return false;
4623
      if (that instanceof getLogisticsEstimationForStore_result)
4624
        return this.equals((getLogisticsEstimationForStore_result)that);
4625
      return false;
4626
    }
4627
 
4628
    public boolean equals(getLogisticsEstimationForStore_result that) {
4629
      if (that == null)
4630
        return false;
4631
 
4632
      boolean this_present_success = true && this.isSetSuccess();
4633
      boolean that_present_success = true && that.isSetSuccess();
4634
      if (this_present_success || that_present_success) {
4635
        if (!(this_present_success && that_present_success))
4636
          return false;
4637
        if (!this.success.equals(that.success))
4638
          return false;
4639
      }
4640
 
4641
      boolean this_present_se = true && this.isSetSe();
4642
      boolean that_present_se = true && that.isSetSe();
4643
      if (this_present_se || that_present_se) {
4644
        if (!(this_present_se && that_present_se))
4645
          return false;
4646
        if (!this.se.equals(that.se))
4647
          return false;
4648
      }
4649
 
4650
      return true;
4651
    }
4652
 
4653
    @Override
4654
    public int hashCode() {
4655
      return 0;
4656
    }
4657
 
4658
    public int compareTo(getLogisticsEstimationForStore_result other) {
4659
      if (!getClass().equals(other.getClass())) {
4660
        return getClass().getName().compareTo(other.getClass().getName());
4661
      }
4662
 
4663
      int lastComparison = 0;
4664
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
4665
 
4666
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4667
      if (lastComparison != 0) {
4668
        return lastComparison;
4669
      }
4670
      if (isSetSuccess()) {
4671
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4672
        if (lastComparison != 0) {
4673
          return lastComparison;
4674
        }
4675
      }
4676
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4677
      if (lastComparison != 0) {
4678
        return lastComparison;
4679
      }
4680
      if (isSetSe()) {
4681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4682
        if (lastComparison != 0) {
4683
          return lastComparison;
4684
        }
4685
      }
4686
      return 0;
4687
    }
4688
 
4689
    public _Fields fieldForId(int fieldId) {
4690
      return _Fields.findByThriftId(fieldId);
4691
    }
4692
 
4693
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4694
      org.apache.thrift.protocol.TField field;
4695
      iprot.readStructBegin();
4696
      while (true)
4697
      {
4698
        field = iprot.readFieldBegin();
4699
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4700
          break;
4701
        }
4702
        switch (field.id) {
4703
          case 0: // SUCCESS
4704
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4705
              this.success = new LogisticsInfo();
4706
              this.success.read(iprot);
4707
            } else { 
4708
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4709
            }
4710
            break;
4711
          case 1: // SE
4712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4713
              this.se = new LogisticsServiceException();
4714
              this.se.read(iprot);
4715
            } else { 
4716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4717
            }
4718
            break;
4719
          default:
4720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4721
        }
4722
        iprot.readFieldEnd();
4723
      }
4724
      iprot.readStructEnd();
4725
      validate();
4726
    }
4727
 
4728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4729
      oprot.writeStructBegin(STRUCT_DESC);
4730
 
4731
      if (this.isSetSuccess()) {
4732
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4733
        this.success.write(oprot);
4734
        oprot.writeFieldEnd();
4735
      } else if (this.isSetSe()) {
4736
        oprot.writeFieldBegin(SE_FIELD_DESC);
4737
        this.se.write(oprot);
4738
        oprot.writeFieldEnd();
4739
      }
4740
      oprot.writeFieldStop();
4741
      oprot.writeStructEnd();
4742
    }
4743
 
4744
    @Override
4745
    public String toString() {
4746
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
4747
      boolean first = true;
4748
 
4749
      sb.append("success:");
4750
      if (this.success == null) {
4751
        sb.append("null");
4752
      } else {
4753
        sb.append(this.success);
4754
      }
4755
      first = false;
4756
      if (!first) sb.append(", ");
4757
      sb.append("se:");
4758
      if (this.se == null) {
4759
        sb.append("null");
4760
      } else {
4761
        sb.append(this.se);
4762
      }
4763
      first = false;
4764
      sb.append(")");
4765
      return sb.toString();
4766
    }
4767
 
4768
    public void validate() throws org.apache.thrift.TException {
4769
      // check for required fields
4770
    }
4771
 
4772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4773
      try {
4774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4775
      } catch (org.apache.thrift.TException te) {
4776
        throw new java.io.IOException(te);
4777
      }
4778
    }
4779
 
4780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4781
      try {
4782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4783
      } catch (org.apache.thrift.TException te) {
4784
        throw new java.io.IOException(te);
4785
      }
4786
    }
4787
 
4788
  }
4789
 
3430 rajveer 4790
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
4791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 4792
 
3430 rajveer 4793
    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);
4794
    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);
4795
    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 4796
    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 4797
 
3430 rajveer 4798
    private String destination_pincode; // required
4799
    private long item_id; // required
4800
    private DeliveryType type; // required
5766 rajveer 4801
    private PickUpType pickUp; // required
471 rajveer 4802
 
4803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4804
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4805
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 4806
      ITEM_ID((short)2, "item_id"),
4807
      /**
4808
       * 
4809
       * @see DeliveryType
4810
       */
5766 rajveer 4811
      TYPE((short)3, "type"),
4812
      /**
4813
       * 
4814
       * @see PickUpType
4815
       */
4816
      PICK_UP((short)4, "pickUp");
471 rajveer 4817
 
4818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4819
 
4820
      static {
4821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4822
          byName.put(field.getFieldName(), field);
4823
        }
4824
      }
4825
 
4826
      /**
4827
       * Find the _Fields constant that matches fieldId, or null if its not found.
4828
       */
4829
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4830
        switch(fieldId) {
4831
          case 1: // DESTINATION_PINCODE
4832
            return DESTINATION_PINCODE;
4833
          case 2: // ITEM_ID
4834
            return ITEM_ID;
4835
          case 3: // TYPE
4836
            return TYPE;
5766 rajveer 4837
          case 4: // PICK_UP
4838
            return PICK_UP;
3430 rajveer 4839
          default:
4840
            return null;
4841
        }
471 rajveer 4842
      }
4843
 
4844
      /**
4845
       * Find the _Fields constant that matches fieldId, throwing an exception
4846
       * if it is not found.
4847
       */
4848
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4849
        _Fields fields = findByThriftId(fieldId);
4850
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4851
        return fields;
4852
      }
4853
 
4854
      /**
4855
       * Find the _Fields constant that matches name, or null if its not found.
4856
       */
4857
      public static _Fields findByName(String name) {
4858
        return byName.get(name);
4859
      }
4860
 
4861
      private final short _thriftId;
4862
      private final String _fieldName;
4863
 
4864
      _Fields(short thriftId, String fieldName) {
4865
        _thriftId = thriftId;
4866
        _fieldName = fieldName;
4867
      }
4868
 
4869
      public short getThriftFieldId() {
4870
        return _thriftId;
4871
      }
4872
 
4873
      public String getFieldName() {
4874
        return _fieldName;
4875
      }
4876
    }
4877
 
4878
    // isset id assignments
715 rajveer 4879
    private static final int __ITEM_ID_ISSET_ID = 0;
4880
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 4881
 
3430 rajveer 4882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 4883
    static {
3430 rajveer 4884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4885
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4886
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4887
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4888
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4889
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4890
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 4891
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4892
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 4893
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4894
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 4895
    }
4896
 
648 chandransh 4897
    public getLogisticsInfo_args() {
477 rajveer 4898
    }
4899
 
648 chandransh 4900
    public getLogisticsInfo_args(
4901
      String destination_pincode,
3044 chandransh 4902
      long item_id,
5766 rajveer 4903
      DeliveryType type,
4904
      PickUpType pickUp)
477 rajveer 4905
    {
4906
      this();
648 chandransh 4907
      this.destination_pincode = destination_pincode;
4908
      this.item_id = item_id;
715 rajveer 4909
      setItem_idIsSet(true);
3044 chandransh 4910
      this.type = type;
5766 rajveer 4911
      this.pickUp = pickUp;
477 rajveer 4912
    }
4913
 
4914
    /**
4915
     * Performs a deep copy on <i>other</i>.
4916
     */
648 chandransh 4917
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 4918
      __isset_bit_vector.clear();
4919
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4920
      if (other.isSetDestination_pincode()) {
4921
        this.destination_pincode = other.destination_pincode;
477 rajveer 4922
      }
715 rajveer 4923
      this.item_id = other.item_id;
3044 chandransh 4924
      if (other.isSetType()) {
4925
        this.type = other.type;
4926
      }
5766 rajveer 4927
      if (other.isSetPickUp()) {
4928
        this.pickUp = other.pickUp;
4929
      }
477 rajveer 4930
    }
4931
 
648 chandransh 4932
    public getLogisticsInfo_args deepCopy() {
4933
      return new getLogisticsInfo_args(this);
477 rajveer 4934
    }
4935
 
3430 rajveer 4936
    @Override
4937
    public void clear() {
4938
      this.destination_pincode = null;
4939
      setItem_idIsSet(false);
4940
      this.item_id = 0;
4941
      this.type = null;
5766 rajveer 4942
      this.pickUp = null;
477 rajveer 4943
    }
4944
 
648 chandransh 4945
    public String getDestination_pincode() {
4946
      return this.destination_pincode;
477 rajveer 4947
    }
4948
 
3430 rajveer 4949
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 4950
      this.destination_pincode = destination_pincode;
477 rajveer 4951
    }
4952
 
648 chandransh 4953
    public void unsetDestination_pincode() {
4954
      this.destination_pincode = null;
477 rajveer 4955
    }
4956
 
3430 rajveer 4957
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 4958
    public boolean isSetDestination_pincode() {
4959
      return this.destination_pincode != null;
477 rajveer 4960
    }
4961
 
648 chandransh 4962
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 4963
      if (!value) {
648 chandransh 4964
        this.destination_pincode = null;
477 rajveer 4965
      }
4966
    }
4967
 
715 rajveer 4968
    public long getItem_id() {
648 chandransh 4969
      return this.item_id;
477 rajveer 4970
    }
4971
 
3430 rajveer 4972
    public void setItem_id(long item_id) {
648 chandransh 4973
      this.item_id = item_id;
715 rajveer 4974
      setItem_idIsSet(true);
477 rajveer 4975
    }
4976
 
648 chandransh 4977
    public void unsetItem_id() {
715 rajveer 4978
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 4979
    }
4980
 
3430 rajveer 4981
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 4982
    public boolean isSetItem_id() {
715 rajveer 4983
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 4984
    }
4985
 
648 chandransh 4986
    public void setItem_idIsSet(boolean value) {
715 rajveer 4987
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 4988
    }
4989
 
3044 chandransh 4990
    /**
4991
     * 
4992
     * @see DeliveryType
4993
     */
4994
    public DeliveryType getType() {
4995
      return this.type;
4996
    }
4997
 
4998
    /**
4999
     * 
5000
     * @see DeliveryType
5001
     */
3430 rajveer 5002
    public void setType(DeliveryType type) {
3044 chandransh 5003
      this.type = type;
5004
    }
5005
 
5006
    public void unsetType() {
5007
      this.type = null;
5008
    }
5009
 
3430 rajveer 5010
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5011
    public boolean isSetType() {
5012
      return this.type != null;
5013
    }
5014
 
5015
    public void setTypeIsSet(boolean value) {
5016
      if (!value) {
5017
        this.type = null;
5018
      }
5019
    }
5020
 
5766 rajveer 5021
    /**
5022
     * 
5023
     * @see PickUpType
5024
     */
5025
    public PickUpType getPickUp() {
5026
      return this.pickUp;
5027
    }
5028
 
5029
    /**
5030
     * 
5031
     * @see PickUpType
5032
     */
5033
    public void setPickUp(PickUpType pickUp) {
5034
      this.pickUp = pickUp;
5035
    }
5036
 
5037
    public void unsetPickUp() {
5038
      this.pickUp = null;
5039
    }
5040
 
5041
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5042
    public boolean isSetPickUp() {
5043
      return this.pickUp != null;
5044
    }
5045
 
5046
    public void setPickUpIsSet(boolean value) {
5047
      if (!value) {
5048
        this.pickUp = null;
5049
      }
5050
    }
5051
 
477 rajveer 5052
    public void setFieldValue(_Fields field, Object value) {
5053
      switch (field) {
648 chandransh 5054
      case DESTINATION_PINCODE:
477 rajveer 5055
        if (value == null) {
648 chandransh 5056
          unsetDestination_pincode();
477 rajveer 5057
        } else {
648 chandransh 5058
          setDestination_pincode((String)value);
477 rajveer 5059
        }
5060
        break;
5061
 
648 chandransh 5062
      case ITEM_ID:
477 rajveer 5063
        if (value == null) {
648 chandransh 5064
          unsetItem_id();
477 rajveer 5065
        } else {
715 rajveer 5066
          setItem_id((Long)value);
477 rajveer 5067
        }
5068
        break;
5069
 
3044 chandransh 5070
      case TYPE:
5071
        if (value == null) {
5072
          unsetType();
5073
        } else {
5074
          setType((DeliveryType)value);
5075
        }
5076
        break;
5077
 
5766 rajveer 5078
      case PICK_UP:
5079
        if (value == null) {
5080
          unsetPickUp();
5081
        } else {
5082
          setPickUp((PickUpType)value);
5083
        }
5084
        break;
5085
 
477 rajveer 5086
      }
5087
    }
5088
 
5089
    public Object getFieldValue(_Fields field) {
5090
      switch (field) {
648 chandransh 5091
      case DESTINATION_PINCODE:
5092
        return getDestination_pincode();
477 rajveer 5093
 
648 chandransh 5094
      case ITEM_ID:
3430 rajveer 5095
        return Long.valueOf(getItem_id());
477 rajveer 5096
 
3044 chandransh 5097
      case TYPE:
5098
        return getType();
5099
 
5766 rajveer 5100
      case PICK_UP:
5101
        return getPickUp();
5102
 
477 rajveer 5103
      }
5104
      throw new IllegalStateException();
5105
    }
5106
 
3430 rajveer 5107
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5108
    public boolean isSet(_Fields field) {
5109
      if (field == null) {
5110
        throw new IllegalArgumentException();
5111
      }
477 rajveer 5112
 
5113
      switch (field) {
648 chandransh 5114
      case DESTINATION_PINCODE:
5115
        return isSetDestination_pincode();
5116
      case ITEM_ID:
5117
        return isSetItem_id();
3044 chandransh 5118
      case TYPE:
5119
        return isSetType();
5766 rajveer 5120
      case PICK_UP:
5121
        return isSetPickUp();
477 rajveer 5122
      }
5123
      throw new IllegalStateException();
5124
    }
5125
 
5126
    @Override
5127
    public boolean equals(Object that) {
5128
      if (that == null)
5129
        return false;
648 chandransh 5130
      if (that instanceof getLogisticsInfo_args)
5131
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5132
      return false;
5133
    }
5134
 
648 chandransh 5135
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5136
      if (that == null)
5137
        return false;
5138
 
648 chandransh 5139
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5140
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5141
      if (this_present_destination_pincode || that_present_destination_pincode) {
5142
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5143
          return false;
648 chandransh 5144
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5145
          return false;
5146
      }
5147
 
715 rajveer 5148
      boolean this_present_item_id = true;
5149
      boolean that_present_item_id = true;
648 chandransh 5150
      if (this_present_item_id || that_present_item_id) {
5151
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5152
          return false;
715 rajveer 5153
        if (this.item_id != that.item_id)
477 rajveer 5154
          return false;
5155
      }
5156
 
3044 chandransh 5157
      boolean this_present_type = true && this.isSetType();
5158
      boolean that_present_type = true && that.isSetType();
5159
      if (this_present_type || that_present_type) {
5160
        if (!(this_present_type && that_present_type))
5161
          return false;
5162
        if (!this.type.equals(that.type))
5163
          return false;
5164
      }
5165
 
5766 rajveer 5166
      boolean this_present_pickUp = true && this.isSetPickUp();
5167
      boolean that_present_pickUp = true && that.isSetPickUp();
5168
      if (this_present_pickUp || that_present_pickUp) {
5169
        if (!(this_present_pickUp && that_present_pickUp))
5170
          return false;
5171
        if (!this.pickUp.equals(that.pickUp))
5172
          return false;
5173
      }
5174
 
477 rajveer 5175
      return true;
5176
    }
5177
 
5178
    @Override
5179
    public int hashCode() {
5180
      return 0;
5181
    }
5182
 
648 chandransh 5183
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5184
      if (!getClass().equals(other.getClass())) {
5185
        return getClass().getName().compareTo(other.getClass().getName());
5186
      }
5187
 
5188
      int lastComparison = 0;
648 chandransh 5189
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5190
 
3430 rajveer 5191
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5192
      if (lastComparison != 0) {
5193
        return lastComparison;
5194
      }
3430 rajveer 5195
      if (isSetDestination_pincode()) {
5196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5197
        if (lastComparison != 0) {
5198
          return lastComparison;
5199
        }
477 rajveer 5200
      }
3430 rajveer 5201
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5202
      if (lastComparison != 0) {
5203
        return lastComparison;
5204
      }
3430 rajveer 5205
      if (isSetItem_id()) {
5206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5207
        if (lastComparison != 0) {
5208
          return lastComparison;
5209
        }
477 rajveer 5210
      }
3430 rajveer 5211
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5212
      if (lastComparison != 0) {
5213
        return lastComparison;
5214
      }
3430 rajveer 5215
      if (isSetType()) {
5216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5217
        if (lastComparison != 0) {
5218
          return lastComparison;
5219
        }
3044 chandransh 5220
      }
5766 rajveer 5221
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5222
      if (lastComparison != 0) {
5223
        return lastComparison;
5224
      }
5225
      if (isSetPickUp()) {
5226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5227
        if (lastComparison != 0) {
5228
          return lastComparison;
5229
        }
5230
      }
477 rajveer 5231
      return 0;
5232
    }
5233
 
3430 rajveer 5234
    public _Fields fieldForId(int fieldId) {
5235
      return _Fields.findByThriftId(fieldId);
5236
    }
5237
 
5238
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5239
      org.apache.thrift.protocol.TField field;
477 rajveer 5240
      iprot.readStructBegin();
5241
      while (true)
5242
      {
5243
        field = iprot.readFieldBegin();
3430 rajveer 5244
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5245
          break;
5246
        }
3430 rajveer 5247
        switch (field.id) {
5248
          case 1: // DESTINATION_PINCODE
5249
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5250
              this.destination_pincode = iprot.readString();
5251
            } else { 
5252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5253
            }
5254
            break;
5255
          case 2: // ITEM_ID
5256
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5257
              this.item_id = iprot.readI64();
5258
              setItem_idIsSet(true);
5259
            } else { 
5260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5261
            }
5262
            break;
5263
          case 3: // TYPE
5264
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5265
              this.type = DeliveryType.findByValue(iprot.readI32());
5266
            } else { 
5267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5268
            }
5269
            break;
5766 rajveer 5270
          case 4: // PICK_UP
5271
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5272
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5273
            } else { 
5274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5275
            }
5276
            break;
3430 rajveer 5277
          default:
5278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5279
        }
3430 rajveer 5280
        iprot.readFieldEnd();
477 rajveer 5281
      }
5282
      iprot.readStructEnd();
5283
      validate();
5284
    }
5285
 
3430 rajveer 5286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5287
      validate();
5288
 
5289
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5290
      if (this.destination_pincode != null) {
5291
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5292
        oprot.writeString(this.destination_pincode);
477 rajveer 5293
        oprot.writeFieldEnd();
5294
      }
715 rajveer 5295
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5296
      oprot.writeI64(this.item_id);
5297
      oprot.writeFieldEnd();
3044 chandransh 5298
      if (this.type != null) {
5299
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5300
        oprot.writeI32(this.type.getValue());
5301
        oprot.writeFieldEnd();
5302
      }
5766 rajveer 5303
      if (this.pickUp != null) {
5304
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5305
        oprot.writeI32(this.pickUp.getValue());
5306
        oprot.writeFieldEnd();
5307
      }
477 rajveer 5308
      oprot.writeFieldStop();
5309
      oprot.writeStructEnd();
5310
    }
5311
 
5312
    @Override
5313
    public String toString() {
648 chandransh 5314
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5315
      boolean first = true;
5316
 
648 chandransh 5317
      sb.append("destination_pincode:");
5318
      if (this.destination_pincode == null) {
477 rajveer 5319
        sb.append("null");
5320
      } else {
648 chandransh 5321
        sb.append(this.destination_pincode);
477 rajveer 5322
      }
5323
      first = false;
5324
      if (!first) sb.append(", ");
648 chandransh 5325
      sb.append("item_id:");
715 rajveer 5326
      sb.append(this.item_id);
477 rajveer 5327
      first = false;
3044 chandransh 5328
      if (!first) sb.append(", ");
5329
      sb.append("type:");
5330
      if (this.type == null) {
5331
        sb.append("null");
5332
      } else {
5333
        sb.append(this.type);
5334
      }
5335
      first = false;
5766 rajveer 5336
      if (!first) sb.append(", ");
5337
      sb.append("pickUp:");
5338
      if (this.pickUp == null) {
5339
        sb.append("null");
5340
      } else {
5341
        sb.append(this.pickUp);
5342
      }
5343
      first = false;
477 rajveer 5344
      sb.append(")");
5345
      return sb.toString();
5346
    }
5347
 
3430 rajveer 5348
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5349
      // check for required fields
5350
    }
5351
 
3430 rajveer 5352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5353
      try {
5354
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5355
      } catch (org.apache.thrift.TException te) {
5356
        throw new java.io.IOException(te);
5357
      }
5358
    }
5359
 
5360
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5361
      try {
5362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5363
      } catch (org.apache.thrift.TException te) {
5364
        throw new java.io.IOException(te);
5365
      }
5366
    }
5367
 
477 rajveer 5368
  }
5369
 
3430 rajveer 5370
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5371
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5372
 
3430 rajveer 5373
    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);
5374
    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 5375
 
3430 rajveer 5376
    private LogisticsInfo success; // required
5377
    private LogisticsServiceException se; // required
477 rajveer 5378
 
5379
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5380
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5381
      SUCCESS((short)0, "success"),
5382
      SE((short)1, "se");
477 rajveer 5383
 
5384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5385
 
5386
      static {
5387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5388
          byName.put(field.getFieldName(), field);
5389
        }
5390
      }
5391
 
5392
      /**
5393
       * Find the _Fields constant that matches fieldId, or null if its not found.
5394
       */
5395
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5396
        switch(fieldId) {
5397
          case 0: // SUCCESS
5398
            return SUCCESS;
5399
          case 1: // SE
5400
            return SE;
5401
          default:
5402
            return null;
5403
        }
477 rajveer 5404
      }
5405
 
5406
      /**
5407
       * Find the _Fields constant that matches fieldId, throwing an exception
5408
       * if it is not found.
5409
       */
5410
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5411
        _Fields fields = findByThriftId(fieldId);
5412
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5413
        return fields;
5414
      }
5415
 
5416
      /**
5417
       * Find the _Fields constant that matches name, or null if its not found.
5418
       */
5419
      public static _Fields findByName(String name) {
5420
        return byName.get(name);
5421
      }
5422
 
5423
      private final short _thriftId;
5424
      private final String _fieldName;
5425
 
5426
      _Fields(short thriftId, String fieldName) {
5427
        _thriftId = thriftId;
5428
        _fieldName = fieldName;
5429
      }
5430
 
5431
      public short getThriftFieldId() {
5432
        return _thriftId;
5433
      }
5434
 
5435
      public String getFieldName() {
5436
        return _fieldName;
5437
      }
5438
    }
5439
 
412 ashish 5440
    // isset id assignments
5441
 
3430 rajveer 5442
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5443
    static {
3430 rajveer 5444
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5445
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5446
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5447
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5451
    }
5452
 
648 chandransh 5453
    public getLogisticsInfo_result() {
412 ashish 5454
    }
5455
 
648 chandransh 5456
    public getLogisticsInfo_result(
5457
      LogisticsInfo success,
5458
      LogisticsServiceException se)
412 ashish 5459
    {
5460
      this();
648 chandransh 5461
      this.success = success;
5462
      this.se = se;
412 ashish 5463
    }
5464
 
5465
    /**
5466
     * Performs a deep copy on <i>other</i>.
5467
     */
648 chandransh 5468
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5469
      if (other.isSetSuccess()) {
5470
        this.success = new LogisticsInfo(other.success);
412 ashish 5471
      }
648 chandransh 5472
      if (other.isSetSe()) {
5473
        this.se = new LogisticsServiceException(other.se);
5474
      }
412 ashish 5475
    }
5476
 
648 chandransh 5477
    public getLogisticsInfo_result deepCopy() {
5478
      return new getLogisticsInfo_result(this);
412 ashish 5479
    }
5480
 
3430 rajveer 5481
    @Override
5482
    public void clear() {
5483
      this.success = null;
5484
      this.se = null;
412 ashish 5485
    }
5486
 
648 chandransh 5487
    public LogisticsInfo getSuccess() {
5488
      return this.success;
412 ashish 5489
    }
5490
 
3430 rajveer 5491
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5492
      this.success = success;
412 ashish 5493
    }
5494
 
648 chandransh 5495
    public void unsetSuccess() {
5496
      this.success = null;
412 ashish 5497
    }
5498
 
3430 rajveer 5499
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5500
    public boolean isSetSuccess() {
5501
      return this.success != null;
412 ashish 5502
    }
5503
 
648 chandransh 5504
    public void setSuccessIsSet(boolean value) {
412 ashish 5505
      if (!value) {
648 chandransh 5506
        this.success = null;
412 ashish 5507
      }
5508
    }
5509
 
648 chandransh 5510
    public LogisticsServiceException getSe() {
5511
      return this.se;
412 ashish 5512
    }
5513
 
3430 rajveer 5514
    public void setSe(LogisticsServiceException se) {
648 chandransh 5515
      this.se = se;
412 ashish 5516
    }
5517
 
648 chandransh 5518
    public void unsetSe() {
5519
      this.se = null;
412 ashish 5520
    }
5521
 
3430 rajveer 5522
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5523
    public boolean isSetSe() {
5524
      return this.se != null;
412 ashish 5525
    }
5526
 
648 chandransh 5527
    public void setSeIsSet(boolean value) {
5528
      if (!value) {
5529
        this.se = null;
5530
      }
412 ashish 5531
    }
5532
 
5533
    public void setFieldValue(_Fields field, Object value) {
5534
      switch (field) {
648 chandransh 5535
      case SUCCESS:
412 ashish 5536
        if (value == null) {
648 chandransh 5537
          unsetSuccess();
412 ashish 5538
        } else {
648 chandransh 5539
          setSuccess((LogisticsInfo)value);
412 ashish 5540
        }
5541
        break;
5542
 
648 chandransh 5543
      case SE:
412 ashish 5544
        if (value == null) {
648 chandransh 5545
          unsetSe();
412 ashish 5546
        } else {
648 chandransh 5547
          setSe((LogisticsServiceException)value);
412 ashish 5548
        }
5549
        break;
5550
 
5551
      }
5552
    }
5553
 
5554
    public Object getFieldValue(_Fields field) {
5555
      switch (field) {
648 chandransh 5556
      case SUCCESS:
5557
        return getSuccess();
412 ashish 5558
 
648 chandransh 5559
      case SE:
5560
        return getSe();
412 ashish 5561
 
5562
      }
5563
      throw new IllegalStateException();
5564
    }
5565
 
3430 rajveer 5566
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5567
    public boolean isSet(_Fields field) {
5568
      if (field == null) {
5569
        throw new IllegalArgumentException();
5570
      }
412 ashish 5571
 
5572
      switch (field) {
648 chandransh 5573
      case SUCCESS:
5574
        return isSetSuccess();
5575
      case SE:
5576
        return isSetSe();
412 ashish 5577
      }
5578
      throw new IllegalStateException();
5579
    }
5580
 
5581
    @Override
5582
    public boolean equals(Object that) {
5583
      if (that == null)
5584
        return false;
648 chandransh 5585
      if (that instanceof getLogisticsInfo_result)
5586
        return this.equals((getLogisticsInfo_result)that);
412 ashish 5587
      return false;
5588
    }
5589
 
648 chandransh 5590
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 5591
      if (that == null)
5592
        return false;
5593
 
648 chandransh 5594
      boolean this_present_success = true && this.isSetSuccess();
5595
      boolean that_present_success = true && that.isSetSuccess();
5596
      if (this_present_success || that_present_success) {
5597
        if (!(this_present_success && that_present_success))
412 ashish 5598
          return false;
648 chandransh 5599
        if (!this.success.equals(that.success))
412 ashish 5600
          return false;
5601
      }
5602
 
648 chandransh 5603
      boolean this_present_se = true && this.isSetSe();
5604
      boolean that_present_se = true && that.isSetSe();
5605
      if (this_present_se || that_present_se) {
5606
        if (!(this_present_se && that_present_se))
412 ashish 5607
          return false;
648 chandransh 5608
        if (!this.se.equals(that.se))
412 ashish 5609
          return false;
5610
      }
5611
 
5612
      return true;
5613
    }
5614
 
5615
    @Override
5616
    public int hashCode() {
5617
      return 0;
5618
    }
5619
 
648 chandransh 5620
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 5621
      if (!getClass().equals(other.getClass())) {
5622
        return getClass().getName().compareTo(other.getClass().getName());
5623
      }
5624
 
5625
      int lastComparison = 0;
648 chandransh 5626
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 5627
 
3430 rajveer 5628
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5629
      if (lastComparison != 0) {
5630
        return lastComparison;
5631
      }
3430 rajveer 5632
      if (isSetSuccess()) {
5633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5634
        if (lastComparison != 0) {
5635
          return lastComparison;
5636
        }
412 ashish 5637
      }
3430 rajveer 5638
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5639
      if (lastComparison != 0) {
5640
        return lastComparison;
5641
      }
3430 rajveer 5642
      if (isSetSe()) {
5643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5644
        if (lastComparison != 0) {
5645
          return lastComparison;
5646
        }
412 ashish 5647
      }
5648
      return 0;
5649
    }
5650
 
3430 rajveer 5651
    public _Fields fieldForId(int fieldId) {
5652
      return _Fields.findByThriftId(fieldId);
5653
    }
5654
 
5655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5656
      org.apache.thrift.protocol.TField field;
412 ashish 5657
      iprot.readStructBegin();
5658
      while (true)
5659
      {
5660
        field = iprot.readFieldBegin();
3430 rajveer 5661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5662
          break;
5663
        }
3430 rajveer 5664
        switch (field.id) {
5665
          case 0: // SUCCESS
5666
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5667
              this.success = new LogisticsInfo();
5668
              this.success.read(iprot);
5669
            } else { 
5670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5671
            }
5672
            break;
5673
          case 1: // SE
5674
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5675
              this.se = new LogisticsServiceException();
5676
              this.se.read(iprot);
5677
            } else { 
5678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5679
            }
5680
            break;
5681
          default:
5682
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5683
        }
3430 rajveer 5684
        iprot.readFieldEnd();
412 ashish 5685
      }
5686
      iprot.readStructEnd();
5687
      validate();
5688
    }
5689
 
3430 rajveer 5690
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 5691
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 5692
 
648 chandransh 5693
      if (this.isSetSuccess()) {
5694
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5695
        this.success.write(oprot);
412 ashish 5696
        oprot.writeFieldEnd();
648 chandransh 5697
      } else if (this.isSetSe()) {
5698
        oprot.writeFieldBegin(SE_FIELD_DESC);
5699
        this.se.write(oprot);
5700
        oprot.writeFieldEnd();
412 ashish 5701
      }
5702
      oprot.writeFieldStop();
5703
      oprot.writeStructEnd();
5704
    }
5705
 
5706
    @Override
5707
    public String toString() {
648 chandransh 5708
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 5709
      boolean first = true;
5710
 
648 chandransh 5711
      sb.append("success:");
5712
      if (this.success == null) {
412 ashish 5713
        sb.append("null");
5714
      } else {
648 chandransh 5715
        sb.append(this.success);
412 ashish 5716
      }
5717
      first = false;
5718
      if (!first) sb.append(", ");
648 chandransh 5719
      sb.append("se:");
5720
      if (this.se == null) {
5721
        sb.append("null");
5722
      } else {
5723
        sb.append(this.se);
5724
      }
412 ashish 5725
      first = false;
5726
      sb.append(")");
5727
      return sb.toString();
5728
    }
5729
 
3430 rajveer 5730
    public void validate() throws org.apache.thrift.TException {
412 ashish 5731
      // check for required fields
5732
    }
5733
 
3430 rajveer 5734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5735
      try {
5736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5737
      } catch (org.apache.thrift.TException te) {
5738
        throw new java.io.IOException(te);
5739
      }
5740
    }
5741
 
5742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5743
      try {
5744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5745
      } catch (org.apache.thrift.TException te) {
5746
        throw new java.io.IOException(te);
5747
      }
5748
    }
5749
 
412 ashish 5750
  }
5751
 
3430 rajveer 5752
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
5753
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 5754
 
3430 rajveer 5755
    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 5756
    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 5757
 
3430 rajveer 5758
    private long providerId; // required
5247 rajveer 5759
    private DeliveryType type; // required
412 ashish 5760
 
5761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 5763
      PROVIDER_ID((short)1, "providerId"),
5764
      /**
5765
       * 
5766
       * @see DeliveryType
5767
       */
5768
      TYPE((short)-1, "type");
412 ashish 5769
 
5770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5771
 
5772
      static {
5773
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5774
          byName.put(field.getFieldName(), field);
5775
        }
5776
      }
5777
 
5778
      /**
5779
       * Find the _Fields constant that matches fieldId, or null if its not found.
5780
       */
5781
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5782
        switch(fieldId) {
5783
          case 1: // PROVIDER_ID
5784
            return PROVIDER_ID;
5247 rajveer 5785
          case -1: // TYPE
5786
            return TYPE;
3430 rajveer 5787
          default:
5788
            return null;
5789
        }
412 ashish 5790
      }
5791
 
5792
      /**
5793
       * Find the _Fields constant that matches fieldId, throwing an exception
5794
       * if it is not found.
5795
       */
5796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5797
        _Fields fields = findByThriftId(fieldId);
5798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5799
        return fields;
5800
      }
5801
 
5802
      /**
5803
       * Find the _Fields constant that matches name, or null if its not found.
5804
       */
5805
      public static _Fields findByName(String name) {
5806
        return byName.get(name);
5807
      }
5808
 
5809
      private final short _thriftId;
5810
      private final String _fieldName;
5811
 
5812
      _Fields(short thriftId, String fieldName) {
5813
        _thriftId = thriftId;
5814
        _fieldName = fieldName;
5815
      }
5816
 
5817
      public short getThriftFieldId() {
5818
        return _thriftId;
5819
      }
5820
 
5821
      public String getFieldName() {
5822
        return _fieldName;
5823
      }
5824
    }
5825
 
5826
    // isset id assignments
648 chandransh 5827
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 5828
    private BitSet __isset_bit_vector = new BitSet(1);
5829
 
3430 rajveer 5830
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5831
    static {
3430 rajveer 5832
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5833
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 5835
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5836
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 5837
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5838
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 5839
    }
5840
 
5841
    public getEmptyAWB_args() {
5842
    }
5843
 
5844
    public getEmptyAWB_args(
5247 rajveer 5845
      long providerId,
5846
      DeliveryType type)
412 ashish 5847
    {
5848
      this();
648 chandransh 5849
      this.providerId = providerId;
5850
      setProviderIdIsSet(true);
5247 rajveer 5851
      this.type = type;
412 ashish 5852
    }
5853
 
5854
    /**
5855
     * Performs a deep copy on <i>other</i>.
5856
     */
5857
    public getEmptyAWB_args(getEmptyAWB_args other) {
5858
      __isset_bit_vector.clear();
5859
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5860
      this.providerId = other.providerId;
5247 rajveer 5861
      if (other.isSetType()) {
5862
        this.type = other.type;
5863
      }
412 ashish 5864
    }
5865
 
5866
    public getEmptyAWB_args deepCopy() {
5867
      return new getEmptyAWB_args(this);
5868
    }
5869
 
3430 rajveer 5870
    @Override
5871
    public void clear() {
5872
      setProviderIdIsSet(false);
5873
      this.providerId = 0;
5247 rajveer 5874
      this.type = null;
412 ashish 5875
    }
5876
 
648 chandransh 5877
    public long getProviderId() {
5878
      return this.providerId;
412 ashish 5879
    }
5880
 
3430 rajveer 5881
    public void setProviderId(long providerId) {
648 chandransh 5882
      this.providerId = providerId;
5883
      setProviderIdIsSet(true);
412 ashish 5884
    }
5885
 
648 chandransh 5886
    public void unsetProviderId() {
5887
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 5888
    }
5889
 
3430 rajveer 5890
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 5891
    public boolean isSetProviderId() {
5892
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 5893
    }
5894
 
648 chandransh 5895
    public void setProviderIdIsSet(boolean value) {
5896
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 5897
    }
5898
 
5247 rajveer 5899
    /**
5900
     * 
5901
     * @see DeliveryType
5902
     */
5903
    public DeliveryType getType() {
5904
      return this.type;
5905
    }
5906
 
5907
    /**
5908
     * 
5909
     * @see DeliveryType
5910
     */
5911
    public void setType(DeliveryType type) {
5912
      this.type = type;
5913
    }
5914
 
5915
    public void unsetType() {
5916
      this.type = null;
5917
    }
5918
 
5919
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5920
    public boolean isSetType() {
5921
      return this.type != null;
5922
    }
5923
 
5924
    public void setTypeIsSet(boolean value) {
5925
      if (!value) {
5926
        this.type = null;
5927
      }
5928
    }
5929
 
412 ashish 5930
    public void setFieldValue(_Fields field, Object value) {
5931
      switch (field) {
5932
      case PROVIDER_ID:
5933
        if (value == null) {
648 chandransh 5934
          unsetProviderId();
412 ashish 5935
        } else {
648 chandransh 5936
          setProviderId((Long)value);
412 ashish 5937
        }
5938
        break;
5939
 
5247 rajveer 5940
      case TYPE:
5941
        if (value == null) {
5942
          unsetType();
5943
        } else {
5944
          setType((DeliveryType)value);
5945
        }
5946
        break;
5947
 
412 ashish 5948
      }
5949
    }
5950
 
5951
    public Object getFieldValue(_Fields field) {
5952
      switch (field) {
5953
      case PROVIDER_ID:
3430 rajveer 5954
        return Long.valueOf(getProviderId());
412 ashish 5955
 
5247 rajveer 5956
      case TYPE:
5957
        return getType();
5958
 
412 ashish 5959
      }
5960
      throw new IllegalStateException();
5961
    }
5962
 
3430 rajveer 5963
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5964
    public boolean isSet(_Fields field) {
5965
      if (field == null) {
5966
        throw new IllegalArgumentException();
5967
      }
412 ashish 5968
 
5969
      switch (field) {
5970
      case PROVIDER_ID:
648 chandransh 5971
        return isSetProviderId();
5247 rajveer 5972
      case TYPE:
5973
        return isSetType();
412 ashish 5974
      }
5975
      throw new IllegalStateException();
5976
    }
5977
 
5978
    @Override
5979
    public boolean equals(Object that) {
5980
      if (that == null)
5981
        return false;
5982
      if (that instanceof getEmptyAWB_args)
5983
        return this.equals((getEmptyAWB_args)that);
5984
      return false;
5985
    }
5986
 
5987
    public boolean equals(getEmptyAWB_args that) {
5988
      if (that == null)
5989
        return false;
5990
 
648 chandransh 5991
      boolean this_present_providerId = true;
5992
      boolean that_present_providerId = true;
5993
      if (this_present_providerId || that_present_providerId) {
5994
        if (!(this_present_providerId && that_present_providerId))
412 ashish 5995
          return false;
648 chandransh 5996
        if (this.providerId != that.providerId)
412 ashish 5997
          return false;
5998
      }
5999
 
5247 rajveer 6000
      boolean this_present_type = true && this.isSetType();
6001
      boolean that_present_type = true && that.isSetType();
6002
      if (this_present_type || that_present_type) {
6003
        if (!(this_present_type && that_present_type))
6004
          return false;
6005
        if (!this.type.equals(that.type))
6006
          return false;
6007
      }
6008
 
412 ashish 6009
      return true;
6010
    }
6011
 
6012
    @Override
6013
    public int hashCode() {
6014
      return 0;
6015
    }
6016
 
6017
    public int compareTo(getEmptyAWB_args other) {
6018
      if (!getClass().equals(other.getClass())) {
6019
        return getClass().getName().compareTo(other.getClass().getName());
6020
      }
6021
 
6022
      int lastComparison = 0;
6023
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6024
 
3430 rajveer 6025
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6026
      if (lastComparison != 0) {
6027
        return lastComparison;
6028
      }
3430 rajveer 6029
      if (isSetProviderId()) {
6030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6031
        if (lastComparison != 0) {
6032
          return lastComparison;
6033
        }
412 ashish 6034
      }
5247 rajveer 6035
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6036
      if (lastComparison != 0) {
6037
        return lastComparison;
6038
      }
6039
      if (isSetType()) {
6040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6041
        if (lastComparison != 0) {
6042
          return lastComparison;
6043
        }
6044
      }
412 ashish 6045
      return 0;
6046
    }
6047
 
3430 rajveer 6048
    public _Fields fieldForId(int fieldId) {
6049
      return _Fields.findByThriftId(fieldId);
6050
    }
6051
 
6052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6053
      org.apache.thrift.protocol.TField field;
412 ashish 6054
      iprot.readStructBegin();
6055
      while (true)
6056
      {
6057
        field = iprot.readFieldBegin();
3430 rajveer 6058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6059
          break;
6060
        }
3430 rajveer 6061
        switch (field.id) {
6062
          case 1: // PROVIDER_ID
6063
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6064
              this.providerId = iprot.readI64();
6065
              setProviderIdIsSet(true);
6066
            } else { 
6067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6068
            }
6069
            break;
5247 rajveer 6070
          case -1: // TYPE
6071
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6072
              this.type = DeliveryType.findByValue(iprot.readI32());
6073
            } else { 
6074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6075
            }
6076
            break;
3430 rajveer 6077
          default:
6078
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6079
        }
3430 rajveer 6080
        iprot.readFieldEnd();
412 ashish 6081
      }
6082
      iprot.readStructEnd();
6083
      validate();
6084
    }
6085
 
3430 rajveer 6086
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6087
      validate();
6088
 
6089
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6090
      if (this.type != null) {
6091
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6092
        oprot.writeI32(this.type.getValue());
6093
        oprot.writeFieldEnd();
6094
      }
412 ashish 6095
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6096
      oprot.writeI64(this.providerId);
412 ashish 6097
      oprot.writeFieldEnd();
6098
      oprot.writeFieldStop();
6099
      oprot.writeStructEnd();
6100
    }
6101
 
6102
    @Override
6103
    public String toString() {
6104
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6105
      boolean first = true;
6106
 
648 chandransh 6107
      sb.append("providerId:");
6108
      sb.append(this.providerId);
412 ashish 6109
      first = false;
5247 rajveer 6110
      if (!first) sb.append(", ");
6111
      sb.append("type:");
6112
      if (this.type == null) {
6113
        sb.append("null");
6114
      } else {
6115
        sb.append(this.type);
6116
      }
6117
      first = false;
412 ashish 6118
      sb.append(")");
6119
      return sb.toString();
6120
    }
6121
 
3430 rajveer 6122
    public void validate() throws org.apache.thrift.TException {
412 ashish 6123
      // check for required fields
6124
    }
6125
 
3430 rajveer 6126
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6127
      try {
6128
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6129
      } catch (org.apache.thrift.TException te) {
6130
        throw new java.io.IOException(te);
6131
      }
6132
    }
6133
 
6134
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6135
      try {
6136
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6137
        __isset_bit_vector = new BitSet(1);
6138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6139
      } catch (org.apache.thrift.TException te) {
6140
        throw new java.io.IOException(te);
6141
      }
6142
    }
6143
 
412 ashish 6144
  }
6145
 
3430 rajveer 6146
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6148
 
3430 rajveer 6149
    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);
6150
    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 6151
 
3430 rajveer 6152
    private String success; // required
6153
    private LogisticsServiceException se; // required
412 ashish 6154
 
6155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6157
      SUCCESS((short)0, "success"),
6158
      SE((short)1, "se");
412 ashish 6159
 
6160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6161
 
6162
      static {
6163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6164
          byName.put(field.getFieldName(), field);
6165
        }
6166
      }
6167
 
6168
      /**
6169
       * Find the _Fields constant that matches fieldId, or null if its not found.
6170
       */
6171
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6172
        switch(fieldId) {
6173
          case 0: // SUCCESS
6174
            return SUCCESS;
6175
          case 1: // SE
6176
            return SE;
6177
          default:
6178
            return null;
6179
        }
412 ashish 6180
      }
6181
 
6182
      /**
6183
       * Find the _Fields constant that matches fieldId, throwing an exception
6184
       * if it is not found.
6185
       */
6186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6187
        _Fields fields = findByThriftId(fieldId);
6188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6189
        return fields;
6190
      }
6191
 
6192
      /**
6193
       * Find the _Fields constant that matches name, or null if its not found.
6194
       */
6195
      public static _Fields findByName(String name) {
6196
        return byName.get(name);
6197
      }
6198
 
6199
      private final short _thriftId;
6200
      private final String _fieldName;
6201
 
6202
      _Fields(short thriftId, String fieldName) {
6203
        _thriftId = thriftId;
6204
        _fieldName = fieldName;
6205
      }
6206
 
6207
      public short getThriftFieldId() {
6208
        return _thriftId;
6209
      }
6210
 
6211
      public String getFieldName() {
6212
        return _fieldName;
6213
      }
6214
    }
6215
 
6216
    // isset id assignments
6217
 
3430 rajveer 6218
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6219
    static {
3430 rajveer 6220
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6221
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6223
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6225
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6226
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6227
    }
6228
 
6229
    public getEmptyAWB_result() {
6230
    }
6231
 
6232
    public getEmptyAWB_result(
648 chandransh 6233
      String success,
6234
      LogisticsServiceException se)
412 ashish 6235
    {
6236
      this();
6237
      this.success = success;
648 chandransh 6238
      this.se = se;
412 ashish 6239
    }
6240
 
6241
    /**
6242
     * Performs a deep copy on <i>other</i>.
6243
     */
6244
    public getEmptyAWB_result(getEmptyAWB_result other) {
6245
      if (other.isSetSuccess()) {
6246
        this.success = other.success;
6247
      }
648 chandransh 6248
      if (other.isSetSe()) {
6249
        this.se = new LogisticsServiceException(other.se);
6250
      }
412 ashish 6251
    }
6252
 
6253
    public getEmptyAWB_result deepCopy() {
6254
      return new getEmptyAWB_result(this);
6255
    }
6256
 
3430 rajveer 6257
    @Override
6258
    public void clear() {
6259
      this.success = null;
6260
      this.se = null;
412 ashish 6261
    }
6262
 
6263
    public String getSuccess() {
6264
      return this.success;
6265
    }
6266
 
3430 rajveer 6267
    public void setSuccess(String success) {
412 ashish 6268
      this.success = success;
6269
    }
6270
 
6271
    public void unsetSuccess() {
6272
      this.success = null;
6273
    }
6274
 
3430 rajveer 6275
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6276
    public boolean isSetSuccess() {
6277
      return this.success != null;
6278
    }
6279
 
6280
    public void setSuccessIsSet(boolean value) {
6281
      if (!value) {
6282
        this.success = null;
6283
      }
6284
    }
6285
 
648 chandransh 6286
    public LogisticsServiceException getSe() {
6287
      return this.se;
412 ashish 6288
    }
6289
 
3430 rajveer 6290
    public void setSe(LogisticsServiceException se) {
648 chandransh 6291
      this.se = se;
412 ashish 6292
    }
6293
 
648 chandransh 6294
    public void unsetSe() {
6295
      this.se = null;
412 ashish 6296
    }
6297
 
3430 rajveer 6298
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6299
    public boolean isSetSe() {
6300
      return this.se != null;
412 ashish 6301
    }
6302
 
648 chandransh 6303
    public void setSeIsSet(boolean value) {
412 ashish 6304
      if (!value) {
648 chandransh 6305
        this.se = null;
412 ashish 6306
      }
6307
    }
6308
 
6309
    public void setFieldValue(_Fields field, Object value) {
6310
      switch (field) {
6311
      case SUCCESS:
6312
        if (value == null) {
6313
          unsetSuccess();
6314
        } else {
648 chandransh 6315
          setSuccess((String)value);
412 ashish 6316
        }
6317
        break;
6318
 
648 chandransh 6319
      case SE:
6320
        if (value == null) {
6321
          unsetSe();
6322
        } else {
6323
          setSe((LogisticsServiceException)value);
6324
        }
6325
        break;
6326
 
412 ashish 6327
      }
6328
    }
6329
 
6330
    public Object getFieldValue(_Fields field) {
6331
      switch (field) {
6332
      case SUCCESS:
6333
        return getSuccess();
6334
 
648 chandransh 6335
      case SE:
6336
        return getSe();
6337
 
412 ashish 6338
      }
6339
      throw new IllegalStateException();
6340
    }
6341
 
3430 rajveer 6342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6343
    public boolean isSet(_Fields field) {
6344
      if (field == null) {
6345
        throw new IllegalArgumentException();
6346
      }
412 ashish 6347
 
6348
      switch (field) {
6349
      case SUCCESS:
6350
        return isSetSuccess();
648 chandransh 6351
      case SE:
6352
        return isSetSe();
412 ashish 6353
      }
6354
      throw new IllegalStateException();
6355
    }
6356
 
6357
    @Override
6358
    public boolean equals(Object that) {
6359
      if (that == null)
6360
        return false;
648 chandransh 6361
      if (that instanceof getEmptyAWB_result)
6362
        return this.equals((getEmptyAWB_result)that);
412 ashish 6363
      return false;
6364
    }
6365
 
648 chandransh 6366
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6367
      if (that == null)
6368
        return false;
6369
 
6370
      boolean this_present_success = true && this.isSetSuccess();
6371
      boolean that_present_success = true && that.isSetSuccess();
6372
      if (this_present_success || that_present_success) {
6373
        if (!(this_present_success && that_present_success))
6374
          return false;
6375
        if (!this.success.equals(that.success))
6376
          return false;
6377
      }
6378
 
648 chandransh 6379
      boolean this_present_se = true && this.isSetSe();
6380
      boolean that_present_se = true && that.isSetSe();
6381
      if (this_present_se || that_present_se) {
6382
        if (!(this_present_se && that_present_se))
6383
          return false;
6384
        if (!this.se.equals(that.se))
6385
          return false;
6386
      }
6387
 
412 ashish 6388
      return true;
6389
    }
6390
 
6391
    @Override
6392
    public int hashCode() {
6393
      return 0;
6394
    }
6395
 
648 chandransh 6396
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6397
      if (!getClass().equals(other.getClass())) {
6398
        return getClass().getName().compareTo(other.getClass().getName());
6399
      }
6400
 
6401
      int lastComparison = 0;
648 chandransh 6402
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6403
 
3430 rajveer 6404
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6405
      if (lastComparison != 0) {
6406
        return lastComparison;
6407
      }
3430 rajveer 6408
      if (isSetSuccess()) {
6409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6410
        if (lastComparison != 0) {
6411
          return lastComparison;
6412
        }
412 ashish 6413
      }
3430 rajveer 6414
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6415
      if (lastComparison != 0) {
6416
        return lastComparison;
6417
      }
3430 rajveer 6418
      if (isSetSe()) {
6419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6420
        if (lastComparison != 0) {
6421
          return lastComparison;
6422
        }
412 ashish 6423
      }
6424
      return 0;
6425
    }
6426
 
3430 rajveer 6427
    public _Fields fieldForId(int fieldId) {
6428
      return _Fields.findByThriftId(fieldId);
6429
    }
6430
 
6431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6432
      org.apache.thrift.protocol.TField field;
412 ashish 6433
      iprot.readStructBegin();
6434
      while (true)
6435
      {
6436
        field = iprot.readFieldBegin();
3430 rajveer 6437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6438
          break;
6439
        }
3430 rajveer 6440
        switch (field.id) {
6441
          case 0: // SUCCESS
6442
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6443
              this.success = iprot.readString();
6444
            } else { 
6445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6446
            }
6447
            break;
6448
          case 1: // SE
6449
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6450
              this.se = new LogisticsServiceException();
6451
              this.se.read(iprot);
6452
            } else { 
6453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6454
            }
6455
            break;
6456
          default:
6457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6458
        }
3430 rajveer 6459
        iprot.readFieldEnd();
412 ashish 6460
      }
6461
      iprot.readStructEnd();
6462
      validate();
6463
    }
6464
 
3430 rajveer 6465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6466
      oprot.writeStructBegin(STRUCT_DESC);
6467
 
6468
      if (this.isSetSuccess()) {
6469
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6470
        oprot.writeString(this.success);
412 ashish 6471
        oprot.writeFieldEnd();
648 chandransh 6472
      } else if (this.isSetSe()) {
6473
        oprot.writeFieldBegin(SE_FIELD_DESC);
6474
        this.se.write(oprot);
6475
        oprot.writeFieldEnd();
412 ashish 6476
      }
6477
      oprot.writeFieldStop();
6478
      oprot.writeStructEnd();
6479
    }
6480
 
6481
    @Override
6482
    public String toString() {
648 chandransh 6483
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6484
      boolean first = true;
6485
 
6486
      sb.append("success:");
6487
      if (this.success == null) {
6488
        sb.append("null");
6489
      } else {
6490
        sb.append(this.success);
6491
      }
6492
      first = false;
648 chandransh 6493
      if (!first) sb.append(", ");
6494
      sb.append("se:");
6495
      if (this.se == null) {
442 rajveer 6496
        sb.append("null");
6497
      } else {
648 chandransh 6498
        sb.append(this.se);
442 rajveer 6499
      }
6500
      first = false;
6501
      sb.append(")");
6502
      return sb.toString();
6503
    }
6504
 
3430 rajveer 6505
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6506
      // check for required fields
6507
    }
6508
 
3430 rajveer 6509
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6510
      try {
6511
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6512
      } catch (org.apache.thrift.TException te) {
6513
        throw new java.io.IOException(te);
6514
      }
6515
    }
6516
 
6517
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6518
      try {
6519
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6520
      } catch (org.apache.thrift.TException te) {
6521
        throw new java.io.IOException(te);
6522
      }
6523
    }
6524
 
442 rajveer 6525
  }
6526
 
3430 rajveer 6527
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6528
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6529
 
6643 rajveer 6530
    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 6531
    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 6532
 
6643 rajveer 6533
    private String awbNumber; // required
3430 rajveer 6534
    private long providerId; // required
442 rajveer 6535
 
6536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6538
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6539
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6540
 
6541
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6542
 
6543
      static {
6544
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6545
          byName.put(field.getFieldName(), field);
6546
        }
6547
      }
6548
 
6549
      /**
6550
       * Find the _Fields constant that matches fieldId, or null if its not found.
6551
       */
6552
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6553
        switch(fieldId) {
6643 rajveer 6554
          case 1: // AWB_NUMBER
6555
            return AWB_NUMBER;
3430 rajveer 6556
          case 2: // PROVIDER_ID
6557
            return PROVIDER_ID;
6558
          default:
6559
            return null;
6560
        }
442 rajveer 6561
      }
6562
 
6563
      /**
6564
       * Find the _Fields constant that matches fieldId, throwing an exception
6565
       * if it is not found.
6566
       */
6567
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6568
        _Fields fields = findByThriftId(fieldId);
6569
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6570
        return fields;
6571
      }
6572
 
6573
      /**
6574
       * Find the _Fields constant that matches name, or null if its not found.
6575
       */
6576
      public static _Fields findByName(String name) {
6577
        return byName.get(name);
6578
      }
6579
 
6580
      private final short _thriftId;
6581
      private final String _fieldName;
6582
 
6583
      _Fields(short thriftId, String fieldName) {
6584
        _thriftId = thriftId;
6585
        _fieldName = fieldName;
6586
      }
6587
 
6588
      public short getThriftFieldId() {
6589
        return _thriftId;
6590
      }
6591
 
6592
      public String getFieldName() {
6593
        return _fieldName;
6594
      }
6595
    }
6596
 
6597
    // isset id assignments
648 chandransh 6598
    private static final int __PROVIDERID_ISSET_ID = 0;
6599
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 6600
 
3430 rajveer 6601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 6602
    static {
3430 rajveer 6603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 6604
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 6605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6606
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 6610
    }
6611
 
648 chandransh 6612
    public getShipmentInfo_args() {
442 rajveer 6613
    }
6614
 
648 chandransh 6615
    public getShipmentInfo_args(
6643 rajveer 6616
      String awbNumber,
648 chandransh 6617
      long providerId)
442 rajveer 6618
    {
6619
      this();
6643 rajveer 6620
      this.awbNumber = awbNumber;
648 chandransh 6621
      this.providerId = providerId;
6622
      setProviderIdIsSet(true);
442 rajveer 6623
    }
6624
 
6625
    /**
6626
     * Performs a deep copy on <i>other</i>.
6627
     */
648 chandransh 6628
    public getShipmentInfo_args(getShipmentInfo_args other) {
6629
      __isset_bit_vector.clear();
6630
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 6631
      if (other.isSetAwbNumber()) {
6632
        this.awbNumber = other.awbNumber;
442 rajveer 6633
      }
648 chandransh 6634
      this.providerId = other.providerId;
442 rajveer 6635
    }
6636
 
648 chandransh 6637
    public getShipmentInfo_args deepCopy() {
6638
      return new getShipmentInfo_args(this);
442 rajveer 6639
    }
6640
 
3430 rajveer 6641
    @Override
6642
    public void clear() {
6643 rajveer 6643
      this.awbNumber = null;
3430 rajveer 6644
      setProviderIdIsSet(false);
6645
      this.providerId = 0;
442 rajveer 6646
    }
6647
 
6643 rajveer 6648
    public String getAwbNumber() {
6649
      return this.awbNumber;
442 rajveer 6650
    }
6651
 
6643 rajveer 6652
    public void setAwbNumber(String awbNumber) {
6653
      this.awbNumber = awbNumber;
442 rajveer 6654
    }
6655
 
6643 rajveer 6656
    public void unsetAwbNumber() {
6657
      this.awbNumber = null;
442 rajveer 6658
    }
6659
 
6643 rajveer 6660
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
6661
    public boolean isSetAwbNumber() {
6662
      return this.awbNumber != null;
442 rajveer 6663
    }
6664
 
6643 rajveer 6665
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 6666
      if (!value) {
6643 rajveer 6667
        this.awbNumber = null;
442 rajveer 6668
      }
6669
    }
6670
 
648 chandransh 6671
    public long getProviderId() {
6672
      return this.providerId;
442 rajveer 6673
    }
6674
 
3430 rajveer 6675
    public void setProviderId(long providerId) {
648 chandransh 6676
      this.providerId = providerId;
6677
      setProviderIdIsSet(true);
442 rajveer 6678
    }
6679
 
648 chandransh 6680
    public void unsetProviderId() {
6681
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 6682
    }
6683
 
3430 rajveer 6684
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6685
    public boolean isSetProviderId() {
6686
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 6687
    }
6688
 
648 chandransh 6689
    public void setProviderIdIsSet(boolean value) {
6690
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 6691
    }
6692
 
6693
    public void setFieldValue(_Fields field, Object value) {
6694
      switch (field) {
6643 rajveer 6695
      case AWB_NUMBER:
442 rajveer 6696
        if (value == null) {
6643 rajveer 6697
          unsetAwbNumber();
442 rajveer 6698
        } else {
6643 rajveer 6699
          setAwbNumber((String)value);
442 rajveer 6700
        }
6701
        break;
6702
 
648 chandransh 6703
      case PROVIDER_ID:
442 rajveer 6704
        if (value == null) {
648 chandransh 6705
          unsetProviderId();
442 rajveer 6706
        } else {
648 chandransh 6707
          setProviderId((Long)value);
442 rajveer 6708
        }
6709
        break;
6710
 
6711
      }
6712
    }
6713
 
6714
    public Object getFieldValue(_Fields field) {
6715
      switch (field) {
6643 rajveer 6716
      case AWB_NUMBER:
6717
        return getAwbNumber();
442 rajveer 6718
 
648 chandransh 6719
      case PROVIDER_ID:
3430 rajveer 6720
        return Long.valueOf(getProviderId());
442 rajveer 6721
 
6722
      }
6723
      throw new IllegalStateException();
6724
    }
6725
 
3430 rajveer 6726
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6727
    public boolean isSet(_Fields field) {
6728
      if (field == null) {
6729
        throw new IllegalArgumentException();
6730
      }
442 rajveer 6731
 
6732
      switch (field) {
6643 rajveer 6733
      case AWB_NUMBER:
6734
        return isSetAwbNumber();
648 chandransh 6735
      case PROVIDER_ID:
6736
        return isSetProviderId();
442 rajveer 6737
      }
6738
      throw new IllegalStateException();
6739
    }
6740
 
6741
    @Override
6742
    public boolean equals(Object that) {
6743
      if (that == null)
6744
        return false;
648 chandransh 6745
      if (that instanceof getShipmentInfo_args)
6746
        return this.equals((getShipmentInfo_args)that);
442 rajveer 6747
      return false;
6748
    }
6749
 
648 chandransh 6750
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 6751
      if (that == null)
6752
        return false;
6753
 
6643 rajveer 6754
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
6755
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
6756
      if (this_present_awbNumber || that_present_awbNumber) {
6757
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 6758
          return false;
6643 rajveer 6759
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 6760
          return false;
6761
      }
6762
 
648 chandransh 6763
      boolean this_present_providerId = true;
6764
      boolean that_present_providerId = true;
6765
      if (this_present_providerId || that_present_providerId) {
6766
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 6767
          return false;
648 chandransh 6768
        if (this.providerId != that.providerId)
442 rajveer 6769
          return false;
6770
      }
6771
 
6772
      return true;
6773
    }
6774
 
6775
    @Override
6776
    public int hashCode() {
6777
      return 0;
6778
    }
6779
 
648 chandransh 6780
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 6781
      if (!getClass().equals(other.getClass())) {
6782
        return getClass().getName().compareTo(other.getClass().getName());
6783
      }
6784
 
6785
      int lastComparison = 0;
648 chandransh 6786
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 6787
 
6643 rajveer 6788
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 6789
      if (lastComparison != 0) {
6790
        return lastComparison;
6791
      }
6643 rajveer 6792
      if (isSetAwbNumber()) {
6793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 6794
        if (lastComparison != 0) {
6795
          return lastComparison;
6796
        }
442 rajveer 6797
      }
3430 rajveer 6798
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 6799
      if (lastComparison != 0) {
6800
        return lastComparison;
6801
      }
3430 rajveer 6802
      if (isSetProviderId()) {
6803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6804
        if (lastComparison != 0) {
6805
          return lastComparison;
6806
        }
442 rajveer 6807
      }
6808
      return 0;
6809
    }
6810
 
3430 rajveer 6811
    public _Fields fieldForId(int fieldId) {
6812
      return _Fields.findByThriftId(fieldId);
6813
    }
6814
 
6815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6816
      org.apache.thrift.protocol.TField field;
442 rajveer 6817
      iprot.readStructBegin();
6818
      while (true)
6819
      {
6820
        field = iprot.readFieldBegin();
3430 rajveer 6821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 6822
          break;
6823
        }
3430 rajveer 6824
        switch (field.id) {
6643 rajveer 6825
          case 1: // AWB_NUMBER
3430 rajveer 6826
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 6827
              this.awbNumber = iprot.readString();
3430 rajveer 6828
            } else { 
6829
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6830
            }
6831
            break;
6832
          case 2: // PROVIDER_ID
6833
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6834
              this.providerId = iprot.readI64();
6835
              setProviderIdIsSet(true);
6836
            } else { 
6837
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6838
            }
6839
            break;
6840
          default:
6841
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 6842
        }
3430 rajveer 6843
        iprot.readFieldEnd();
442 rajveer 6844
      }
6845
      iprot.readStructEnd();
6846
      validate();
6847
    }
6848
 
3430 rajveer 6849
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 6850
      validate();
6851
 
6852
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 6853
      if (this.awbNumber != null) {
6854
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
6855
        oprot.writeString(this.awbNumber);
442 rajveer 6856
        oprot.writeFieldEnd();
6857
      }
648 chandransh 6858
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6859
      oprot.writeI64(this.providerId);
6860
      oprot.writeFieldEnd();
442 rajveer 6861
      oprot.writeFieldStop();
6862
      oprot.writeStructEnd();
6863
    }
6864
 
6865
    @Override
6866
    public String toString() {
648 chandransh 6867
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 6868
      boolean first = true;
6869
 
6643 rajveer 6870
      sb.append("awbNumber:");
6871
      if (this.awbNumber == null) {
442 rajveer 6872
        sb.append("null");
6873
      } else {
6643 rajveer 6874
        sb.append(this.awbNumber);
442 rajveer 6875
      }
6876
      first = false;
6877
      if (!first) sb.append(", ");
648 chandransh 6878
      sb.append("providerId:");
6879
      sb.append(this.providerId);
442 rajveer 6880
      first = false;
6881
      sb.append(")");
6882
      return sb.toString();
6883
    }
6884
 
3430 rajveer 6885
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6886
      // check for required fields
6887
    }
6888
 
3430 rajveer 6889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6890
      try {
6891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6892
      } catch (org.apache.thrift.TException te) {
6893
        throw new java.io.IOException(te);
6894
      }
6895
    }
6896
 
6897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6898
      try {
6899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6900
      } catch (org.apache.thrift.TException te) {
6901
        throw new java.io.IOException(te);
6902
      }
6903
    }
6904
 
442 rajveer 6905
  }
6906
 
3430 rajveer 6907
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
6908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 6909
 
3430 rajveer 6910
    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);
6911
    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 6912
 
3430 rajveer 6913
    private List<AwbUpdate> success; // required
6914
    private LogisticsServiceException se; // required
412 ashish 6915
 
6916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6918
      SUCCESS((short)0, "success"),
6919
      SE((short)1, "se");
412 ashish 6920
 
6921
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6922
 
6923
      static {
6924
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6925
          byName.put(field.getFieldName(), field);
6926
        }
6927
      }
6928
 
6929
      /**
6930
       * Find the _Fields constant that matches fieldId, or null if its not found.
6931
       */
6932
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6933
        switch(fieldId) {
6934
          case 0: // SUCCESS
6935
            return SUCCESS;
6936
          case 1: // SE
6937
            return SE;
6938
          default:
6939
            return null;
6940
        }
412 ashish 6941
      }
6942
 
6943
      /**
6944
       * Find the _Fields constant that matches fieldId, throwing an exception
6945
       * if it is not found.
6946
       */
6947
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6948
        _Fields fields = findByThriftId(fieldId);
6949
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6950
        return fields;
6951
      }
6952
 
6953
      /**
6954
       * Find the _Fields constant that matches name, or null if its not found.
6955
       */
6956
      public static _Fields findByName(String name) {
6957
        return byName.get(name);
6958
      }
6959
 
6960
      private final short _thriftId;
6961
      private final String _fieldName;
6962
 
6963
      _Fields(short thriftId, String fieldName) {
6964
        _thriftId = thriftId;
6965
        _fieldName = fieldName;
6966
      }
6967
 
6968
      public short getThriftFieldId() {
6969
        return _thriftId;
6970
      }
6971
 
6972
      public String getFieldName() {
6973
        return _fieldName;
6974
      }
6975
    }
6976
 
6977
    // isset id assignments
6978
 
3430 rajveer 6979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6980
    static {
3430 rajveer 6981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6982
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6983
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6984
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
6985
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6986
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6987
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6988
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 6989
    }
6990
 
6991
    public getShipmentInfo_result() {
6992
    }
6993
 
6994
    public getShipmentInfo_result(
648 chandransh 6995
      List<AwbUpdate> success,
6996
      LogisticsServiceException se)
412 ashish 6997
    {
6998
      this();
6999
      this.success = success;
648 chandransh 7000
      this.se = se;
412 ashish 7001
    }
7002
 
7003
    /**
7004
     * Performs a deep copy on <i>other</i>.
7005
     */
7006
    public getShipmentInfo_result(getShipmentInfo_result other) {
7007
      if (other.isSetSuccess()) {
648 chandransh 7008
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7009
        for (AwbUpdate other_element : other.success) {
7010
          __this__success.add(new AwbUpdate(other_element));
7011
        }
7012
        this.success = __this__success;
412 ashish 7013
      }
648 chandransh 7014
      if (other.isSetSe()) {
7015
        this.se = new LogisticsServiceException(other.se);
7016
      }
412 ashish 7017
    }
7018
 
7019
    public getShipmentInfo_result deepCopy() {
7020
      return new getShipmentInfo_result(this);
7021
    }
7022
 
3430 rajveer 7023
    @Override
7024
    public void clear() {
7025
      this.success = null;
7026
      this.se = null;
412 ashish 7027
    }
7028
 
7029
    public int getSuccessSize() {
7030
      return (this.success == null) ? 0 : this.success.size();
7031
    }
7032
 
648 chandransh 7033
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7034
      return (this.success == null) ? null : this.success.iterator();
7035
    }
7036
 
648 chandransh 7037
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7038
      if (this.success == null) {
648 chandransh 7039
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7040
      }
7041
      this.success.add(elem);
7042
    }
7043
 
648 chandransh 7044
    public List<AwbUpdate> getSuccess() {
412 ashish 7045
      return this.success;
7046
    }
7047
 
3430 rajveer 7048
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7049
      this.success = success;
7050
    }
7051
 
7052
    public void unsetSuccess() {
7053
      this.success = null;
7054
    }
7055
 
3430 rajveer 7056
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7057
    public boolean isSetSuccess() {
7058
      return this.success != null;
7059
    }
7060
 
7061
    public void setSuccessIsSet(boolean value) {
7062
      if (!value) {
7063
        this.success = null;
7064
      }
7065
    }
7066
 
648 chandransh 7067
    public LogisticsServiceException getSe() {
7068
      return this.se;
412 ashish 7069
    }
7070
 
3430 rajveer 7071
    public void setSe(LogisticsServiceException se) {
648 chandransh 7072
      this.se = se;
412 ashish 7073
    }
7074
 
648 chandransh 7075
    public void unsetSe() {
7076
      this.se = null;
412 ashish 7077
    }
7078
 
3430 rajveer 7079
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7080
    public boolean isSetSe() {
7081
      return this.se != null;
412 ashish 7082
    }
7083
 
648 chandransh 7084
    public void setSeIsSet(boolean value) {
7085
      if (!value) {
7086
        this.se = null;
412 ashish 7087
      }
7088
    }
7089
 
7090
    public void setFieldValue(_Fields field, Object value) {
7091
      switch (field) {
648 chandransh 7092
      case SUCCESS:
412 ashish 7093
        if (value == null) {
648 chandransh 7094
          unsetSuccess();
412 ashish 7095
        } else {
648 chandransh 7096
          setSuccess((List<AwbUpdate>)value);
412 ashish 7097
        }
7098
        break;
7099
 
648 chandransh 7100
      case SE:
412 ashish 7101
        if (value == null) {
648 chandransh 7102
          unsetSe();
412 ashish 7103
        } else {
648 chandransh 7104
          setSe((LogisticsServiceException)value);
412 ashish 7105
        }
7106
        break;
7107
 
7108
      }
7109
    }
7110
 
7111
    public Object getFieldValue(_Fields field) {
7112
      switch (field) {
648 chandransh 7113
      case SUCCESS:
7114
        return getSuccess();
412 ashish 7115
 
648 chandransh 7116
      case SE:
7117
        return getSe();
412 ashish 7118
 
7119
      }
7120
      throw new IllegalStateException();
7121
    }
7122
 
3430 rajveer 7123
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7124
    public boolean isSet(_Fields field) {
7125
      if (field == null) {
7126
        throw new IllegalArgumentException();
7127
      }
412 ashish 7128
 
7129
      switch (field) {
648 chandransh 7130
      case SUCCESS:
7131
        return isSetSuccess();
7132
      case SE:
7133
        return isSetSe();
412 ashish 7134
      }
7135
      throw new IllegalStateException();
7136
    }
7137
 
7138
    @Override
7139
    public boolean equals(Object that) {
7140
      if (that == null)
7141
        return false;
648 chandransh 7142
      if (that instanceof getShipmentInfo_result)
7143
        return this.equals((getShipmentInfo_result)that);
412 ashish 7144
      return false;
7145
    }
7146
 
648 chandransh 7147
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7148
      if (that == null)
7149
        return false;
7150
 
648 chandransh 7151
      boolean this_present_success = true && this.isSetSuccess();
7152
      boolean that_present_success = true && that.isSetSuccess();
7153
      if (this_present_success || that_present_success) {
7154
        if (!(this_present_success && that_present_success))
412 ashish 7155
          return false;
648 chandransh 7156
        if (!this.success.equals(that.success))
412 ashish 7157
          return false;
7158
      }
7159
 
648 chandransh 7160
      boolean this_present_se = true && this.isSetSe();
7161
      boolean that_present_se = true && that.isSetSe();
7162
      if (this_present_se || that_present_se) {
7163
        if (!(this_present_se && that_present_se))
412 ashish 7164
          return false;
648 chandransh 7165
        if (!this.se.equals(that.se))
412 ashish 7166
          return false;
7167
      }
7168
 
7169
      return true;
7170
    }
7171
 
7172
    @Override
7173
    public int hashCode() {
7174
      return 0;
7175
    }
7176
 
648 chandransh 7177
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7178
      if (!getClass().equals(other.getClass())) {
7179
        return getClass().getName().compareTo(other.getClass().getName());
7180
      }
7181
 
7182
      int lastComparison = 0;
648 chandransh 7183
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7184
 
3430 rajveer 7185
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7186
      if (lastComparison != 0) {
7187
        return lastComparison;
7188
      }
3430 rajveer 7189
      if (isSetSuccess()) {
7190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7191
        if (lastComparison != 0) {
7192
          return lastComparison;
7193
        }
412 ashish 7194
      }
3430 rajveer 7195
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7196
      if (lastComparison != 0) {
7197
        return lastComparison;
7198
      }
3430 rajveer 7199
      if (isSetSe()) {
7200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7201
        if (lastComparison != 0) {
7202
          return lastComparison;
7203
        }
412 ashish 7204
      }
7205
      return 0;
7206
    }
7207
 
3430 rajveer 7208
    public _Fields fieldForId(int fieldId) {
7209
      return _Fields.findByThriftId(fieldId);
7210
    }
7211
 
7212
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7213
      org.apache.thrift.protocol.TField field;
412 ashish 7214
      iprot.readStructBegin();
7215
      while (true)
7216
      {
7217
        field = iprot.readFieldBegin();
3430 rajveer 7218
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7219
          break;
7220
        }
3430 rajveer 7221
        switch (field.id) {
7222
          case 0: // SUCCESS
7223
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7224
              {
7225
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
7226
                this.success = new ArrayList<AwbUpdate>(_list9.size);
7227
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 7228
                {
3430 rajveer 7229
                  AwbUpdate _elem11; // required
7230
                  _elem11 = new AwbUpdate();
7231
                  _elem11.read(iprot);
7232
                  this.success.add(_elem11);
412 ashish 7233
                }
3430 rajveer 7234
                iprot.readListEnd();
412 ashish 7235
              }
3430 rajveer 7236
            } else { 
7237
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7238
            }
7239
            break;
7240
          case 1: // SE
7241
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7242
              this.se = new LogisticsServiceException();
7243
              this.se.read(iprot);
7244
            } else { 
7245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7246
            }
7247
            break;
7248
          default:
7249
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7250
        }
3430 rajveer 7251
        iprot.readFieldEnd();
412 ashish 7252
      }
7253
      iprot.readStructEnd();
7254
      validate();
7255
    }
7256
 
3430 rajveer 7257
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7258
      oprot.writeStructBegin(STRUCT_DESC);
7259
 
7260
      if (this.isSetSuccess()) {
7261
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7262
        {
3430 rajveer 7263
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 7264
          for (AwbUpdate _iter12 : this.success)
412 ashish 7265
          {
3044 chandransh 7266
            _iter12.write(oprot);
412 ashish 7267
          }
7268
          oprot.writeListEnd();
7269
        }
7270
        oprot.writeFieldEnd();
648 chandransh 7271
      } else if (this.isSetSe()) {
7272
        oprot.writeFieldBegin(SE_FIELD_DESC);
7273
        this.se.write(oprot);
7274
        oprot.writeFieldEnd();
412 ashish 7275
      }
7276
      oprot.writeFieldStop();
7277
      oprot.writeStructEnd();
7278
    }
7279
 
7280
    @Override
7281
    public String toString() {
648 chandransh 7282
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7283
      boolean first = true;
7284
 
7285
      sb.append("success:");
7286
      if (this.success == null) {
7287
        sb.append("null");
7288
      } else {
7289
        sb.append(this.success);
7290
      }
7291
      first = false;
648 chandransh 7292
      if (!first) sb.append(", ");
7293
      sb.append("se:");
7294
      if (this.se == null) {
7295
        sb.append("null");
7296
      } else {
7297
        sb.append(this.se);
7298
      }
7299
      first = false;
412 ashish 7300
      sb.append(")");
7301
      return sb.toString();
7302
    }
7303
 
3430 rajveer 7304
    public void validate() throws org.apache.thrift.TException {
412 ashish 7305
      // check for required fields
7306
    }
7307
 
3430 rajveer 7308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7309
      try {
7310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7311
      } catch (org.apache.thrift.TException te) {
7312
        throw new java.io.IOException(te);
7313
      }
7314
    }
7315
 
7316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7317
      try {
7318
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7319
      } catch (org.apache.thrift.TException te) {
7320
        throw new java.io.IOException(te);
7321
      }
7322
    }
7323
 
412 ashish 7324
  }
7325
 
6643 rajveer 7326
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7328
 
7329
    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);
7330
 
7331
    private AwbUpdate update; // required
7332
 
7333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7335
      UPDATE((short)1, "update");
7336
 
7337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7338
 
7339
      static {
7340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7341
          byName.put(field.getFieldName(), field);
7342
        }
7343
      }
7344
 
7345
      /**
7346
       * Find the _Fields constant that matches fieldId, or null if its not found.
7347
       */
7348
      public static _Fields findByThriftId(int fieldId) {
7349
        switch(fieldId) {
7350
          case 1: // UPDATE
7351
            return UPDATE;
7352
          default:
7353
            return null;
7354
        }
7355
      }
7356
 
7357
      /**
7358
       * Find the _Fields constant that matches fieldId, throwing an exception
7359
       * if it is not found.
7360
       */
7361
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7362
        _Fields fields = findByThriftId(fieldId);
7363
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7364
        return fields;
7365
      }
7366
 
7367
      /**
7368
       * Find the _Fields constant that matches name, or null if its not found.
7369
       */
7370
      public static _Fields findByName(String name) {
7371
        return byName.get(name);
7372
      }
7373
 
7374
      private final short _thriftId;
7375
      private final String _fieldName;
7376
 
7377
      _Fields(short thriftId, String fieldName) {
7378
        _thriftId = thriftId;
7379
        _fieldName = fieldName;
7380
      }
7381
 
7382
      public short getThriftFieldId() {
7383
        return _thriftId;
7384
      }
7385
 
7386
      public String getFieldName() {
7387
        return _fieldName;
7388
      }
7389
    }
7390
 
7391
    // isset id assignments
7392
 
7393
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7394
    static {
7395
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7396
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7397
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7400
    }
7401
 
7402
    public storeShipmentInfo_args() {
7403
    }
7404
 
7405
    public storeShipmentInfo_args(
7406
      AwbUpdate update)
7407
    {
7408
      this();
7409
      this.update = update;
7410
    }
7411
 
7412
    /**
7413
     * Performs a deep copy on <i>other</i>.
7414
     */
7415
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7416
      if (other.isSetUpdate()) {
7417
        this.update = new AwbUpdate(other.update);
7418
      }
7419
    }
7420
 
7421
    public storeShipmentInfo_args deepCopy() {
7422
      return new storeShipmentInfo_args(this);
7423
    }
7424
 
7425
    @Override
7426
    public void clear() {
7427
      this.update = null;
7428
    }
7429
 
7430
    public AwbUpdate getUpdate() {
7431
      return this.update;
7432
    }
7433
 
7434
    public void setUpdate(AwbUpdate update) {
7435
      this.update = update;
7436
    }
7437
 
7438
    public void unsetUpdate() {
7439
      this.update = null;
7440
    }
7441
 
7442
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7443
    public boolean isSetUpdate() {
7444
      return this.update != null;
7445
    }
7446
 
7447
    public void setUpdateIsSet(boolean value) {
7448
      if (!value) {
7449
        this.update = null;
7450
      }
7451
    }
7452
 
7453
    public void setFieldValue(_Fields field, Object value) {
7454
      switch (field) {
7455
      case UPDATE:
7456
        if (value == null) {
7457
          unsetUpdate();
7458
        } else {
7459
          setUpdate((AwbUpdate)value);
7460
        }
7461
        break;
7462
 
7463
      }
7464
    }
7465
 
7466
    public Object getFieldValue(_Fields field) {
7467
      switch (field) {
7468
      case UPDATE:
7469
        return getUpdate();
7470
 
7471
      }
7472
      throw new IllegalStateException();
7473
    }
7474
 
7475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7476
    public boolean isSet(_Fields field) {
7477
      if (field == null) {
7478
        throw new IllegalArgumentException();
7479
      }
7480
 
7481
      switch (field) {
7482
      case UPDATE:
7483
        return isSetUpdate();
7484
      }
7485
      throw new IllegalStateException();
7486
    }
7487
 
7488
    @Override
7489
    public boolean equals(Object that) {
7490
      if (that == null)
7491
        return false;
7492
      if (that instanceof storeShipmentInfo_args)
7493
        return this.equals((storeShipmentInfo_args)that);
7494
      return false;
7495
    }
7496
 
7497
    public boolean equals(storeShipmentInfo_args that) {
7498
      if (that == null)
7499
        return false;
7500
 
7501
      boolean this_present_update = true && this.isSetUpdate();
7502
      boolean that_present_update = true && that.isSetUpdate();
7503
      if (this_present_update || that_present_update) {
7504
        if (!(this_present_update && that_present_update))
7505
          return false;
7506
        if (!this.update.equals(that.update))
7507
          return false;
7508
      }
7509
 
7510
      return true;
7511
    }
7512
 
7513
    @Override
7514
    public int hashCode() {
7515
      return 0;
7516
    }
7517
 
7518
    public int compareTo(storeShipmentInfo_args other) {
7519
      if (!getClass().equals(other.getClass())) {
7520
        return getClass().getName().compareTo(other.getClass().getName());
7521
      }
7522
 
7523
      int lastComparison = 0;
7524
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7525
 
7526
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7527
      if (lastComparison != 0) {
7528
        return lastComparison;
7529
      }
7530
      if (isSetUpdate()) {
7531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7532
        if (lastComparison != 0) {
7533
          return lastComparison;
7534
        }
7535
      }
7536
      return 0;
7537
    }
7538
 
7539
    public _Fields fieldForId(int fieldId) {
7540
      return _Fields.findByThriftId(fieldId);
7541
    }
7542
 
7543
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7544
      org.apache.thrift.protocol.TField field;
7545
      iprot.readStructBegin();
7546
      while (true)
7547
      {
7548
        field = iprot.readFieldBegin();
7549
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7550
          break;
7551
        }
7552
        switch (field.id) {
7553
          case 1: // UPDATE
7554
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7555
              this.update = new AwbUpdate();
7556
              this.update.read(iprot);
7557
            } else { 
7558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7559
            }
7560
            break;
7561
          default:
7562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7563
        }
7564
        iprot.readFieldEnd();
7565
      }
7566
      iprot.readStructEnd();
7567
      validate();
7568
    }
7569
 
7570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7571
      validate();
7572
 
7573
      oprot.writeStructBegin(STRUCT_DESC);
7574
      if (this.update != null) {
7575
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7576
        this.update.write(oprot);
7577
        oprot.writeFieldEnd();
7578
      }
7579
      oprot.writeFieldStop();
7580
      oprot.writeStructEnd();
7581
    }
7582
 
7583
    @Override
7584
    public String toString() {
7585
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
7586
      boolean first = true;
7587
 
7588
      sb.append("update:");
7589
      if (this.update == null) {
7590
        sb.append("null");
7591
      } else {
7592
        sb.append(this.update);
7593
      }
7594
      first = false;
7595
      sb.append(")");
7596
      return sb.toString();
7597
    }
7598
 
7599
    public void validate() throws org.apache.thrift.TException {
7600
      // check for required fields
7601
    }
7602
 
7603
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7604
      try {
7605
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7606
      } catch (org.apache.thrift.TException te) {
7607
        throw new java.io.IOException(te);
7608
      }
7609
    }
7610
 
7611
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7612
      try {
7613
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7614
      } catch (org.apache.thrift.TException te) {
7615
        throw new java.io.IOException(te);
7616
      }
7617
    }
7618
 
7619
  }
7620
 
7621
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7622
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
7623
 
7624
    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);
7625
 
7626
    private LogisticsServiceException se; // required
7627
 
7628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7629
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7630
      SE((short)1, "se");
7631
 
7632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7633
 
7634
      static {
7635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7636
          byName.put(field.getFieldName(), field);
7637
        }
7638
      }
7639
 
7640
      /**
7641
       * Find the _Fields constant that matches fieldId, or null if its not found.
7642
       */
7643
      public static _Fields findByThriftId(int fieldId) {
7644
        switch(fieldId) {
7645
          case 1: // SE
7646
            return SE;
7647
          default:
7648
            return null;
7649
        }
7650
      }
7651
 
7652
      /**
7653
       * Find the _Fields constant that matches fieldId, throwing an exception
7654
       * if it is not found.
7655
       */
7656
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7657
        _Fields fields = findByThriftId(fieldId);
7658
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7659
        return fields;
7660
      }
7661
 
7662
      /**
7663
       * Find the _Fields constant that matches name, or null if its not found.
7664
       */
7665
      public static _Fields findByName(String name) {
7666
        return byName.get(name);
7667
      }
7668
 
7669
      private final short _thriftId;
7670
      private final String _fieldName;
7671
 
7672
      _Fields(short thriftId, String fieldName) {
7673
        _thriftId = thriftId;
7674
        _fieldName = fieldName;
7675
      }
7676
 
7677
      public short getThriftFieldId() {
7678
        return _thriftId;
7679
      }
7680
 
7681
      public String getFieldName() {
7682
        return _fieldName;
7683
      }
7684
    }
7685
 
7686
    // isset id assignments
7687
 
7688
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7689
    static {
7690
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7691
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
7695
    }
7696
 
7697
    public storeShipmentInfo_result() {
7698
    }
7699
 
7700
    public storeShipmentInfo_result(
7701
      LogisticsServiceException se)
7702
    {
7703
      this();
7704
      this.se = se;
7705
    }
7706
 
7707
    /**
7708
     * Performs a deep copy on <i>other</i>.
7709
     */
7710
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
7711
      if (other.isSetSe()) {
7712
        this.se = new LogisticsServiceException(other.se);
7713
      }
7714
    }
7715
 
7716
    public storeShipmentInfo_result deepCopy() {
7717
      return new storeShipmentInfo_result(this);
7718
    }
7719
 
7720
    @Override
7721
    public void clear() {
7722
      this.se = null;
7723
    }
7724
 
7725
    public LogisticsServiceException getSe() {
7726
      return this.se;
7727
    }
7728
 
7729
    public void setSe(LogisticsServiceException se) {
7730
      this.se = se;
7731
    }
7732
 
7733
    public void unsetSe() {
7734
      this.se = null;
7735
    }
7736
 
7737
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7738
    public boolean isSetSe() {
7739
      return this.se != null;
7740
    }
7741
 
7742
    public void setSeIsSet(boolean value) {
7743
      if (!value) {
7744
        this.se = null;
7745
      }
7746
    }
7747
 
7748
    public void setFieldValue(_Fields field, Object value) {
7749
      switch (field) {
7750
      case SE:
7751
        if (value == null) {
7752
          unsetSe();
7753
        } else {
7754
          setSe((LogisticsServiceException)value);
7755
        }
7756
        break;
7757
 
7758
      }
7759
    }
7760
 
7761
    public Object getFieldValue(_Fields field) {
7762
      switch (field) {
7763
      case SE:
7764
        return getSe();
7765
 
7766
      }
7767
      throw new IllegalStateException();
7768
    }
7769
 
7770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7771
    public boolean isSet(_Fields field) {
7772
      if (field == null) {
7773
        throw new IllegalArgumentException();
7774
      }
7775
 
7776
      switch (field) {
7777
      case SE:
7778
        return isSetSe();
7779
      }
7780
      throw new IllegalStateException();
7781
    }
7782
 
7783
    @Override
7784
    public boolean equals(Object that) {
7785
      if (that == null)
7786
        return false;
7787
      if (that instanceof storeShipmentInfo_result)
7788
        return this.equals((storeShipmentInfo_result)that);
7789
      return false;
7790
    }
7791
 
7792
    public boolean equals(storeShipmentInfo_result that) {
7793
      if (that == null)
7794
        return false;
7795
 
7796
      boolean this_present_se = true && this.isSetSe();
7797
      boolean that_present_se = true && that.isSetSe();
7798
      if (this_present_se || that_present_se) {
7799
        if (!(this_present_se && that_present_se))
7800
          return false;
7801
        if (!this.se.equals(that.se))
7802
          return false;
7803
      }
7804
 
7805
      return true;
7806
    }
7807
 
7808
    @Override
7809
    public int hashCode() {
7810
      return 0;
7811
    }
7812
 
7813
    public int compareTo(storeShipmentInfo_result other) {
7814
      if (!getClass().equals(other.getClass())) {
7815
        return getClass().getName().compareTo(other.getClass().getName());
7816
      }
7817
 
7818
      int lastComparison = 0;
7819
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
7820
 
7821
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7822
      if (lastComparison != 0) {
7823
        return lastComparison;
7824
      }
7825
      if (isSetSe()) {
7826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7827
        if (lastComparison != 0) {
7828
          return lastComparison;
7829
        }
7830
      }
7831
      return 0;
7832
    }
7833
 
7834
    public _Fields fieldForId(int fieldId) {
7835
      return _Fields.findByThriftId(fieldId);
7836
    }
7837
 
7838
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7839
      org.apache.thrift.protocol.TField field;
7840
      iprot.readStructBegin();
7841
      while (true)
7842
      {
7843
        field = iprot.readFieldBegin();
7844
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7845
          break;
7846
        }
7847
        switch (field.id) {
7848
          case 1: // SE
7849
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7850
              this.se = new LogisticsServiceException();
7851
              this.se.read(iprot);
7852
            } else { 
7853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7854
            }
7855
            break;
7856
          default:
7857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7858
        }
7859
        iprot.readFieldEnd();
7860
      }
7861
      iprot.readStructEnd();
7862
      validate();
7863
    }
7864
 
7865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7866
      oprot.writeStructBegin(STRUCT_DESC);
7867
 
7868
      if (this.isSetSe()) {
7869
        oprot.writeFieldBegin(SE_FIELD_DESC);
7870
        this.se.write(oprot);
7871
        oprot.writeFieldEnd();
7872
      }
7873
      oprot.writeFieldStop();
7874
      oprot.writeStructEnd();
7875
    }
7876
 
7877
    @Override
7878
    public String toString() {
7879
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
7880
      boolean first = true;
7881
 
7882
      sb.append("se:");
7883
      if (this.se == null) {
7884
        sb.append("null");
7885
      } else {
7886
        sb.append(this.se);
7887
      }
7888
      first = false;
7889
      sb.append(")");
7890
      return sb.toString();
7891
    }
7892
 
7893
    public void validate() throws org.apache.thrift.TException {
7894
      // check for required fields
7895
    }
7896
 
7897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7898
      try {
7899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7900
      } catch (org.apache.thrift.TException te) {
7901
        throw new java.io.IOException(te);
7902
      }
7903
    }
7904
 
7905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7906
      try {
7907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7908
      } catch (org.apache.thrift.TException te) {
7909
        throw new java.io.IOException(te);
7910
      }
7911
    }
7912
 
7913
  }
7914
 
3430 rajveer 7915
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
7916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 7917
 
3430 rajveer 7918
    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);
7919
    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 7920
 
3430 rajveer 7921
    private long providerId; // required
7922
    private String pinCode; // required
730 chandransh 7923
 
7924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 7926
      PROVIDER_ID((short)1, "providerId"),
7927
      PIN_CODE((short)2, "pinCode");
7928
 
7929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7930
 
7931
      static {
7932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7933
          byName.put(field.getFieldName(), field);
7934
        }
7935
      }
7936
 
7937
      /**
7938
       * Find the _Fields constant that matches fieldId, or null if its not found.
7939
       */
7940
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7941
        switch(fieldId) {
7942
          case 1: // PROVIDER_ID
7943
            return PROVIDER_ID;
7944
          case 2: // PIN_CODE
7945
            return PIN_CODE;
7946
          default:
7947
            return null;
7948
        }
730 chandransh 7949
      }
7950
 
7951
      /**
7952
       * Find the _Fields constant that matches fieldId, throwing an exception
7953
       * if it is not found.
7954
       */
7955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7956
        _Fields fields = findByThriftId(fieldId);
7957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7958
        return fields;
7959
      }
7960
 
7961
      /**
7962
       * Find the _Fields constant that matches name, or null if its not found.
7963
       */
7964
      public static _Fields findByName(String name) {
7965
        return byName.get(name);
7966
      }
7967
 
7968
      private final short _thriftId;
7969
      private final String _fieldName;
7970
 
7971
      _Fields(short thriftId, String fieldName) {
7972
        _thriftId = thriftId;
7973
        _fieldName = fieldName;
7974
      }
7975
 
7976
      public short getThriftFieldId() {
7977
        return _thriftId;
7978
      }
7979
 
7980
      public String getFieldName() {
7981
        return _fieldName;
7982
      }
7983
    }
7984
 
7985
    // isset id assignments
7986
    private static final int __PROVIDERID_ISSET_ID = 0;
7987
    private BitSet __isset_bit_vector = new BitSet(1);
7988
 
3430 rajveer 7989
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 7990
    static {
3430 rajveer 7991
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7992
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7993
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7994
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7995
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7996
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7997
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 7998
    }
7999
 
8000
    public getDestinationCode_args() {
8001
    }
8002
 
8003
    public getDestinationCode_args(
8004
      long providerId,
8005
      String pinCode)
8006
    {
8007
      this();
8008
      this.providerId = providerId;
8009
      setProviderIdIsSet(true);
8010
      this.pinCode = pinCode;
8011
    }
8012
 
8013
    /**
8014
     * Performs a deep copy on <i>other</i>.
8015
     */
8016
    public getDestinationCode_args(getDestinationCode_args other) {
8017
      __isset_bit_vector.clear();
8018
      __isset_bit_vector.or(other.__isset_bit_vector);
8019
      this.providerId = other.providerId;
8020
      if (other.isSetPinCode()) {
8021
        this.pinCode = other.pinCode;
8022
      }
8023
    }
8024
 
8025
    public getDestinationCode_args deepCopy() {
8026
      return new getDestinationCode_args(this);
8027
    }
8028
 
3430 rajveer 8029
    @Override
8030
    public void clear() {
8031
      setProviderIdIsSet(false);
8032
      this.providerId = 0;
8033
      this.pinCode = null;
730 chandransh 8034
    }
8035
 
8036
    public long getProviderId() {
8037
      return this.providerId;
8038
    }
8039
 
3430 rajveer 8040
    public void setProviderId(long providerId) {
730 chandransh 8041
      this.providerId = providerId;
8042
      setProviderIdIsSet(true);
8043
    }
8044
 
8045
    public void unsetProviderId() {
8046
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8047
    }
8048
 
3430 rajveer 8049
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8050
    public boolean isSetProviderId() {
8051
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8052
    }
8053
 
8054
    public void setProviderIdIsSet(boolean value) {
8055
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8056
    }
8057
 
8058
    public String getPinCode() {
8059
      return this.pinCode;
8060
    }
8061
 
3430 rajveer 8062
    public void setPinCode(String pinCode) {
730 chandransh 8063
      this.pinCode = pinCode;
8064
    }
8065
 
8066
    public void unsetPinCode() {
8067
      this.pinCode = null;
8068
    }
8069
 
3430 rajveer 8070
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8071
    public boolean isSetPinCode() {
8072
      return this.pinCode != null;
8073
    }
8074
 
8075
    public void setPinCodeIsSet(boolean value) {
8076
      if (!value) {
8077
        this.pinCode = null;
8078
      }
8079
    }
8080
 
8081
    public void setFieldValue(_Fields field, Object value) {
8082
      switch (field) {
8083
      case PROVIDER_ID:
8084
        if (value == null) {
8085
          unsetProviderId();
8086
        } else {
8087
          setProviderId((Long)value);
8088
        }
8089
        break;
8090
 
8091
      case PIN_CODE:
8092
        if (value == null) {
8093
          unsetPinCode();
8094
        } else {
8095
          setPinCode((String)value);
8096
        }
8097
        break;
8098
 
8099
      }
8100
    }
8101
 
8102
    public Object getFieldValue(_Fields field) {
8103
      switch (field) {
8104
      case PROVIDER_ID:
3430 rajveer 8105
        return Long.valueOf(getProviderId());
730 chandransh 8106
 
8107
      case PIN_CODE:
8108
        return getPinCode();
8109
 
8110
      }
8111
      throw new IllegalStateException();
8112
    }
8113
 
3430 rajveer 8114
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8115
    public boolean isSet(_Fields field) {
8116
      if (field == null) {
8117
        throw new IllegalArgumentException();
8118
      }
730 chandransh 8119
 
8120
      switch (field) {
8121
      case PROVIDER_ID:
8122
        return isSetProviderId();
8123
      case PIN_CODE:
8124
        return isSetPinCode();
8125
      }
8126
      throw new IllegalStateException();
8127
    }
8128
 
8129
    @Override
8130
    public boolean equals(Object that) {
8131
      if (that == null)
8132
        return false;
8133
      if (that instanceof getDestinationCode_args)
8134
        return this.equals((getDestinationCode_args)that);
8135
      return false;
8136
    }
8137
 
8138
    public boolean equals(getDestinationCode_args that) {
8139
      if (that == null)
8140
        return false;
8141
 
8142
      boolean this_present_providerId = true;
8143
      boolean that_present_providerId = true;
8144
      if (this_present_providerId || that_present_providerId) {
8145
        if (!(this_present_providerId && that_present_providerId))
8146
          return false;
8147
        if (this.providerId != that.providerId)
8148
          return false;
8149
      }
8150
 
8151
      boolean this_present_pinCode = true && this.isSetPinCode();
8152
      boolean that_present_pinCode = true && that.isSetPinCode();
8153
      if (this_present_pinCode || that_present_pinCode) {
8154
        if (!(this_present_pinCode && that_present_pinCode))
8155
          return false;
8156
        if (!this.pinCode.equals(that.pinCode))
8157
          return false;
8158
      }
8159
 
8160
      return true;
8161
    }
8162
 
8163
    @Override
8164
    public int hashCode() {
8165
      return 0;
8166
    }
8167
 
8168
    public int compareTo(getDestinationCode_args other) {
8169
      if (!getClass().equals(other.getClass())) {
8170
        return getClass().getName().compareTo(other.getClass().getName());
8171
      }
8172
 
8173
      int lastComparison = 0;
8174
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8175
 
3430 rajveer 8176
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8177
      if (lastComparison != 0) {
8178
        return lastComparison;
8179
      }
3430 rajveer 8180
      if (isSetProviderId()) {
8181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8182
        if (lastComparison != 0) {
8183
          return lastComparison;
8184
        }
730 chandransh 8185
      }
3430 rajveer 8186
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8187
      if (lastComparison != 0) {
8188
        return lastComparison;
8189
      }
3430 rajveer 8190
      if (isSetPinCode()) {
8191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8192
        if (lastComparison != 0) {
8193
          return lastComparison;
8194
        }
730 chandransh 8195
      }
8196
      return 0;
8197
    }
8198
 
3430 rajveer 8199
    public _Fields fieldForId(int fieldId) {
8200
      return _Fields.findByThriftId(fieldId);
8201
    }
8202
 
8203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8204
      org.apache.thrift.protocol.TField field;
730 chandransh 8205
      iprot.readStructBegin();
8206
      while (true)
8207
      {
8208
        field = iprot.readFieldBegin();
3430 rajveer 8209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8210
          break;
8211
        }
3430 rajveer 8212
        switch (field.id) {
8213
          case 1: // PROVIDER_ID
8214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8215
              this.providerId = iprot.readI64();
8216
              setProviderIdIsSet(true);
8217
            } else { 
8218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8219
            }
8220
            break;
8221
          case 2: // PIN_CODE
8222
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8223
              this.pinCode = iprot.readString();
8224
            } else { 
8225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8226
            }
8227
            break;
8228
          default:
8229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8230
        }
3430 rajveer 8231
        iprot.readFieldEnd();
730 chandransh 8232
      }
8233
      iprot.readStructEnd();
8234
      validate();
8235
    }
8236
 
3430 rajveer 8237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8238
      validate();
8239
 
8240
      oprot.writeStructBegin(STRUCT_DESC);
8241
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8242
      oprot.writeI64(this.providerId);
8243
      oprot.writeFieldEnd();
8244
      if (this.pinCode != null) {
8245
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8246
        oprot.writeString(this.pinCode);
8247
        oprot.writeFieldEnd();
8248
      }
8249
      oprot.writeFieldStop();
8250
      oprot.writeStructEnd();
8251
    }
8252
 
8253
    @Override
8254
    public String toString() {
8255
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8256
      boolean first = true;
8257
 
8258
      sb.append("providerId:");
8259
      sb.append(this.providerId);
8260
      first = false;
8261
      if (!first) sb.append(", ");
8262
      sb.append("pinCode:");
8263
      if (this.pinCode == null) {
8264
        sb.append("null");
8265
      } else {
8266
        sb.append(this.pinCode);
8267
      }
8268
      first = false;
8269
      sb.append(")");
8270
      return sb.toString();
8271
    }
8272
 
3430 rajveer 8273
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8274
      // check for required fields
8275
    }
8276
 
3430 rajveer 8277
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8278
      try {
8279
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8280
      } catch (org.apache.thrift.TException te) {
8281
        throw new java.io.IOException(te);
8282
      }
8283
    }
8284
 
8285
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8286
      try {
8287
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8288
      } catch (org.apache.thrift.TException te) {
8289
        throw new java.io.IOException(te);
8290
      }
8291
    }
8292
 
730 chandransh 8293
  }
8294
 
3430 rajveer 8295
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8296
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8297
 
3430 rajveer 8298
    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);
8299
    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 8300
 
3430 rajveer 8301
    private String success; // required
8302
    private LogisticsServiceException se; // required
730 chandransh 8303
 
8304
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8305
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8306
      SUCCESS((short)0, "success"),
8307
      SE((short)1, "se");
8308
 
8309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8310
 
8311
      static {
8312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8313
          byName.put(field.getFieldName(), field);
8314
        }
8315
      }
8316
 
8317
      /**
8318
       * Find the _Fields constant that matches fieldId, or null if its not found.
8319
       */
8320
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8321
        switch(fieldId) {
8322
          case 0: // SUCCESS
8323
            return SUCCESS;
8324
          case 1: // SE
8325
            return SE;
8326
          default:
8327
            return null;
8328
        }
730 chandransh 8329
      }
8330
 
8331
      /**
8332
       * Find the _Fields constant that matches fieldId, throwing an exception
8333
       * if it is not found.
8334
       */
8335
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8336
        _Fields fields = findByThriftId(fieldId);
8337
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8338
        return fields;
8339
      }
8340
 
8341
      /**
8342
       * Find the _Fields constant that matches name, or null if its not found.
8343
       */
8344
      public static _Fields findByName(String name) {
8345
        return byName.get(name);
8346
      }
8347
 
8348
      private final short _thriftId;
8349
      private final String _fieldName;
8350
 
8351
      _Fields(short thriftId, String fieldName) {
8352
        _thriftId = thriftId;
8353
        _fieldName = fieldName;
8354
      }
8355
 
8356
      public short getThriftFieldId() {
8357
        return _thriftId;
8358
      }
8359
 
8360
      public String getFieldName() {
8361
        return _fieldName;
8362
      }
8363
    }
8364
 
8365
    // isset id assignments
8366
 
3430 rajveer 8367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8368
    static {
3430 rajveer 8369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8370
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8372
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8376
    }
8377
 
8378
    public getDestinationCode_result() {
8379
    }
8380
 
8381
    public getDestinationCode_result(
8382
      String success,
8383
      LogisticsServiceException se)
8384
    {
8385
      this();
8386
      this.success = success;
8387
      this.se = se;
8388
    }
8389
 
8390
    /**
8391
     * Performs a deep copy on <i>other</i>.
8392
     */
8393
    public getDestinationCode_result(getDestinationCode_result other) {
8394
      if (other.isSetSuccess()) {
8395
        this.success = other.success;
8396
      }
8397
      if (other.isSetSe()) {
8398
        this.se = new LogisticsServiceException(other.se);
8399
      }
8400
    }
8401
 
8402
    public getDestinationCode_result deepCopy() {
8403
      return new getDestinationCode_result(this);
8404
    }
8405
 
3430 rajveer 8406
    @Override
8407
    public void clear() {
8408
      this.success = null;
8409
      this.se = null;
730 chandransh 8410
    }
8411
 
8412
    public String getSuccess() {
8413
      return this.success;
8414
    }
8415
 
3430 rajveer 8416
    public void setSuccess(String success) {
730 chandransh 8417
      this.success = success;
8418
    }
8419
 
8420
    public void unsetSuccess() {
8421
      this.success = null;
8422
    }
8423
 
3430 rajveer 8424
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8425
    public boolean isSetSuccess() {
8426
      return this.success != null;
8427
    }
8428
 
8429
    public void setSuccessIsSet(boolean value) {
8430
      if (!value) {
8431
        this.success = null;
8432
      }
8433
    }
8434
 
8435
    public LogisticsServiceException getSe() {
8436
      return this.se;
8437
    }
8438
 
3430 rajveer 8439
    public void setSe(LogisticsServiceException se) {
730 chandransh 8440
      this.se = se;
8441
    }
8442
 
8443
    public void unsetSe() {
8444
      this.se = null;
8445
    }
8446
 
3430 rajveer 8447
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8448
    public boolean isSetSe() {
8449
      return this.se != null;
8450
    }
8451
 
8452
    public void setSeIsSet(boolean value) {
8453
      if (!value) {
8454
        this.se = null;
8455
      }
8456
    }
8457
 
8458
    public void setFieldValue(_Fields field, Object value) {
8459
      switch (field) {
8460
      case SUCCESS:
8461
        if (value == null) {
8462
          unsetSuccess();
8463
        } else {
8464
          setSuccess((String)value);
8465
        }
8466
        break;
8467
 
8468
      case SE:
8469
        if (value == null) {
8470
          unsetSe();
8471
        } else {
8472
          setSe((LogisticsServiceException)value);
8473
        }
8474
        break;
8475
 
8476
      }
8477
    }
8478
 
8479
    public Object getFieldValue(_Fields field) {
8480
      switch (field) {
8481
      case SUCCESS:
8482
        return getSuccess();
8483
 
8484
      case SE:
8485
        return getSe();
8486
 
8487
      }
8488
      throw new IllegalStateException();
8489
    }
8490
 
3430 rajveer 8491
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8492
    public boolean isSet(_Fields field) {
8493
      if (field == null) {
8494
        throw new IllegalArgumentException();
8495
      }
730 chandransh 8496
 
8497
      switch (field) {
8498
      case SUCCESS:
8499
        return isSetSuccess();
8500
      case SE:
8501
        return isSetSe();
8502
      }
8503
      throw new IllegalStateException();
8504
    }
8505
 
8506
    @Override
8507
    public boolean equals(Object that) {
8508
      if (that == null)
8509
        return false;
8510
      if (that instanceof getDestinationCode_result)
8511
        return this.equals((getDestinationCode_result)that);
8512
      return false;
8513
    }
8514
 
8515
    public boolean equals(getDestinationCode_result that) {
8516
      if (that == null)
8517
        return false;
8518
 
8519
      boolean this_present_success = true && this.isSetSuccess();
8520
      boolean that_present_success = true && that.isSetSuccess();
8521
      if (this_present_success || that_present_success) {
8522
        if (!(this_present_success && that_present_success))
8523
          return false;
8524
        if (!this.success.equals(that.success))
8525
          return false;
8526
      }
8527
 
8528
      boolean this_present_se = true && this.isSetSe();
8529
      boolean that_present_se = true && that.isSetSe();
8530
      if (this_present_se || that_present_se) {
8531
        if (!(this_present_se && that_present_se))
8532
          return false;
8533
        if (!this.se.equals(that.se))
8534
          return false;
8535
      }
8536
 
8537
      return true;
8538
    }
8539
 
8540
    @Override
8541
    public int hashCode() {
8542
      return 0;
8543
    }
8544
 
8545
    public int compareTo(getDestinationCode_result other) {
8546
      if (!getClass().equals(other.getClass())) {
8547
        return getClass().getName().compareTo(other.getClass().getName());
8548
      }
8549
 
8550
      int lastComparison = 0;
8551
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8552
 
3430 rajveer 8553
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8554
      if (lastComparison != 0) {
8555
        return lastComparison;
8556
      }
3430 rajveer 8557
      if (isSetSuccess()) {
8558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8559
        if (lastComparison != 0) {
8560
          return lastComparison;
8561
        }
730 chandransh 8562
      }
3430 rajveer 8563
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8564
      if (lastComparison != 0) {
8565
        return lastComparison;
8566
      }
3430 rajveer 8567
      if (isSetSe()) {
8568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8569
        if (lastComparison != 0) {
8570
          return lastComparison;
8571
        }
730 chandransh 8572
      }
8573
      return 0;
8574
    }
8575
 
3430 rajveer 8576
    public _Fields fieldForId(int fieldId) {
8577
      return _Fields.findByThriftId(fieldId);
8578
    }
8579
 
8580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8581
      org.apache.thrift.protocol.TField field;
730 chandransh 8582
      iprot.readStructBegin();
8583
      while (true)
8584
      {
8585
        field = iprot.readFieldBegin();
3430 rajveer 8586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8587
          break;
8588
        }
3430 rajveer 8589
        switch (field.id) {
8590
          case 0: // SUCCESS
8591
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8592
              this.success = iprot.readString();
8593
            } else { 
8594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8595
            }
8596
            break;
8597
          case 1: // SE
8598
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8599
              this.se = new LogisticsServiceException();
8600
              this.se.read(iprot);
8601
            } else { 
8602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8603
            }
8604
            break;
8605
          default:
8606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8607
        }
3430 rajveer 8608
        iprot.readFieldEnd();
730 chandransh 8609
      }
8610
      iprot.readStructEnd();
8611
      validate();
8612
    }
8613
 
3430 rajveer 8614
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8615
      oprot.writeStructBegin(STRUCT_DESC);
8616
 
8617
      if (this.isSetSuccess()) {
8618
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8619
        oprot.writeString(this.success);
8620
        oprot.writeFieldEnd();
8621
      } else if (this.isSetSe()) {
8622
        oprot.writeFieldBegin(SE_FIELD_DESC);
8623
        this.se.write(oprot);
8624
        oprot.writeFieldEnd();
8625
      }
8626
      oprot.writeFieldStop();
8627
      oprot.writeStructEnd();
8628
    }
8629
 
8630
    @Override
8631
    public String toString() {
8632
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
8633
      boolean first = true;
8634
 
8635
      sb.append("success:");
8636
      if (this.success == null) {
8637
        sb.append("null");
8638
      } else {
8639
        sb.append(this.success);
8640
      }
8641
      first = false;
8642
      if (!first) sb.append(", ");
8643
      sb.append("se:");
8644
      if (this.se == null) {
8645
        sb.append("null");
8646
      } else {
8647
        sb.append(this.se);
8648
      }
8649
      first = false;
8650
      sb.append(")");
8651
      return sb.toString();
8652
    }
8653
 
3430 rajveer 8654
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8655
      // check for required fields
8656
    }
8657
 
3430 rajveer 8658
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8659
      try {
8660
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8661
      } catch (org.apache.thrift.TException te) {
8662
        throw new java.io.IOException(te);
8663
      }
8664
    }
8665
 
8666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8667
      try {
8668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8669
      } catch (org.apache.thrift.TException te) {
8670
        throw new java.io.IOException(te);
8671
      }
8672
    }
8673
 
730 chandransh 8674
  }
8675
 
3430 rajveer 8676
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
8677
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 8678
 
3430 rajveer 8679
    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);
8680
    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 8681
 
3430 rajveer 8682
    private long providerId; // required
8683
    private String type; // required
1139 chandransh 8684
 
8685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 8687
      PROVIDER_ID((short)1, "providerId"),
8688
      TYPE((short)2, "type");
1139 chandransh 8689
 
8690
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8691
 
8692
      static {
8693
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8694
          byName.put(field.getFieldName(), field);
8695
        }
8696
      }
8697
 
8698
      /**
8699
       * Find the _Fields constant that matches fieldId, or null if its not found.
8700
       */
8701
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8702
        switch(fieldId) {
8703
          case 1: // PROVIDER_ID
8704
            return PROVIDER_ID;
8705
          case 2: // TYPE
8706
            return TYPE;
8707
          default:
8708
            return null;
8709
        }
1139 chandransh 8710
      }
8711
 
8712
      /**
8713
       * Find the _Fields constant that matches fieldId, throwing an exception
8714
       * if it is not found.
8715
       */
8716
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8717
        _Fields fields = findByThriftId(fieldId);
8718
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8719
        return fields;
8720
      }
8721
 
8722
      /**
8723
       * Find the _Fields constant that matches name, or null if its not found.
8724
       */
8725
      public static _Fields findByName(String name) {
8726
        return byName.get(name);
8727
      }
8728
 
8729
      private final short _thriftId;
8730
      private final String _fieldName;
8731
 
8732
      _Fields(short thriftId, String fieldName) {
8733
        _thriftId = thriftId;
8734
        _fieldName = fieldName;
8735
      }
8736
 
8737
      public short getThriftFieldId() {
8738
        return _thriftId;
8739
      }
8740
 
8741
      public String getFieldName() {
8742
        return _fieldName;
8743
      }
8744
    }
8745
 
8746
    // isset id assignments
8747
    private static final int __PROVIDERID_ISSET_ID = 0;
8748
    private BitSet __isset_bit_vector = new BitSet(1);
8749
 
3430 rajveer 8750
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8751
    static {
3430 rajveer 8752
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8753
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8754
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8755
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 8759
    }
8760
 
8761
    public getFreeAwbCount_args() {
8762
    }
8763
 
8764
    public getFreeAwbCount_args(
3103 chandransh 8765
      long providerId,
8766
      String type)
1139 chandransh 8767
    {
8768
      this();
8769
      this.providerId = providerId;
8770
      setProviderIdIsSet(true);
3103 chandransh 8771
      this.type = type;
1139 chandransh 8772
    }
8773
 
8774
    /**
8775
     * Performs a deep copy on <i>other</i>.
8776
     */
8777
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
8778
      __isset_bit_vector.clear();
8779
      __isset_bit_vector.or(other.__isset_bit_vector);
8780
      this.providerId = other.providerId;
3103 chandransh 8781
      if (other.isSetType()) {
8782
        this.type = other.type;
8783
      }
1139 chandransh 8784
    }
8785
 
8786
    public getFreeAwbCount_args deepCopy() {
8787
      return new getFreeAwbCount_args(this);
8788
    }
8789
 
3430 rajveer 8790
    @Override
8791
    public void clear() {
8792
      setProviderIdIsSet(false);
8793
      this.providerId = 0;
8794
      this.type = null;
1139 chandransh 8795
    }
8796
 
8797
    public long getProviderId() {
8798
      return this.providerId;
8799
    }
8800
 
3430 rajveer 8801
    public void setProviderId(long providerId) {
1139 chandransh 8802
      this.providerId = providerId;
8803
      setProviderIdIsSet(true);
8804
    }
8805
 
8806
    public void unsetProviderId() {
8807
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8808
    }
8809
 
3430 rajveer 8810
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 8811
    public boolean isSetProviderId() {
8812
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8813
    }
8814
 
8815
    public void setProviderIdIsSet(boolean value) {
8816
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8817
    }
8818
 
3103 chandransh 8819
    public String getType() {
8820
      return this.type;
8821
    }
8822
 
3430 rajveer 8823
    public void setType(String type) {
3103 chandransh 8824
      this.type = type;
8825
    }
8826
 
8827
    public void unsetType() {
8828
      this.type = null;
8829
    }
8830
 
3430 rajveer 8831
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 8832
    public boolean isSetType() {
8833
      return this.type != null;
8834
    }
8835
 
8836
    public void setTypeIsSet(boolean value) {
8837
      if (!value) {
8838
        this.type = null;
8839
      }
8840
    }
8841
 
1139 chandransh 8842
    public void setFieldValue(_Fields field, Object value) {
8843
      switch (field) {
8844
      case PROVIDER_ID:
8845
        if (value == null) {
8846
          unsetProviderId();
8847
        } else {
8848
          setProviderId((Long)value);
8849
        }
8850
        break;
8851
 
3103 chandransh 8852
      case TYPE:
8853
        if (value == null) {
8854
          unsetType();
8855
        } else {
8856
          setType((String)value);
8857
        }
8858
        break;
8859
 
1139 chandransh 8860
      }
8861
    }
8862
 
8863
    public Object getFieldValue(_Fields field) {
8864
      switch (field) {
8865
      case PROVIDER_ID:
3430 rajveer 8866
        return Long.valueOf(getProviderId());
1139 chandransh 8867
 
3103 chandransh 8868
      case TYPE:
8869
        return getType();
8870
 
1139 chandransh 8871
      }
8872
      throw new IllegalStateException();
8873
    }
8874
 
3430 rajveer 8875
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8876
    public boolean isSet(_Fields field) {
8877
      if (field == null) {
8878
        throw new IllegalArgumentException();
8879
      }
1139 chandransh 8880
 
8881
      switch (field) {
8882
      case PROVIDER_ID:
8883
        return isSetProviderId();
3103 chandransh 8884
      case TYPE:
8885
        return isSetType();
1139 chandransh 8886
      }
8887
      throw new IllegalStateException();
8888
    }
8889
 
8890
    @Override
8891
    public boolean equals(Object that) {
8892
      if (that == null)
8893
        return false;
8894
      if (that instanceof getFreeAwbCount_args)
8895
        return this.equals((getFreeAwbCount_args)that);
8896
      return false;
8897
    }
8898
 
8899
    public boolean equals(getFreeAwbCount_args that) {
8900
      if (that == null)
8901
        return false;
8902
 
8903
      boolean this_present_providerId = true;
8904
      boolean that_present_providerId = true;
8905
      if (this_present_providerId || that_present_providerId) {
8906
        if (!(this_present_providerId && that_present_providerId))
8907
          return false;
8908
        if (this.providerId != that.providerId)
8909
          return false;
8910
      }
8911
 
3103 chandransh 8912
      boolean this_present_type = true && this.isSetType();
8913
      boolean that_present_type = true && that.isSetType();
8914
      if (this_present_type || that_present_type) {
8915
        if (!(this_present_type && that_present_type))
8916
          return false;
8917
        if (!this.type.equals(that.type))
8918
          return false;
8919
      }
8920
 
1139 chandransh 8921
      return true;
8922
    }
8923
 
8924
    @Override
8925
    public int hashCode() {
8926
      return 0;
8927
    }
8928
 
8929
    public int compareTo(getFreeAwbCount_args other) {
8930
      if (!getClass().equals(other.getClass())) {
8931
        return getClass().getName().compareTo(other.getClass().getName());
8932
      }
8933
 
8934
      int lastComparison = 0;
8935
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
8936
 
3430 rajveer 8937
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 8938
      if (lastComparison != 0) {
8939
        return lastComparison;
8940
      }
3430 rajveer 8941
      if (isSetProviderId()) {
8942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8943
        if (lastComparison != 0) {
8944
          return lastComparison;
8945
        }
1139 chandransh 8946
      }
3430 rajveer 8947
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 8948
      if (lastComparison != 0) {
8949
        return lastComparison;
8950
      }
3430 rajveer 8951
      if (isSetType()) {
8952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
8953
        if (lastComparison != 0) {
8954
          return lastComparison;
8955
        }
3103 chandransh 8956
      }
1139 chandransh 8957
      return 0;
8958
    }
8959
 
3430 rajveer 8960
    public _Fields fieldForId(int fieldId) {
8961
      return _Fields.findByThriftId(fieldId);
8962
    }
8963
 
8964
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8965
      org.apache.thrift.protocol.TField field;
1139 chandransh 8966
      iprot.readStructBegin();
8967
      while (true)
8968
      {
8969
        field = iprot.readFieldBegin();
3430 rajveer 8970
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 8971
          break;
8972
        }
3430 rajveer 8973
        switch (field.id) {
8974
          case 1: // PROVIDER_ID
8975
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8976
              this.providerId = iprot.readI64();
8977
              setProviderIdIsSet(true);
8978
            } else { 
8979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8980
            }
8981
            break;
8982
          case 2: // TYPE
8983
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8984
              this.type = iprot.readString();
8985
            } else { 
8986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8987
            }
8988
            break;
8989
          default:
8990
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 8991
        }
3430 rajveer 8992
        iprot.readFieldEnd();
1139 chandransh 8993
      }
8994
      iprot.readStructEnd();
8995
      validate();
8996
    }
8997
 
3430 rajveer 8998
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 8999
      validate();
9000
 
9001
      oprot.writeStructBegin(STRUCT_DESC);
9002
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9003
      oprot.writeI64(this.providerId);
9004
      oprot.writeFieldEnd();
3103 chandransh 9005
      if (this.type != null) {
9006
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9007
        oprot.writeString(this.type);
9008
        oprot.writeFieldEnd();
9009
      }
1139 chandransh 9010
      oprot.writeFieldStop();
9011
      oprot.writeStructEnd();
9012
    }
9013
 
9014
    @Override
9015
    public String toString() {
9016
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9017
      boolean first = true;
9018
 
9019
      sb.append("providerId:");
9020
      sb.append(this.providerId);
9021
      first = false;
3103 chandransh 9022
      if (!first) sb.append(", ");
9023
      sb.append("type:");
9024
      if (this.type == null) {
9025
        sb.append("null");
9026
      } else {
9027
        sb.append(this.type);
9028
      }
9029
      first = false;
1139 chandransh 9030
      sb.append(")");
9031
      return sb.toString();
9032
    }
9033
 
3430 rajveer 9034
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9035
      // check for required fields
9036
    }
9037
 
3430 rajveer 9038
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9039
      try {
9040
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9041
      } catch (org.apache.thrift.TException te) {
9042
        throw new java.io.IOException(te);
9043
      }
9044
    }
9045
 
9046
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9047
      try {
9048
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9049
      } catch (org.apache.thrift.TException te) {
9050
        throw new java.io.IOException(te);
9051
      }
9052
    }
9053
 
1139 chandransh 9054
  }
9055
 
3430 rajveer 9056
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9057
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9058
 
3430 rajveer 9059
    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 9060
 
3430 rajveer 9061
    private long success; // required
1139 chandransh 9062
 
9063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9065
      SUCCESS((short)0, "success");
9066
 
9067
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9068
 
9069
      static {
9070
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9071
          byName.put(field.getFieldName(), field);
9072
        }
9073
      }
9074
 
9075
      /**
9076
       * Find the _Fields constant that matches fieldId, or null if its not found.
9077
       */
9078
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9079
        switch(fieldId) {
9080
          case 0: // SUCCESS
9081
            return SUCCESS;
9082
          default:
9083
            return null;
9084
        }
1139 chandransh 9085
      }
9086
 
9087
      /**
9088
       * Find the _Fields constant that matches fieldId, throwing an exception
9089
       * if it is not found.
9090
       */
9091
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9092
        _Fields fields = findByThriftId(fieldId);
9093
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9094
        return fields;
9095
      }
9096
 
9097
      /**
9098
       * Find the _Fields constant that matches name, or null if its not found.
9099
       */
9100
      public static _Fields findByName(String name) {
9101
        return byName.get(name);
9102
      }
9103
 
9104
      private final short _thriftId;
9105
      private final String _fieldName;
9106
 
9107
      _Fields(short thriftId, String fieldName) {
9108
        _thriftId = thriftId;
9109
        _fieldName = fieldName;
9110
      }
9111
 
9112
      public short getThriftFieldId() {
9113
        return _thriftId;
9114
      }
9115
 
9116
      public String getFieldName() {
9117
        return _fieldName;
9118
      }
9119
    }
9120
 
9121
    // isset id assignments
9122
    private static final int __SUCCESS_ISSET_ID = 0;
9123
    private BitSet __isset_bit_vector = new BitSet(1);
9124
 
3430 rajveer 9125
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9126
    static {
3430 rajveer 9127
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9128
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9130
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9131
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9132
    }
9133
 
9134
    public getFreeAwbCount_result() {
9135
    }
9136
 
9137
    public getFreeAwbCount_result(
9138
      long success)
9139
    {
9140
      this();
9141
      this.success = success;
9142
      setSuccessIsSet(true);
9143
    }
9144
 
9145
    /**
9146
     * Performs a deep copy on <i>other</i>.
9147
     */
9148
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9149
      __isset_bit_vector.clear();
9150
      __isset_bit_vector.or(other.__isset_bit_vector);
9151
      this.success = other.success;
9152
    }
9153
 
9154
    public getFreeAwbCount_result deepCopy() {
9155
      return new getFreeAwbCount_result(this);
9156
    }
9157
 
3430 rajveer 9158
    @Override
9159
    public void clear() {
9160
      setSuccessIsSet(false);
9161
      this.success = 0;
1139 chandransh 9162
    }
9163
 
9164
    public long getSuccess() {
9165
      return this.success;
9166
    }
9167
 
3430 rajveer 9168
    public void setSuccess(long success) {
1139 chandransh 9169
      this.success = success;
9170
      setSuccessIsSet(true);
9171
    }
9172
 
9173
    public void unsetSuccess() {
9174
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9175
    }
9176
 
3430 rajveer 9177
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9178
    public boolean isSetSuccess() {
9179
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9180
    }
9181
 
9182
    public void setSuccessIsSet(boolean value) {
9183
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9184
    }
9185
 
9186
    public void setFieldValue(_Fields field, Object value) {
9187
      switch (field) {
9188
      case SUCCESS:
9189
        if (value == null) {
9190
          unsetSuccess();
9191
        } else {
9192
          setSuccess((Long)value);
9193
        }
9194
        break;
9195
 
9196
      }
9197
    }
9198
 
9199
    public Object getFieldValue(_Fields field) {
9200
      switch (field) {
9201
      case SUCCESS:
3430 rajveer 9202
        return Long.valueOf(getSuccess());
1139 chandransh 9203
 
9204
      }
9205
      throw new IllegalStateException();
9206
    }
9207
 
3430 rajveer 9208
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9209
    public boolean isSet(_Fields field) {
9210
      if (field == null) {
9211
        throw new IllegalArgumentException();
9212
      }
1139 chandransh 9213
 
9214
      switch (field) {
9215
      case SUCCESS:
9216
        return isSetSuccess();
9217
      }
9218
      throw new IllegalStateException();
9219
    }
9220
 
9221
    @Override
9222
    public boolean equals(Object that) {
9223
      if (that == null)
9224
        return false;
9225
      if (that instanceof getFreeAwbCount_result)
9226
        return this.equals((getFreeAwbCount_result)that);
9227
      return false;
9228
    }
9229
 
9230
    public boolean equals(getFreeAwbCount_result that) {
9231
      if (that == null)
9232
        return false;
9233
 
9234
      boolean this_present_success = true;
9235
      boolean that_present_success = true;
9236
      if (this_present_success || that_present_success) {
9237
        if (!(this_present_success && that_present_success))
9238
          return false;
9239
        if (this.success != that.success)
9240
          return false;
9241
      }
9242
 
9243
      return true;
9244
    }
9245
 
9246
    @Override
9247
    public int hashCode() {
9248
      return 0;
9249
    }
9250
 
9251
    public int compareTo(getFreeAwbCount_result other) {
9252
      if (!getClass().equals(other.getClass())) {
9253
        return getClass().getName().compareTo(other.getClass().getName());
9254
      }
9255
 
9256
      int lastComparison = 0;
9257
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9258
 
3430 rajveer 9259
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9260
      if (lastComparison != 0) {
9261
        return lastComparison;
9262
      }
3430 rajveer 9263
      if (isSetSuccess()) {
9264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9265
        if (lastComparison != 0) {
9266
          return lastComparison;
9267
        }
1139 chandransh 9268
      }
9269
      return 0;
9270
    }
9271
 
3430 rajveer 9272
    public _Fields fieldForId(int fieldId) {
9273
      return _Fields.findByThriftId(fieldId);
9274
    }
9275
 
9276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9277
      org.apache.thrift.protocol.TField field;
1139 chandransh 9278
      iprot.readStructBegin();
9279
      while (true)
9280
      {
9281
        field = iprot.readFieldBegin();
3430 rajveer 9282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9283
          break;
9284
        }
3430 rajveer 9285
        switch (field.id) {
9286
          case 0: // SUCCESS
9287
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9288
              this.success = iprot.readI64();
9289
              setSuccessIsSet(true);
9290
            } else { 
9291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9292
            }
9293
            break;
9294
          default:
9295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9296
        }
3430 rajveer 9297
        iprot.readFieldEnd();
1139 chandransh 9298
      }
9299
      iprot.readStructEnd();
9300
      validate();
9301
    }
9302
 
3430 rajveer 9303
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9304
      oprot.writeStructBegin(STRUCT_DESC);
9305
 
9306
      if (this.isSetSuccess()) {
9307
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9308
        oprot.writeI64(this.success);
9309
        oprot.writeFieldEnd();
9310
      }
9311
      oprot.writeFieldStop();
9312
      oprot.writeStructEnd();
9313
    }
9314
 
9315
    @Override
9316
    public String toString() {
9317
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9318
      boolean first = true;
9319
 
9320
      sb.append("success:");
9321
      sb.append(this.success);
9322
      first = false;
9323
      sb.append(")");
9324
      return sb.toString();
9325
    }
9326
 
3430 rajveer 9327
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9328
      // check for required fields
9329
    }
9330
 
3430 rajveer 9331
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9332
      try {
9333
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9334
      } catch (org.apache.thrift.TException te) {
9335
        throw new java.io.IOException(te);
9336
      }
9337
    }
9338
 
9339
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9340
      try {
9341
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9342
      } catch (org.apache.thrift.TException te) {
9343
        throw new java.io.IOException(te);
9344
      }
9345
    }
9346
 
1139 chandransh 9347
  }
9348
 
3430 rajveer 9349
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9350
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9351
 
3430 rajveer 9352
    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);
9353
    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 9354
 
3430 rajveer 9355
    private long fromDate; // required
9356
    private long toDate; // required
1730 ankur.sing 9357
 
9358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9360
      FROM_DATE((short)1, "fromDate"),
9361
      TO_DATE((short)2, "toDate");
9362
 
9363
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9364
 
9365
      static {
9366
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9367
          byName.put(field.getFieldName(), field);
9368
        }
9369
      }
9370
 
9371
      /**
9372
       * Find the _Fields constant that matches fieldId, or null if its not found.
9373
       */
9374
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9375
        switch(fieldId) {
9376
          case 1: // FROM_DATE
9377
            return FROM_DATE;
9378
          case 2: // TO_DATE
9379
            return TO_DATE;
9380
          default:
9381
            return null;
9382
        }
1730 ankur.sing 9383
      }
9384
 
9385
      /**
9386
       * Find the _Fields constant that matches fieldId, throwing an exception
9387
       * if it is not found.
9388
       */
9389
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9390
        _Fields fields = findByThriftId(fieldId);
9391
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9392
        return fields;
9393
      }
9394
 
9395
      /**
9396
       * Find the _Fields constant that matches name, or null if its not found.
9397
       */
9398
      public static _Fields findByName(String name) {
9399
        return byName.get(name);
9400
      }
9401
 
9402
      private final short _thriftId;
9403
      private final String _fieldName;
9404
 
9405
      _Fields(short thriftId, String fieldName) {
9406
        _thriftId = thriftId;
9407
        _fieldName = fieldName;
9408
      }
9409
 
9410
      public short getThriftFieldId() {
9411
        return _thriftId;
9412
      }
9413
 
9414
      public String getFieldName() {
9415
        return _fieldName;
9416
      }
9417
    }
9418
 
9419
    // isset id assignments
9420
    private static final int __FROMDATE_ISSET_ID = 0;
9421
    private static final int __TODATE_ISSET_ID = 1;
9422
    private BitSet __isset_bit_vector = new BitSet(2);
9423
 
3430 rajveer 9424
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9425
    static {
3430 rajveer 9426
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9427
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9428
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9429
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9430
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9431
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9432
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9433
    }
9434
 
9435
    public getHolidays_args() {
9436
    }
9437
 
9438
    public getHolidays_args(
9439
      long fromDate,
9440
      long toDate)
9441
    {
9442
      this();
9443
      this.fromDate = fromDate;
9444
      setFromDateIsSet(true);
9445
      this.toDate = toDate;
9446
      setToDateIsSet(true);
9447
    }
9448
 
9449
    /**
9450
     * Performs a deep copy on <i>other</i>.
9451
     */
9452
    public getHolidays_args(getHolidays_args other) {
9453
      __isset_bit_vector.clear();
9454
      __isset_bit_vector.or(other.__isset_bit_vector);
9455
      this.fromDate = other.fromDate;
9456
      this.toDate = other.toDate;
9457
    }
9458
 
9459
    public getHolidays_args deepCopy() {
9460
      return new getHolidays_args(this);
9461
    }
9462
 
3430 rajveer 9463
    @Override
9464
    public void clear() {
9465
      setFromDateIsSet(false);
9466
      this.fromDate = 0;
9467
      setToDateIsSet(false);
9468
      this.toDate = 0;
1730 ankur.sing 9469
    }
9470
 
9471
    public long getFromDate() {
9472
      return this.fromDate;
9473
    }
9474
 
3430 rajveer 9475
    public void setFromDate(long fromDate) {
1730 ankur.sing 9476
      this.fromDate = fromDate;
9477
      setFromDateIsSet(true);
9478
    }
9479
 
9480
    public void unsetFromDate() {
9481
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9482
    }
9483
 
3430 rajveer 9484
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9485
    public boolean isSetFromDate() {
9486
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9487
    }
9488
 
9489
    public void setFromDateIsSet(boolean value) {
9490
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9491
    }
9492
 
9493
    public long getToDate() {
9494
      return this.toDate;
9495
    }
9496
 
3430 rajveer 9497
    public void setToDate(long toDate) {
1730 ankur.sing 9498
      this.toDate = toDate;
9499
      setToDateIsSet(true);
9500
    }
9501
 
9502
    public void unsetToDate() {
9503
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9504
    }
9505
 
3430 rajveer 9506
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9507
    public boolean isSetToDate() {
9508
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9509
    }
9510
 
9511
    public void setToDateIsSet(boolean value) {
9512
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9513
    }
9514
 
9515
    public void setFieldValue(_Fields field, Object value) {
9516
      switch (field) {
9517
      case FROM_DATE:
9518
        if (value == null) {
9519
          unsetFromDate();
9520
        } else {
9521
          setFromDate((Long)value);
9522
        }
9523
        break;
9524
 
9525
      case TO_DATE:
9526
        if (value == null) {
9527
          unsetToDate();
9528
        } else {
9529
          setToDate((Long)value);
9530
        }
9531
        break;
9532
 
9533
      }
9534
    }
9535
 
9536
    public Object getFieldValue(_Fields field) {
9537
      switch (field) {
9538
      case FROM_DATE:
3430 rajveer 9539
        return Long.valueOf(getFromDate());
1730 ankur.sing 9540
 
9541
      case TO_DATE:
3430 rajveer 9542
        return Long.valueOf(getToDate());
1730 ankur.sing 9543
 
9544
      }
9545
      throw new IllegalStateException();
9546
    }
9547
 
3430 rajveer 9548
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9549
    public boolean isSet(_Fields field) {
9550
      if (field == null) {
9551
        throw new IllegalArgumentException();
9552
      }
1730 ankur.sing 9553
 
9554
      switch (field) {
9555
      case FROM_DATE:
9556
        return isSetFromDate();
9557
      case TO_DATE:
9558
        return isSetToDate();
9559
      }
9560
      throw new IllegalStateException();
9561
    }
9562
 
9563
    @Override
9564
    public boolean equals(Object that) {
9565
      if (that == null)
9566
        return false;
9567
      if (that instanceof getHolidays_args)
9568
        return this.equals((getHolidays_args)that);
9569
      return false;
9570
    }
9571
 
9572
    public boolean equals(getHolidays_args that) {
9573
      if (that == null)
9574
        return false;
9575
 
9576
      boolean this_present_fromDate = true;
9577
      boolean that_present_fromDate = true;
9578
      if (this_present_fromDate || that_present_fromDate) {
9579
        if (!(this_present_fromDate && that_present_fromDate))
9580
          return false;
9581
        if (this.fromDate != that.fromDate)
9582
          return false;
9583
      }
9584
 
9585
      boolean this_present_toDate = true;
9586
      boolean that_present_toDate = true;
9587
      if (this_present_toDate || that_present_toDate) {
9588
        if (!(this_present_toDate && that_present_toDate))
9589
          return false;
9590
        if (this.toDate != that.toDate)
9591
          return false;
9592
      }
9593
 
9594
      return true;
9595
    }
9596
 
9597
    @Override
9598
    public int hashCode() {
9599
      return 0;
9600
    }
9601
 
9602
    public int compareTo(getHolidays_args other) {
9603
      if (!getClass().equals(other.getClass())) {
9604
        return getClass().getName().compareTo(other.getClass().getName());
9605
      }
9606
 
9607
      int lastComparison = 0;
9608
      getHolidays_args typedOther = (getHolidays_args)other;
9609
 
3430 rajveer 9610
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 9611
      if (lastComparison != 0) {
9612
        return lastComparison;
9613
      }
3430 rajveer 9614
      if (isSetFromDate()) {
9615
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
9616
        if (lastComparison != 0) {
9617
          return lastComparison;
9618
        }
1730 ankur.sing 9619
      }
3430 rajveer 9620
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 9621
      if (lastComparison != 0) {
9622
        return lastComparison;
9623
      }
3430 rajveer 9624
      if (isSetToDate()) {
9625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
9626
        if (lastComparison != 0) {
9627
          return lastComparison;
9628
        }
1730 ankur.sing 9629
      }
9630
      return 0;
9631
    }
9632
 
3430 rajveer 9633
    public _Fields fieldForId(int fieldId) {
9634
      return _Fields.findByThriftId(fieldId);
9635
    }
9636
 
9637
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9638
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9639
      iprot.readStructBegin();
9640
      while (true)
9641
      {
9642
        field = iprot.readFieldBegin();
3430 rajveer 9643
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9644
          break;
9645
        }
3430 rajveer 9646
        switch (field.id) {
9647
          case 1: // FROM_DATE
9648
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9649
              this.fromDate = iprot.readI64();
9650
              setFromDateIsSet(true);
9651
            } else { 
9652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9653
            }
9654
            break;
9655
          case 2: // TO_DATE
9656
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9657
              this.toDate = iprot.readI64();
9658
              setToDateIsSet(true);
9659
            } else { 
9660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9661
            }
9662
            break;
9663
          default:
9664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9665
        }
3430 rajveer 9666
        iprot.readFieldEnd();
1730 ankur.sing 9667
      }
9668
      iprot.readStructEnd();
9669
      validate();
9670
    }
9671
 
3430 rajveer 9672
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9673
      validate();
9674
 
9675
      oprot.writeStructBegin(STRUCT_DESC);
9676
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
9677
      oprot.writeI64(this.fromDate);
9678
      oprot.writeFieldEnd();
9679
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
9680
      oprot.writeI64(this.toDate);
9681
      oprot.writeFieldEnd();
9682
      oprot.writeFieldStop();
9683
      oprot.writeStructEnd();
9684
    }
9685
 
9686
    @Override
9687
    public String toString() {
9688
      StringBuilder sb = new StringBuilder("getHolidays_args(");
9689
      boolean first = true;
9690
 
9691
      sb.append("fromDate:");
9692
      sb.append(this.fromDate);
9693
      first = false;
9694
      if (!first) sb.append(", ");
9695
      sb.append("toDate:");
9696
      sb.append(this.toDate);
9697
      first = false;
9698
      sb.append(")");
9699
      return sb.toString();
9700
    }
9701
 
3430 rajveer 9702
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9703
      // check for required fields
9704
    }
9705
 
3430 rajveer 9706
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9707
      try {
9708
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9709
      } catch (org.apache.thrift.TException te) {
9710
        throw new java.io.IOException(te);
9711
      }
9712
    }
9713
 
9714
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9715
      try {
9716
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9717
      } catch (org.apache.thrift.TException te) {
9718
        throw new java.io.IOException(te);
9719
      }
9720
    }
9721
 
1730 ankur.sing 9722
  }
9723
 
3430 rajveer 9724
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
9725
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 9726
 
3430 rajveer 9727
    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 9728
 
3430 rajveer 9729
    private List<Long> success; // required
1730 ankur.sing 9730
 
9731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9733
      SUCCESS((short)0, "success");
9734
 
9735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9736
 
9737
      static {
9738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9739
          byName.put(field.getFieldName(), field);
9740
        }
9741
      }
9742
 
9743
      /**
9744
       * Find the _Fields constant that matches fieldId, or null if its not found.
9745
       */
9746
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9747
        switch(fieldId) {
9748
          case 0: // SUCCESS
9749
            return SUCCESS;
9750
          default:
9751
            return null;
9752
        }
1730 ankur.sing 9753
      }
9754
 
9755
      /**
9756
       * Find the _Fields constant that matches fieldId, throwing an exception
9757
       * if it is not found.
9758
       */
9759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9760
        _Fields fields = findByThriftId(fieldId);
9761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9762
        return fields;
9763
      }
9764
 
9765
      /**
9766
       * Find the _Fields constant that matches name, or null if its not found.
9767
       */
9768
      public static _Fields findByName(String name) {
9769
        return byName.get(name);
9770
      }
9771
 
9772
      private final short _thriftId;
9773
      private final String _fieldName;
9774
 
9775
      _Fields(short thriftId, String fieldName) {
9776
        _thriftId = thriftId;
9777
        _fieldName = fieldName;
9778
      }
9779
 
9780
      public short getThriftFieldId() {
9781
        return _thriftId;
9782
      }
9783
 
9784
      public String getFieldName() {
9785
        return _fieldName;
9786
      }
9787
    }
9788
 
9789
    // isset id assignments
9790
 
3430 rajveer 9791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9792
    static {
3430 rajveer 9793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9794
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9795
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9796
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 9799
    }
9800
 
9801
    public getHolidays_result() {
9802
    }
9803
 
9804
    public getHolidays_result(
9805
      List<Long> success)
9806
    {
9807
      this();
9808
      this.success = success;
9809
    }
9810
 
9811
    /**
9812
     * Performs a deep copy on <i>other</i>.
9813
     */
9814
    public getHolidays_result(getHolidays_result other) {
9815
      if (other.isSetSuccess()) {
9816
        List<Long> __this__success = new ArrayList<Long>();
9817
        for (Long other_element : other.success) {
9818
          __this__success.add(other_element);
9819
        }
9820
        this.success = __this__success;
9821
      }
9822
    }
9823
 
9824
    public getHolidays_result deepCopy() {
9825
      return new getHolidays_result(this);
9826
    }
9827
 
3430 rajveer 9828
    @Override
9829
    public void clear() {
9830
      this.success = null;
1730 ankur.sing 9831
    }
9832
 
9833
    public int getSuccessSize() {
9834
      return (this.success == null) ? 0 : this.success.size();
9835
    }
9836
 
9837
    public java.util.Iterator<Long> getSuccessIterator() {
9838
      return (this.success == null) ? null : this.success.iterator();
9839
    }
9840
 
9841
    public void addToSuccess(long elem) {
9842
      if (this.success == null) {
9843
        this.success = new ArrayList<Long>();
9844
      }
9845
      this.success.add(elem);
9846
    }
9847
 
9848
    public List<Long> getSuccess() {
9849
      return this.success;
9850
    }
9851
 
3430 rajveer 9852
    public void setSuccess(List<Long> success) {
1730 ankur.sing 9853
      this.success = success;
9854
    }
9855
 
9856
    public void unsetSuccess() {
9857
      this.success = null;
9858
    }
9859
 
3430 rajveer 9860
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9861
    public boolean isSetSuccess() {
9862
      return this.success != null;
9863
    }
9864
 
9865
    public void setSuccessIsSet(boolean value) {
9866
      if (!value) {
9867
        this.success = null;
9868
      }
9869
    }
9870
 
9871
    public void setFieldValue(_Fields field, Object value) {
9872
      switch (field) {
9873
      case SUCCESS:
9874
        if (value == null) {
9875
          unsetSuccess();
9876
        } else {
9877
          setSuccess((List<Long>)value);
9878
        }
9879
        break;
9880
 
9881
      }
9882
    }
9883
 
9884
    public Object getFieldValue(_Fields field) {
9885
      switch (field) {
9886
      case SUCCESS:
9887
        return getSuccess();
9888
 
9889
      }
9890
      throw new IllegalStateException();
9891
    }
9892
 
3430 rajveer 9893
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9894
    public boolean isSet(_Fields field) {
9895
      if (field == null) {
9896
        throw new IllegalArgumentException();
9897
      }
1730 ankur.sing 9898
 
9899
      switch (field) {
9900
      case SUCCESS:
9901
        return isSetSuccess();
9902
      }
9903
      throw new IllegalStateException();
9904
    }
9905
 
9906
    @Override
9907
    public boolean equals(Object that) {
9908
      if (that == null)
9909
        return false;
9910
      if (that instanceof getHolidays_result)
9911
        return this.equals((getHolidays_result)that);
9912
      return false;
9913
    }
9914
 
9915
    public boolean equals(getHolidays_result that) {
9916
      if (that == null)
9917
        return false;
9918
 
9919
      boolean this_present_success = true && this.isSetSuccess();
9920
      boolean that_present_success = true && that.isSetSuccess();
9921
      if (this_present_success || that_present_success) {
9922
        if (!(this_present_success && that_present_success))
9923
          return false;
9924
        if (!this.success.equals(that.success))
9925
          return false;
9926
      }
9927
 
9928
      return true;
9929
    }
9930
 
9931
    @Override
9932
    public int hashCode() {
9933
      return 0;
9934
    }
9935
 
9936
    public int compareTo(getHolidays_result other) {
9937
      if (!getClass().equals(other.getClass())) {
9938
        return getClass().getName().compareTo(other.getClass().getName());
9939
      }
9940
 
9941
      int lastComparison = 0;
9942
      getHolidays_result typedOther = (getHolidays_result)other;
9943
 
3430 rajveer 9944
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 9945
      if (lastComparison != 0) {
9946
        return lastComparison;
9947
      }
3430 rajveer 9948
      if (isSetSuccess()) {
9949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9950
        if (lastComparison != 0) {
9951
          return lastComparison;
9952
        }
1730 ankur.sing 9953
      }
9954
      return 0;
9955
    }
9956
 
3430 rajveer 9957
    public _Fields fieldForId(int fieldId) {
9958
      return _Fields.findByThriftId(fieldId);
9959
    }
9960
 
9961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9962
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9963
      iprot.readStructBegin();
9964
      while (true)
9965
      {
9966
        field = iprot.readFieldBegin();
3430 rajveer 9967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9968
          break;
9969
        }
3430 rajveer 9970
        switch (field.id) {
9971
          case 0: // SUCCESS
9972
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9973
              {
9974
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
9975
                this.success = new ArrayList<Long>(_list13.size);
9976
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 9977
                {
3430 rajveer 9978
                  long _elem15; // required
9979
                  _elem15 = iprot.readI64();
9980
                  this.success.add(_elem15);
1730 ankur.sing 9981
                }
3430 rajveer 9982
                iprot.readListEnd();
1730 ankur.sing 9983
              }
3430 rajveer 9984
            } else { 
9985
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9986
            }
9987
            break;
9988
          default:
9989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9990
        }
3430 rajveer 9991
        iprot.readFieldEnd();
1730 ankur.sing 9992
      }
9993
      iprot.readStructEnd();
9994
      validate();
9995
    }
9996
 
3430 rajveer 9997
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9998
      oprot.writeStructBegin(STRUCT_DESC);
9999
 
10000
      if (this.isSetSuccess()) {
10001
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10002
        {
3430 rajveer 10003
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 10004
          for (long _iter16 : this.success)
1730 ankur.sing 10005
          {
3044 chandransh 10006
            oprot.writeI64(_iter16);
1730 ankur.sing 10007
          }
10008
          oprot.writeListEnd();
10009
        }
10010
        oprot.writeFieldEnd();
10011
      }
10012
      oprot.writeFieldStop();
10013
      oprot.writeStructEnd();
10014
    }
10015
 
10016
    @Override
10017
    public String toString() {
10018
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10019
      boolean first = true;
10020
 
10021
      sb.append("success:");
10022
      if (this.success == null) {
10023
        sb.append("null");
10024
      } else {
10025
        sb.append(this.success);
10026
      }
10027
      first = false;
10028
      sb.append(")");
10029
      return sb.toString();
10030
    }
10031
 
3430 rajveer 10032
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10033
      // check for required fields
10034
    }
10035
 
3430 rajveer 10036
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10037
      try {
10038
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10039
      } catch (org.apache.thrift.TException te) {
10040
        throw new java.io.IOException(te);
10041
      }
10042
    }
10043
 
10044
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10045
      try {
10046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10047
      } catch (org.apache.thrift.TException te) {
10048
        throw new java.io.IOException(te);
10049
      }
10050
    }
10051
 
1730 ankur.sing 10052
  }
10053
 
4934 amit.gupta 10054
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10056
 
10057
    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);
10058
    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);
10059
    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);
10060
 
10061
    private long catalogItemId; // required
10062
    private String destination_pin; // required
10063
    private DeliveryType type; // required
10064
 
10065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10066
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10067
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10068
      DESTINATION_PIN((short)2, "destination_pin"),
10069
      /**
10070
       * 
10071
       * @see DeliveryType
10072
       */
10073
      TYPE((short)3, "type");
10074
 
10075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10076
 
10077
      static {
10078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10079
          byName.put(field.getFieldName(), field);
10080
        }
10081
      }
10082
 
10083
      /**
10084
       * Find the _Fields constant that matches fieldId, or null if its not found.
10085
       */
10086
      public static _Fields findByThriftId(int fieldId) {
10087
        switch(fieldId) {
10088
          case 1: // CATALOG_ITEM_ID
10089
            return CATALOG_ITEM_ID;
10090
          case 2: // DESTINATION_PIN
10091
            return DESTINATION_PIN;
10092
          case 3: // TYPE
10093
            return TYPE;
10094
          default:
10095
            return null;
10096
        }
10097
      }
10098
 
10099
      /**
10100
       * Find the _Fields constant that matches fieldId, throwing an exception
10101
       * if it is not found.
10102
       */
10103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10104
        _Fields fields = findByThriftId(fieldId);
10105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10106
        return fields;
10107
      }
10108
 
10109
      /**
10110
       * Find the _Fields constant that matches name, or null if its not found.
10111
       */
10112
      public static _Fields findByName(String name) {
10113
        return byName.get(name);
10114
      }
10115
 
10116
      private final short _thriftId;
10117
      private final String _fieldName;
10118
 
10119
      _Fields(short thriftId, String fieldName) {
10120
        _thriftId = thriftId;
10121
        _fieldName = fieldName;
10122
      }
10123
 
10124
      public short getThriftFieldId() {
10125
        return _thriftId;
10126
      }
10127
 
10128
      public String getFieldName() {
10129
        return _fieldName;
10130
      }
10131
    }
10132
 
10133
    // isset id assignments
10134
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10135
    private BitSet __isset_bit_vector = new BitSet(1);
10136
 
10137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10138
    static {
10139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10140
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10142
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10144
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10145
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10146
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10147
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10148
    }
10149
 
10150
    public getEntityLogisticsEstimation_args() {
10151
    }
10152
 
10153
    public getEntityLogisticsEstimation_args(
10154
      long catalogItemId,
10155
      String destination_pin,
10156
      DeliveryType type)
10157
    {
10158
      this();
10159
      this.catalogItemId = catalogItemId;
10160
      setCatalogItemIdIsSet(true);
10161
      this.destination_pin = destination_pin;
10162
      this.type = type;
10163
    }
10164
 
10165
    /**
10166
     * Performs a deep copy on <i>other</i>.
10167
     */
10168
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10169
      __isset_bit_vector.clear();
10170
      __isset_bit_vector.or(other.__isset_bit_vector);
10171
      this.catalogItemId = other.catalogItemId;
10172
      if (other.isSetDestination_pin()) {
10173
        this.destination_pin = other.destination_pin;
10174
      }
10175
      if (other.isSetType()) {
10176
        this.type = other.type;
10177
      }
10178
    }
10179
 
10180
    public getEntityLogisticsEstimation_args deepCopy() {
10181
      return new getEntityLogisticsEstimation_args(this);
10182
    }
10183
 
10184
    @Override
10185
    public void clear() {
10186
      setCatalogItemIdIsSet(false);
10187
      this.catalogItemId = 0;
10188
      this.destination_pin = null;
10189
      this.type = null;
10190
    }
10191
 
10192
    public long getCatalogItemId() {
10193
      return this.catalogItemId;
10194
    }
10195
 
10196
    public void setCatalogItemId(long catalogItemId) {
10197
      this.catalogItemId = catalogItemId;
10198
      setCatalogItemIdIsSet(true);
10199
    }
10200
 
10201
    public void unsetCatalogItemId() {
10202
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10203
    }
10204
 
10205
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10206
    public boolean isSetCatalogItemId() {
10207
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10208
    }
10209
 
10210
    public void setCatalogItemIdIsSet(boolean value) {
10211
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10212
    }
10213
 
10214
    public String getDestination_pin() {
10215
      return this.destination_pin;
10216
    }
10217
 
10218
    public void setDestination_pin(String destination_pin) {
10219
      this.destination_pin = destination_pin;
10220
    }
10221
 
10222
    public void unsetDestination_pin() {
10223
      this.destination_pin = null;
10224
    }
10225
 
10226
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10227
    public boolean isSetDestination_pin() {
10228
      return this.destination_pin != null;
10229
    }
10230
 
10231
    public void setDestination_pinIsSet(boolean value) {
10232
      if (!value) {
10233
        this.destination_pin = null;
10234
      }
10235
    }
10236
 
10237
    /**
10238
     * 
10239
     * @see DeliveryType
10240
     */
10241
    public DeliveryType getType() {
10242
      return this.type;
10243
    }
10244
 
10245
    /**
10246
     * 
10247
     * @see DeliveryType
10248
     */
10249
    public void setType(DeliveryType type) {
10250
      this.type = type;
10251
    }
10252
 
10253
    public void unsetType() {
10254
      this.type = null;
10255
    }
10256
 
10257
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10258
    public boolean isSetType() {
10259
      return this.type != null;
10260
    }
10261
 
10262
    public void setTypeIsSet(boolean value) {
10263
      if (!value) {
10264
        this.type = null;
10265
      }
10266
    }
10267
 
10268
    public void setFieldValue(_Fields field, Object value) {
10269
      switch (field) {
10270
      case CATALOG_ITEM_ID:
10271
        if (value == null) {
10272
          unsetCatalogItemId();
10273
        } else {
10274
          setCatalogItemId((Long)value);
10275
        }
10276
        break;
10277
 
10278
      case DESTINATION_PIN:
10279
        if (value == null) {
10280
          unsetDestination_pin();
10281
        } else {
10282
          setDestination_pin((String)value);
10283
        }
10284
        break;
10285
 
10286
      case TYPE:
10287
        if (value == null) {
10288
          unsetType();
10289
        } else {
10290
          setType((DeliveryType)value);
10291
        }
10292
        break;
10293
 
10294
      }
10295
    }
10296
 
10297
    public Object getFieldValue(_Fields field) {
10298
      switch (field) {
10299
      case CATALOG_ITEM_ID:
10300
        return Long.valueOf(getCatalogItemId());
10301
 
10302
      case DESTINATION_PIN:
10303
        return getDestination_pin();
10304
 
10305
      case TYPE:
10306
        return getType();
10307
 
10308
      }
10309
      throw new IllegalStateException();
10310
    }
10311
 
10312
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10313
    public boolean isSet(_Fields field) {
10314
      if (field == null) {
10315
        throw new IllegalArgumentException();
10316
      }
10317
 
10318
      switch (field) {
10319
      case CATALOG_ITEM_ID:
10320
        return isSetCatalogItemId();
10321
      case DESTINATION_PIN:
10322
        return isSetDestination_pin();
10323
      case TYPE:
10324
        return isSetType();
10325
      }
10326
      throw new IllegalStateException();
10327
    }
10328
 
10329
    @Override
10330
    public boolean equals(Object that) {
10331
      if (that == null)
10332
        return false;
10333
      if (that instanceof getEntityLogisticsEstimation_args)
10334
        return this.equals((getEntityLogisticsEstimation_args)that);
10335
      return false;
10336
    }
10337
 
10338
    public boolean equals(getEntityLogisticsEstimation_args that) {
10339
      if (that == null)
10340
        return false;
10341
 
10342
      boolean this_present_catalogItemId = true;
10343
      boolean that_present_catalogItemId = true;
10344
      if (this_present_catalogItemId || that_present_catalogItemId) {
10345
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10346
          return false;
10347
        if (this.catalogItemId != that.catalogItemId)
10348
          return false;
10349
      }
10350
 
10351
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10352
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10353
      if (this_present_destination_pin || that_present_destination_pin) {
10354
        if (!(this_present_destination_pin && that_present_destination_pin))
10355
          return false;
10356
        if (!this.destination_pin.equals(that.destination_pin))
10357
          return false;
10358
      }
10359
 
10360
      boolean this_present_type = true && this.isSetType();
10361
      boolean that_present_type = true && that.isSetType();
10362
      if (this_present_type || that_present_type) {
10363
        if (!(this_present_type && that_present_type))
10364
          return false;
10365
        if (!this.type.equals(that.type))
10366
          return false;
10367
      }
10368
 
10369
      return true;
10370
    }
10371
 
10372
    @Override
10373
    public int hashCode() {
10374
      return 0;
10375
    }
10376
 
10377
    public int compareTo(getEntityLogisticsEstimation_args other) {
10378
      if (!getClass().equals(other.getClass())) {
10379
        return getClass().getName().compareTo(other.getClass().getName());
10380
      }
10381
 
10382
      int lastComparison = 0;
10383
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10384
 
10385
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10386
      if (lastComparison != 0) {
10387
        return lastComparison;
10388
      }
10389
      if (isSetCatalogItemId()) {
10390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10391
        if (lastComparison != 0) {
10392
          return lastComparison;
10393
        }
10394
      }
10395
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10396
      if (lastComparison != 0) {
10397
        return lastComparison;
10398
      }
10399
      if (isSetDestination_pin()) {
10400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10401
        if (lastComparison != 0) {
10402
          return lastComparison;
10403
        }
10404
      }
10405
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10406
      if (lastComparison != 0) {
10407
        return lastComparison;
10408
      }
10409
      if (isSetType()) {
10410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10411
        if (lastComparison != 0) {
10412
          return lastComparison;
10413
        }
10414
      }
10415
      return 0;
10416
    }
10417
 
10418
    public _Fields fieldForId(int fieldId) {
10419
      return _Fields.findByThriftId(fieldId);
10420
    }
10421
 
10422
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10423
      org.apache.thrift.protocol.TField field;
10424
      iprot.readStructBegin();
10425
      while (true)
10426
      {
10427
        field = iprot.readFieldBegin();
10428
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10429
          break;
10430
        }
10431
        switch (field.id) {
10432
          case 1: // CATALOG_ITEM_ID
10433
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10434
              this.catalogItemId = iprot.readI64();
10435
              setCatalogItemIdIsSet(true);
10436
            } else { 
10437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10438
            }
10439
            break;
10440
          case 2: // DESTINATION_PIN
10441
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10442
              this.destination_pin = iprot.readString();
10443
            } else { 
10444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10445
            }
10446
            break;
10447
          case 3: // TYPE
10448
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10449
              this.type = DeliveryType.findByValue(iprot.readI32());
10450
            } else { 
10451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10452
            }
10453
            break;
10454
          default:
10455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10456
        }
10457
        iprot.readFieldEnd();
10458
      }
10459
      iprot.readStructEnd();
10460
      validate();
10461
    }
10462
 
10463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10464
      validate();
10465
 
10466
      oprot.writeStructBegin(STRUCT_DESC);
10467
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10468
      oprot.writeI64(this.catalogItemId);
10469
      oprot.writeFieldEnd();
10470
      if (this.destination_pin != null) {
10471
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10472
        oprot.writeString(this.destination_pin);
10473
        oprot.writeFieldEnd();
10474
      }
10475
      if (this.type != null) {
10476
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10477
        oprot.writeI32(this.type.getValue());
10478
        oprot.writeFieldEnd();
10479
      }
10480
      oprot.writeFieldStop();
10481
      oprot.writeStructEnd();
10482
    }
10483
 
10484
    @Override
10485
    public String toString() {
10486
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10487
      boolean first = true;
10488
 
10489
      sb.append("catalogItemId:");
10490
      sb.append(this.catalogItemId);
10491
      first = false;
10492
      if (!first) sb.append(", ");
10493
      sb.append("destination_pin:");
10494
      if (this.destination_pin == null) {
10495
        sb.append("null");
10496
      } else {
10497
        sb.append(this.destination_pin);
10498
      }
10499
      first = false;
10500
      if (!first) sb.append(", ");
10501
      sb.append("type:");
10502
      if (this.type == null) {
10503
        sb.append("null");
10504
      } else {
10505
        sb.append(this.type);
10506
      }
10507
      first = false;
10508
      sb.append(")");
10509
      return sb.toString();
10510
    }
10511
 
10512
    public void validate() throws org.apache.thrift.TException {
10513
      // check for required fields
10514
    }
10515
 
10516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10517
      try {
10518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10519
      } catch (org.apache.thrift.TException te) {
10520
        throw new java.io.IOException(te);
10521
      }
10522
    }
10523
 
10524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10525
      try {
10526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10527
      } catch (org.apache.thrift.TException te) {
10528
        throw new java.io.IOException(te);
10529
      }
10530
    }
10531
 
10532
  }
10533
 
10534
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10536
 
10537
    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);
10538
    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);
10539
 
10540
    private List<Long> success; // required
10541
    private LogisticsServiceException se; // required
10542
 
10543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10545
      SUCCESS((short)0, "success"),
10546
      SE((short)1, "se");
10547
 
10548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10549
 
10550
      static {
10551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10552
          byName.put(field.getFieldName(), field);
10553
        }
10554
      }
10555
 
10556
      /**
10557
       * Find the _Fields constant that matches fieldId, or null if its not found.
10558
       */
10559
      public static _Fields findByThriftId(int fieldId) {
10560
        switch(fieldId) {
10561
          case 0: // SUCCESS
10562
            return SUCCESS;
10563
          case 1: // SE
10564
            return SE;
10565
          default:
10566
            return null;
10567
        }
10568
      }
10569
 
10570
      /**
10571
       * Find the _Fields constant that matches fieldId, throwing an exception
10572
       * if it is not found.
10573
       */
10574
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10575
        _Fields fields = findByThriftId(fieldId);
10576
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10577
        return fields;
10578
      }
10579
 
10580
      /**
10581
       * Find the _Fields constant that matches name, or null if its not found.
10582
       */
10583
      public static _Fields findByName(String name) {
10584
        return byName.get(name);
10585
      }
10586
 
10587
      private final short _thriftId;
10588
      private final String _fieldName;
10589
 
10590
      _Fields(short thriftId, String fieldName) {
10591
        _thriftId = thriftId;
10592
        _fieldName = fieldName;
10593
      }
10594
 
10595
      public short getThriftFieldId() {
10596
        return _thriftId;
10597
      }
10598
 
10599
      public String getFieldName() {
10600
        return _fieldName;
10601
      }
10602
    }
10603
 
10604
    // isset id assignments
10605
 
10606
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10607
    static {
10608
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10609
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10610
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10611
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10612
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
10616
    }
10617
 
10618
    public getEntityLogisticsEstimation_result() {
10619
    }
10620
 
10621
    public getEntityLogisticsEstimation_result(
10622
      List<Long> success,
10623
      LogisticsServiceException se)
10624
    {
10625
      this();
10626
      this.success = success;
10627
      this.se = se;
10628
    }
10629
 
10630
    /**
10631
     * Performs a deep copy on <i>other</i>.
10632
     */
10633
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
10634
      if (other.isSetSuccess()) {
10635
        List<Long> __this__success = new ArrayList<Long>();
10636
        for (Long other_element : other.success) {
10637
          __this__success.add(other_element);
10638
        }
10639
        this.success = __this__success;
10640
      }
10641
      if (other.isSetSe()) {
10642
        this.se = new LogisticsServiceException(other.se);
10643
      }
10644
    }
10645
 
10646
    public getEntityLogisticsEstimation_result deepCopy() {
10647
      return new getEntityLogisticsEstimation_result(this);
10648
    }
10649
 
10650
    @Override
10651
    public void clear() {
10652
      this.success = null;
10653
      this.se = null;
10654
    }
10655
 
10656
    public int getSuccessSize() {
10657
      return (this.success == null) ? 0 : this.success.size();
10658
    }
10659
 
10660
    public java.util.Iterator<Long> getSuccessIterator() {
10661
      return (this.success == null) ? null : this.success.iterator();
10662
    }
10663
 
10664
    public void addToSuccess(long elem) {
10665
      if (this.success == null) {
10666
        this.success = new ArrayList<Long>();
10667
      }
10668
      this.success.add(elem);
10669
    }
10670
 
10671
    public List<Long> getSuccess() {
10672
      return this.success;
10673
    }
10674
 
10675
    public void setSuccess(List<Long> success) {
10676
      this.success = success;
10677
    }
10678
 
10679
    public void unsetSuccess() {
10680
      this.success = null;
10681
    }
10682
 
10683
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10684
    public boolean isSetSuccess() {
10685
      return this.success != null;
10686
    }
10687
 
10688
    public void setSuccessIsSet(boolean value) {
10689
      if (!value) {
10690
        this.success = null;
10691
      }
10692
    }
10693
 
10694
    public LogisticsServiceException getSe() {
10695
      return this.se;
10696
    }
10697
 
10698
    public void setSe(LogisticsServiceException se) {
10699
      this.se = se;
10700
    }
10701
 
10702
    public void unsetSe() {
10703
      this.se = null;
10704
    }
10705
 
10706
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10707
    public boolean isSetSe() {
10708
      return this.se != null;
10709
    }
10710
 
10711
    public void setSeIsSet(boolean value) {
10712
      if (!value) {
10713
        this.se = null;
10714
      }
10715
    }
10716
 
10717
    public void setFieldValue(_Fields field, Object value) {
10718
      switch (field) {
10719
      case SUCCESS:
10720
        if (value == null) {
10721
          unsetSuccess();
10722
        } else {
10723
          setSuccess((List<Long>)value);
10724
        }
10725
        break;
10726
 
10727
      case SE:
10728
        if (value == null) {
10729
          unsetSe();
10730
        } else {
10731
          setSe((LogisticsServiceException)value);
10732
        }
10733
        break;
10734
 
10735
      }
10736
    }
10737
 
10738
    public Object getFieldValue(_Fields field) {
10739
      switch (field) {
10740
      case SUCCESS:
10741
        return getSuccess();
10742
 
10743
      case SE:
10744
        return getSe();
10745
 
10746
      }
10747
      throw new IllegalStateException();
10748
    }
10749
 
10750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10751
    public boolean isSet(_Fields field) {
10752
      if (field == null) {
10753
        throw new IllegalArgumentException();
10754
      }
10755
 
10756
      switch (field) {
10757
      case SUCCESS:
10758
        return isSetSuccess();
10759
      case SE:
10760
        return isSetSe();
10761
      }
10762
      throw new IllegalStateException();
10763
    }
10764
 
10765
    @Override
10766
    public boolean equals(Object that) {
10767
      if (that == null)
10768
        return false;
10769
      if (that instanceof getEntityLogisticsEstimation_result)
10770
        return this.equals((getEntityLogisticsEstimation_result)that);
10771
      return false;
10772
    }
10773
 
10774
    public boolean equals(getEntityLogisticsEstimation_result that) {
10775
      if (that == null)
10776
        return false;
10777
 
10778
      boolean this_present_success = true && this.isSetSuccess();
10779
      boolean that_present_success = true && that.isSetSuccess();
10780
      if (this_present_success || that_present_success) {
10781
        if (!(this_present_success && that_present_success))
10782
          return false;
10783
        if (!this.success.equals(that.success))
10784
          return false;
10785
      }
10786
 
10787
      boolean this_present_se = true && this.isSetSe();
10788
      boolean that_present_se = true && that.isSetSe();
10789
      if (this_present_se || that_present_se) {
10790
        if (!(this_present_se && that_present_se))
10791
          return false;
10792
        if (!this.se.equals(that.se))
10793
          return false;
10794
      }
10795
 
10796
      return true;
10797
    }
10798
 
10799
    @Override
10800
    public int hashCode() {
10801
      return 0;
10802
    }
10803
 
10804
    public int compareTo(getEntityLogisticsEstimation_result other) {
10805
      if (!getClass().equals(other.getClass())) {
10806
        return getClass().getName().compareTo(other.getClass().getName());
10807
      }
10808
 
10809
      int lastComparison = 0;
10810
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
10811
 
10812
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10813
      if (lastComparison != 0) {
10814
        return lastComparison;
10815
      }
10816
      if (isSetSuccess()) {
10817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10818
        if (lastComparison != 0) {
10819
          return lastComparison;
10820
        }
10821
      }
10822
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10823
      if (lastComparison != 0) {
10824
        return lastComparison;
10825
      }
10826
      if (isSetSe()) {
10827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10828
        if (lastComparison != 0) {
10829
          return lastComparison;
10830
        }
10831
      }
10832
      return 0;
10833
    }
10834
 
10835
    public _Fields fieldForId(int fieldId) {
10836
      return _Fields.findByThriftId(fieldId);
10837
    }
10838
 
10839
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10840
      org.apache.thrift.protocol.TField field;
10841
      iprot.readStructBegin();
10842
      while (true)
10843
      {
10844
        field = iprot.readFieldBegin();
10845
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10846
          break;
10847
        }
10848
        switch (field.id) {
10849
          case 0: // SUCCESS
10850
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10851
              {
10852
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
10853
                this.success = new ArrayList<Long>(_list17.size);
10854
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
10855
                {
10856
                  long _elem19; // required
10857
                  _elem19 = iprot.readI64();
10858
                  this.success.add(_elem19);
10859
                }
10860
                iprot.readListEnd();
10861
              }
10862
            } else { 
10863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10864
            }
10865
            break;
10866
          case 1: // SE
10867
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10868
              this.se = new LogisticsServiceException();
10869
              this.se.read(iprot);
10870
            } else { 
10871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10872
            }
10873
            break;
10874
          default:
10875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10876
        }
10877
        iprot.readFieldEnd();
10878
      }
10879
      iprot.readStructEnd();
10880
      validate();
10881
    }
10882
 
10883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10884
      oprot.writeStructBegin(STRUCT_DESC);
10885
 
10886
      if (this.isSetSuccess()) {
10887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10888
        {
10889
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
10890
          for (long _iter20 : this.success)
10891
          {
10892
            oprot.writeI64(_iter20);
10893
          }
10894
          oprot.writeListEnd();
10895
        }
10896
        oprot.writeFieldEnd();
10897
      } else if (this.isSetSe()) {
10898
        oprot.writeFieldBegin(SE_FIELD_DESC);
10899
        this.se.write(oprot);
10900
        oprot.writeFieldEnd();
10901
      }
10902
      oprot.writeFieldStop();
10903
      oprot.writeStructEnd();
10904
    }
10905
 
10906
    @Override
10907
    public String toString() {
10908
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
10909
      boolean first = true;
10910
 
10911
      sb.append("success:");
10912
      if (this.success == null) {
10913
        sb.append("null");
10914
      } else {
10915
        sb.append(this.success);
10916
      }
10917
      first = false;
10918
      if (!first) sb.append(", ");
10919
      sb.append("se:");
10920
      if (this.se == null) {
10921
        sb.append("null");
10922
      } else {
10923
        sb.append(this.se);
10924
      }
10925
      first = false;
10926
      sb.append(")");
10927
      return sb.toString();
10928
    }
10929
 
10930
    public void validate() throws org.apache.thrift.TException {
10931
      // check for required fields
10932
    }
10933
 
10934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10935
      try {
10936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10937
      } catch (org.apache.thrift.TException te) {
10938
        throw new java.io.IOException(te);
10939
      }
10940
    }
10941
 
10942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10943
      try {
10944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10945
      } catch (org.apache.thrift.TException te) {
10946
        throw new java.io.IOException(te);
10947
      }
10948
    }
10949
 
10950
  }
10951
 
5527 anupam.sin 10952
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
10953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
10954
 
10955
    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);
10956
 
10957
    private long pickUp; // required
10958
 
10959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10961
      PICK_UP((short)1, "pickUp");
10962
 
10963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10964
 
10965
      static {
10966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10967
          byName.put(field.getFieldName(), field);
10968
        }
10969
      }
10970
 
10971
      /**
10972
       * Find the _Fields constant that matches fieldId, or null if its not found.
10973
       */
10974
      public static _Fields findByThriftId(int fieldId) {
10975
        switch(fieldId) {
10976
          case 1: // PICK_UP
10977
            return PICK_UP;
10978
          default:
10979
            return null;
10980
        }
10981
      }
10982
 
10983
      /**
10984
       * Find the _Fields constant that matches fieldId, throwing an exception
10985
       * if it is not found.
10986
       */
10987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10988
        _Fields fields = findByThriftId(fieldId);
10989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10990
        return fields;
10991
      }
10992
 
10993
      /**
10994
       * Find the _Fields constant that matches name, or null if its not found.
10995
       */
10996
      public static _Fields findByName(String name) {
10997
        return byName.get(name);
10998
      }
10999
 
11000
      private final short _thriftId;
11001
      private final String _fieldName;
11002
 
11003
      _Fields(short thriftId, String fieldName) {
11004
        _thriftId = thriftId;
11005
        _fieldName = fieldName;
11006
      }
11007
 
11008
      public short getThriftFieldId() {
11009
        return _thriftId;
11010
      }
11011
 
11012
      public String getFieldName() {
11013
        return _fieldName;
11014
      }
11015
    }
11016
 
11017
    // isset id assignments
11018
    private static final int __PICKUP_ISSET_ID = 0;
11019
    private BitSet __isset_bit_vector = new BitSet(1);
11020
 
11021
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11022
    static {
11023
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11024
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11028
    }
11029
 
11030
    public getProviderForPickupType_args() {
11031
    }
11032
 
11033
    public getProviderForPickupType_args(
11034
      long pickUp)
11035
    {
11036
      this();
11037
      this.pickUp = pickUp;
11038
      setPickUpIsSet(true);
11039
    }
11040
 
11041
    /**
11042
     * Performs a deep copy on <i>other</i>.
11043
     */
11044
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11045
      __isset_bit_vector.clear();
11046
      __isset_bit_vector.or(other.__isset_bit_vector);
11047
      this.pickUp = other.pickUp;
11048
    }
11049
 
11050
    public getProviderForPickupType_args deepCopy() {
11051
      return new getProviderForPickupType_args(this);
11052
    }
11053
 
11054
    @Override
11055
    public void clear() {
11056
      setPickUpIsSet(false);
11057
      this.pickUp = 0;
11058
    }
11059
 
11060
    public long getPickUp() {
11061
      return this.pickUp;
11062
    }
11063
 
11064
    public void setPickUp(long pickUp) {
11065
      this.pickUp = pickUp;
11066
      setPickUpIsSet(true);
11067
    }
11068
 
11069
    public void unsetPickUp() {
11070
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11071
    }
11072
 
11073
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11074
    public boolean isSetPickUp() {
11075
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11076
    }
11077
 
11078
    public void setPickUpIsSet(boolean value) {
11079
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11080
    }
11081
 
11082
    public void setFieldValue(_Fields field, Object value) {
11083
      switch (field) {
11084
      case PICK_UP:
11085
        if (value == null) {
11086
          unsetPickUp();
11087
        } else {
11088
          setPickUp((Long)value);
11089
        }
11090
        break;
11091
 
11092
      }
11093
    }
11094
 
11095
    public Object getFieldValue(_Fields field) {
11096
      switch (field) {
11097
      case PICK_UP:
11098
        return Long.valueOf(getPickUp());
11099
 
11100
      }
11101
      throw new IllegalStateException();
11102
    }
11103
 
11104
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11105
    public boolean isSet(_Fields field) {
11106
      if (field == null) {
11107
        throw new IllegalArgumentException();
11108
      }
11109
 
11110
      switch (field) {
11111
      case PICK_UP:
11112
        return isSetPickUp();
11113
      }
11114
      throw new IllegalStateException();
11115
    }
11116
 
11117
    @Override
11118
    public boolean equals(Object that) {
11119
      if (that == null)
11120
        return false;
11121
      if (that instanceof getProviderForPickupType_args)
11122
        return this.equals((getProviderForPickupType_args)that);
11123
      return false;
11124
    }
11125
 
11126
    public boolean equals(getProviderForPickupType_args that) {
11127
      if (that == null)
11128
        return false;
11129
 
11130
      boolean this_present_pickUp = true;
11131
      boolean that_present_pickUp = true;
11132
      if (this_present_pickUp || that_present_pickUp) {
11133
        if (!(this_present_pickUp && that_present_pickUp))
11134
          return false;
11135
        if (this.pickUp != that.pickUp)
11136
          return false;
11137
      }
11138
 
11139
      return true;
11140
    }
11141
 
11142
    @Override
11143
    public int hashCode() {
11144
      return 0;
11145
    }
11146
 
11147
    public int compareTo(getProviderForPickupType_args other) {
11148
      if (!getClass().equals(other.getClass())) {
11149
        return getClass().getName().compareTo(other.getClass().getName());
11150
      }
11151
 
11152
      int lastComparison = 0;
11153
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11154
 
11155
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11156
      if (lastComparison != 0) {
11157
        return lastComparison;
11158
      }
11159
      if (isSetPickUp()) {
11160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11161
        if (lastComparison != 0) {
11162
          return lastComparison;
11163
        }
11164
      }
11165
      return 0;
11166
    }
11167
 
11168
    public _Fields fieldForId(int fieldId) {
11169
      return _Fields.findByThriftId(fieldId);
11170
    }
11171
 
11172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11173
      org.apache.thrift.protocol.TField field;
11174
      iprot.readStructBegin();
11175
      while (true)
11176
      {
11177
        field = iprot.readFieldBegin();
11178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11179
          break;
11180
        }
11181
        switch (field.id) {
11182
          case 1: // PICK_UP
11183
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11184
              this.pickUp = iprot.readI64();
11185
              setPickUpIsSet(true);
11186
            } else { 
11187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11188
            }
11189
            break;
11190
          default:
11191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11192
        }
11193
        iprot.readFieldEnd();
11194
      }
11195
      iprot.readStructEnd();
11196
      validate();
11197
    }
11198
 
11199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11200
      validate();
11201
 
11202
      oprot.writeStructBegin(STRUCT_DESC);
11203
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11204
      oprot.writeI64(this.pickUp);
11205
      oprot.writeFieldEnd();
11206
      oprot.writeFieldStop();
11207
      oprot.writeStructEnd();
11208
    }
11209
 
11210
    @Override
11211
    public String toString() {
11212
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11213
      boolean first = true;
11214
 
11215
      sb.append("pickUp:");
11216
      sb.append(this.pickUp);
11217
      first = false;
11218
      sb.append(")");
11219
      return sb.toString();
11220
    }
11221
 
11222
    public void validate() throws org.apache.thrift.TException {
11223
      // check for required fields
11224
    }
11225
 
11226
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11227
      try {
11228
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11229
      } catch (org.apache.thrift.TException te) {
11230
        throw new java.io.IOException(te);
11231
      }
11232
    }
11233
 
11234
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11235
      try {
11236
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11237
        __isset_bit_vector = new BitSet(1);
11238
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11239
      } catch (org.apache.thrift.TException te) {
11240
        throw new java.io.IOException(te);
11241
      }
11242
    }
11243
 
11244
  }
11245
 
11246
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11247
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11248
 
11249
    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);
11250
 
11251
    private long success; // required
11252
 
11253
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11254
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11255
      SUCCESS((short)0, "success");
11256
 
11257
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11258
 
11259
      static {
11260
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11261
          byName.put(field.getFieldName(), field);
11262
        }
11263
      }
11264
 
11265
      /**
11266
       * Find the _Fields constant that matches fieldId, or null if its not found.
11267
       */
11268
      public static _Fields findByThriftId(int fieldId) {
11269
        switch(fieldId) {
11270
          case 0: // SUCCESS
11271
            return SUCCESS;
11272
          default:
11273
            return null;
11274
        }
11275
      }
11276
 
11277
      /**
11278
       * Find the _Fields constant that matches fieldId, throwing an exception
11279
       * if it is not found.
11280
       */
11281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11282
        _Fields fields = findByThriftId(fieldId);
11283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11284
        return fields;
11285
      }
11286
 
11287
      /**
11288
       * Find the _Fields constant that matches name, or null if its not found.
11289
       */
11290
      public static _Fields findByName(String name) {
11291
        return byName.get(name);
11292
      }
11293
 
11294
      private final short _thriftId;
11295
      private final String _fieldName;
11296
 
11297
      _Fields(short thriftId, String fieldName) {
11298
        _thriftId = thriftId;
11299
        _fieldName = fieldName;
11300
      }
11301
 
11302
      public short getThriftFieldId() {
11303
        return _thriftId;
11304
      }
11305
 
11306
      public String getFieldName() {
11307
        return _fieldName;
11308
      }
11309
    }
11310
 
11311
    // isset id assignments
11312
    private static final int __SUCCESS_ISSET_ID = 0;
11313
    private BitSet __isset_bit_vector = new BitSet(1);
11314
 
11315
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11316
    static {
11317
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11318
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11322
    }
11323
 
11324
    public getProviderForPickupType_result() {
11325
    }
11326
 
11327
    public getProviderForPickupType_result(
11328
      long success)
11329
    {
11330
      this();
11331
      this.success = success;
11332
      setSuccessIsSet(true);
11333
    }
11334
 
11335
    /**
11336
     * Performs a deep copy on <i>other</i>.
11337
     */
11338
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11339
      __isset_bit_vector.clear();
11340
      __isset_bit_vector.or(other.__isset_bit_vector);
11341
      this.success = other.success;
11342
    }
11343
 
11344
    public getProviderForPickupType_result deepCopy() {
11345
      return new getProviderForPickupType_result(this);
11346
    }
11347
 
11348
    @Override
11349
    public void clear() {
11350
      setSuccessIsSet(false);
11351
      this.success = 0;
11352
    }
11353
 
11354
    public long getSuccess() {
11355
      return this.success;
11356
    }
11357
 
11358
    public void setSuccess(long success) {
11359
      this.success = success;
11360
      setSuccessIsSet(true);
11361
    }
11362
 
11363
    public void unsetSuccess() {
11364
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11365
    }
11366
 
11367
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11368
    public boolean isSetSuccess() {
11369
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11370
    }
11371
 
11372
    public void setSuccessIsSet(boolean value) {
11373
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11374
    }
11375
 
11376
    public void setFieldValue(_Fields field, Object value) {
11377
      switch (field) {
11378
      case SUCCESS:
11379
        if (value == null) {
11380
          unsetSuccess();
11381
        } else {
11382
          setSuccess((Long)value);
11383
        }
11384
        break;
11385
 
11386
      }
11387
    }
11388
 
11389
    public Object getFieldValue(_Fields field) {
11390
      switch (field) {
11391
      case SUCCESS:
11392
        return Long.valueOf(getSuccess());
11393
 
11394
      }
11395
      throw new IllegalStateException();
11396
    }
11397
 
11398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11399
    public boolean isSet(_Fields field) {
11400
      if (field == null) {
11401
        throw new IllegalArgumentException();
11402
      }
11403
 
11404
      switch (field) {
11405
      case SUCCESS:
11406
        return isSetSuccess();
11407
      }
11408
      throw new IllegalStateException();
11409
    }
11410
 
11411
    @Override
11412
    public boolean equals(Object that) {
11413
      if (that == null)
11414
        return false;
11415
      if (that instanceof getProviderForPickupType_result)
11416
        return this.equals((getProviderForPickupType_result)that);
11417
      return false;
11418
    }
11419
 
11420
    public boolean equals(getProviderForPickupType_result that) {
11421
      if (that == null)
11422
        return false;
11423
 
11424
      boolean this_present_success = true;
11425
      boolean that_present_success = true;
11426
      if (this_present_success || that_present_success) {
11427
        if (!(this_present_success && that_present_success))
11428
          return false;
11429
        if (this.success != that.success)
11430
          return false;
11431
      }
11432
 
11433
      return true;
11434
    }
11435
 
11436
    @Override
11437
    public int hashCode() {
11438
      return 0;
11439
    }
11440
 
11441
    public int compareTo(getProviderForPickupType_result other) {
11442
      if (!getClass().equals(other.getClass())) {
11443
        return getClass().getName().compareTo(other.getClass().getName());
11444
      }
11445
 
11446
      int lastComparison = 0;
11447
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11448
 
11449
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11450
      if (lastComparison != 0) {
11451
        return lastComparison;
11452
      }
11453
      if (isSetSuccess()) {
11454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11455
        if (lastComparison != 0) {
11456
          return lastComparison;
11457
        }
11458
      }
11459
      return 0;
11460
    }
11461
 
11462
    public _Fields fieldForId(int fieldId) {
11463
      return _Fields.findByThriftId(fieldId);
11464
    }
11465
 
11466
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11467
      org.apache.thrift.protocol.TField field;
11468
      iprot.readStructBegin();
11469
      while (true)
11470
      {
11471
        field = iprot.readFieldBegin();
11472
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11473
          break;
11474
        }
11475
        switch (field.id) {
11476
          case 0: // SUCCESS
11477
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11478
              this.success = iprot.readI64();
11479
              setSuccessIsSet(true);
11480
            } else { 
11481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11482
            }
11483
            break;
11484
          default:
11485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11486
        }
11487
        iprot.readFieldEnd();
11488
      }
11489
      iprot.readStructEnd();
11490
      validate();
11491
    }
11492
 
11493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11494
      oprot.writeStructBegin(STRUCT_DESC);
11495
 
11496
      if (this.isSetSuccess()) {
11497
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11498
        oprot.writeI64(this.success);
11499
        oprot.writeFieldEnd();
11500
      }
11501
      oprot.writeFieldStop();
11502
      oprot.writeStructEnd();
11503
    }
11504
 
11505
    @Override
11506
    public String toString() {
11507
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11508
      boolean first = true;
11509
 
11510
      sb.append("success:");
11511
      sb.append(this.success);
11512
      first = false;
11513
      sb.append(")");
11514
      return sb.toString();
11515
    }
11516
 
11517
    public void validate() throws org.apache.thrift.TException {
11518
      // check for required fields
11519
    }
11520
 
11521
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11522
      try {
11523
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11524
      } catch (org.apache.thrift.TException te) {
11525
        throw new java.io.IOException(te);
11526
      }
11527
    }
11528
 
11529
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11530
      try {
11531
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11532
      } catch (org.apache.thrift.TException te) {
11533
        throw new java.io.IOException(te);
11534
      }
11535
    }
11536
 
11537
  }
11538
 
5553 rajveer 11539
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11540
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11541
 
11542
 
11543
 
11544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11546
;
11547
 
11548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11549
 
11550
      static {
11551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11552
          byName.put(field.getFieldName(), field);
11553
        }
11554
      }
11555
 
11556
      /**
11557
       * Find the _Fields constant that matches fieldId, or null if its not found.
11558
       */
11559
      public static _Fields findByThriftId(int fieldId) {
11560
        switch(fieldId) {
11561
          default:
11562
            return null;
11563
        }
11564
      }
11565
 
11566
      /**
11567
       * Find the _Fields constant that matches fieldId, throwing an exception
11568
       * if it is not found.
11569
       */
11570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11571
        _Fields fields = findByThriftId(fieldId);
11572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11573
        return fields;
11574
      }
11575
 
11576
      /**
11577
       * Find the _Fields constant that matches name, or null if its not found.
11578
       */
11579
      public static _Fields findByName(String name) {
11580
        return byName.get(name);
11581
      }
11582
 
11583
      private final short _thriftId;
11584
      private final String _fieldName;
11585
 
11586
      _Fields(short thriftId, String fieldName) {
11587
        _thriftId = thriftId;
11588
        _fieldName = fieldName;
11589
      }
11590
 
11591
      public short getThriftFieldId() {
11592
        return _thriftId;
11593
      }
11594
 
11595
      public String getFieldName() {
11596
        return _fieldName;
11597
      }
11598
    }
11599
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11600
    static {
11601
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
11604
    }
11605
 
11606
    public getAllPickupStores_args() {
11607
    }
11608
 
11609
    /**
11610
     * Performs a deep copy on <i>other</i>.
11611
     */
11612
    public getAllPickupStores_args(getAllPickupStores_args other) {
11613
    }
11614
 
11615
    public getAllPickupStores_args deepCopy() {
11616
      return new getAllPickupStores_args(this);
11617
    }
11618
 
11619
    @Override
11620
    public void clear() {
11621
    }
11622
 
11623
    public void setFieldValue(_Fields field, Object value) {
11624
      switch (field) {
11625
      }
11626
    }
11627
 
11628
    public Object getFieldValue(_Fields field) {
11629
      switch (field) {
11630
      }
11631
      throw new IllegalStateException();
11632
    }
11633
 
11634
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11635
    public boolean isSet(_Fields field) {
11636
      if (field == null) {
11637
        throw new IllegalArgumentException();
11638
      }
11639
 
11640
      switch (field) {
11641
      }
11642
      throw new IllegalStateException();
11643
    }
11644
 
11645
    @Override
11646
    public boolean equals(Object that) {
11647
      if (that == null)
11648
        return false;
11649
      if (that instanceof getAllPickupStores_args)
11650
        return this.equals((getAllPickupStores_args)that);
11651
      return false;
11652
    }
11653
 
11654
    public boolean equals(getAllPickupStores_args that) {
11655
      if (that == null)
11656
        return false;
11657
 
11658
      return true;
11659
    }
11660
 
11661
    @Override
11662
    public int hashCode() {
11663
      return 0;
11664
    }
11665
 
11666
    public int compareTo(getAllPickupStores_args other) {
11667
      if (!getClass().equals(other.getClass())) {
11668
        return getClass().getName().compareTo(other.getClass().getName());
11669
      }
11670
 
11671
      int lastComparison = 0;
11672
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
11673
 
11674
      return 0;
11675
    }
11676
 
11677
    public _Fields fieldForId(int fieldId) {
11678
      return _Fields.findByThriftId(fieldId);
11679
    }
11680
 
11681
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11682
      org.apache.thrift.protocol.TField field;
11683
      iprot.readStructBegin();
11684
      while (true)
11685
      {
11686
        field = iprot.readFieldBegin();
11687
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11688
          break;
11689
        }
11690
        switch (field.id) {
11691
          default:
11692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11693
        }
11694
        iprot.readFieldEnd();
11695
      }
11696
      iprot.readStructEnd();
11697
      validate();
11698
    }
11699
 
11700
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11701
      validate();
11702
 
11703
      oprot.writeStructBegin(STRUCT_DESC);
11704
      oprot.writeFieldStop();
11705
      oprot.writeStructEnd();
11706
    }
11707
 
11708
    @Override
11709
    public String toString() {
11710
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
11711
      boolean first = true;
11712
 
11713
      sb.append(")");
11714
      return sb.toString();
11715
    }
11716
 
11717
    public void validate() throws org.apache.thrift.TException {
11718
      // check for required fields
11719
    }
11720
 
11721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11722
      try {
11723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11724
      } catch (org.apache.thrift.TException te) {
11725
        throw new java.io.IOException(te);
11726
      }
11727
    }
11728
 
11729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11730
      try {
11731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11732
      } catch (org.apache.thrift.TException te) {
11733
        throw new java.io.IOException(te);
11734
      }
11735
    }
11736
 
11737
  }
11738
 
11739
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
11740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
11741
 
11742
    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);
11743
 
11744
    private List<PickupStore> success; // required
11745
 
11746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11747
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11748
      SUCCESS((short)0, "success");
11749
 
11750
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11751
 
11752
      static {
11753
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11754
          byName.put(field.getFieldName(), field);
11755
        }
11756
      }
11757
 
11758
      /**
11759
       * Find the _Fields constant that matches fieldId, or null if its not found.
11760
       */
11761
      public static _Fields findByThriftId(int fieldId) {
11762
        switch(fieldId) {
11763
          case 0: // SUCCESS
11764
            return SUCCESS;
11765
          default:
11766
            return null;
11767
        }
11768
      }
11769
 
11770
      /**
11771
       * Find the _Fields constant that matches fieldId, throwing an exception
11772
       * if it is not found.
11773
       */
11774
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11775
        _Fields fields = findByThriftId(fieldId);
11776
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11777
        return fields;
11778
      }
11779
 
11780
      /**
11781
       * Find the _Fields constant that matches name, or null if its not found.
11782
       */
11783
      public static _Fields findByName(String name) {
11784
        return byName.get(name);
11785
      }
11786
 
11787
      private final short _thriftId;
11788
      private final String _fieldName;
11789
 
11790
      _Fields(short thriftId, String fieldName) {
11791
        _thriftId = thriftId;
11792
        _fieldName = fieldName;
11793
      }
11794
 
11795
      public short getThriftFieldId() {
11796
        return _thriftId;
11797
      }
11798
 
11799
      public String getFieldName() {
11800
        return _fieldName;
11801
      }
11802
    }
11803
 
11804
    // isset id assignments
11805
 
11806
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11807
    static {
11808
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11809
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11810
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11811
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
11812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
11814
    }
11815
 
11816
    public getAllPickupStores_result() {
11817
    }
11818
 
11819
    public getAllPickupStores_result(
11820
      List<PickupStore> success)
11821
    {
11822
      this();
11823
      this.success = success;
11824
    }
11825
 
11826
    /**
11827
     * Performs a deep copy on <i>other</i>.
11828
     */
11829
    public getAllPickupStores_result(getAllPickupStores_result other) {
11830
      if (other.isSetSuccess()) {
11831
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
11832
        for (PickupStore other_element : other.success) {
11833
          __this__success.add(new PickupStore(other_element));
11834
        }
11835
        this.success = __this__success;
11836
      }
11837
    }
11838
 
11839
    public getAllPickupStores_result deepCopy() {
11840
      return new getAllPickupStores_result(this);
11841
    }
11842
 
11843
    @Override
11844
    public void clear() {
11845
      this.success = null;
11846
    }
11847
 
11848
    public int getSuccessSize() {
11849
      return (this.success == null) ? 0 : this.success.size();
11850
    }
11851
 
11852
    public java.util.Iterator<PickupStore> getSuccessIterator() {
11853
      return (this.success == null) ? null : this.success.iterator();
11854
    }
11855
 
11856
    public void addToSuccess(PickupStore elem) {
11857
      if (this.success == null) {
11858
        this.success = new ArrayList<PickupStore>();
11859
      }
11860
      this.success.add(elem);
11861
    }
11862
 
11863
    public List<PickupStore> getSuccess() {
11864
      return this.success;
11865
    }
11866
 
11867
    public void setSuccess(List<PickupStore> success) {
11868
      this.success = success;
11869
    }
11870
 
11871
    public void unsetSuccess() {
11872
      this.success = null;
11873
    }
11874
 
11875
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11876
    public boolean isSetSuccess() {
11877
      return this.success != null;
11878
    }
11879
 
11880
    public void setSuccessIsSet(boolean value) {
11881
      if (!value) {
11882
        this.success = null;
11883
      }
11884
    }
11885
 
11886
    public void setFieldValue(_Fields field, Object value) {
11887
      switch (field) {
11888
      case SUCCESS:
11889
        if (value == null) {
11890
          unsetSuccess();
11891
        } else {
11892
          setSuccess((List<PickupStore>)value);
11893
        }
11894
        break;
11895
 
11896
      }
11897
    }
11898
 
11899
    public Object getFieldValue(_Fields field) {
11900
      switch (field) {
11901
      case SUCCESS:
11902
        return getSuccess();
11903
 
11904
      }
11905
      throw new IllegalStateException();
11906
    }
11907
 
11908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11909
    public boolean isSet(_Fields field) {
11910
      if (field == null) {
11911
        throw new IllegalArgumentException();
11912
      }
11913
 
11914
      switch (field) {
11915
      case SUCCESS:
11916
        return isSetSuccess();
11917
      }
11918
      throw new IllegalStateException();
11919
    }
11920
 
11921
    @Override
11922
    public boolean equals(Object that) {
11923
      if (that == null)
11924
        return false;
11925
      if (that instanceof getAllPickupStores_result)
11926
        return this.equals((getAllPickupStores_result)that);
11927
      return false;
11928
    }
11929
 
11930
    public boolean equals(getAllPickupStores_result that) {
11931
      if (that == null)
11932
        return false;
11933
 
11934
      boolean this_present_success = true && this.isSetSuccess();
11935
      boolean that_present_success = true && that.isSetSuccess();
11936
      if (this_present_success || that_present_success) {
11937
        if (!(this_present_success && that_present_success))
11938
          return false;
11939
        if (!this.success.equals(that.success))
11940
          return false;
11941
      }
11942
 
11943
      return true;
11944
    }
11945
 
11946
    @Override
11947
    public int hashCode() {
11948
      return 0;
11949
    }
11950
 
11951
    public int compareTo(getAllPickupStores_result other) {
11952
      if (!getClass().equals(other.getClass())) {
11953
        return getClass().getName().compareTo(other.getClass().getName());
11954
      }
11955
 
11956
      int lastComparison = 0;
11957
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
11958
 
11959
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11960
      if (lastComparison != 0) {
11961
        return lastComparison;
11962
      }
11963
      if (isSetSuccess()) {
11964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11965
        if (lastComparison != 0) {
11966
          return lastComparison;
11967
        }
11968
      }
11969
      return 0;
11970
    }
11971
 
11972
    public _Fields fieldForId(int fieldId) {
11973
      return _Fields.findByThriftId(fieldId);
11974
    }
11975
 
11976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11977
      org.apache.thrift.protocol.TField field;
11978
      iprot.readStructBegin();
11979
      while (true)
11980
      {
11981
        field = iprot.readFieldBegin();
11982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11983
          break;
11984
        }
11985
        switch (field.id) {
11986
          case 0: // SUCCESS
11987
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11988
              {
11989
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
11990
                this.success = new ArrayList<PickupStore>(_list21.size);
11991
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
11992
                {
11993
                  PickupStore _elem23; // required
11994
                  _elem23 = new PickupStore();
11995
                  _elem23.read(iprot);
11996
                  this.success.add(_elem23);
11997
                }
11998
                iprot.readListEnd();
11999
              }
12000
            } else { 
12001
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12002
            }
12003
            break;
12004
          default:
12005
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12006
        }
12007
        iprot.readFieldEnd();
12008
      }
12009
      iprot.readStructEnd();
12010
      validate();
12011
    }
12012
 
12013
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12014
      oprot.writeStructBegin(STRUCT_DESC);
12015
 
12016
      if (this.isSetSuccess()) {
12017
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12018
        {
12019
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12020
          for (PickupStore _iter24 : this.success)
12021
          {
12022
            _iter24.write(oprot);
12023
          }
12024
          oprot.writeListEnd();
12025
        }
12026
        oprot.writeFieldEnd();
12027
      }
12028
      oprot.writeFieldStop();
12029
      oprot.writeStructEnd();
12030
    }
12031
 
12032
    @Override
12033
    public String toString() {
12034
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12035
      boolean first = true;
12036
 
12037
      sb.append("success:");
12038
      if (this.success == null) {
12039
        sb.append("null");
12040
      } else {
12041
        sb.append(this.success);
12042
      }
12043
      first = false;
12044
      sb.append(")");
12045
      return sb.toString();
12046
    }
12047
 
12048
    public void validate() throws org.apache.thrift.TException {
12049
      // check for required fields
12050
    }
12051
 
12052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12053
      try {
12054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12055
      } catch (org.apache.thrift.TException te) {
12056
        throw new java.io.IOException(te);
12057
      }
12058
    }
12059
 
12060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12061
      try {
12062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12063
      } catch (org.apache.thrift.TException te) {
12064
        throw new java.io.IOException(te);
12065
      }
12066
    }
12067
 
12068
  }
12069
 
12070
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12072
 
12073
    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);
12074
 
12075
    private long storeId; // required
12076
 
12077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12079
      STORE_ID((short)1, "storeId");
12080
 
12081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12082
 
12083
      static {
12084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12085
          byName.put(field.getFieldName(), field);
12086
        }
12087
      }
12088
 
12089
      /**
12090
       * Find the _Fields constant that matches fieldId, or null if its not found.
12091
       */
12092
      public static _Fields findByThriftId(int fieldId) {
12093
        switch(fieldId) {
12094
          case 1: // STORE_ID
12095
            return STORE_ID;
12096
          default:
12097
            return null;
12098
        }
12099
      }
12100
 
12101
      /**
12102
       * Find the _Fields constant that matches fieldId, throwing an exception
12103
       * if it is not found.
12104
       */
12105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12106
        _Fields fields = findByThriftId(fieldId);
12107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12108
        return fields;
12109
      }
12110
 
12111
      /**
12112
       * Find the _Fields constant that matches name, or null if its not found.
12113
       */
12114
      public static _Fields findByName(String name) {
12115
        return byName.get(name);
12116
      }
12117
 
12118
      private final short _thriftId;
12119
      private final String _fieldName;
12120
 
12121
      _Fields(short thriftId, String fieldName) {
12122
        _thriftId = thriftId;
12123
        _fieldName = fieldName;
12124
      }
12125
 
12126
      public short getThriftFieldId() {
12127
        return _thriftId;
12128
      }
12129
 
12130
      public String getFieldName() {
12131
        return _fieldName;
12132
      }
12133
    }
12134
 
12135
    // isset id assignments
12136
    private static final int __STOREID_ISSET_ID = 0;
12137
    private BitSet __isset_bit_vector = new BitSet(1);
12138
 
12139
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12140
    static {
12141
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12142
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12144
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12145
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12146
    }
12147
 
12148
    public getPickupStore_args() {
12149
    }
12150
 
12151
    public getPickupStore_args(
12152
      long storeId)
12153
    {
12154
      this();
12155
      this.storeId = storeId;
12156
      setStoreIdIsSet(true);
12157
    }
12158
 
12159
    /**
12160
     * Performs a deep copy on <i>other</i>.
12161
     */
12162
    public getPickupStore_args(getPickupStore_args other) {
12163
      __isset_bit_vector.clear();
12164
      __isset_bit_vector.or(other.__isset_bit_vector);
12165
      this.storeId = other.storeId;
12166
    }
12167
 
12168
    public getPickupStore_args deepCopy() {
12169
      return new getPickupStore_args(this);
12170
    }
12171
 
12172
    @Override
12173
    public void clear() {
12174
      setStoreIdIsSet(false);
12175
      this.storeId = 0;
12176
    }
12177
 
12178
    public long getStoreId() {
12179
      return this.storeId;
12180
    }
12181
 
12182
    public void setStoreId(long storeId) {
12183
      this.storeId = storeId;
12184
      setStoreIdIsSet(true);
12185
    }
12186
 
12187
    public void unsetStoreId() {
12188
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12189
    }
12190
 
12191
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12192
    public boolean isSetStoreId() {
12193
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12194
    }
12195
 
12196
    public void setStoreIdIsSet(boolean value) {
12197
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12198
    }
12199
 
12200
    public void setFieldValue(_Fields field, Object value) {
12201
      switch (field) {
12202
      case STORE_ID:
12203
        if (value == null) {
12204
          unsetStoreId();
12205
        } else {
12206
          setStoreId((Long)value);
12207
        }
12208
        break;
12209
 
12210
      }
12211
    }
12212
 
12213
    public Object getFieldValue(_Fields field) {
12214
      switch (field) {
12215
      case STORE_ID:
12216
        return Long.valueOf(getStoreId());
12217
 
12218
      }
12219
      throw new IllegalStateException();
12220
    }
12221
 
12222
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12223
    public boolean isSet(_Fields field) {
12224
      if (field == null) {
12225
        throw new IllegalArgumentException();
12226
      }
12227
 
12228
      switch (field) {
12229
      case STORE_ID:
12230
        return isSetStoreId();
12231
      }
12232
      throw new IllegalStateException();
12233
    }
12234
 
12235
    @Override
12236
    public boolean equals(Object that) {
12237
      if (that == null)
12238
        return false;
12239
      if (that instanceof getPickupStore_args)
12240
        return this.equals((getPickupStore_args)that);
12241
      return false;
12242
    }
12243
 
12244
    public boolean equals(getPickupStore_args that) {
12245
      if (that == null)
12246
        return false;
12247
 
12248
      boolean this_present_storeId = true;
12249
      boolean that_present_storeId = true;
12250
      if (this_present_storeId || that_present_storeId) {
12251
        if (!(this_present_storeId && that_present_storeId))
12252
          return false;
12253
        if (this.storeId != that.storeId)
12254
          return false;
12255
      }
12256
 
12257
      return true;
12258
    }
12259
 
12260
    @Override
12261
    public int hashCode() {
12262
      return 0;
12263
    }
12264
 
12265
    public int compareTo(getPickupStore_args other) {
12266
      if (!getClass().equals(other.getClass())) {
12267
        return getClass().getName().compareTo(other.getClass().getName());
12268
      }
12269
 
12270
      int lastComparison = 0;
12271
      getPickupStore_args typedOther = (getPickupStore_args)other;
12272
 
12273
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12274
      if (lastComparison != 0) {
12275
        return lastComparison;
12276
      }
12277
      if (isSetStoreId()) {
12278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12279
        if (lastComparison != 0) {
12280
          return lastComparison;
12281
        }
12282
      }
12283
      return 0;
12284
    }
12285
 
12286
    public _Fields fieldForId(int fieldId) {
12287
      return _Fields.findByThriftId(fieldId);
12288
    }
12289
 
12290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12291
      org.apache.thrift.protocol.TField field;
12292
      iprot.readStructBegin();
12293
      while (true)
12294
      {
12295
        field = iprot.readFieldBegin();
12296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12297
          break;
12298
        }
12299
        switch (field.id) {
12300
          case 1: // STORE_ID
12301
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12302
              this.storeId = iprot.readI64();
12303
              setStoreIdIsSet(true);
12304
            } else { 
12305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12306
            }
12307
            break;
12308
          default:
12309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12310
        }
12311
        iprot.readFieldEnd();
12312
      }
12313
      iprot.readStructEnd();
12314
      validate();
12315
    }
12316
 
12317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12318
      validate();
12319
 
12320
      oprot.writeStructBegin(STRUCT_DESC);
12321
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12322
      oprot.writeI64(this.storeId);
12323
      oprot.writeFieldEnd();
12324
      oprot.writeFieldStop();
12325
      oprot.writeStructEnd();
12326
    }
12327
 
12328
    @Override
12329
    public String toString() {
12330
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12331
      boolean first = true;
12332
 
12333
      sb.append("storeId:");
12334
      sb.append(this.storeId);
12335
      first = false;
12336
      sb.append(")");
12337
      return sb.toString();
12338
    }
12339
 
12340
    public void validate() throws org.apache.thrift.TException {
12341
      // check for required fields
12342
    }
12343
 
12344
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12345
      try {
12346
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12347
      } catch (org.apache.thrift.TException te) {
12348
        throw new java.io.IOException(te);
12349
      }
12350
    }
12351
 
12352
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12353
      try {
12354
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12355
        __isset_bit_vector = new BitSet(1);
12356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12357
      } catch (org.apache.thrift.TException te) {
12358
        throw new java.io.IOException(te);
12359
      }
12360
    }
12361
 
12362
  }
12363
 
12364
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12366
 
12367
    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);
12368
 
12369
    private PickupStore success; // required
12370
 
12371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12373
      SUCCESS((short)0, "success");
12374
 
12375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12376
 
12377
      static {
12378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12379
          byName.put(field.getFieldName(), field);
12380
        }
12381
      }
12382
 
12383
      /**
12384
       * Find the _Fields constant that matches fieldId, or null if its not found.
12385
       */
12386
      public static _Fields findByThriftId(int fieldId) {
12387
        switch(fieldId) {
12388
          case 0: // SUCCESS
12389
            return SUCCESS;
12390
          default:
12391
            return null;
12392
        }
12393
      }
12394
 
12395
      /**
12396
       * Find the _Fields constant that matches fieldId, throwing an exception
12397
       * if it is not found.
12398
       */
12399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12400
        _Fields fields = findByThriftId(fieldId);
12401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12402
        return fields;
12403
      }
12404
 
12405
      /**
12406
       * Find the _Fields constant that matches name, or null if its not found.
12407
       */
12408
      public static _Fields findByName(String name) {
12409
        return byName.get(name);
12410
      }
12411
 
12412
      private final short _thriftId;
12413
      private final String _fieldName;
12414
 
12415
      _Fields(short thriftId, String fieldName) {
12416
        _thriftId = thriftId;
12417
        _fieldName = fieldName;
12418
      }
12419
 
12420
      public short getThriftFieldId() {
12421
        return _thriftId;
12422
      }
12423
 
12424
      public String getFieldName() {
12425
        return _fieldName;
12426
      }
12427
    }
12428
 
12429
    // isset id assignments
12430
 
12431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12432
    static {
12433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12434
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12435
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12438
    }
12439
 
12440
    public getPickupStore_result() {
12441
    }
12442
 
12443
    public getPickupStore_result(
12444
      PickupStore success)
12445
    {
12446
      this();
12447
      this.success = success;
12448
    }
12449
 
12450
    /**
12451
     * Performs a deep copy on <i>other</i>.
12452
     */
12453
    public getPickupStore_result(getPickupStore_result other) {
12454
      if (other.isSetSuccess()) {
12455
        this.success = new PickupStore(other.success);
12456
      }
12457
    }
12458
 
12459
    public getPickupStore_result deepCopy() {
12460
      return new getPickupStore_result(this);
12461
    }
12462
 
12463
    @Override
12464
    public void clear() {
12465
      this.success = null;
12466
    }
12467
 
12468
    public PickupStore getSuccess() {
12469
      return this.success;
12470
    }
12471
 
12472
    public void setSuccess(PickupStore success) {
12473
      this.success = success;
12474
    }
12475
 
12476
    public void unsetSuccess() {
12477
      this.success = null;
12478
    }
12479
 
12480
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12481
    public boolean isSetSuccess() {
12482
      return this.success != null;
12483
    }
12484
 
12485
    public void setSuccessIsSet(boolean value) {
12486
      if (!value) {
12487
        this.success = null;
12488
      }
12489
    }
12490
 
12491
    public void setFieldValue(_Fields field, Object value) {
12492
      switch (field) {
12493
      case SUCCESS:
12494
        if (value == null) {
12495
          unsetSuccess();
12496
        } else {
12497
          setSuccess((PickupStore)value);
12498
        }
12499
        break;
12500
 
12501
      }
12502
    }
12503
 
12504
    public Object getFieldValue(_Fields field) {
12505
      switch (field) {
12506
      case SUCCESS:
12507
        return getSuccess();
12508
 
12509
      }
12510
      throw new IllegalStateException();
12511
    }
12512
 
12513
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12514
    public boolean isSet(_Fields field) {
12515
      if (field == null) {
12516
        throw new IllegalArgumentException();
12517
      }
12518
 
12519
      switch (field) {
12520
      case SUCCESS:
12521
        return isSetSuccess();
12522
      }
12523
      throw new IllegalStateException();
12524
    }
12525
 
12526
    @Override
12527
    public boolean equals(Object that) {
12528
      if (that == null)
12529
        return false;
12530
      if (that instanceof getPickupStore_result)
12531
        return this.equals((getPickupStore_result)that);
12532
      return false;
12533
    }
12534
 
12535
    public boolean equals(getPickupStore_result that) {
12536
      if (that == null)
12537
        return false;
12538
 
12539
      boolean this_present_success = true && this.isSetSuccess();
12540
      boolean that_present_success = true && that.isSetSuccess();
12541
      if (this_present_success || that_present_success) {
12542
        if (!(this_present_success && that_present_success))
12543
          return false;
12544
        if (!this.success.equals(that.success))
12545
          return false;
12546
      }
12547
 
12548
      return true;
12549
    }
12550
 
12551
    @Override
12552
    public int hashCode() {
12553
      return 0;
12554
    }
12555
 
12556
    public int compareTo(getPickupStore_result other) {
12557
      if (!getClass().equals(other.getClass())) {
12558
        return getClass().getName().compareTo(other.getClass().getName());
12559
      }
12560
 
12561
      int lastComparison = 0;
12562
      getPickupStore_result typedOther = (getPickupStore_result)other;
12563
 
12564
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12565
      if (lastComparison != 0) {
12566
        return lastComparison;
12567
      }
12568
      if (isSetSuccess()) {
12569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12570
        if (lastComparison != 0) {
12571
          return lastComparison;
12572
        }
12573
      }
12574
      return 0;
12575
    }
12576
 
12577
    public _Fields fieldForId(int fieldId) {
12578
      return _Fields.findByThriftId(fieldId);
12579
    }
12580
 
12581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12582
      org.apache.thrift.protocol.TField field;
12583
      iprot.readStructBegin();
12584
      while (true)
12585
      {
12586
        field = iprot.readFieldBegin();
12587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12588
          break;
12589
        }
12590
        switch (field.id) {
12591
          case 0: // SUCCESS
12592
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12593
              this.success = new PickupStore();
12594
              this.success.read(iprot);
12595
            } else { 
12596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12597
            }
12598
            break;
12599
          default:
12600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12601
        }
12602
        iprot.readFieldEnd();
12603
      }
12604
      iprot.readStructEnd();
12605
      validate();
12606
    }
12607
 
12608
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12609
      oprot.writeStructBegin(STRUCT_DESC);
12610
 
12611
      if (this.isSetSuccess()) {
12612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12613
        this.success.write(oprot);
12614
        oprot.writeFieldEnd();
12615
      }
12616
      oprot.writeFieldStop();
12617
      oprot.writeStructEnd();
12618
    }
12619
 
12620
    @Override
12621
    public String toString() {
12622
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
12623
      boolean first = true;
12624
 
12625
      sb.append("success:");
12626
      if (this.success == null) {
12627
        sb.append("null");
12628
      } else {
12629
        sb.append(this.success);
12630
      }
12631
      first = false;
12632
      sb.append(")");
12633
      return sb.toString();
12634
    }
12635
 
12636
    public void validate() throws org.apache.thrift.TException {
12637
      // check for required fields
12638
    }
12639
 
12640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12641
      try {
12642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12643
      } catch (org.apache.thrift.TException te) {
12644
        throw new java.io.IOException(te);
12645
      }
12646
    }
12647
 
12648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12649
      try {
12650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12651
      } catch (org.apache.thrift.TException te) {
12652
        throw new java.io.IOException(te);
12653
      }
12654
    }
12655
 
12656
  }
12657
 
5719 rajveer 12658
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
12659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
12660
 
12661
    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);
12662
 
12663
    private String hotspotId; // required
12664
 
12665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12667
      HOTSPOT_ID((short)1, "hotspotId");
12668
 
12669
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12670
 
12671
      static {
12672
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12673
          byName.put(field.getFieldName(), field);
12674
        }
12675
      }
12676
 
12677
      /**
12678
       * Find the _Fields constant that matches fieldId, or null if its not found.
12679
       */
12680
      public static _Fields findByThriftId(int fieldId) {
12681
        switch(fieldId) {
12682
          case 1: // HOTSPOT_ID
12683
            return HOTSPOT_ID;
12684
          default:
12685
            return null;
12686
        }
12687
      }
12688
 
12689
      /**
12690
       * Find the _Fields constant that matches fieldId, throwing an exception
12691
       * if it is not found.
12692
       */
12693
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12694
        _Fields fields = findByThriftId(fieldId);
12695
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12696
        return fields;
12697
      }
12698
 
12699
      /**
12700
       * Find the _Fields constant that matches name, or null if its not found.
12701
       */
12702
      public static _Fields findByName(String name) {
12703
        return byName.get(name);
12704
      }
12705
 
12706
      private final short _thriftId;
12707
      private final String _fieldName;
12708
 
12709
      _Fields(short thriftId, String fieldName) {
12710
        _thriftId = thriftId;
12711
        _fieldName = fieldName;
12712
      }
12713
 
12714
      public short getThriftFieldId() {
12715
        return _thriftId;
12716
      }
12717
 
12718
      public String getFieldName() {
12719
        return _fieldName;
12720
      }
12721
    }
12722
 
12723
    // isset id assignments
12724
 
12725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12726
    static {
12727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12728
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12730
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12731
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
12732
    }
12733
 
12734
    public getPickupStoreByHotspotId_args() {
12735
    }
12736
 
12737
    public getPickupStoreByHotspotId_args(
12738
      String hotspotId)
12739
    {
12740
      this();
12741
      this.hotspotId = hotspotId;
12742
    }
12743
 
12744
    /**
12745
     * Performs a deep copy on <i>other</i>.
12746
     */
12747
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
12748
      if (other.isSetHotspotId()) {
12749
        this.hotspotId = other.hotspotId;
12750
      }
12751
    }
12752
 
12753
    public getPickupStoreByHotspotId_args deepCopy() {
12754
      return new getPickupStoreByHotspotId_args(this);
12755
    }
12756
 
12757
    @Override
12758
    public void clear() {
12759
      this.hotspotId = null;
12760
    }
12761
 
12762
    public String getHotspotId() {
12763
      return this.hotspotId;
12764
    }
12765
 
12766
    public void setHotspotId(String hotspotId) {
12767
      this.hotspotId = hotspotId;
12768
    }
12769
 
12770
    public void unsetHotspotId() {
12771
      this.hotspotId = null;
12772
    }
12773
 
12774
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
12775
    public boolean isSetHotspotId() {
12776
      return this.hotspotId != null;
12777
    }
12778
 
12779
    public void setHotspotIdIsSet(boolean value) {
12780
      if (!value) {
12781
        this.hotspotId = null;
12782
      }
12783
    }
12784
 
12785
    public void setFieldValue(_Fields field, Object value) {
12786
      switch (field) {
12787
      case HOTSPOT_ID:
12788
        if (value == null) {
12789
          unsetHotspotId();
12790
        } else {
12791
          setHotspotId((String)value);
12792
        }
12793
        break;
12794
 
12795
      }
12796
    }
12797
 
12798
    public Object getFieldValue(_Fields field) {
12799
      switch (field) {
12800
      case HOTSPOT_ID:
12801
        return getHotspotId();
12802
 
12803
      }
12804
      throw new IllegalStateException();
12805
    }
12806
 
12807
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12808
    public boolean isSet(_Fields field) {
12809
      if (field == null) {
12810
        throw new IllegalArgumentException();
12811
      }
12812
 
12813
      switch (field) {
12814
      case HOTSPOT_ID:
12815
        return isSetHotspotId();
12816
      }
12817
      throw new IllegalStateException();
12818
    }
12819
 
12820
    @Override
12821
    public boolean equals(Object that) {
12822
      if (that == null)
12823
        return false;
12824
      if (that instanceof getPickupStoreByHotspotId_args)
12825
        return this.equals((getPickupStoreByHotspotId_args)that);
12826
      return false;
12827
    }
12828
 
12829
    public boolean equals(getPickupStoreByHotspotId_args that) {
12830
      if (that == null)
12831
        return false;
12832
 
12833
      boolean this_present_hotspotId = true && this.isSetHotspotId();
12834
      boolean that_present_hotspotId = true && that.isSetHotspotId();
12835
      if (this_present_hotspotId || that_present_hotspotId) {
12836
        if (!(this_present_hotspotId && that_present_hotspotId))
12837
          return false;
12838
        if (!this.hotspotId.equals(that.hotspotId))
12839
          return false;
12840
      }
12841
 
12842
      return true;
12843
    }
12844
 
12845
    @Override
12846
    public int hashCode() {
12847
      return 0;
12848
    }
12849
 
12850
    public int compareTo(getPickupStoreByHotspotId_args other) {
12851
      if (!getClass().equals(other.getClass())) {
12852
        return getClass().getName().compareTo(other.getClass().getName());
12853
      }
12854
 
12855
      int lastComparison = 0;
12856
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
12857
 
12858
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
12859
      if (lastComparison != 0) {
12860
        return lastComparison;
12861
      }
12862
      if (isSetHotspotId()) {
12863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
12864
        if (lastComparison != 0) {
12865
          return lastComparison;
12866
        }
12867
      }
12868
      return 0;
12869
    }
12870
 
12871
    public _Fields fieldForId(int fieldId) {
12872
      return _Fields.findByThriftId(fieldId);
12873
    }
12874
 
12875
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12876
      org.apache.thrift.protocol.TField field;
12877
      iprot.readStructBegin();
12878
      while (true)
12879
      {
12880
        field = iprot.readFieldBegin();
12881
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12882
          break;
12883
        }
12884
        switch (field.id) {
12885
          case 1: // HOTSPOT_ID
12886
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12887
              this.hotspotId = iprot.readString();
12888
            } else { 
12889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12890
            }
12891
            break;
12892
          default:
12893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12894
        }
12895
        iprot.readFieldEnd();
12896
      }
12897
      iprot.readStructEnd();
12898
      validate();
12899
    }
12900
 
12901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12902
      validate();
12903
 
12904
      oprot.writeStructBegin(STRUCT_DESC);
12905
      if (this.hotspotId != null) {
12906
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
12907
        oprot.writeString(this.hotspotId);
12908
        oprot.writeFieldEnd();
12909
      }
12910
      oprot.writeFieldStop();
12911
      oprot.writeStructEnd();
12912
    }
12913
 
12914
    @Override
12915
    public String toString() {
12916
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
12917
      boolean first = true;
12918
 
12919
      sb.append("hotspotId:");
12920
      if (this.hotspotId == null) {
12921
        sb.append("null");
12922
      } else {
12923
        sb.append(this.hotspotId);
12924
      }
12925
      first = false;
12926
      sb.append(")");
12927
      return sb.toString();
12928
    }
12929
 
12930
    public void validate() throws org.apache.thrift.TException {
12931
      // check for required fields
12932
    }
12933
 
12934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12935
      try {
12936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12937
      } catch (org.apache.thrift.TException te) {
12938
        throw new java.io.IOException(te);
12939
      }
12940
    }
12941
 
12942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12943
      try {
12944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12945
      } catch (org.apache.thrift.TException te) {
12946
        throw new java.io.IOException(te);
12947
      }
12948
    }
12949
 
12950
  }
12951
 
12952
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
12953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
12954
 
12955
    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);
12956
 
12957
    private PickupStore success; // required
12958
 
12959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12961
      SUCCESS((short)0, "success");
12962
 
12963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12964
 
12965
      static {
12966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12967
          byName.put(field.getFieldName(), field);
12968
        }
12969
      }
12970
 
12971
      /**
12972
       * Find the _Fields constant that matches fieldId, or null if its not found.
12973
       */
12974
      public static _Fields findByThriftId(int fieldId) {
12975
        switch(fieldId) {
12976
          case 0: // SUCCESS
12977
            return SUCCESS;
12978
          default:
12979
            return null;
12980
        }
12981
      }
12982
 
12983
      /**
12984
       * Find the _Fields constant that matches fieldId, throwing an exception
12985
       * if it is not found.
12986
       */
12987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12988
        _Fields fields = findByThriftId(fieldId);
12989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12990
        return fields;
12991
      }
12992
 
12993
      /**
12994
       * Find the _Fields constant that matches name, or null if its not found.
12995
       */
12996
      public static _Fields findByName(String name) {
12997
        return byName.get(name);
12998
      }
12999
 
13000
      private final short _thriftId;
13001
      private final String _fieldName;
13002
 
13003
      _Fields(short thriftId, String fieldName) {
13004
        _thriftId = thriftId;
13005
        _fieldName = fieldName;
13006
      }
13007
 
13008
      public short getThriftFieldId() {
13009
        return _thriftId;
13010
      }
13011
 
13012
      public String getFieldName() {
13013
        return _fieldName;
13014
      }
13015
    }
13016
 
13017
    // isset id assignments
13018
 
13019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13020
    static {
13021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13022
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13023
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13024
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13025
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13026
    }
13027
 
13028
    public getPickupStoreByHotspotId_result() {
13029
    }
13030
 
13031
    public getPickupStoreByHotspotId_result(
13032
      PickupStore success)
13033
    {
13034
      this();
13035
      this.success = success;
13036
    }
13037
 
13038
    /**
13039
     * Performs a deep copy on <i>other</i>.
13040
     */
13041
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13042
      if (other.isSetSuccess()) {
13043
        this.success = new PickupStore(other.success);
13044
      }
13045
    }
13046
 
13047
    public getPickupStoreByHotspotId_result deepCopy() {
13048
      return new getPickupStoreByHotspotId_result(this);
13049
    }
13050
 
13051
    @Override
13052
    public void clear() {
13053
      this.success = null;
13054
    }
13055
 
13056
    public PickupStore getSuccess() {
13057
      return this.success;
13058
    }
13059
 
13060
    public void setSuccess(PickupStore success) {
13061
      this.success = success;
13062
    }
13063
 
13064
    public void unsetSuccess() {
13065
      this.success = null;
13066
    }
13067
 
13068
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13069
    public boolean isSetSuccess() {
13070
      return this.success != null;
13071
    }
13072
 
13073
    public void setSuccessIsSet(boolean value) {
13074
      if (!value) {
13075
        this.success = null;
13076
      }
13077
    }
13078
 
13079
    public void setFieldValue(_Fields field, Object value) {
13080
      switch (field) {
13081
      case SUCCESS:
13082
        if (value == null) {
13083
          unsetSuccess();
13084
        } else {
13085
          setSuccess((PickupStore)value);
13086
        }
13087
        break;
13088
 
13089
      }
13090
    }
13091
 
13092
    public Object getFieldValue(_Fields field) {
13093
      switch (field) {
13094
      case SUCCESS:
13095
        return getSuccess();
13096
 
13097
      }
13098
      throw new IllegalStateException();
13099
    }
13100
 
13101
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13102
    public boolean isSet(_Fields field) {
13103
      if (field == null) {
13104
        throw new IllegalArgumentException();
13105
      }
13106
 
13107
      switch (field) {
13108
      case SUCCESS:
13109
        return isSetSuccess();
13110
      }
13111
      throw new IllegalStateException();
13112
    }
13113
 
13114
    @Override
13115
    public boolean equals(Object that) {
13116
      if (that == null)
13117
        return false;
13118
      if (that instanceof getPickupStoreByHotspotId_result)
13119
        return this.equals((getPickupStoreByHotspotId_result)that);
13120
      return false;
13121
    }
13122
 
13123
    public boolean equals(getPickupStoreByHotspotId_result that) {
13124
      if (that == null)
13125
        return false;
13126
 
13127
      boolean this_present_success = true && this.isSetSuccess();
13128
      boolean that_present_success = true && that.isSetSuccess();
13129
      if (this_present_success || that_present_success) {
13130
        if (!(this_present_success && that_present_success))
13131
          return false;
13132
        if (!this.success.equals(that.success))
13133
          return false;
13134
      }
13135
 
13136
      return true;
13137
    }
13138
 
13139
    @Override
13140
    public int hashCode() {
13141
      return 0;
13142
    }
13143
 
13144
    public int compareTo(getPickupStoreByHotspotId_result other) {
13145
      if (!getClass().equals(other.getClass())) {
13146
        return getClass().getName().compareTo(other.getClass().getName());
13147
      }
13148
 
13149
      int lastComparison = 0;
13150
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13151
 
13152
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13153
      if (lastComparison != 0) {
13154
        return lastComparison;
13155
      }
13156
      if (isSetSuccess()) {
13157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13158
        if (lastComparison != 0) {
13159
          return lastComparison;
13160
        }
13161
      }
13162
      return 0;
13163
    }
13164
 
13165
    public _Fields fieldForId(int fieldId) {
13166
      return _Fields.findByThriftId(fieldId);
13167
    }
13168
 
13169
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13170
      org.apache.thrift.protocol.TField field;
13171
      iprot.readStructBegin();
13172
      while (true)
13173
      {
13174
        field = iprot.readFieldBegin();
13175
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13176
          break;
13177
        }
13178
        switch (field.id) {
13179
          case 0: // SUCCESS
13180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13181
              this.success = new PickupStore();
13182
              this.success.read(iprot);
13183
            } else { 
13184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13185
            }
13186
            break;
13187
          default:
13188
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13189
        }
13190
        iprot.readFieldEnd();
13191
      }
13192
      iprot.readStructEnd();
13193
      validate();
13194
    }
13195
 
13196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13197
      oprot.writeStructBegin(STRUCT_DESC);
13198
 
13199
      if (this.isSetSuccess()) {
13200
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13201
        this.success.write(oprot);
13202
        oprot.writeFieldEnd();
13203
      }
13204
      oprot.writeFieldStop();
13205
      oprot.writeStructEnd();
13206
    }
13207
 
13208
    @Override
13209
    public String toString() {
13210
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13211
      boolean first = true;
13212
 
13213
      sb.append("success:");
13214
      if (this.success == null) {
13215
        sb.append("null");
13216
      } else {
13217
        sb.append(this.success);
13218
      }
13219
      first = false;
13220
      sb.append(")");
13221
      return sb.toString();
13222
    }
13223
 
13224
    public void validate() throws org.apache.thrift.TException {
13225
      // check for required fields
13226
    }
13227
 
13228
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13229
      try {
13230
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13231
      } catch (org.apache.thrift.TException te) {
13232
        throw new java.io.IOException(te);
13233
      }
13234
    }
13235
 
13236
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13237
      try {
13238
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13239
      } catch (org.apache.thrift.TException te) {
13240
        throw new java.io.IOException(te);
13241
      }
13242
    }
13243
 
13244
  }
13245
 
6322 amar.kumar 13246
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13247
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13248
 
13249
    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);
13250
    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);
13251
    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);
13252
    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);
13253
    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);
13254
    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 13255
    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 13256
 
13257
    private long providerId; // required
13258
    private String pincode; // required
13259
    private String destCode; // required
13260
    private boolean exp; // required
13261
    private boolean cod; // required
13262
    private int stationType; // required
6524 rajveer 13263
    private boolean otgAvailable; // required
6322 amar.kumar 13264
 
13265
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13266
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13267
      PROVIDER_ID((short)1, "providerId"),
13268
      PINCODE((short)2, "pincode"),
13269
      DEST_CODE((short)3, "destCode"),
13270
      EXP((short)4, "exp"),
13271
      COD((short)5, "cod"),
6524 rajveer 13272
      STATION_TYPE((short)6, "stationType"),
13273
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13274
 
13275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13276
 
13277
      static {
13278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13279
          byName.put(field.getFieldName(), field);
13280
        }
13281
      }
13282
 
13283
      /**
13284
       * Find the _Fields constant that matches fieldId, or null if its not found.
13285
       */
13286
      public static _Fields findByThriftId(int fieldId) {
13287
        switch(fieldId) {
13288
          case 1: // PROVIDER_ID
13289
            return PROVIDER_ID;
13290
          case 2: // PINCODE
13291
            return PINCODE;
13292
          case 3: // DEST_CODE
13293
            return DEST_CODE;
13294
          case 4: // EXP
13295
            return EXP;
13296
          case 5: // COD
13297
            return COD;
13298
          case 6: // STATION_TYPE
13299
            return STATION_TYPE;
6524 rajveer 13300
          case 7: // OTG_AVAILABLE
13301
            return OTG_AVAILABLE;
6322 amar.kumar 13302
          default:
13303
            return null;
13304
        }
13305
      }
13306
 
13307
      /**
13308
       * Find the _Fields constant that matches fieldId, throwing an exception
13309
       * if it is not found.
13310
       */
13311
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13312
        _Fields fields = findByThriftId(fieldId);
13313
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13314
        return fields;
13315
      }
13316
 
13317
      /**
13318
       * Find the _Fields constant that matches name, or null if its not found.
13319
       */
13320
      public static _Fields findByName(String name) {
13321
        return byName.get(name);
13322
      }
13323
 
13324
      private final short _thriftId;
13325
      private final String _fieldName;
13326
 
13327
      _Fields(short thriftId, String fieldName) {
13328
        _thriftId = thriftId;
13329
        _fieldName = fieldName;
13330
      }
13331
 
13332
      public short getThriftFieldId() {
13333
        return _thriftId;
13334
      }
13335
 
13336
      public String getFieldName() {
13337
        return _fieldName;
13338
      }
13339
    }
13340
 
13341
    // isset id assignments
13342
    private static final int __PROVIDERID_ISSET_ID = 0;
13343
    private static final int __EXP_ISSET_ID = 1;
13344
    private static final int __COD_ISSET_ID = 2;
13345
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13346
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13347
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13348
 
13349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13350
    static {
13351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13352
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13354
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13356
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13357
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13358
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13360
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13361
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13362
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13364
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13368
    }
13369
 
13370
    public addPincode_args() {
13371
    }
13372
 
13373
    public addPincode_args(
13374
      long providerId,
13375
      String pincode,
13376
      String destCode,
13377
      boolean exp,
13378
      boolean cod,
6524 rajveer 13379
      int stationType,
13380
      boolean otgAvailable)
6322 amar.kumar 13381
    {
13382
      this();
13383
      this.providerId = providerId;
13384
      setProviderIdIsSet(true);
13385
      this.pincode = pincode;
13386
      this.destCode = destCode;
13387
      this.exp = exp;
13388
      setExpIsSet(true);
13389
      this.cod = cod;
13390
      setCodIsSet(true);
13391
      this.stationType = stationType;
13392
      setStationTypeIsSet(true);
6524 rajveer 13393
      this.otgAvailable = otgAvailable;
13394
      setOtgAvailableIsSet(true);
6322 amar.kumar 13395
    }
13396
 
13397
    /**
13398
     * Performs a deep copy on <i>other</i>.
13399
     */
13400
    public addPincode_args(addPincode_args other) {
13401
      __isset_bit_vector.clear();
13402
      __isset_bit_vector.or(other.__isset_bit_vector);
13403
      this.providerId = other.providerId;
13404
      if (other.isSetPincode()) {
13405
        this.pincode = other.pincode;
13406
      }
13407
      if (other.isSetDestCode()) {
13408
        this.destCode = other.destCode;
13409
      }
13410
      this.exp = other.exp;
13411
      this.cod = other.cod;
13412
      this.stationType = other.stationType;
6524 rajveer 13413
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13414
    }
13415
 
13416
    public addPincode_args deepCopy() {
13417
      return new addPincode_args(this);
13418
    }
13419
 
13420
    @Override
13421
    public void clear() {
13422
      setProviderIdIsSet(false);
13423
      this.providerId = 0;
13424
      this.pincode = null;
13425
      this.destCode = null;
13426
      setExpIsSet(false);
13427
      this.exp = false;
13428
      setCodIsSet(false);
13429
      this.cod = false;
13430
      setStationTypeIsSet(false);
13431
      this.stationType = 0;
6524 rajveer 13432
      setOtgAvailableIsSet(false);
13433
      this.otgAvailable = false;
6322 amar.kumar 13434
    }
13435
 
13436
    public long getProviderId() {
13437
      return this.providerId;
13438
    }
13439
 
13440
    public void setProviderId(long providerId) {
13441
      this.providerId = providerId;
13442
      setProviderIdIsSet(true);
13443
    }
13444
 
13445
    public void unsetProviderId() {
13446
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13447
    }
13448
 
13449
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13450
    public boolean isSetProviderId() {
13451
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13452
    }
13453
 
13454
    public void setProviderIdIsSet(boolean value) {
13455
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13456
    }
13457
 
13458
    public String getPincode() {
13459
      return this.pincode;
13460
    }
13461
 
13462
    public void setPincode(String pincode) {
13463
      this.pincode = pincode;
13464
    }
13465
 
13466
    public void unsetPincode() {
13467
      this.pincode = null;
13468
    }
13469
 
13470
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13471
    public boolean isSetPincode() {
13472
      return this.pincode != null;
13473
    }
13474
 
13475
    public void setPincodeIsSet(boolean value) {
13476
      if (!value) {
13477
        this.pincode = null;
13478
      }
13479
    }
13480
 
13481
    public String getDestCode() {
13482
      return this.destCode;
13483
    }
13484
 
13485
    public void setDestCode(String destCode) {
13486
      this.destCode = destCode;
13487
    }
13488
 
13489
    public void unsetDestCode() {
13490
      this.destCode = null;
13491
    }
13492
 
13493
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13494
    public boolean isSetDestCode() {
13495
      return this.destCode != null;
13496
    }
13497
 
13498
    public void setDestCodeIsSet(boolean value) {
13499
      if (!value) {
13500
        this.destCode = null;
13501
      }
13502
    }
13503
 
13504
    public boolean isExp() {
13505
      return this.exp;
13506
    }
13507
 
13508
    public void setExp(boolean exp) {
13509
      this.exp = exp;
13510
      setExpIsSet(true);
13511
    }
13512
 
13513
    public void unsetExp() {
13514
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13515
    }
13516
 
13517
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13518
    public boolean isSetExp() {
13519
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13520
    }
13521
 
13522
    public void setExpIsSet(boolean value) {
13523
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13524
    }
13525
 
13526
    public boolean isCod() {
13527
      return this.cod;
13528
    }
13529
 
13530
    public void setCod(boolean cod) {
13531
      this.cod = cod;
13532
      setCodIsSet(true);
13533
    }
13534
 
13535
    public void unsetCod() {
13536
      __isset_bit_vector.clear(__COD_ISSET_ID);
13537
    }
13538
 
13539
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13540
    public boolean isSetCod() {
13541
      return __isset_bit_vector.get(__COD_ISSET_ID);
13542
    }
13543
 
13544
    public void setCodIsSet(boolean value) {
13545
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13546
    }
13547
 
13548
    public int getStationType() {
13549
      return this.stationType;
13550
    }
13551
 
13552
    public void setStationType(int stationType) {
13553
      this.stationType = stationType;
13554
      setStationTypeIsSet(true);
13555
    }
13556
 
13557
    public void unsetStationType() {
13558
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13559
    }
13560
 
13561
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13562
    public boolean isSetStationType() {
13563
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13564
    }
13565
 
13566
    public void setStationTypeIsSet(boolean value) {
13567
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13568
    }
13569
 
6524 rajveer 13570
    public boolean isOtgAvailable() {
13571
      return this.otgAvailable;
13572
    }
13573
 
13574
    public void setOtgAvailable(boolean otgAvailable) {
13575
      this.otgAvailable = otgAvailable;
13576
      setOtgAvailableIsSet(true);
13577
    }
13578
 
13579
    public void unsetOtgAvailable() {
13580
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13581
    }
13582
 
13583
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13584
    public boolean isSetOtgAvailable() {
13585
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13586
    }
13587
 
13588
    public void setOtgAvailableIsSet(boolean value) {
13589
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13590
    }
13591
 
6322 amar.kumar 13592
    public void setFieldValue(_Fields field, Object value) {
13593
      switch (field) {
13594
      case PROVIDER_ID:
13595
        if (value == null) {
13596
          unsetProviderId();
13597
        } else {
13598
          setProviderId((Long)value);
13599
        }
13600
        break;
13601
 
13602
      case PINCODE:
13603
        if (value == null) {
13604
          unsetPincode();
13605
        } else {
13606
          setPincode((String)value);
13607
        }
13608
        break;
13609
 
13610
      case DEST_CODE:
13611
        if (value == null) {
13612
          unsetDestCode();
13613
        } else {
13614
          setDestCode((String)value);
13615
        }
13616
        break;
13617
 
13618
      case EXP:
13619
        if (value == null) {
13620
          unsetExp();
13621
        } else {
13622
          setExp((Boolean)value);
13623
        }
13624
        break;
13625
 
13626
      case COD:
13627
        if (value == null) {
13628
          unsetCod();
13629
        } else {
13630
          setCod((Boolean)value);
13631
        }
13632
        break;
13633
 
13634
      case STATION_TYPE:
13635
        if (value == null) {
13636
          unsetStationType();
13637
        } else {
13638
          setStationType((Integer)value);
13639
        }
13640
        break;
13641
 
6524 rajveer 13642
      case OTG_AVAILABLE:
13643
        if (value == null) {
13644
          unsetOtgAvailable();
13645
        } else {
13646
          setOtgAvailable((Boolean)value);
13647
        }
13648
        break;
13649
 
6322 amar.kumar 13650
      }
13651
    }
13652
 
13653
    public Object getFieldValue(_Fields field) {
13654
      switch (field) {
13655
      case PROVIDER_ID:
13656
        return Long.valueOf(getProviderId());
13657
 
13658
      case PINCODE:
13659
        return getPincode();
13660
 
13661
      case DEST_CODE:
13662
        return getDestCode();
13663
 
13664
      case EXP:
13665
        return Boolean.valueOf(isExp());
13666
 
13667
      case COD:
13668
        return Boolean.valueOf(isCod());
13669
 
13670
      case STATION_TYPE:
13671
        return Integer.valueOf(getStationType());
13672
 
6524 rajveer 13673
      case OTG_AVAILABLE:
13674
        return Boolean.valueOf(isOtgAvailable());
13675
 
6322 amar.kumar 13676
      }
13677
      throw new IllegalStateException();
13678
    }
13679
 
13680
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13681
    public boolean isSet(_Fields field) {
13682
      if (field == null) {
13683
        throw new IllegalArgumentException();
13684
      }
13685
 
13686
      switch (field) {
13687
      case PROVIDER_ID:
13688
        return isSetProviderId();
13689
      case PINCODE:
13690
        return isSetPincode();
13691
      case DEST_CODE:
13692
        return isSetDestCode();
13693
      case EXP:
13694
        return isSetExp();
13695
      case COD:
13696
        return isSetCod();
13697
      case STATION_TYPE:
13698
        return isSetStationType();
6524 rajveer 13699
      case OTG_AVAILABLE:
13700
        return isSetOtgAvailable();
6322 amar.kumar 13701
      }
13702
      throw new IllegalStateException();
13703
    }
13704
 
13705
    @Override
13706
    public boolean equals(Object that) {
13707
      if (that == null)
13708
        return false;
13709
      if (that instanceof addPincode_args)
13710
        return this.equals((addPincode_args)that);
13711
      return false;
13712
    }
13713
 
13714
    public boolean equals(addPincode_args that) {
13715
      if (that == null)
13716
        return false;
13717
 
13718
      boolean this_present_providerId = true;
13719
      boolean that_present_providerId = true;
13720
      if (this_present_providerId || that_present_providerId) {
13721
        if (!(this_present_providerId && that_present_providerId))
13722
          return false;
13723
        if (this.providerId != that.providerId)
13724
          return false;
13725
      }
13726
 
13727
      boolean this_present_pincode = true && this.isSetPincode();
13728
      boolean that_present_pincode = true && that.isSetPincode();
13729
      if (this_present_pincode || that_present_pincode) {
13730
        if (!(this_present_pincode && that_present_pincode))
13731
          return false;
13732
        if (!this.pincode.equals(that.pincode))
13733
          return false;
13734
      }
13735
 
13736
      boolean this_present_destCode = true && this.isSetDestCode();
13737
      boolean that_present_destCode = true && that.isSetDestCode();
13738
      if (this_present_destCode || that_present_destCode) {
13739
        if (!(this_present_destCode && that_present_destCode))
13740
          return false;
13741
        if (!this.destCode.equals(that.destCode))
13742
          return false;
13743
      }
13744
 
13745
      boolean this_present_exp = true;
13746
      boolean that_present_exp = true;
13747
      if (this_present_exp || that_present_exp) {
13748
        if (!(this_present_exp && that_present_exp))
13749
          return false;
13750
        if (this.exp != that.exp)
13751
          return false;
13752
      }
13753
 
13754
      boolean this_present_cod = true;
13755
      boolean that_present_cod = true;
13756
      if (this_present_cod || that_present_cod) {
13757
        if (!(this_present_cod && that_present_cod))
13758
          return false;
13759
        if (this.cod != that.cod)
13760
          return false;
13761
      }
13762
 
13763
      boolean this_present_stationType = true;
13764
      boolean that_present_stationType = true;
13765
      if (this_present_stationType || that_present_stationType) {
13766
        if (!(this_present_stationType && that_present_stationType))
13767
          return false;
13768
        if (this.stationType != that.stationType)
13769
          return false;
13770
      }
13771
 
6524 rajveer 13772
      boolean this_present_otgAvailable = true;
13773
      boolean that_present_otgAvailable = true;
13774
      if (this_present_otgAvailable || that_present_otgAvailable) {
13775
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13776
          return false;
13777
        if (this.otgAvailable != that.otgAvailable)
13778
          return false;
13779
      }
13780
 
6322 amar.kumar 13781
      return true;
13782
    }
13783
 
13784
    @Override
13785
    public int hashCode() {
13786
      return 0;
13787
    }
13788
 
13789
    public int compareTo(addPincode_args other) {
13790
      if (!getClass().equals(other.getClass())) {
13791
        return getClass().getName().compareTo(other.getClass().getName());
13792
      }
13793
 
13794
      int lastComparison = 0;
13795
      addPincode_args typedOther = (addPincode_args)other;
13796
 
13797
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13798
      if (lastComparison != 0) {
13799
        return lastComparison;
13800
      }
13801
      if (isSetProviderId()) {
13802
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13803
        if (lastComparison != 0) {
13804
          return lastComparison;
13805
        }
13806
      }
13807
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13808
      if (lastComparison != 0) {
13809
        return lastComparison;
13810
      }
13811
      if (isSetPincode()) {
13812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13813
        if (lastComparison != 0) {
13814
          return lastComparison;
13815
        }
13816
      }
13817
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
13818
      if (lastComparison != 0) {
13819
        return lastComparison;
13820
      }
13821
      if (isSetDestCode()) {
13822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
13823
        if (lastComparison != 0) {
13824
          return lastComparison;
13825
        }
13826
      }
13827
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13828
      if (lastComparison != 0) {
13829
        return lastComparison;
13830
      }
13831
      if (isSetExp()) {
13832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13833
        if (lastComparison != 0) {
13834
          return lastComparison;
13835
        }
13836
      }
13837
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13838
      if (lastComparison != 0) {
13839
        return lastComparison;
13840
      }
13841
      if (isSetCod()) {
13842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
13843
        if (lastComparison != 0) {
13844
          return lastComparison;
13845
        }
13846
      }
13847
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
13848
      if (lastComparison != 0) {
13849
        return lastComparison;
13850
      }
13851
      if (isSetStationType()) {
13852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
13853
        if (lastComparison != 0) {
13854
          return lastComparison;
13855
        }
13856
      }
6524 rajveer 13857
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
13858
      if (lastComparison != 0) {
13859
        return lastComparison;
13860
      }
13861
      if (isSetOtgAvailable()) {
13862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
13863
        if (lastComparison != 0) {
13864
          return lastComparison;
13865
        }
13866
      }
6322 amar.kumar 13867
      return 0;
13868
    }
13869
 
13870
    public _Fields fieldForId(int fieldId) {
13871
      return _Fields.findByThriftId(fieldId);
13872
    }
13873
 
13874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13875
      org.apache.thrift.protocol.TField field;
13876
      iprot.readStructBegin();
13877
      while (true)
13878
      {
13879
        field = iprot.readFieldBegin();
13880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13881
          break;
13882
        }
13883
        switch (field.id) {
13884
          case 1: // PROVIDER_ID
13885
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13886
              this.providerId = iprot.readI64();
13887
              setProviderIdIsSet(true);
13888
            } else { 
13889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13890
            }
13891
            break;
13892
          case 2: // PINCODE
13893
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13894
              this.pincode = iprot.readString();
13895
            } else { 
13896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13897
            }
13898
            break;
13899
          case 3: // DEST_CODE
13900
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13901
              this.destCode = iprot.readString();
13902
            } else { 
13903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13904
            }
13905
            break;
13906
          case 4: // EXP
13907
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13908
              this.exp = iprot.readBool();
13909
              setExpIsSet(true);
13910
            } else { 
13911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13912
            }
13913
            break;
13914
          case 5: // COD
13915
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13916
              this.cod = iprot.readBool();
13917
              setCodIsSet(true);
13918
            } else { 
13919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13920
            }
13921
            break;
13922
          case 6: // STATION_TYPE
13923
            if (field.type == org.apache.thrift.protocol.TType.I32) {
13924
              this.stationType = iprot.readI32();
13925
              setStationTypeIsSet(true);
13926
            } else { 
13927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13928
            }
13929
            break;
6524 rajveer 13930
          case 7: // OTG_AVAILABLE
13931
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13932
              this.otgAvailable = iprot.readBool();
13933
              setOtgAvailableIsSet(true);
13934
            } else { 
13935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13936
            }
13937
            break;
6322 amar.kumar 13938
          default:
13939
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13940
        }
13941
        iprot.readFieldEnd();
13942
      }
13943
      iprot.readStructEnd();
13944
      validate();
13945
    }
13946
 
13947
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13948
      validate();
13949
 
13950
      oprot.writeStructBegin(STRUCT_DESC);
13951
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
13952
      oprot.writeI64(this.providerId);
13953
      oprot.writeFieldEnd();
13954
      if (this.pincode != null) {
13955
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
13956
        oprot.writeString(this.pincode);
13957
        oprot.writeFieldEnd();
13958
      }
13959
      if (this.destCode != null) {
13960
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
13961
        oprot.writeString(this.destCode);
13962
        oprot.writeFieldEnd();
13963
      }
13964
      oprot.writeFieldBegin(EXP_FIELD_DESC);
13965
      oprot.writeBool(this.exp);
13966
      oprot.writeFieldEnd();
13967
      oprot.writeFieldBegin(COD_FIELD_DESC);
13968
      oprot.writeBool(this.cod);
13969
      oprot.writeFieldEnd();
13970
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
13971
      oprot.writeI32(this.stationType);
13972
      oprot.writeFieldEnd();
6524 rajveer 13973
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
13974
      oprot.writeBool(this.otgAvailable);
13975
      oprot.writeFieldEnd();
6322 amar.kumar 13976
      oprot.writeFieldStop();
13977
      oprot.writeStructEnd();
13978
    }
13979
 
13980
    @Override
13981
    public String toString() {
13982
      StringBuilder sb = new StringBuilder("addPincode_args(");
13983
      boolean first = true;
13984
 
13985
      sb.append("providerId:");
13986
      sb.append(this.providerId);
13987
      first = false;
13988
      if (!first) sb.append(", ");
13989
      sb.append("pincode:");
13990
      if (this.pincode == null) {
13991
        sb.append("null");
13992
      } else {
13993
        sb.append(this.pincode);
13994
      }
13995
      first = false;
13996
      if (!first) sb.append(", ");
13997
      sb.append("destCode:");
13998
      if (this.destCode == null) {
13999
        sb.append("null");
14000
      } else {
14001
        sb.append(this.destCode);
14002
      }
14003
      first = false;
14004
      if (!first) sb.append(", ");
14005
      sb.append("exp:");
14006
      sb.append(this.exp);
14007
      first = false;
14008
      if (!first) sb.append(", ");
14009
      sb.append("cod:");
14010
      sb.append(this.cod);
14011
      first = false;
14012
      if (!first) sb.append(", ");
14013
      sb.append("stationType:");
14014
      sb.append(this.stationType);
14015
      first = false;
6524 rajveer 14016
      if (!first) sb.append(", ");
14017
      sb.append("otgAvailable:");
14018
      sb.append(this.otgAvailable);
14019
      first = false;
6322 amar.kumar 14020
      sb.append(")");
14021
      return sb.toString();
14022
    }
14023
 
14024
    public void validate() throws org.apache.thrift.TException {
14025
      // check for required fields
14026
    }
14027
 
14028
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14029
      try {
14030
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14031
      } catch (org.apache.thrift.TException te) {
14032
        throw new java.io.IOException(te);
14033
      }
14034
    }
14035
 
14036
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14037
      try {
14038
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14039
        __isset_bit_vector = new BitSet(1);
14040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14041
      } catch (org.apache.thrift.TException te) {
14042
        throw new java.io.IOException(te);
14043
      }
14044
    }
14045
 
14046
  }
14047
 
14048
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14049
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14050
 
14051
 
14052
 
14053
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14054
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14055
;
14056
 
14057
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14058
 
14059
      static {
14060
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14061
          byName.put(field.getFieldName(), field);
14062
        }
14063
      }
14064
 
14065
      /**
14066
       * Find the _Fields constant that matches fieldId, or null if its not found.
14067
       */
14068
      public static _Fields findByThriftId(int fieldId) {
14069
        switch(fieldId) {
14070
          default:
14071
            return null;
14072
        }
14073
      }
14074
 
14075
      /**
14076
       * Find the _Fields constant that matches fieldId, throwing an exception
14077
       * if it is not found.
14078
       */
14079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14080
        _Fields fields = findByThriftId(fieldId);
14081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14082
        return fields;
14083
      }
14084
 
14085
      /**
14086
       * Find the _Fields constant that matches name, or null if its not found.
14087
       */
14088
      public static _Fields findByName(String name) {
14089
        return byName.get(name);
14090
      }
14091
 
14092
      private final short _thriftId;
14093
      private final String _fieldName;
14094
 
14095
      _Fields(short thriftId, String fieldName) {
14096
        _thriftId = thriftId;
14097
        _fieldName = fieldName;
14098
      }
14099
 
14100
      public short getThriftFieldId() {
14101
        return _thriftId;
14102
      }
14103
 
14104
      public String getFieldName() {
14105
        return _fieldName;
14106
      }
14107
    }
14108
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14109
    static {
14110
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14111
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14112
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14113
    }
14114
 
14115
    public addPincode_result() {
14116
    }
14117
 
14118
    /**
14119
     * Performs a deep copy on <i>other</i>.
14120
     */
14121
    public addPincode_result(addPincode_result other) {
14122
    }
14123
 
14124
    public addPincode_result deepCopy() {
14125
      return new addPincode_result(this);
14126
    }
14127
 
14128
    @Override
14129
    public void clear() {
14130
    }
14131
 
14132
    public void setFieldValue(_Fields field, Object value) {
14133
      switch (field) {
14134
      }
14135
    }
14136
 
14137
    public Object getFieldValue(_Fields field) {
14138
      switch (field) {
14139
      }
14140
      throw new IllegalStateException();
14141
    }
14142
 
14143
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14144
    public boolean isSet(_Fields field) {
14145
      if (field == null) {
14146
        throw new IllegalArgumentException();
14147
      }
14148
 
14149
      switch (field) {
14150
      }
14151
      throw new IllegalStateException();
14152
    }
14153
 
14154
    @Override
14155
    public boolean equals(Object that) {
14156
      if (that == null)
14157
        return false;
14158
      if (that instanceof addPincode_result)
14159
        return this.equals((addPincode_result)that);
14160
      return false;
14161
    }
14162
 
14163
    public boolean equals(addPincode_result that) {
14164
      if (that == null)
14165
        return false;
14166
 
14167
      return true;
14168
    }
14169
 
14170
    @Override
14171
    public int hashCode() {
14172
      return 0;
14173
    }
14174
 
14175
    public int compareTo(addPincode_result other) {
14176
      if (!getClass().equals(other.getClass())) {
14177
        return getClass().getName().compareTo(other.getClass().getName());
14178
      }
14179
 
14180
      int lastComparison = 0;
14181
      addPincode_result typedOther = (addPincode_result)other;
14182
 
14183
      return 0;
14184
    }
14185
 
14186
    public _Fields fieldForId(int fieldId) {
14187
      return _Fields.findByThriftId(fieldId);
14188
    }
14189
 
14190
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14191
      org.apache.thrift.protocol.TField field;
14192
      iprot.readStructBegin();
14193
      while (true)
14194
      {
14195
        field = iprot.readFieldBegin();
14196
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14197
          break;
14198
        }
14199
        switch (field.id) {
14200
          default:
14201
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14202
        }
14203
        iprot.readFieldEnd();
14204
      }
14205
      iprot.readStructEnd();
14206
      validate();
14207
    }
14208
 
14209
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14210
      oprot.writeStructBegin(STRUCT_DESC);
14211
 
14212
      oprot.writeFieldStop();
14213
      oprot.writeStructEnd();
14214
    }
14215
 
14216
    @Override
14217
    public String toString() {
14218
      StringBuilder sb = new StringBuilder("addPincode_result(");
14219
      boolean first = true;
14220
 
14221
      sb.append(")");
14222
      return sb.toString();
14223
    }
14224
 
14225
    public void validate() throws org.apache.thrift.TException {
14226
      // check for required fields
14227
    }
14228
 
14229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14230
      try {
14231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14232
      } catch (org.apache.thrift.TException te) {
14233
        throw new java.io.IOException(te);
14234
      }
14235
    }
14236
 
14237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14238
      try {
14239
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14240
      } catch (org.apache.thrift.TException te) {
14241
        throw new java.io.IOException(te);
14242
      }
14243
    }
14244
 
14245
  }
14246
 
14247
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14249
 
14250
    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);
14251
    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);
14252
    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);
14253
    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 14254
    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 14255
 
14256
    private long providerId; // required
14257
    private String pincode; // required
14258
    private boolean exp; // required
14259
    private boolean cod; // required
6524 rajveer 14260
    private boolean otgAvailable; // required
6322 amar.kumar 14261
 
14262
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14263
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14264
      PROVIDER_ID((short)1, "providerId"),
14265
      PINCODE((short)2, "pincode"),
14266
      EXP((short)3, "exp"),
6524 rajveer 14267
      COD((short)4, "cod"),
14268
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14269
 
14270
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14271
 
14272
      static {
14273
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14274
          byName.put(field.getFieldName(), field);
14275
        }
14276
      }
14277
 
14278
      /**
14279
       * Find the _Fields constant that matches fieldId, or null if its not found.
14280
       */
14281
      public static _Fields findByThriftId(int fieldId) {
14282
        switch(fieldId) {
14283
          case 1: // PROVIDER_ID
14284
            return PROVIDER_ID;
14285
          case 2: // PINCODE
14286
            return PINCODE;
14287
          case 3: // EXP
14288
            return EXP;
14289
          case 4: // COD
14290
            return COD;
6524 rajveer 14291
          case 5: // OTG_AVAILABLE
14292
            return OTG_AVAILABLE;
6322 amar.kumar 14293
          default:
14294
            return null;
14295
        }
14296
      }
14297
 
14298
      /**
14299
       * Find the _Fields constant that matches fieldId, throwing an exception
14300
       * if it is not found.
14301
       */
14302
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14303
        _Fields fields = findByThriftId(fieldId);
14304
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14305
        return fields;
14306
      }
14307
 
14308
      /**
14309
       * Find the _Fields constant that matches name, or null if its not found.
14310
       */
14311
      public static _Fields findByName(String name) {
14312
        return byName.get(name);
14313
      }
14314
 
14315
      private final short _thriftId;
14316
      private final String _fieldName;
14317
 
14318
      _Fields(short thriftId, String fieldName) {
14319
        _thriftId = thriftId;
14320
        _fieldName = fieldName;
14321
      }
14322
 
14323
      public short getThriftFieldId() {
14324
        return _thriftId;
14325
      }
14326
 
14327
      public String getFieldName() {
14328
        return _fieldName;
14329
      }
14330
    }
14331
 
14332
    // isset id assignments
14333
    private static final int __PROVIDERID_ISSET_ID = 0;
14334
    private static final int __EXP_ISSET_ID = 1;
14335
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14336
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14337
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14338
 
14339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14340
    static {
14341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14342
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14344
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14346
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14348
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14350
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14354
    }
14355
 
14356
    public updatePincode_args() {
14357
    }
14358
 
14359
    public updatePincode_args(
14360
      long providerId,
14361
      String pincode,
14362
      boolean exp,
6524 rajveer 14363
      boolean cod,
14364
      boolean otgAvailable)
6322 amar.kumar 14365
    {
14366
      this();
14367
      this.providerId = providerId;
14368
      setProviderIdIsSet(true);
14369
      this.pincode = pincode;
14370
      this.exp = exp;
14371
      setExpIsSet(true);
14372
      this.cod = cod;
14373
      setCodIsSet(true);
6524 rajveer 14374
      this.otgAvailable = otgAvailable;
14375
      setOtgAvailableIsSet(true);
6322 amar.kumar 14376
    }
14377
 
14378
    /**
14379
     * Performs a deep copy on <i>other</i>.
14380
     */
14381
    public updatePincode_args(updatePincode_args other) {
14382
      __isset_bit_vector.clear();
14383
      __isset_bit_vector.or(other.__isset_bit_vector);
14384
      this.providerId = other.providerId;
14385
      if (other.isSetPincode()) {
14386
        this.pincode = other.pincode;
14387
      }
14388
      this.exp = other.exp;
14389
      this.cod = other.cod;
6524 rajveer 14390
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14391
    }
14392
 
14393
    public updatePincode_args deepCopy() {
14394
      return new updatePincode_args(this);
14395
    }
14396
 
14397
    @Override
14398
    public void clear() {
14399
      setProviderIdIsSet(false);
14400
      this.providerId = 0;
14401
      this.pincode = null;
14402
      setExpIsSet(false);
14403
      this.exp = false;
14404
      setCodIsSet(false);
14405
      this.cod = false;
6524 rajveer 14406
      setOtgAvailableIsSet(false);
14407
      this.otgAvailable = false;
6322 amar.kumar 14408
    }
14409
 
14410
    public long getProviderId() {
14411
      return this.providerId;
14412
    }
14413
 
14414
    public void setProviderId(long providerId) {
14415
      this.providerId = providerId;
14416
      setProviderIdIsSet(true);
14417
    }
14418
 
14419
    public void unsetProviderId() {
14420
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14421
    }
14422
 
14423
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14424
    public boolean isSetProviderId() {
14425
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14426
    }
14427
 
14428
    public void setProviderIdIsSet(boolean value) {
14429
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14430
    }
14431
 
14432
    public String getPincode() {
14433
      return this.pincode;
14434
    }
14435
 
14436
    public void setPincode(String pincode) {
14437
      this.pincode = pincode;
14438
    }
14439
 
14440
    public void unsetPincode() {
14441
      this.pincode = null;
14442
    }
14443
 
14444
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14445
    public boolean isSetPincode() {
14446
      return this.pincode != null;
14447
    }
14448
 
14449
    public void setPincodeIsSet(boolean value) {
14450
      if (!value) {
14451
        this.pincode = null;
14452
      }
14453
    }
14454
 
14455
    public boolean isExp() {
14456
      return this.exp;
14457
    }
14458
 
14459
    public void setExp(boolean exp) {
14460
      this.exp = exp;
14461
      setExpIsSet(true);
14462
    }
14463
 
14464
    public void unsetExp() {
14465
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14466
    }
14467
 
14468
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14469
    public boolean isSetExp() {
14470
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14471
    }
14472
 
14473
    public void setExpIsSet(boolean value) {
14474
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14475
    }
14476
 
14477
    public boolean isCod() {
14478
      return this.cod;
14479
    }
14480
 
14481
    public void setCod(boolean cod) {
14482
      this.cod = cod;
14483
      setCodIsSet(true);
14484
    }
14485
 
14486
    public void unsetCod() {
14487
      __isset_bit_vector.clear(__COD_ISSET_ID);
14488
    }
14489
 
14490
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14491
    public boolean isSetCod() {
14492
      return __isset_bit_vector.get(__COD_ISSET_ID);
14493
    }
14494
 
14495
    public void setCodIsSet(boolean value) {
14496
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14497
    }
14498
 
6524 rajveer 14499
    public boolean isOtgAvailable() {
14500
      return this.otgAvailable;
14501
    }
14502
 
14503
    public void setOtgAvailable(boolean otgAvailable) {
14504
      this.otgAvailable = otgAvailable;
14505
      setOtgAvailableIsSet(true);
14506
    }
14507
 
14508
    public void unsetOtgAvailable() {
14509
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14510
    }
14511
 
14512
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14513
    public boolean isSetOtgAvailable() {
14514
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14515
    }
14516
 
14517
    public void setOtgAvailableIsSet(boolean value) {
14518
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14519
    }
14520
 
6322 amar.kumar 14521
    public void setFieldValue(_Fields field, Object value) {
14522
      switch (field) {
14523
      case PROVIDER_ID:
14524
        if (value == null) {
14525
          unsetProviderId();
14526
        } else {
14527
          setProviderId((Long)value);
14528
        }
14529
        break;
14530
 
14531
      case PINCODE:
14532
        if (value == null) {
14533
          unsetPincode();
14534
        } else {
14535
          setPincode((String)value);
14536
        }
14537
        break;
14538
 
14539
      case EXP:
14540
        if (value == null) {
14541
          unsetExp();
14542
        } else {
14543
          setExp((Boolean)value);
14544
        }
14545
        break;
14546
 
14547
      case COD:
14548
        if (value == null) {
14549
          unsetCod();
14550
        } else {
14551
          setCod((Boolean)value);
14552
        }
14553
        break;
14554
 
6524 rajveer 14555
      case OTG_AVAILABLE:
14556
        if (value == null) {
14557
          unsetOtgAvailable();
14558
        } else {
14559
          setOtgAvailable((Boolean)value);
14560
        }
14561
        break;
14562
 
6322 amar.kumar 14563
      }
14564
    }
14565
 
14566
    public Object getFieldValue(_Fields field) {
14567
      switch (field) {
14568
      case PROVIDER_ID:
14569
        return Long.valueOf(getProviderId());
14570
 
14571
      case PINCODE:
14572
        return getPincode();
14573
 
14574
      case EXP:
14575
        return Boolean.valueOf(isExp());
14576
 
14577
      case COD:
14578
        return Boolean.valueOf(isCod());
14579
 
6524 rajveer 14580
      case OTG_AVAILABLE:
14581
        return Boolean.valueOf(isOtgAvailable());
14582
 
6322 amar.kumar 14583
      }
14584
      throw new IllegalStateException();
14585
    }
14586
 
14587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14588
    public boolean isSet(_Fields field) {
14589
      if (field == null) {
14590
        throw new IllegalArgumentException();
14591
      }
14592
 
14593
      switch (field) {
14594
      case PROVIDER_ID:
14595
        return isSetProviderId();
14596
      case PINCODE:
14597
        return isSetPincode();
14598
      case EXP:
14599
        return isSetExp();
14600
      case COD:
14601
        return isSetCod();
6524 rajveer 14602
      case OTG_AVAILABLE:
14603
        return isSetOtgAvailable();
6322 amar.kumar 14604
      }
14605
      throw new IllegalStateException();
14606
    }
14607
 
14608
    @Override
14609
    public boolean equals(Object that) {
14610
      if (that == null)
14611
        return false;
14612
      if (that instanceof updatePincode_args)
14613
        return this.equals((updatePincode_args)that);
14614
      return false;
14615
    }
14616
 
14617
    public boolean equals(updatePincode_args that) {
14618
      if (that == null)
14619
        return false;
14620
 
14621
      boolean this_present_providerId = true;
14622
      boolean that_present_providerId = true;
14623
      if (this_present_providerId || that_present_providerId) {
14624
        if (!(this_present_providerId && that_present_providerId))
14625
          return false;
14626
        if (this.providerId != that.providerId)
14627
          return false;
14628
      }
14629
 
14630
      boolean this_present_pincode = true && this.isSetPincode();
14631
      boolean that_present_pincode = true && that.isSetPincode();
14632
      if (this_present_pincode || that_present_pincode) {
14633
        if (!(this_present_pincode && that_present_pincode))
14634
          return false;
14635
        if (!this.pincode.equals(that.pincode))
14636
          return false;
14637
      }
14638
 
14639
      boolean this_present_exp = true;
14640
      boolean that_present_exp = true;
14641
      if (this_present_exp || that_present_exp) {
14642
        if (!(this_present_exp && that_present_exp))
14643
          return false;
14644
        if (this.exp != that.exp)
14645
          return false;
14646
      }
14647
 
14648
      boolean this_present_cod = true;
14649
      boolean that_present_cod = true;
14650
      if (this_present_cod || that_present_cod) {
14651
        if (!(this_present_cod && that_present_cod))
14652
          return false;
14653
        if (this.cod != that.cod)
14654
          return false;
14655
      }
14656
 
6524 rajveer 14657
      boolean this_present_otgAvailable = true;
14658
      boolean that_present_otgAvailable = true;
14659
      if (this_present_otgAvailable || that_present_otgAvailable) {
14660
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14661
          return false;
14662
        if (this.otgAvailable != that.otgAvailable)
14663
          return false;
14664
      }
14665
 
6322 amar.kumar 14666
      return true;
14667
    }
14668
 
14669
    @Override
14670
    public int hashCode() {
14671
      return 0;
14672
    }
14673
 
14674
    public int compareTo(updatePincode_args other) {
14675
      if (!getClass().equals(other.getClass())) {
14676
        return getClass().getName().compareTo(other.getClass().getName());
14677
      }
14678
 
14679
      int lastComparison = 0;
14680
      updatePincode_args typedOther = (updatePincode_args)other;
14681
 
14682
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14683
      if (lastComparison != 0) {
14684
        return lastComparison;
14685
      }
14686
      if (isSetProviderId()) {
14687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14688
        if (lastComparison != 0) {
14689
          return lastComparison;
14690
        }
14691
      }
14692
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14693
      if (lastComparison != 0) {
14694
        return lastComparison;
14695
      }
14696
      if (isSetPincode()) {
14697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14698
        if (lastComparison != 0) {
14699
          return lastComparison;
14700
        }
14701
      }
14702
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14703
      if (lastComparison != 0) {
14704
        return lastComparison;
14705
      }
14706
      if (isSetExp()) {
14707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14708
        if (lastComparison != 0) {
14709
          return lastComparison;
14710
        }
14711
      }
14712
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14713
      if (lastComparison != 0) {
14714
        return lastComparison;
14715
      }
14716
      if (isSetCod()) {
14717
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14718
        if (lastComparison != 0) {
14719
          return lastComparison;
14720
        }
14721
      }
6524 rajveer 14722
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14723
      if (lastComparison != 0) {
14724
        return lastComparison;
14725
      }
14726
      if (isSetOtgAvailable()) {
14727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14728
        if (lastComparison != 0) {
14729
          return lastComparison;
14730
        }
14731
      }
6322 amar.kumar 14732
      return 0;
14733
    }
14734
 
14735
    public _Fields fieldForId(int fieldId) {
14736
      return _Fields.findByThriftId(fieldId);
14737
    }
14738
 
14739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14740
      org.apache.thrift.protocol.TField field;
14741
      iprot.readStructBegin();
14742
      while (true)
14743
      {
14744
        field = iprot.readFieldBegin();
14745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14746
          break;
14747
        }
14748
        switch (field.id) {
14749
          case 1: // PROVIDER_ID
14750
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14751
              this.providerId = iprot.readI64();
14752
              setProviderIdIsSet(true);
14753
            } else { 
14754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14755
            }
14756
            break;
14757
          case 2: // PINCODE
14758
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14759
              this.pincode = iprot.readString();
14760
            } else { 
14761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14762
            }
14763
            break;
14764
          case 3: // EXP
14765
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14766
              this.exp = iprot.readBool();
14767
              setExpIsSet(true);
14768
            } else { 
14769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14770
            }
14771
            break;
14772
          case 4: // COD
14773
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14774
              this.cod = iprot.readBool();
14775
              setCodIsSet(true);
14776
            } else { 
14777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14778
            }
14779
            break;
6524 rajveer 14780
          case 5: // OTG_AVAILABLE
14781
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14782
              this.otgAvailable = iprot.readBool();
14783
              setOtgAvailableIsSet(true);
14784
            } else { 
14785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14786
            }
14787
            break;
6322 amar.kumar 14788
          default:
14789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14790
        }
14791
        iprot.readFieldEnd();
14792
      }
14793
      iprot.readStructEnd();
14794
      validate();
14795
    }
14796
 
14797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14798
      validate();
14799
 
14800
      oprot.writeStructBegin(STRUCT_DESC);
14801
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14802
      oprot.writeI64(this.providerId);
14803
      oprot.writeFieldEnd();
14804
      if (this.pincode != null) {
14805
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14806
        oprot.writeString(this.pincode);
14807
        oprot.writeFieldEnd();
14808
      }
14809
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14810
      oprot.writeBool(this.exp);
14811
      oprot.writeFieldEnd();
14812
      oprot.writeFieldBegin(COD_FIELD_DESC);
14813
      oprot.writeBool(this.cod);
14814
      oprot.writeFieldEnd();
6524 rajveer 14815
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14816
      oprot.writeBool(this.otgAvailable);
14817
      oprot.writeFieldEnd();
6322 amar.kumar 14818
      oprot.writeFieldStop();
14819
      oprot.writeStructEnd();
14820
    }
14821
 
14822
    @Override
14823
    public String toString() {
14824
      StringBuilder sb = new StringBuilder("updatePincode_args(");
14825
      boolean first = true;
14826
 
14827
      sb.append("providerId:");
14828
      sb.append(this.providerId);
14829
      first = false;
14830
      if (!first) sb.append(", ");
14831
      sb.append("pincode:");
14832
      if (this.pincode == null) {
14833
        sb.append("null");
14834
      } else {
14835
        sb.append(this.pincode);
14836
      }
14837
      first = false;
14838
      if (!first) sb.append(", ");
14839
      sb.append("exp:");
14840
      sb.append(this.exp);
14841
      first = false;
14842
      if (!first) sb.append(", ");
14843
      sb.append("cod:");
14844
      sb.append(this.cod);
14845
      first = false;
6524 rajveer 14846
      if (!first) sb.append(", ");
14847
      sb.append("otgAvailable:");
14848
      sb.append(this.otgAvailable);
14849
      first = false;
6322 amar.kumar 14850
      sb.append(")");
14851
      return sb.toString();
14852
    }
14853
 
14854
    public void validate() throws org.apache.thrift.TException {
14855
      // check for required fields
14856
    }
14857
 
14858
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14859
      try {
14860
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14861
      } catch (org.apache.thrift.TException te) {
14862
        throw new java.io.IOException(te);
14863
      }
14864
    }
14865
 
14866
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14867
      try {
14868
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14869
        __isset_bit_vector = new BitSet(1);
14870
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14871
      } catch (org.apache.thrift.TException te) {
14872
        throw new java.io.IOException(te);
14873
      }
14874
    }
14875
 
14876
  }
14877
 
14878
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
14879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
14880
 
14881
 
14882
 
14883
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14884
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14885
;
14886
 
14887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14888
 
14889
      static {
14890
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14891
          byName.put(field.getFieldName(), field);
14892
        }
14893
      }
14894
 
14895
      /**
14896
       * Find the _Fields constant that matches fieldId, or null if its not found.
14897
       */
14898
      public static _Fields findByThriftId(int fieldId) {
14899
        switch(fieldId) {
14900
          default:
14901
            return null;
14902
        }
14903
      }
14904
 
14905
      /**
14906
       * Find the _Fields constant that matches fieldId, throwing an exception
14907
       * if it is not found.
14908
       */
14909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14910
        _Fields fields = findByThriftId(fieldId);
14911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14912
        return fields;
14913
      }
14914
 
14915
      /**
14916
       * Find the _Fields constant that matches name, or null if its not found.
14917
       */
14918
      public static _Fields findByName(String name) {
14919
        return byName.get(name);
14920
      }
14921
 
14922
      private final short _thriftId;
14923
      private final String _fieldName;
14924
 
14925
      _Fields(short thriftId, String fieldName) {
14926
        _thriftId = thriftId;
14927
        _fieldName = fieldName;
14928
      }
14929
 
14930
      public short getThriftFieldId() {
14931
        return _thriftId;
14932
      }
14933
 
14934
      public String getFieldName() {
14935
        return _fieldName;
14936
      }
14937
    }
14938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14939
    static {
14940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14941
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14942
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
14943
    }
14944
 
14945
    public updatePincode_result() {
14946
    }
14947
 
14948
    /**
14949
     * Performs a deep copy on <i>other</i>.
14950
     */
14951
    public updatePincode_result(updatePincode_result other) {
14952
    }
14953
 
14954
    public updatePincode_result deepCopy() {
14955
      return new updatePincode_result(this);
14956
    }
14957
 
14958
    @Override
14959
    public void clear() {
14960
    }
14961
 
14962
    public void setFieldValue(_Fields field, Object value) {
14963
      switch (field) {
14964
      }
14965
    }
14966
 
14967
    public Object getFieldValue(_Fields field) {
14968
      switch (field) {
14969
      }
14970
      throw new IllegalStateException();
14971
    }
14972
 
14973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14974
    public boolean isSet(_Fields field) {
14975
      if (field == null) {
14976
        throw new IllegalArgumentException();
14977
      }
14978
 
14979
      switch (field) {
14980
      }
14981
      throw new IllegalStateException();
14982
    }
14983
 
14984
    @Override
14985
    public boolean equals(Object that) {
14986
      if (that == null)
14987
        return false;
14988
      if (that instanceof updatePincode_result)
14989
        return this.equals((updatePincode_result)that);
14990
      return false;
14991
    }
14992
 
14993
    public boolean equals(updatePincode_result that) {
14994
      if (that == null)
14995
        return false;
14996
 
14997
      return true;
14998
    }
14999
 
15000
    @Override
15001
    public int hashCode() {
15002
      return 0;
15003
    }
15004
 
15005
    public int compareTo(updatePincode_result other) {
15006
      if (!getClass().equals(other.getClass())) {
15007
        return getClass().getName().compareTo(other.getClass().getName());
15008
      }
15009
 
15010
      int lastComparison = 0;
15011
      updatePincode_result typedOther = (updatePincode_result)other;
15012
 
15013
      return 0;
15014
    }
15015
 
15016
    public _Fields fieldForId(int fieldId) {
15017
      return _Fields.findByThriftId(fieldId);
15018
    }
15019
 
15020
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15021
      org.apache.thrift.protocol.TField field;
15022
      iprot.readStructBegin();
15023
      while (true)
15024
      {
15025
        field = iprot.readFieldBegin();
15026
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15027
          break;
15028
        }
15029
        switch (field.id) {
15030
          default:
15031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15032
        }
15033
        iprot.readFieldEnd();
15034
      }
15035
      iprot.readStructEnd();
15036
      validate();
15037
    }
15038
 
15039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15040
      oprot.writeStructBegin(STRUCT_DESC);
15041
 
15042
      oprot.writeFieldStop();
15043
      oprot.writeStructEnd();
15044
    }
15045
 
15046
    @Override
15047
    public String toString() {
15048
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15049
      boolean first = true;
15050
 
15051
      sb.append(")");
15052
      return sb.toString();
15053
    }
15054
 
15055
    public void validate() throws org.apache.thrift.TException {
15056
      // check for required fields
15057
    }
15058
 
15059
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15060
      try {
15061
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15062
      } catch (org.apache.thrift.TException te) {
15063
        throw new java.io.IOException(te);
15064
      }
15065
    }
15066
 
15067
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15068
      try {
15069
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15070
      } catch (org.apache.thrift.TException te) {
15071
        throw new java.io.IOException(te);
15072
      }
15073
    }
15074
 
15075
  }
15076
 
7567 rajveer 15077
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15078
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15079
 
15080
    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);
15081
    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);
15082
    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);
15083
 
15084
    private long providerId; // required
15085
    private boolean cod; // required
15086
    private List<String> awbs; // required
15087
 
15088
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15089
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15090
      PROVIDER_ID((short)1, "providerId"),
15091
      COD((short)2, "cod"),
15092
      AWBS((short)3, "awbs");
15093
 
15094
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15095
 
15096
      static {
15097
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15098
          byName.put(field.getFieldName(), field);
15099
        }
15100
      }
15101
 
15102
      /**
15103
       * Find the _Fields constant that matches fieldId, or null if its not found.
15104
       */
15105
      public static _Fields findByThriftId(int fieldId) {
15106
        switch(fieldId) {
15107
          case 1: // PROVIDER_ID
15108
            return PROVIDER_ID;
15109
          case 2: // COD
15110
            return COD;
15111
          case 3: // AWBS
15112
            return AWBS;
15113
          default:
15114
            return null;
15115
        }
15116
      }
15117
 
15118
      /**
15119
       * Find the _Fields constant that matches fieldId, throwing an exception
15120
       * if it is not found.
15121
       */
15122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15123
        _Fields fields = findByThriftId(fieldId);
15124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15125
        return fields;
15126
      }
15127
 
15128
      /**
15129
       * Find the _Fields constant that matches name, or null if its not found.
15130
       */
15131
      public static _Fields findByName(String name) {
15132
        return byName.get(name);
15133
      }
15134
 
15135
      private final short _thriftId;
15136
      private final String _fieldName;
15137
 
15138
      _Fields(short thriftId, String fieldName) {
15139
        _thriftId = thriftId;
15140
        _fieldName = fieldName;
15141
      }
15142
 
15143
      public short getThriftFieldId() {
15144
        return _thriftId;
15145
      }
15146
 
15147
      public String getFieldName() {
15148
        return _fieldName;
15149
      }
15150
    }
15151
 
15152
    // isset id assignments
15153
    private static final int __PROVIDERID_ISSET_ID = 0;
15154
    private static final int __COD_ISSET_ID = 1;
15155
    private BitSet __isset_bit_vector = new BitSet(2);
15156
 
15157
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15158
    static {
15159
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15160
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15162
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15163
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15164
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15165
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15166
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15167
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15168
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15169
    }
15170
 
15171
    public addNewAwbs_args() {
15172
    }
15173
 
15174
    public addNewAwbs_args(
15175
      long providerId,
15176
      boolean cod,
15177
      List<String> awbs)
15178
    {
15179
      this();
15180
      this.providerId = providerId;
15181
      setProviderIdIsSet(true);
15182
      this.cod = cod;
15183
      setCodIsSet(true);
15184
      this.awbs = awbs;
15185
    }
15186
 
15187
    /**
15188
     * Performs a deep copy on <i>other</i>.
15189
     */
15190
    public addNewAwbs_args(addNewAwbs_args other) {
15191
      __isset_bit_vector.clear();
15192
      __isset_bit_vector.or(other.__isset_bit_vector);
15193
      this.providerId = other.providerId;
15194
      this.cod = other.cod;
15195
      if (other.isSetAwbs()) {
15196
        List<String> __this__awbs = new ArrayList<String>();
15197
        for (String other_element : other.awbs) {
15198
          __this__awbs.add(other_element);
15199
        }
15200
        this.awbs = __this__awbs;
15201
      }
15202
    }
15203
 
15204
    public addNewAwbs_args deepCopy() {
15205
      return new addNewAwbs_args(this);
15206
    }
15207
 
15208
    @Override
15209
    public void clear() {
15210
      setProviderIdIsSet(false);
15211
      this.providerId = 0;
15212
      setCodIsSet(false);
15213
      this.cod = false;
15214
      this.awbs = null;
15215
    }
15216
 
15217
    public long getProviderId() {
15218
      return this.providerId;
15219
    }
15220
 
15221
    public void setProviderId(long providerId) {
15222
      this.providerId = providerId;
15223
      setProviderIdIsSet(true);
15224
    }
15225
 
15226
    public void unsetProviderId() {
15227
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15228
    }
15229
 
15230
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15231
    public boolean isSetProviderId() {
15232
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15233
    }
15234
 
15235
    public void setProviderIdIsSet(boolean value) {
15236
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15237
    }
15238
 
15239
    public boolean isCod() {
15240
      return this.cod;
15241
    }
15242
 
15243
    public void setCod(boolean cod) {
15244
      this.cod = cod;
15245
      setCodIsSet(true);
15246
    }
15247
 
15248
    public void unsetCod() {
15249
      __isset_bit_vector.clear(__COD_ISSET_ID);
15250
    }
15251
 
15252
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15253
    public boolean isSetCod() {
15254
      return __isset_bit_vector.get(__COD_ISSET_ID);
15255
    }
15256
 
15257
    public void setCodIsSet(boolean value) {
15258
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15259
    }
15260
 
15261
    public int getAwbsSize() {
15262
      return (this.awbs == null) ? 0 : this.awbs.size();
15263
    }
15264
 
15265
    public java.util.Iterator<String> getAwbsIterator() {
15266
      return (this.awbs == null) ? null : this.awbs.iterator();
15267
    }
15268
 
15269
    public void addToAwbs(String elem) {
15270
      if (this.awbs == null) {
15271
        this.awbs = new ArrayList<String>();
15272
      }
15273
      this.awbs.add(elem);
15274
    }
15275
 
15276
    public List<String> getAwbs() {
15277
      return this.awbs;
15278
    }
15279
 
15280
    public void setAwbs(List<String> awbs) {
15281
      this.awbs = awbs;
15282
    }
15283
 
15284
    public void unsetAwbs() {
15285
      this.awbs = null;
15286
    }
15287
 
15288
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15289
    public boolean isSetAwbs() {
15290
      return this.awbs != null;
15291
    }
15292
 
15293
    public void setAwbsIsSet(boolean value) {
15294
      if (!value) {
15295
        this.awbs = null;
15296
      }
15297
    }
15298
 
15299
    public void setFieldValue(_Fields field, Object value) {
15300
      switch (field) {
15301
      case PROVIDER_ID:
15302
        if (value == null) {
15303
          unsetProviderId();
15304
        } else {
15305
          setProviderId((Long)value);
15306
        }
15307
        break;
15308
 
15309
      case COD:
15310
        if (value == null) {
15311
          unsetCod();
15312
        } else {
15313
          setCod((Boolean)value);
15314
        }
15315
        break;
15316
 
15317
      case AWBS:
15318
        if (value == null) {
15319
          unsetAwbs();
15320
        } else {
15321
          setAwbs((List<String>)value);
15322
        }
15323
        break;
15324
 
15325
      }
15326
    }
15327
 
15328
    public Object getFieldValue(_Fields field) {
15329
      switch (field) {
15330
      case PROVIDER_ID:
15331
        return Long.valueOf(getProviderId());
15332
 
15333
      case COD:
15334
        return Boolean.valueOf(isCod());
15335
 
15336
      case AWBS:
15337
        return getAwbs();
15338
 
15339
      }
15340
      throw new IllegalStateException();
15341
    }
15342
 
15343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15344
    public boolean isSet(_Fields field) {
15345
      if (field == null) {
15346
        throw new IllegalArgumentException();
15347
      }
15348
 
15349
      switch (field) {
15350
      case PROVIDER_ID:
15351
        return isSetProviderId();
15352
      case COD:
15353
        return isSetCod();
15354
      case AWBS:
15355
        return isSetAwbs();
15356
      }
15357
      throw new IllegalStateException();
15358
    }
15359
 
15360
    @Override
15361
    public boolean equals(Object that) {
15362
      if (that == null)
15363
        return false;
15364
      if (that instanceof addNewAwbs_args)
15365
        return this.equals((addNewAwbs_args)that);
15366
      return false;
15367
    }
15368
 
15369
    public boolean equals(addNewAwbs_args that) {
15370
      if (that == null)
15371
        return false;
15372
 
15373
      boolean this_present_providerId = true;
15374
      boolean that_present_providerId = true;
15375
      if (this_present_providerId || that_present_providerId) {
15376
        if (!(this_present_providerId && that_present_providerId))
15377
          return false;
15378
        if (this.providerId != that.providerId)
15379
          return false;
15380
      }
15381
 
15382
      boolean this_present_cod = true;
15383
      boolean that_present_cod = true;
15384
      if (this_present_cod || that_present_cod) {
15385
        if (!(this_present_cod && that_present_cod))
15386
          return false;
15387
        if (this.cod != that.cod)
15388
          return false;
15389
      }
15390
 
15391
      boolean this_present_awbs = true && this.isSetAwbs();
15392
      boolean that_present_awbs = true && that.isSetAwbs();
15393
      if (this_present_awbs || that_present_awbs) {
15394
        if (!(this_present_awbs && that_present_awbs))
15395
          return false;
15396
        if (!this.awbs.equals(that.awbs))
15397
          return false;
15398
      }
15399
 
15400
      return true;
15401
    }
15402
 
15403
    @Override
15404
    public int hashCode() {
15405
      return 0;
15406
    }
15407
 
15408
    public int compareTo(addNewAwbs_args other) {
15409
      if (!getClass().equals(other.getClass())) {
15410
        return getClass().getName().compareTo(other.getClass().getName());
15411
      }
15412
 
15413
      int lastComparison = 0;
15414
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15415
 
15416
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15417
      if (lastComparison != 0) {
15418
        return lastComparison;
15419
      }
15420
      if (isSetProviderId()) {
15421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15422
        if (lastComparison != 0) {
15423
          return lastComparison;
15424
        }
15425
      }
15426
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15427
      if (lastComparison != 0) {
15428
        return lastComparison;
15429
      }
15430
      if (isSetCod()) {
15431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15432
        if (lastComparison != 0) {
15433
          return lastComparison;
15434
        }
15435
      }
15436
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
15437
      if (lastComparison != 0) {
15438
        return lastComparison;
15439
      }
15440
      if (isSetAwbs()) {
15441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15442
        if (lastComparison != 0) {
15443
          return lastComparison;
15444
        }
15445
      }
15446
      return 0;
15447
    }
15448
 
15449
    public _Fields fieldForId(int fieldId) {
15450
      return _Fields.findByThriftId(fieldId);
15451
    }
15452
 
15453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15454
      org.apache.thrift.protocol.TField field;
15455
      iprot.readStructBegin();
15456
      while (true)
15457
      {
15458
        field = iprot.readFieldBegin();
15459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15460
          break;
15461
        }
15462
        switch (field.id) {
15463
          case 1: // PROVIDER_ID
15464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15465
              this.providerId = iprot.readI64();
15466
              setProviderIdIsSet(true);
15467
            } else { 
15468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15469
            }
15470
            break;
15471
          case 2: // COD
15472
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15473
              this.cod = iprot.readBool();
15474
              setCodIsSet(true);
15475
            } else { 
15476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15477
            }
15478
            break;
15479
          case 3: // AWBS
15480
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15481
              {
15482
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
15483
                this.awbs = new ArrayList<String>(_list25.size);
15484
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
15485
                {
15486
                  String _elem27; // required
15487
                  _elem27 = iprot.readString();
15488
                  this.awbs.add(_elem27);
15489
                }
15490
                iprot.readListEnd();
15491
              }
15492
            } else { 
15493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15494
            }
15495
            break;
15496
          default:
15497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15498
        }
15499
        iprot.readFieldEnd();
15500
      }
15501
      iprot.readStructEnd();
15502
      validate();
15503
    }
15504
 
15505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15506
      validate();
15507
 
15508
      oprot.writeStructBegin(STRUCT_DESC);
15509
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15510
      oprot.writeI64(this.providerId);
15511
      oprot.writeFieldEnd();
15512
      oprot.writeFieldBegin(COD_FIELD_DESC);
15513
      oprot.writeBool(this.cod);
15514
      oprot.writeFieldEnd();
15515
      if (this.awbs != null) {
15516
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
15517
        {
15518
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
15519
          for (String _iter28 : this.awbs)
15520
          {
15521
            oprot.writeString(_iter28);
15522
          }
15523
          oprot.writeListEnd();
15524
        }
15525
        oprot.writeFieldEnd();
15526
      }
15527
      oprot.writeFieldStop();
15528
      oprot.writeStructEnd();
15529
    }
15530
 
15531
    @Override
15532
    public String toString() {
15533
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
15534
      boolean first = true;
15535
 
15536
      sb.append("providerId:");
15537
      sb.append(this.providerId);
15538
      first = false;
15539
      if (!first) sb.append(", ");
15540
      sb.append("cod:");
15541
      sb.append(this.cod);
15542
      first = false;
15543
      if (!first) sb.append(", ");
15544
      sb.append("awbs:");
15545
      if (this.awbs == null) {
15546
        sb.append("null");
15547
      } else {
15548
        sb.append(this.awbs);
15549
      }
15550
      first = false;
15551
      sb.append(")");
15552
      return sb.toString();
15553
    }
15554
 
15555
    public void validate() throws org.apache.thrift.TException {
15556
      // check for required fields
15557
    }
15558
 
15559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15560
      try {
15561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15562
      } catch (org.apache.thrift.TException te) {
15563
        throw new java.io.IOException(te);
15564
      }
15565
    }
15566
 
15567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15568
      try {
15569
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15570
        __isset_bit_vector = new BitSet(1);
15571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15572
      } catch (org.apache.thrift.TException te) {
15573
        throw new java.io.IOException(te);
15574
      }
15575
    }
15576
 
15577
  }
15578
 
15579
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
15580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
15581
 
15582
    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);
15583
 
15584
    private boolean success; // required
15585
 
15586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15588
      SUCCESS((short)0, "success");
15589
 
15590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15591
 
15592
      static {
15593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15594
          byName.put(field.getFieldName(), field);
15595
        }
15596
      }
15597
 
15598
      /**
15599
       * Find the _Fields constant that matches fieldId, or null if its not found.
15600
       */
15601
      public static _Fields findByThriftId(int fieldId) {
15602
        switch(fieldId) {
15603
          case 0: // SUCCESS
15604
            return SUCCESS;
15605
          default:
15606
            return null;
15607
        }
15608
      }
15609
 
15610
      /**
15611
       * Find the _Fields constant that matches fieldId, throwing an exception
15612
       * if it is not found.
15613
       */
15614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15615
        _Fields fields = findByThriftId(fieldId);
15616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15617
        return fields;
15618
      }
15619
 
15620
      /**
15621
       * Find the _Fields constant that matches name, or null if its not found.
15622
       */
15623
      public static _Fields findByName(String name) {
15624
        return byName.get(name);
15625
      }
15626
 
15627
      private final short _thriftId;
15628
      private final String _fieldName;
15629
 
15630
      _Fields(short thriftId, String fieldName) {
15631
        _thriftId = thriftId;
15632
        _fieldName = fieldName;
15633
      }
15634
 
15635
      public short getThriftFieldId() {
15636
        return _thriftId;
15637
      }
15638
 
15639
      public String getFieldName() {
15640
        return _fieldName;
15641
      }
15642
    }
15643
 
15644
    // isset id assignments
15645
    private static final int __SUCCESS_ISSET_ID = 0;
15646
    private BitSet __isset_bit_vector = new BitSet(1);
15647
 
15648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15649
    static {
15650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15651
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
15655
    }
15656
 
15657
    public addNewAwbs_result() {
15658
    }
15659
 
15660
    public addNewAwbs_result(
15661
      boolean success)
15662
    {
15663
      this();
15664
      this.success = success;
15665
      setSuccessIsSet(true);
15666
    }
15667
 
15668
    /**
15669
     * Performs a deep copy on <i>other</i>.
15670
     */
15671
    public addNewAwbs_result(addNewAwbs_result other) {
15672
      __isset_bit_vector.clear();
15673
      __isset_bit_vector.or(other.__isset_bit_vector);
15674
      this.success = other.success;
15675
    }
15676
 
15677
    public addNewAwbs_result deepCopy() {
15678
      return new addNewAwbs_result(this);
15679
    }
15680
 
15681
    @Override
15682
    public void clear() {
15683
      setSuccessIsSet(false);
15684
      this.success = false;
15685
    }
15686
 
15687
    public boolean isSuccess() {
15688
      return this.success;
15689
    }
15690
 
15691
    public void setSuccess(boolean success) {
15692
      this.success = success;
15693
      setSuccessIsSet(true);
15694
    }
15695
 
15696
    public void unsetSuccess() {
15697
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15698
    }
15699
 
15700
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15701
    public boolean isSetSuccess() {
15702
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15703
    }
15704
 
15705
    public void setSuccessIsSet(boolean value) {
15706
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15707
    }
15708
 
15709
    public void setFieldValue(_Fields field, Object value) {
15710
      switch (field) {
15711
      case SUCCESS:
15712
        if (value == null) {
15713
          unsetSuccess();
15714
        } else {
15715
          setSuccess((Boolean)value);
15716
        }
15717
        break;
15718
 
15719
      }
15720
    }
15721
 
15722
    public Object getFieldValue(_Fields field) {
15723
      switch (field) {
15724
      case SUCCESS:
15725
        return Boolean.valueOf(isSuccess());
15726
 
15727
      }
15728
      throw new IllegalStateException();
15729
    }
15730
 
15731
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15732
    public boolean isSet(_Fields field) {
15733
      if (field == null) {
15734
        throw new IllegalArgumentException();
15735
      }
15736
 
15737
      switch (field) {
15738
      case SUCCESS:
15739
        return isSetSuccess();
15740
      }
15741
      throw new IllegalStateException();
15742
    }
15743
 
15744
    @Override
15745
    public boolean equals(Object that) {
15746
      if (that == null)
15747
        return false;
15748
      if (that instanceof addNewAwbs_result)
15749
        return this.equals((addNewAwbs_result)that);
15750
      return false;
15751
    }
15752
 
15753
    public boolean equals(addNewAwbs_result that) {
15754
      if (that == null)
15755
        return false;
15756
 
15757
      boolean this_present_success = true;
15758
      boolean that_present_success = true;
15759
      if (this_present_success || that_present_success) {
15760
        if (!(this_present_success && that_present_success))
15761
          return false;
15762
        if (this.success != that.success)
15763
          return false;
15764
      }
15765
 
15766
      return true;
15767
    }
15768
 
15769
    @Override
15770
    public int hashCode() {
15771
      return 0;
15772
    }
15773
 
15774
    public int compareTo(addNewAwbs_result other) {
15775
      if (!getClass().equals(other.getClass())) {
15776
        return getClass().getName().compareTo(other.getClass().getName());
15777
      }
15778
 
15779
      int lastComparison = 0;
15780
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
15781
 
15782
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15783
      if (lastComparison != 0) {
15784
        return lastComparison;
15785
      }
15786
      if (isSetSuccess()) {
15787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15788
        if (lastComparison != 0) {
15789
          return lastComparison;
15790
        }
15791
      }
15792
      return 0;
15793
    }
15794
 
15795
    public _Fields fieldForId(int fieldId) {
15796
      return _Fields.findByThriftId(fieldId);
15797
    }
15798
 
15799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15800
      org.apache.thrift.protocol.TField field;
15801
      iprot.readStructBegin();
15802
      while (true)
15803
      {
15804
        field = iprot.readFieldBegin();
15805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15806
          break;
15807
        }
15808
        switch (field.id) {
15809
          case 0: // SUCCESS
15810
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15811
              this.success = iprot.readBool();
15812
              setSuccessIsSet(true);
15813
            } else { 
15814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15815
            }
15816
            break;
15817
          default:
15818
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15819
        }
15820
        iprot.readFieldEnd();
15821
      }
15822
      iprot.readStructEnd();
15823
      validate();
15824
    }
15825
 
15826
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15827
      oprot.writeStructBegin(STRUCT_DESC);
15828
 
15829
      if (this.isSetSuccess()) {
15830
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15831
        oprot.writeBool(this.success);
15832
        oprot.writeFieldEnd();
15833
      }
15834
      oprot.writeFieldStop();
15835
      oprot.writeStructEnd();
15836
    }
15837
 
15838
    @Override
15839
    public String toString() {
15840
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
15841
      boolean first = true;
15842
 
15843
      sb.append("success:");
15844
      sb.append(this.success);
15845
      first = false;
15846
      sb.append(")");
15847
      return sb.toString();
15848
    }
15849
 
15850
    public void validate() throws org.apache.thrift.TException {
15851
      // check for required fields
15852
    }
15853
 
15854
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15855
      try {
15856
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15857
      } catch (org.apache.thrift.TException te) {
15858
        throw new java.io.IOException(te);
15859
      }
15860
    }
15861
 
15862
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15863
      try {
15864
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15865
      } catch (org.apache.thrift.TException te) {
15866
        throw new java.io.IOException(te);
15867
      }
15868
    }
15869
 
15870
  }
15871
 
412 ashish 15872
}