Subversion Repositories SmartDukaan

Rev

Rev 6524 | Rev 7256 | 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
 
648 chandransh 50
    /**
51
     * Same as above excpet that an airway bill number is also allocated and returned.
52
     * 
53
     * @param destination_pincode
54
     * @param item_id
3044 chandransh 55
     * @param type
5766 rajveer 56
     * @param pickUp
648 chandransh 57
     */
5766 rajveer 58
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 59
 
648 chandransh 60
    /**
61
     * Returns an unused AWB number for the given provider.
62
     * 
63
     * @param providerId
5247 rajveer 64
     * @param type
648 chandransh 65
     */
5247 rajveer 66
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 67
 
648 chandransh 68
    /**
69
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
70
     * 
6643 rajveer 71
     * @param awbNumber
648 chandransh 72
     * @param providerId
73
     */
6643 rajveer 74
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 75
 
730 chandransh 76
    /**
6643 rajveer 77
     * Store the update for the given AWB number and provider id.
78
     * 
79
     * @param update
80
     */
81
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
82
 
83
    /**
730 chandransh 84
     * Returns the short three letter code of a pincode for the given provider.
85
     *    Raises an exception if the pin code is not serviced by the given provider.
86
     * 
87
     * @param providerId
88
     * @param pinCode
89
     */
3430 rajveer 90
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 91
 
1139 chandransh 92
    /**
3103 chandransh 93
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 94
     * 
95
     * @param providerId
3103 chandransh 96
     * @param type
1139 chandransh 97
     */
3430 rajveer 98
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 99
 
1730 ankur.sing 100
    /**
101
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
102
     * fromDate should be passed as milliseconds corresponding to the start of the day.
103
     * If fromDate is passed as -1, fromDate is not considered for filtering
104
     * If toDate is passed as -1, toDate is not considered for filtering
105
     * 
106
     * @param fromDate
107
     * @param toDate
108
     */
3430 rajveer 109
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 110
 
4934 amit.gupta 111
    /**
112
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
113
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
114
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
115
     * 
116
     * @param catalogItemId
117
     * @param destination_pin
118
     * @param type
119
     */
120
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
121
 
5527 anupam.sin 122
    /**
123
     * Returns the id for a given pickUpType
124
     * 
125
     * @param pickUp
126
     */
127
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
128
 
5553 rajveer 129
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
130
 
131
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
132
 
5719 rajveer 133
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
134
 
6524 rajveer 135
    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 136
 
6524 rajveer 137
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 138
 
412 ashish 139
  }
140
 
3430 rajveer 141
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
142
 
143
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
144
 
145
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
146
 
4630 mandeep.dh 147
    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 148
 
5766 rajveer 149
    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 150
 
5247 rajveer 151
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 152
 
6643 rajveer 153
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 154
 
6643 rajveer 155
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
156
 
3430 rajveer 157
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
160
 
161
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
162
 
4934 amit.gupta 163
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
164
 
5527 anupam.sin 165
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
166
 
5553 rajveer 167
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
170
 
5719 rajveer 171
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
172
 
6524 rajveer 173
    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 174
 
6524 rajveer 175
    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 176
 
3430 rajveer 177
  }
178
 
3374 rajveer 179
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 180
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
181
      public Factory() {}
182
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
183
        return new Client(prot);
184
      }
185
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
186
        return new Client(iprot, oprot);
187
      }
188
    }
189
 
190
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 191
    {
3430 rajveer 192
      super(prot, prot);
412 ashish 193
    }
194
 
3430 rajveer 195
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 196
      super(iprot, oprot);
412 ashish 197
    }
198
 
3430 rajveer 199
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 200
    {
201
      send_getProvider(providerId);
202
      return recv_getProvider();
203
    }
204
 
3430 rajveer 205
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 206
    {
207
      getProvider_args args = new getProvider_args();
3430 rajveer 208
      args.setProviderId(providerId);
209
      sendBase("getProvider", args);
668 chandransh 210
    }
211
 
3430 rajveer 212
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 213
    {
214
      getProvider_result result = new getProvider_result();
3430 rajveer 215
      receiveBase(result, "getProvider");
668 chandransh 216
      if (result.isSetSuccess()) {
217
        return result.success;
218
      }
219
      if (result.lse != null) {
220
        throw result.lse;
221
      }
3430 rajveer 222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 223
    }
224
 
3430 rajveer 225
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 226
    {
227
      send_getAllProviders();
228
      return recv_getAllProviders();
229
    }
230
 
3430 rajveer 231
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 232
    {
233
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 234
      sendBase("getAllProviders", args);
674 chandransh 235
    }
236
 
3430 rajveer 237
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 238
    {
239
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 240
      receiveBase(result, "getAllProviders");
674 chandransh 241
      if (result.isSetSuccess()) {
242
        return result.success;
243
      }
244
      if (result.lse != null) {
245
        throw result.lse;
246
      }
3430 rajveer 247
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 248
    }
249
 
4630 mandeep.dh 250
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 251
    {
4630 mandeep.dh 252
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 253
      return recv_getLogisticsEstimation();
254
    }
255
 
4630 mandeep.dh 256
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 257
    {
258
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 259
      args.setItemId(itemId);
260
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 261
      args.setType(type);
3430 rajveer 262
      sendBase("getLogisticsEstimation", args);
471 rajveer 263
    }
264
 
3430 rajveer 265
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 266
    {
267
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 268
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 269
      if (result.isSetSuccess()) {
270
        return result.success;
271
      }
272
      if (result.se != null) {
273
        throw result.se;
274
      }
3430 rajveer 275
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 276
    }
277
 
5766 rajveer 278
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 279
    {
5766 rajveer 280
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 281
      return recv_getLogisticsInfo();
471 rajveer 282
    }
283
 
5766 rajveer 284
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 285
    {
648 chandransh 286
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 287
      args.setDestination_pincode(destination_pincode);
288
      args.setItem_id(item_id);
289
      args.setType(type);
5766 rajveer 290
      args.setPickUp(pickUp);
3430 rajveer 291
      sendBase("getLogisticsInfo", args);
471 rajveer 292
    }
293
 
3430 rajveer 294
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 295
    {
648 chandransh 296
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 297
      receiveBase(result, "getLogisticsInfo");
648 chandransh 298
      if (result.isSetSuccess()) {
299
        return result.success;
477 rajveer 300
      }
648 chandransh 301
      if (result.se != null) {
302
        throw result.se;
412 ashish 303
      }
3430 rajveer 304
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 305
    }
306
 
5247 rajveer 307
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 308
    {
5247 rajveer 309
      send_getEmptyAWB(providerId, type);
412 ashish 310
      return recv_getEmptyAWB();
311
    }
312
 
5247 rajveer 313
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 314
    {
315
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 316
      args.setProviderId(providerId);
5247 rajveer 317
      args.setType(type);
3430 rajveer 318
      sendBase("getEmptyAWB", args);
412 ashish 319
    }
320
 
3430 rajveer 321
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 322
    {
323
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 324
      receiveBase(result, "getEmptyAWB");
412 ashish 325
      if (result.isSetSuccess()) {
326
        return result.success;
327
      }
648 chandransh 328
      if (result.se != null) {
329
        throw result.se;
330
      }
3430 rajveer 331
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 332
    }
333
 
6643 rajveer 334
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 335
    {
6643 rajveer 336
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 337
      return recv_getShipmentInfo();
338
    }
339
 
6643 rajveer 340
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 341
    {
342
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 343
      args.setAwbNumber(awbNumber);
3430 rajveer 344
      args.setProviderId(providerId);
345
      sendBase("getShipmentInfo", args);
412 ashish 346
    }
347
 
3430 rajveer 348
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 349
    {
350
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 351
      receiveBase(result, "getShipmentInfo");
412 ashish 352
      if (result.isSetSuccess()) {
353
        return result.success;
354
      }
648 chandransh 355
      if (result.se != null) {
356
        throw result.se;
357
      }
3430 rajveer 358
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 359
    }
360
 
6643 rajveer 361
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
362
    {
363
      send_storeShipmentInfo(update);
364
      recv_storeShipmentInfo();
365
    }
366
 
367
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
368
    {
369
      storeShipmentInfo_args args = new storeShipmentInfo_args();
370
      args.setUpdate(update);
371
      sendBase("storeShipmentInfo", args);
372
    }
373
 
374
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
375
    {
376
      storeShipmentInfo_result result = new storeShipmentInfo_result();
377
      receiveBase(result, "storeShipmentInfo");
378
      if (result.se != null) {
379
        throw result.se;
380
      }
381
      return;
382
    }
383
 
3430 rajveer 384
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 385
    {
386
      send_getDestinationCode(providerId, pinCode);
387
      return recv_getDestinationCode();
388
    }
389
 
3430 rajveer 390
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 391
    {
392
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 393
      args.setProviderId(providerId);
394
      args.setPinCode(pinCode);
395
      sendBase("getDestinationCode", args);
730 chandransh 396
    }
397
 
3430 rajveer 398
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 399
    {
400
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 401
      receiveBase(result, "getDestinationCode");
730 chandransh 402
      if (result.isSetSuccess()) {
403
        return result.success;
404
      }
405
      if (result.se != null) {
406
        throw result.se;
407
      }
3430 rajveer 408
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 409
    }
410
 
3430 rajveer 411
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 412
    {
3103 chandransh 413
      send_getFreeAwbCount(providerId, type);
1139 chandransh 414
      return recv_getFreeAwbCount();
415
    }
416
 
3430 rajveer 417
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 418
    {
419
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 420
      args.setProviderId(providerId);
421
      args.setType(type);
422
      sendBase("getFreeAwbCount", args);
1139 chandransh 423
    }
424
 
3430 rajveer 425
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 426
    {
427
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 428
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 429
      if (result.isSetSuccess()) {
430
        return result.success;
431
      }
3430 rajveer 432
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 433
    }
434
 
3430 rajveer 435
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 436
    {
437
      send_getHolidays(fromDate, toDate);
438
      return recv_getHolidays();
439
    }
440
 
3430 rajveer 441
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 442
    {
443
      getHolidays_args args = new getHolidays_args();
3430 rajveer 444
      args.setFromDate(fromDate);
445
      args.setToDate(toDate);
446
      sendBase("getHolidays", args);
1730 ankur.sing 447
    }
448
 
3430 rajveer 449
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 450
    {
451
      getHolidays_result result = new getHolidays_result();
3430 rajveer 452
      receiveBase(result, "getHolidays");
1730 ankur.sing 453
      if (result.isSetSuccess()) {
454
        return result.success;
455
      }
3430 rajveer 456
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 457
    }
458
 
4934 amit.gupta 459
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
460
    {
461
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
462
      return recv_getEntityLogisticsEstimation();
463
    }
464
 
465
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
466
    {
467
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
468
      args.setCatalogItemId(catalogItemId);
469
      args.setDestination_pin(destination_pin);
470
      args.setType(type);
471
      sendBase("getEntityLogisticsEstimation", args);
472
    }
473
 
474
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
475
    {
476
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
477
      receiveBase(result, "getEntityLogisticsEstimation");
478
      if (result.isSetSuccess()) {
479
        return result.success;
480
      }
481
      if (result.se != null) {
482
        throw result.se;
483
      }
484
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
485
    }
486
 
5527 anupam.sin 487
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
488
    {
489
      send_getProviderForPickupType(pickUp);
490
      return recv_getProviderForPickupType();
491
    }
492
 
493
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
494
    {
495
      getProviderForPickupType_args args = new getProviderForPickupType_args();
496
      args.setPickUp(pickUp);
497
      sendBase("getProviderForPickupType", args);
498
    }
499
 
500
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
501
    {
502
      getProviderForPickupType_result result = new getProviderForPickupType_result();
503
      receiveBase(result, "getProviderForPickupType");
504
      if (result.isSetSuccess()) {
505
        return result.success;
506
      }
507
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
508
    }
509
 
5553 rajveer 510
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
511
    {
512
      send_getAllPickupStores();
513
      return recv_getAllPickupStores();
514
    }
515
 
516
    public void send_getAllPickupStores() throws org.apache.thrift.TException
517
    {
518
      getAllPickupStores_args args = new getAllPickupStores_args();
519
      sendBase("getAllPickupStores", args);
520
    }
521
 
522
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
523
    {
524
      getAllPickupStores_result result = new getAllPickupStores_result();
525
      receiveBase(result, "getAllPickupStores");
526
      if (result.isSetSuccess()) {
527
        return result.success;
528
      }
529
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
530
    }
531
 
532
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
533
    {
534
      send_getPickupStore(storeId);
535
      return recv_getPickupStore();
536
    }
537
 
538
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
539
    {
540
      getPickupStore_args args = new getPickupStore_args();
541
      args.setStoreId(storeId);
542
      sendBase("getPickupStore", args);
543
    }
544
 
545
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
546
    {
547
      getPickupStore_result result = new getPickupStore_result();
548
      receiveBase(result, "getPickupStore");
549
      if (result.isSetSuccess()) {
550
        return result.success;
551
      }
552
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
553
    }
554
 
5719 rajveer 555
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
556
    {
557
      send_getPickupStoreByHotspotId(hotspotId);
558
      return recv_getPickupStoreByHotspotId();
559
    }
560
 
561
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
562
    {
563
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
564
      args.setHotspotId(hotspotId);
565
      sendBase("getPickupStoreByHotspotId", args);
566
    }
567
 
568
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
569
    {
570
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
571
      receiveBase(result, "getPickupStoreByHotspotId");
572
      if (result.isSetSuccess()) {
573
        return result.success;
574
      }
575
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
576
    }
577
 
6524 rajveer 578
    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 579
    {
6524 rajveer 580
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 581
      recv_addPincode();
582
    }
583
 
6524 rajveer 584
    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 585
    {
586
      addPincode_args args = new addPincode_args();
587
      args.setProviderId(providerId);
588
      args.setPincode(pincode);
589
      args.setDestCode(destCode);
590
      args.setExp(exp);
591
      args.setCod(cod);
592
      args.setStationType(stationType);
6524 rajveer 593
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 594
      sendBase("addPincode", args);
595
    }
596
 
597
    public void recv_addPincode() throws org.apache.thrift.TException
598
    {
599
      addPincode_result result = new addPincode_result();
600
      receiveBase(result, "addPincode");
601
      return;
602
    }
603
 
6524 rajveer 604
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 605
    {
6524 rajveer 606
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 607
      recv_updatePincode();
608
    }
609
 
6524 rajveer 610
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 611
    {
612
      updatePincode_args args = new updatePincode_args();
613
      args.setProviderId(providerId);
614
      args.setPincode(pincode);
615
      args.setExp(exp);
616
      args.setCod(cod);
6524 rajveer 617
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 618
      sendBase("updatePincode", args);
619
    }
620
 
621
    public void recv_updatePincode() throws org.apache.thrift.TException
622
    {
623
      updatePincode_result result = new updatePincode_result();
624
      receiveBase(result, "updatePincode");
625
      return;
626
    }
627
 
412 ashish 628
  }
3430 rajveer 629
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
630
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
631
      private org.apache.thrift.async.TAsyncClientManager clientManager;
632
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
633
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
634
        this.clientManager = clientManager;
635
        this.protocolFactory = protocolFactory;
636
      }
637
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
638
        return new AsyncClient(protocolFactory, clientManager, transport);
639
      }
412 ashish 640
    }
641
 
3430 rajveer 642
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
643
      super(protocolFactory, clientManager, transport);
644
    }
412 ashish 645
 
3430 rajveer 646
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
647
      checkReady();
648
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
649
      this.___currentMethod = method_call;
650
      ___manager.call(method_call);
651
    }
652
 
653
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
654
      private long providerId;
655
      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 {
656
        super(client, protocolFactory, transport, resultHandler, false);
657
        this.providerId = providerId;
412 ashish 658
      }
3430 rajveer 659
 
660
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
661
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
662
        getProvider_args args = new getProvider_args();
663
        args.setProviderId(providerId);
664
        args.write(prot);
665
        prot.writeMessageEnd();
666
      }
667
 
668
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
670
          throw new IllegalStateException("Method call not finished!");
671
        }
672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
674
        return (new Client(prot)).recv_getProvider();
675
      }
412 ashish 676
    }
677
 
3430 rajveer 678
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
679
      checkReady();
680
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
681
      this.___currentMethod = method_call;
682
      ___manager.call(method_call);
683
    }
684
 
685
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
686
      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 {
687
        super(client, protocolFactory, transport, resultHandler, false);
688
      }
689
 
690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
692
        getAllProviders_args args = new getAllProviders_args();
693
        args.write(prot);
694
        prot.writeMessageEnd();
695
      }
696
 
697
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
698
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
699
          throw new IllegalStateException("Method call not finished!");
700
        }
701
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
702
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
703
        return (new Client(prot)).recv_getAllProviders();
704
      }
705
    }
706
 
4630 mandeep.dh 707
    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 708
      checkReady();
4630 mandeep.dh 709
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 710
      this.___currentMethod = method_call;
711
      ___manager.call(method_call);
712
    }
713
 
714
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
715
      private long itemId;
716
      private String destination_pin;
4630 mandeep.dh 717
      private DeliveryType type;
718
      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 719
        super(client, protocolFactory, transport, resultHandler, false);
720
        this.itemId = itemId;
721
        this.destination_pin = destination_pin;
4630 mandeep.dh 722
        this.type = type;
3430 rajveer 723
      }
724
 
725
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
726
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
727
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
728
        args.setItemId(itemId);
729
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 730
        args.setType(type);
3430 rajveer 731
        args.write(prot);
732
        prot.writeMessageEnd();
733
      }
734
 
735
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
736
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
737
          throw new IllegalStateException("Method call not finished!");
738
        }
739
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
740
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
741
        return (new Client(prot)).recv_getLogisticsEstimation();
742
      }
743
    }
744
 
5766 rajveer 745
    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 746
      checkReady();
5766 rajveer 747
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 748
      this.___currentMethod = method_call;
749
      ___manager.call(method_call);
750
    }
751
 
752
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
753
      private String destination_pincode;
754
      private long item_id;
755
      private DeliveryType type;
5766 rajveer 756
      private PickUpType pickUp;
757
      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 758
        super(client, protocolFactory, transport, resultHandler, false);
759
        this.destination_pincode = destination_pincode;
760
        this.item_id = item_id;
761
        this.type = type;
5766 rajveer 762
        this.pickUp = pickUp;
3430 rajveer 763
      }
764
 
765
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
766
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
767
        getLogisticsInfo_args args = new getLogisticsInfo_args();
768
        args.setDestination_pincode(destination_pincode);
769
        args.setItem_id(item_id);
770
        args.setType(type);
5766 rajveer 771
        args.setPickUp(pickUp);
3430 rajveer 772
        args.write(prot);
773
        prot.writeMessageEnd();
774
      }
775
 
776
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
777
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
778
          throw new IllegalStateException("Method call not finished!");
779
        }
780
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
781
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
782
        return (new Client(prot)).recv_getLogisticsInfo();
783
      }
784
    }
785
 
5247 rajveer 786
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 787
      checkReady();
5247 rajveer 788
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 789
      this.___currentMethod = method_call;
790
      ___manager.call(method_call);
791
    }
792
 
793
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
794
      private long providerId;
5247 rajveer 795
      private DeliveryType type;
796
      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 797
        super(client, protocolFactory, transport, resultHandler, false);
798
        this.providerId = providerId;
5247 rajveer 799
        this.type = type;
3430 rajveer 800
      }
801
 
802
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
803
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
804
        getEmptyAWB_args args = new getEmptyAWB_args();
805
        args.setProviderId(providerId);
5247 rajveer 806
        args.setType(type);
3430 rajveer 807
        args.write(prot);
808
        prot.writeMessageEnd();
809
      }
810
 
811
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
812
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
813
          throw new IllegalStateException("Method call not finished!");
814
        }
815
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
816
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
817
        return (new Client(prot)).recv_getEmptyAWB();
818
      }
819
    }
820
 
6643 rajveer 821
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 822
      checkReady();
6643 rajveer 823
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 824
      this.___currentMethod = method_call;
825
      ___manager.call(method_call);
826
    }
827
 
828
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 829
      private String awbNumber;
3430 rajveer 830
      private long providerId;
6643 rajveer 831
      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 832
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 833
        this.awbNumber = awbNumber;
3430 rajveer 834
        this.providerId = providerId;
835
      }
836
 
837
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
838
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
839
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 840
        args.setAwbNumber(awbNumber);
3430 rajveer 841
        args.setProviderId(providerId);
842
        args.write(prot);
843
        prot.writeMessageEnd();
844
      }
845
 
846
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
847
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
848
          throw new IllegalStateException("Method call not finished!");
849
        }
850
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
852
        return (new Client(prot)).recv_getShipmentInfo();
853
      }
854
    }
855
 
6643 rajveer 856
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
857
      checkReady();
858
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
859
      this.___currentMethod = method_call;
860
      ___manager.call(method_call);
861
    }
862
 
863
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
864
      private AwbUpdate update;
865
      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 {
866
        super(client, protocolFactory, transport, resultHandler, false);
867
        this.update = update;
868
      }
869
 
870
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
871
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
872
        storeShipmentInfo_args args = new storeShipmentInfo_args();
873
        args.setUpdate(update);
874
        args.write(prot);
875
        prot.writeMessageEnd();
876
      }
877
 
878
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
879
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
880
          throw new IllegalStateException("Method call not finished!");
881
        }
882
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
883
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
884
        (new Client(prot)).recv_storeShipmentInfo();
885
      }
886
    }
887
 
3430 rajveer 888
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
889
      checkReady();
890
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
891
      this.___currentMethod = method_call;
892
      ___manager.call(method_call);
893
    }
894
 
895
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
896
      private long providerId;
897
      private String pinCode;
898
      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 {
899
        super(client, protocolFactory, transport, resultHandler, false);
900
        this.providerId = providerId;
901
        this.pinCode = pinCode;
902
      }
903
 
904
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
905
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
906
        getDestinationCode_args args = new getDestinationCode_args();
907
        args.setProviderId(providerId);
908
        args.setPinCode(pinCode);
909
        args.write(prot);
910
        prot.writeMessageEnd();
911
      }
912
 
913
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
914
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
915
          throw new IllegalStateException("Method call not finished!");
916
        }
917
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
918
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
919
        return (new Client(prot)).recv_getDestinationCode();
920
      }
921
    }
922
 
923
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
924
      checkReady();
925
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
926
      this.___currentMethod = method_call;
927
      ___manager.call(method_call);
928
    }
929
 
930
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
931
      private long providerId;
932
      private String type;
933
      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 {
934
        super(client, protocolFactory, transport, resultHandler, false);
935
        this.providerId = providerId;
936
        this.type = type;
937
      }
938
 
939
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
940
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
941
        getFreeAwbCount_args args = new getFreeAwbCount_args();
942
        args.setProviderId(providerId);
943
        args.setType(type);
944
        args.write(prot);
945
        prot.writeMessageEnd();
946
      }
947
 
948
      public long getResult() throws org.apache.thrift.TException {
949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
950
          throw new IllegalStateException("Method call not finished!");
951
        }
952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
954
        return (new Client(prot)).recv_getFreeAwbCount();
955
      }
956
    }
957
 
958
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
959
      checkReady();
960
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
961
      this.___currentMethod = method_call;
962
      ___manager.call(method_call);
963
    }
964
 
965
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
966
      private long fromDate;
967
      private long toDate;
968
      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 {
969
        super(client, protocolFactory, transport, resultHandler, false);
970
        this.fromDate = fromDate;
971
        this.toDate = toDate;
972
      }
973
 
974
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
975
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
976
        getHolidays_args args = new getHolidays_args();
977
        args.setFromDate(fromDate);
978
        args.setToDate(toDate);
979
        args.write(prot);
980
        prot.writeMessageEnd();
981
      }
982
 
983
      public List<Long> getResult() throws org.apache.thrift.TException {
984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
985
          throw new IllegalStateException("Method call not finished!");
986
        }
987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
989
        return (new Client(prot)).recv_getHolidays();
990
      }
991
    }
992
 
4934 amit.gupta 993
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
994
      checkReady();
995
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
996
      this.___currentMethod = method_call;
997
      ___manager.call(method_call);
998
    }
999
 
1000
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1001
      private long catalogItemId;
1002
      private String destination_pin;
1003
      private DeliveryType type;
1004
      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 {
1005
        super(client, protocolFactory, transport, resultHandler, false);
1006
        this.catalogItemId = catalogItemId;
1007
        this.destination_pin = destination_pin;
1008
        this.type = type;
1009
      }
1010
 
1011
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1012
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1013
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1014
        args.setCatalogItemId(catalogItemId);
1015
        args.setDestination_pin(destination_pin);
1016
        args.setType(type);
1017
        args.write(prot);
1018
        prot.writeMessageEnd();
1019
      }
1020
 
1021
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1022
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1023
          throw new IllegalStateException("Method call not finished!");
1024
        }
1025
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1026
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1027
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1028
      }
1029
    }
1030
 
5527 anupam.sin 1031
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1032
      checkReady();
1033
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1034
      this.___currentMethod = method_call;
1035
      ___manager.call(method_call);
1036
    }
1037
 
1038
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1039
      private long pickUp;
1040
      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 {
1041
        super(client, protocolFactory, transport, resultHandler, false);
1042
        this.pickUp = pickUp;
1043
      }
1044
 
1045
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1046
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1047
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1048
        args.setPickUp(pickUp);
1049
        args.write(prot);
1050
        prot.writeMessageEnd();
1051
      }
1052
 
1053
      public long getResult() throws org.apache.thrift.TException {
1054
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1055
          throw new IllegalStateException("Method call not finished!");
1056
        }
1057
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1058
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1059
        return (new Client(prot)).recv_getProviderForPickupType();
1060
      }
1061
    }
1062
 
5553 rajveer 1063
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1064
      checkReady();
1065
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1066
      this.___currentMethod = method_call;
1067
      ___manager.call(method_call);
1068
    }
1069
 
1070
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1071
      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 {
1072
        super(client, protocolFactory, transport, resultHandler, false);
1073
      }
1074
 
1075
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1076
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1077
        getAllPickupStores_args args = new getAllPickupStores_args();
1078
        args.write(prot);
1079
        prot.writeMessageEnd();
1080
      }
1081
 
1082
      public List<PickupStore> 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_getAllPickupStores();
1089
      }
1090
    }
1091
 
1092
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1093
      checkReady();
1094
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1095
      this.___currentMethod = method_call;
1096
      ___manager.call(method_call);
1097
    }
1098
 
1099
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1100
      private long storeId;
1101
      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 {
1102
        super(client, protocolFactory, transport, resultHandler, false);
1103
        this.storeId = storeId;
1104
      }
1105
 
1106
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1107
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1108
        getPickupStore_args args = new getPickupStore_args();
1109
        args.setStoreId(storeId);
1110
        args.write(prot);
1111
        prot.writeMessageEnd();
1112
      }
1113
 
1114
      public PickupStore getResult() throws org.apache.thrift.TException {
1115
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1116
          throw new IllegalStateException("Method call not finished!");
1117
        }
1118
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1119
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1120
        return (new Client(prot)).recv_getPickupStore();
1121
      }
1122
    }
1123
 
5719 rajveer 1124
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1125
      checkReady();
1126
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1127
      this.___currentMethod = method_call;
1128
      ___manager.call(method_call);
1129
    }
1130
 
1131
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1132
      private String hotspotId;
1133
      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 {
1134
        super(client, protocolFactory, transport, resultHandler, false);
1135
        this.hotspotId = hotspotId;
1136
      }
1137
 
1138
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1139
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1140
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1141
        args.setHotspotId(hotspotId);
1142
        args.write(prot);
1143
        prot.writeMessageEnd();
1144
      }
1145
 
1146
      public PickupStore getResult() throws org.apache.thrift.TException {
1147
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1148
          throw new IllegalStateException("Method call not finished!");
1149
        }
1150
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1151
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1152
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1153
      }
1154
    }
1155
 
6524 rajveer 1156
    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 1157
      checkReady();
6524 rajveer 1158
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1159
      this.___currentMethod = method_call;
1160
      ___manager.call(method_call);
1161
    }
1162
 
1163
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1164
      private long providerId;
1165
      private String pincode;
1166
      private String destCode;
1167
      private boolean exp;
1168
      private boolean cod;
1169
      private int stationType;
6524 rajveer 1170
      private boolean otgAvailable;
1171
      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 1172
        super(client, protocolFactory, transport, resultHandler, false);
1173
        this.providerId = providerId;
1174
        this.pincode = pincode;
1175
        this.destCode = destCode;
1176
        this.exp = exp;
1177
        this.cod = cod;
1178
        this.stationType = stationType;
6524 rajveer 1179
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1180
      }
1181
 
1182
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1183
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1184
        addPincode_args args = new addPincode_args();
1185
        args.setProviderId(providerId);
1186
        args.setPincode(pincode);
1187
        args.setDestCode(destCode);
1188
        args.setExp(exp);
1189
        args.setCod(cod);
1190
        args.setStationType(stationType);
6524 rajveer 1191
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1192
        args.write(prot);
1193
        prot.writeMessageEnd();
1194
      }
1195
 
1196
      public void getResult() throws org.apache.thrift.TException {
1197
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1198
          throw new IllegalStateException("Method call not finished!");
1199
        }
1200
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1201
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1202
        (new Client(prot)).recv_addPincode();
1203
      }
1204
    }
1205
 
6524 rajveer 1206
    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 1207
      checkReady();
6524 rajveer 1208
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1209
      this.___currentMethod = method_call;
1210
      ___manager.call(method_call);
1211
    }
1212
 
1213
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1214
      private long providerId;
1215
      private String pincode;
1216
      private boolean exp;
1217
      private boolean cod;
6524 rajveer 1218
      private boolean otgAvailable;
1219
      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 1220
        super(client, protocolFactory, transport, resultHandler, false);
1221
        this.providerId = providerId;
1222
        this.pincode = pincode;
1223
        this.exp = exp;
1224
        this.cod = cod;
6524 rajveer 1225
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1226
      }
1227
 
1228
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1229
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1230
        updatePincode_args args = new updatePincode_args();
1231
        args.setProviderId(providerId);
1232
        args.setPincode(pincode);
1233
        args.setExp(exp);
1234
        args.setCod(cod);
6524 rajveer 1235
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1236
        args.write(prot);
1237
        prot.writeMessageEnd();
1238
      }
1239
 
1240
      public void getResult() throws org.apache.thrift.TException {
1241
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1242
          throw new IllegalStateException("Method call not finished!");
1243
        }
1244
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1245
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1246
        (new Client(prot)).recv_updatePincode();
1247
      }
1248
    }
1249
 
3430 rajveer 1250
  }
1251
 
1252
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1253
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1254
    public Processor(I iface) {
1255
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1256
    }
1257
 
1258
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1259
      super(iface, getProcessMap(processMap));
1260
    }
1261
 
1262
    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) {
1263
      processMap.put("getProvider", new getProvider());
1264
      processMap.put("getAllProviders", new getAllProviders());
1265
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
1266
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1267
      processMap.put("getEmptyAWB", new getEmptyAWB());
1268
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1269
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1270
      processMap.put("getDestinationCode", new getDestinationCode());
1271
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1272
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1273
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1274
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1275
      processMap.put("getAllPickupStores", new getAllPickupStores());
1276
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1277
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1278
      processMap.put("addPincode", new addPincode());
1279
      processMap.put("updatePincode", new updatePincode());
3430 rajveer 1280
      return processMap;
1281
    }
1282
 
1283
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1284
      public getProvider() {
1285
        super("getProvider");
1286
      }
1287
 
1288
      protected getProvider_args getEmptyArgsInstance() {
1289
        return new getProvider_args();
1290
      }
1291
 
1292
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1293
        getProvider_result result = new getProvider_result();
1294
        try {
3430 rajveer 1295
          result.success = iface.getProvider(args.providerId);
668 chandransh 1296
        } catch (LogisticsServiceException lse) {
1297
          result.lse = lse;
1298
        }
3430 rajveer 1299
        return result;
668 chandransh 1300
      }
1301
    }
1302
 
3430 rajveer 1303
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1304
      public getAllProviders() {
1305
        super("getAllProviders");
1306
      }
1307
 
1308
      protected getAllProviders_args getEmptyArgsInstance() {
1309
        return new getAllProviders_args();
1310
      }
1311
 
1312
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1313
        getAllProviders_result result = new getAllProviders_result();
1314
        try {
3430 rajveer 1315
          result.success = iface.getAllProviders();
674 chandransh 1316
        } catch (LogisticsServiceException lse) {
1317
          result.lse = lse;
1318
        }
3430 rajveer 1319
        return result;
674 chandransh 1320
      }
1321
    }
1322
 
3430 rajveer 1323
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1324
      public getLogisticsEstimation() {
1325
        super("getLogisticsEstimation");
1326
      }
1327
 
1328
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1329
        return new getLogisticsEstimation_args();
1330
      }
1331
 
1332
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1333
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1334
        try {
4630 mandeep.dh 1335
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1336
        } catch (LogisticsServiceException se) {
1337
          result.se = se;
1338
        }
3430 rajveer 1339
        return result;
483 rajveer 1340
      }
1341
    }
1342
 
3430 rajveer 1343
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1344
      public getLogisticsInfo() {
1345
        super("getLogisticsInfo");
1346
      }
1347
 
1348
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1349
        return new getLogisticsInfo_args();
1350
      }
1351
 
1352
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1353
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1354
        try {
5766 rajveer 1355
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1356
        } catch (LogisticsServiceException se) {
1357
          result.se = se;
1358
        }
3430 rajveer 1359
        return result;
471 rajveer 1360
      }
1361
    }
1362
 
3430 rajveer 1363
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1364
      public getEmptyAWB() {
1365
        super("getEmptyAWB");
1366
      }
1367
 
1368
      protected getEmptyAWB_args getEmptyArgsInstance() {
1369
        return new getEmptyAWB_args();
1370
      }
1371
 
1372
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1373
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1374
        try {
5247 rajveer 1375
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1376
        } catch (LogisticsServiceException se) {
1377
          result.se = se;
1378
        }
3430 rajveer 1379
        return result;
412 ashish 1380
      }
1381
    }
1382
 
3430 rajveer 1383
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1384
      public getShipmentInfo() {
1385
        super("getShipmentInfo");
1386
      }
1387
 
1388
      protected getShipmentInfo_args getEmptyArgsInstance() {
1389
        return new getShipmentInfo_args();
1390
      }
1391
 
1392
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1393
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1394
        try {
6643 rajveer 1395
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1396
        } catch (LogisticsServiceException se) {
1397
          result.se = se;
1398
        }
3430 rajveer 1399
        return result;
412 ashish 1400
      }
1401
    }
1402
 
6643 rajveer 1403
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1404
      public storeShipmentInfo() {
1405
        super("storeShipmentInfo");
1406
      }
1407
 
1408
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1409
        return new storeShipmentInfo_args();
1410
      }
1411
 
1412
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1413
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1414
        try {
1415
          iface.storeShipmentInfo(args.update);
1416
        } catch (LogisticsServiceException se) {
1417
          result.se = se;
1418
        }
1419
        return result;
1420
      }
1421
    }
1422
 
3430 rajveer 1423
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1424
      public getDestinationCode() {
1425
        super("getDestinationCode");
1426
      }
1427
 
1428
      protected getDestinationCode_args getEmptyArgsInstance() {
1429
        return new getDestinationCode_args();
1430
      }
1431
 
1432
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1433
        getDestinationCode_result result = new getDestinationCode_result();
1434
        try {
3430 rajveer 1435
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1436
        } catch (LogisticsServiceException se) {
1437
          result.se = se;
1438
        }
3430 rajveer 1439
        return result;
730 chandransh 1440
      }
1441
    }
1442
 
3430 rajveer 1443
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1444
      public getFreeAwbCount() {
1445
        super("getFreeAwbCount");
1446
      }
1447
 
1448
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1449
        return new getFreeAwbCount_args();
1450
      }
1451
 
1452
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1453
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1454
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1455
        result.setSuccessIsSet(true);
3430 rajveer 1456
        return result;
1139 chandransh 1457
      }
1458
    }
1459
 
3430 rajveer 1460
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1461
      public getHolidays() {
1462
        super("getHolidays");
1463
      }
1464
 
1465
      protected getHolidays_args getEmptyArgsInstance() {
1466
        return new getHolidays_args();
1467
      }
1468
 
1469
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1470
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1471
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1472
        return result;
1730 ankur.sing 1473
      }
1474
    }
1475
 
4934 amit.gupta 1476
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1477
      public getEntityLogisticsEstimation() {
1478
        super("getEntityLogisticsEstimation");
1479
      }
1480
 
1481
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1482
        return new getEntityLogisticsEstimation_args();
1483
      }
1484
 
1485
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1486
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1487
        try {
1488
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1489
        } catch (LogisticsServiceException se) {
1490
          result.se = se;
1491
        }
1492
        return result;
1493
      }
1494
    }
1495
 
5527 anupam.sin 1496
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1497
      public getProviderForPickupType() {
1498
        super("getProviderForPickupType");
1499
      }
1500
 
1501
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1502
        return new getProviderForPickupType_args();
1503
      }
1504
 
1505
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1506
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1507
        result.success = iface.getProviderForPickupType(args.pickUp);
1508
        result.setSuccessIsSet(true);
1509
        return result;
1510
      }
1511
    }
1512
 
5553 rajveer 1513
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1514
      public getAllPickupStores() {
1515
        super("getAllPickupStores");
1516
      }
1517
 
1518
      protected getAllPickupStores_args getEmptyArgsInstance() {
1519
        return new getAllPickupStores_args();
1520
      }
1521
 
1522
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1523
        getAllPickupStores_result result = new getAllPickupStores_result();
1524
        result.success = iface.getAllPickupStores();
1525
        return result;
1526
      }
1527
    }
1528
 
1529
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1530
      public getPickupStore() {
1531
        super("getPickupStore");
1532
      }
1533
 
1534
      protected getPickupStore_args getEmptyArgsInstance() {
1535
        return new getPickupStore_args();
1536
      }
1537
 
1538
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1539
        getPickupStore_result result = new getPickupStore_result();
1540
        result.success = iface.getPickupStore(args.storeId);
1541
        return result;
1542
      }
1543
    }
1544
 
5719 rajveer 1545
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1546
      public getPickupStoreByHotspotId() {
1547
        super("getPickupStoreByHotspotId");
1548
      }
1549
 
1550
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1551
        return new getPickupStoreByHotspotId_args();
1552
      }
1553
 
1554
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1555
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1556
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1557
        return result;
1558
      }
1559
    }
1560
 
6322 amar.kumar 1561
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1562
      public addPincode() {
1563
        super("addPincode");
1564
      }
1565
 
1566
      protected addPincode_args getEmptyArgsInstance() {
1567
        return new addPincode_args();
1568
      }
1569
 
1570
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1571
        addPincode_result result = new addPincode_result();
6524 rajveer 1572
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1573
        return result;
1574
      }
1575
    }
1576
 
1577
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1578
      public updatePincode() {
1579
        super("updatePincode");
1580
      }
1581
 
1582
      protected updatePincode_args getEmptyArgsInstance() {
1583
        return new updatePincode_args();
1584
      }
1585
 
1586
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1587
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1588
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1589
        return result;
1590
      }
1591
    }
1592
 
412 ashish 1593
  }
1594
 
3430 rajveer 1595
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1597
 
3430 rajveer 1598
    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 1599
 
3430 rajveer 1600
    private long providerId; // required
668 chandransh 1601
 
1602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1604
      PROVIDER_ID((short)1, "providerId");
1605
 
1606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1607
 
1608
      static {
1609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1610
          byName.put(field.getFieldName(), field);
1611
        }
1612
      }
1613
 
1614
      /**
1615
       * Find the _Fields constant that matches fieldId, or null if its not found.
1616
       */
1617
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1618
        switch(fieldId) {
1619
          case 1: // PROVIDER_ID
1620
            return PROVIDER_ID;
1621
          default:
1622
            return null;
1623
        }
668 chandransh 1624
      }
1625
 
1626
      /**
1627
       * Find the _Fields constant that matches fieldId, throwing an exception
1628
       * if it is not found.
1629
       */
1630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1631
        _Fields fields = findByThriftId(fieldId);
1632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1633
        return fields;
1634
      }
1635
 
1636
      /**
1637
       * Find the _Fields constant that matches name, or null if its not found.
1638
       */
1639
      public static _Fields findByName(String name) {
1640
        return byName.get(name);
1641
      }
1642
 
1643
      private final short _thriftId;
1644
      private final String _fieldName;
1645
 
1646
      _Fields(short thriftId, String fieldName) {
1647
        _thriftId = thriftId;
1648
        _fieldName = fieldName;
1649
      }
1650
 
1651
      public short getThriftFieldId() {
1652
        return _thriftId;
1653
      }
1654
 
1655
      public String getFieldName() {
1656
        return _fieldName;
1657
      }
1658
    }
1659
 
1660
    // isset id assignments
1661
    private static final int __PROVIDERID_ISSET_ID = 0;
1662
    private BitSet __isset_bit_vector = new BitSet(1);
1663
 
3430 rajveer 1664
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1665
    static {
3430 rajveer 1666
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1667
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1668
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1669
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1670
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1671
    }
1672
 
1673
    public getProvider_args() {
1674
    }
1675
 
1676
    public getProvider_args(
1677
      long providerId)
1678
    {
1679
      this();
1680
      this.providerId = providerId;
1681
      setProviderIdIsSet(true);
1682
    }
1683
 
1684
    /**
1685
     * Performs a deep copy on <i>other</i>.
1686
     */
1687
    public getProvider_args(getProvider_args other) {
1688
      __isset_bit_vector.clear();
1689
      __isset_bit_vector.or(other.__isset_bit_vector);
1690
      this.providerId = other.providerId;
1691
    }
1692
 
1693
    public getProvider_args deepCopy() {
1694
      return new getProvider_args(this);
1695
    }
1696
 
3430 rajveer 1697
    @Override
1698
    public void clear() {
1699
      setProviderIdIsSet(false);
1700
      this.providerId = 0;
668 chandransh 1701
    }
1702
 
1703
    public long getProviderId() {
1704
      return this.providerId;
1705
    }
1706
 
3430 rajveer 1707
    public void setProviderId(long providerId) {
668 chandransh 1708
      this.providerId = providerId;
1709
      setProviderIdIsSet(true);
1710
    }
1711
 
1712
    public void unsetProviderId() {
1713
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1714
    }
1715
 
3430 rajveer 1716
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1717
    public boolean isSetProviderId() {
1718
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1719
    }
1720
 
1721
    public void setProviderIdIsSet(boolean value) {
1722
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1723
    }
1724
 
1725
    public void setFieldValue(_Fields field, Object value) {
1726
      switch (field) {
1727
      case PROVIDER_ID:
1728
        if (value == null) {
1729
          unsetProviderId();
1730
        } else {
1731
          setProviderId((Long)value);
1732
        }
1733
        break;
1734
 
1735
      }
1736
    }
1737
 
1738
    public Object getFieldValue(_Fields field) {
1739
      switch (field) {
1740
      case PROVIDER_ID:
3430 rajveer 1741
        return Long.valueOf(getProviderId());
668 chandransh 1742
 
1743
      }
1744
      throw new IllegalStateException();
1745
    }
1746
 
3430 rajveer 1747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1748
    public boolean isSet(_Fields field) {
1749
      if (field == null) {
1750
        throw new IllegalArgumentException();
1751
      }
668 chandransh 1752
 
1753
      switch (field) {
1754
      case PROVIDER_ID:
1755
        return isSetProviderId();
1756
      }
1757
      throw new IllegalStateException();
1758
    }
1759
 
1760
    @Override
1761
    public boolean equals(Object that) {
1762
      if (that == null)
1763
        return false;
1764
      if (that instanceof getProvider_args)
1765
        return this.equals((getProvider_args)that);
1766
      return false;
1767
    }
1768
 
1769
    public boolean equals(getProvider_args that) {
1770
      if (that == null)
1771
        return false;
1772
 
1773
      boolean this_present_providerId = true;
1774
      boolean that_present_providerId = true;
1775
      if (this_present_providerId || that_present_providerId) {
1776
        if (!(this_present_providerId && that_present_providerId))
1777
          return false;
1778
        if (this.providerId != that.providerId)
1779
          return false;
1780
      }
1781
 
1782
      return true;
1783
    }
1784
 
1785
    @Override
1786
    public int hashCode() {
1787
      return 0;
1788
    }
1789
 
1790
    public int compareTo(getProvider_args other) {
1791
      if (!getClass().equals(other.getClass())) {
1792
        return getClass().getName().compareTo(other.getClass().getName());
1793
      }
1794
 
1795
      int lastComparison = 0;
1796
      getProvider_args typedOther = (getProvider_args)other;
1797
 
3430 rajveer 1798
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 1799
      if (lastComparison != 0) {
1800
        return lastComparison;
1801
      }
3430 rajveer 1802
      if (isSetProviderId()) {
1803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
1804
        if (lastComparison != 0) {
1805
          return lastComparison;
1806
        }
668 chandransh 1807
      }
1808
      return 0;
1809
    }
1810
 
3430 rajveer 1811
    public _Fields fieldForId(int fieldId) {
1812
      return _Fields.findByThriftId(fieldId);
1813
    }
1814
 
1815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1816
      org.apache.thrift.protocol.TField field;
668 chandransh 1817
      iprot.readStructBegin();
1818
      while (true)
1819
      {
1820
        field = iprot.readFieldBegin();
3430 rajveer 1821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1822
          break;
1823
        }
3430 rajveer 1824
        switch (field.id) {
1825
          case 1: // PROVIDER_ID
1826
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1827
              this.providerId = iprot.readI64();
1828
              setProviderIdIsSet(true);
1829
            } else { 
1830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1831
            }
1832
            break;
1833
          default:
1834
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1835
        }
3430 rajveer 1836
        iprot.readFieldEnd();
668 chandransh 1837
      }
1838
      iprot.readStructEnd();
1839
      validate();
1840
    }
1841
 
3430 rajveer 1842
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1843
      validate();
1844
 
1845
      oprot.writeStructBegin(STRUCT_DESC);
1846
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1847
      oprot.writeI64(this.providerId);
1848
      oprot.writeFieldEnd();
1849
      oprot.writeFieldStop();
1850
      oprot.writeStructEnd();
1851
    }
1852
 
1853
    @Override
1854
    public String toString() {
1855
      StringBuilder sb = new StringBuilder("getProvider_args(");
1856
      boolean first = true;
1857
 
1858
      sb.append("providerId:");
1859
      sb.append(this.providerId);
1860
      first = false;
1861
      sb.append(")");
1862
      return sb.toString();
1863
    }
1864
 
3430 rajveer 1865
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1866
      // check for required fields
1867
    }
1868
 
3430 rajveer 1869
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1870
      try {
1871
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1872
      } catch (org.apache.thrift.TException te) {
1873
        throw new java.io.IOException(te);
1874
      }
1875
    }
1876
 
1877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1878
      try {
1879
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1880
      } catch (org.apache.thrift.TException te) {
1881
        throw new java.io.IOException(te);
1882
      }
1883
    }
1884
 
668 chandransh 1885
  }
1886
 
3430 rajveer 1887
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1888
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 1889
 
3430 rajveer 1890
    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);
1891
    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 1892
 
3430 rajveer 1893
    private Provider success; // required
1894
    private LogisticsServiceException lse; // required
668 chandransh 1895
 
1896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1898
      SUCCESS((short)0, "success"),
1899
      LSE((short)1, "lse");
1900
 
1901
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1902
 
1903
      static {
1904
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1905
          byName.put(field.getFieldName(), field);
1906
        }
1907
      }
1908
 
1909
      /**
1910
       * Find the _Fields constant that matches fieldId, or null if its not found.
1911
       */
1912
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1913
        switch(fieldId) {
1914
          case 0: // SUCCESS
1915
            return SUCCESS;
1916
          case 1: // LSE
1917
            return LSE;
1918
          default:
1919
            return null;
1920
        }
668 chandransh 1921
      }
1922
 
1923
      /**
1924
       * Find the _Fields constant that matches fieldId, throwing an exception
1925
       * if it is not found.
1926
       */
1927
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1928
        _Fields fields = findByThriftId(fieldId);
1929
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1930
        return fields;
1931
      }
1932
 
1933
      /**
1934
       * Find the _Fields constant that matches name, or null if its not found.
1935
       */
1936
      public static _Fields findByName(String name) {
1937
        return byName.get(name);
1938
      }
1939
 
1940
      private final short _thriftId;
1941
      private final String _fieldName;
1942
 
1943
      _Fields(short thriftId, String fieldName) {
1944
        _thriftId = thriftId;
1945
        _fieldName = fieldName;
1946
      }
1947
 
1948
      public short getThriftFieldId() {
1949
        return _thriftId;
1950
      }
1951
 
1952
      public String getFieldName() {
1953
        return _fieldName;
1954
      }
1955
    }
1956
 
1957
    // isset id assignments
1958
 
3430 rajveer 1959
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1960
    static {
3430 rajveer 1961
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1962
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1963
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
1964
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1965
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 1968
    }
1969
 
1970
    public getProvider_result() {
1971
    }
1972
 
1973
    public getProvider_result(
1974
      Provider success,
1975
      LogisticsServiceException lse)
1976
    {
1977
      this();
1978
      this.success = success;
1979
      this.lse = lse;
1980
    }
1981
 
1982
    /**
1983
     * Performs a deep copy on <i>other</i>.
1984
     */
1985
    public getProvider_result(getProvider_result other) {
1986
      if (other.isSetSuccess()) {
1987
        this.success = new Provider(other.success);
1988
      }
1989
      if (other.isSetLse()) {
1990
        this.lse = new LogisticsServiceException(other.lse);
1991
      }
1992
    }
1993
 
1994
    public getProvider_result deepCopy() {
1995
      return new getProvider_result(this);
1996
    }
1997
 
3430 rajveer 1998
    @Override
1999
    public void clear() {
2000
      this.success = null;
2001
      this.lse = null;
668 chandransh 2002
    }
2003
 
2004
    public Provider getSuccess() {
2005
      return this.success;
2006
    }
2007
 
3430 rajveer 2008
    public void setSuccess(Provider success) {
668 chandransh 2009
      this.success = success;
2010
    }
2011
 
2012
    public void unsetSuccess() {
2013
      this.success = null;
2014
    }
2015
 
3430 rajveer 2016
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2017
    public boolean isSetSuccess() {
2018
      return this.success != null;
2019
    }
2020
 
2021
    public void setSuccessIsSet(boolean value) {
2022
      if (!value) {
2023
        this.success = null;
2024
      }
2025
    }
2026
 
2027
    public LogisticsServiceException getLse() {
2028
      return this.lse;
2029
    }
2030
 
3430 rajveer 2031
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2032
      this.lse = lse;
2033
    }
2034
 
2035
    public void unsetLse() {
2036
      this.lse = null;
2037
    }
2038
 
3430 rajveer 2039
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2040
    public boolean isSetLse() {
2041
      return this.lse != null;
2042
    }
2043
 
2044
    public void setLseIsSet(boolean value) {
2045
      if (!value) {
2046
        this.lse = null;
2047
      }
2048
    }
2049
 
2050
    public void setFieldValue(_Fields field, Object value) {
2051
      switch (field) {
2052
      case SUCCESS:
2053
        if (value == null) {
2054
          unsetSuccess();
2055
        } else {
2056
          setSuccess((Provider)value);
2057
        }
2058
        break;
2059
 
2060
      case LSE:
2061
        if (value == null) {
2062
          unsetLse();
2063
        } else {
2064
          setLse((LogisticsServiceException)value);
2065
        }
2066
        break;
2067
 
2068
      }
2069
    }
2070
 
2071
    public Object getFieldValue(_Fields field) {
2072
      switch (field) {
2073
      case SUCCESS:
2074
        return getSuccess();
2075
 
2076
      case LSE:
2077
        return getLse();
2078
 
2079
      }
2080
      throw new IllegalStateException();
2081
    }
2082
 
3430 rajveer 2083
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2084
    public boolean isSet(_Fields field) {
2085
      if (field == null) {
2086
        throw new IllegalArgumentException();
2087
      }
668 chandransh 2088
 
2089
      switch (field) {
2090
      case SUCCESS:
2091
        return isSetSuccess();
2092
      case LSE:
2093
        return isSetLse();
2094
      }
2095
      throw new IllegalStateException();
2096
    }
2097
 
2098
    @Override
2099
    public boolean equals(Object that) {
2100
      if (that == null)
2101
        return false;
2102
      if (that instanceof getProvider_result)
2103
        return this.equals((getProvider_result)that);
2104
      return false;
2105
    }
2106
 
2107
    public boolean equals(getProvider_result that) {
2108
      if (that == null)
2109
        return false;
2110
 
2111
      boolean this_present_success = true && this.isSetSuccess();
2112
      boolean that_present_success = true && that.isSetSuccess();
2113
      if (this_present_success || that_present_success) {
2114
        if (!(this_present_success && that_present_success))
2115
          return false;
2116
        if (!this.success.equals(that.success))
2117
          return false;
2118
      }
2119
 
2120
      boolean this_present_lse = true && this.isSetLse();
2121
      boolean that_present_lse = true && that.isSetLse();
2122
      if (this_present_lse || that_present_lse) {
2123
        if (!(this_present_lse && that_present_lse))
2124
          return false;
2125
        if (!this.lse.equals(that.lse))
2126
          return false;
2127
      }
2128
 
2129
      return true;
2130
    }
2131
 
2132
    @Override
2133
    public int hashCode() {
2134
      return 0;
2135
    }
2136
 
3430 rajveer 2137
    public int compareTo(getProvider_result other) {
2138
      if (!getClass().equals(other.getClass())) {
2139
        return getClass().getName().compareTo(other.getClass().getName());
2140
      }
2141
 
2142
      int lastComparison = 0;
2143
      getProvider_result typedOther = (getProvider_result)other;
2144
 
2145
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2146
      if (lastComparison != 0) {
2147
        return lastComparison;
2148
      }
2149
      if (isSetSuccess()) {
2150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2151
        if (lastComparison != 0) {
2152
          return lastComparison;
2153
        }
2154
      }
2155
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2156
      if (lastComparison != 0) {
2157
        return lastComparison;
2158
      }
2159
      if (isSetLse()) {
2160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2161
        if (lastComparison != 0) {
2162
          return lastComparison;
2163
        }
2164
      }
2165
      return 0;
2166
    }
2167
 
2168
    public _Fields fieldForId(int fieldId) {
2169
      return _Fields.findByThriftId(fieldId);
2170
    }
2171
 
2172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2173
      org.apache.thrift.protocol.TField field;
668 chandransh 2174
      iprot.readStructBegin();
2175
      while (true)
2176
      {
2177
        field = iprot.readFieldBegin();
3430 rajveer 2178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2179
          break;
2180
        }
3430 rajveer 2181
        switch (field.id) {
2182
          case 0: // SUCCESS
2183
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2184
              this.success = new Provider();
2185
              this.success.read(iprot);
2186
            } else { 
2187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2188
            }
2189
            break;
2190
          case 1: // LSE
2191
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2192
              this.lse = new LogisticsServiceException();
2193
              this.lse.read(iprot);
2194
            } else { 
2195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2196
            }
2197
            break;
2198
          default:
2199
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2200
        }
3430 rajveer 2201
        iprot.readFieldEnd();
668 chandransh 2202
      }
2203
      iprot.readStructEnd();
2204
      validate();
2205
    }
2206
 
3430 rajveer 2207
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2208
      oprot.writeStructBegin(STRUCT_DESC);
2209
 
2210
      if (this.isSetSuccess()) {
2211
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2212
        this.success.write(oprot);
2213
        oprot.writeFieldEnd();
2214
      } else if (this.isSetLse()) {
2215
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2216
        this.lse.write(oprot);
2217
        oprot.writeFieldEnd();
2218
      }
2219
      oprot.writeFieldStop();
2220
      oprot.writeStructEnd();
2221
    }
2222
 
2223
    @Override
2224
    public String toString() {
2225
      StringBuilder sb = new StringBuilder("getProvider_result(");
2226
      boolean first = true;
2227
 
2228
      sb.append("success:");
2229
      if (this.success == null) {
2230
        sb.append("null");
2231
      } else {
2232
        sb.append(this.success);
2233
      }
2234
      first = false;
2235
      if (!first) sb.append(", ");
2236
      sb.append("lse:");
2237
      if (this.lse == null) {
2238
        sb.append("null");
2239
      } else {
2240
        sb.append(this.lse);
2241
      }
2242
      first = false;
2243
      sb.append(")");
2244
      return sb.toString();
2245
    }
2246
 
3430 rajveer 2247
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2248
      // check for required fields
2249
    }
2250
 
3430 rajveer 2251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2252
      try {
2253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2254
      } catch (org.apache.thrift.TException te) {
2255
        throw new java.io.IOException(te);
2256
      }
2257
    }
2258
 
2259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2260
      try {
2261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2262
      } catch (org.apache.thrift.TException te) {
2263
        throw new java.io.IOException(te);
2264
      }
2265
    }
2266
 
668 chandransh 2267
  }
2268
 
3430 rajveer 2269
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2270
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2271
 
2272
 
2273
 
2274
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2275
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2276
;
2277
 
2278
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2279
 
2280
      static {
2281
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2282
          byName.put(field.getFieldName(), field);
2283
        }
2284
      }
2285
 
2286
      /**
2287
       * Find the _Fields constant that matches fieldId, or null if its not found.
2288
       */
2289
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2290
        switch(fieldId) {
2291
          default:
2292
            return null;
2293
        }
674 chandransh 2294
      }
2295
 
2296
      /**
2297
       * Find the _Fields constant that matches fieldId, throwing an exception
2298
       * if it is not found.
2299
       */
2300
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2301
        _Fields fields = findByThriftId(fieldId);
2302
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2303
        return fields;
2304
      }
2305
 
2306
      /**
2307
       * Find the _Fields constant that matches name, or null if its not found.
2308
       */
2309
      public static _Fields findByName(String name) {
2310
        return byName.get(name);
2311
      }
2312
 
2313
      private final short _thriftId;
2314
      private final String _fieldName;
2315
 
2316
      _Fields(short thriftId, String fieldName) {
2317
        _thriftId = thriftId;
2318
        _fieldName = fieldName;
2319
      }
2320
 
2321
      public short getThriftFieldId() {
2322
        return _thriftId;
2323
      }
2324
 
2325
      public String getFieldName() {
2326
        return _fieldName;
2327
      }
2328
    }
3430 rajveer 2329
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2330
    static {
3430 rajveer 2331
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2332
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2333
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2334
    }
2335
 
2336
    public getAllProviders_args() {
2337
    }
2338
 
2339
    /**
2340
     * Performs a deep copy on <i>other</i>.
2341
     */
2342
    public getAllProviders_args(getAllProviders_args other) {
2343
    }
2344
 
2345
    public getAllProviders_args deepCopy() {
2346
      return new getAllProviders_args(this);
2347
    }
2348
 
3430 rajveer 2349
    @Override
2350
    public void clear() {
674 chandransh 2351
    }
2352
 
2353
    public void setFieldValue(_Fields field, Object value) {
2354
      switch (field) {
2355
      }
2356
    }
2357
 
2358
    public Object getFieldValue(_Fields field) {
2359
      switch (field) {
2360
      }
2361
      throw new IllegalStateException();
2362
    }
2363
 
3430 rajveer 2364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2365
    public boolean isSet(_Fields field) {
2366
      if (field == null) {
2367
        throw new IllegalArgumentException();
2368
      }
674 chandransh 2369
 
2370
      switch (field) {
2371
      }
2372
      throw new IllegalStateException();
2373
    }
2374
 
2375
    @Override
2376
    public boolean equals(Object that) {
2377
      if (that == null)
2378
        return false;
2379
      if (that instanceof getAllProviders_args)
2380
        return this.equals((getAllProviders_args)that);
2381
      return false;
2382
    }
2383
 
2384
    public boolean equals(getAllProviders_args that) {
2385
      if (that == null)
2386
        return false;
2387
 
2388
      return true;
2389
    }
2390
 
2391
    @Override
2392
    public int hashCode() {
2393
      return 0;
2394
    }
2395
 
2396
    public int compareTo(getAllProviders_args other) {
2397
      if (!getClass().equals(other.getClass())) {
2398
        return getClass().getName().compareTo(other.getClass().getName());
2399
      }
2400
 
2401
      int lastComparison = 0;
2402
      getAllProviders_args typedOther = (getAllProviders_args)other;
2403
 
2404
      return 0;
2405
    }
2406
 
3430 rajveer 2407
    public _Fields fieldForId(int fieldId) {
2408
      return _Fields.findByThriftId(fieldId);
2409
    }
2410
 
2411
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2412
      org.apache.thrift.protocol.TField field;
674 chandransh 2413
      iprot.readStructBegin();
2414
      while (true)
2415
      {
2416
        field = iprot.readFieldBegin();
3430 rajveer 2417
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2418
          break;
2419
        }
3430 rajveer 2420
        switch (field.id) {
2421
          default:
2422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2423
        }
3430 rajveer 2424
        iprot.readFieldEnd();
674 chandransh 2425
      }
2426
      iprot.readStructEnd();
2427
      validate();
2428
    }
2429
 
3430 rajveer 2430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2431
      validate();
2432
 
2433
      oprot.writeStructBegin(STRUCT_DESC);
2434
      oprot.writeFieldStop();
2435
      oprot.writeStructEnd();
2436
    }
2437
 
2438
    @Override
2439
    public String toString() {
2440
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2441
      boolean first = true;
2442
 
2443
      sb.append(")");
2444
      return sb.toString();
2445
    }
2446
 
3430 rajveer 2447
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2448
      // check for required fields
2449
    }
2450
 
3430 rajveer 2451
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2452
      try {
2453
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2454
      } catch (org.apache.thrift.TException te) {
2455
        throw new java.io.IOException(te);
2456
      }
2457
    }
2458
 
2459
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2460
      try {
2461
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2462
      } catch (org.apache.thrift.TException te) {
2463
        throw new java.io.IOException(te);
2464
      }
2465
    }
2466
 
674 chandransh 2467
  }
2468
 
3430 rajveer 2469
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2470
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2471
 
3430 rajveer 2472
    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);
2473
    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 2474
 
3430 rajveer 2475
    private List<Provider> success; // required
2476
    private LogisticsServiceException lse; // required
674 chandransh 2477
 
2478
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2479
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2480
      SUCCESS((short)0, "success"),
2481
      LSE((short)1, "lse");
2482
 
2483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2484
 
2485
      static {
2486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2487
          byName.put(field.getFieldName(), field);
2488
        }
2489
      }
2490
 
2491
      /**
2492
       * Find the _Fields constant that matches fieldId, or null if its not found.
2493
       */
2494
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2495
        switch(fieldId) {
2496
          case 0: // SUCCESS
2497
            return SUCCESS;
2498
          case 1: // LSE
2499
            return LSE;
2500
          default:
2501
            return null;
2502
        }
674 chandransh 2503
      }
2504
 
2505
      /**
2506
       * Find the _Fields constant that matches fieldId, throwing an exception
2507
       * if it is not found.
2508
       */
2509
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2510
        _Fields fields = findByThriftId(fieldId);
2511
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2512
        return fields;
2513
      }
2514
 
2515
      /**
2516
       * Find the _Fields constant that matches name, or null if its not found.
2517
       */
2518
      public static _Fields findByName(String name) {
2519
        return byName.get(name);
2520
      }
2521
 
2522
      private final short _thriftId;
2523
      private final String _fieldName;
2524
 
2525
      _Fields(short thriftId, String fieldName) {
2526
        _thriftId = thriftId;
2527
        _fieldName = fieldName;
2528
      }
2529
 
2530
      public short getThriftFieldId() {
2531
        return _thriftId;
2532
      }
2533
 
2534
      public String getFieldName() {
2535
        return _fieldName;
2536
      }
2537
    }
2538
 
2539
    // isset id assignments
2540
 
3430 rajveer 2541
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2542
    static {
3430 rajveer 2543
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2544
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2545
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2546
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2547
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2548
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2549
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2550
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2551
    }
2552
 
2553
    public getAllProviders_result() {
2554
    }
2555
 
2556
    public getAllProviders_result(
2557
      List<Provider> success,
2558
      LogisticsServiceException lse)
2559
    {
2560
      this();
2561
      this.success = success;
2562
      this.lse = lse;
2563
    }
2564
 
2565
    /**
2566
     * Performs a deep copy on <i>other</i>.
2567
     */
2568
    public getAllProviders_result(getAllProviders_result other) {
2569
      if (other.isSetSuccess()) {
2570
        List<Provider> __this__success = new ArrayList<Provider>();
2571
        for (Provider other_element : other.success) {
2572
          __this__success.add(new Provider(other_element));
2573
        }
2574
        this.success = __this__success;
2575
      }
2576
      if (other.isSetLse()) {
2577
        this.lse = new LogisticsServiceException(other.lse);
2578
      }
2579
    }
2580
 
2581
    public getAllProviders_result deepCopy() {
2582
      return new getAllProviders_result(this);
2583
    }
2584
 
3430 rajveer 2585
    @Override
2586
    public void clear() {
2587
      this.success = null;
2588
      this.lse = null;
674 chandransh 2589
    }
2590
 
2591
    public int getSuccessSize() {
2592
      return (this.success == null) ? 0 : this.success.size();
2593
    }
2594
 
2595
    public java.util.Iterator<Provider> getSuccessIterator() {
2596
      return (this.success == null) ? null : this.success.iterator();
2597
    }
2598
 
2599
    public void addToSuccess(Provider elem) {
2600
      if (this.success == null) {
2601
        this.success = new ArrayList<Provider>();
2602
      }
2603
      this.success.add(elem);
2604
    }
2605
 
2606
    public List<Provider> getSuccess() {
2607
      return this.success;
2608
    }
2609
 
3430 rajveer 2610
    public void setSuccess(List<Provider> success) {
674 chandransh 2611
      this.success = success;
2612
    }
2613
 
2614
    public void unsetSuccess() {
2615
      this.success = null;
2616
    }
2617
 
3430 rajveer 2618
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2619
    public boolean isSetSuccess() {
2620
      return this.success != null;
2621
    }
2622
 
2623
    public void setSuccessIsSet(boolean value) {
2624
      if (!value) {
2625
        this.success = null;
2626
      }
2627
    }
2628
 
2629
    public LogisticsServiceException getLse() {
2630
      return this.lse;
2631
    }
2632
 
3430 rajveer 2633
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2634
      this.lse = lse;
2635
    }
2636
 
2637
    public void unsetLse() {
2638
      this.lse = null;
2639
    }
2640
 
3430 rajveer 2641
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2642
    public boolean isSetLse() {
2643
      return this.lse != null;
2644
    }
2645
 
2646
    public void setLseIsSet(boolean value) {
2647
      if (!value) {
2648
        this.lse = null;
2649
      }
2650
    }
2651
 
2652
    public void setFieldValue(_Fields field, Object value) {
2653
      switch (field) {
2654
      case SUCCESS:
2655
        if (value == null) {
2656
          unsetSuccess();
2657
        } else {
2658
          setSuccess((List<Provider>)value);
2659
        }
2660
        break;
2661
 
2662
      case LSE:
2663
        if (value == null) {
2664
          unsetLse();
2665
        } else {
2666
          setLse((LogisticsServiceException)value);
2667
        }
2668
        break;
2669
 
2670
      }
2671
    }
2672
 
2673
    public Object getFieldValue(_Fields field) {
2674
      switch (field) {
2675
      case SUCCESS:
2676
        return getSuccess();
2677
 
2678
      case LSE:
2679
        return getLse();
2680
 
2681
      }
2682
      throw new IllegalStateException();
2683
    }
2684
 
3430 rajveer 2685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2686
    public boolean isSet(_Fields field) {
2687
      if (field == null) {
2688
        throw new IllegalArgumentException();
2689
      }
674 chandransh 2690
 
2691
      switch (field) {
2692
      case SUCCESS:
2693
        return isSetSuccess();
2694
      case LSE:
2695
        return isSetLse();
2696
      }
2697
      throw new IllegalStateException();
2698
    }
2699
 
2700
    @Override
2701
    public boolean equals(Object that) {
2702
      if (that == null)
2703
        return false;
2704
      if (that instanceof getAllProviders_result)
2705
        return this.equals((getAllProviders_result)that);
2706
      return false;
2707
    }
2708
 
2709
    public boolean equals(getAllProviders_result that) {
2710
      if (that == null)
2711
        return false;
2712
 
2713
      boolean this_present_success = true && this.isSetSuccess();
2714
      boolean that_present_success = true && that.isSetSuccess();
2715
      if (this_present_success || that_present_success) {
2716
        if (!(this_present_success && that_present_success))
2717
          return false;
2718
        if (!this.success.equals(that.success))
2719
          return false;
2720
      }
2721
 
2722
      boolean this_present_lse = true && this.isSetLse();
2723
      boolean that_present_lse = true && that.isSetLse();
2724
      if (this_present_lse || that_present_lse) {
2725
        if (!(this_present_lse && that_present_lse))
2726
          return false;
2727
        if (!this.lse.equals(that.lse))
2728
          return false;
2729
      }
2730
 
2731
      return true;
2732
    }
2733
 
2734
    @Override
2735
    public int hashCode() {
2736
      return 0;
2737
    }
2738
 
3430 rajveer 2739
    public int compareTo(getAllProviders_result other) {
2740
      if (!getClass().equals(other.getClass())) {
2741
        return getClass().getName().compareTo(other.getClass().getName());
2742
      }
2743
 
2744
      int lastComparison = 0;
2745
      getAllProviders_result typedOther = (getAllProviders_result)other;
2746
 
2747
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2748
      if (lastComparison != 0) {
2749
        return lastComparison;
2750
      }
2751
      if (isSetSuccess()) {
2752
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2753
        if (lastComparison != 0) {
2754
          return lastComparison;
2755
        }
2756
      }
2757
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2758
      if (lastComparison != 0) {
2759
        return lastComparison;
2760
      }
2761
      if (isSetLse()) {
2762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2763
        if (lastComparison != 0) {
2764
          return lastComparison;
2765
        }
2766
      }
2767
      return 0;
2768
    }
2769
 
2770
    public _Fields fieldForId(int fieldId) {
2771
      return _Fields.findByThriftId(fieldId);
2772
    }
2773
 
2774
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2775
      org.apache.thrift.protocol.TField field;
674 chandransh 2776
      iprot.readStructBegin();
2777
      while (true)
2778
      {
2779
        field = iprot.readFieldBegin();
3430 rajveer 2780
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2781
          break;
2782
        }
3430 rajveer 2783
        switch (field.id) {
2784
          case 0: // SUCCESS
2785
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2786
              {
2787
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
2788
                this.success = new ArrayList<Provider>(_list5.size);
2789
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 2790
                {
3430 rajveer 2791
                  Provider _elem7; // required
2792
                  _elem7 = new Provider();
2793
                  _elem7.read(iprot);
2794
                  this.success.add(_elem7);
674 chandransh 2795
                }
3430 rajveer 2796
                iprot.readListEnd();
674 chandransh 2797
              }
3430 rajveer 2798
            } else { 
2799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2800
            }
2801
            break;
2802
          case 1: // LSE
2803
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2804
              this.lse = new LogisticsServiceException();
2805
              this.lse.read(iprot);
2806
            } else { 
2807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2808
            }
2809
            break;
2810
          default:
2811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2812
        }
3430 rajveer 2813
        iprot.readFieldEnd();
674 chandransh 2814
      }
2815
      iprot.readStructEnd();
2816
      validate();
2817
    }
2818
 
3430 rajveer 2819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2820
      oprot.writeStructBegin(STRUCT_DESC);
2821
 
2822
      if (this.isSetSuccess()) {
2823
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2824
        {
3430 rajveer 2825
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 2826
          for (Provider _iter8 : this.success)
674 chandransh 2827
          {
3044 chandransh 2828
            _iter8.write(oprot);
674 chandransh 2829
          }
2830
          oprot.writeListEnd();
2831
        }
2832
        oprot.writeFieldEnd();
2833
      } else if (this.isSetLse()) {
2834
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2835
        this.lse.write(oprot);
2836
        oprot.writeFieldEnd();
2837
      }
2838
      oprot.writeFieldStop();
2839
      oprot.writeStructEnd();
2840
    }
2841
 
2842
    @Override
2843
    public String toString() {
2844
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
2845
      boolean first = true;
2846
 
2847
      sb.append("success:");
2848
      if (this.success == null) {
2849
        sb.append("null");
2850
      } else {
2851
        sb.append(this.success);
2852
      }
2853
      first = false;
2854
      if (!first) sb.append(", ");
2855
      sb.append("lse:");
2856
      if (this.lse == null) {
2857
        sb.append("null");
2858
      } else {
2859
        sb.append(this.lse);
2860
      }
2861
      first = false;
2862
      sb.append(")");
2863
      return sb.toString();
2864
    }
2865
 
3430 rajveer 2866
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2867
      // check for required fields
2868
    }
2869
 
3430 rajveer 2870
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2871
      try {
2872
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2873
      } catch (org.apache.thrift.TException te) {
2874
        throw new java.io.IOException(te);
2875
      }
2876
    }
2877
 
2878
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2879
      try {
2880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2881
      } catch (org.apache.thrift.TException te) {
2882
        throw new java.io.IOException(te);
2883
      }
2884
    }
2885
 
674 chandransh 2886
  }
2887
 
3430 rajveer 2888
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
2889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 2890
 
3430 rajveer 2891
    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);
2892
    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 2893
    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 2894
 
3430 rajveer 2895
    private long itemId; // required
2896
    private String destination_pin; // required
4630 mandeep.dh 2897
    private DeliveryType type; // required
471 rajveer 2898
 
2899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2901
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 2902
      DESTINATION_PIN((short)2, "destination_pin"),
2903
      /**
2904
       * 
2905
       * @see DeliveryType
2906
       */
2907
      TYPE((short)3, "type");
471 rajveer 2908
 
2909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2910
 
2911
      static {
2912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2913
          byName.put(field.getFieldName(), field);
2914
        }
2915
      }
2916
 
2917
      /**
2918
       * Find the _Fields constant that matches fieldId, or null if its not found.
2919
       */
2920
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2921
        switch(fieldId) {
2922
          case 1: // ITEM_ID
2923
            return ITEM_ID;
2924
          case 2: // DESTINATION_PIN
2925
            return DESTINATION_PIN;
4630 mandeep.dh 2926
          case 3: // TYPE
2927
            return TYPE;
3430 rajveer 2928
          default:
2929
            return null;
2930
        }
471 rajveer 2931
      }
2932
 
2933
      /**
2934
       * Find the _Fields constant that matches fieldId, throwing an exception
2935
       * if it is not found.
2936
       */
2937
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2938
        _Fields fields = findByThriftId(fieldId);
2939
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2940
        return fields;
2941
      }
2942
 
2943
      /**
2944
       * Find the _Fields constant that matches name, or null if its not found.
2945
       */
2946
      public static _Fields findByName(String name) {
2947
        return byName.get(name);
2948
      }
2949
 
2950
      private final short _thriftId;
2951
      private final String _fieldName;
2952
 
2953
      _Fields(short thriftId, String fieldName) {
2954
        _thriftId = thriftId;
2955
        _fieldName = fieldName;
2956
      }
2957
 
2958
      public short getThriftFieldId() {
2959
        return _thriftId;
2960
      }
2961
 
2962
      public String getFieldName() {
2963
        return _fieldName;
2964
      }
2965
    }
2966
 
2967
    // isset id assignments
2968
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 2969
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 2970
 
3430 rajveer 2971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 2972
    static {
3430 rajveer 2973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2974
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2975
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2976
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2977
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 2978
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2979
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 2980
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2981
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 2982
    }
2983
 
2984
    public getLogisticsEstimation_args() {
2985
    }
2986
 
2987
    public getLogisticsEstimation_args(
2988
      long itemId,
4630 mandeep.dh 2989
      String destination_pin,
2990
      DeliveryType type)
471 rajveer 2991
    {
2992
      this();
2993
      this.itemId = itemId;
2994
      setItemIdIsSet(true);
2995
      this.destination_pin = destination_pin;
4630 mandeep.dh 2996
      this.type = type;
471 rajveer 2997
    }
2998
 
2999
    /**
3000
     * Performs a deep copy on <i>other</i>.
3001
     */
3002
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3003
      __isset_bit_vector.clear();
3004
      __isset_bit_vector.or(other.__isset_bit_vector);
3005
      this.itemId = other.itemId;
3006
      if (other.isSetDestination_pin()) {
3007
        this.destination_pin = other.destination_pin;
3008
      }
4630 mandeep.dh 3009
      if (other.isSetType()) {
3010
        this.type = other.type;
3011
      }
471 rajveer 3012
    }
3013
 
3014
    public getLogisticsEstimation_args deepCopy() {
3015
      return new getLogisticsEstimation_args(this);
3016
    }
3017
 
3430 rajveer 3018
    @Override
3019
    public void clear() {
3020
      setItemIdIsSet(false);
3021
      this.itemId = 0;
3022
      this.destination_pin = null;
4630 mandeep.dh 3023
      this.type = null;
471 rajveer 3024
    }
3025
 
3026
    public long getItemId() {
3027
      return this.itemId;
3028
    }
3029
 
3430 rajveer 3030
    public void setItemId(long itemId) {
471 rajveer 3031
      this.itemId = itemId;
3032
      setItemIdIsSet(true);
3033
    }
3034
 
3035
    public void unsetItemId() {
3036
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3037
    }
3038
 
3430 rajveer 3039
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3040
    public boolean isSetItemId() {
3041
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3042
    }
3043
 
3044
    public void setItemIdIsSet(boolean value) {
3045
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3046
    }
3047
 
3048
    public String getDestination_pin() {
3049
      return this.destination_pin;
3050
    }
3051
 
3430 rajveer 3052
    public void setDestination_pin(String destination_pin) {
471 rajveer 3053
      this.destination_pin = destination_pin;
3054
    }
3055
 
3056
    public void unsetDestination_pin() {
3057
      this.destination_pin = null;
3058
    }
3059
 
3430 rajveer 3060
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3061
    public boolean isSetDestination_pin() {
3062
      return this.destination_pin != null;
3063
    }
3064
 
3065
    public void setDestination_pinIsSet(boolean value) {
3066
      if (!value) {
3067
        this.destination_pin = null;
3068
      }
3069
    }
3070
 
4630 mandeep.dh 3071
    /**
3072
     * 
3073
     * @see DeliveryType
3074
     */
3075
    public DeliveryType getType() {
3076
      return this.type;
3077
    }
3078
 
3079
    /**
3080
     * 
3081
     * @see DeliveryType
3082
     */
3083
    public void setType(DeliveryType type) {
3084
      this.type = type;
3085
    }
3086
 
3087
    public void unsetType() {
3088
      this.type = null;
3089
    }
3090
 
3091
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3092
    public boolean isSetType() {
3093
      return this.type != null;
3094
    }
3095
 
3096
    public void setTypeIsSet(boolean value) {
3097
      if (!value) {
3098
        this.type = null;
3099
      }
3100
    }
3101
 
471 rajveer 3102
    public void setFieldValue(_Fields field, Object value) {
3103
      switch (field) {
3104
      case ITEM_ID:
3105
        if (value == null) {
3106
          unsetItemId();
3107
        } else {
3108
          setItemId((Long)value);
3109
        }
3110
        break;
3111
 
3112
      case DESTINATION_PIN:
3113
        if (value == null) {
3114
          unsetDestination_pin();
3115
        } else {
3116
          setDestination_pin((String)value);
3117
        }
3118
        break;
3119
 
4630 mandeep.dh 3120
      case TYPE:
3121
        if (value == null) {
3122
          unsetType();
3123
        } else {
3124
          setType((DeliveryType)value);
3125
        }
3126
        break;
3127
 
471 rajveer 3128
      }
3129
    }
3130
 
3131
    public Object getFieldValue(_Fields field) {
3132
      switch (field) {
3133
      case ITEM_ID:
3430 rajveer 3134
        return Long.valueOf(getItemId());
471 rajveer 3135
 
3136
      case DESTINATION_PIN:
3137
        return getDestination_pin();
3138
 
4630 mandeep.dh 3139
      case TYPE:
3140
        return getType();
3141
 
471 rajveer 3142
      }
3143
      throw new IllegalStateException();
3144
    }
3145
 
3430 rajveer 3146
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3147
    public boolean isSet(_Fields field) {
3148
      if (field == null) {
3149
        throw new IllegalArgumentException();
3150
      }
471 rajveer 3151
 
3152
      switch (field) {
3153
      case ITEM_ID:
3154
        return isSetItemId();
3155
      case DESTINATION_PIN:
3156
        return isSetDestination_pin();
4630 mandeep.dh 3157
      case TYPE:
3158
        return isSetType();
471 rajveer 3159
      }
3160
      throw new IllegalStateException();
3161
    }
3162
 
3163
    @Override
3164
    public boolean equals(Object that) {
3165
      if (that == null)
3166
        return false;
3167
      if (that instanceof getLogisticsEstimation_args)
3168
        return this.equals((getLogisticsEstimation_args)that);
3169
      return false;
3170
    }
3171
 
3172
    public boolean equals(getLogisticsEstimation_args that) {
3173
      if (that == null)
3174
        return false;
3175
 
3176
      boolean this_present_itemId = true;
3177
      boolean that_present_itemId = true;
3178
      if (this_present_itemId || that_present_itemId) {
3179
        if (!(this_present_itemId && that_present_itemId))
3180
          return false;
3181
        if (this.itemId != that.itemId)
3182
          return false;
3183
      }
3184
 
3185
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3186
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3187
      if (this_present_destination_pin || that_present_destination_pin) {
3188
        if (!(this_present_destination_pin && that_present_destination_pin))
3189
          return false;
3190
        if (!this.destination_pin.equals(that.destination_pin))
3191
          return false;
3192
      }
3193
 
4630 mandeep.dh 3194
      boolean this_present_type = true && this.isSetType();
3195
      boolean that_present_type = true && that.isSetType();
3196
      if (this_present_type || that_present_type) {
3197
        if (!(this_present_type && that_present_type))
3198
          return false;
3199
        if (!this.type.equals(that.type))
3200
          return false;
3201
      }
3202
 
471 rajveer 3203
      return true;
3204
    }
3205
 
3206
    @Override
3207
    public int hashCode() {
3208
      return 0;
3209
    }
3210
 
3211
    public int compareTo(getLogisticsEstimation_args other) {
3212
      if (!getClass().equals(other.getClass())) {
3213
        return getClass().getName().compareTo(other.getClass().getName());
3214
      }
3215
 
3216
      int lastComparison = 0;
3217
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3218
 
3430 rajveer 3219
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3220
      if (lastComparison != 0) {
3221
        return lastComparison;
3222
      }
3430 rajveer 3223
      if (isSetItemId()) {
3224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3225
        if (lastComparison != 0) {
3226
          return lastComparison;
3227
        }
471 rajveer 3228
      }
3430 rajveer 3229
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3230
      if (lastComparison != 0) {
3231
        return lastComparison;
3232
      }
3430 rajveer 3233
      if (isSetDestination_pin()) {
3234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3235
        if (lastComparison != 0) {
3236
          return lastComparison;
3237
        }
471 rajveer 3238
      }
4630 mandeep.dh 3239
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3240
      if (lastComparison != 0) {
3241
        return lastComparison;
3242
      }
3243
      if (isSetType()) {
3244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3245
        if (lastComparison != 0) {
3246
          return lastComparison;
3247
        }
3248
      }
471 rajveer 3249
      return 0;
3250
    }
3251
 
3430 rajveer 3252
    public _Fields fieldForId(int fieldId) {
3253
      return _Fields.findByThriftId(fieldId);
3254
    }
3255
 
3256
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3257
      org.apache.thrift.protocol.TField field;
471 rajveer 3258
      iprot.readStructBegin();
3259
      while (true)
3260
      {
3261
        field = iprot.readFieldBegin();
3430 rajveer 3262
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3263
          break;
3264
        }
3430 rajveer 3265
        switch (field.id) {
3266
          case 1: // ITEM_ID
3267
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3268
              this.itemId = iprot.readI64();
3269
              setItemIdIsSet(true);
3270
            } else { 
3271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3272
            }
3273
            break;
3274
          case 2: // DESTINATION_PIN
3275
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3276
              this.destination_pin = iprot.readString();
3277
            } else { 
3278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3279
            }
3280
            break;
4630 mandeep.dh 3281
          case 3: // TYPE
3282
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3283
              this.type = DeliveryType.findByValue(iprot.readI32());
3284
            } else { 
3285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3286
            }
3287
            break;
3430 rajveer 3288
          default:
3289
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3290
        }
3430 rajveer 3291
        iprot.readFieldEnd();
471 rajveer 3292
      }
3293
      iprot.readStructEnd();
3294
      validate();
3295
    }
3296
 
3430 rajveer 3297
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3298
      validate();
3299
 
3300
      oprot.writeStructBegin(STRUCT_DESC);
3301
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3302
      oprot.writeI64(this.itemId);
3303
      oprot.writeFieldEnd();
3304
      if (this.destination_pin != null) {
3305
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3306
        oprot.writeString(this.destination_pin);
3307
        oprot.writeFieldEnd();
3308
      }
4630 mandeep.dh 3309
      if (this.type != null) {
3310
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3311
        oprot.writeI32(this.type.getValue());
3312
        oprot.writeFieldEnd();
3313
      }
471 rajveer 3314
      oprot.writeFieldStop();
3315
      oprot.writeStructEnd();
3316
    }
3317
 
3318
    @Override
3319
    public String toString() {
3320
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3321
      boolean first = true;
3322
 
3323
      sb.append("itemId:");
3324
      sb.append(this.itemId);
3325
      first = false;
3326
      if (!first) sb.append(", ");
3327
      sb.append("destination_pin:");
3328
      if (this.destination_pin == null) {
3329
        sb.append("null");
3330
      } else {
3331
        sb.append(this.destination_pin);
3332
      }
3333
      first = false;
4630 mandeep.dh 3334
      if (!first) sb.append(", ");
3335
      sb.append("type:");
3336
      if (this.type == null) {
3337
        sb.append("null");
3338
      } else {
3339
        sb.append(this.type);
3340
      }
3341
      first = false;
471 rajveer 3342
      sb.append(")");
3343
      return sb.toString();
3344
    }
3345
 
3430 rajveer 3346
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3347
      // check for required fields
3348
    }
3349
 
3430 rajveer 3350
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3351
      try {
3352
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3353
      } catch (org.apache.thrift.TException te) {
3354
        throw new java.io.IOException(te);
3355
      }
3356
    }
3357
 
3358
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3359
      try {
3360
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3361
      } catch (org.apache.thrift.TException te) {
3362
        throw new java.io.IOException(te);
3363
      }
3364
    }
3365
 
471 rajveer 3366
  }
3367
 
3430 rajveer 3368
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3369
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3370
 
3430 rajveer 3371
    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);
3372
    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 3373
 
3430 rajveer 3374
    private LogisticsInfo success; // required
3375
    private LogisticsServiceException se; // required
471 rajveer 3376
 
3377
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3378
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3379
      SUCCESS((short)0, "success"),
3380
      SE((short)1, "se");
3381
 
3382
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3383
 
3384
      static {
3385
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3386
          byName.put(field.getFieldName(), field);
3387
        }
3388
      }
3389
 
3390
      /**
3391
       * Find the _Fields constant that matches fieldId, or null if its not found.
3392
       */
3393
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3394
        switch(fieldId) {
3395
          case 0: // SUCCESS
3396
            return SUCCESS;
3397
          case 1: // SE
3398
            return SE;
3399
          default:
3400
            return null;
3401
        }
471 rajveer 3402
      }
3403
 
3404
      /**
3405
       * Find the _Fields constant that matches fieldId, throwing an exception
3406
       * if it is not found.
3407
       */
3408
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3409
        _Fields fields = findByThriftId(fieldId);
3410
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3411
        return fields;
3412
      }
3413
 
3414
      /**
3415
       * Find the _Fields constant that matches name, or null if its not found.
3416
       */
3417
      public static _Fields findByName(String name) {
3418
        return byName.get(name);
3419
      }
3420
 
3421
      private final short _thriftId;
3422
      private final String _fieldName;
3423
 
3424
      _Fields(short thriftId, String fieldName) {
3425
        _thriftId = thriftId;
3426
        _fieldName = fieldName;
3427
      }
3428
 
3429
      public short getThriftFieldId() {
3430
        return _thriftId;
3431
      }
3432
 
3433
      public String getFieldName() {
3434
        return _fieldName;
3435
      }
3436
    }
3437
 
3438
    // isset id assignments
3439
 
3430 rajveer 3440
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3441
    static {
3430 rajveer 3442
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3443
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3444
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3445
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3449
    }
3450
 
3451
    public getLogisticsEstimation_result() {
3452
    }
3453
 
3454
    public getLogisticsEstimation_result(
648 chandransh 3455
      LogisticsInfo success,
471 rajveer 3456
      LogisticsServiceException se)
3457
    {
3458
      this();
3459
      this.success = success;
3460
      this.se = se;
3461
    }
3462
 
3463
    /**
3464
     * Performs a deep copy on <i>other</i>.
3465
     */
3466
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3467
      if (other.isSetSuccess()) {
648 chandransh 3468
        this.success = new LogisticsInfo(other.success);
471 rajveer 3469
      }
3470
      if (other.isSetSe()) {
3471
        this.se = new LogisticsServiceException(other.se);
3472
      }
3473
    }
3474
 
3475
    public getLogisticsEstimation_result deepCopy() {
3476
      return new getLogisticsEstimation_result(this);
3477
    }
3478
 
3430 rajveer 3479
    @Override
3480
    public void clear() {
3481
      this.success = null;
3482
      this.se = null;
471 rajveer 3483
    }
3484
 
648 chandransh 3485
    public LogisticsInfo getSuccess() {
471 rajveer 3486
      return this.success;
3487
    }
3488
 
3430 rajveer 3489
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3490
      this.success = success;
3491
    }
3492
 
3493
    public void unsetSuccess() {
3494
      this.success = null;
3495
    }
3496
 
3430 rajveer 3497
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3498
    public boolean isSetSuccess() {
3499
      return this.success != null;
3500
    }
3501
 
3502
    public void setSuccessIsSet(boolean value) {
3503
      if (!value) {
3504
        this.success = null;
3505
      }
3506
    }
3507
 
3508
    public LogisticsServiceException getSe() {
3509
      return this.se;
3510
    }
3511
 
3430 rajveer 3512
    public void setSe(LogisticsServiceException se) {
471 rajveer 3513
      this.se = se;
3514
    }
3515
 
3516
    public void unsetSe() {
3517
      this.se = null;
3518
    }
3519
 
3430 rajveer 3520
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3521
    public boolean isSetSe() {
3522
      return this.se != null;
3523
    }
3524
 
3525
    public void setSeIsSet(boolean value) {
3526
      if (!value) {
3527
        this.se = null;
3528
      }
3529
    }
3530
 
3531
    public void setFieldValue(_Fields field, Object value) {
3532
      switch (field) {
3533
      case SUCCESS:
3534
        if (value == null) {
3535
          unsetSuccess();
3536
        } else {
648 chandransh 3537
          setSuccess((LogisticsInfo)value);
471 rajveer 3538
        }
3539
        break;
3540
 
3541
      case SE:
3542
        if (value == null) {
3543
          unsetSe();
3544
        } else {
3545
          setSe((LogisticsServiceException)value);
3546
        }
3547
        break;
3548
 
3549
      }
3550
    }
3551
 
3552
    public Object getFieldValue(_Fields field) {
3553
      switch (field) {
3554
      case SUCCESS:
3555
        return getSuccess();
3556
 
3557
      case SE:
3558
        return getSe();
3559
 
3560
      }
3561
      throw new IllegalStateException();
3562
    }
3563
 
3430 rajveer 3564
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3565
    public boolean isSet(_Fields field) {
3566
      if (field == null) {
3567
        throw new IllegalArgumentException();
3568
      }
471 rajveer 3569
 
3570
      switch (field) {
3571
      case SUCCESS:
3572
        return isSetSuccess();
3573
      case SE:
3574
        return isSetSe();
3575
      }
3576
      throw new IllegalStateException();
3577
    }
3578
 
3579
    @Override
3580
    public boolean equals(Object that) {
3581
      if (that == null)
3582
        return false;
3583
      if (that instanceof getLogisticsEstimation_result)
3584
        return this.equals((getLogisticsEstimation_result)that);
3585
      return false;
3586
    }
3587
 
3588
    public boolean equals(getLogisticsEstimation_result that) {
3589
      if (that == null)
3590
        return false;
3591
 
3592
      boolean this_present_success = true && this.isSetSuccess();
3593
      boolean that_present_success = true && that.isSetSuccess();
3594
      if (this_present_success || that_present_success) {
3595
        if (!(this_present_success && that_present_success))
3596
          return false;
3597
        if (!this.success.equals(that.success))
3598
          return false;
3599
      }
3600
 
3601
      boolean this_present_se = true && this.isSetSe();
3602
      boolean that_present_se = true && that.isSetSe();
3603
      if (this_present_se || that_present_se) {
3604
        if (!(this_present_se && that_present_se))
3605
          return false;
3606
        if (!this.se.equals(that.se))
3607
          return false;
3608
      }
3609
 
3610
      return true;
3611
    }
3612
 
3613
    @Override
3614
    public int hashCode() {
3615
      return 0;
3616
    }
3617
 
3618
    public int compareTo(getLogisticsEstimation_result other) {
3619
      if (!getClass().equals(other.getClass())) {
3620
        return getClass().getName().compareTo(other.getClass().getName());
3621
      }
3622
 
3623
      int lastComparison = 0;
3624
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3625
 
3430 rajveer 3626
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3627
      if (lastComparison != 0) {
3628
        return lastComparison;
3629
      }
3430 rajveer 3630
      if (isSetSuccess()) {
3631
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3632
        if (lastComparison != 0) {
3633
          return lastComparison;
3634
        }
471 rajveer 3635
      }
3430 rajveer 3636
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3637
      if (lastComparison != 0) {
3638
        return lastComparison;
3639
      }
3430 rajveer 3640
      if (isSetSe()) {
3641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3642
        if (lastComparison != 0) {
3643
          return lastComparison;
3644
        }
471 rajveer 3645
      }
3646
      return 0;
3647
    }
3648
 
3430 rajveer 3649
    public _Fields fieldForId(int fieldId) {
3650
      return _Fields.findByThriftId(fieldId);
3651
    }
3652
 
3653
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3654
      org.apache.thrift.protocol.TField field;
471 rajveer 3655
      iprot.readStructBegin();
3656
      while (true)
3657
      {
3658
        field = iprot.readFieldBegin();
3430 rajveer 3659
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3660
          break;
3661
        }
3430 rajveer 3662
        switch (field.id) {
3663
          case 0: // SUCCESS
3664
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3665
              this.success = new LogisticsInfo();
3666
              this.success.read(iprot);
3667
            } else { 
3668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3669
            }
3670
            break;
3671
          case 1: // SE
3672
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3673
              this.se = new LogisticsServiceException();
3674
              this.se.read(iprot);
3675
            } else { 
3676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3677
            }
3678
            break;
3679
          default:
3680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3681
        }
3430 rajveer 3682
        iprot.readFieldEnd();
471 rajveer 3683
      }
3684
      iprot.readStructEnd();
3685
      validate();
3686
    }
3687
 
3430 rajveer 3688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3689
      oprot.writeStructBegin(STRUCT_DESC);
3690
 
3691
      if (this.isSetSuccess()) {
3692
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3693
        this.success.write(oprot);
3694
        oprot.writeFieldEnd();
3695
      } else if (this.isSetSe()) {
3696
        oprot.writeFieldBegin(SE_FIELD_DESC);
3697
        this.se.write(oprot);
3698
        oprot.writeFieldEnd();
3699
      }
3700
      oprot.writeFieldStop();
3701
      oprot.writeStructEnd();
3702
    }
3703
 
3704
    @Override
3705
    public String toString() {
3706
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3707
      boolean first = true;
3708
 
3709
      sb.append("success:");
3710
      if (this.success == null) {
3711
        sb.append("null");
3712
      } else {
3713
        sb.append(this.success);
3714
      }
3715
      first = false;
3716
      if (!first) sb.append(", ");
3717
      sb.append("se:");
3718
      if (this.se == null) {
3719
        sb.append("null");
3720
      } else {
3721
        sb.append(this.se);
3722
      }
3723
      first = false;
3724
      sb.append(")");
3725
      return sb.toString();
3726
    }
3727
 
3430 rajveer 3728
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3729
      // check for required fields
3730
    }
3731
 
3430 rajveer 3732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3733
      try {
3734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3735
      } catch (org.apache.thrift.TException te) {
3736
        throw new java.io.IOException(te);
3737
      }
3738
    }
3739
 
3740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3741
      try {
3742
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3743
      } catch (org.apache.thrift.TException te) {
3744
        throw new java.io.IOException(te);
3745
      }
3746
    }
3747
 
471 rajveer 3748
  }
3749
 
3430 rajveer 3750
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
3751
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 3752
 
3430 rajveer 3753
    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);
3754
    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);
3755
    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 3756
    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 3757
 
3430 rajveer 3758
    private String destination_pincode; // required
3759
    private long item_id; // required
3760
    private DeliveryType type; // required
5766 rajveer 3761
    private PickUpType pickUp; // required
471 rajveer 3762
 
3763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3765
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 3766
      ITEM_ID((short)2, "item_id"),
3767
      /**
3768
       * 
3769
       * @see DeliveryType
3770
       */
5766 rajveer 3771
      TYPE((short)3, "type"),
3772
      /**
3773
       * 
3774
       * @see PickUpType
3775
       */
3776
      PICK_UP((short)4, "pickUp");
471 rajveer 3777
 
3778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3779
 
3780
      static {
3781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3782
          byName.put(field.getFieldName(), field);
3783
        }
3784
      }
3785
 
3786
      /**
3787
       * Find the _Fields constant that matches fieldId, or null if its not found.
3788
       */
3789
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3790
        switch(fieldId) {
3791
          case 1: // DESTINATION_PINCODE
3792
            return DESTINATION_PINCODE;
3793
          case 2: // ITEM_ID
3794
            return ITEM_ID;
3795
          case 3: // TYPE
3796
            return TYPE;
5766 rajveer 3797
          case 4: // PICK_UP
3798
            return PICK_UP;
3430 rajveer 3799
          default:
3800
            return null;
3801
        }
471 rajveer 3802
      }
3803
 
3804
      /**
3805
       * Find the _Fields constant that matches fieldId, throwing an exception
3806
       * if it is not found.
3807
       */
3808
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3809
        _Fields fields = findByThriftId(fieldId);
3810
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3811
        return fields;
3812
      }
3813
 
3814
      /**
3815
       * Find the _Fields constant that matches name, or null if its not found.
3816
       */
3817
      public static _Fields findByName(String name) {
3818
        return byName.get(name);
3819
      }
3820
 
3821
      private final short _thriftId;
3822
      private final String _fieldName;
3823
 
3824
      _Fields(short thriftId, String fieldName) {
3825
        _thriftId = thriftId;
3826
        _fieldName = fieldName;
3827
      }
3828
 
3829
      public short getThriftFieldId() {
3830
        return _thriftId;
3831
      }
3832
 
3833
      public String getFieldName() {
3834
        return _fieldName;
3835
      }
3836
    }
3837
 
3838
    // isset id assignments
715 rajveer 3839
    private static final int __ITEM_ID_ISSET_ID = 0;
3840
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3841
 
3430 rajveer 3842
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 3843
    static {
3430 rajveer 3844
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3845
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3846
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3847
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3849
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3850
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 3851
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3852
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 3853
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3854
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 3855
    }
3856
 
648 chandransh 3857
    public getLogisticsInfo_args() {
477 rajveer 3858
    }
3859
 
648 chandransh 3860
    public getLogisticsInfo_args(
3861
      String destination_pincode,
3044 chandransh 3862
      long item_id,
5766 rajveer 3863
      DeliveryType type,
3864
      PickUpType pickUp)
477 rajveer 3865
    {
3866
      this();
648 chandransh 3867
      this.destination_pincode = destination_pincode;
3868
      this.item_id = item_id;
715 rajveer 3869
      setItem_idIsSet(true);
3044 chandransh 3870
      this.type = type;
5766 rajveer 3871
      this.pickUp = pickUp;
477 rajveer 3872
    }
3873
 
3874
    /**
3875
     * Performs a deep copy on <i>other</i>.
3876
     */
648 chandransh 3877
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 3878
      __isset_bit_vector.clear();
3879
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 3880
      if (other.isSetDestination_pincode()) {
3881
        this.destination_pincode = other.destination_pincode;
477 rajveer 3882
      }
715 rajveer 3883
      this.item_id = other.item_id;
3044 chandransh 3884
      if (other.isSetType()) {
3885
        this.type = other.type;
3886
      }
5766 rajveer 3887
      if (other.isSetPickUp()) {
3888
        this.pickUp = other.pickUp;
3889
      }
477 rajveer 3890
    }
3891
 
648 chandransh 3892
    public getLogisticsInfo_args deepCopy() {
3893
      return new getLogisticsInfo_args(this);
477 rajveer 3894
    }
3895
 
3430 rajveer 3896
    @Override
3897
    public void clear() {
3898
      this.destination_pincode = null;
3899
      setItem_idIsSet(false);
3900
      this.item_id = 0;
3901
      this.type = null;
5766 rajveer 3902
      this.pickUp = null;
477 rajveer 3903
    }
3904
 
648 chandransh 3905
    public String getDestination_pincode() {
3906
      return this.destination_pincode;
477 rajveer 3907
    }
3908
 
3430 rajveer 3909
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 3910
      this.destination_pincode = destination_pincode;
477 rajveer 3911
    }
3912
 
648 chandransh 3913
    public void unsetDestination_pincode() {
3914
      this.destination_pincode = null;
477 rajveer 3915
    }
3916
 
3430 rajveer 3917
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 3918
    public boolean isSetDestination_pincode() {
3919
      return this.destination_pincode != null;
477 rajveer 3920
    }
3921
 
648 chandransh 3922
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 3923
      if (!value) {
648 chandransh 3924
        this.destination_pincode = null;
477 rajveer 3925
      }
3926
    }
3927
 
715 rajveer 3928
    public long getItem_id() {
648 chandransh 3929
      return this.item_id;
477 rajveer 3930
    }
3931
 
3430 rajveer 3932
    public void setItem_id(long item_id) {
648 chandransh 3933
      this.item_id = item_id;
715 rajveer 3934
      setItem_idIsSet(true);
477 rajveer 3935
    }
3936
 
648 chandransh 3937
    public void unsetItem_id() {
715 rajveer 3938
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 3939
    }
3940
 
3430 rajveer 3941
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 3942
    public boolean isSetItem_id() {
715 rajveer 3943
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 3944
    }
3945
 
648 chandransh 3946
    public void setItem_idIsSet(boolean value) {
715 rajveer 3947
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 3948
    }
3949
 
3044 chandransh 3950
    /**
3951
     * 
3952
     * @see DeliveryType
3953
     */
3954
    public DeliveryType getType() {
3955
      return this.type;
3956
    }
3957
 
3958
    /**
3959
     * 
3960
     * @see DeliveryType
3961
     */
3430 rajveer 3962
    public void setType(DeliveryType type) {
3044 chandransh 3963
      this.type = type;
3964
    }
3965
 
3966
    public void unsetType() {
3967
      this.type = null;
3968
    }
3969
 
3430 rajveer 3970
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 3971
    public boolean isSetType() {
3972
      return this.type != null;
3973
    }
3974
 
3975
    public void setTypeIsSet(boolean value) {
3976
      if (!value) {
3977
        this.type = null;
3978
      }
3979
    }
3980
 
5766 rajveer 3981
    /**
3982
     * 
3983
     * @see PickUpType
3984
     */
3985
    public PickUpType getPickUp() {
3986
      return this.pickUp;
3987
    }
3988
 
3989
    /**
3990
     * 
3991
     * @see PickUpType
3992
     */
3993
    public void setPickUp(PickUpType pickUp) {
3994
      this.pickUp = pickUp;
3995
    }
3996
 
3997
    public void unsetPickUp() {
3998
      this.pickUp = null;
3999
    }
4000
 
4001
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
4002
    public boolean isSetPickUp() {
4003
      return this.pickUp != null;
4004
    }
4005
 
4006
    public void setPickUpIsSet(boolean value) {
4007
      if (!value) {
4008
        this.pickUp = null;
4009
      }
4010
    }
4011
 
477 rajveer 4012
    public void setFieldValue(_Fields field, Object value) {
4013
      switch (field) {
648 chandransh 4014
      case DESTINATION_PINCODE:
477 rajveer 4015
        if (value == null) {
648 chandransh 4016
          unsetDestination_pincode();
477 rajveer 4017
        } else {
648 chandransh 4018
          setDestination_pincode((String)value);
477 rajveer 4019
        }
4020
        break;
4021
 
648 chandransh 4022
      case ITEM_ID:
477 rajveer 4023
        if (value == null) {
648 chandransh 4024
          unsetItem_id();
477 rajveer 4025
        } else {
715 rajveer 4026
          setItem_id((Long)value);
477 rajveer 4027
        }
4028
        break;
4029
 
3044 chandransh 4030
      case TYPE:
4031
        if (value == null) {
4032
          unsetType();
4033
        } else {
4034
          setType((DeliveryType)value);
4035
        }
4036
        break;
4037
 
5766 rajveer 4038
      case PICK_UP:
4039
        if (value == null) {
4040
          unsetPickUp();
4041
        } else {
4042
          setPickUp((PickUpType)value);
4043
        }
4044
        break;
4045
 
477 rajveer 4046
      }
4047
    }
4048
 
4049
    public Object getFieldValue(_Fields field) {
4050
      switch (field) {
648 chandransh 4051
      case DESTINATION_PINCODE:
4052
        return getDestination_pincode();
477 rajveer 4053
 
648 chandransh 4054
      case ITEM_ID:
3430 rajveer 4055
        return Long.valueOf(getItem_id());
477 rajveer 4056
 
3044 chandransh 4057
      case TYPE:
4058
        return getType();
4059
 
5766 rajveer 4060
      case PICK_UP:
4061
        return getPickUp();
4062
 
477 rajveer 4063
      }
4064
      throw new IllegalStateException();
4065
    }
4066
 
3430 rajveer 4067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4068
    public boolean isSet(_Fields field) {
4069
      if (field == null) {
4070
        throw new IllegalArgumentException();
4071
      }
477 rajveer 4072
 
4073
      switch (field) {
648 chandransh 4074
      case DESTINATION_PINCODE:
4075
        return isSetDestination_pincode();
4076
      case ITEM_ID:
4077
        return isSetItem_id();
3044 chandransh 4078
      case TYPE:
4079
        return isSetType();
5766 rajveer 4080
      case PICK_UP:
4081
        return isSetPickUp();
477 rajveer 4082
      }
4083
      throw new IllegalStateException();
4084
    }
4085
 
4086
    @Override
4087
    public boolean equals(Object that) {
4088
      if (that == null)
4089
        return false;
648 chandransh 4090
      if (that instanceof getLogisticsInfo_args)
4091
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 4092
      return false;
4093
    }
4094
 
648 chandransh 4095
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 4096
      if (that == null)
4097
        return false;
4098
 
648 chandransh 4099
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
4100
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
4101
      if (this_present_destination_pincode || that_present_destination_pincode) {
4102
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 4103
          return false;
648 chandransh 4104
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 4105
          return false;
4106
      }
4107
 
715 rajveer 4108
      boolean this_present_item_id = true;
4109
      boolean that_present_item_id = true;
648 chandransh 4110
      if (this_present_item_id || that_present_item_id) {
4111
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 4112
          return false;
715 rajveer 4113
        if (this.item_id != that.item_id)
477 rajveer 4114
          return false;
4115
      }
4116
 
3044 chandransh 4117
      boolean this_present_type = true && this.isSetType();
4118
      boolean that_present_type = true && that.isSetType();
4119
      if (this_present_type || that_present_type) {
4120
        if (!(this_present_type && that_present_type))
4121
          return false;
4122
        if (!this.type.equals(that.type))
4123
          return false;
4124
      }
4125
 
5766 rajveer 4126
      boolean this_present_pickUp = true && this.isSetPickUp();
4127
      boolean that_present_pickUp = true && that.isSetPickUp();
4128
      if (this_present_pickUp || that_present_pickUp) {
4129
        if (!(this_present_pickUp && that_present_pickUp))
4130
          return false;
4131
        if (!this.pickUp.equals(that.pickUp))
4132
          return false;
4133
      }
4134
 
477 rajveer 4135
      return true;
4136
    }
4137
 
4138
    @Override
4139
    public int hashCode() {
4140
      return 0;
4141
    }
4142
 
648 chandransh 4143
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 4144
      if (!getClass().equals(other.getClass())) {
4145
        return getClass().getName().compareTo(other.getClass().getName());
4146
      }
4147
 
4148
      int lastComparison = 0;
648 chandransh 4149
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 4150
 
3430 rajveer 4151
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 4152
      if (lastComparison != 0) {
4153
        return lastComparison;
4154
      }
3430 rajveer 4155
      if (isSetDestination_pincode()) {
4156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
4157
        if (lastComparison != 0) {
4158
          return lastComparison;
4159
        }
477 rajveer 4160
      }
3430 rajveer 4161
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 4162
      if (lastComparison != 0) {
4163
        return lastComparison;
4164
      }
3430 rajveer 4165
      if (isSetItem_id()) {
4166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
4167
        if (lastComparison != 0) {
4168
          return lastComparison;
4169
        }
477 rajveer 4170
      }
3430 rajveer 4171
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 4172
      if (lastComparison != 0) {
4173
        return lastComparison;
4174
      }
3430 rajveer 4175
      if (isSetType()) {
4176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4177
        if (lastComparison != 0) {
4178
          return lastComparison;
4179
        }
3044 chandransh 4180
      }
5766 rajveer 4181
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
4182
      if (lastComparison != 0) {
4183
        return lastComparison;
4184
      }
4185
      if (isSetPickUp()) {
4186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
4187
        if (lastComparison != 0) {
4188
          return lastComparison;
4189
        }
4190
      }
477 rajveer 4191
      return 0;
4192
    }
4193
 
3430 rajveer 4194
    public _Fields fieldForId(int fieldId) {
4195
      return _Fields.findByThriftId(fieldId);
4196
    }
4197
 
4198
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4199
      org.apache.thrift.protocol.TField field;
477 rajveer 4200
      iprot.readStructBegin();
4201
      while (true)
4202
      {
4203
        field = iprot.readFieldBegin();
3430 rajveer 4204
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 4205
          break;
4206
        }
3430 rajveer 4207
        switch (field.id) {
4208
          case 1: // DESTINATION_PINCODE
4209
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4210
              this.destination_pincode = iprot.readString();
4211
            } else { 
4212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4213
            }
4214
            break;
4215
          case 2: // ITEM_ID
4216
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4217
              this.item_id = iprot.readI64();
4218
              setItem_idIsSet(true);
4219
            } else { 
4220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4221
            }
4222
            break;
4223
          case 3: // TYPE
4224
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4225
              this.type = DeliveryType.findByValue(iprot.readI32());
4226
            } else { 
4227
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4228
            }
4229
            break;
5766 rajveer 4230
          case 4: // PICK_UP
4231
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4232
              this.pickUp = PickUpType.findByValue(iprot.readI32());
4233
            } else { 
4234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4235
            }
4236
            break;
3430 rajveer 4237
          default:
4238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 4239
        }
3430 rajveer 4240
        iprot.readFieldEnd();
477 rajveer 4241
      }
4242
      iprot.readStructEnd();
4243
      validate();
4244
    }
4245
 
3430 rajveer 4246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 4247
      validate();
4248
 
4249
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 4250
      if (this.destination_pincode != null) {
4251
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
4252
        oprot.writeString(this.destination_pincode);
477 rajveer 4253
        oprot.writeFieldEnd();
4254
      }
715 rajveer 4255
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4256
      oprot.writeI64(this.item_id);
4257
      oprot.writeFieldEnd();
3044 chandransh 4258
      if (this.type != null) {
4259
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4260
        oprot.writeI32(this.type.getValue());
4261
        oprot.writeFieldEnd();
4262
      }
5766 rajveer 4263
      if (this.pickUp != null) {
4264
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
4265
        oprot.writeI32(this.pickUp.getValue());
4266
        oprot.writeFieldEnd();
4267
      }
477 rajveer 4268
      oprot.writeFieldStop();
4269
      oprot.writeStructEnd();
4270
    }
4271
 
4272
    @Override
4273
    public String toString() {
648 chandransh 4274
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 4275
      boolean first = true;
4276
 
648 chandransh 4277
      sb.append("destination_pincode:");
4278
      if (this.destination_pincode == null) {
477 rajveer 4279
        sb.append("null");
4280
      } else {
648 chandransh 4281
        sb.append(this.destination_pincode);
477 rajveer 4282
      }
4283
      first = false;
4284
      if (!first) sb.append(", ");
648 chandransh 4285
      sb.append("item_id:");
715 rajveer 4286
      sb.append(this.item_id);
477 rajveer 4287
      first = false;
3044 chandransh 4288
      if (!first) sb.append(", ");
4289
      sb.append("type:");
4290
      if (this.type == null) {
4291
        sb.append("null");
4292
      } else {
4293
        sb.append(this.type);
4294
      }
4295
      first = false;
5766 rajveer 4296
      if (!first) sb.append(", ");
4297
      sb.append("pickUp:");
4298
      if (this.pickUp == null) {
4299
        sb.append("null");
4300
      } else {
4301
        sb.append(this.pickUp);
4302
      }
4303
      first = false;
477 rajveer 4304
      sb.append(")");
4305
      return sb.toString();
4306
    }
4307
 
3430 rajveer 4308
    public void validate() throws org.apache.thrift.TException {
477 rajveer 4309
      // check for required fields
4310
    }
4311
 
3430 rajveer 4312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4313
      try {
4314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4315
      } catch (org.apache.thrift.TException te) {
4316
        throw new java.io.IOException(te);
4317
      }
4318
    }
4319
 
4320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4321
      try {
4322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4323
      } catch (org.apache.thrift.TException te) {
4324
        throw new java.io.IOException(te);
4325
      }
4326
    }
4327
 
477 rajveer 4328
  }
4329
 
3430 rajveer 4330
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
4331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 4332
 
3430 rajveer 4333
    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);
4334
    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 4335
 
3430 rajveer 4336
    private LogisticsInfo success; // required
4337
    private LogisticsServiceException se; // required
477 rajveer 4338
 
4339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4341
      SUCCESS((short)0, "success"),
4342
      SE((short)1, "se");
477 rajveer 4343
 
4344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4345
 
4346
      static {
4347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4348
          byName.put(field.getFieldName(), field);
4349
        }
4350
      }
4351
 
4352
      /**
4353
       * Find the _Fields constant that matches fieldId, or null if its not found.
4354
       */
4355
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4356
        switch(fieldId) {
4357
          case 0: // SUCCESS
4358
            return SUCCESS;
4359
          case 1: // SE
4360
            return SE;
4361
          default:
4362
            return null;
4363
        }
477 rajveer 4364
      }
4365
 
4366
      /**
4367
       * Find the _Fields constant that matches fieldId, throwing an exception
4368
       * if it is not found.
4369
       */
4370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4371
        _Fields fields = findByThriftId(fieldId);
4372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4373
        return fields;
4374
      }
4375
 
4376
      /**
4377
       * Find the _Fields constant that matches name, or null if its not found.
4378
       */
4379
      public static _Fields findByName(String name) {
4380
        return byName.get(name);
4381
      }
4382
 
4383
      private final short _thriftId;
4384
      private final String _fieldName;
4385
 
4386
      _Fields(short thriftId, String fieldName) {
4387
        _thriftId = thriftId;
4388
        _fieldName = fieldName;
4389
      }
4390
 
4391
      public short getThriftFieldId() {
4392
        return _thriftId;
4393
      }
4394
 
4395
      public String getFieldName() {
4396
        return _fieldName;
4397
      }
4398
    }
4399
 
412 ashish 4400
    // isset id assignments
4401
 
3430 rajveer 4402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4403
    static {
3430 rajveer 4404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4405
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4406
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4407
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4409
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4410
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 4411
    }
4412
 
648 chandransh 4413
    public getLogisticsInfo_result() {
412 ashish 4414
    }
4415
 
648 chandransh 4416
    public getLogisticsInfo_result(
4417
      LogisticsInfo success,
4418
      LogisticsServiceException se)
412 ashish 4419
    {
4420
      this();
648 chandransh 4421
      this.success = success;
4422
      this.se = se;
412 ashish 4423
    }
4424
 
4425
    /**
4426
     * Performs a deep copy on <i>other</i>.
4427
     */
648 chandransh 4428
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
4429
      if (other.isSetSuccess()) {
4430
        this.success = new LogisticsInfo(other.success);
412 ashish 4431
      }
648 chandransh 4432
      if (other.isSetSe()) {
4433
        this.se = new LogisticsServiceException(other.se);
4434
      }
412 ashish 4435
    }
4436
 
648 chandransh 4437
    public getLogisticsInfo_result deepCopy() {
4438
      return new getLogisticsInfo_result(this);
412 ashish 4439
    }
4440
 
3430 rajveer 4441
    @Override
4442
    public void clear() {
4443
      this.success = null;
4444
      this.se = null;
412 ashish 4445
    }
4446
 
648 chandransh 4447
    public LogisticsInfo getSuccess() {
4448
      return this.success;
412 ashish 4449
    }
4450
 
3430 rajveer 4451
    public void setSuccess(LogisticsInfo success) {
648 chandransh 4452
      this.success = success;
412 ashish 4453
    }
4454
 
648 chandransh 4455
    public void unsetSuccess() {
4456
      this.success = null;
412 ashish 4457
    }
4458
 
3430 rajveer 4459
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 4460
    public boolean isSetSuccess() {
4461
      return this.success != null;
412 ashish 4462
    }
4463
 
648 chandransh 4464
    public void setSuccessIsSet(boolean value) {
412 ashish 4465
      if (!value) {
648 chandransh 4466
        this.success = null;
412 ashish 4467
      }
4468
    }
4469
 
648 chandransh 4470
    public LogisticsServiceException getSe() {
4471
      return this.se;
412 ashish 4472
    }
4473
 
3430 rajveer 4474
    public void setSe(LogisticsServiceException se) {
648 chandransh 4475
      this.se = se;
412 ashish 4476
    }
4477
 
648 chandransh 4478
    public void unsetSe() {
4479
      this.se = null;
412 ashish 4480
    }
4481
 
3430 rajveer 4482
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 4483
    public boolean isSetSe() {
4484
      return this.se != null;
412 ashish 4485
    }
4486
 
648 chandransh 4487
    public void setSeIsSet(boolean value) {
4488
      if (!value) {
4489
        this.se = null;
4490
      }
412 ashish 4491
    }
4492
 
4493
    public void setFieldValue(_Fields field, Object value) {
4494
      switch (field) {
648 chandransh 4495
      case SUCCESS:
412 ashish 4496
        if (value == null) {
648 chandransh 4497
          unsetSuccess();
412 ashish 4498
        } else {
648 chandransh 4499
          setSuccess((LogisticsInfo)value);
412 ashish 4500
        }
4501
        break;
4502
 
648 chandransh 4503
      case SE:
412 ashish 4504
        if (value == null) {
648 chandransh 4505
          unsetSe();
412 ashish 4506
        } else {
648 chandransh 4507
          setSe((LogisticsServiceException)value);
412 ashish 4508
        }
4509
        break;
4510
 
4511
      }
4512
    }
4513
 
4514
    public Object getFieldValue(_Fields field) {
4515
      switch (field) {
648 chandransh 4516
      case SUCCESS:
4517
        return getSuccess();
412 ashish 4518
 
648 chandransh 4519
      case SE:
4520
        return getSe();
412 ashish 4521
 
4522
      }
4523
      throw new IllegalStateException();
4524
    }
4525
 
3430 rajveer 4526
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4527
    public boolean isSet(_Fields field) {
4528
      if (field == null) {
4529
        throw new IllegalArgumentException();
4530
      }
412 ashish 4531
 
4532
      switch (field) {
648 chandransh 4533
      case SUCCESS:
4534
        return isSetSuccess();
4535
      case SE:
4536
        return isSetSe();
412 ashish 4537
      }
4538
      throw new IllegalStateException();
4539
    }
4540
 
4541
    @Override
4542
    public boolean equals(Object that) {
4543
      if (that == null)
4544
        return false;
648 chandransh 4545
      if (that instanceof getLogisticsInfo_result)
4546
        return this.equals((getLogisticsInfo_result)that);
412 ashish 4547
      return false;
4548
    }
4549
 
648 chandransh 4550
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 4551
      if (that == null)
4552
        return false;
4553
 
648 chandransh 4554
      boolean this_present_success = true && this.isSetSuccess();
4555
      boolean that_present_success = true && that.isSetSuccess();
4556
      if (this_present_success || that_present_success) {
4557
        if (!(this_present_success && that_present_success))
412 ashish 4558
          return false;
648 chandransh 4559
        if (!this.success.equals(that.success))
412 ashish 4560
          return false;
4561
      }
4562
 
648 chandransh 4563
      boolean this_present_se = true && this.isSetSe();
4564
      boolean that_present_se = true && that.isSetSe();
4565
      if (this_present_se || that_present_se) {
4566
        if (!(this_present_se && that_present_se))
412 ashish 4567
          return false;
648 chandransh 4568
        if (!this.se.equals(that.se))
412 ashish 4569
          return false;
4570
      }
4571
 
4572
      return true;
4573
    }
4574
 
4575
    @Override
4576
    public int hashCode() {
4577
      return 0;
4578
    }
4579
 
648 chandransh 4580
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 4581
      if (!getClass().equals(other.getClass())) {
4582
        return getClass().getName().compareTo(other.getClass().getName());
4583
      }
4584
 
4585
      int lastComparison = 0;
648 chandransh 4586
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 4587
 
3430 rajveer 4588
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 4589
      if (lastComparison != 0) {
4590
        return lastComparison;
4591
      }
3430 rajveer 4592
      if (isSetSuccess()) {
4593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4594
        if (lastComparison != 0) {
4595
          return lastComparison;
4596
        }
412 ashish 4597
      }
3430 rajveer 4598
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 4599
      if (lastComparison != 0) {
4600
        return lastComparison;
4601
      }
3430 rajveer 4602
      if (isSetSe()) {
4603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4604
        if (lastComparison != 0) {
4605
          return lastComparison;
4606
        }
412 ashish 4607
      }
4608
      return 0;
4609
    }
4610
 
3430 rajveer 4611
    public _Fields fieldForId(int fieldId) {
4612
      return _Fields.findByThriftId(fieldId);
4613
    }
4614
 
4615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4616
      org.apache.thrift.protocol.TField field;
412 ashish 4617
      iprot.readStructBegin();
4618
      while (true)
4619
      {
4620
        field = iprot.readFieldBegin();
3430 rajveer 4621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4622
          break;
4623
        }
3430 rajveer 4624
        switch (field.id) {
4625
          case 0: // SUCCESS
4626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4627
              this.success = new LogisticsInfo();
4628
              this.success.read(iprot);
4629
            } else { 
4630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4631
            }
4632
            break;
4633
          case 1: // SE
4634
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4635
              this.se = new LogisticsServiceException();
4636
              this.se.read(iprot);
4637
            } else { 
4638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4639
            }
4640
            break;
4641
          default:
4642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4643
        }
3430 rajveer 4644
        iprot.readFieldEnd();
412 ashish 4645
      }
4646
      iprot.readStructEnd();
4647
      validate();
4648
    }
4649
 
3430 rajveer 4650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 4651
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 4652
 
648 chandransh 4653
      if (this.isSetSuccess()) {
4654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4655
        this.success.write(oprot);
412 ashish 4656
        oprot.writeFieldEnd();
648 chandransh 4657
      } else if (this.isSetSe()) {
4658
        oprot.writeFieldBegin(SE_FIELD_DESC);
4659
        this.se.write(oprot);
4660
        oprot.writeFieldEnd();
412 ashish 4661
      }
4662
      oprot.writeFieldStop();
4663
      oprot.writeStructEnd();
4664
    }
4665
 
4666
    @Override
4667
    public String toString() {
648 chandransh 4668
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 4669
      boolean first = true;
4670
 
648 chandransh 4671
      sb.append("success:");
4672
      if (this.success == null) {
412 ashish 4673
        sb.append("null");
4674
      } else {
648 chandransh 4675
        sb.append(this.success);
412 ashish 4676
      }
4677
      first = false;
4678
      if (!first) sb.append(", ");
648 chandransh 4679
      sb.append("se:");
4680
      if (this.se == null) {
4681
        sb.append("null");
4682
      } else {
4683
        sb.append(this.se);
4684
      }
412 ashish 4685
      first = false;
4686
      sb.append(")");
4687
      return sb.toString();
4688
    }
4689
 
3430 rajveer 4690
    public void validate() throws org.apache.thrift.TException {
412 ashish 4691
      // check for required fields
4692
    }
4693
 
3430 rajveer 4694
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4695
      try {
4696
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4697
      } catch (org.apache.thrift.TException te) {
4698
        throw new java.io.IOException(te);
4699
      }
4700
    }
4701
 
4702
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4703
      try {
4704
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4705
      } catch (org.apache.thrift.TException te) {
4706
        throw new java.io.IOException(te);
4707
      }
4708
    }
4709
 
412 ashish 4710
  }
4711
 
3430 rajveer 4712
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
4713
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 4714
 
3430 rajveer 4715
    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 4716
    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 4717
 
3430 rajveer 4718
    private long providerId; // required
5247 rajveer 4719
    private DeliveryType type; // required
412 ashish 4720
 
4721
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4722
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 4723
      PROVIDER_ID((short)1, "providerId"),
4724
      /**
4725
       * 
4726
       * @see DeliveryType
4727
       */
4728
      TYPE((short)-1, "type");
412 ashish 4729
 
4730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4731
 
4732
      static {
4733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4734
          byName.put(field.getFieldName(), field);
4735
        }
4736
      }
4737
 
4738
      /**
4739
       * Find the _Fields constant that matches fieldId, or null if its not found.
4740
       */
4741
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4742
        switch(fieldId) {
4743
          case 1: // PROVIDER_ID
4744
            return PROVIDER_ID;
5247 rajveer 4745
          case -1: // TYPE
4746
            return TYPE;
3430 rajveer 4747
          default:
4748
            return null;
4749
        }
412 ashish 4750
      }
4751
 
4752
      /**
4753
       * Find the _Fields constant that matches fieldId, throwing an exception
4754
       * if it is not found.
4755
       */
4756
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4757
        _Fields fields = findByThriftId(fieldId);
4758
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4759
        return fields;
4760
      }
4761
 
4762
      /**
4763
       * Find the _Fields constant that matches name, or null if its not found.
4764
       */
4765
      public static _Fields findByName(String name) {
4766
        return byName.get(name);
4767
      }
4768
 
4769
      private final short _thriftId;
4770
      private final String _fieldName;
4771
 
4772
      _Fields(short thriftId, String fieldName) {
4773
        _thriftId = thriftId;
4774
        _fieldName = fieldName;
4775
      }
4776
 
4777
      public short getThriftFieldId() {
4778
        return _thriftId;
4779
      }
4780
 
4781
      public String getFieldName() {
4782
        return _fieldName;
4783
      }
4784
    }
4785
 
4786
    // isset id assignments
648 chandransh 4787
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 4788
    private BitSet __isset_bit_vector = new BitSet(1);
4789
 
3430 rajveer 4790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4791
    static {
3430 rajveer 4792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4793
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 4795
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4796
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 4797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 4799
    }
4800
 
4801
    public getEmptyAWB_args() {
4802
    }
4803
 
4804
    public getEmptyAWB_args(
5247 rajveer 4805
      long providerId,
4806
      DeliveryType type)
412 ashish 4807
    {
4808
      this();
648 chandransh 4809
      this.providerId = providerId;
4810
      setProviderIdIsSet(true);
5247 rajveer 4811
      this.type = type;
412 ashish 4812
    }
4813
 
4814
    /**
4815
     * Performs a deep copy on <i>other</i>.
4816
     */
4817
    public getEmptyAWB_args(getEmptyAWB_args other) {
4818
      __isset_bit_vector.clear();
4819
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4820
      this.providerId = other.providerId;
5247 rajveer 4821
      if (other.isSetType()) {
4822
        this.type = other.type;
4823
      }
412 ashish 4824
    }
4825
 
4826
    public getEmptyAWB_args deepCopy() {
4827
      return new getEmptyAWB_args(this);
4828
    }
4829
 
3430 rajveer 4830
    @Override
4831
    public void clear() {
4832
      setProviderIdIsSet(false);
4833
      this.providerId = 0;
5247 rajveer 4834
      this.type = null;
412 ashish 4835
    }
4836
 
648 chandransh 4837
    public long getProviderId() {
4838
      return this.providerId;
412 ashish 4839
    }
4840
 
3430 rajveer 4841
    public void setProviderId(long providerId) {
648 chandransh 4842
      this.providerId = providerId;
4843
      setProviderIdIsSet(true);
412 ashish 4844
    }
4845
 
648 chandransh 4846
    public void unsetProviderId() {
4847
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 4848
    }
4849
 
3430 rajveer 4850
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 4851
    public boolean isSetProviderId() {
4852
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 4853
    }
4854
 
648 chandransh 4855
    public void setProviderIdIsSet(boolean value) {
4856
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 4857
    }
4858
 
5247 rajveer 4859
    /**
4860
     * 
4861
     * @see DeliveryType
4862
     */
4863
    public DeliveryType getType() {
4864
      return this.type;
4865
    }
4866
 
4867
    /**
4868
     * 
4869
     * @see DeliveryType
4870
     */
4871
    public void setType(DeliveryType type) {
4872
      this.type = type;
4873
    }
4874
 
4875
    public void unsetType() {
4876
      this.type = null;
4877
    }
4878
 
4879
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4880
    public boolean isSetType() {
4881
      return this.type != null;
4882
    }
4883
 
4884
    public void setTypeIsSet(boolean value) {
4885
      if (!value) {
4886
        this.type = null;
4887
      }
4888
    }
4889
 
412 ashish 4890
    public void setFieldValue(_Fields field, Object value) {
4891
      switch (field) {
4892
      case PROVIDER_ID:
4893
        if (value == null) {
648 chandransh 4894
          unsetProviderId();
412 ashish 4895
        } else {
648 chandransh 4896
          setProviderId((Long)value);
412 ashish 4897
        }
4898
        break;
4899
 
5247 rajveer 4900
      case TYPE:
4901
        if (value == null) {
4902
          unsetType();
4903
        } else {
4904
          setType((DeliveryType)value);
4905
        }
4906
        break;
4907
 
412 ashish 4908
      }
4909
    }
4910
 
4911
    public Object getFieldValue(_Fields field) {
4912
      switch (field) {
4913
      case PROVIDER_ID:
3430 rajveer 4914
        return Long.valueOf(getProviderId());
412 ashish 4915
 
5247 rajveer 4916
      case TYPE:
4917
        return getType();
4918
 
412 ashish 4919
      }
4920
      throw new IllegalStateException();
4921
    }
4922
 
3430 rajveer 4923
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4924
    public boolean isSet(_Fields field) {
4925
      if (field == null) {
4926
        throw new IllegalArgumentException();
4927
      }
412 ashish 4928
 
4929
      switch (field) {
4930
      case PROVIDER_ID:
648 chandransh 4931
        return isSetProviderId();
5247 rajveer 4932
      case TYPE:
4933
        return isSetType();
412 ashish 4934
      }
4935
      throw new IllegalStateException();
4936
    }
4937
 
4938
    @Override
4939
    public boolean equals(Object that) {
4940
      if (that == null)
4941
        return false;
4942
      if (that instanceof getEmptyAWB_args)
4943
        return this.equals((getEmptyAWB_args)that);
4944
      return false;
4945
    }
4946
 
4947
    public boolean equals(getEmptyAWB_args that) {
4948
      if (that == null)
4949
        return false;
4950
 
648 chandransh 4951
      boolean this_present_providerId = true;
4952
      boolean that_present_providerId = true;
4953
      if (this_present_providerId || that_present_providerId) {
4954
        if (!(this_present_providerId && that_present_providerId))
412 ashish 4955
          return false;
648 chandransh 4956
        if (this.providerId != that.providerId)
412 ashish 4957
          return false;
4958
      }
4959
 
5247 rajveer 4960
      boolean this_present_type = true && this.isSetType();
4961
      boolean that_present_type = true && that.isSetType();
4962
      if (this_present_type || that_present_type) {
4963
        if (!(this_present_type && that_present_type))
4964
          return false;
4965
        if (!this.type.equals(that.type))
4966
          return false;
4967
      }
4968
 
412 ashish 4969
      return true;
4970
    }
4971
 
4972
    @Override
4973
    public int hashCode() {
4974
      return 0;
4975
    }
4976
 
4977
    public int compareTo(getEmptyAWB_args other) {
4978
      if (!getClass().equals(other.getClass())) {
4979
        return getClass().getName().compareTo(other.getClass().getName());
4980
      }
4981
 
4982
      int lastComparison = 0;
4983
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
4984
 
3430 rajveer 4985
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 4986
      if (lastComparison != 0) {
4987
        return lastComparison;
4988
      }
3430 rajveer 4989
      if (isSetProviderId()) {
4990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4991
        if (lastComparison != 0) {
4992
          return lastComparison;
4993
        }
412 ashish 4994
      }
5247 rajveer 4995
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4996
      if (lastComparison != 0) {
4997
        return lastComparison;
4998
      }
4999
      if (isSetType()) {
5000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5001
        if (lastComparison != 0) {
5002
          return lastComparison;
5003
        }
5004
      }
412 ashish 5005
      return 0;
5006
    }
5007
 
3430 rajveer 5008
    public _Fields fieldForId(int fieldId) {
5009
      return _Fields.findByThriftId(fieldId);
5010
    }
5011
 
5012
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5013
      org.apache.thrift.protocol.TField field;
412 ashish 5014
      iprot.readStructBegin();
5015
      while (true)
5016
      {
5017
        field = iprot.readFieldBegin();
3430 rajveer 5018
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5019
          break;
5020
        }
3430 rajveer 5021
        switch (field.id) {
5022
          case 1: // PROVIDER_ID
5023
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5024
              this.providerId = iprot.readI64();
5025
              setProviderIdIsSet(true);
5026
            } else { 
5027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5028
            }
5029
            break;
5247 rajveer 5030
          case -1: // TYPE
5031
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5032
              this.type = DeliveryType.findByValue(iprot.readI32());
5033
            } else { 
5034
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5035
            }
5036
            break;
3430 rajveer 5037
          default:
5038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5039
        }
3430 rajveer 5040
        iprot.readFieldEnd();
412 ashish 5041
      }
5042
      iprot.readStructEnd();
5043
      validate();
5044
    }
5045
 
3430 rajveer 5046
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 5047
      validate();
5048
 
5049
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 5050
      if (this.type != null) {
5051
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5052
        oprot.writeI32(this.type.getValue());
5053
        oprot.writeFieldEnd();
5054
      }
412 ashish 5055
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 5056
      oprot.writeI64(this.providerId);
412 ashish 5057
      oprot.writeFieldEnd();
5058
      oprot.writeFieldStop();
5059
      oprot.writeStructEnd();
5060
    }
5061
 
5062
    @Override
5063
    public String toString() {
5064
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
5065
      boolean first = true;
5066
 
648 chandransh 5067
      sb.append("providerId:");
5068
      sb.append(this.providerId);
412 ashish 5069
      first = false;
5247 rajveer 5070
      if (!first) sb.append(", ");
5071
      sb.append("type:");
5072
      if (this.type == null) {
5073
        sb.append("null");
5074
      } else {
5075
        sb.append(this.type);
5076
      }
5077
      first = false;
412 ashish 5078
      sb.append(")");
5079
      return sb.toString();
5080
    }
5081
 
3430 rajveer 5082
    public void validate() throws org.apache.thrift.TException {
412 ashish 5083
      // check for required fields
5084
    }
5085
 
3430 rajveer 5086
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5087
      try {
5088
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5089
      } catch (org.apache.thrift.TException te) {
5090
        throw new java.io.IOException(te);
5091
      }
5092
    }
5093
 
5094
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5095
      try {
5096
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5097
        __isset_bit_vector = new BitSet(1);
5098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5099
      } catch (org.apache.thrift.TException te) {
5100
        throw new java.io.IOException(te);
5101
      }
5102
    }
5103
 
412 ashish 5104
  }
5105
 
3430 rajveer 5106
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
5107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 5108
 
3430 rajveer 5109
    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);
5110
    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 5111
 
3430 rajveer 5112
    private String success; // required
5113
    private LogisticsServiceException se; // required
412 ashish 5114
 
5115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5117
      SUCCESS((short)0, "success"),
5118
      SE((short)1, "se");
412 ashish 5119
 
5120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5121
 
5122
      static {
5123
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5124
          byName.put(field.getFieldName(), field);
5125
        }
5126
      }
5127
 
5128
      /**
5129
       * Find the _Fields constant that matches fieldId, or null if its not found.
5130
       */
5131
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5132
        switch(fieldId) {
5133
          case 0: // SUCCESS
5134
            return SUCCESS;
5135
          case 1: // SE
5136
            return SE;
5137
          default:
5138
            return null;
5139
        }
412 ashish 5140
      }
5141
 
5142
      /**
5143
       * Find the _Fields constant that matches fieldId, throwing an exception
5144
       * if it is not found.
5145
       */
5146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5147
        _Fields fields = findByThriftId(fieldId);
5148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5149
        return fields;
5150
      }
5151
 
5152
      /**
5153
       * Find the _Fields constant that matches name, or null if its not found.
5154
       */
5155
      public static _Fields findByName(String name) {
5156
        return byName.get(name);
5157
      }
5158
 
5159
      private final short _thriftId;
5160
      private final String _fieldName;
5161
 
5162
      _Fields(short thriftId, String fieldName) {
5163
        _thriftId = thriftId;
5164
        _fieldName = fieldName;
5165
      }
5166
 
5167
      public short getThriftFieldId() {
5168
        return _thriftId;
5169
      }
5170
 
5171
      public String getFieldName() {
5172
        return _fieldName;
5173
      }
5174
    }
5175
 
5176
    // isset id assignments
5177
 
3430 rajveer 5178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5179
    static {
3430 rajveer 5180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5181
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5183
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 5187
    }
5188
 
5189
    public getEmptyAWB_result() {
5190
    }
5191
 
5192
    public getEmptyAWB_result(
648 chandransh 5193
      String success,
5194
      LogisticsServiceException se)
412 ashish 5195
    {
5196
      this();
5197
      this.success = success;
648 chandransh 5198
      this.se = se;
412 ashish 5199
    }
5200
 
5201
    /**
5202
     * Performs a deep copy on <i>other</i>.
5203
     */
5204
    public getEmptyAWB_result(getEmptyAWB_result other) {
5205
      if (other.isSetSuccess()) {
5206
        this.success = other.success;
5207
      }
648 chandransh 5208
      if (other.isSetSe()) {
5209
        this.se = new LogisticsServiceException(other.se);
5210
      }
412 ashish 5211
    }
5212
 
5213
    public getEmptyAWB_result deepCopy() {
5214
      return new getEmptyAWB_result(this);
5215
    }
5216
 
3430 rajveer 5217
    @Override
5218
    public void clear() {
5219
      this.success = null;
5220
      this.se = null;
412 ashish 5221
    }
5222
 
5223
    public String getSuccess() {
5224
      return this.success;
5225
    }
5226
 
3430 rajveer 5227
    public void setSuccess(String success) {
412 ashish 5228
      this.success = success;
5229
    }
5230
 
5231
    public void unsetSuccess() {
5232
      this.success = null;
5233
    }
5234
 
3430 rajveer 5235
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 5236
    public boolean isSetSuccess() {
5237
      return this.success != null;
5238
    }
5239
 
5240
    public void setSuccessIsSet(boolean value) {
5241
      if (!value) {
5242
        this.success = null;
5243
      }
5244
    }
5245
 
648 chandransh 5246
    public LogisticsServiceException getSe() {
5247
      return this.se;
412 ashish 5248
    }
5249
 
3430 rajveer 5250
    public void setSe(LogisticsServiceException se) {
648 chandransh 5251
      this.se = se;
412 ashish 5252
    }
5253
 
648 chandransh 5254
    public void unsetSe() {
5255
      this.se = null;
412 ashish 5256
    }
5257
 
3430 rajveer 5258
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5259
    public boolean isSetSe() {
5260
      return this.se != null;
412 ashish 5261
    }
5262
 
648 chandransh 5263
    public void setSeIsSet(boolean value) {
412 ashish 5264
      if (!value) {
648 chandransh 5265
        this.se = null;
412 ashish 5266
      }
5267
    }
5268
 
5269
    public void setFieldValue(_Fields field, Object value) {
5270
      switch (field) {
5271
      case SUCCESS:
5272
        if (value == null) {
5273
          unsetSuccess();
5274
        } else {
648 chandransh 5275
          setSuccess((String)value);
412 ashish 5276
        }
5277
        break;
5278
 
648 chandransh 5279
      case SE:
5280
        if (value == null) {
5281
          unsetSe();
5282
        } else {
5283
          setSe((LogisticsServiceException)value);
5284
        }
5285
        break;
5286
 
412 ashish 5287
      }
5288
    }
5289
 
5290
    public Object getFieldValue(_Fields field) {
5291
      switch (field) {
5292
      case SUCCESS:
5293
        return getSuccess();
5294
 
648 chandransh 5295
      case SE:
5296
        return getSe();
5297
 
412 ashish 5298
      }
5299
      throw new IllegalStateException();
5300
    }
5301
 
3430 rajveer 5302
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5303
    public boolean isSet(_Fields field) {
5304
      if (field == null) {
5305
        throw new IllegalArgumentException();
5306
      }
412 ashish 5307
 
5308
      switch (field) {
5309
      case SUCCESS:
5310
        return isSetSuccess();
648 chandransh 5311
      case SE:
5312
        return isSetSe();
412 ashish 5313
      }
5314
      throw new IllegalStateException();
5315
    }
5316
 
5317
    @Override
5318
    public boolean equals(Object that) {
5319
      if (that == null)
5320
        return false;
648 chandransh 5321
      if (that instanceof getEmptyAWB_result)
5322
        return this.equals((getEmptyAWB_result)that);
412 ashish 5323
      return false;
5324
    }
5325
 
648 chandransh 5326
    public boolean equals(getEmptyAWB_result that) {
412 ashish 5327
      if (that == null)
5328
        return false;
5329
 
5330
      boolean this_present_success = true && this.isSetSuccess();
5331
      boolean that_present_success = true && that.isSetSuccess();
5332
      if (this_present_success || that_present_success) {
5333
        if (!(this_present_success && that_present_success))
5334
          return false;
5335
        if (!this.success.equals(that.success))
5336
          return false;
5337
      }
5338
 
648 chandransh 5339
      boolean this_present_se = true && this.isSetSe();
5340
      boolean that_present_se = true && that.isSetSe();
5341
      if (this_present_se || that_present_se) {
5342
        if (!(this_present_se && that_present_se))
5343
          return false;
5344
        if (!this.se.equals(that.se))
5345
          return false;
5346
      }
5347
 
412 ashish 5348
      return true;
5349
    }
5350
 
5351
    @Override
5352
    public int hashCode() {
5353
      return 0;
5354
    }
5355
 
648 chandransh 5356
    public int compareTo(getEmptyAWB_result other) {
412 ashish 5357
      if (!getClass().equals(other.getClass())) {
5358
        return getClass().getName().compareTo(other.getClass().getName());
5359
      }
5360
 
5361
      int lastComparison = 0;
648 chandransh 5362
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 5363
 
3430 rajveer 5364
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5365
      if (lastComparison != 0) {
5366
        return lastComparison;
5367
      }
3430 rajveer 5368
      if (isSetSuccess()) {
5369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5370
        if (lastComparison != 0) {
5371
          return lastComparison;
5372
        }
412 ashish 5373
      }
3430 rajveer 5374
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5375
      if (lastComparison != 0) {
5376
        return lastComparison;
5377
      }
3430 rajveer 5378
      if (isSetSe()) {
5379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5380
        if (lastComparison != 0) {
5381
          return lastComparison;
5382
        }
412 ashish 5383
      }
5384
      return 0;
5385
    }
5386
 
3430 rajveer 5387
    public _Fields fieldForId(int fieldId) {
5388
      return _Fields.findByThriftId(fieldId);
5389
    }
5390
 
5391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5392
      org.apache.thrift.protocol.TField field;
412 ashish 5393
      iprot.readStructBegin();
5394
      while (true)
5395
      {
5396
        field = iprot.readFieldBegin();
3430 rajveer 5397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5398
          break;
5399
        }
3430 rajveer 5400
        switch (field.id) {
5401
          case 0: // SUCCESS
5402
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5403
              this.success = iprot.readString();
5404
            } else { 
5405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5406
            }
5407
            break;
5408
          case 1: // SE
5409
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5410
              this.se = new LogisticsServiceException();
5411
              this.se.read(iprot);
5412
            } else { 
5413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5414
            }
5415
            break;
5416
          default:
5417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5418
        }
3430 rajveer 5419
        iprot.readFieldEnd();
412 ashish 5420
      }
5421
      iprot.readStructEnd();
5422
      validate();
5423
    }
5424
 
3430 rajveer 5425
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 5426
      oprot.writeStructBegin(STRUCT_DESC);
5427
 
5428
      if (this.isSetSuccess()) {
5429
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 5430
        oprot.writeString(this.success);
412 ashish 5431
        oprot.writeFieldEnd();
648 chandransh 5432
      } else if (this.isSetSe()) {
5433
        oprot.writeFieldBegin(SE_FIELD_DESC);
5434
        this.se.write(oprot);
5435
        oprot.writeFieldEnd();
412 ashish 5436
      }
5437
      oprot.writeFieldStop();
5438
      oprot.writeStructEnd();
5439
    }
5440
 
5441
    @Override
5442
    public String toString() {
648 chandransh 5443
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 5444
      boolean first = true;
5445
 
5446
      sb.append("success:");
5447
      if (this.success == null) {
5448
        sb.append("null");
5449
      } else {
5450
        sb.append(this.success);
5451
      }
5452
      first = false;
648 chandransh 5453
      if (!first) sb.append(", ");
5454
      sb.append("se:");
5455
      if (this.se == null) {
442 rajveer 5456
        sb.append("null");
5457
      } else {
648 chandransh 5458
        sb.append(this.se);
442 rajveer 5459
      }
5460
      first = false;
5461
      sb.append(")");
5462
      return sb.toString();
5463
    }
5464
 
3430 rajveer 5465
    public void validate() throws org.apache.thrift.TException {
442 rajveer 5466
      // check for required fields
5467
    }
5468
 
3430 rajveer 5469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5470
      try {
5471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5472
      } catch (org.apache.thrift.TException te) {
5473
        throw new java.io.IOException(te);
5474
      }
5475
    }
5476
 
5477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5478
      try {
5479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5480
      } catch (org.apache.thrift.TException te) {
5481
        throw new java.io.IOException(te);
5482
      }
5483
    }
5484
 
442 rajveer 5485
  }
5486
 
3430 rajveer 5487
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
5488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 5489
 
6643 rajveer 5490
    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 5491
    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 5492
 
6643 rajveer 5493
    private String awbNumber; // required
3430 rajveer 5494
    private long providerId; // required
442 rajveer 5495
 
5496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 5498
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 5499
      PROVIDER_ID((short)2, "providerId");
442 rajveer 5500
 
5501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5502
 
5503
      static {
5504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5505
          byName.put(field.getFieldName(), field);
5506
        }
5507
      }
5508
 
5509
      /**
5510
       * Find the _Fields constant that matches fieldId, or null if its not found.
5511
       */
5512
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5513
        switch(fieldId) {
6643 rajveer 5514
          case 1: // AWB_NUMBER
5515
            return AWB_NUMBER;
3430 rajveer 5516
          case 2: // PROVIDER_ID
5517
            return PROVIDER_ID;
5518
          default:
5519
            return null;
5520
        }
442 rajveer 5521
      }
5522
 
5523
      /**
5524
       * Find the _Fields constant that matches fieldId, throwing an exception
5525
       * if it is not found.
5526
       */
5527
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5528
        _Fields fields = findByThriftId(fieldId);
5529
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5530
        return fields;
5531
      }
5532
 
5533
      /**
5534
       * Find the _Fields constant that matches name, or null if its not found.
5535
       */
5536
      public static _Fields findByName(String name) {
5537
        return byName.get(name);
5538
      }
5539
 
5540
      private final short _thriftId;
5541
      private final String _fieldName;
5542
 
5543
      _Fields(short thriftId, String fieldName) {
5544
        _thriftId = thriftId;
5545
        _fieldName = fieldName;
5546
      }
5547
 
5548
      public short getThriftFieldId() {
5549
        return _thriftId;
5550
      }
5551
 
5552
      public String getFieldName() {
5553
        return _fieldName;
5554
      }
5555
    }
5556
 
5557
    // isset id assignments
648 chandransh 5558
    private static final int __PROVIDERID_ISSET_ID = 0;
5559
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 5560
 
3430 rajveer 5561
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 5562
    static {
3430 rajveer 5563
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 5564
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 5565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5566
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5567
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 5570
    }
5571
 
648 chandransh 5572
    public getShipmentInfo_args() {
442 rajveer 5573
    }
5574
 
648 chandransh 5575
    public getShipmentInfo_args(
6643 rajveer 5576
      String awbNumber,
648 chandransh 5577
      long providerId)
442 rajveer 5578
    {
5579
      this();
6643 rajveer 5580
      this.awbNumber = awbNumber;
648 chandransh 5581
      this.providerId = providerId;
5582
      setProviderIdIsSet(true);
442 rajveer 5583
    }
5584
 
5585
    /**
5586
     * Performs a deep copy on <i>other</i>.
5587
     */
648 chandransh 5588
    public getShipmentInfo_args(getShipmentInfo_args other) {
5589
      __isset_bit_vector.clear();
5590
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 5591
      if (other.isSetAwbNumber()) {
5592
        this.awbNumber = other.awbNumber;
442 rajveer 5593
      }
648 chandransh 5594
      this.providerId = other.providerId;
442 rajveer 5595
    }
5596
 
648 chandransh 5597
    public getShipmentInfo_args deepCopy() {
5598
      return new getShipmentInfo_args(this);
442 rajveer 5599
    }
5600
 
3430 rajveer 5601
    @Override
5602
    public void clear() {
6643 rajveer 5603
      this.awbNumber = null;
3430 rajveer 5604
      setProviderIdIsSet(false);
5605
      this.providerId = 0;
442 rajveer 5606
    }
5607
 
6643 rajveer 5608
    public String getAwbNumber() {
5609
      return this.awbNumber;
442 rajveer 5610
    }
5611
 
6643 rajveer 5612
    public void setAwbNumber(String awbNumber) {
5613
      this.awbNumber = awbNumber;
442 rajveer 5614
    }
5615
 
6643 rajveer 5616
    public void unsetAwbNumber() {
5617
      this.awbNumber = null;
442 rajveer 5618
    }
5619
 
6643 rajveer 5620
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
5621
    public boolean isSetAwbNumber() {
5622
      return this.awbNumber != null;
442 rajveer 5623
    }
5624
 
6643 rajveer 5625
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 5626
      if (!value) {
6643 rajveer 5627
        this.awbNumber = null;
442 rajveer 5628
      }
5629
    }
5630
 
648 chandransh 5631
    public long getProviderId() {
5632
      return this.providerId;
442 rajveer 5633
    }
5634
 
3430 rajveer 5635
    public void setProviderId(long providerId) {
648 chandransh 5636
      this.providerId = providerId;
5637
      setProviderIdIsSet(true);
442 rajveer 5638
    }
5639
 
648 chandransh 5640
    public void unsetProviderId() {
5641
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 5642
    }
5643
 
3430 rajveer 5644
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 5645
    public boolean isSetProviderId() {
5646
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 5647
    }
5648
 
648 chandransh 5649
    public void setProviderIdIsSet(boolean value) {
5650
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 5651
    }
5652
 
5653
    public void setFieldValue(_Fields field, Object value) {
5654
      switch (field) {
6643 rajveer 5655
      case AWB_NUMBER:
442 rajveer 5656
        if (value == null) {
6643 rajveer 5657
          unsetAwbNumber();
442 rajveer 5658
        } else {
6643 rajveer 5659
          setAwbNumber((String)value);
442 rajveer 5660
        }
5661
        break;
5662
 
648 chandransh 5663
      case PROVIDER_ID:
442 rajveer 5664
        if (value == null) {
648 chandransh 5665
          unsetProviderId();
442 rajveer 5666
        } else {
648 chandransh 5667
          setProviderId((Long)value);
442 rajveer 5668
        }
5669
        break;
5670
 
5671
      }
5672
    }
5673
 
5674
    public Object getFieldValue(_Fields field) {
5675
      switch (field) {
6643 rajveer 5676
      case AWB_NUMBER:
5677
        return getAwbNumber();
442 rajveer 5678
 
648 chandransh 5679
      case PROVIDER_ID:
3430 rajveer 5680
        return Long.valueOf(getProviderId());
442 rajveer 5681
 
5682
      }
5683
      throw new IllegalStateException();
5684
    }
5685
 
3430 rajveer 5686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5687
    public boolean isSet(_Fields field) {
5688
      if (field == null) {
5689
        throw new IllegalArgumentException();
5690
      }
442 rajveer 5691
 
5692
      switch (field) {
6643 rajveer 5693
      case AWB_NUMBER:
5694
        return isSetAwbNumber();
648 chandransh 5695
      case PROVIDER_ID:
5696
        return isSetProviderId();
442 rajveer 5697
      }
5698
      throw new IllegalStateException();
5699
    }
5700
 
5701
    @Override
5702
    public boolean equals(Object that) {
5703
      if (that == null)
5704
        return false;
648 chandransh 5705
      if (that instanceof getShipmentInfo_args)
5706
        return this.equals((getShipmentInfo_args)that);
442 rajveer 5707
      return false;
5708
    }
5709
 
648 chandransh 5710
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 5711
      if (that == null)
5712
        return false;
5713
 
6643 rajveer 5714
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
5715
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
5716
      if (this_present_awbNumber || that_present_awbNumber) {
5717
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 5718
          return false;
6643 rajveer 5719
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 5720
          return false;
5721
      }
5722
 
648 chandransh 5723
      boolean this_present_providerId = true;
5724
      boolean that_present_providerId = true;
5725
      if (this_present_providerId || that_present_providerId) {
5726
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 5727
          return false;
648 chandransh 5728
        if (this.providerId != that.providerId)
442 rajveer 5729
          return false;
5730
      }
5731
 
5732
      return true;
5733
    }
5734
 
5735
    @Override
5736
    public int hashCode() {
5737
      return 0;
5738
    }
5739
 
648 chandransh 5740
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 5741
      if (!getClass().equals(other.getClass())) {
5742
        return getClass().getName().compareTo(other.getClass().getName());
5743
      }
5744
 
5745
      int lastComparison = 0;
648 chandransh 5746
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 5747
 
6643 rajveer 5748
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 5749
      if (lastComparison != 0) {
5750
        return lastComparison;
5751
      }
6643 rajveer 5752
      if (isSetAwbNumber()) {
5753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 5754
        if (lastComparison != 0) {
5755
          return lastComparison;
5756
        }
442 rajveer 5757
      }
3430 rajveer 5758
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 5759
      if (lastComparison != 0) {
5760
        return lastComparison;
5761
      }
3430 rajveer 5762
      if (isSetProviderId()) {
5763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5764
        if (lastComparison != 0) {
5765
          return lastComparison;
5766
        }
442 rajveer 5767
      }
5768
      return 0;
5769
    }
5770
 
3430 rajveer 5771
    public _Fields fieldForId(int fieldId) {
5772
      return _Fields.findByThriftId(fieldId);
5773
    }
5774
 
5775
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5776
      org.apache.thrift.protocol.TField field;
442 rajveer 5777
      iprot.readStructBegin();
5778
      while (true)
5779
      {
5780
        field = iprot.readFieldBegin();
3430 rajveer 5781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 5782
          break;
5783
        }
3430 rajveer 5784
        switch (field.id) {
6643 rajveer 5785
          case 1: // AWB_NUMBER
3430 rajveer 5786
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 5787
              this.awbNumber = iprot.readString();
3430 rajveer 5788
            } else { 
5789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5790
            }
5791
            break;
5792
          case 2: // PROVIDER_ID
5793
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5794
              this.providerId = iprot.readI64();
5795
              setProviderIdIsSet(true);
5796
            } else { 
5797
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5798
            }
5799
            break;
5800
          default:
5801
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 5802
        }
3430 rajveer 5803
        iprot.readFieldEnd();
442 rajveer 5804
      }
5805
      iprot.readStructEnd();
5806
      validate();
5807
    }
5808
 
3430 rajveer 5809
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 5810
      validate();
5811
 
5812
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 5813
      if (this.awbNumber != null) {
5814
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
5815
        oprot.writeString(this.awbNumber);
442 rajveer 5816
        oprot.writeFieldEnd();
5817
      }
648 chandransh 5818
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5819
      oprot.writeI64(this.providerId);
5820
      oprot.writeFieldEnd();
442 rajveer 5821
      oprot.writeFieldStop();
5822
      oprot.writeStructEnd();
5823
    }
5824
 
5825
    @Override
5826
    public String toString() {
648 chandransh 5827
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 5828
      boolean first = true;
5829
 
6643 rajveer 5830
      sb.append("awbNumber:");
5831
      if (this.awbNumber == null) {
442 rajveer 5832
        sb.append("null");
5833
      } else {
6643 rajveer 5834
        sb.append(this.awbNumber);
442 rajveer 5835
      }
5836
      first = false;
5837
      if (!first) sb.append(", ");
648 chandransh 5838
      sb.append("providerId:");
5839
      sb.append(this.providerId);
442 rajveer 5840
      first = false;
5841
      sb.append(")");
5842
      return sb.toString();
5843
    }
5844
 
3430 rajveer 5845
    public void validate() throws org.apache.thrift.TException {
442 rajveer 5846
      // check for required fields
5847
    }
5848
 
3430 rajveer 5849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5850
      try {
5851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5852
      } catch (org.apache.thrift.TException te) {
5853
        throw new java.io.IOException(te);
5854
      }
5855
    }
5856
 
5857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5858
      try {
5859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5860
      } catch (org.apache.thrift.TException te) {
5861
        throw new java.io.IOException(te);
5862
      }
5863
    }
5864
 
442 rajveer 5865
  }
5866
 
3430 rajveer 5867
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
5868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 5869
 
3430 rajveer 5870
    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);
5871
    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 5872
 
3430 rajveer 5873
    private List<AwbUpdate> success; // required
5874
    private LogisticsServiceException se; // required
412 ashish 5875
 
5876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5878
      SUCCESS((short)0, "success"),
5879
      SE((short)1, "se");
412 ashish 5880
 
5881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5882
 
5883
      static {
5884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5885
          byName.put(field.getFieldName(), field);
5886
        }
5887
      }
5888
 
5889
      /**
5890
       * Find the _Fields constant that matches fieldId, or null if its not found.
5891
       */
5892
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5893
        switch(fieldId) {
5894
          case 0: // SUCCESS
5895
            return SUCCESS;
5896
          case 1: // SE
5897
            return SE;
5898
          default:
5899
            return null;
5900
        }
412 ashish 5901
      }
5902
 
5903
      /**
5904
       * Find the _Fields constant that matches fieldId, throwing an exception
5905
       * if it is not found.
5906
       */
5907
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5908
        _Fields fields = findByThriftId(fieldId);
5909
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5910
        return fields;
5911
      }
5912
 
5913
      /**
5914
       * Find the _Fields constant that matches name, or null if its not found.
5915
       */
5916
      public static _Fields findByName(String name) {
5917
        return byName.get(name);
5918
      }
5919
 
5920
      private final short _thriftId;
5921
      private final String _fieldName;
5922
 
5923
      _Fields(short thriftId, String fieldName) {
5924
        _thriftId = thriftId;
5925
        _fieldName = fieldName;
5926
      }
5927
 
5928
      public short getThriftFieldId() {
5929
        return _thriftId;
5930
      }
5931
 
5932
      public String getFieldName() {
5933
        return _fieldName;
5934
      }
5935
    }
5936
 
5937
    // isset id assignments
5938
 
3430 rajveer 5939
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5940
    static {
3430 rajveer 5941
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5942
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5943
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5944
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
5945
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 5949
    }
5950
 
5951
    public getShipmentInfo_result() {
5952
    }
5953
 
5954
    public getShipmentInfo_result(
648 chandransh 5955
      List<AwbUpdate> success,
5956
      LogisticsServiceException se)
412 ashish 5957
    {
5958
      this();
5959
      this.success = success;
648 chandransh 5960
      this.se = se;
412 ashish 5961
    }
5962
 
5963
    /**
5964
     * Performs a deep copy on <i>other</i>.
5965
     */
5966
    public getShipmentInfo_result(getShipmentInfo_result other) {
5967
      if (other.isSetSuccess()) {
648 chandransh 5968
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
5969
        for (AwbUpdate other_element : other.success) {
5970
          __this__success.add(new AwbUpdate(other_element));
5971
        }
5972
        this.success = __this__success;
412 ashish 5973
      }
648 chandransh 5974
      if (other.isSetSe()) {
5975
        this.se = new LogisticsServiceException(other.se);
5976
      }
412 ashish 5977
    }
5978
 
5979
    public getShipmentInfo_result deepCopy() {
5980
      return new getShipmentInfo_result(this);
5981
    }
5982
 
3430 rajveer 5983
    @Override
5984
    public void clear() {
5985
      this.success = null;
5986
      this.se = null;
412 ashish 5987
    }
5988
 
5989
    public int getSuccessSize() {
5990
      return (this.success == null) ? 0 : this.success.size();
5991
    }
5992
 
648 chandransh 5993
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 5994
      return (this.success == null) ? null : this.success.iterator();
5995
    }
5996
 
648 chandransh 5997
    public void addToSuccess(AwbUpdate elem) {
412 ashish 5998
      if (this.success == null) {
648 chandransh 5999
        this.success = new ArrayList<AwbUpdate>();
412 ashish 6000
      }
6001
      this.success.add(elem);
6002
    }
6003
 
648 chandransh 6004
    public List<AwbUpdate> getSuccess() {
412 ashish 6005
      return this.success;
6006
    }
6007
 
3430 rajveer 6008
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 6009
      this.success = success;
6010
    }
6011
 
6012
    public void unsetSuccess() {
6013
      this.success = null;
6014
    }
6015
 
3430 rajveer 6016
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6017
    public boolean isSetSuccess() {
6018
      return this.success != null;
6019
    }
6020
 
6021
    public void setSuccessIsSet(boolean value) {
6022
      if (!value) {
6023
        this.success = null;
6024
      }
6025
    }
6026
 
648 chandransh 6027
    public LogisticsServiceException getSe() {
6028
      return this.se;
412 ashish 6029
    }
6030
 
3430 rajveer 6031
    public void setSe(LogisticsServiceException se) {
648 chandransh 6032
      this.se = se;
412 ashish 6033
    }
6034
 
648 chandransh 6035
    public void unsetSe() {
6036
      this.se = null;
412 ashish 6037
    }
6038
 
3430 rajveer 6039
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6040
    public boolean isSetSe() {
6041
      return this.se != null;
412 ashish 6042
    }
6043
 
648 chandransh 6044
    public void setSeIsSet(boolean value) {
6045
      if (!value) {
6046
        this.se = null;
412 ashish 6047
      }
6048
    }
6049
 
6050
    public void setFieldValue(_Fields field, Object value) {
6051
      switch (field) {
648 chandransh 6052
      case SUCCESS:
412 ashish 6053
        if (value == null) {
648 chandransh 6054
          unsetSuccess();
412 ashish 6055
        } else {
648 chandransh 6056
          setSuccess((List<AwbUpdate>)value);
412 ashish 6057
        }
6058
        break;
6059
 
648 chandransh 6060
      case SE:
412 ashish 6061
        if (value == null) {
648 chandransh 6062
          unsetSe();
412 ashish 6063
        } else {
648 chandransh 6064
          setSe((LogisticsServiceException)value);
412 ashish 6065
        }
6066
        break;
6067
 
6068
      }
6069
    }
6070
 
6071
    public Object getFieldValue(_Fields field) {
6072
      switch (field) {
648 chandransh 6073
      case SUCCESS:
6074
        return getSuccess();
412 ashish 6075
 
648 chandransh 6076
      case SE:
6077
        return getSe();
412 ashish 6078
 
6079
      }
6080
      throw new IllegalStateException();
6081
    }
6082
 
3430 rajveer 6083
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6084
    public boolean isSet(_Fields field) {
6085
      if (field == null) {
6086
        throw new IllegalArgumentException();
6087
      }
412 ashish 6088
 
6089
      switch (field) {
648 chandransh 6090
      case SUCCESS:
6091
        return isSetSuccess();
6092
      case SE:
6093
        return isSetSe();
412 ashish 6094
      }
6095
      throw new IllegalStateException();
6096
    }
6097
 
6098
    @Override
6099
    public boolean equals(Object that) {
6100
      if (that == null)
6101
        return false;
648 chandransh 6102
      if (that instanceof getShipmentInfo_result)
6103
        return this.equals((getShipmentInfo_result)that);
412 ashish 6104
      return false;
6105
    }
6106
 
648 chandransh 6107
    public boolean equals(getShipmentInfo_result that) {
412 ashish 6108
      if (that == null)
6109
        return false;
6110
 
648 chandransh 6111
      boolean this_present_success = true && this.isSetSuccess();
6112
      boolean that_present_success = true && that.isSetSuccess();
6113
      if (this_present_success || that_present_success) {
6114
        if (!(this_present_success && that_present_success))
412 ashish 6115
          return false;
648 chandransh 6116
        if (!this.success.equals(that.success))
412 ashish 6117
          return false;
6118
      }
6119
 
648 chandransh 6120
      boolean this_present_se = true && this.isSetSe();
6121
      boolean that_present_se = true && that.isSetSe();
6122
      if (this_present_se || that_present_se) {
6123
        if (!(this_present_se && that_present_se))
412 ashish 6124
          return false;
648 chandransh 6125
        if (!this.se.equals(that.se))
412 ashish 6126
          return false;
6127
      }
6128
 
6129
      return true;
6130
    }
6131
 
6132
    @Override
6133
    public int hashCode() {
6134
      return 0;
6135
    }
6136
 
648 chandransh 6137
    public int compareTo(getShipmentInfo_result other) {
412 ashish 6138
      if (!getClass().equals(other.getClass())) {
6139
        return getClass().getName().compareTo(other.getClass().getName());
6140
      }
6141
 
6142
      int lastComparison = 0;
648 chandransh 6143
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 6144
 
3430 rajveer 6145
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6146
      if (lastComparison != 0) {
6147
        return lastComparison;
6148
      }
3430 rajveer 6149
      if (isSetSuccess()) {
6150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6151
        if (lastComparison != 0) {
6152
          return lastComparison;
6153
        }
412 ashish 6154
      }
3430 rajveer 6155
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6156
      if (lastComparison != 0) {
6157
        return lastComparison;
6158
      }
3430 rajveer 6159
      if (isSetSe()) {
6160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6161
        if (lastComparison != 0) {
6162
          return lastComparison;
6163
        }
412 ashish 6164
      }
6165
      return 0;
6166
    }
6167
 
3430 rajveer 6168
    public _Fields fieldForId(int fieldId) {
6169
      return _Fields.findByThriftId(fieldId);
6170
    }
6171
 
6172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6173
      org.apache.thrift.protocol.TField field;
412 ashish 6174
      iprot.readStructBegin();
6175
      while (true)
6176
      {
6177
        field = iprot.readFieldBegin();
3430 rajveer 6178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6179
          break;
6180
        }
3430 rajveer 6181
        switch (field.id) {
6182
          case 0: // SUCCESS
6183
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6184
              {
6185
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
6186
                this.success = new ArrayList<AwbUpdate>(_list9.size);
6187
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 6188
                {
3430 rajveer 6189
                  AwbUpdate _elem11; // required
6190
                  _elem11 = new AwbUpdate();
6191
                  _elem11.read(iprot);
6192
                  this.success.add(_elem11);
412 ashish 6193
                }
3430 rajveer 6194
                iprot.readListEnd();
412 ashish 6195
              }
3430 rajveer 6196
            } else { 
6197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6198
            }
6199
            break;
6200
          case 1: // SE
6201
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6202
              this.se = new LogisticsServiceException();
6203
              this.se.read(iprot);
6204
            } else { 
6205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6206
            }
6207
            break;
6208
          default:
6209
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6210
        }
3430 rajveer 6211
        iprot.readFieldEnd();
412 ashish 6212
      }
6213
      iprot.readStructEnd();
6214
      validate();
6215
    }
6216
 
3430 rajveer 6217
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6218
      oprot.writeStructBegin(STRUCT_DESC);
6219
 
6220
      if (this.isSetSuccess()) {
6221
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6222
        {
3430 rajveer 6223
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 6224
          for (AwbUpdate _iter12 : this.success)
412 ashish 6225
          {
3044 chandransh 6226
            _iter12.write(oprot);
412 ashish 6227
          }
6228
          oprot.writeListEnd();
6229
        }
6230
        oprot.writeFieldEnd();
648 chandransh 6231
      } else if (this.isSetSe()) {
6232
        oprot.writeFieldBegin(SE_FIELD_DESC);
6233
        this.se.write(oprot);
6234
        oprot.writeFieldEnd();
412 ashish 6235
      }
6236
      oprot.writeFieldStop();
6237
      oprot.writeStructEnd();
6238
    }
6239
 
6240
    @Override
6241
    public String toString() {
648 chandransh 6242
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 6243
      boolean first = true;
6244
 
6245
      sb.append("success:");
6246
      if (this.success == null) {
6247
        sb.append("null");
6248
      } else {
6249
        sb.append(this.success);
6250
      }
6251
      first = false;
648 chandransh 6252
      if (!first) sb.append(", ");
6253
      sb.append("se:");
6254
      if (this.se == null) {
6255
        sb.append("null");
6256
      } else {
6257
        sb.append(this.se);
6258
      }
6259
      first = false;
412 ashish 6260
      sb.append(")");
6261
      return sb.toString();
6262
    }
6263
 
3430 rajveer 6264
    public void validate() throws org.apache.thrift.TException {
412 ashish 6265
      // check for required fields
6266
    }
6267
 
3430 rajveer 6268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6269
      try {
6270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6271
      } catch (org.apache.thrift.TException te) {
6272
        throw new java.io.IOException(te);
6273
      }
6274
    }
6275
 
6276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6277
      try {
6278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6279
      } catch (org.apache.thrift.TException te) {
6280
        throw new java.io.IOException(te);
6281
      }
6282
    }
6283
 
412 ashish 6284
  }
6285
 
6643 rajveer 6286
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
6288
 
6289
    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);
6290
 
6291
    private AwbUpdate update; // required
6292
 
6293
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6294
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6295
      UPDATE((short)1, "update");
6296
 
6297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6298
 
6299
      static {
6300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6301
          byName.put(field.getFieldName(), field);
6302
        }
6303
      }
6304
 
6305
      /**
6306
       * Find the _Fields constant that matches fieldId, or null if its not found.
6307
       */
6308
      public static _Fields findByThriftId(int fieldId) {
6309
        switch(fieldId) {
6310
          case 1: // UPDATE
6311
            return UPDATE;
6312
          default:
6313
            return null;
6314
        }
6315
      }
6316
 
6317
      /**
6318
       * Find the _Fields constant that matches fieldId, throwing an exception
6319
       * if it is not found.
6320
       */
6321
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6322
        _Fields fields = findByThriftId(fieldId);
6323
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6324
        return fields;
6325
      }
6326
 
6327
      /**
6328
       * Find the _Fields constant that matches name, or null if its not found.
6329
       */
6330
      public static _Fields findByName(String name) {
6331
        return byName.get(name);
6332
      }
6333
 
6334
      private final short _thriftId;
6335
      private final String _fieldName;
6336
 
6337
      _Fields(short thriftId, String fieldName) {
6338
        _thriftId = thriftId;
6339
        _fieldName = fieldName;
6340
      }
6341
 
6342
      public short getThriftFieldId() {
6343
        return _thriftId;
6344
      }
6345
 
6346
      public String getFieldName() {
6347
        return _fieldName;
6348
      }
6349
    }
6350
 
6351
    // isset id assignments
6352
 
6353
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6354
    static {
6355
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6356
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6357
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
6358
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6359
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
6360
    }
6361
 
6362
    public storeShipmentInfo_args() {
6363
    }
6364
 
6365
    public storeShipmentInfo_args(
6366
      AwbUpdate update)
6367
    {
6368
      this();
6369
      this.update = update;
6370
    }
6371
 
6372
    /**
6373
     * Performs a deep copy on <i>other</i>.
6374
     */
6375
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
6376
      if (other.isSetUpdate()) {
6377
        this.update = new AwbUpdate(other.update);
6378
      }
6379
    }
6380
 
6381
    public storeShipmentInfo_args deepCopy() {
6382
      return new storeShipmentInfo_args(this);
6383
    }
6384
 
6385
    @Override
6386
    public void clear() {
6387
      this.update = null;
6388
    }
6389
 
6390
    public AwbUpdate getUpdate() {
6391
      return this.update;
6392
    }
6393
 
6394
    public void setUpdate(AwbUpdate update) {
6395
      this.update = update;
6396
    }
6397
 
6398
    public void unsetUpdate() {
6399
      this.update = null;
6400
    }
6401
 
6402
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
6403
    public boolean isSetUpdate() {
6404
      return this.update != null;
6405
    }
6406
 
6407
    public void setUpdateIsSet(boolean value) {
6408
      if (!value) {
6409
        this.update = null;
6410
      }
6411
    }
6412
 
6413
    public void setFieldValue(_Fields field, Object value) {
6414
      switch (field) {
6415
      case UPDATE:
6416
        if (value == null) {
6417
          unsetUpdate();
6418
        } else {
6419
          setUpdate((AwbUpdate)value);
6420
        }
6421
        break;
6422
 
6423
      }
6424
    }
6425
 
6426
    public Object getFieldValue(_Fields field) {
6427
      switch (field) {
6428
      case UPDATE:
6429
        return getUpdate();
6430
 
6431
      }
6432
      throw new IllegalStateException();
6433
    }
6434
 
6435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6436
    public boolean isSet(_Fields field) {
6437
      if (field == null) {
6438
        throw new IllegalArgumentException();
6439
      }
6440
 
6441
      switch (field) {
6442
      case UPDATE:
6443
        return isSetUpdate();
6444
      }
6445
      throw new IllegalStateException();
6446
    }
6447
 
6448
    @Override
6449
    public boolean equals(Object that) {
6450
      if (that == null)
6451
        return false;
6452
      if (that instanceof storeShipmentInfo_args)
6453
        return this.equals((storeShipmentInfo_args)that);
6454
      return false;
6455
    }
6456
 
6457
    public boolean equals(storeShipmentInfo_args that) {
6458
      if (that == null)
6459
        return false;
6460
 
6461
      boolean this_present_update = true && this.isSetUpdate();
6462
      boolean that_present_update = true && that.isSetUpdate();
6463
      if (this_present_update || that_present_update) {
6464
        if (!(this_present_update && that_present_update))
6465
          return false;
6466
        if (!this.update.equals(that.update))
6467
          return false;
6468
      }
6469
 
6470
      return true;
6471
    }
6472
 
6473
    @Override
6474
    public int hashCode() {
6475
      return 0;
6476
    }
6477
 
6478
    public int compareTo(storeShipmentInfo_args other) {
6479
      if (!getClass().equals(other.getClass())) {
6480
        return getClass().getName().compareTo(other.getClass().getName());
6481
      }
6482
 
6483
      int lastComparison = 0;
6484
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
6485
 
6486
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
6487
      if (lastComparison != 0) {
6488
        return lastComparison;
6489
      }
6490
      if (isSetUpdate()) {
6491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
6492
        if (lastComparison != 0) {
6493
          return lastComparison;
6494
        }
6495
      }
6496
      return 0;
6497
    }
6498
 
6499
    public _Fields fieldForId(int fieldId) {
6500
      return _Fields.findByThriftId(fieldId);
6501
    }
6502
 
6503
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6504
      org.apache.thrift.protocol.TField field;
6505
      iprot.readStructBegin();
6506
      while (true)
6507
      {
6508
        field = iprot.readFieldBegin();
6509
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6510
          break;
6511
        }
6512
        switch (field.id) {
6513
          case 1: // UPDATE
6514
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6515
              this.update = new AwbUpdate();
6516
              this.update.read(iprot);
6517
            } else { 
6518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6519
            }
6520
            break;
6521
          default:
6522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6523
        }
6524
        iprot.readFieldEnd();
6525
      }
6526
      iprot.readStructEnd();
6527
      validate();
6528
    }
6529
 
6530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6531
      validate();
6532
 
6533
      oprot.writeStructBegin(STRUCT_DESC);
6534
      if (this.update != null) {
6535
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
6536
        this.update.write(oprot);
6537
        oprot.writeFieldEnd();
6538
      }
6539
      oprot.writeFieldStop();
6540
      oprot.writeStructEnd();
6541
    }
6542
 
6543
    @Override
6544
    public String toString() {
6545
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
6546
      boolean first = true;
6547
 
6548
      sb.append("update:");
6549
      if (this.update == null) {
6550
        sb.append("null");
6551
      } else {
6552
        sb.append(this.update);
6553
      }
6554
      first = false;
6555
      sb.append(")");
6556
      return sb.toString();
6557
    }
6558
 
6559
    public void validate() throws org.apache.thrift.TException {
6560
      // check for required fields
6561
    }
6562
 
6563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6564
      try {
6565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6566
      } catch (org.apache.thrift.TException te) {
6567
        throw new java.io.IOException(te);
6568
      }
6569
    }
6570
 
6571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6572
      try {
6573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6574
      } catch (org.apache.thrift.TException te) {
6575
        throw new java.io.IOException(te);
6576
      }
6577
    }
6578
 
6579
  }
6580
 
6581
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
6582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
6583
 
6584
    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);
6585
 
6586
    private LogisticsServiceException se; // required
6587
 
6588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6590
      SE((short)1, "se");
6591
 
6592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6593
 
6594
      static {
6595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6596
          byName.put(field.getFieldName(), field);
6597
        }
6598
      }
6599
 
6600
      /**
6601
       * Find the _Fields constant that matches fieldId, or null if its not found.
6602
       */
6603
      public static _Fields findByThriftId(int fieldId) {
6604
        switch(fieldId) {
6605
          case 1: // SE
6606
            return SE;
6607
          default:
6608
            return null;
6609
        }
6610
      }
6611
 
6612
      /**
6613
       * Find the _Fields constant that matches fieldId, throwing an exception
6614
       * if it is not found.
6615
       */
6616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6617
        _Fields fields = findByThriftId(fieldId);
6618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6619
        return fields;
6620
      }
6621
 
6622
      /**
6623
       * Find the _Fields constant that matches name, or null if its not found.
6624
       */
6625
      public static _Fields findByName(String name) {
6626
        return byName.get(name);
6627
      }
6628
 
6629
      private final short _thriftId;
6630
      private final String _fieldName;
6631
 
6632
      _Fields(short thriftId, String fieldName) {
6633
        _thriftId = thriftId;
6634
        _fieldName = fieldName;
6635
      }
6636
 
6637
      public short getThriftFieldId() {
6638
        return _thriftId;
6639
      }
6640
 
6641
      public String getFieldName() {
6642
        return _fieldName;
6643
      }
6644
    }
6645
 
6646
    // isset id assignments
6647
 
6648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6649
    static {
6650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6651
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
6655
    }
6656
 
6657
    public storeShipmentInfo_result() {
6658
    }
6659
 
6660
    public storeShipmentInfo_result(
6661
      LogisticsServiceException se)
6662
    {
6663
      this();
6664
      this.se = se;
6665
    }
6666
 
6667
    /**
6668
     * Performs a deep copy on <i>other</i>.
6669
     */
6670
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
6671
      if (other.isSetSe()) {
6672
        this.se = new LogisticsServiceException(other.se);
6673
      }
6674
    }
6675
 
6676
    public storeShipmentInfo_result deepCopy() {
6677
      return new storeShipmentInfo_result(this);
6678
    }
6679
 
6680
    @Override
6681
    public void clear() {
6682
      this.se = null;
6683
    }
6684
 
6685
    public LogisticsServiceException getSe() {
6686
      return this.se;
6687
    }
6688
 
6689
    public void setSe(LogisticsServiceException se) {
6690
      this.se = se;
6691
    }
6692
 
6693
    public void unsetSe() {
6694
      this.se = null;
6695
    }
6696
 
6697
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
6698
    public boolean isSetSe() {
6699
      return this.se != null;
6700
    }
6701
 
6702
    public void setSeIsSet(boolean value) {
6703
      if (!value) {
6704
        this.se = null;
6705
      }
6706
    }
6707
 
6708
    public void setFieldValue(_Fields field, Object value) {
6709
      switch (field) {
6710
      case SE:
6711
        if (value == null) {
6712
          unsetSe();
6713
        } else {
6714
          setSe((LogisticsServiceException)value);
6715
        }
6716
        break;
6717
 
6718
      }
6719
    }
6720
 
6721
    public Object getFieldValue(_Fields field) {
6722
      switch (field) {
6723
      case SE:
6724
        return getSe();
6725
 
6726
      }
6727
      throw new IllegalStateException();
6728
    }
6729
 
6730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6731
    public boolean isSet(_Fields field) {
6732
      if (field == null) {
6733
        throw new IllegalArgumentException();
6734
      }
6735
 
6736
      switch (field) {
6737
      case SE:
6738
        return isSetSe();
6739
      }
6740
      throw new IllegalStateException();
6741
    }
6742
 
6743
    @Override
6744
    public boolean equals(Object that) {
6745
      if (that == null)
6746
        return false;
6747
      if (that instanceof storeShipmentInfo_result)
6748
        return this.equals((storeShipmentInfo_result)that);
6749
      return false;
6750
    }
6751
 
6752
    public boolean equals(storeShipmentInfo_result that) {
6753
      if (that == null)
6754
        return false;
6755
 
6756
      boolean this_present_se = true && this.isSetSe();
6757
      boolean that_present_se = true && that.isSetSe();
6758
      if (this_present_se || that_present_se) {
6759
        if (!(this_present_se && that_present_se))
6760
          return false;
6761
        if (!this.se.equals(that.se))
6762
          return false;
6763
      }
6764
 
6765
      return true;
6766
    }
6767
 
6768
    @Override
6769
    public int hashCode() {
6770
      return 0;
6771
    }
6772
 
6773
    public int compareTo(storeShipmentInfo_result other) {
6774
      if (!getClass().equals(other.getClass())) {
6775
        return getClass().getName().compareTo(other.getClass().getName());
6776
      }
6777
 
6778
      int lastComparison = 0;
6779
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
6780
 
6781
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
6782
      if (lastComparison != 0) {
6783
        return lastComparison;
6784
      }
6785
      if (isSetSe()) {
6786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6787
        if (lastComparison != 0) {
6788
          return lastComparison;
6789
        }
6790
      }
6791
      return 0;
6792
    }
6793
 
6794
    public _Fields fieldForId(int fieldId) {
6795
      return _Fields.findByThriftId(fieldId);
6796
    }
6797
 
6798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6799
      org.apache.thrift.protocol.TField field;
6800
      iprot.readStructBegin();
6801
      while (true)
6802
      {
6803
        field = iprot.readFieldBegin();
6804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6805
          break;
6806
        }
6807
        switch (field.id) {
6808
          case 1: // SE
6809
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6810
              this.se = new LogisticsServiceException();
6811
              this.se.read(iprot);
6812
            } else { 
6813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6814
            }
6815
            break;
6816
          default:
6817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6818
        }
6819
        iprot.readFieldEnd();
6820
      }
6821
      iprot.readStructEnd();
6822
      validate();
6823
    }
6824
 
6825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6826
      oprot.writeStructBegin(STRUCT_DESC);
6827
 
6828
      if (this.isSetSe()) {
6829
        oprot.writeFieldBegin(SE_FIELD_DESC);
6830
        this.se.write(oprot);
6831
        oprot.writeFieldEnd();
6832
      }
6833
      oprot.writeFieldStop();
6834
      oprot.writeStructEnd();
6835
    }
6836
 
6837
    @Override
6838
    public String toString() {
6839
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
6840
      boolean first = true;
6841
 
6842
      sb.append("se:");
6843
      if (this.se == null) {
6844
        sb.append("null");
6845
      } else {
6846
        sb.append(this.se);
6847
      }
6848
      first = false;
6849
      sb.append(")");
6850
      return sb.toString();
6851
    }
6852
 
6853
    public void validate() throws org.apache.thrift.TException {
6854
      // check for required fields
6855
    }
6856
 
6857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6858
      try {
6859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6860
      } catch (org.apache.thrift.TException te) {
6861
        throw new java.io.IOException(te);
6862
      }
6863
    }
6864
 
6865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6866
      try {
6867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6868
      } catch (org.apache.thrift.TException te) {
6869
        throw new java.io.IOException(te);
6870
      }
6871
    }
6872
 
6873
  }
6874
 
3430 rajveer 6875
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
6876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 6877
 
3430 rajveer 6878
    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);
6879
    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 6880
 
3430 rajveer 6881
    private long providerId; // required
6882
    private String pinCode; // required
730 chandransh 6883
 
6884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 6886
      PROVIDER_ID((short)1, "providerId"),
6887
      PIN_CODE((short)2, "pinCode");
6888
 
6889
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6890
 
6891
      static {
6892
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6893
          byName.put(field.getFieldName(), field);
6894
        }
6895
      }
6896
 
6897
      /**
6898
       * Find the _Fields constant that matches fieldId, or null if its not found.
6899
       */
6900
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6901
        switch(fieldId) {
6902
          case 1: // PROVIDER_ID
6903
            return PROVIDER_ID;
6904
          case 2: // PIN_CODE
6905
            return PIN_CODE;
6906
          default:
6907
            return null;
6908
        }
730 chandransh 6909
      }
6910
 
6911
      /**
6912
       * Find the _Fields constant that matches fieldId, throwing an exception
6913
       * if it is not found.
6914
       */
6915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6916
        _Fields fields = findByThriftId(fieldId);
6917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6918
        return fields;
6919
      }
6920
 
6921
      /**
6922
       * Find the _Fields constant that matches name, or null if its not found.
6923
       */
6924
      public static _Fields findByName(String name) {
6925
        return byName.get(name);
6926
      }
6927
 
6928
      private final short _thriftId;
6929
      private final String _fieldName;
6930
 
6931
      _Fields(short thriftId, String fieldName) {
6932
        _thriftId = thriftId;
6933
        _fieldName = fieldName;
6934
      }
6935
 
6936
      public short getThriftFieldId() {
6937
        return _thriftId;
6938
      }
6939
 
6940
      public String getFieldName() {
6941
        return _fieldName;
6942
      }
6943
    }
6944
 
6945
    // isset id assignments
6946
    private static final int __PROVIDERID_ISSET_ID = 0;
6947
    private BitSet __isset_bit_vector = new BitSet(1);
6948
 
3430 rajveer 6949
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 6950
    static {
3430 rajveer 6951
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6952
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6954
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 6958
    }
6959
 
6960
    public getDestinationCode_args() {
6961
    }
6962
 
6963
    public getDestinationCode_args(
6964
      long providerId,
6965
      String pinCode)
6966
    {
6967
      this();
6968
      this.providerId = providerId;
6969
      setProviderIdIsSet(true);
6970
      this.pinCode = pinCode;
6971
    }
6972
 
6973
    /**
6974
     * Performs a deep copy on <i>other</i>.
6975
     */
6976
    public getDestinationCode_args(getDestinationCode_args other) {
6977
      __isset_bit_vector.clear();
6978
      __isset_bit_vector.or(other.__isset_bit_vector);
6979
      this.providerId = other.providerId;
6980
      if (other.isSetPinCode()) {
6981
        this.pinCode = other.pinCode;
6982
      }
6983
    }
6984
 
6985
    public getDestinationCode_args deepCopy() {
6986
      return new getDestinationCode_args(this);
6987
    }
6988
 
3430 rajveer 6989
    @Override
6990
    public void clear() {
6991
      setProviderIdIsSet(false);
6992
      this.providerId = 0;
6993
      this.pinCode = null;
730 chandransh 6994
    }
6995
 
6996
    public long getProviderId() {
6997
      return this.providerId;
6998
    }
6999
 
3430 rajveer 7000
    public void setProviderId(long providerId) {
730 chandransh 7001
      this.providerId = providerId;
7002
      setProviderIdIsSet(true);
7003
    }
7004
 
7005
    public void unsetProviderId() {
7006
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
7007
    }
7008
 
3430 rajveer 7009
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 7010
    public boolean isSetProviderId() {
7011
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
7012
    }
7013
 
7014
    public void setProviderIdIsSet(boolean value) {
7015
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
7016
    }
7017
 
7018
    public String getPinCode() {
7019
      return this.pinCode;
7020
    }
7021
 
3430 rajveer 7022
    public void setPinCode(String pinCode) {
730 chandransh 7023
      this.pinCode = pinCode;
7024
    }
7025
 
7026
    public void unsetPinCode() {
7027
      this.pinCode = null;
7028
    }
7029
 
3430 rajveer 7030
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 7031
    public boolean isSetPinCode() {
7032
      return this.pinCode != null;
7033
    }
7034
 
7035
    public void setPinCodeIsSet(boolean value) {
7036
      if (!value) {
7037
        this.pinCode = null;
7038
      }
7039
    }
7040
 
7041
    public void setFieldValue(_Fields field, Object value) {
7042
      switch (field) {
7043
      case PROVIDER_ID:
7044
        if (value == null) {
7045
          unsetProviderId();
7046
        } else {
7047
          setProviderId((Long)value);
7048
        }
7049
        break;
7050
 
7051
      case PIN_CODE:
7052
        if (value == null) {
7053
          unsetPinCode();
7054
        } else {
7055
          setPinCode((String)value);
7056
        }
7057
        break;
7058
 
7059
      }
7060
    }
7061
 
7062
    public Object getFieldValue(_Fields field) {
7063
      switch (field) {
7064
      case PROVIDER_ID:
3430 rajveer 7065
        return Long.valueOf(getProviderId());
730 chandransh 7066
 
7067
      case PIN_CODE:
7068
        return getPinCode();
7069
 
7070
      }
7071
      throw new IllegalStateException();
7072
    }
7073
 
3430 rajveer 7074
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7075
    public boolean isSet(_Fields field) {
7076
      if (field == null) {
7077
        throw new IllegalArgumentException();
7078
      }
730 chandransh 7079
 
7080
      switch (field) {
7081
      case PROVIDER_ID:
7082
        return isSetProviderId();
7083
      case PIN_CODE:
7084
        return isSetPinCode();
7085
      }
7086
      throw new IllegalStateException();
7087
    }
7088
 
7089
    @Override
7090
    public boolean equals(Object that) {
7091
      if (that == null)
7092
        return false;
7093
      if (that instanceof getDestinationCode_args)
7094
        return this.equals((getDestinationCode_args)that);
7095
      return false;
7096
    }
7097
 
7098
    public boolean equals(getDestinationCode_args that) {
7099
      if (that == null)
7100
        return false;
7101
 
7102
      boolean this_present_providerId = true;
7103
      boolean that_present_providerId = true;
7104
      if (this_present_providerId || that_present_providerId) {
7105
        if (!(this_present_providerId && that_present_providerId))
7106
          return false;
7107
        if (this.providerId != that.providerId)
7108
          return false;
7109
      }
7110
 
7111
      boolean this_present_pinCode = true && this.isSetPinCode();
7112
      boolean that_present_pinCode = true && that.isSetPinCode();
7113
      if (this_present_pinCode || that_present_pinCode) {
7114
        if (!(this_present_pinCode && that_present_pinCode))
7115
          return false;
7116
        if (!this.pinCode.equals(that.pinCode))
7117
          return false;
7118
      }
7119
 
7120
      return true;
7121
    }
7122
 
7123
    @Override
7124
    public int hashCode() {
7125
      return 0;
7126
    }
7127
 
7128
    public int compareTo(getDestinationCode_args other) {
7129
      if (!getClass().equals(other.getClass())) {
7130
        return getClass().getName().compareTo(other.getClass().getName());
7131
      }
7132
 
7133
      int lastComparison = 0;
7134
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
7135
 
3430 rajveer 7136
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 7137
      if (lastComparison != 0) {
7138
        return lastComparison;
7139
      }
3430 rajveer 7140
      if (isSetProviderId()) {
7141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7142
        if (lastComparison != 0) {
7143
          return lastComparison;
7144
        }
730 chandransh 7145
      }
3430 rajveer 7146
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 7147
      if (lastComparison != 0) {
7148
        return lastComparison;
7149
      }
3430 rajveer 7150
      if (isSetPinCode()) {
7151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
7152
        if (lastComparison != 0) {
7153
          return lastComparison;
7154
        }
730 chandransh 7155
      }
7156
      return 0;
7157
    }
7158
 
3430 rajveer 7159
    public _Fields fieldForId(int fieldId) {
7160
      return _Fields.findByThriftId(fieldId);
7161
    }
7162
 
7163
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7164
      org.apache.thrift.protocol.TField field;
730 chandransh 7165
      iprot.readStructBegin();
7166
      while (true)
7167
      {
7168
        field = iprot.readFieldBegin();
3430 rajveer 7169
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 7170
          break;
7171
        }
3430 rajveer 7172
        switch (field.id) {
7173
          case 1: // PROVIDER_ID
7174
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7175
              this.providerId = iprot.readI64();
7176
              setProviderIdIsSet(true);
7177
            } else { 
7178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7179
            }
7180
            break;
7181
          case 2: // PIN_CODE
7182
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7183
              this.pinCode = iprot.readString();
7184
            } else { 
7185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7186
            }
7187
            break;
7188
          default:
7189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 7190
        }
3430 rajveer 7191
        iprot.readFieldEnd();
730 chandransh 7192
      }
7193
      iprot.readStructEnd();
7194
      validate();
7195
    }
7196
 
3430 rajveer 7197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 7198
      validate();
7199
 
7200
      oprot.writeStructBegin(STRUCT_DESC);
7201
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7202
      oprot.writeI64(this.providerId);
7203
      oprot.writeFieldEnd();
7204
      if (this.pinCode != null) {
7205
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
7206
        oprot.writeString(this.pinCode);
7207
        oprot.writeFieldEnd();
7208
      }
7209
      oprot.writeFieldStop();
7210
      oprot.writeStructEnd();
7211
    }
7212
 
7213
    @Override
7214
    public String toString() {
7215
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
7216
      boolean first = true;
7217
 
7218
      sb.append("providerId:");
7219
      sb.append(this.providerId);
7220
      first = false;
7221
      if (!first) sb.append(", ");
7222
      sb.append("pinCode:");
7223
      if (this.pinCode == null) {
7224
        sb.append("null");
7225
      } else {
7226
        sb.append(this.pinCode);
7227
      }
7228
      first = false;
7229
      sb.append(")");
7230
      return sb.toString();
7231
    }
7232
 
3430 rajveer 7233
    public void validate() throws org.apache.thrift.TException {
730 chandransh 7234
      // check for required fields
7235
    }
7236
 
3430 rajveer 7237
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7238
      try {
7239
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7240
      } catch (org.apache.thrift.TException te) {
7241
        throw new java.io.IOException(te);
7242
      }
7243
    }
7244
 
7245
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7246
      try {
7247
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7248
      } catch (org.apache.thrift.TException te) {
7249
        throw new java.io.IOException(te);
7250
      }
7251
    }
7252
 
730 chandransh 7253
  }
7254
 
3430 rajveer 7255
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
7256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 7257
 
3430 rajveer 7258
    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);
7259
    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 7260
 
3430 rajveer 7261
    private String success; // required
7262
    private LogisticsServiceException se; // required
730 chandransh 7263
 
7264
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7265
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 7266
      SUCCESS((short)0, "success"),
7267
      SE((short)1, "se");
7268
 
7269
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7270
 
7271
      static {
7272
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7273
          byName.put(field.getFieldName(), field);
7274
        }
7275
      }
7276
 
7277
      /**
7278
       * Find the _Fields constant that matches fieldId, or null if its not found.
7279
       */
7280
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7281
        switch(fieldId) {
7282
          case 0: // SUCCESS
7283
            return SUCCESS;
7284
          case 1: // SE
7285
            return SE;
7286
          default:
7287
            return null;
7288
        }
730 chandransh 7289
      }
7290
 
7291
      /**
7292
       * Find the _Fields constant that matches fieldId, throwing an exception
7293
       * if it is not found.
7294
       */
7295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7296
        _Fields fields = findByThriftId(fieldId);
7297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7298
        return fields;
7299
      }
7300
 
7301
      /**
7302
       * Find the _Fields constant that matches name, or null if its not found.
7303
       */
7304
      public static _Fields findByName(String name) {
7305
        return byName.get(name);
7306
      }
7307
 
7308
      private final short _thriftId;
7309
      private final String _fieldName;
7310
 
7311
      _Fields(short thriftId, String fieldName) {
7312
        _thriftId = thriftId;
7313
        _fieldName = fieldName;
7314
      }
7315
 
7316
      public short getThriftFieldId() {
7317
        return _thriftId;
7318
      }
7319
 
7320
      public String getFieldName() {
7321
        return _fieldName;
7322
      }
7323
    }
7324
 
7325
    // isset id assignments
7326
 
3430 rajveer 7327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 7328
    static {
3430 rajveer 7329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7330
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7331
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7332
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7334
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7335
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 7336
    }
7337
 
7338
    public getDestinationCode_result() {
7339
    }
7340
 
7341
    public getDestinationCode_result(
7342
      String success,
7343
      LogisticsServiceException se)
7344
    {
7345
      this();
7346
      this.success = success;
7347
      this.se = se;
7348
    }
7349
 
7350
    /**
7351
     * Performs a deep copy on <i>other</i>.
7352
     */
7353
    public getDestinationCode_result(getDestinationCode_result other) {
7354
      if (other.isSetSuccess()) {
7355
        this.success = other.success;
7356
      }
7357
      if (other.isSetSe()) {
7358
        this.se = new LogisticsServiceException(other.se);
7359
      }
7360
    }
7361
 
7362
    public getDestinationCode_result deepCopy() {
7363
      return new getDestinationCode_result(this);
7364
    }
7365
 
3430 rajveer 7366
    @Override
7367
    public void clear() {
7368
      this.success = null;
7369
      this.se = null;
730 chandransh 7370
    }
7371
 
7372
    public String getSuccess() {
7373
      return this.success;
7374
    }
7375
 
3430 rajveer 7376
    public void setSuccess(String success) {
730 chandransh 7377
      this.success = success;
7378
    }
7379
 
7380
    public void unsetSuccess() {
7381
      this.success = null;
7382
    }
7383
 
3430 rajveer 7384
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 7385
    public boolean isSetSuccess() {
7386
      return this.success != null;
7387
    }
7388
 
7389
    public void setSuccessIsSet(boolean value) {
7390
      if (!value) {
7391
        this.success = null;
7392
      }
7393
    }
7394
 
7395
    public LogisticsServiceException getSe() {
7396
      return this.se;
7397
    }
7398
 
3430 rajveer 7399
    public void setSe(LogisticsServiceException se) {
730 chandransh 7400
      this.se = se;
7401
    }
7402
 
7403
    public void unsetSe() {
7404
      this.se = null;
7405
    }
7406
 
3430 rajveer 7407
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 7408
    public boolean isSetSe() {
7409
      return this.se != null;
7410
    }
7411
 
7412
    public void setSeIsSet(boolean value) {
7413
      if (!value) {
7414
        this.se = null;
7415
      }
7416
    }
7417
 
7418
    public void setFieldValue(_Fields field, Object value) {
7419
      switch (field) {
7420
      case SUCCESS:
7421
        if (value == null) {
7422
          unsetSuccess();
7423
        } else {
7424
          setSuccess((String)value);
7425
        }
7426
        break;
7427
 
7428
      case SE:
7429
        if (value == null) {
7430
          unsetSe();
7431
        } else {
7432
          setSe((LogisticsServiceException)value);
7433
        }
7434
        break;
7435
 
7436
      }
7437
    }
7438
 
7439
    public Object getFieldValue(_Fields field) {
7440
      switch (field) {
7441
      case SUCCESS:
7442
        return getSuccess();
7443
 
7444
      case SE:
7445
        return getSe();
7446
 
7447
      }
7448
      throw new IllegalStateException();
7449
    }
7450
 
3430 rajveer 7451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7452
    public boolean isSet(_Fields field) {
7453
      if (field == null) {
7454
        throw new IllegalArgumentException();
7455
      }
730 chandransh 7456
 
7457
      switch (field) {
7458
      case SUCCESS:
7459
        return isSetSuccess();
7460
      case SE:
7461
        return isSetSe();
7462
      }
7463
      throw new IllegalStateException();
7464
    }
7465
 
7466
    @Override
7467
    public boolean equals(Object that) {
7468
      if (that == null)
7469
        return false;
7470
      if (that instanceof getDestinationCode_result)
7471
        return this.equals((getDestinationCode_result)that);
7472
      return false;
7473
    }
7474
 
7475
    public boolean equals(getDestinationCode_result that) {
7476
      if (that == null)
7477
        return false;
7478
 
7479
      boolean this_present_success = true && this.isSetSuccess();
7480
      boolean that_present_success = true && that.isSetSuccess();
7481
      if (this_present_success || that_present_success) {
7482
        if (!(this_present_success && that_present_success))
7483
          return false;
7484
        if (!this.success.equals(that.success))
7485
          return false;
7486
      }
7487
 
7488
      boolean this_present_se = true && this.isSetSe();
7489
      boolean that_present_se = true && that.isSetSe();
7490
      if (this_present_se || that_present_se) {
7491
        if (!(this_present_se && that_present_se))
7492
          return false;
7493
        if (!this.se.equals(that.se))
7494
          return false;
7495
      }
7496
 
7497
      return true;
7498
    }
7499
 
7500
    @Override
7501
    public int hashCode() {
7502
      return 0;
7503
    }
7504
 
7505
    public int compareTo(getDestinationCode_result other) {
7506
      if (!getClass().equals(other.getClass())) {
7507
        return getClass().getName().compareTo(other.getClass().getName());
7508
      }
7509
 
7510
      int lastComparison = 0;
7511
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
7512
 
3430 rajveer 7513
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 7514
      if (lastComparison != 0) {
7515
        return lastComparison;
7516
      }
3430 rajveer 7517
      if (isSetSuccess()) {
7518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7519
        if (lastComparison != 0) {
7520
          return lastComparison;
7521
        }
730 chandransh 7522
      }
3430 rajveer 7523
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 7524
      if (lastComparison != 0) {
7525
        return lastComparison;
7526
      }
3430 rajveer 7527
      if (isSetSe()) {
7528
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7529
        if (lastComparison != 0) {
7530
          return lastComparison;
7531
        }
730 chandransh 7532
      }
7533
      return 0;
7534
    }
7535
 
3430 rajveer 7536
    public _Fields fieldForId(int fieldId) {
7537
      return _Fields.findByThriftId(fieldId);
7538
    }
7539
 
7540
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7541
      org.apache.thrift.protocol.TField field;
730 chandransh 7542
      iprot.readStructBegin();
7543
      while (true)
7544
      {
7545
        field = iprot.readFieldBegin();
3430 rajveer 7546
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 7547
          break;
7548
        }
3430 rajveer 7549
        switch (field.id) {
7550
          case 0: // SUCCESS
7551
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7552
              this.success = iprot.readString();
7553
            } else { 
7554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7555
            }
7556
            break;
7557
          case 1: // SE
7558
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7559
              this.se = new LogisticsServiceException();
7560
              this.se.read(iprot);
7561
            } else { 
7562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7563
            }
7564
            break;
7565
          default:
7566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 7567
        }
3430 rajveer 7568
        iprot.readFieldEnd();
730 chandransh 7569
      }
7570
      iprot.readStructEnd();
7571
      validate();
7572
    }
7573
 
3430 rajveer 7574
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 7575
      oprot.writeStructBegin(STRUCT_DESC);
7576
 
7577
      if (this.isSetSuccess()) {
7578
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7579
        oprot.writeString(this.success);
7580
        oprot.writeFieldEnd();
7581
      } else if (this.isSetSe()) {
7582
        oprot.writeFieldBegin(SE_FIELD_DESC);
7583
        this.se.write(oprot);
7584
        oprot.writeFieldEnd();
7585
      }
7586
      oprot.writeFieldStop();
7587
      oprot.writeStructEnd();
7588
    }
7589
 
7590
    @Override
7591
    public String toString() {
7592
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
7593
      boolean first = true;
7594
 
7595
      sb.append("success:");
7596
      if (this.success == null) {
7597
        sb.append("null");
7598
      } else {
7599
        sb.append(this.success);
7600
      }
7601
      first = false;
7602
      if (!first) sb.append(", ");
7603
      sb.append("se:");
7604
      if (this.se == null) {
7605
        sb.append("null");
7606
      } else {
7607
        sb.append(this.se);
7608
      }
7609
      first = false;
7610
      sb.append(")");
7611
      return sb.toString();
7612
    }
7613
 
3430 rajveer 7614
    public void validate() throws org.apache.thrift.TException {
730 chandransh 7615
      // check for required fields
7616
    }
7617
 
3430 rajveer 7618
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7619
      try {
7620
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7621
      } catch (org.apache.thrift.TException te) {
7622
        throw new java.io.IOException(te);
7623
      }
7624
    }
7625
 
7626
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7627
      try {
7628
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7629
      } catch (org.apache.thrift.TException te) {
7630
        throw new java.io.IOException(te);
7631
      }
7632
    }
7633
 
730 chandransh 7634
  }
7635
 
3430 rajveer 7636
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
7637
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 7638
 
3430 rajveer 7639
    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);
7640
    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 7641
 
3430 rajveer 7642
    private long providerId; // required
7643
    private String type; // required
1139 chandransh 7644
 
7645
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7646
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 7647
      PROVIDER_ID((short)1, "providerId"),
7648
      TYPE((short)2, "type");
1139 chandransh 7649
 
7650
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7651
 
7652
      static {
7653
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7654
          byName.put(field.getFieldName(), field);
7655
        }
7656
      }
7657
 
7658
      /**
7659
       * Find the _Fields constant that matches fieldId, or null if its not found.
7660
       */
7661
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7662
        switch(fieldId) {
7663
          case 1: // PROVIDER_ID
7664
            return PROVIDER_ID;
7665
          case 2: // TYPE
7666
            return TYPE;
7667
          default:
7668
            return null;
7669
        }
1139 chandransh 7670
      }
7671
 
7672
      /**
7673
       * Find the _Fields constant that matches fieldId, throwing an exception
7674
       * if it is not found.
7675
       */
7676
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7677
        _Fields fields = findByThriftId(fieldId);
7678
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7679
        return fields;
7680
      }
7681
 
7682
      /**
7683
       * Find the _Fields constant that matches name, or null if its not found.
7684
       */
7685
      public static _Fields findByName(String name) {
7686
        return byName.get(name);
7687
      }
7688
 
7689
      private final short _thriftId;
7690
      private final String _fieldName;
7691
 
7692
      _Fields(short thriftId, String fieldName) {
7693
        _thriftId = thriftId;
7694
        _fieldName = fieldName;
7695
      }
7696
 
7697
      public short getThriftFieldId() {
7698
        return _thriftId;
7699
      }
7700
 
7701
      public String getFieldName() {
7702
        return _fieldName;
7703
      }
7704
    }
7705
 
7706
    // isset id assignments
7707
    private static final int __PROVIDERID_ISSET_ID = 0;
7708
    private BitSet __isset_bit_vector = new BitSet(1);
7709
 
3430 rajveer 7710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 7711
    static {
3430 rajveer 7712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7713
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7715
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7716
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7717
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7718
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 7719
    }
7720
 
7721
    public getFreeAwbCount_args() {
7722
    }
7723
 
7724
    public getFreeAwbCount_args(
3103 chandransh 7725
      long providerId,
7726
      String type)
1139 chandransh 7727
    {
7728
      this();
7729
      this.providerId = providerId;
7730
      setProviderIdIsSet(true);
3103 chandransh 7731
      this.type = type;
1139 chandransh 7732
    }
7733
 
7734
    /**
7735
     * Performs a deep copy on <i>other</i>.
7736
     */
7737
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
7738
      __isset_bit_vector.clear();
7739
      __isset_bit_vector.or(other.__isset_bit_vector);
7740
      this.providerId = other.providerId;
3103 chandransh 7741
      if (other.isSetType()) {
7742
        this.type = other.type;
7743
      }
1139 chandransh 7744
    }
7745
 
7746
    public getFreeAwbCount_args deepCopy() {
7747
      return new getFreeAwbCount_args(this);
7748
    }
7749
 
3430 rajveer 7750
    @Override
7751
    public void clear() {
7752
      setProviderIdIsSet(false);
7753
      this.providerId = 0;
7754
      this.type = null;
1139 chandransh 7755
    }
7756
 
7757
    public long getProviderId() {
7758
      return this.providerId;
7759
    }
7760
 
3430 rajveer 7761
    public void setProviderId(long providerId) {
1139 chandransh 7762
      this.providerId = providerId;
7763
      setProviderIdIsSet(true);
7764
    }
7765
 
7766
    public void unsetProviderId() {
7767
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
7768
    }
7769
 
3430 rajveer 7770
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 7771
    public boolean isSetProviderId() {
7772
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
7773
    }
7774
 
7775
    public void setProviderIdIsSet(boolean value) {
7776
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
7777
    }
7778
 
3103 chandransh 7779
    public String getType() {
7780
      return this.type;
7781
    }
7782
 
3430 rajveer 7783
    public void setType(String type) {
3103 chandransh 7784
      this.type = type;
7785
    }
7786
 
7787
    public void unsetType() {
7788
      this.type = null;
7789
    }
7790
 
3430 rajveer 7791
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 7792
    public boolean isSetType() {
7793
      return this.type != null;
7794
    }
7795
 
7796
    public void setTypeIsSet(boolean value) {
7797
      if (!value) {
7798
        this.type = null;
7799
      }
7800
    }
7801
 
1139 chandransh 7802
    public void setFieldValue(_Fields field, Object value) {
7803
      switch (field) {
7804
      case PROVIDER_ID:
7805
        if (value == null) {
7806
          unsetProviderId();
7807
        } else {
7808
          setProviderId((Long)value);
7809
        }
7810
        break;
7811
 
3103 chandransh 7812
      case TYPE:
7813
        if (value == null) {
7814
          unsetType();
7815
        } else {
7816
          setType((String)value);
7817
        }
7818
        break;
7819
 
1139 chandransh 7820
      }
7821
    }
7822
 
7823
    public Object getFieldValue(_Fields field) {
7824
      switch (field) {
7825
      case PROVIDER_ID:
3430 rajveer 7826
        return Long.valueOf(getProviderId());
1139 chandransh 7827
 
3103 chandransh 7828
      case TYPE:
7829
        return getType();
7830
 
1139 chandransh 7831
      }
7832
      throw new IllegalStateException();
7833
    }
7834
 
3430 rajveer 7835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7836
    public boolean isSet(_Fields field) {
7837
      if (field == null) {
7838
        throw new IllegalArgumentException();
7839
      }
1139 chandransh 7840
 
7841
      switch (field) {
7842
      case PROVIDER_ID:
7843
        return isSetProviderId();
3103 chandransh 7844
      case TYPE:
7845
        return isSetType();
1139 chandransh 7846
      }
7847
      throw new IllegalStateException();
7848
    }
7849
 
7850
    @Override
7851
    public boolean equals(Object that) {
7852
      if (that == null)
7853
        return false;
7854
      if (that instanceof getFreeAwbCount_args)
7855
        return this.equals((getFreeAwbCount_args)that);
7856
      return false;
7857
    }
7858
 
7859
    public boolean equals(getFreeAwbCount_args that) {
7860
      if (that == null)
7861
        return false;
7862
 
7863
      boolean this_present_providerId = true;
7864
      boolean that_present_providerId = true;
7865
      if (this_present_providerId || that_present_providerId) {
7866
        if (!(this_present_providerId && that_present_providerId))
7867
          return false;
7868
        if (this.providerId != that.providerId)
7869
          return false;
7870
      }
7871
 
3103 chandransh 7872
      boolean this_present_type = true && this.isSetType();
7873
      boolean that_present_type = true && that.isSetType();
7874
      if (this_present_type || that_present_type) {
7875
        if (!(this_present_type && that_present_type))
7876
          return false;
7877
        if (!this.type.equals(that.type))
7878
          return false;
7879
      }
7880
 
1139 chandransh 7881
      return true;
7882
    }
7883
 
7884
    @Override
7885
    public int hashCode() {
7886
      return 0;
7887
    }
7888
 
7889
    public int compareTo(getFreeAwbCount_args other) {
7890
      if (!getClass().equals(other.getClass())) {
7891
        return getClass().getName().compareTo(other.getClass().getName());
7892
      }
7893
 
7894
      int lastComparison = 0;
7895
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
7896
 
3430 rajveer 7897
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 7898
      if (lastComparison != 0) {
7899
        return lastComparison;
7900
      }
3430 rajveer 7901
      if (isSetProviderId()) {
7902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7903
        if (lastComparison != 0) {
7904
          return lastComparison;
7905
        }
1139 chandransh 7906
      }
3430 rajveer 7907
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 7908
      if (lastComparison != 0) {
7909
        return lastComparison;
7910
      }
3430 rajveer 7911
      if (isSetType()) {
7912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
7913
        if (lastComparison != 0) {
7914
          return lastComparison;
7915
        }
3103 chandransh 7916
      }
1139 chandransh 7917
      return 0;
7918
    }
7919
 
3430 rajveer 7920
    public _Fields fieldForId(int fieldId) {
7921
      return _Fields.findByThriftId(fieldId);
7922
    }
7923
 
7924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7925
      org.apache.thrift.protocol.TField field;
1139 chandransh 7926
      iprot.readStructBegin();
7927
      while (true)
7928
      {
7929
        field = iprot.readFieldBegin();
3430 rajveer 7930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 7931
          break;
7932
        }
3430 rajveer 7933
        switch (field.id) {
7934
          case 1: // PROVIDER_ID
7935
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7936
              this.providerId = iprot.readI64();
7937
              setProviderIdIsSet(true);
7938
            } else { 
7939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7940
            }
7941
            break;
7942
          case 2: // TYPE
7943
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7944
              this.type = iprot.readString();
7945
            } else { 
7946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7947
            }
7948
            break;
7949
          default:
7950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 7951
        }
3430 rajveer 7952
        iprot.readFieldEnd();
1139 chandransh 7953
      }
7954
      iprot.readStructEnd();
7955
      validate();
7956
    }
7957
 
3430 rajveer 7958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 7959
      validate();
7960
 
7961
      oprot.writeStructBegin(STRUCT_DESC);
7962
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7963
      oprot.writeI64(this.providerId);
7964
      oprot.writeFieldEnd();
3103 chandransh 7965
      if (this.type != null) {
7966
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
7967
        oprot.writeString(this.type);
7968
        oprot.writeFieldEnd();
7969
      }
1139 chandransh 7970
      oprot.writeFieldStop();
7971
      oprot.writeStructEnd();
7972
    }
7973
 
7974
    @Override
7975
    public String toString() {
7976
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
7977
      boolean first = true;
7978
 
7979
      sb.append("providerId:");
7980
      sb.append(this.providerId);
7981
      first = false;
3103 chandransh 7982
      if (!first) sb.append(", ");
7983
      sb.append("type:");
7984
      if (this.type == null) {
7985
        sb.append("null");
7986
      } else {
7987
        sb.append(this.type);
7988
      }
7989
      first = false;
1139 chandransh 7990
      sb.append(")");
7991
      return sb.toString();
7992
    }
7993
 
3430 rajveer 7994
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 7995
      // check for required fields
7996
    }
7997
 
3430 rajveer 7998
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7999
      try {
8000
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8001
      } catch (org.apache.thrift.TException te) {
8002
        throw new java.io.IOException(te);
8003
      }
8004
    }
8005
 
8006
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8007
      try {
8008
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8009
      } catch (org.apache.thrift.TException te) {
8010
        throw new java.io.IOException(te);
8011
      }
8012
    }
8013
 
1139 chandransh 8014
  }
8015
 
3430 rajveer 8016
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
8017
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 8018
 
3430 rajveer 8019
    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 8020
 
3430 rajveer 8021
    private long success; // required
1139 chandransh 8022
 
8023
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8024
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 8025
      SUCCESS((short)0, "success");
8026
 
8027
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8028
 
8029
      static {
8030
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8031
          byName.put(field.getFieldName(), field);
8032
        }
8033
      }
8034
 
8035
      /**
8036
       * Find the _Fields constant that matches fieldId, or null if its not found.
8037
       */
8038
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8039
        switch(fieldId) {
8040
          case 0: // SUCCESS
8041
            return SUCCESS;
8042
          default:
8043
            return null;
8044
        }
1139 chandransh 8045
      }
8046
 
8047
      /**
8048
       * Find the _Fields constant that matches fieldId, throwing an exception
8049
       * if it is not found.
8050
       */
8051
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8052
        _Fields fields = findByThriftId(fieldId);
8053
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8054
        return fields;
8055
      }
8056
 
8057
      /**
8058
       * Find the _Fields constant that matches name, or null if its not found.
8059
       */
8060
      public static _Fields findByName(String name) {
8061
        return byName.get(name);
8062
      }
8063
 
8064
      private final short _thriftId;
8065
      private final String _fieldName;
8066
 
8067
      _Fields(short thriftId, String fieldName) {
8068
        _thriftId = thriftId;
8069
        _fieldName = fieldName;
8070
      }
8071
 
8072
      public short getThriftFieldId() {
8073
        return _thriftId;
8074
      }
8075
 
8076
      public String getFieldName() {
8077
        return _fieldName;
8078
      }
8079
    }
8080
 
8081
    // isset id assignments
8082
    private static final int __SUCCESS_ISSET_ID = 0;
8083
    private BitSet __isset_bit_vector = new BitSet(1);
8084
 
3430 rajveer 8085
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8086
    static {
3430 rajveer 8087
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8088
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8090
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8091
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 8092
    }
8093
 
8094
    public getFreeAwbCount_result() {
8095
    }
8096
 
8097
    public getFreeAwbCount_result(
8098
      long success)
8099
    {
8100
      this();
8101
      this.success = success;
8102
      setSuccessIsSet(true);
8103
    }
8104
 
8105
    /**
8106
     * Performs a deep copy on <i>other</i>.
8107
     */
8108
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
8109
      __isset_bit_vector.clear();
8110
      __isset_bit_vector.or(other.__isset_bit_vector);
8111
      this.success = other.success;
8112
    }
8113
 
8114
    public getFreeAwbCount_result deepCopy() {
8115
      return new getFreeAwbCount_result(this);
8116
    }
8117
 
3430 rajveer 8118
    @Override
8119
    public void clear() {
8120
      setSuccessIsSet(false);
8121
      this.success = 0;
1139 chandransh 8122
    }
8123
 
8124
    public long getSuccess() {
8125
      return this.success;
8126
    }
8127
 
3430 rajveer 8128
    public void setSuccess(long success) {
1139 chandransh 8129
      this.success = success;
8130
      setSuccessIsSet(true);
8131
    }
8132
 
8133
    public void unsetSuccess() {
8134
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8135
    }
8136
 
3430 rajveer 8137
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 8138
    public boolean isSetSuccess() {
8139
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8140
    }
8141
 
8142
    public void setSuccessIsSet(boolean value) {
8143
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8144
    }
8145
 
8146
    public void setFieldValue(_Fields field, Object value) {
8147
      switch (field) {
8148
      case SUCCESS:
8149
        if (value == null) {
8150
          unsetSuccess();
8151
        } else {
8152
          setSuccess((Long)value);
8153
        }
8154
        break;
8155
 
8156
      }
8157
    }
8158
 
8159
    public Object getFieldValue(_Fields field) {
8160
      switch (field) {
8161
      case SUCCESS:
3430 rajveer 8162
        return Long.valueOf(getSuccess());
1139 chandransh 8163
 
8164
      }
8165
      throw new IllegalStateException();
8166
    }
8167
 
3430 rajveer 8168
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8169
    public boolean isSet(_Fields field) {
8170
      if (field == null) {
8171
        throw new IllegalArgumentException();
8172
      }
1139 chandransh 8173
 
8174
      switch (field) {
8175
      case SUCCESS:
8176
        return isSetSuccess();
8177
      }
8178
      throw new IllegalStateException();
8179
    }
8180
 
8181
    @Override
8182
    public boolean equals(Object that) {
8183
      if (that == null)
8184
        return false;
8185
      if (that instanceof getFreeAwbCount_result)
8186
        return this.equals((getFreeAwbCount_result)that);
8187
      return false;
8188
    }
8189
 
8190
    public boolean equals(getFreeAwbCount_result that) {
8191
      if (that == null)
8192
        return false;
8193
 
8194
      boolean this_present_success = true;
8195
      boolean that_present_success = true;
8196
      if (this_present_success || that_present_success) {
8197
        if (!(this_present_success && that_present_success))
8198
          return false;
8199
        if (this.success != that.success)
8200
          return false;
8201
      }
8202
 
8203
      return true;
8204
    }
8205
 
8206
    @Override
8207
    public int hashCode() {
8208
      return 0;
8209
    }
8210
 
8211
    public int compareTo(getFreeAwbCount_result other) {
8212
      if (!getClass().equals(other.getClass())) {
8213
        return getClass().getName().compareTo(other.getClass().getName());
8214
      }
8215
 
8216
      int lastComparison = 0;
8217
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
8218
 
3430 rajveer 8219
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 8220
      if (lastComparison != 0) {
8221
        return lastComparison;
8222
      }
3430 rajveer 8223
      if (isSetSuccess()) {
8224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8225
        if (lastComparison != 0) {
8226
          return lastComparison;
8227
        }
1139 chandransh 8228
      }
8229
      return 0;
8230
    }
8231
 
3430 rajveer 8232
    public _Fields fieldForId(int fieldId) {
8233
      return _Fields.findByThriftId(fieldId);
8234
    }
8235
 
8236
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8237
      org.apache.thrift.protocol.TField field;
1139 chandransh 8238
      iprot.readStructBegin();
8239
      while (true)
8240
      {
8241
        field = iprot.readFieldBegin();
3430 rajveer 8242
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 8243
          break;
8244
        }
3430 rajveer 8245
        switch (field.id) {
8246
          case 0: // SUCCESS
8247
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8248
              this.success = iprot.readI64();
8249
              setSuccessIsSet(true);
8250
            } else { 
8251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8252
            }
8253
            break;
8254
          default:
8255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 8256
        }
3430 rajveer 8257
        iprot.readFieldEnd();
1139 chandransh 8258
      }
8259
      iprot.readStructEnd();
8260
      validate();
8261
    }
8262
 
3430 rajveer 8263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 8264
      oprot.writeStructBegin(STRUCT_DESC);
8265
 
8266
      if (this.isSetSuccess()) {
8267
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8268
        oprot.writeI64(this.success);
8269
        oprot.writeFieldEnd();
8270
      }
8271
      oprot.writeFieldStop();
8272
      oprot.writeStructEnd();
8273
    }
8274
 
8275
    @Override
8276
    public String toString() {
8277
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
8278
      boolean first = true;
8279
 
8280
      sb.append("success:");
8281
      sb.append(this.success);
8282
      first = false;
8283
      sb.append(")");
8284
      return sb.toString();
8285
    }
8286
 
3430 rajveer 8287
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 8288
      // check for required fields
8289
    }
8290
 
3430 rajveer 8291
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8292
      try {
8293
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8294
      } catch (org.apache.thrift.TException te) {
8295
        throw new java.io.IOException(te);
8296
      }
8297
    }
8298
 
8299
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8300
      try {
8301
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8302
      } catch (org.apache.thrift.TException te) {
8303
        throw new java.io.IOException(te);
8304
      }
8305
    }
8306
 
1139 chandransh 8307
  }
8308
 
3430 rajveer 8309
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
8310
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 8311
 
3430 rajveer 8312
    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);
8313
    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 8314
 
3430 rajveer 8315
    private long fromDate; // required
8316
    private long toDate; // required
1730 ankur.sing 8317
 
8318
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8319
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 8320
      FROM_DATE((short)1, "fromDate"),
8321
      TO_DATE((short)2, "toDate");
8322
 
8323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8324
 
8325
      static {
8326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8327
          byName.put(field.getFieldName(), field);
8328
        }
8329
      }
8330
 
8331
      /**
8332
       * Find the _Fields constant that matches fieldId, or null if its not found.
8333
       */
8334
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8335
        switch(fieldId) {
8336
          case 1: // FROM_DATE
8337
            return FROM_DATE;
8338
          case 2: // TO_DATE
8339
            return TO_DATE;
8340
          default:
8341
            return null;
8342
        }
1730 ankur.sing 8343
      }
8344
 
8345
      /**
8346
       * Find the _Fields constant that matches fieldId, throwing an exception
8347
       * if it is not found.
8348
       */
8349
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8350
        _Fields fields = findByThriftId(fieldId);
8351
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8352
        return fields;
8353
      }
8354
 
8355
      /**
8356
       * Find the _Fields constant that matches name, or null if its not found.
8357
       */
8358
      public static _Fields findByName(String name) {
8359
        return byName.get(name);
8360
      }
8361
 
8362
      private final short _thriftId;
8363
      private final String _fieldName;
8364
 
8365
      _Fields(short thriftId, String fieldName) {
8366
        _thriftId = thriftId;
8367
        _fieldName = fieldName;
8368
      }
8369
 
8370
      public short getThriftFieldId() {
8371
        return _thriftId;
8372
      }
8373
 
8374
      public String getFieldName() {
8375
        return _fieldName;
8376
      }
8377
    }
8378
 
8379
    // isset id assignments
8380
    private static final int __FROMDATE_ISSET_ID = 0;
8381
    private static final int __TODATE_ISSET_ID = 1;
8382
    private BitSet __isset_bit_vector = new BitSet(2);
8383
 
3430 rajveer 8384
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 8385
    static {
3430 rajveer 8386
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8387
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8388
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8389
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8390
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8391
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8392
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 8393
    }
8394
 
8395
    public getHolidays_args() {
8396
    }
8397
 
8398
    public getHolidays_args(
8399
      long fromDate,
8400
      long toDate)
8401
    {
8402
      this();
8403
      this.fromDate = fromDate;
8404
      setFromDateIsSet(true);
8405
      this.toDate = toDate;
8406
      setToDateIsSet(true);
8407
    }
8408
 
8409
    /**
8410
     * Performs a deep copy on <i>other</i>.
8411
     */
8412
    public getHolidays_args(getHolidays_args other) {
8413
      __isset_bit_vector.clear();
8414
      __isset_bit_vector.or(other.__isset_bit_vector);
8415
      this.fromDate = other.fromDate;
8416
      this.toDate = other.toDate;
8417
    }
8418
 
8419
    public getHolidays_args deepCopy() {
8420
      return new getHolidays_args(this);
8421
    }
8422
 
3430 rajveer 8423
    @Override
8424
    public void clear() {
8425
      setFromDateIsSet(false);
8426
      this.fromDate = 0;
8427
      setToDateIsSet(false);
8428
      this.toDate = 0;
1730 ankur.sing 8429
    }
8430
 
8431
    public long getFromDate() {
8432
      return this.fromDate;
8433
    }
8434
 
3430 rajveer 8435
    public void setFromDate(long fromDate) {
1730 ankur.sing 8436
      this.fromDate = fromDate;
8437
      setFromDateIsSet(true);
8438
    }
8439
 
8440
    public void unsetFromDate() {
8441
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
8442
    }
8443
 
3430 rajveer 8444
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 8445
    public boolean isSetFromDate() {
8446
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
8447
    }
8448
 
8449
    public void setFromDateIsSet(boolean value) {
8450
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
8451
    }
8452
 
8453
    public long getToDate() {
8454
      return this.toDate;
8455
    }
8456
 
3430 rajveer 8457
    public void setToDate(long toDate) {
1730 ankur.sing 8458
      this.toDate = toDate;
8459
      setToDateIsSet(true);
8460
    }
8461
 
8462
    public void unsetToDate() {
8463
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
8464
    }
8465
 
3430 rajveer 8466
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 8467
    public boolean isSetToDate() {
8468
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
8469
    }
8470
 
8471
    public void setToDateIsSet(boolean value) {
8472
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
8473
    }
8474
 
8475
    public void setFieldValue(_Fields field, Object value) {
8476
      switch (field) {
8477
      case FROM_DATE:
8478
        if (value == null) {
8479
          unsetFromDate();
8480
        } else {
8481
          setFromDate((Long)value);
8482
        }
8483
        break;
8484
 
8485
      case TO_DATE:
8486
        if (value == null) {
8487
          unsetToDate();
8488
        } else {
8489
          setToDate((Long)value);
8490
        }
8491
        break;
8492
 
8493
      }
8494
    }
8495
 
8496
    public Object getFieldValue(_Fields field) {
8497
      switch (field) {
8498
      case FROM_DATE:
3430 rajveer 8499
        return Long.valueOf(getFromDate());
1730 ankur.sing 8500
 
8501
      case TO_DATE:
3430 rajveer 8502
        return Long.valueOf(getToDate());
1730 ankur.sing 8503
 
8504
      }
8505
      throw new IllegalStateException();
8506
    }
8507
 
3430 rajveer 8508
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8509
    public boolean isSet(_Fields field) {
8510
      if (field == null) {
8511
        throw new IllegalArgumentException();
8512
      }
1730 ankur.sing 8513
 
8514
      switch (field) {
8515
      case FROM_DATE:
8516
        return isSetFromDate();
8517
      case TO_DATE:
8518
        return isSetToDate();
8519
      }
8520
      throw new IllegalStateException();
8521
    }
8522
 
8523
    @Override
8524
    public boolean equals(Object that) {
8525
      if (that == null)
8526
        return false;
8527
      if (that instanceof getHolidays_args)
8528
        return this.equals((getHolidays_args)that);
8529
      return false;
8530
    }
8531
 
8532
    public boolean equals(getHolidays_args that) {
8533
      if (that == null)
8534
        return false;
8535
 
8536
      boolean this_present_fromDate = true;
8537
      boolean that_present_fromDate = true;
8538
      if (this_present_fromDate || that_present_fromDate) {
8539
        if (!(this_present_fromDate && that_present_fromDate))
8540
          return false;
8541
        if (this.fromDate != that.fromDate)
8542
          return false;
8543
      }
8544
 
8545
      boolean this_present_toDate = true;
8546
      boolean that_present_toDate = true;
8547
      if (this_present_toDate || that_present_toDate) {
8548
        if (!(this_present_toDate && that_present_toDate))
8549
          return false;
8550
        if (this.toDate != that.toDate)
8551
          return false;
8552
      }
8553
 
8554
      return true;
8555
    }
8556
 
8557
    @Override
8558
    public int hashCode() {
8559
      return 0;
8560
    }
8561
 
8562
    public int compareTo(getHolidays_args other) {
8563
      if (!getClass().equals(other.getClass())) {
8564
        return getClass().getName().compareTo(other.getClass().getName());
8565
      }
8566
 
8567
      int lastComparison = 0;
8568
      getHolidays_args typedOther = (getHolidays_args)other;
8569
 
3430 rajveer 8570
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 8571
      if (lastComparison != 0) {
8572
        return lastComparison;
8573
      }
3430 rajveer 8574
      if (isSetFromDate()) {
8575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
8576
        if (lastComparison != 0) {
8577
          return lastComparison;
8578
        }
1730 ankur.sing 8579
      }
3430 rajveer 8580
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 8581
      if (lastComparison != 0) {
8582
        return lastComparison;
8583
      }
3430 rajveer 8584
      if (isSetToDate()) {
8585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
8586
        if (lastComparison != 0) {
8587
          return lastComparison;
8588
        }
1730 ankur.sing 8589
      }
8590
      return 0;
8591
    }
8592
 
3430 rajveer 8593
    public _Fields fieldForId(int fieldId) {
8594
      return _Fields.findByThriftId(fieldId);
8595
    }
8596
 
8597
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8598
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 8599
      iprot.readStructBegin();
8600
      while (true)
8601
      {
8602
        field = iprot.readFieldBegin();
3430 rajveer 8603
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 8604
          break;
8605
        }
3430 rajveer 8606
        switch (field.id) {
8607
          case 1: // FROM_DATE
8608
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8609
              this.fromDate = iprot.readI64();
8610
              setFromDateIsSet(true);
8611
            } else { 
8612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8613
            }
8614
            break;
8615
          case 2: // TO_DATE
8616
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8617
              this.toDate = iprot.readI64();
8618
              setToDateIsSet(true);
8619
            } else { 
8620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8621
            }
8622
            break;
8623
          default:
8624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 8625
        }
3430 rajveer 8626
        iprot.readFieldEnd();
1730 ankur.sing 8627
      }
8628
      iprot.readStructEnd();
8629
      validate();
8630
    }
8631
 
3430 rajveer 8632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 8633
      validate();
8634
 
8635
      oprot.writeStructBegin(STRUCT_DESC);
8636
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
8637
      oprot.writeI64(this.fromDate);
8638
      oprot.writeFieldEnd();
8639
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
8640
      oprot.writeI64(this.toDate);
8641
      oprot.writeFieldEnd();
8642
      oprot.writeFieldStop();
8643
      oprot.writeStructEnd();
8644
    }
8645
 
8646
    @Override
8647
    public String toString() {
8648
      StringBuilder sb = new StringBuilder("getHolidays_args(");
8649
      boolean first = true;
8650
 
8651
      sb.append("fromDate:");
8652
      sb.append(this.fromDate);
8653
      first = false;
8654
      if (!first) sb.append(", ");
8655
      sb.append("toDate:");
8656
      sb.append(this.toDate);
8657
      first = false;
8658
      sb.append(")");
8659
      return sb.toString();
8660
    }
8661
 
3430 rajveer 8662
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 8663
      // check for required fields
8664
    }
8665
 
3430 rajveer 8666
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8667
      try {
8668
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8669
      } catch (org.apache.thrift.TException te) {
8670
        throw new java.io.IOException(te);
8671
      }
8672
    }
8673
 
8674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8675
      try {
8676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8677
      } catch (org.apache.thrift.TException te) {
8678
        throw new java.io.IOException(te);
8679
      }
8680
    }
8681
 
1730 ankur.sing 8682
  }
8683
 
3430 rajveer 8684
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
8685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 8686
 
3430 rajveer 8687
    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 8688
 
3430 rajveer 8689
    private List<Long> success; // required
1730 ankur.sing 8690
 
8691
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8692
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 8693
      SUCCESS((short)0, "success");
8694
 
8695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8696
 
8697
      static {
8698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8699
          byName.put(field.getFieldName(), field);
8700
        }
8701
      }
8702
 
8703
      /**
8704
       * Find the _Fields constant that matches fieldId, or null if its not found.
8705
       */
8706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8707
        switch(fieldId) {
8708
          case 0: // SUCCESS
8709
            return SUCCESS;
8710
          default:
8711
            return null;
8712
        }
1730 ankur.sing 8713
      }
8714
 
8715
      /**
8716
       * Find the _Fields constant that matches fieldId, throwing an exception
8717
       * if it is not found.
8718
       */
8719
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8720
        _Fields fields = findByThriftId(fieldId);
8721
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8722
        return fields;
8723
      }
8724
 
8725
      /**
8726
       * Find the _Fields constant that matches name, or null if its not found.
8727
       */
8728
      public static _Fields findByName(String name) {
8729
        return byName.get(name);
8730
      }
8731
 
8732
      private final short _thriftId;
8733
      private final String _fieldName;
8734
 
8735
      _Fields(short thriftId, String fieldName) {
8736
        _thriftId = thriftId;
8737
        _fieldName = fieldName;
8738
      }
8739
 
8740
      public short getThriftFieldId() {
8741
        return _thriftId;
8742
      }
8743
 
8744
      public String getFieldName() {
8745
        return _fieldName;
8746
      }
8747
    }
8748
 
8749
    // isset id assignments
8750
 
3430 rajveer 8751
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 8752
    static {
3430 rajveer 8753
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8754
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8755
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8756
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
8757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 8759
    }
8760
 
8761
    public getHolidays_result() {
8762
    }
8763
 
8764
    public getHolidays_result(
8765
      List<Long> success)
8766
    {
8767
      this();
8768
      this.success = success;
8769
    }
8770
 
8771
    /**
8772
     * Performs a deep copy on <i>other</i>.
8773
     */
8774
    public getHolidays_result(getHolidays_result other) {
8775
      if (other.isSetSuccess()) {
8776
        List<Long> __this__success = new ArrayList<Long>();
8777
        for (Long other_element : other.success) {
8778
          __this__success.add(other_element);
8779
        }
8780
        this.success = __this__success;
8781
      }
8782
    }
8783
 
8784
    public getHolidays_result deepCopy() {
8785
      return new getHolidays_result(this);
8786
    }
8787
 
3430 rajveer 8788
    @Override
8789
    public void clear() {
8790
      this.success = null;
1730 ankur.sing 8791
    }
8792
 
8793
    public int getSuccessSize() {
8794
      return (this.success == null) ? 0 : this.success.size();
8795
    }
8796
 
8797
    public java.util.Iterator<Long> getSuccessIterator() {
8798
      return (this.success == null) ? null : this.success.iterator();
8799
    }
8800
 
8801
    public void addToSuccess(long elem) {
8802
      if (this.success == null) {
8803
        this.success = new ArrayList<Long>();
8804
      }
8805
      this.success.add(elem);
8806
    }
8807
 
8808
    public List<Long> getSuccess() {
8809
      return this.success;
8810
    }
8811
 
3430 rajveer 8812
    public void setSuccess(List<Long> success) {
1730 ankur.sing 8813
      this.success = success;
8814
    }
8815
 
8816
    public void unsetSuccess() {
8817
      this.success = null;
8818
    }
8819
 
3430 rajveer 8820
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 8821
    public boolean isSetSuccess() {
8822
      return this.success != null;
8823
    }
8824
 
8825
    public void setSuccessIsSet(boolean value) {
8826
      if (!value) {
8827
        this.success = null;
8828
      }
8829
    }
8830
 
8831
    public void setFieldValue(_Fields field, Object value) {
8832
      switch (field) {
8833
      case SUCCESS:
8834
        if (value == null) {
8835
          unsetSuccess();
8836
        } else {
8837
          setSuccess((List<Long>)value);
8838
        }
8839
        break;
8840
 
8841
      }
8842
    }
8843
 
8844
    public Object getFieldValue(_Fields field) {
8845
      switch (field) {
8846
      case SUCCESS:
8847
        return getSuccess();
8848
 
8849
      }
8850
      throw new IllegalStateException();
8851
    }
8852
 
3430 rajveer 8853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8854
    public boolean isSet(_Fields field) {
8855
      if (field == null) {
8856
        throw new IllegalArgumentException();
8857
      }
1730 ankur.sing 8858
 
8859
      switch (field) {
8860
      case SUCCESS:
8861
        return isSetSuccess();
8862
      }
8863
      throw new IllegalStateException();
8864
    }
8865
 
8866
    @Override
8867
    public boolean equals(Object that) {
8868
      if (that == null)
8869
        return false;
8870
      if (that instanceof getHolidays_result)
8871
        return this.equals((getHolidays_result)that);
8872
      return false;
8873
    }
8874
 
8875
    public boolean equals(getHolidays_result that) {
8876
      if (that == null)
8877
        return false;
8878
 
8879
      boolean this_present_success = true && this.isSetSuccess();
8880
      boolean that_present_success = true && that.isSetSuccess();
8881
      if (this_present_success || that_present_success) {
8882
        if (!(this_present_success && that_present_success))
8883
          return false;
8884
        if (!this.success.equals(that.success))
8885
          return false;
8886
      }
8887
 
8888
      return true;
8889
    }
8890
 
8891
    @Override
8892
    public int hashCode() {
8893
      return 0;
8894
    }
8895
 
8896
    public int compareTo(getHolidays_result other) {
8897
      if (!getClass().equals(other.getClass())) {
8898
        return getClass().getName().compareTo(other.getClass().getName());
8899
      }
8900
 
8901
      int lastComparison = 0;
8902
      getHolidays_result typedOther = (getHolidays_result)other;
8903
 
3430 rajveer 8904
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 8905
      if (lastComparison != 0) {
8906
        return lastComparison;
8907
      }
3430 rajveer 8908
      if (isSetSuccess()) {
8909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8910
        if (lastComparison != 0) {
8911
          return lastComparison;
8912
        }
1730 ankur.sing 8913
      }
8914
      return 0;
8915
    }
8916
 
3430 rajveer 8917
    public _Fields fieldForId(int fieldId) {
8918
      return _Fields.findByThriftId(fieldId);
8919
    }
8920
 
8921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8922
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 8923
      iprot.readStructBegin();
8924
      while (true)
8925
      {
8926
        field = iprot.readFieldBegin();
3430 rajveer 8927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 8928
          break;
8929
        }
3430 rajveer 8930
        switch (field.id) {
8931
          case 0: // SUCCESS
8932
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8933
              {
8934
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
8935
                this.success = new ArrayList<Long>(_list13.size);
8936
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 8937
                {
3430 rajveer 8938
                  long _elem15; // required
8939
                  _elem15 = iprot.readI64();
8940
                  this.success.add(_elem15);
1730 ankur.sing 8941
                }
3430 rajveer 8942
                iprot.readListEnd();
1730 ankur.sing 8943
              }
3430 rajveer 8944
            } else { 
8945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8946
            }
8947
            break;
8948
          default:
8949
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 8950
        }
3430 rajveer 8951
        iprot.readFieldEnd();
1730 ankur.sing 8952
      }
8953
      iprot.readStructEnd();
8954
      validate();
8955
    }
8956
 
3430 rajveer 8957
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 8958
      oprot.writeStructBegin(STRUCT_DESC);
8959
 
8960
      if (this.isSetSuccess()) {
8961
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8962
        {
3430 rajveer 8963
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 8964
          for (long _iter16 : this.success)
1730 ankur.sing 8965
          {
3044 chandransh 8966
            oprot.writeI64(_iter16);
1730 ankur.sing 8967
          }
8968
          oprot.writeListEnd();
8969
        }
8970
        oprot.writeFieldEnd();
8971
      }
8972
      oprot.writeFieldStop();
8973
      oprot.writeStructEnd();
8974
    }
8975
 
8976
    @Override
8977
    public String toString() {
8978
      StringBuilder sb = new StringBuilder("getHolidays_result(");
8979
      boolean first = true;
8980
 
8981
      sb.append("success:");
8982
      if (this.success == null) {
8983
        sb.append("null");
8984
      } else {
8985
        sb.append(this.success);
8986
      }
8987
      first = false;
8988
      sb.append(")");
8989
      return sb.toString();
8990
    }
8991
 
3430 rajveer 8992
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 8993
      // check for required fields
8994
    }
8995
 
3430 rajveer 8996
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8997
      try {
8998
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8999
      } catch (org.apache.thrift.TException te) {
9000
        throw new java.io.IOException(te);
9001
      }
9002
    }
9003
 
9004
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9005
      try {
9006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9007
      } catch (org.apache.thrift.TException te) {
9008
        throw new java.io.IOException(te);
9009
      }
9010
    }
9011
 
1730 ankur.sing 9012
  }
9013
 
4934 amit.gupta 9014
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
9015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
9016
 
9017
    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);
9018
    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);
9019
    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);
9020
 
9021
    private long catalogItemId; // required
9022
    private String destination_pin; // required
9023
    private DeliveryType type; // required
9024
 
9025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9027
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
9028
      DESTINATION_PIN((short)2, "destination_pin"),
9029
      /**
9030
       * 
9031
       * @see DeliveryType
9032
       */
9033
      TYPE((short)3, "type");
9034
 
9035
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9036
 
9037
      static {
9038
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9039
          byName.put(field.getFieldName(), field);
9040
        }
9041
      }
9042
 
9043
      /**
9044
       * Find the _Fields constant that matches fieldId, or null if its not found.
9045
       */
9046
      public static _Fields findByThriftId(int fieldId) {
9047
        switch(fieldId) {
9048
          case 1: // CATALOG_ITEM_ID
9049
            return CATALOG_ITEM_ID;
9050
          case 2: // DESTINATION_PIN
9051
            return DESTINATION_PIN;
9052
          case 3: // TYPE
9053
            return TYPE;
9054
          default:
9055
            return null;
9056
        }
9057
      }
9058
 
9059
      /**
9060
       * Find the _Fields constant that matches fieldId, throwing an exception
9061
       * if it is not found.
9062
       */
9063
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9064
        _Fields fields = findByThriftId(fieldId);
9065
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9066
        return fields;
9067
      }
9068
 
9069
      /**
9070
       * Find the _Fields constant that matches name, or null if its not found.
9071
       */
9072
      public static _Fields findByName(String name) {
9073
        return byName.get(name);
9074
      }
9075
 
9076
      private final short _thriftId;
9077
      private final String _fieldName;
9078
 
9079
      _Fields(short thriftId, String fieldName) {
9080
        _thriftId = thriftId;
9081
        _fieldName = fieldName;
9082
      }
9083
 
9084
      public short getThriftFieldId() {
9085
        return _thriftId;
9086
      }
9087
 
9088
      public String getFieldName() {
9089
        return _fieldName;
9090
      }
9091
    }
9092
 
9093
    // isset id assignments
9094
    private static final int __CATALOGITEMID_ISSET_ID = 0;
9095
    private BitSet __isset_bit_vector = new BitSet(1);
9096
 
9097
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9098
    static {
9099
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9100
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9101
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9102
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9103
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9104
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9105
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
9106
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9107
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
9108
    }
9109
 
9110
    public getEntityLogisticsEstimation_args() {
9111
    }
9112
 
9113
    public getEntityLogisticsEstimation_args(
9114
      long catalogItemId,
9115
      String destination_pin,
9116
      DeliveryType type)
9117
    {
9118
      this();
9119
      this.catalogItemId = catalogItemId;
9120
      setCatalogItemIdIsSet(true);
9121
      this.destination_pin = destination_pin;
9122
      this.type = type;
9123
    }
9124
 
9125
    /**
9126
     * Performs a deep copy on <i>other</i>.
9127
     */
9128
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
9129
      __isset_bit_vector.clear();
9130
      __isset_bit_vector.or(other.__isset_bit_vector);
9131
      this.catalogItemId = other.catalogItemId;
9132
      if (other.isSetDestination_pin()) {
9133
        this.destination_pin = other.destination_pin;
9134
      }
9135
      if (other.isSetType()) {
9136
        this.type = other.type;
9137
      }
9138
    }
9139
 
9140
    public getEntityLogisticsEstimation_args deepCopy() {
9141
      return new getEntityLogisticsEstimation_args(this);
9142
    }
9143
 
9144
    @Override
9145
    public void clear() {
9146
      setCatalogItemIdIsSet(false);
9147
      this.catalogItemId = 0;
9148
      this.destination_pin = null;
9149
      this.type = null;
9150
    }
9151
 
9152
    public long getCatalogItemId() {
9153
      return this.catalogItemId;
9154
    }
9155
 
9156
    public void setCatalogItemId(long catalogItemId) {
9157
      this.catalogItemId = catalogItemId;
9158
      setCatalogItemIdIsSet(true);
9159
    }
9160
 
9161
    public void unsetCatalogItemId() {
9162
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
9163
    }
9164
 
9165
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
9166
    public boolean isSetCatalogItemId() {
9167
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
9168
    }
9169
 
9170
    public void setCatalogItemIdIsSet(boolean value) {
9171
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
9172
    }
9173
 
9174
    public String getDestination_pin() {
9175
      return this.destination_pin;
9176
    }
9177
 
9178
    public void setDestination_pin(String destination_pin) {
9179
      this.destination_pin = destination_pin;
9180
    }
9181
 
9182
    public void unsetDestination_pin() {
9183
      this.destination_pin = null;
9184
    }
9185
 
9186
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
9187
    public boolean isSetDestination_pin() {
9188
      return this.destination_pin != null;
9189
    }
9190
 
9191
    public void setDestination_pinIsSet(boolean value) {
9192
      if (!value) {
9193
        this.destination_pin = null;
9194
      }
9195
    }
9196
 
9197
    /**
9198
     * 
9199
     * @see DeliveryType
9200
     */
9201
    public DeliveryType getType() {
9202
      return this.type;
9203
    }
9204
 
9205
    /**
9206
     * 
9207
     * @see DeliveryType
9208
     */
9209
    public void setType(DeliveryType type) {
9210
      this.type = type;
9211
    }
9212
 
9213
    public void unsetType() {
9214
      this.type = null;
9215
    }
9216
 
9217
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
9218
    public boolean isSetType() {
9219
      return this.type != null;
9220
    }
9221
 
9222
    public void setTypeIsSet(boolean value) {
9223
      if (!value) {
9224
        this.type = null;
9225
      }
9226
    }
9227
 
9228
    public void setFieldValue(_Fields field, Object value) {
9229
      switch (field) {
9230
      case CATALOG_ITEM_ID:
9231
        if (value == null) {
9232
          unsetCatalogItemId();
9233
        } else {
9234
          setCatalogItemId((Long)value);
9235
        }
9236
        break;
9237
 
9238
      case DESTINATION_PIN:
9239
        if (value == null) {
9240
          unsetDestination_pin();
9241
        } else {
9242
          setDestination_pin((String)value);
9243
        }
9244
        break;
9245
 
9246
      case TYPE:
9247
        if (value == null) {
9248
          unsetType();
9249
        } else {
9250
          setType((DeliveryType)value);
9251
        }
9252
        break;
9253
 
9254
      }
9255
    }
9256
 
9257
    public Object getFieldValue(_Fields field) {
9258
      switch (field) {
9259
      case CATALOG_ITEM_ID:
9260
        return Long.valueOf(getCatalogItemId());
9261
 
9262
      case DESTINATION_PIN:
9263
        return getDestination_pin();
9264
 
9265
      case TYPE:
9266
        return getType();
9267
 
9268
      }
9269
      throw new IllegalStateException();
9270
    }
9271
 
9272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9273
    public boolean isSet(_Fields field) {
9274
      if (field == null) {
9275
        throw new IllegalArgumentException();
9276
      }
9277
 
9278
      switch (field) {
9279
      case CATALOG_ITEM_ID:
9280
        return isSetCatalogItemId();
9281
      case DESTINATION_PIN:
9282
        return isSetDestination_pin();
9283
      case TYPE:
9284
        return isSetType();
9285
      }
9286
      throw new IllegalStateException();
9287
    }
9288
 
9289
    @Override
9290
    public boolean equals(Object that) {
9291
      if (that == null)
9292
        return false;
9293
      if (that instanceof getEntityLogisticsEstimation_args)
9294
        return this.equals((getEntityLogisticsEstimation_args)that);
9295
      return false;
9296
    }
9297
 
9298
    public boolean equals(getEntityLogisticsEstimation_args that) {
9299
      if (that == null)
9300
        return false;
9301
 
9302
      boolean this_present_catalogItemId = true;
9303
      boolean that_present_catalogItemId = true;
9304
      if (this_present_catalogItemId || that_present_catalogItemId) {
9305
        if (!(this_present_catalogItemId && that_present_catalogItemId))
9306
          return false;
9307
        if (this.catalogItemId != that.catalogItemId)
9308
          return false;
9309
      }
9310
 
9311
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
9312
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
9313
      if (this_present_destination_pin || that_present_destination_pin) {
9314
        if (!(this_present_destination_pin && that_present_destination_pin))
9315
          return false;
9316
        if (!this.destination_pin.equals(that.destination_pin))
9317
          return false;
9318
      }
9319
 
9320
      boolean this_present_type = true && this.isSetType();
9321
      boolean that_present_type = true && that.isSetType();
9322
      if (this_present_type || that_present_type) {
9323
        if (!(this_present_type && that_present_type))
9324
          return false;
9325
        if (!this.type.equals(that.type))
9326
          return false;
9327
      }
9328
 
9329
      return true;
9330
    }
9331
 
9332
    @Override
9333
    public int hashCode() {
9334
      return 0;
9335
    }
9336
 
9337
    public int compareTo(getEntityLogisticsEstimation_args other) {
9338
      if (!getClass().equals(other.getClass())) {
9339
        return getClass().getName().compareTo(other.getClass().getName());
9340
      }
9341
 
9342
      int lastComparison = 0;
9343
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
9344
 
9345
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
9346
      if (lastComparison != 0) {
9347
        return lastComparison;
9348
      }
9349
      if (isSetCatalogItemId()) {
9350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
9351
        if (lastComparison != 0) {
9352
          return lastComparison;
9353
        }
9354
      }
9355
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
9356
      if (lastComparison != 0) {
9357
        return lastComparison;
9358
      }
9359
      if (isSetDestination_pin()) {
9360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
9361
        if (lastComparison != 0) {
9362
          return lastComparison;
9363
        }
9364
      }
9365
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
9366
      if (lastComparison != 0) {
9367
        return lastComparison;
9368
      }
9369
      if (isSetType()) {
9370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9371
        if (lastComparison != 0) {
9372
          return lastComparison;
9373
        }
9374
      }
9375
      return 0;
9376
    }
9377
 
9378
    public _Fields fieldForId(int fieldId) {
9379
      return _Fields.findByThriftId(fieldId);
9380
    }
9381
 
9382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9383
      org.apache.thrift.protocol.TField field;
9384
      iprot.readStructBegin();
9385
      while (true)
9386
      {
9387
        field = iprot.readFieldBegin();
9388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9389
          break;
9390
        }
9391
        switch (field.id) {
9392
          case 1: // CATALOG_ITEM_ID
9393
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9394
              this.catalogItemId = iprot.readI64();
9395
              setCatalogItemIdIsSet(true);
9396
            } else { 
9397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9398
            }
9399
            break;
9400
          case 2: // DESTINATION_PIN
9401
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9402
              this.destination_pin = iprot.readString();
9403
            } else { 
9404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9405
            }
9406
            break;
9407
          case 3: // TYPE
9408
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9409
              this.type = DeliveryType.findByValue(iprot.readI32());
9410
            } else { 
9411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9412
            }
9413
            break;
9414
          default:
9415
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9416
        }
9417
        iprot.readFieldEnd();
9418
      }
9419
      iprot.readStructEnd();
9420
      validate();
9421
    }
9422
 
9423
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9424
      validate();
9425
 
9426
      oprot.writeStructBegin(STRUCT_DESC);
9427
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
9428
      oprot.writeI64(this.catalogItemId);
9429
      oprot.writeFieldEnd();
9430
      if (this.destination_pin != null) {
9431
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
9432
        oprot.writeString(this.destination_pin);
9433
        oprot.writeFieldEnd();
9434
      }
9435
      if (this.type != null) {
9436
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9437
        oprot.writeI32(this.type.getValue());
9438
        oprot.writeFieldEnd();
9439
      }
9440
      oprot.writeFieldStop();
9441
      oprot.writeStructEnd();
9442
    }
9443
 
9444
    @Override
9445
    public String toString() {
9446
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
9447
      boolean first = true;
9448
 
9449
      sb.append("catalogItemId:");
9450
      sb.append(this.catalogItemId);
9451
      first = false;
9452
      if (!first) sb.append(", ");
9453
      sb.append("destination_pin:");
9454
      if (this.destination_pin == null) {
9455
        sb.append("null");
9456
      } else {
9457
        sb.append(this.destination_pin);
9458
      }
9459
      first = false;
9460
      if (!first) sb.append(", ");
9461
      sb.append("type:");
9462
      if (this.type == null) {
9463
        sb.append("null");
9464
      } else {
9465
        sb.append(this.type);
9466
      }
9467
      first = false;
9468
      sb.append(")");
9469
      return sb.toString();
9470
    }
9471
 
9472
    public void validate() throws org.apache.thrift.TException {
9473
      // check for required fields
9474
    }
9475
 
9476
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9477
      try {
9478
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9479
      } catch (org.apache.thrift.TException te) {
9480
        throw new java.io.IOException(te);
9481
      }
9482
    }
9483
 
9484
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9485
      try {
9486
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9487
      } catch (org.apache.thrift.TException te) {
9488
        throw new java.io.IOException(te);
9489
      }
9490
    }
9491
 
9492
  }
9493
 
9494
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
9495
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
9496
 
9497
    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);
9498
    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);
9499
 
9500
    private List<Long> success; // required
9501
    private LogisticsServiceException se; // required
9502
 
9503
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9504
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9505
      SUCCESS((short)0, "success"),
9506
      SE((short)1, "se");
9507
 
9508
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9509
 
9510
      static {
9511
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9512
          byName.put(field.getFieldName(), field);
9513
        }
9514
      }
9515
 
9516
      /**
9517
       * Find the _Fields constant that matches fieldId, or null if its not found.
9518
       */
9519
      public static _Fields findByThriftId(int fieldId) {
9520
        switch(fieldId) {
9521
          case 0: // SUCCESS
9522
            return SUCCESS;
9523
          case 1: // SE
9524
            return SE;
9525
          default:
9526
            return null;
9527
        }
9528
      }
9529
 
9530
      /**
9531
       * Find the _Fields constant that matches fieldId, throwing an exception
9532
       * if it is not found.
9533
       */
9534
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9535
        _Fields fields = findByThriftId(fieldId);
9536
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9537
        return fields;
9538
      }
9539
 
9540
      /**
9541
       * Find the _Fields constant that matches name, or null if its not found.
9542
       */
9543
      public static _Fields findByName(String name) {
9544
        return byName.get(name);
9545
      }
9546
 
9547
      private final short _thriftId;
9548
      private final String _fieldName;
9549
 
9550
      _Fields(short thriftId, String fieldName) {
9551
        _thriftId = thriftId;
9552
        _fieldName = fieldName;
9553
      }
9554
 
9555
      public short getThriftFieldId() {
9556
        return _thriftId;
9557
      }
9558
 
9559
      public String getFieldName() {
9560
        return _fieldName;
9561
      }
9562
    }
9563
 
9564
    // isset id assignments
9565
 
9566
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9567
    static {
9568
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9569
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9570
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9571
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9572
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9573
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
9576
    }
9577
 
9578
    public getEntityLogisticsEstimation_result() {
9579
    }
9580
 
9581
    public getEntityLogisticsEstimation_result(
9582
      List<Long> success,
9583
      LogisticsServiceException se)
9584
    {
9585
      this();
9586
      this.success = success;
9587
      this.se = se;
9588
    }
9589
 
9590
    /**
9591
     * Performs a deep copy on <i>other</i>.
9592
     */
9593
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
9594
      if (other.isSetSuccess()) {
9595
        List<Long> __this__success = new ArrayList<Long>();
9596
        for (Long other_element : other.success) {
9597
          __this__success.add(other_element);
9598
        }
9599
        this.success = __this__success;
9600
      }
9601
      if (other.isSetSe()) {
9602
        this.se = new LogisticsServiceException(other.se);
9603
      }
9604
    }
9605
 
9606
    public getEntityLogisticsEstimation_result deepCopy() {
9607
      return new getEntityLogisticsEstimation_result(this);
9608
    }
9609
 
9610
    @Override
9611
    public void clear() {
9612
      this.success = null;
9613
      this.se = null;
9614
    }
9615
 
9616
    public int getSuccessSize() {
9617
      return (this.success == null) ? 0 : this.success.size();
9618
    }
9619
 
9620
    public java.util.Iterator<Long> getSuccessIterator() {
9621
      return (this.success == null) ? null : this.success.iterator();
9622
    }
9623
 
9624
    public void addToSuccess(long elem) {
9625
      if (this.success == null) {
9626
        this.success = new ArrayList<Long>();
9627
      }
9628
      this.success.add(elem);
9629
    }
9630
 
9631
    public List<Long> getSuccess() {
9632
      return this.success;
9633
    }
9634
 
9635
    public void setSuccess(List<Long> success) {
9636
      this.success = success;
9637
    }
9638
 
9639
    public void unsetSuccess() {
9640
      this.success = null;
9641
    }
9642
 
9643
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9644
    public boolean isSetSuccess() {
9645
      return this.success != null;
9646
    }
9647
 
9648
    public void setSuccessIsSet(boolean value) {
9649
      if (!value) {
9650
        this.success = null;
9651
      }
9652
    }
9653
 
9654
    public LogisticsServiceException getSe() {
9655
      return this.se;
9656
    }
9657
 
9658
    public void setSe(LogisticsServiceException se) {
9659
      this.se = se;
9660
    }
9661
 
9662
    public void unsetSe() {
9663
      this.se = null;
9664
    }
9665
 
9666
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
9667
    public boolean isSetSe() {
9668
      return this.se != null;
9669
    }
9670
 
9671
    public void setSeIsSet(boolean value) {
9672
      if (!value) {
9673
        this.se = null;
9674
      }
9675
    }
9676
 
9677
    public void setFieldValue(_Fields field, Object value) {
9678
      switch (field) {
9679
      case SUCCESS:
9680
        if (value == null) {
9681
          unsetSuccess();
9682
        } else {
9683
          setSuccess((List<Long>)value);
9684
        }
9685
        break;
9686
 
9687
      case SE:
9688
        if (value == null) {
9689
          unsetSe();
9690
        } else {
9691
          setSe((LogisticsServiceException)value);
9692
        }
9693
        break;
9694
 
9695
      }
9696
    }
9697
 
9698
    public Object getFieldValue(_Fields field) {
9699
      switch (field) {
9700
      case SUCCESS:
9701
        return getSuccess();
9702
 
9703
      case SE:
9704
        return getSe();
9705
 
9706
      }
9707
      throw new IllegalStateException();
9708
    }
9709
 
9710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9711
    public boolean isSet(_Fields field) {
9712
      if (field == null) {
9713
        throw new IllegalArgumentException();
9714
      }
9715
 
9716
      switch (field) {
9717
      case SUCCESS:
9718
        return isSetSuccess();
9719
      case SE:
9720
        return isSetSe();
9721
      }
9722
      throw new IllegalStateException();
9723
    }
9724
 
9725
    @Override
9726
    public boolean equals(Object that) {
9727
      if (that == null)
9728
        return false;
9729
      if (that instanceof getEntityLogisticsEstimation_result)
9730
        return this.equals((getEntityLogisticsEstimation_result)that);
9731
      return false;
9732
    }
9733
 
9734
    public boolean equals(getEntityLogisticsEstimation_result that) {
9735
      if (that == null)
9736
        return false;
9737
 
9738
      boolean this_present_success = true && this.isSetSuccess();
9739
      boolean that_present_success = true && that.isSetSuccess();
9740
      if (this_present_success || that_present_success) {
9741
        if (!(this_present_success && that_present_success))
9742
          return false;
9743
        if (!this.success.equals(that.success))
9744
          return false;
9745
      }
9746
 
9747
      boolean this_present_se = true && this.isSetSe();
9748
      boolean that_present_se = true && that.isSetSe();
9749
      if (this_present_se || that_present_se) {
9750
        if (!(this_present_se && that_present_se))
9751
          return false;
9752
        if (!this.se.equals(that.se))
9753
          return false;
9754
      }
9755
 
9756
      return true;
9757
    }
9758
 
9759
    @Override
9760
    public int hashCode() {
9761
      return 0;
9762
    }
9763
 
9764
    public int compareTo(getEntityLogisticsEstimation_result other) {
9765
      if (!getClass().equals(other.getClass())) {
9766
        return getClass().getName().compareTo(other.getClass().getName());
9767
      }
9768
 
9769
      int lastComparison = 0;
9770
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
9771
 
9772
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9773
      if (lastComparison != 0) {
9774
        return lastComparison;
9775
      }
9776
      if (isSetSuccess()) {
9777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9778
        if (lastComparison != 0) {
9779
          return lastComparison;
9780
        }
9781
      }
9782
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
9783
      if (lastComparison != 0) {
9784
        return lastComparison;
9785
      }
9786
      if (isSetSe()) {
9787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9788
        if (lastComparison != 0) {
9789
          return lastComparison;
9790
        }
9791
      }
9792
      return 0;
9793
    }
9794
 
9795
    public _Fields fieldForId(int fieldId) {
9796
      return _Fields.findByThriftId(fieldId);
9797
    }
9798
 
9799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9800
      org.apache.thrift.protocol.TField field;
9801
      iprot.readStructBegin();
9802
      while (true)
9803
      {
9804
        field = iprot.readFieldBegin();
9805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9806
          break;
9807
        }
9808
        switch (field.id) {
9809
          case 0: // SUCCESS
9810
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9811
              {
9812
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
9813
                this.success = new ArrayList<Long>(_list17.size);
9814
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
9815
                {
9816
                  long _elem19; // required
9817
                  _elem19 = iprot.readI64();
9818
                  this.success.add(_elem19);
9819
                }
9820
                iprot.readListEnd();
9821
              }
9822
            } else { 
9823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9824
            }
9825
            break;
9826
          case 1: // SE
9827
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9828
              this.se = new LogisticsServiceException();
9829
              this.se.read(iprot);
9830
            } else { 
9831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9832
            }
9833
            break;
9834
          default:
9835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9836
        }
9837
        iprot.readFieldEnd();
9838
      }
9839
      iprot.readStructEnd();
9840
      validate();
9841
    }
9842
 
9843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9844
      oprot.writeStructBegin(STRUCT_DESC);
9845
 
9846
      if (this.isSetSuccess()) {
9847
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9848
        {
9849
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
9850
          for (long _iter20 : this.success)
9851
          {
9852
            oprot.writeI64(_iter20);
9853
          }
9854
          oprot.writeListEnd();
9855
        }
9856
        oprot.writeFieldEnd();
9857
      } else if (this.isSetSe()) {
9858
        oprot.writeFieldBegin(SE_FIELD_DESC);
9859
        this.se.write(oprot);
9860
        oprot.writeFieldEnd();
9861
      }
9862
      oprot.writeFieldStop();
9863
      oprot.writeStructEnd();
9864
    }
9865
 
9866
    @Override
9867
    public String toString() {
9868
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
9869
      boolean first = true;
9870
 
9871
      sb.append("success:");
9872
      if (this.success == null) {
9873
        sb.append("null");
9874
      } else {
9875
        sb.append(this.success);
9876
      }
9877
      first = false;
9878
      if (!first) sb.append(", ");
9879
      sb.append("se:");
9880
      if (this.se == null) {
9881
        sb.append("null");
9882
      } else {
9883
        sb.append(this.se);
9884
      }
9885
      first = false;
9886
      sb.append(")");
9887
      return sb.toString();
9888
    }
9889
 
9890
    public void validate() throws org.apache.thrift.TException {
9891
      // check for required fields
9892
    }
9893
 
9894
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9895
      try {
9896
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9897
      } catch (org.apache.thrift.TException te) {
9898
        throw new java.io.IOException(te);
9899
      }
9900
    }
9901
 
9902
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9903
      try {
9904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9905
      } catch (org.apache.thrift.TException te) {
9906
        throw new java.io.IOException(te);
9907
      }
9908
    }
9909
 
9910
  }
9911
 
5527 anupam.sin 9912
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
9913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
9914
 
9915
    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);
9916
 
9917
    private long pickUp; // required
9918
 
9919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9921
      PICK_UP((short)1, "pickUp");
9922
 
9923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9924
 
9925
      static {
9926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9927
          byName.put(field.getFieldName(), field);
9928
        }
9929
      }
9930
 
9931
      /**
9932
       * Find the _Fields constant that matches fieldId, or null if its not found.
9933
       */
9934
      public static _Fields findByThriftId(int fieldId) {
9935
        switch(fieldId) {
9936
          case 1: // PICK_UP
9937
            return PICK_UP;
9938
          default:
9939
            return null;
9940
        }
9941
      }
9942
 
9943
      /**
9944
       * Find the _Fields constant that matches fieldId, throwing an exception
9945
       * if it is not found.
9946
       */
9947
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9948
        _Fields fields = findByThriftId(fieldId);
9949
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9950
        return fields;
9951
      }
9952
 
9953
      /**
9954
       * Find the _Fields constant that matches name, or null if its not found.
9955
       */
9956
      public static _Fields findByName(String name) {
9957
        return byName.get(name);
9958
      }
9959
 
9960
      private final short _thriftId;
9961
      private final String _fieldName;
9962
 
9963
      _Fields(short thriftId, String fieldName) {
9964
        _thriftId = thriftId;
9965
        _fieldName = fieldName;
9966
      }
9967
 
9968
      public short getThriftFieldId() {
9969
        return _thriftId;
9970
      }
9971
 
9972
      public String getFieldName() {
9973
        return _fieldName;
9974
      }
9975
    }
9976
 
9977
    // isset id assignments
9978
    private static final int __PICKUP_ISSET_ID = 0;
9979
    private BitSet __isset_bit_vector = new BitSet(1);
9980
 
9981
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9982
    static {
9983
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9984
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9985
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9986
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9987
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
9988
    }
9989
 
9990
    public getProviderForPickupType_args() {
9991
    }
9992
 
9993
    public getProviderForPickupType_args(
9994
      long pickUp)
9995
    {
9996
      this();
9997
      this.pickUp = pickUp;
9998
      setPickUpIsSet(true);
9999
    }
10000
 
10001
    /**
10002
     * Performs a deep copy on <i>other</i>.
10003
     */
10004
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
10005
      __isset_bit_vector.clear();
10006
      __isset_bit_vector.or(other.__isset_bit_vector);
10007
      this.pickUp = other.pickUp;
10008
    }
10009
 
10010
    public getProviderForPickupType_args deepCopy() {
10011
      return new getProviderForPickupType_args(this);
10012
    }
10013
 
10014
    @Override
10015
    public void clear() {
10016
      setPickUpIsSet(false);
10017
      this.pickUp = 0;
10018
    }
10019
 
10020
    public long getPickUp() {
10021
      return this.pickUp;
10022
    }
10023
 
10024
    public void setPickUp(long pickUp) {
10025
      this.pickUp = pickUp;
10026
      setPickUpIsSet(true);
10027
    }
10028
 
10029
    public void unsetPickUp() {
10030
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
10031
    }
10032
 
10033
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
10034
    public boolean isSetPickUp() {
10035
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
10036
    }
10037
 
10038
    public void setPickUpIsSet(boolean value) {
10039
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
10040
    }
10041
 
10042
    public void setFieldValue(_Fields field, Object value) {
10043
      switch (field) {
10044
      case PICK_UP:
10045
        if (value == null) {
10046
          unsetPickUp();
10047
        } else {
10048
          setPickUp((Long)value);
10049
        }
10050
        break;
10051
 
10052
      }
10053
    }
10054
 
10055
    public Object getFieldValue(_Fields field) {
10056
      switch (field) {
10057
      case PICK_UP:
10058
        return Long.valueOf(getPickUp());
10059
 
10060
      }
10061
      throw new IllegalStateException();
10062
    }
10063
 
10064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10065
    public boolean isSet(_Fields field) {
10066
      if (field == null) {
10067
        throw new IllegalArgumentException();
10068
      }
10069
 
10070
      switch (field) {
10071
      case PICK_UP:
10072
        return isSetPickUp();
10073
      }
10074
      throw new IllegalStateException();
10075
    }
10076
 
10077
    @Override
10078
    public boolean equals(Object that) {
10079
      if (that == null)
10080
        return false;
10081
      if (that instanceof getProviderForPickupType_args)
10082
        return this.equals((getProviderForPickupType_args)that);
10083
      return false;
10084
    }
10085
 
10086
    public boolean equals(getProviderForPickupType_args that) {
10087
      if (that == null)
10088
        return false;
10089
 
10090
      boolean this_present_pickUp = true;
10091
      boolean that_present_pickUp = true;
10092
      if (this_present_pickUp || that_present_pickUp) {
10093
        if (!(this_present_pickUp && that_present_pickUp))
10094
          return false;
10095
        if (this.pickUp != that.pickUp)
10096
          return false;
10097
      }
10098
 
10099
      return true;
10100
    }
10101
 
10102
    @Override
10103
    public int hashCode() {
10104
      return 0;
10105
    }
10106
 
10107
    public int compareTo(getProviderForPickupType_args other) {
10108
      if (!getClass().equals(other.getClass())) {
10109
        return getClass().getName().compareTo(other.getClass().getName());
10110
      }
10111
 
10112
      int lastComparison = 0;
10113
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
10114
 
10115
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
10116
      if (lastComparison != 0) {
10117
        return lastComparison;
10118
      }
10119
      if (isSetPickUp()) {
10120
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
10121
        if (lastComparison != 0) {
10122
          return lastComparison;
10123
        }
10124
      }
10125
      return 0;
10126
    }
10127
 
10128
    public _Fields fieldForId(int fieldId) {
10129
      return _Fields.findByThriftId(fieldId);
10130
    }
10131
 
10132
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10133
      org.apache.thrift.protocol.TField field;
10134
      iprot.readStructBegin();
10135
      while (true)
10136
      {
10137
        field = iprot.readFieldBegin();
10138
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10139
          break;
10140
        }
10141
        switch (field.id) {
10142
          case 1: // PICK_UP
10143
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10144
              this.pickUp = iprot.readI64();
10145
              setPickUpIsSet(true);
10146
            } else { 
10147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10148
            }
10149
            break;
10150
          default:
10151
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10152
        }
10153
        iprot.readFieldEnd();
10154
      }
10155
      iprot.readStructEnd();
10156
      validate();
10157
    }
10158
 
10159
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10160
      validate();
10161
 
10162
      oprot.writeStructBegin(STRUCT_DESC);
10163
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
10164
      oprot.writeI64(this.pickUp);
10165
      oprot.writeFieldEnd();
10166
      oprot.writeFieldStop();
10167
      oprot.writeStructEnd();
10168
    }
10169
 
10170
    @Override
10171
    public String toString() {
10172
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
10173
      boolean first = true;
10174
 
10175
      sb.append("pickUp:");
10176
      sb.append(this.pickUp);
10177
      first = false;
10178
      sb.append(")");
10179
      return sb.toString();
10180
    }
10181
 
10182
    public void validate() throws org.apache.thrift.TException {
10183
      // check for required fields
10184
    }
10185
 
10186
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10187
      try {
10188
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10189
      } catch (org.apache.thrift.TException te) {
10190
        throw new java.io.IOException(te);
10191
      }
10192
    }
10193
 
10194
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10195
      try {
10196
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10197
        __isset_bit_vector = new BitSet(1);
10198
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10199
      } catch (org.apache.thrift.TException te) {
10200
        throw new java.io.IOException(te);
10201
      }
10202
    }
10203
 
10204
  }
10205
 
10206
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
10207
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
10208
 
10209
    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);
10210
 
10211
    private long success; // required
10212
 
10213
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10214
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10215
      SUCCESS((short)0, "success");
10216
 
10217
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10218
 
10219
      static {
10220
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10221
          byName.put(field.getFieldName(), field);
10222
        }
10223
      }
10224
 
10225
      /**
10226
       * Find the _Fields constant that matches fieldId, or null if its not found.
10227
       */
10228
      public static _Fields findByThriftId(int fieldId) {
10229
        switch(fieldId) {
10230
          case 0: // SUCCESS
10231
            return SUCCESS;
10232
          default:
10233
            return null;
10234
        }
10235
      }
10236
 
10237
      /**
10238
       * Find the _Fields constant that matches fieldId, throwing an exception
10239
       * if it is not found.
10240
       */
10241
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10242
        _Fields fields = findByThriftId(fieldId);
10243
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10244
        return fields;
10245
      }
10246
 
10247
      /**
10248
       * Find the _Fields constant that matches name, or null if its not found.
10249
       */
10250
      public static _Fields findByName(String name) {
10251
        return byName.get(name);
10252
      }
10253
 
10254
      private final short _thriftId;
10255
      private final String _fieldName;
10256
 
10257
      _Fields(short thriftId, String fieldName) {
10258
        _thriftId = thriftId;
10259
        _fieldName = fieldName;
10260
      }
10261
 
10262
      public short getThriftFieldId() {
10263
        return _thriftId;
10264
      }
10265
 
10266
      public String getFieldName() {
10267
        return _fieldName;
10268
      }
10269
    }
10270
 
10271
    // isset id assignments
10272
    private static final int __SUCCESS_ISSET_ID = 0;
10273
    private BitSet __isset_bit_vector = new BitSet(1);
10274
 
10275
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10276
    static {
10277
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10278
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
10282
    }
10283
 
10284
    public getProviderForPickupType_result() {
10285
    }
10286
 
10287
    public getProviderForPickupType_result(
10288
      long success)
10289
    {
10290
      this();
10291
      this.success = success;
10292
      setSuccessIsSet(true);
10293
    }
10294
 
10295
    /**
10296
     * Performs a deep copy on <i>other</i>.
10297
     */
10298
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
10299
      __isset_bit_vector.clear();
10300
      __isset_bit_vector.or(other.__isset_bit_vector);
10301
      this.success = other.success;
10302
    }
10303
 
10304
    public getProviderForPickupType_result deepCopy() {
10305
      return new getProviderForPickupType_result(this);
10306
    }
10307
 
10308
    @Override
10309
    public void clear() {
10310
      setSuccessIsSet(false);
10311
      this.success = 0;
10312
    }
10313
 
10314
    public long getSuccess() {
10315
      return this.success;
10316
    }
10317
 
10318
    public void setSuccess(long success) {
10319
      this.success = success;
10320
      setSuccessIsSet(true);
10321
    }
10322
 
10323
    public void unsetSuccess() {
10324
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10325
    }
10326
 
10327
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10328
    public boolean isSetSuccess() {
10329
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10330
    }
10331
 
10332
    public void setSuccessIsSet(boolean value) {
10333
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10334
    }
10335
 
10336
    public void setFieldValue(_Fields field, Object value) {
10337
      switch (field) {
10338
      case SUCCESS:
10339
        if (value == null) {
10340
          unsetSuccess();
10341
        } else {
10342
          setSuccess((Long)value);
10343
        }
10344
        break;
10345
 
10346
      }
10347
    }
10348
 
10349
    public Object getFieldValue(_Fields field) {
10350
      switch (field) {
10351
      case SUCCESS:
10352
        return Long.valueOf(getSuccess());
10353
 
10354
      }
10355
      throw new IllegalStateException();
10356
    }
10357
 
10358
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10359
    public boolean isSet(_Fields field) {
10360
      if (field == null) {
10361
        throw new IllegalArgumentException();
10362
      }
10363
 
10364
      switch (field) {
10365
      case SUCCESS:
10366
        return isSetSuccess();
10367
      }
10368
      throw new IllegalStateException();
10369
    }
10370
 
10371
    @Override
10372
    public boolean equals(Object that) {
10373
      if (that == null)
10374
        return false;
10375
      if (that instanceof getProviderForPickupType_result)
10376
        return this.equals((getProviderForPickupType_result)that);
10377
      return false;
10378
    }
10379
 
10380
    public boolean equals(getProviderForPickupType_result that) {
10381
      if (that == null)
10382
        return false;
10383
 
10384
      boolean this_present_success = true;
10385
      boolean that_present_success = true;
10386
      if (this_present_success || that_present_success) {
10387
        if (!(this_present_success && that_present_success))
10388
          return false;
10389
        if (this.success != that.success)
10390
          return false;
10391
      }
10392
 
10393
      return true;
10394
    }
10395
 
10396
    @Override
10397
    public int hashCode() {
10398
      return 0;
10399
    }
10400
 
10401
    public int compareTo(getProviderForPickupType_result other) {
10402
      if (!getClass().equals(other.getClass())) {
10403
        return getClass().getName().compareTo(other.getClass().getName());
10404
      }
10405
 
10406
      int lastComparison = 0;
10407
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
10408
 
10409
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10410
      if (lastComparison != 0) {
10411
        return lastComparison;
10412
      }
10413
      if (isSetSuccess()) {
10414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10415
        if (lastComparison != 0) {
10416
          return lastComparison;
10417
        }
10418
      }
10419
      return 0;
10420
    }
10421
 
10422
    public _Fields fieldForId(int fieldId) {
10423
      return _Fields.findByThriftId(fieldId);
10424
    }
10425
 
10426
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10427
      org.apache.thrift.protocol.TField field;
10428
      iprot.readStructBegin();
10429
      while (true)
10430
      {
10431
        field = iprot.readFieldBegin();
10432
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10433
          break;
10434
        }
10435
        switch (field.id) {
10436
          case 0: // SUCCESS
10437
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10438
              this.success = iprot.readI64();
10439
              setSuccessIsSet(true);
10440
            } else { 
10441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10442
            }
10443
            break;
10444
          default:
10445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10446
        }
10447
        iprot.readFieldEnd();
10448
      }
10449
      iprot.readStructEnd();
10450
      validate();
10451
    }
10452
 
10453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10454
      oprot.writeStructBegin(STRUCT_DESC);
10455
 
10456
      if (this.isSetSuccess()) {
10457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10458
        oprot.writeI64(this.success);
10459
        oprot.writeFieldEnd();
10460
      }
10461
      oprot.writeFieldStop();
10462
      oprot.writeStructEnd();
10463
    }
10464
 
10465
    @Override
10466
    public String toString() {
10467
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
10468
      boolean first = true;
10469
 
10470
      sb.append("success:");
10471
      sb.append(this.success);
10472
      first = false;
10473
      sb.append(")");
10474
      return sb.toString();
10475
    }
10476
 
10477
    public void validate() throws org.apache.thrift.TException {
10478
      // check for required fields
10479
    }
10480
 
10481
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10482
      try {
10483
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10484
      } catch (org.apache.thrift.TException te) {
10485
        throw new java.io.IOException(te);
10486
      }
10487
    }
10488
 
10489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10490
      try {
10491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10492
      } catch (org.apache.thrift.TException te) {
10493
        throw new java.io.IOException(te);
10494
      }
10495
    }
10496
 
10497
  }
10498
 
5553 rajveer 10499
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
10500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
10501
 
10502
 
10503
 
10504
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10505
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10506
;
10507
 
10508
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10509
 
10510
      static {
10511
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10512
          byName.put(field.getFieldName(), field);
10513
        }
10514
      }
10515
 
10516
      /**
10517
       * Find the _Fields constant that matches fieldId, or null if its not found.
10518
       */
10519
      public static _Fields findByThriftId(int fieldId) {
10520
        switch(fieldId) {
10521
          default:
10522
            return null;
10523
        }
10524
      }
10525
 
10526
      /**
10527
       * Find the _Fields constant that matches fieldId, throwing an exception
10528
       * if it is not found.
10529
       */
10530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10531
        _Fields fields = findByThriftId(fieldId);
10532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10533
        return fields;
10534
      }
10535
 
10536
      /**
10537
       * Find the _Fields constant that matches name, or null if its not found.
10538
       */
10539
      public static _Fields findByName(String name) {
10540
        return byName.get(name);
10541
      }
10542
 
10543
      private final short _thriftId;
10544
      private final String _fieldName;
10545
 
10546
      _Fields(short thriftId, String fieldName) {
10547
        _thriftId = thriftId;
10548
        _fieldName = fieldName;
10549
      }
10550
 
10551
      public short getThriftFieldId() {
10552
        return _thriftId;
10553
      }
10554
 
10555
      public String getFieldName() {
10556
        return _fieldName;
10557
      }
10558
    }
10559
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10560
    static {
10561
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
10564
    }
10565
 
10566
    public getAllPickupStores_args() {
10567
    }
10568
 
10569
    /**
10570
     * Performs a deep copy on <i>other</i>.
10571
     */
10572
    public getAllPickupStores_args(getAllPickupStores_args other) {
10573
    }
10574
 
10575
    public getAllPickupStores_args deepCopy() {
10576
      return new getAllPickupStores_args(this);
10577
    }
10578
 
10579
    @Override
10580
    public void clear() {
10581
    }
10582
 
10583
    public void setFieldValue(_Fields field, Object value) {
10584
      switch (field) {
10585
      }
10586
    }
10587
 
10588
    public Object getFieldValue(_Fields field) {
10589
      switch (field) {
10590
      }
10591
      throw new IllegalStateException();
10592
    }
10593
 
10594
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10595
    public boolean isSet(_Fields field) {
10596
      if (field == null) {
10597
        throw new IllegalArgumentException();
10598
      }
10599
 
10600
      switch (field) {
10601
      }
10602
      throw new IllegalStateException();
10603
    }
10604
 
10605
    @Override
10606
    public boolean equals(Object that) {
10607
      if (that == null)
10608
        return false;
10609
      if (that instanceof getAllPickupStores_args)
10610
        return this.equals((getAllPickupStores_args)that);
10611
      return false;
10612
    }
10613
 
10614
    public boolean equals(getAllPickupStores_args that) {
10615
      if (that == null)
10616
        return false;
10617
 
10618
      return true;
10619
    }
10620
 
10621
    @Override
10622
    public int hashCode() {
10623
      return 0;
10624
    }
10625
 
10626
    public int compareTo(getAllPickupStores_args other) {
10627
      if (!getClass().equals(other.getClass())) {
10628
        return getClass().getName().compareTo(other.getClass().getName());
10629
      }
10630
 
10631
      int lastComparison = 0;
10632
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
10633
 
10634
      return 0;
10635
    }
10636
 
10637
    public _Fields fieldForId(int fieldId) {
10638
      return _Fields.findByThriftId(fieldId);
10639
    }
10640
 
10641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10642
      org.apache.thrift.protocol.TField field;
10643
      iprot.readStructBegin();
10644
      while (true)
10645
      {
10646
        field = iprot.readFieldBegin();
10647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10648
          break;
10649
        }
10650
        switch (field.id) {
10651
          default:
10652
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10653
        }
10654
        iprot.readFieldEnd();
10655
      }
10656
      iprot.readStructEnd();
10657
      validate();
10658
    }
10659
 
10660
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10661
      validate();
10662
 
10663
      oprot.writeStructBegin(STRUCT_DESC);
10664
      oprot.writeFieldStop();
10665
      oprot.writeStructEnd();
10666
    }
10667
 
10668
    @Override
10669
    public String toString() {
10670
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
10671
      boolean first = true;
10672
 
10673
      sb.append(")");
10674
      return sb.toString();
10675
    }
10676
 
10677
    public void validate() throws org.apache.thrift.TException {
10678
      // check for required fields
10679
    }
10680
 
10681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10682
      try {
10683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10684
      } catch (org.apache.thrift.TException te) {
10685
        throw new java.io.IOException(te);
10686
      }
10687
    }
10688
 
10689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10690
      try {
10691
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10692
      } catch (org.apache.thrift.TException te) {
10693
        throw new java.io.IOException(te);
10694
      }
10695
    }
10696
 
10697
  }
10698
 
10699
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
10700
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
10701
 
10702
    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);
10703
 
10704
    private List<PickupStore> success; // required
10705
 
10706
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10707
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10708
      SUCCESS((short)0, "success");
10709
 
10710
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10711
 
10712
      static {
10713
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10714
          byName.put(field.getFieldName(), field);
10715
        }
10716
      }
10717
 
10718
      /**
10719
       * Find the _Fields constant that matches fieldId, or null if its not found.
10720
       */
10721
      public static _Fields findByThriftId(int fieldId) {
10722
        switch(fieldId) {
10723
          case 0: // SUCCESS
10724
            return SUCCESS;
10725
          default:
10726
            return null;
10727
        }
10728
      }
10729
 
10730
      /**
10731
       * Find the _Fields constant that matches fieldId, throwing an exception
10732
       * if it is not found.
10733
       */
10734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10735
        _Fields fields = findByThriftId(fieldId);
10736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10737
        return fields;
10738
      }
10739
 
10740
      /**
10741
       * Find the _Fields constant that matches name, or null if its not found.
10742
       */
10743
      public static _Fields findByName(String name) {
10744
        return byName.get(name);
10745
      }
10746
 
10747
      private final short _thriftId;
10748
      private final String _fieldName;
10749
 
10750
      _Fields(short thriftId, String fieldName) {
10751
        _thriftId = thriftId;
10752
        _fieldName = fieldName;
10753
      }
10754
 
10755
      public short getThriftFieldId() {
10756
        return _thriftId;
10757
      }
10758
 
10759
      public String getFieldName() {
10760
        return _fieldName;
10761
      }
10762
    }
10763
 
10764
    // isset id assignments
10765
 
10766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10767
    static {
10768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10769
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10770
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10771
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
10772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
10774
    }
10775
 
10776
    public getAllPickupStores_result() {
10777
    }
10778
 
10779
    public getAllPickupStores_result(
10780
      List<PickupStore> success)
10781
    {
10782
      this();
10783
      this.success = success;
10784
    }
10785
 
10786
    /**
10787
     * Performs a deep copy on <i>other</i>.
10788
     */
10789
    public getAllPickupStores_result(getAllPickupStores_result other) {
10790
      if (other.isSetSuccess()) {
10791
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
10792
        for (PickupStore other_element : other.success) {
10793
          __this__success.add(new PickupStore(other_element));
10794
        }
10795
        this.success = __this__success;
10796
      }
10797
    }
10798
 
10799
    public getAllPickupStores_result deepCopy() {
10800
      return new getAllPickupStores_result(this);
10801
    }
10802
 
10803
    @Override
10804
    public void clear() {
10805
      this.success = null;
10806
    }
10807
 
10808
    public int getSuccessSize() {
10809
      return (this.success == null) ? 0 : this.success.size();
10810
    }
10811
 
10812
    public java.util.Iterator<PickupStore> getSuccessIterator() {
10813
      return (this.success == null) ? null : this.success.iterator();
10814
    }
10815
 
10816
    public void addToSuccess(PickupStore elem) {
10817
      if (this.success == null) {
10818
        this.success = new ArrayList<PickupStore>();
10819
      }
10820
      this.success.add(elem);
10821
    }
10822
 
10823
    public List<PickupStore> getSuccess() {
10824
      return this.success;
10825
    }
10826
 
10827
    public void setSuccess(List<PickupStore> success) {
10828
      this.success = success;
10829
    }
10830
 
10831
    public void unsetSuccess() {
10832
      this.success = null;
10833
    }
10834
 
10835
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10836
    public boolean isSetSuccess() {
10837
      return this.success != null;
10838
    }
10839
 
10840
    public void setSuccessIsSet(boolean value) {
10841
      if (!value) {
10842
        this.success = null;
10843
      }
10844
    }
10845
 
10846
    public void setFieldValue(_Fields field, Object value) {
10847
      switch (field) {
10848
      case SUCCESS:
10849
        if (value == null) {
10850
          unsetSuccess();
10851
        } else {
10852
          setSuccess((List<PickupStore>)value);
10853
        }
10854
        break;
10855
 
10856
      }
10857
    }
10858
 
10859
    public Object getFieldValue(_Fields field) {
10860
      switch (field) {
10861
      case SUCCESS:
10862
        return getSuccess();
10863
 
10864
      }
10865
      throw new IllegalStateException();
10866
    }
10867
 
10868
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10869
    public boolean isSet(_Fields field) {
10870
      if (field == null) {
10871
        throw new IllegalArgumentException();
10872
      }
10873
 
10874
      switch (field) {
10875
      case SUCCESS:
10876
        return isSetSuccess();
10877
      }
10878
      throw new IllegalStateException();
10879
    }
10880
 
10881
    @Override
10882
    public boolean equals(Object that) {
10883
      if (that == null)
10884
        return false;
10885
      if (that instanceof getAllPickupStores_result)
10886
        return this.equals((getAllPickupStores_result)that);
10887
      return false;
10888
    }
10889
 
10890
    public boolean equals(getAllPickupStores_result that) {
10891
      if (that == null)
10892
        return false;
10893
 
10894
      boolean this_present_success = true && this.isSetSuccess();
10895
      boolean that_present_success = true && that.isSetSuccess();
10896
      if (this_present_success || that_present_success) {
10897
        if (!(this_present_success && that_present_success))
10898
          return false;
10899
        if (!this.success.equals(that.success))
10900
          return false;
10901
      }
10902
 
10903
      return true;
10904
    }
10905
 
10906
    @Override
10907
    public int hashCode() {
10908
      return 0;
10909
    }
10910
 
10911
    public int compareTo(getAllPickupStores_result other) {
10912
      if (!getClass().equals(other.getClass())) {
10913
        return getClass().getName().compareTo(other.getClass().getName());
10914
      }
10915
 
10916
      int lastComparison = 0;
10917
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
10918
 
10919
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10920
      if (lastComparison != 0) {
10921
        return lastComparison;
10922
      }
10923
      if (isSetSuccess()) {
10924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10925
        if (lastComparison != 0) {
10926
          return lastComparison;
10927
        }
10928
      }
10929
      return 0;
10930
    }
10931
 
10932
    public _Fields fieldForId(int fieldId) {
10933
      return _Fields.findByThriftId(fieldId);
10934
    }
10935
 
10936
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10937
      org.apache.thrift.protocol.TField field;
10938
      iprot.readStructBegin();
10939
      while (true)
10940
      {
10941
        field = iprot.readFieldBegin();
10942
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10943
          break;
10944
        }
10945
        switch (field.id) {
10946
          case 0: // SUCCESS
10947
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10948
              {
10949
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
10950
                this.success = new ArrayList<PickupStore>(_list21.size);
10951
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
10952
                {
10953
                  PickupStore _elem23; // required
10954
                  _elem23 = new PickupStore();
10955
                  _elem23.read(iprot);
10956
                  this.success.add(_elem23);
10957
                }
10958
                iprot.readListEnd();
10959
              }
10960
            } else { 
10961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10962
            }
10963
            break;
10964
          default:
10965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10966
        }
10967
        iprot.readFieldEnd();
10968
      }
10969
      iprot.readStructEnd();
10970
      validate();
10971
    }
10972
 
10973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10974
      oprot.writeStructBegin(STRUCT_DESC);
10975
 
10976
      if (this.isSetSuccess()) {
10977
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10978
        {
10979
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10980
          for (PickupStore _iter24 : this.success)
10981
          {
10982
            _iter24.write(oprot);
10983
          }
10984
          oprot.writeListEnd();
10985
        }
10986
        oprot.writeFieldEnd();
10987
      }
10988
      oprot.writeFieldStop();
10989
      oprot.writeStructEnd();
10990
    }
10991
 
10992
    @Override
10993
    public String toString() {
10994
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
10995
      boolean first = true;
10996
 
10997
      sb.append("success:");
10998
      if (this.success == null) {
10999
        sb.append("null");
11000
      } else {
11001
        sb.append(this.success);
11002
      }
11003
      first = false;
11004
      sb.append(")");
11005
      return sb.toString();
11006
    }
11007
 
11008
    public void validate() throws org.apache.thrift.TException {
11009
      // check for required fields
11010
    }
11011
 
11012
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11013
      try {
11014
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11015
      } catch (org.apache.thrift.TException te) {
11016
        throw new java.io.IOException(te);
11017
      }
11018
    }
11019
 
11020
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11021
      try {
11022
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11023
      } catch (org.apache.thrift.TException te) {
11024
        throw new java.io.IOException(te);
11025
      }
11026
    }
11027
 
11028
  }
11029
 
11030
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
11031
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
11032
 
11033
    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);
11034
 
11035
    private long storeId; // required
11036
 
11037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11039
      STORE_ID((short)1, "storeId");
11040
 
11041
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11042
 
11043
      static {
11044
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11045
          byName.put(field.getFieldName(), field);
11046
        }
11047
      }
11048
 
11049
      /**
11050
       * Find the _Fields constant that matches fieldId, or null if its not found.
11051
       */
11052
      public static _Fields findByThriftId(int fieldId) {
11053
        switch(fieldId) {
11054
          case 1: // STORE_ID
11055
            return STORE_ID;
11056
          default:
11057
            return null;
11058
        }
11059
      }
11060
 
11061
      /**
11062
       * Find the _Fields constant that matches fieldId, throwing an exception
11063
       * if it is not found.
11064
       */
11065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11066
        _Fields fields = findByThriftId(fieldId);
11067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11068
        return fields;
11069
      }
11070
 
11071
      /**
11072
       * Find the _Fields constant that matches name, or null if its not found.
11073
       */
11074
      public static _Fields findByName(String name) {
11075
        return byName.get(name);
11076
      }
11077
 
11078
      private final short _thriftId;
11079
      private final String _fieldName;
11080
 
11081
      _Fields(short thriftId, String fieldName) {
11082
        _thriftId = thriftId;
11083
        _fieldName = fieldName;
11084
      }
11085
 
11086
      public short getThriftFieldId() {
11087
        return _thriftId;
11088
      }
11089
 
11090
      public String getFieldName() {
11091
        return _fieldName;
11092
      }
11093
    }
11094
 
11095
    // isset id assignments
11096
    private static final int __STOREID_ISSET_ID = 0;
11097
    private BitSet __isset_bit_vector = new BitSet(1);
11098
 
11099
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11100
    static {
11101
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11102
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11103
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11104
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11105
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
11106
    }
11107
 
11108
    public getPickupStore_args() {
11109
    }
11110
 
11111
    public getPickupStore_args(
11112
      long storeId)
11113
    {
11114
      this();
11115
      this.storeId = storeId;
11116
      setStoreIdIsSet(true);
11117
    }
11118
 
11119
    /**
11120
     * Performs a deep copy on <i>other</i>.
11121
     */
11122
    public getPickupStore_args(getPickupStore_args other) {
11123
      __isset_bit_vector.clear();
11124
      __isset_bit_vector.or(other.__isset_bit_vector);
11125
      this.storeId = other.storeId;
11126
    }
11127
 
11128
    public getPickupStore_args deepCopy() {
11129
      return new getPickupStore_args(this);
11130
    }
11131
 
11132
    @Override
11133
    public void clear() {
11134
      setStoreIdIsSet(false);
11135
      this.storeId = 0;
11136
    }
11137
 
11138
    public long getStoreId() {
11139
      return this.storeId;
11140
    }
11141
 
11142
    public void setStoreId(long storeId) {
11143
      this.storeId = storeId;
11144
      setStoreIdIsSet(true);
11145
    }
11146
 
11147
    public void unsetStoreId() {
11148
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
11149
    }
11150
 
11151
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
11152
    public boolean isSetStoreId() {
11153
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
11154
    }
11155
 
11156
    public void setStoreIdIsSet(boolean value) {
11157
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
11158
    }
11159
 
11160
    public void setFieldValue(_Fields field, Object value) {
11161
      switch (field) {
11162
      case STORE_ID:
11163
        if (value == null) {
11164
          unsetStoreId();
11165
        } else {
11166
          setStoreId((Long)value);
11167
        }
11168
        break;
11169
 
11170
      }
11171
    }
11172
 
11173
    public Object getFieldValue(_Fields field) {
11174
      switch (field) {
11175
      case STORE_ID:
11176
        return Long.valueOf(getStoreId());
11177
 
11178
      }
11179
      throw new IllegalStateException();
11180
    }
11181
 
11182
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11183
    public boolean isSet(_Fields field) {
11184
      if (field == null) {
11185
        throw new IllegalArgumentException();
11186
      }
11187
 
11188
      switch (field) {
11189
      case STORE_ID:
11190
        return isSetStoreId();
11191
      }
11192
      throw new IllegalStateException();
11193
    }
11194
 
11195
    @Override
11196
    public boolean equals(Object that) {
11197
      if (that == null)
11198
        return false;
11199
      if (that instanceof getPickupStore_args)
11200
        return this.equals((getPickupStore_args)that);
11201
      return false;
11202
    }
11203
 
11204
    public boolean equals(getPickupStore_args that) {
11205
      if (that == null)
11206
        return false;
11207
 
11208
      boolean this_present_storeId = true;
11209
      boolean that_present_storeId = true;
11210
      if (this_present_storeId || that_present_storeId) {
11211
        if (!(this_present_storeId && that_present_storeId))
11212
          return false;
11213
        if (this.storeId != that.storeId)
11214
          return false;
11215
      }
11216
 
11217
      return true;
11218
    }
11219
 
11220
    @Override
11221
    public int hashCode() {
11222
      return 0;
11223
    }
11224
 
11225
    public int compareTo(getPickupStore_args other) {
11226
      if (!getClass().equals(other.getClass())) {
11227
        return getClass().getName().compareTo(other.getClass().getName());
11228
      }
11229
 
11230
      int lastComparison = 0;
11231
      getPickupStore_args typedOther = (getPickupStore_args)other;
11232
 
11233
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
11234
      if (lastComparison != 0) {
11235
        return lastComparison;
11236
      }
11237
      if (isSetStoreId()) {
11238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
11239
        if (lastComparison != 0) {
11240
          return lastComparison;
11241
        }
11242
      }
11243
      return 0;
11244
    }
11245
 
11246
    public _Fields fieldForId(int fieldId) {
11247
      return _Fields.findByThriftId(fieldId);
11248
    }
11249
 
11250
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11251
      org.apache.thrift.protocol.TField field;
11252
      iprot.readStructBegin();
11253
      while (true)
11254
      {
11255
        field = iprot.readFieldBegin();
11256
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11257
          break;
11258
        }
11259
        switch (field.id) {
11260
          case 1: // STORE_ID
11261
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11262
              this.storeId = iprot.readI64();
11263
              setStoreIdIsSet(true);
11264
            } else { 
11265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11266
            }
11267
            break;
11268
          default:
11269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11270
        }
11271
        iprot.readFieldEnd();
11272
      }
11273
      iprot.readStructEnd();
11274
      validate();
11275
    }
11276
 
11277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11278
      validate();
11279
 
11280
      oprot.writeStructBegin(STRUCT_DESC);
11281
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
11282
      oprot.writeI64(this.storeId);
11283
      oprot.writeFieldEnd();
11284
      oprot.writeFieldStop();
11285
      oprot.writeStructEnd();
11286
    }
11287
 
11288
    @Override
11289
    public String toString() {
11290
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
11291
      boolean first = true;
11292
 
11293
      sb.append("storeId:");
11294
      sb.append(this.storeId);
11295
      first = false;
11296
      sb.append(")");
11297
      return sb.toString();
11298
    }
11299
 
11300
    public void validate() throws org.apache.thrift.TException {
11301
      // check for required fields
11302
    }
11303
 
11304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11305
      try {
11306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11307
      } catch (org.apache.thrift.TException te) {
11308
        throw new java.io.IOException(te);
11309
      }
11310
    }
11311
 
11312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11313
      try {
11314
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11315
        __isset_bit_vector = new BitSet(1);
11316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11317
      } catch (org.apache.thrift.TException te) {
11318
        throw new java.io.IOException(te);
11319
      }
11320
    }
11321
 
11322
  }
11323
 
11324
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
11325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
11326
 
11327
    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);
11328
 
11329
    private PickupStore success; // required
11330
 
11331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11333
      SUCCESS((short)0, "success");
11334
 
11335
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11336
 
11337
      static {
11338
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11339
          byName.put(field.getFieldName(), field);
11340
        }
11341
      }
11342
 
11343
      /**
11344
       * Find the _Fields constant that matches fieldId, or null if its not found.
11345
       */
11346
      public static _Fields findByThriftId(int fieldId) {
11347
        switch(fieldId) {
11348
          case 0: // SUCCESS
11349
            return SUCCESS;
11350
          default:
11351
            return null;
11352
        }
11353
      }
11354
 
11355
      /**
11356
       * Find the _Fields constant that matches fieldId, throwing an exception
11357
       * if it is not found.
11358
       */
11359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11360
        _Fields fields = findByThriftId(fieldId);
11361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11362
        return fields;
11363
      }
11364
 
11365
      /**
11366
       * Find the _Fields constant that matches name, or null if its not found.
11367
       */
11368
      public static _Fields findByName(String name) {
11369
        return byName.get(name);
11370
      }
11371
 
11372
      private final short _thriftId;
11373
      private final String _fieldName;
11374
 
11375
      _Fields(short thriftId, String fieldName) {
11376
        _thriftId = thriftId;
11377
        _fieldName = fieldName;
11378
      }
11379
 
11380
      public short getThriftFieldId() {
11381
        return _thriftId;
11382
      }
11383
 
11384
      public String getFieldName() {
11385
        return _fieldName;
11386
      }
11387
    }
11388
 
11389
    // isset id assignments
11390
 
11391
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11392
    static {
11393
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11394
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11395
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
11396
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11397
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
11398
    }
11399
 
11400
    public getPickupStore_result() {
11401
    }
11402
 
11403
    public getPickupStore_result(
11404
      PickupStore success)
11405
    {
11406
      this();
11407
      this.success = success;
11408
    }
11409
 
11410
    /**
11411
     * Performs a deep copy on <i>other</i>.
11412
     */
11413
    public getPickupStore_result(getPickupStore_result other) {
11414
      if (other.isSetSuccess()) {
11415
        this.success = new PickupStore(other.success);
11416
      }
11417
    }
11418
 
11419
    public getPickupStore_result deepCopy() {
11420
      return new getPickupStore_result(this);
11421
    }
11422
 
11423
    @Override
11424
    public void clear() {
11425
      this.success = null;
11426
    }
11427
 
11428
    public PickupStore getSuccess() {
11429
      return this.success;
11430
    }
11431
 
11432
    public void setSuccess(PickupStore success) {
11433
      this.success = success;
11434
    }
11435
 
11436
    public void unsetSuccess() {
11437
      this.success = null;
11438
    }
11439
 
11440
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11441
    public boolean isSetSuccess() {
11442
      return this.success != null;
11443
    }
11444
 
11445
    public void setSuccessIsSet(boolean value) {
11446
      if (!value) {
11447
        this.success = null;
11448
      }
11449
    }
11450
 
11451
    public void setFieldValue(_Fields field, Object value) {
11452
      switch (field) {
11453
      case SUCCESS:
11454
        if (value == null) {
11455
          unsetSuccess();
11456
        } else {
11457
          setSuccess((PickupStore)value);
11458
        }
11459
        break;
11460
 
11461
      }
11462
    }
11463
 
11464
    public Object getFieldValue(_Fields field) {
11465
      switch (field) {
11466
      case SUCCESS:
11467
        return getSuccess();
11468
 
11469
      }
11470
      throw new IllegalStateException();
11471
    }
11472
 
11473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11474
    public boolean isSet(_Fields field) {
11475
      if (field == null) {
11476
        throw new IllegalArgumentException();
11477
      }
11478
 
11479
      switch (field) {
11480
      case SUCCESS:
11481
        return isSetSuccess();
11482
      }
11483
      throw new IllegalStateException();
11484
    }
11485
 
11486
    @Override
11487
    public boolean equals(Object that) {
11488
      if (that == null)
11489
        return false;
11490
      if (that instanceof getPickupStore_result)
11491
        return this.equals((getPickupStore_result)that);
11492
      return false;
11493
    }
11494
 
11495
    public boolean equals(getPickupStore_result that) {
11496
      if (that == null)
11497
        return false;
11498
 
11499
      boolean this_present_success = true && this.isSetSuccess();
11500
      boolean that_present_success = true && that.isSetSuccess();
11501
      if (this_present_success || that_present_success) {
11502
        if (!(this_present_success && that_present_success))
11503
          return false;
11504
        if (!this.success.equals(that.success))
11505
          return false;
11506
      }
11507
 
11508
      return true;
11509
    }
11510
 
11511
    @Override
11512
    public int hashCode() {
11513
      return 0;
11514
    }
11515
 
11516
    public int compareTo(getPickupStore_result other) {
11517
      if (!getClass().equals(other.getClass())) {
11518
        return getClass().getName().compareTo(other.getClass().getName());
11519
      }
11520
 
11521
      int lastComparison = 0;
11522
      getPickupStore_result typedOther = (getPickupStore_result)other;
11523
 
11524
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11525
      if (lastComparison != 0) {
11526
        return lastComparison;
11527
      }
11528
      if (isSetSuccess()) {
11529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11530
        if (lastComparison != 0) {
11531
          return lastComparison;
11532
        }
11533
      }
11534
      return 0;
11535
    }
11536
 
11537
    public _Fields fieldForId(int fieldId) {
11538
      return _Fields.findByThriftId(fieldId);
11539
    }
11540
 
11541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11542
      org.apache.thrift.protocol.TField field;
11543
      iprot.readStructBegin();
11544
      while (true)
11545
      {
11546
        field = iprot.readFieldBegin();
11547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11548
          break;
11549
        }
11550
        switch (field.id) {
11551
          case 0: // SUCCESS
11552
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11553
              this.success = new PickupStore();
11554
              this.success.read(iprot);
11555
            } else { 
11556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11557
            }
11558
            break;
11559
          default:
11560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11561
        }
11562
        iprot.readFieldEnd();
11563
      }
11564
      iprot.readStructEnd();
11565
      validate();
11566
    }
11567
 
11568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11569
      oprot.writeStructBegin(STRUCT_DESC);
11570
 
11571
      if (this.isSetSuccess()) {
11572
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11573
        this.success.write(oprot);
11574
        oprot.writeFieldEnd();
11575
      }
11576
      oprot.writeFieldStop();
11577
      oprot.writeStructEnd();
11578
    }
11579
 
11580
    @Override
11581
    public String toString() {
11582
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
11583
      boolean first = true;
11584
 
11585
      sb.append("success:");
11586
      if (this.success == null) {
11587
        sb.append("null");
11588
      } else {
11589
        sb.append(this.success);
11590
      }
11591
      first = false;
11592
      sb.append(")");
11593
      return sb.toString();
11594
    }
11595
 
11596
    public void validate() throws org.apache.thrift.TException {
11597
      // check for required fields
11598
    }
11599
 
11600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11601
      try {
11602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11603
      } catch (org.apache.thrift.TException te) {
11604
        throw new java.io.IOException(te);
11605
      }
11606
    }
11607
 
11608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11609
      try {
11610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11611
      } catch (org.apache.thrift.TException te) {
11612
        throw new java.io.IOException(te);
11613
      }
11614
    }
11615
 
11616
  }
11617
 
5719 rajveer 11618
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
11619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
11620
 
11621
    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);
11622
 
11623
    private String hotspotId; // required
11624
 
11625
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11626
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11627
      HOTSPOT_ID((short)1, "hotspotId");
11628
 
11629
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11630
 
11631
      static {
11632
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11633
          byName.put(field.getFieldName(), field);
11634
        }
11635
      }
11636
 
11637
      /**
11638
       * Find the _Fields constant that matches fieldId, or null if its not found.
11639
       */
11640
      public static _Fields findByThriftId(int fieldId) {
11641
        switch(fieldId) {
11642
          case 1: // HOTSPOT_ID
11643
            return HOTSPOT_ID;
11644
          default:
11645
            return null;
11646
        }
11647
      }
11648
 
11649
      /**
11650
       * Find the _Fields constant that matches fieldId, throwing an exception
11651
       * if it is not found.
11652
       */
11653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11654
        _Fields fields = findByThriftId(fieldId);
11655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11656
        return fields;
11657
      }
11658
 
11659
      /**
11660
       * Find the _Fields constant that matches name, or null if its not found.
11661
       */
11662
      public static _Fields findByName(String name) {
11663
        return byName.get(name);
11664
      }
11665
 
11666
      private final short _thriftId;
11667
      private final String _fieldName;
11668
 
11669
      _Fields(short thriftId, String fieldName) {
11670
        _thriftId = thriftId;
11671
        _fieldName = fieldName;
11672
      }
11673
 
11674
      public short getThriftFieldId() {
11675
        return _thriftId;
11676
      }
11677
 
11678
      public String getFieldName() {
11679
        return _fieldName;
11680
      }
11681
    }
11682
 
11683
    // isset id assignments
11684
 
11685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11686
    static {
11687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11688
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
11692
    }
11693
 
11694
    public getPickupStoreByHotspotId_args() {
11695
    }
11696
 
11697
    public getPickupStoreByHotspotId_args(
11698
      String hotspotId)
11699
    {
11700
      this();
11701
      this.hotspotId = hotspotId;
11702
    }
11703
 
11704
    /**
11705
     * Performs a deep copy on <i>other</i>.
11706
     */
11707
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
11708
      if (other.isSetHotspotId()) {
11709
        this.hotspotId = other.hotspotId;
11710
      }
11711
    }
11712
 
11713
    public getPickupStoreByHotspotId_args deepCopy() {
11714
      return new getPickupStoreByHotspotId_args(this);
11715
    }
11716
 
11717
    @Override
11718
    public void clear() {
11719
      this.hotspotId = null;
11720
    }
11721
 
11722
    public String getHotspotId() {
11723
      return this.hotspotId;
11724
    }
11725
 
11726
    public void setHotspotId(String hotspotId) {
11727
      this.hotspotId = hotspotId;
11728
    }
11729
 
11730
    public void unsetHotspotId() {
11731
      this.hotspotId = null;
11732
    }
11733
 
11734
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
11735
    public boolean isSetHotspotId() {
11736
      return this.hotspotId != null;
11737
    }
11738
 
11739
    public void setHotspotIdIsSet(boolean value) {
11740
      if (!value) {
11741
        this.hotspotId = null;
11742
      }
11743
    }
11744
 
11745
    public void setFieldValue(_Fields field, Object value) {
11746
      switch (field) {
11747
      case HOTSPOT_ID:
11748
        if (value == null) {
11749
          unsetHotspotId();
11750
        } else {
11751
          setHotspotId((String)value);
11752
        }
11753
        break;
11754
 
11755
      }
11756
    }
11757
 
11758
    public Object getFieldValue(_Fields field) {
11759
      switch (field) {
11760
      case HOTSPOT_ID:
11761
        return getHotspotId();
11762
 
11763
      }
11764
      throw new IllegalStateException();
11765
    }
11766
 
11767
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11768
    public boolean isSet(_Fields field) {
11769
      if (field == null) {
11770
        throw new IllegalArgumentException();
11771
      }
11772
 
11773
      switch (field) {
11774
      case HOTSPOT_ID:
11775
        return isSetHotspotId();
11776
      }
11777
      throw new IllegalStateException();
11778
    }
11779
 
11780
    @Override
11781
    public boolean equals(Object that) {
11782
      if (that == null)
11783
        return false;
11784
      if (that instanceof getPickupStoreByHotspotId_args)
11785
        return this.equals((getPickupStoreByHotspotId_args)that);
11786
      return false;
11787
    }
11788
 
11789
    public boolean equals(getPickupStoreByHotspotId_args that) {
11790
      if (that == null)
11791
        return false;
11792
 
11793
      boolean this_present_hotspotId = true && this.isSetHotspotId();
11794
      boolean that_present_hotspotId = true && that.isSetHotspotId();
11795
      if (this_present_hotspotId || that_present_hotspotId) {
11796
        if (!(this_present_hotspotId && that_present_hotspotId))
11797
          return false;
11798
        if (!this.hotspotId.equals(that.hotspotId))
11799
          return false;
11800
      }
11801
 
11802
      return true;
11803
    }
11804
 
11805
    @Override
11806
    public int hashCode() {
11807
      return 0;
11808
    }
11809
 
11810
    public int compareTo(getPickupStoreByHotspotId_args other) {
11811
      if (!getClass().equals(other.getClass())) {
11812
        return getClass().getName().compareTo(other.getClass().getName());
11813
      }
11814
 
11815
      int lastComparison = 0;
11816
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
11817
 
11818
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
11819
      if (lastComparison != 0) {
11820
        return lastComparison;
11821
      }
11822
      if (isSetHotspotId()) {
11823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
11824
        if (lastComparison != 0) {
11825
          return lastComparison;
11826
        }
11827
      }
11828
      return 0;
11829
    }
11830
 
11831
    public _Fields fieldForId(int fieldId) {
11832
      return _Fields.findByThriftId(fieldId);
11833
    }
11834
 
11835
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11836
      org.apache.thrift.protocol.TField field;
11837
      iprot.readStructBegin();
11838
      while (true)
11839
      {
11840
        field = iprot.readFieldBegin();
11841
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11842
          break;
11843
        }
11844
        switch (field.id) {
11845
          case 1: // HOTSPOT_ID
11846
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11847
              this.hotspotId = iprot.readString();
11848
            } else { 
11849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11850
            }
11851
            break;
11852
          default:
11853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11854
        }
11855
        iprot.readFieldEnd();
11856
      }
11857
      iprot.readStructEnd();
11858
      validate();
11859
    }
11860
 
11861
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11862
      validate();
11863
 
11864
      oprot.writeStructBegin(STRUCT_DESC);
11865
      if (this.hotspotId != null) {
11866
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
11867
        oprot.writeString(this.hotspotId);
11868
        oprot.writeFieldEnd();
11869
      }
11870
      oprot.writeFieldStop();
11871
      oprot.writeStructEnd();
11872
    }
11873
 
11874
    @Override
11875
    public String toString() {
11876
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
11877
      boolean first = true;
11878
 
11879
      sb.append("hotspotId:");
11880
      if (this.hotspotId == null) {
11881
        sb.append("null");
11882
      } else {
11883
        sb.append(this.hotspotId);
11884
      }
11885
      first = false;
11886
      sb.append(")");
11887
      return sb.toString();
11888
    }
11889
 
11890
    public void validate() throws org.apache.thrift.TException {
11891
      // check for required fields
11892
    }
11893
 
11894
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11895
      try {
11896
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11897
      } catch (org.apache.thrift.TException te) {
11898
        throw new java.io.IOException(te);
11899
      }
11900
    }
11901
 
11902
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11903
      try {
11904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11905
      } catch (org.apache.thrift.TException te) {
11906
        throw new java.io.IOException(te);
11907
      }
11908
    }
11909
 
11910
  }
11911
 
11912
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
11913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
11914
 
11915
    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);
11916
 
11917
    private PickupStore success; // required
11918
 
11919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11921
      SUCCESS((short)0, "success");
11922
 
11923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11924
 
11925
      static {
11926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11927
          byName.put(field.getFieldName(), field);
11928
        }
11929
      }
11930
 
11931
      /**
11932
       * Find the _Fields constant that matches fieldId, or null if its not found.
11933
       */
11934
      public static _Fields findByThriftId(int fieldId) {
11935
        switch(fieldId) {
11936
          case 0: // SUCCESS
11937
            return SUCCESS;
11938
          default:
11939
            return null;
11940
        }
11941
      }
11942
 
11943
      /**
11944
       * Find the _Fields constant that matches fieldId, throwing an exception
11945
       * if it is not found.
11946
       */
11947
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11948
        _Fields fields = findByThriftId(fieldId);
11949
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11950
        return fields;
11951
      }
11952
 
11953
      /**
11954
       * Find the _Fields constant that matches name, or null if its not found.
11955
       */
11956
      public static _Fields findByName(String name) {
11957
        return byName.get(name);
11958
      }
11959
 
11960
      private final short _thriftId;
11961
      private final String _fieldName;
11962
 
11963
      _Fields(short thriftId, String fieldName) {
11964
        _thriftId = thriftId;
11965
        _fieldName = fieldName;
11966
      }
11967
 
11968
      public short getThriftFieldId() {
11969
        return _thriftId;
11970
      }
11971
 
11972
      public String getFieldName() {
11973
        return _fieldName;
11974
      }
11975
    }
11976
 
11977
    // isset id assignments
11978
 
11979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11980
    static {
11981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11982
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11983
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
11984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
11986
    }
11987
 
11988
    public getPickupStoreByHotspotId_result() {
11989
    }
11990
 
11991
    public getPickupStoreByHotspotId_result(
11992
      PickupStore success)
11993
    {
11994
      this();
11995
      this.success = success;
11996
    }
11997
 
11998
    /**
11999
     * Performs a deep copy on <i>other</i>.
12000
     */
12001
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
12002
      if (other.isSetSuccess()) {
12003
        this.success = new PickupStore(other.success);
12004
      }
12005
    }
12006
 
12007
    public getPickupStoreByHotspotId_result deepCopy() {
12008
      return new getPickupStoreByHotspotId_result(this);
12009
    }
12010
 
12011
    @Override
12012
    public void clear() {
12013
      this.success = null;
12014
    }
12015
 
12016
    public PickupStore getSuccess() {
12017
      return this.success;
12018
    }
12019
 
12020
    public void setSuccess(PickupStore success) {
12021
      this.success = success;
12022
    }
12023
 
12024
    public void unsetSuccess() {
12025
      this.success = null;
12026
    }
12027
 
12028
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12029
    public boolean isSetSuccess() {
12030
      return this.success != null;
12031
    }
12032
 
12033
    public void setSuccessIsSet(boolean value) {
12034
      if (!value) {
12035
        this.success = null;
12036
      }
12037
    }
12038
 
12039
    public void setFieldValue(_Fields field, Object value) {
12040
      switch (field) {
12041
      case SUCCESS:
12042
        if (value == null) {
12043
          unsetSuccess();
12044
        } else {
12045
          setSuccess((PickupStore)value);
12046
        }
12047
        break;
12048
 
12049
      }
12050
    }
12051
 
12052
    public Object getFieldValue(_Fields field) {
12053
      switch (field) {
12054
      case SUCCESS:
12055
        return getSuccess();
12056
 
12057
      }
12058
      throw new IllegalStateException();
12059
    }
12060
 
12061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12062
    public boolean isSet(_Fields field) {
12063
      if (field == null) {
12064
        throw new IllegalArgumentException();
12065
      }
12066
 
12067
      switch (field) {
12068
      case SUCCESS:
12069
        return isSetSuccess();
12070
      }
12071
      throw new IllegalStateException();
12072
    }
12073
 
12074
    @Override
12075
    public boolean equals(Object that) {
12076
      if (that == null)
12077
        return false;
12078
      if (that instanceof getPickupStoreByHotspotId_result)
12079
        return this.equals((getPickupStoreByHotspotId_result)that);
12080
      return false;
12081
    }
12082
 
12083
    public boolean equals(getPickupStoreByHotspotId_result that) {
12084
      if (that == null)
12085
        return false;
12086
 
12087
      boolean this_present_success = true && this.isSetSuccess();
12088
      boolean that_present_success = true && that.isSetSuccess();
12089
      if (this_present_success || that_present_success) {
12090
        if (!(this_present_success && that_present_success))
12091
          return false;
12092
        if (!this.success.equals(that.success))
12093
          return false;
12094
      }
12095
 
12096
      return true;
12097
    }
12098
 
12099
    @Override
12100
    public int hashCode() {
12101
      return 0;
12102
    }
12103
 
12104
    public int compareTo(getPickupStoreByHotspotId_result other) {
12105
      if (!getClass().equals(other.getClass())) {
12106
        return getClass().getName().compareTo(other.getClass().getName());
12107
      }
12108
 
12109
      int lastComparison = 0;
12110
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
12111
 
12112
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12113
      if (lastComparison != 0) {
12114
        return lastComparison;
12115
      }
12116
      if (isSetSuccess()) {
12117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12118
        if (lastComparison != 0) {
12119
          return lastComparison;
12120
        }
12121
      }
12122
      return 0;
12123
    }
12124
 
12125
    public _Fields fieldForId(int fieldId) {
12126
      return _Fields.findByThriftId(fieldId);
12127
    }
12128
 
12129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12130
      org.apache.thrift.protocol.TField field;
12131
      iprot.readStructBegin();
12132
      while (true)
12133
      {
12134
        field = iprot.readFieldBegin();
12135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12136
          break;
12137
        }
12138
        switch (field.id) {
12139
          case 0: // SUCCESS
12140
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12141
              this.success = new PickupStore();
12142
              this.success.read(iprot);
12143
            } else { 
12144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12145
            }
12146
            break;
12147
          default:
12148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12149
        }
12150
        iprot.readFieldEnd();
12151
      }
12152
      iprot.readStructEnd();
12153
      validate();
12154
    }
12155
 
12156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12157
      oprot.writeStructBegin(STRUCT_DESC);
12158
 
12159
      if (this.isSetSuccess()) {
12160
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12161
        this.success.write(oprot);
12162
        oprot.writeFieldEnd();
12163
      }
12164
      oprot.writeFieldStop();
12165
      oprot.writeStructEnd();
12166
    }
12167
 
12168
    @Override
12169
    public String toString() {
12170
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
12171
      boolean first = true;
12172
 
12173
      sb.append("success:");
12174
      if (this.success == null) {
12175
        sb.append("null");
12176
      } else {
12177
        sb.append(this.success);
12178
      }
12179
      first = false;
12180
      sb.append(")");
12181
      return sb.toString();
12182
    }
12183
 
12184
    public void validate() throws org.apache.thrift.TException {
12185
      // check for required fields
12186
    }
12187
 
12188
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12189
      try {
12190
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12191
      } catch (org.apache.thrift.TException te) {
12192
        throw new java.io.IOException(te);
12193
      }
12194
    }
12195
 
12196
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12197
      try {
12198
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12199
      } catch (org.apache.thrift.TException te) {
12200
        throw new java.io.IOException(te);
12201
      }
12202
    }
12203
 
12204
  }
12205
 
6322 amar.kumar 12206
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
12207
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
12208
 
12209
    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);
12210
    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);
12211
    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);
12212
    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);
12213
    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);
12214
    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 12215
    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 12216
 
12217
    private long providerId; // required
12218
    private String pincode; // required
12219
    private String destCode; // required
12220
    private boolean exp; // required
12221
    private boolean cod; // required
12222
    private int stationType; // required
6524 rajveer 12223
    private boolean otgAvailable; // required
6322 amar.kumar 12224
 
12225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12227
      PROVIDER_ID((short)1, "providerId"),
12228
      PINCODE((short)2, "pincode"),
12229
      DEST_CODE((short)3, "destCode"),
12230
      EXP((short)4, "exp"),
12231
      COD((short)5, "cod"),
6524 rajveer 12232
      STATION_TYPE((short)6, "stationType"),
12233
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 12234
 
12235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12236
 
12237
      static {
12238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12239
          byName.put(field.getFieldName(), field);
12240
        }
12241
      }
12242
 
12243
      /**
12244
       * Find the _Fields constant that matches fieldId, or null if its not found.
12245
       */
12246
      public static _Fields findByThriftId(int fieldId) {
12247
        switch(fieldId) {
12248
          case 1: // PROVIDER_ID
12249
            return PROVIDER_ID;
12250
          case 2: // PINCODE
12251
            return PINCODE;
12252
          case 3: // DEST_CODE
12253
            return DEST_CODE;
12254
          case 4: // EXP
12255
            return EXP;
12256
          case 5: // COD
12257
            return COD;
12258
          case 6: // STATION_TYPE
12259
            return STATION_TYPE;
6524 rajveer 12260
          case 7: // OTG_AVAILABLE
12261
            return OTG_AVAILABLE;
6322 amar.kumar 12262
          default:
12263
            return null;
12264
        }
12265
      }
12266
 
12267
      /**
12268
       * Find the _Fields constant that matches fieldId, throwing an exception
12269
       * if it is not found.
12270
       */
12271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12272
        _Fields fields = findByThriftId(fieldId);
12273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12274
        return fields;
12275
      }
12276
 
12277
      /**
12278
       * Find the _Fields constant that matches name, or null if its not found.
12279
       */
12280
      public static _Fields findByName(String name) {
12281
        return byName.get(name);
12282
      }
12283
 
12284
      private final short _thriftId;
12285
      private final String _fieldName;
12286
 
12287
      _Fields(short thriftId, String fieldName) {
12288
        _thriftId = thriftId;
12289
        _fieldName = fieldName;
12290
      }
12291
 
12292
      public short getThriftFieldId() {
12293
        return _thriftId;
12294
      }
12295
 
12296
      public String getFieldName() {
12297
        return _fieldName;
12298
      }
12299
    }
12300
 
12301
    // isset id assignments
12302
    private static final int __PROVIDERID_ISSET_ID = 0;
12303
    private static final int __EXP_ISSET_ID = 1;
12304
    private static final int __COD_ISSET_ID = 2;
12305
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 12306
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
12307
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 12308
 
12309
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12310
    static {
12311
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12312
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12314
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12315
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12316
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12317
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12318
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12320
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12321
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12322
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 12324
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 12326
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12327
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
12328
    }
12329
 
12330
    public addPincode_args() {
12331
    }
12332
 
12333
    public addPincode_args(
12334
      long providerId,
12335
      String pincode,
12336
      String destCode,
12337
      boolean exp,
12338
      boolean cod,
6524 rajveer 12339
      int stationType,
12340
      boolean otgAvailable)
6322 amar.kumar 12341
    {
12342
      this();
12343
      this.providerId = providerId;
12344
      setProviderIdIsSet(true);
12345
      this.pincode = pincode;
12346
      this.destCode = destCode;
12347
      this.exp = exp;
12348
      setExpIsSet(true);
12349
      this.cod = cod;
12350
      setCodIsSet(true);
12351
      this.stationType = stationType;
12352
      setStationTypeIsSet(true);
6524 rajveer 12353
      this.otgAvailable = otgAvailable;
12354
      setOtgAvailableIsSet(true);
6322 amar.kumar 12355
    }
12356
 
12357
    /**
12358
     * Performs a deep copy on <i>other</i>.
12359
     */
12360
    public addPincode_args(addPincode_args other) {
12361
      __isset_bit_vector.clear();
12362
      __isset_bit_vector.or(other.__isset_bit_vector);
12363
      this.providerId = other.providerId;
12364
      if (other.isSetPincode()) {
12365
        this.pincode = other.pincode;
12366
      }
12367
      if (other.isSetDestCode()) {
12368
        this.destCode = other.destCode;
12369
      }
12370
      this.exp = other.exp;
12371
      this.cod = other.cod;
12372
      this.stationType = other.stationType;
6524 rajveer 12373
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 12374
    }
12375
 
12376
    public addPincode_args deepCopy() {
12377
      return new addPincode_args(this);
12378
    }
12379
 
12380
    @Override
12381
    public void clear() {
12382
      setProviderIdIsSet(false);
12383
      this.providerId = 0;
12384
      this.pincode = null;
12385
      this.destCode = null;
12386
      setExpIsSet(false);
12387
      this.exp = false;
12388
      setCodIsSet(false);
12389
      this.cod = false;
12390
      setStationTypeIsSet(false);
12391
      this.stationType = 0;
6524 rajveer 12392
      setOtgAvailableIsSet(false);
12393
      this.otgAvailable = false;
6322 amar.kumar 12394
    }
12395
 
12396
    public long getProviderId() {
12397
      return this.providerId;
12398
    }
12399
 
12400
    public void setProviderId(long providerId) {
12401
      this.providerId = providerId;
12402
      setProviderIdIsSet(true);
12403
    }
12404
 
12405
    public void unsetProviderId() {
12406
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
12407
    }
12408
 
12409
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
12410
    public boolean isSetProviderId() {
12411
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
12412
    }
12413
 
12414
    public void setProviderIdIsSet(boolean value) {
12415
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
12416
    }
12417
 
12418
    public String getPincode() {
12419
      return this.pincode;
12420
    }
12421
 
12422
    public void setPincode(String pincode) {
12423
      this.pincode = pincode;
12424
    }
12425
 
12426
    public void unsetPincode() {
12427
      this.pincode = null;
12428
    }
12429
 
12430
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
12431
    public boolean isSetPincode() {
12432
      return this.pincode != null;
12433
    }
12434
 
12435
    public void setPincodeIsSet(boolean value) {
12436
      if (!value) {
12437
        this.pincode = null;
12438
      }
12439
    }
12440
 
12441
    public String getDestCode() {
12442
      return this.destCode;
12443
    }
12444
 
12445
    public void setDestCode(String destCode) {
12446
      this.destCode = destCode;
12447
    }
12448
 
12449
    public void unsetDestCode() {
12450
      this.destCode = null;
12451
    }
12452
 
12453
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
12454
    public boolean isSetDestCode() {
12455
      return this.destCode != null;
12456
    }
12457
 
12458
    public void setDestCodeIsSet(boolean value) {
12459
      if (!value) {
12460
        this.destCode = null;
12461
      }
12462
    }
12463
 
12464
    public boolean isExp() {
12465
      return this.exp;
12466
    }
12467
 
12468
    public void setExp(boolean exp) {
12469
      this.exp = exp;
12470
      setExpIsSet(true);
12471
    }
12472
 
12473
    public void unsetExp() {
12474
      __isset_bit_vector.clear(__EXP_ISSET_ID);
12475
    }
12476
 
12477
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
12478
    public boolean isSetExp() {
12479
      return __isset_bit_vector.get(__EXP_ISSET_ID);
12480
    }
12481
 
12482
    public void setExpIsSet(boolean value) {
12483
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
12484
    }
12485
 
12486
    public boolean isCod() {
12487
      return this.cod;
12488
    }
12489
 
12490
    public void setCod(boolean cod) {
12491
      this.cod = cod;
12492
      setCodIsSet(true);
12493
    }
12494
 
12495
    public void unsetCod() {
12496
      __isset_bit_vector.clear(__COD_ISSET_ID);
12497
    }
12498
 
12499
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
12500
    public boolean isSetCod() {
12501
      return __isset_bit_vector.get(__COD_ISSET_ID);
12502
    }
12503
 
12504
    public void setCodIsSet(boolean value) {
12505
      __isset_bit_vector.set(__COD_ISSET_ID, value);
12506
    }
12507
 
12508
    public int getStationType() {
12509
      return this.stationType;
12510
    }
12511
 
12512
    public void setStationType(int stationType) {
12513
      this.stationType = stationType;
12514
      setStationTypeIsSet(true);
12515
    }
12516
 
12517
    public void unsetStationType() {
12518
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
12519
    }
12520
 
12521
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
12522
    public boolean isSetStationType() {
12523
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
12524
    }
12525
 
12526
    public void setStationTypeIsSet(boolean value) {
12527
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
12528
    }
12529
 
6524 rajveer 12530
    public boolean isOtgAvailable() {
12531
      return this.otgAvailable;
12532
    }
12533
 
12534
    public void setOtgAvailable(boolean otgAvailable) {
12535
      this.otgAvailable = otgAvailable;
12536
      setOtgAvailableIsSet(true);
12537
    }
12538
 
12539
    public void unsetOtgAvailable() {
12540
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
12541
    }
12542
 
12543
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
12544
    public boolean isSetOtgAvailable() {
12545
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
12546
    }
12547
 
12548
    public void setOtgAvailableIsSet(boolean value) {
12549
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
12550
    }
12551
 
6322 amar.kumar 12552
    public void setFieldValue(_Fields field, Object value) {
12553
      switch (field) {
12554
      case PROVIDER_ID:
12555
        if (value == null) {
12556
          unsetProviderId();
12557
        } else {
12558
          setProviderId((Long)value);
12559
        }
12560
        break;
12561
 
12562
      case PINCODE:
12563
        if (value == null) {
12564
          unsetPincode();
12565
        } else {
12566
          setPincode((String)value);
12567
        }
12568
        break;
12569
 
12570
      case DEST_CODE:
12571
        if (value == null) {
12572
          unsetDestCode();
12573
        } else {
12574
          setDestCode((String)value);
12575
        }
12576
        break;
12577
 
12578
      case EXP:
12579
        if (value == null) {
12580
          unsetExp();
12581
        } else {
12582
          setExp((Boolean)value);
12583
        }
12584
        break;
12585
 
12586
      case COD:
12587
        if (value == null) {
12588
          unsetCod();
12589
        } else {
12590
          setCod((Boolean)value);
12591
        }
12592
        break;
12593
 
12594
      case STATION_TYPE:
12595
        if (value == null) {
12596
          unsetStationType();
12597
        } else {
12598
          setStationType((Integer)value);
12599
        }
12600
        break;
12601
 
6524 rajveer 12602
      case OTG_AVAILABLE:
12603
        if (value == null) {
12604
          unsetOtgAvailable();
12605
        } else {
12606
          setOtgAvailable((Boolean)value);
12607
        }
12608
        break;
12609
 
6322 amar.kumar 12610
      }
12611
    }
12612
 
12613
    public Object getFieldValue(_Fields field) {
12614
      switch (field) {
12615
      case PROVIDER_ID:
12616
        return Long.valueOf(getProviderId());
12617
 
12618
      case PINCODE:
12619
        return getPincode();
12620
 
12621
      case DEST_CODE:
12622
        return getDestCode();
12623
 
12624
      case EXP:
12625
        return Boolean.valueOf(isExp());
12626
 
12627
      case COD:
12628
        return Boolean.valueOf(isCod());
12629
 
12630
      case STATION_TYPE:
12631
        return Integer.valueOf(getStationType());
12632
 
6524 rajveer 12633
      case OTG_AVAILABLE:
12634
        return Boolean.valueOf(isOtgAvailable());
12635
 
6322 amar.kumar 12636
      }
12637
      throw new IllegalStateException();
12638
    }
12639
 
12640
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12641
    public boolean isSet(_Fields field) {
12642
      if (field == null) {
12643
        throw new IllegalArgumentException();
12644
      }
12645
 
12646
      switch (field) {
12647
      case PROVIDER_ID:
12648
        return isSetProviderId();
12649
      case PINCODE:
12650
        return isSetPincode();
12651
      case DEST_CODE:
12652
        return isSetDestCode();
12653
      case EXP:
12654
        return isSetExp();
12655
      case COD:
12656
        return isSetCod();
12657
      case STATION_TYPE:
12658
        return isSetStationType();
6524 rajveer 12659
      case OTG_AVAILABLE:
12660
        return isSetOtgAvailable();
6322 amar.kumar 12661
      }
12662
      throw new IllegalStateException();
12663
    }
12664
 
12665
    @Override
12666
    public boolean equals(Object that) {
12667
      if (that == null)
12668
        return false;
12669
      if (that instanceof addPincode_args)
12670
        return this.equals((addPincode_args)that);
12671
      return false;
12672
    }
12673
 
12674
    public boolean equals(addPincode_args that) {
12675
      if (that == null)
12676
        return false;
12677
 
12678
      boolean this_present_providerId = true;
12679
      boolean that_present_providerId = true;
12680
      if (this_present_providerId || that_present_providerId) {
12681
        if (!(this_present_providerId && that_present_providerId))
12682
          return false;
12683
        if (this.providerId != that.providerId)
12684
          return false;
12685
      }
12686
 
12687
      boolean this_present_pincode = true && this.isSetPincode();
12688
      boolean that_present_pincode = true && that.isSetPincode();
12689
      if (this_present_pincode || that_present_pincode) {
12690
        if (!(this_present_pincode && that_present_pincode))
12691
          return false;
12692
        if (!this.pincode.equals(that.pincode))
12693
          return false;
12694
      }
12695
 
12696
      boolean this_present_destCode = true && this.isSetDestCode();
12697
      boolean that_present_destCode = true && that.isSetDestCode();
12698
      if (this_present_destCode || that_present_destCode) {
12699
        if (!(this_present_destCode && that_present_destCode))
12700
          return false;
12701
        if (!this.destCode.equals(that.destCode))
12702
          return false;
12703
      }
12704
 
12705
      boolean this_present_exp = true;
12706
      boolean that_present_exp = true;
12707
      if (this_present_exp || that_present_exp) {
12708
        if (!(this_present_exp && that_present_exp))
12709
          return false;
12710
        if (this.exp != that.exp)
12711
          return false;
12712
      }
12713
 
12714
      boolean this_present_cod = true;
12715
      boolean that_present_cod = true;
12716
      if (this_present_cod || that_present_cod) {
12717
        if (!(this_present_cod && that_present_cod))
12718
          return false;
12719
        if (this.cod != that.cod)
12720
          return false;
12721
      }
12722
 
12723
      boolean this_present_stationType = true;
12724
      boolean that_present_stationType = true;
12725
      if (this_present_stationType || that_present_stationType) {
12726
        if (!(this_present_stationType && that_present_stationType))
12727
          return false;
12728
        if (this.stationType != that.stationType)
12729
          return false;
12730
      }
12731
 
6524 rajveer 12732
      boolean this_present_otgAvailable = true;
12733
      boolean that_present_otgAvailable = true;
12734
      if (this_present_otgAvailable || that_present_otgAvailable) {
12735
        if (!(this_present_otgAvailable && that_present_otgAvailable))
12736
          return false;
12737
        if (this.otgAvailable != that.otgAvailable)
12738
          return false;
12739
      }
12740
 
6322 amar.kumar 12741
      return true;
12742
    }
12743
 
12744
    @Override
12745
    public int hashCode() {
12746
      return 0;
12747
    }
12748
 
12749
    public int compareTo(addPincode_args other) {
12750
      if (!getClass().equals(other.getClass())) {
12751
        return getClass().getName().compareTo(other.getClass().getName());
12752
      }
12753
 
12754
      int lastComparison = 0;
12755
      addPincode_args typedOther = (addPincode_args)other;
12756
 
12757
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
12758
      if (lastComparison != 0) {
12759
        return lastComparison;
12760
      }
12761
      if (isSetProviderId()) {
12762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
12763
        if (lastComparison != 0) {
12764
          return lastComparison;
12765
        }
12766
      }
12767
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
12768
      if (lastComparison != 0) {
12769
        return lastComparison;
12770
      }
12771
      if (isSetPincode()) {
12772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
12773
        if (lastComparison != 0) {
12774
          return lastComparison;
12775
        }
12776
      }
12777
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
12778
      if (lastComparison != 0) {
12779
        return lastComparison;
12780
      }
12781
      if (isSetDestCode()) {
12782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
12783
        if (lastComparison != 0) {
12784
          return lastComparison;
12785
        }
12786
      }
12787
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
12788
      if (lastComparison != 0) {
12789
        return lastComparison;
12790
      }
12791
      if (isSetExp()) {
12792
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
12793
        if (lastComparison != 0) {
12794
          return lastComparison;
12795
        }
12796
      }
12797
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
12798
      if (lastComparison != 0) {
12799
        return lastComparison;
12800
      }
12801
      if (isSetCod()) {
12802
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
12803
        if (lastComparison != 0) {
12804
          return lastComparison;
12805
        }
12806
      }
12807
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
12808
      if (lastComparison != 0) {
12809
        return lastComparison;
12810
      }
12811
      if (isSetStationType()) {
12812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
12813
        if (lastComparison != 0) {
12814
          return lastComparison;
12815
        }
12816
      }
6524 rajveer 12817
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
12818
      if (lastComparison != 0) {
12819
        return lastComparison;
12820
      }
12821
      if (isSetOtgAvailable()) {
12822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
12823
        if (lastComparison != 0) {
12824
          return lastComparison;
12825
        }
12826
      }
6322 amar.kumar 12827
      return 0;
12828
    }
12829
 
12830
    public _Fields fieldForId(int fieldId) {
12831
      return _Fields.findByThriftId(fieldId);
12832
    }
12833
 
12834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12835
      org.apache.thrift.protocol.TField field;
12836
      iprot.readStructBegin();
12837
      while (true)
12838
      {
12839
        field = iprot.readFieldBegin();
12840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12841
          break;
12842
        }
12843
        switch (field.id) {
12844
          case 1: // PROVIDER_ID
12845
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12846
              this.providerId = iprot.readI64();
12847
              setProviderIdIsSet(true);
12848
            } else { 
12849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12850
            }
12851
            break;
12852
          case 2: // PINCODE
12853
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12854
              this.pincode = iprot.readString();
12855
            } else { 
12856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12857
            }
12858
            break;
12859
          case 3: // DEST_CODE
12860
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12861
              this.destCode = iprot.readString();
12862
            } else { 
12863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12864
            }
12865
            break;
12866
          case 4: // EXP
12867
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12868
              this.exp = iprot.readBool();
12869
              setExpIsSet(true);
12870
            } else { 
12871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12872
            }
12873
            break;
12874
          case 5: // COD
12875
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12876
              this.cod = iprot.readBool();
12877
              setCodIsSet(true);
12878
            } else { 
12879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12880
            }
12881
            break;
12882
          case 6: // STATION_TYPE
12883
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12884
              this.stationType = iprot.readI32();
12885
              setStationTypeIsSet(true);
12886
            } else { 
12887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12888
            }
12889
            break;
6524 rajveer 12890
          case 7: // OTG_AVAILABLE
12891
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12892
              this.otgAvailable = iprot.readBool();
12893
              setOtgAvailableIsSet(true);
12894
            } else { 
12895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12896
            }
12897
            break;
6322 amar.kumar 12898
          default:
12899
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12900
        }
12901
        iprot.readFieldEnd();
12902
      }
12903
      iprot.readStructEnd();
12904
      validate();
12905
    }
12906
 
12907
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12908
      validate();
12909
 
12910
      oprot.writeStructBegin(STRUCT_DESC);
12911
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
12912
      oprot.writeI64(this.providerId);
12913
      oprot.writeFieldEnd();
12914
      if (this.pincode != null) {
12915
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
12916
        oprot.writeString(this.pincode);
12917
        oprot.writeFieldEnd();
12918
      }
12919
      if (this.destCode != null) {
12920
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
12921
        oprot.writeString(this.destCode);
12922
        oprot.writeFieldEnd();
12923
      }
12924
      oprot.writeFieldBegin(EXP_FIELD_DESC);
12925
      oprot.writeBool(this.exp);
12926
      oprot.writeFieldEnd();
12927
      oprot.writeFieldBegin(COD_FIELD_DESC);
12928
      oprot.writeBool(this.cod);
12929
      oprot.writeFieldEnd();
12930
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
12931
      oprot.writeI32(this.stationType);
12932
      oprot.writeFieldEnd();
6524 rajveer 12933
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
12934
      oprot.writeBool(this.otgAvailable);
12935
      oprot.writeFieldEnd();
6322 amar.kumar 12936
      oprot.writeFieldStop();
12937
      oprot.writeStructEnd();
12938
    }
12939
 
12940
    @Override
12941
    public String toString() {
12942
      StringBuilder sb = new StringBuilder("addPincode_args(");
12943
      boolean first = true;
12944
 
12945
      sb.append("providerId:");
12946
      sb.append(this.providerId);
12947
      first = false;
12948
      if (!first) sb.append(", ");
12949
      sb.append("pincode:");
12950
      if (this.pincode == null) {
12951
        sb.append("null");
12952
      } else {
12953
        sb.append(this.pincode);
12954
      }
12955
      first = false;
12956
      if (!first) sb.append(", ");
12957
      sb.append("destCode:");
12958
      if (this.destCode == null) {
12959
        sb.append("null");
12960
      } else {
12961
        sb.append(this.destCode);
12962
      }
12963
      first = false;
12964
      if (!first) sb.append(", ");
12965
      sb.append("exp:");
12966
      sb.append(this.exp);
12967
      first = false;
12968
      if (!first) sb.append(", ");
12969
      sb.append("cod:");
12970
      sb.append(this.cod);
12971
      first = false;
12972
      if (!first) sb.append(", ");
12973
      sb.append("stationType:");
12974
      sb.append(this.stationType);
12975
      first = false;
6524 rajveer 12976
      if (!first) sb.append(", ");
12977
      sb.append("otgAvailable:");
12978
      sb.append(this.otgAvailable);
12979
      first = false;
6322 amar.kumar 12980
      sb.append(")");
12981
      return sb.toString();
12982
    }
12983
 
12984
    public void validate() throws org.apache.thrift.TException {
12985
      // check for required fields
12986
    }
12987
 
12988
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12989
      try {
12990
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12991
      } catch (org.apache.thrift.TException te) {
12992
        throw new java.io.IOException(te);
12993
      }
12994
    }
12995
 
12996
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12997
      try {
12998
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12999
        __isset_bit_vector = new BitSet(1);
13000
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13001
      } catch (org.apache.thrift.TException te) {
13002
        throw new java.io.IOException(te);
13003
      }
13004
    }
13005
 
13006
  }
13007
 
13008
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
13009
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
13010
 
13011
 
13012
 
13013
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13014
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13015
;
13016
 
13017
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13018
 
13019
      static {
13020
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13021
          byName.put(field.getFieldName(), field);
13022
        }
13023
      }
13024
 
13025
      /**
13026
       * Find the _Fields constant that matches fieldId, or null if its not found.
13027
       */
13028
      public static _Fields findByThriftId(int fieldId) {
13029
        switch(fieldId) {
13030
          default:
13031
            return null;
13032
        }
13033
      }
13034
 
13035
      /**
13036
       * Find the _Fields constant that matches fieldId, throwing an exception
13037
       * if it is not found.
13038
       */
13039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13040
        _Fields fields = findByThriftId(fieldId);
13041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13042
        return fields;
13043
      }
13044
 
13045
      /**
13046
       * Find the _Fields constant that matches name, or null if its not found.
13047
       */
13048
      public static _Fields findByName(String name) {
13049
        return byName.get(name);
13050
      }
13051
 
13052
      private final short _thriftId;
13053
      private final String _fieldName;
13054
 
13055
      _Fields(short thriftId, String fieldName) {
13056
        _thriftId = thriftId;
13057
        _fieldName = fieldName;
13058
      }
13059
 
13060
      public short getThriftFieldId() {
13061
        return _thriftId;
13062
      }
13063
 
13064
      public String getFieldName() {
13065
        return _fieldName;
13066
      }
13067
    }
13068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13069
    static {
13070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
13073
    }
13074
 
13075
    public addPincode_result() {
13076
    }
13077
 
13078
    /**
13079
     * Performs a deep copy on <i>other</i>.
13080
     */
13081
    public addPincode_result(addPincode_result other) {
13082
    }
13083
 
13084
    public addPincode_result deepCopy() {
13085
      return new addPincode_result(this);
13086
    }
13087
 
13088
    @Override
13089
    public void clear() {
13090
    }
13091
 
13092
    public void setFieldValue(_Fields field, Object value) {
13093
      switch (field) {
13094
      }
13095
    }
13096
 
13097
    public Object getFieldValue(_Fields field) {
13098
      switch (field) {
13099
      }
13100
      throw new IllegalStateException();
13101
    }
13102
 
13103
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13104
    public boolean isSet(_Fields field) {
13105
      if (field == null) {
13106
        throw new IllegalArgumentException();
13107
      }
13108
 
13109
      switch (field) {
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 addPincode_result)
13119
        return this.equals((addPincode_result)that);
13120
      return false;
13121
    }
13122
 
13123
    public boolean equals(addPincode_result that) {
13124
      if (that == null)
13125
        return false;
13126
 
13127
      return true;
13128
    }
13129
 
13130
    @Override
13131
    public int hashCode() {
13132
      return 0;
13133
    }
13134
 
13135
    public int compareTo(addPincode_result other) {
13136
      if (!getClass().equals(other.getClass())) {
13137
        return getClass().getName().compareTo(other.getClass().getName());
13138
      }
13139
 
13140
      int lastComparison = 0;
13141
      addPincode_result typedOther = (addPincode_result)other;
13142
 
13143
      return 0;
13144
    }
13145
 
13146
    public _Fields fieldForId(int fieldId) {
13147
      return _Fields.findByThriftId(fieldId);
13148
    }
13149
 
13150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13151
      org.apache.thrift.protocol.TField field;
13152
      iprot.readStructBegin();
13153
      while (true)
13154
      {
13155
        field = iprot.readFieldBegin();
13156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13157
          break;
13158
        }
13159
        switch (field.id) {
13160
          default:
13161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13162
        }
13163
        iprot.readFieldEnd();
13164
      }
13165
      iprot.readStructEnd();
13166
      validate();
13167
    }
13168
 
13169
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13170
      oprot.writeStructBegin(STRUCT_DESC);
13171
 
13172
      oprot.writeFieldStop();
13173
      oprot.writeStructEnd();
13174
    }
13175
 
13176
    @Override
13177
    public String toString() {
13178
      StringBuilder sb = new StringBuilder("addPincode_result(");
13179
      boolean first = true;
13180
 
13181
      sb.append(")");
13182
      return sb.toString();
13183
    }
13184
 
13185
    public void validate() throws org.apache.thrift.TException {
13186
      // check for required fields
13187
    }
13188
 
13189
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13190
      try {
13191
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13192
      } catch (org.apache.thrift.TException te) {
13193
        throw new java.io.IOException(te);
13194
      }
13195
    }
13196
 
13197
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13198
      try {
13199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13200
      } catch (org.apache.thrift.TException te) {
13201
        throw new java.io.IOException(te);
13202
      }
13203
    }
13204
 
13205
  }
13206
 
13207
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
13208
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
13209
 
13210
    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);
13211
    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);
13212
    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);
13213
    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 13214
    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 13215
 
13216
    private long providerId; // required
13217
    private String pincode; // required
13218
    private boolean exp; // required
13219
    private boolean cod; // required
6524 rajveer 13220
    private boolean otgAvailable; // required
6322 amar.kumar 13221
 
13222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13223
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13224
      PROVIDER_ID((short)1, "providerId"),
13225
      PINCODE((short)2, "pincode"),
13226
      EXP((short)3, "exp"),
6524 rajveer 13227
      COD((short)4, "cod"),
13228
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 13229
 
13230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13231
 
13232
      static {
13233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13234
          byName.put(field.getFieldName(), field);
13235
        }
13236
      }
13237
 
13238
      /**
13239
       * Find the _Fields constant that matches fieldId, or null if its not found.
13240
       */
13241
      public static _Fields findByThriftId(int fieldId) {
13242
        switch(fieldId) {
13243
          case 1: // PROVIDER_ID
13244
            return PROVIDER_ID;
13245
          case 2: // PINCODE
13246
            return PINCODE;
13247
          case 3: // EXP
13248
            return EXP;
13249
          case 4: // COD
13250
            return COD;
6524 rajveer 13251
          case 5: // OTG_AVAILABLE
13252
            return OTG_AVAILABLE;
6322 amar.kumar 13253
          default:
13254
            return null;
13255
        }
13256
      }
13257
 
13258
      /**
13259
       * Find the _Fields constant that matches fieldId, throwing an exception
13260
       * if it is not found.
13261
       */
13262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13263
        _Fields fields = findByThriftId(fieldId);
13264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13265
        return fields;
13266
      }
13267
 
13268
      /**
13269
       * Find the _Fields constant that matches name, or null if its not found.
13270
       */
13271
      public static _Fields findByName(String name) {
13272
        return byName.get(name);
13273
      }
13274
 
13275
      private final short _thriftId;
13276
      private final String _fieldName;
13277
 
13278
      _Fields(short thriftId, String fieldName) {
13279
        _thriftId = thriftId;
13280
        _fieldName = fieldName;
13281
      }
13282
 
13283
      public short getThriftFieldId() {
13284
        return _thriftId;
13285
      }
13286
 
13287
      public String getFieldName() {
13288
        return _fieldName;
13289
      }
13290
    }
13291
 
13292
    // isset id assignments
13293
    private static final int __PROVIDERID_ISSET_ID = 0;
13294
    private static final int __EXP_ISSET_ID = 1;
13295
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 13296
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
13297
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 13298
 
13299
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13300
    static {
13301
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13302
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13303
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13304
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13306
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13308
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 13310
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
13314
    }
13315
 
13316
    public updatePincode_args() {
13317
    }
13318
 
13319
    public updatePincode_args(
13320
      long providerId,
13321
      String pincode,
13322
      boolean exp,
6524 rajveer 13323
      boolean cod,
13324
      boolean otgAvailable)
6322 amar.kumar 13325
    {
13326
      this();
13327
      this.providerId = providerId;
13328
      setProviderIdIsSet(true);
13329
      this.pincode = pincode;
13330
      this.exp = exp;
13331
      setExpIsSet(true);
13332
      this.cod = cod;
13333
      setCodIsSet(true);
6524 rajveer 13334
      this.otgAvailable = otgAvailable;
13335
      setOtgAvailableIsSet(true);
6322 amar.kumar 13336
    }
13337
 
13338
    /**
13339
     * Performs a deep copy on <i>other</i>.
13340
     */
13341
    public updatePincode_args(updatePincode_args other) {
13342
      __isset_bit_vector.clear();
13343
      __isset_bit_vector.or(other.__isset_bit_vector);
13344
      this.providerId = other.providerId;
13345
      if (other.isSetPincode()) {
13346
        this.pincode = other.pincode;
13347
      }
13348
      this.exp = other.exp;
13349
      this.cod = other.cod;
6524 rajveer 13350
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13351
    }
13352
 
13353
    public updatePincode_args deepCopy() {
13354
      return new updatePincode_args(this);
13355
    }
13356
 
13357
    @Override
13358
    public void clear() {
13359
      setProviderIdIsSet(false);
13360
      this.providerId = 0;
13361
      this.pincode = null;
13362
      setExpIsSet(false);
13363
      this.exp = false;
13364
      setCodIsSet(false);
13365
      this.cod = false;
6524 rajveer 13366
      setOtgAvailableIsSet(false);
13367
      this.otgAvailable = false;
6322 amar.kumar 13368
    }
13369
 
13370
    public long getProviderId() {
13371
      return this.providerId;
13372
    }
13373
 
13374
    public void setProviderId(long providerId) {
13375
      this.providerId = providerId;
13376
      setProviderIdIsSet(true);
13377
    }
13378
 
13379
    public void unsetProviderId() {
13380
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13381
    }
13382
 
13383
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13384
    public boolean isSetProviderId() {
13385
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13386
    }
13387
 
13388
    public void setProviderIdIsSet(boolean value) {
13389
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13390
    }
13391
 
13392
    public String getPincode() {
13393
      return this.pincode;
13394
    }
13395
 
13396
    public void setPincode(String pincode) {
13397
      this.pincode = pincode;
13398
    }
13399
 
13400
    public void unsetPincode() {
13401
      this.pincode = null;
13402
    }
13403
 
13404
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13405
    public boolean isSetPincode() {
13406
      return this.pincode != null;
13407
    }
13408
 
13409
    public void setPincodeIsSet(boolean value) {
13410
      if (!value) {
13411
        this.pincode = null;
13412
      }
13413
    }
13414
 
13415
    public boolean isExp() {
13416
      return this.exp;
13417
    }
13418
 
13419
    public void setExp(boolean exp) {
13420
      this.exp = exp;
13421
      setExpIsSet(true);
13422
    }
13423
 
13424
    public void unsetExp() {
13425
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13426
    }
13427
 
13428
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13429
    public boolean isSetExp() {
13430
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13431
    }
13432
 
13433
    public void setExpIsSet(boolean value) {
13434
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13435
    }
13436
 
13437
    public boolean isCod() {
13438
      return this.cod;
13439
    }
13440
 
13441
    public void setCod(boolean cod) {
13442
      this.cod = cod;
13443
      setCodIsSet(true);
13444
    }
13445
 
13446
    public void unsetCod() {
13447
      __isset_bit_vector.clear(__COD_ISSET_ID);
13448
    }
13449
 
13450
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13451
    public boolean isSetCod() {
13452
      return __isset_bit_vector.get(__COD_ISSET_ID);
13453
    }
13454
 
13455
    public void setCodIsSet(boolean value) {
13456
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13457
    }
13458
 
6524 rajveer 13459
    public boolean isOtgAvailable() {
13460
      return this.otgAvailable;
13461
    }
13462
 
13463
    public void setOtgAvailable(boolean otgAvailable) {
13464
      this.otgAvailable = otgAvailable;
13465
      setOtgAvailableIsSet(true);
13466
    }
13467
 
13468
    public void unsetOtgAvailable() {
13469
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13470
    }
13471
 
13472
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13473
    public boolean isSetOtgAvailable() {
13474
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13475
    }
13476
 
13477
    public void setOtgAvailableIsSet(boolean value) {
13478
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13479
    }
13480
 
6322 amar.kumar 13481
    public void setFieldValue(_Fields field, Object value) {
13482
      switch (field) {
13483
      case PROVIDER_ID:
13484
        if (value == null) {
13485
          unsetProviderId();
13486
        } else {
13487
          setProviderId((Long)value);
13488
        }
13489
        break;
13490
 
13491
      case PINCODE:
13492
        if (value == null) {
13493
          unsetPincode();
13494
        } else {
13495
          setPincode((String)value);
13496
        }
13497
        break;
13498
 
13499
      case EXP:
13500
        if (value == null) {
13501
          unsetExp();
13502
        } else {
13503
          setExp((Boolean)value);
13504
        }
13505
        break;
13506
 
13507
      case COD:
13508
        if (value == null) {
13509
          unsetCod();
13510
        } else {
13511
          setCod((Boolean)value);
13512
        }
13513
        break;
13514
 
6524 rajveer 13515
      case OTG_AVAILABLE:
13516
        if (value == null) {
13517
          unsetOtgAvailable();
13518
        } else {
13519
          setOtgAvailable((Boolean)value);
13520
        }
13521
        break;
13522
 
6322 amar.kumar 13523
      }
13524
    }
13525
 
13526
    public Object getFieldValue(_Fields field) {
13527
      switch (field) {
13528
      case PROVIDER_ID:
13529
        return Long.valueOf(getProviderId());
13530
 
13531
      case PINCODE:
13532
        return getPincode();
13533
 
13534
      case EXP:
13535
        return Boolean.valueOf(isExp());
13536
 
13537
      case COD:
13538
        return Boolean.valueOf(isCod());
13539
 
6524 rajveer 13540
      case OTG_AVAILABLE:
13541
        return Boolean.valueOf(isOtgAvailable());
13542
 
6322 amar.kumar 13543
      }
13544
      throw new IllegalStateException();
13545
    }
13546
 
13547
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13548
    public boolean isSet(_Fields field) {
13549
      if (field == null) {
13550
        throw new IllegalArgumentException();
13551
      }
13552
 
13553
      switch (field) {
13554
      case PROVIDER_ID:
13555
        return isSetProviderId();
13556
      case PINCODE:
13557
        return isSetPincode();
13558
      case EXP:
13559
        return isSetExp();
13560
      case COD:
13561
        return isSetCod();
6524 rajveer 13562
      case OTG_AVAILABLE:
13563
        return isSetOtgAvailable();
6322 amar.kumar 13564
      }
13565
      throw new IllegalStateException();
13566
    }
13567
 
13568
    @Override
13569
    public boolean equals(Object that) {
13570
      if (that == null)
13571
        return false;
13572
      if (that instanceof updatePincode_args)
13573
        return this.equals((updatePincode_args)that);
13574
      return false;
13575
    }
13576
 
13577
    public boolean equals(updatePincode_args that) {
13578
      if (that == null)
13579
        return false;
13580
 
13581
      boolean this_present_providerId = true;
13582
      boolean that_present_providerId = true;
13583
      if (this_present_providerId || that_present_providerId) {
13584
        if (!(this_present_providerId && that_present_providerId))
13585
          return false;
13586
        if (this.providerId != that.providerId)
13587
          return false;
13588
      }
13589
 
13590
      boolean this_present_pincode = true && this.isSetPincode();
13591
      boolean that_present_pincode = true && that.isSetPincode();
13592
      if (this_present_pincode || that_present_pincode) {
13593
        if (!(this_present_pincode && that_present_pincode))
13594
          return false;
13595
        if (!this.pincode.equals(that.pincode))
13596
          return false;
13597
      }
13598
 
13599
      boolean this_present_exp = true;
13600
      boolean that_present_exp = true;
13601
      if (this_present_exp || that_present_exp) {
13602
        if (!(this_present_exp && that_present_exp))
13603
          return false;
13604
        if (this.exp != that.exp)
13605
          return false;
13606
      }
13607
 
13608
      boolean this_present_cod = true;
13609
      boolean that_present_cod = true;
13610
      if (this_present_cod || that_present_cod) {
13611
        if (!(this_present_cod && that_present_cod))
13612
          return false;
13613
        if (this.cod != that.cod)
13614
          return false;
13615
      }
13616
 
6524 rajveer 13617
      boolean this_present_otgAvailable = true;
13618
      boolean that_present_otgAvailable = true;
13619
      if (this_present_otgAvailable || that_present_otgAvailable) {
13620
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13621
          return false;
13622
        if (this.otgAvailable != that.otgAvailable)
13623
          return false;
13624
      }
13625
 
6322 amar.kumar 13626
      return true;
13627
    }
13628
 
13629
    @Override
13630
    public int hashCode() {
13631
      return 0;
13632
    }
13633
 
13634
    public int compareTo(updatePincode_args other) {
13635
      if (!getClass().equals(other.getClass())) {
13636
        return getClass().getName().compareTo(other.getClass().getName());
13637
      }
13638
 
13639
      int lastComparison = 0;
13640
      updatePincode_args typedOther = (updatePincode_args)other;
13641
 
13642
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13643
      if (lastComparison != 0) {
13644
        return lastComparison;
13645
      }
13646
      if (isSetProviderId()) {
13647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13648
        if (lastComparison != 0) {
13649
          return lastComparison;
13650
        }
13651
      }
13652
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13653
      if (lastComparison != 0) {
13654
        return lastComparison;
13655
      }
13656
      if (isSetPincode()) {
13657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13658
        if (lastComparison != 0) {
13659
          return lastComparison;
13660
        }
13661
      }
13662
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13663
      if (lastComparison != 0) {
13664
        return lastComparison;
13665
      }
13666
      if (isSetExp()) {
13667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13668
        if (lastComparison != 0) {
13669
          return lastComparison;
13670
        }
13671
      }
13672
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13673
      if (lastComparison != 0) {
13674
        return lastComparison;
13675
      }
13676
      if (isSetCod()) {
13677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
13678
        if (lastComparison != 0) {
13679
          return lastComparison;
13680
        }
13681
      }
6524 rajveer 13682
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
13683
      if (lastComparison != 0) {
13684
        return lastComparison;
13685
      }
13686
      if (isSetOtgAvailable()) {
13687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
13688
        if (lastComparison != 0) {
13689
          return lastComparison;
13690
        }
13691
      }
6322 amar.kumar 13692
      return 0;
13693
    }
13694
 
13695
    public _Fields fieldForId(int fieldId) {
13696
      return _Fields.findByThriftId(fieldId);
13697
    }
13698
 
13699
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13700
      org.apache.thrift.protocol.TField field;
13701
      iprot.readStructBegin();
13702
      while (true)
13703
      {
13704
        field = iprot.readFieldBegin();
13705
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13706
          break;
13707
        }
13708
        switch (field.id) {
13709
          case 1: // PROVIDER_ID
13710
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13711
              this.providerId = iprot.readI64();
13712
              setProviderIdIsSet(true);
13713
            } else { 
13714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13715
            }
13716
            break;
13717
          case 2: // PINCODE
13718
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13719
              this.pincode = iprot.readString();
13720
            } else { 
13721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13722
            }
13723
            break;
13724
          case 3: // EXP
13725
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13726
              this.exp = iprot.readBool();
13727
              setExpIsSet(true);
13728
            } else { 
13729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13730
            }
13731
            break;
13732
          case 4: // COD
13733
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13734
              this.cod = iprot.readBool();
13735
              setCodIsSet(true);
13736
            } else { 
13737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13738
            }
13739
            break;
6524 rajveer 13740
          case 5: // OTG_AVAILABLE
13741
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13742
              this.otgAvailable = iprot.readBool();
13743
              setOtgAvailableIsSet(true);
13744
            } else { 
13745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13746
            }
13747
            break;
6322 amar.kumar 13748
          default:
13749
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13750
        }
13751
        iprot.readFieldEnd();
13752
      }
13753
      iprot.readStructEnd();
13754
      validate();
13755
    }
13756
 
13757
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13758
      validate();
13759
 
13760
      oprot.writeStructBegin(STRUCT_DESC);
13761
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
13762
      oprot.writeI64(this.providerId);
13763
      oprot.writeFieldEnd();
13764
      if (this.pincode != null) {
13765
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
13766
        oprot.writeString(this.pincode);
13767
        oprot.writeFieldEnd();
13768
      }
13769
      oprot.writeFieldBegin(EXP_FIELD_DESC);
13770
      oprot.writeBool(this.exp);
13771
      oprot.writeFieldEnd();
13772
      oprot.writeFieldBegin(COD_FIELD_DESC);
13773
      oprot.writeBool(this.cod);
13774
      oprot.writeFieldEnd();
6524 rajveer 13775
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
13776
      oprot.writeBool(this.otgAvailable);
13777
      oprot.writeFieldEnd();
6322 amar.kumar 13778
      oprot.writeFieldStop();
13779
      oprot.writeStructEnd();
13780
    }
13781
 
13782
    @Override
13783
    public String toString() {
13784
      StringBuilder sb = new StringBuilder("updatePincode_args(");
13785
      boolean first = true;
13786
 
13787
      sb.append("providerId:");
13788
      sb.append(this.providerId);
13789
      first = false;
13790
      if (!first) sb.append(", ");
13791
      sb.append("pincode:");
13792
      if (this.pincode == null) {
13793
        sb.append("null");
13794
      } else {
13795
        sb.append(this.pincode);
13796
      }
13797
      first = false;
13798
      if (!first) sb.append(", ");
13799
      sb.append("exp:");
13800
      sb.append(this.exp);
13801
      first = false;
13802
      if (!first) sb.append(", ");
13803
      sb.append("cod:");
13804
      sb.append(this.cod);
13805
      first = false;
6524 rajveer 13806
      if (!first) sb.append(", ");
13807
      sb.append("otgAvailable:");
13808
      sb.append(this.otgAvailable);
13809
      first = false;
6322 amar.kumar 13810
      sb.append(")");
13811
      return sb.toString();
13812
    }
13813
 
13814
    public void validate() throws org.apache.thrift.TException {
13815
      // check for required fields
13816
    }
13817
 
13818
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13819
      try {
13820
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13821
      } catch (org.apache.thrift.TException te) {
13822
        throw new java.io.IOException(te);
13823
      }
13824
    }
13825
 
13826
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13827
      try {
13828
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13829
        __isset_bit_vector = new BitSet(1);
13830
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13831
      } catch (org.apache.thrift.TException te) {
13832
        throw new java.io.IOException(te);
13833
      }
13834
    }
13835
 
13836
  }
13837
 
13838
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
13839
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
13840
 
13841
 
13842
 
13843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13845
;
13846
 
13847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13848
 
13849
      static {
13850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13851
          byName.put(field.getFieldName(), field);
13852
        }
13853
      }
13854
 
13855
      /**
13856
       * Find the _Fields constant that matches fieldId, or null if its not found.
13857
       */
13858
      public static _Fields findByThriftId(int fieldId) {
13859
        switch(fieldId) {
13860
          default:
13861
            return null;
13862
        }
13863
      }
13864
 
13865
      /**
13866
       * Find the _Fields constant that matches fieldId, throwing an exception
13867
       * if it is not found.
13868
       */
13869
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13870
        _Fields fields = findByThriftId(fieldId);
13871
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13872
        return fields;
13873
      }
13874
 
13875
      /**
13876
       * Find the _Fields constant that matches name, or null if its not found.
13877
       */
13878
      public static _Fields findByName(String name) {
13879
        return byName.get(name);
13880
      }
13881
 
13882
      private final short _thriftId;
13883
      private final String _fieldName;
13884
 
13885
      _Fields(short thriftId, String fieldName) {
13886
        _thriftId = thriftId;
13887
        _fieldName = fieldName;
13888
      }
13889
 
13890
      public short getThriftFieldId() {
13891
        return _thriftId;
13892
      }
13893
 
13894
      public String getFieldName() {
13895
        return _fieldName;
13896
      }
13897
    }
13898
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13899
    static {
13900
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13901
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13902
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
13903
    }
13904
 
13905
    public updatePincode_result() {
13906
    }
13907
 
13908
    /**
13909
     * Performs a deep copy on <i>other</i>.
13910
     */
13911
    public updatePincode_result(updatePincode_result other) {
13912
    }
13913
 
13914
    public updatePincode_result deepCopy() {
13915
      return new updatePincode_result(this);
13916
    }
13917
 
13918
    @Override
13919
    public void clear() {
13920
    }
13921
 
13922
    public void setFieldValue(_Fields field, Object value) {
13923
      switch (field) {
13924
      }
13925
    }
13926
 
13927
    public Object getFieldValue(_Fields field) {
13928
      switch (field) {
13929
      }
13930
      throw new IllegalStateException();
13931
    }
13932
 
13933
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13934
    public boolean isSet(_Fields field) {
13935
      if (field == null) {
13936
        throw new IllegalArgumentException();
13937
      }
13938
 
13939
      switch (field) {
13940
      }
13941
      throw new IllegalStateException();
13942
    }
13943
 
13944
    @Override
13945
    public boolean equals(Object that) {
13946
      if (that == null)
13947
        return false;
13948
      if (that instanceof updatePincode_result)
13949
        return this.equals((updatePincode_result)that);
13950
      return false;
13951
    }
13952
 
13953
    public boolean equals(updatePincode_result that) {
13954
      if (that == null)
13955
        return false;
13956
 
13957
      return true;
13958
    }
13959
 
13960
    @Override
13961
    public int hashCode() {
13962
      return 0;
13963
    }
13964
 
13965
    public int compareTo(updatePincode_result other) {
13966
      if (!getClass().equals(other.getClass())) {
13967
        return getClass().getName().compareTo(other.getClass().getName());
13968
      }
13969
 
13970
      int lastComparison = 0;
13971
      updatePincode_result typedOther = (updatePincode_result)other;
13972
 
13973
      return 0;
13974
    }
13975
 
13976
    public _Fields fieldForId(int fieldId) {
13977
      return _Fields.findByThriftId(fieldId);
13978
    }
13979
 
13980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13981
      org.apache.thrift.protocol.TField field;
13982
      iprot.readStructBegin();
13983
      while (true)
13984
      {
13985
        field = iprot.readFieldBegin();
13986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13987
          break;
13988
        }
13989
        switch (field.id) {
13990
          default:
13991
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13992
        }
13993
        iprot.readFieldEnd();
13994
      }
13995
      iprot.readStructEnd();
13996
      validate();
13997
    }
13998
 
13999
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14000
      oprot.writeStructBegin(STRUCT_DESC);
14001
 
14002
      oprot.writeFieldStop();
14003
      oprot.writeStructEnd();
14004
    }
14005
 
14006
    @Override
14007
    public String toString() {
14008
      StringBuilder sb = new StringBuilder("updatePincode_result(");
14009
      boolean first = true;
14010
 
14011
      sb.append(")");
14012
      return sb.toString();
14013
    }
14014
 
14015
    public void validate() throws org.apache.thrift.TException {
14016
      // check for required fields
14017
    }
14018
 
14019
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14020
      try {
14021
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14022
      } catch (org.apache.thrift.TException te) {
14023
        throw new java.io.IOException(te);
14024
      }
14025
    }
14026
 
14027
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14028
      try {
14029
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14030
      } catch (org.apache.thrift.TException te) {
14031
        throw new java.io.IOException(te);
14032
      }
14033
    }
14034
 
14035
  }
14036
 
412 ashish 14037
}