Subversion Repositories SmartDukaan

Rev

Rev 5766 | Rev 6524 | 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
     * 
71
     * @param awb
72
     * @param providerId
73
     */
3430 rajveer 74
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 75
 
730 chandransh 76
    /**
77
     * Returns the short three letter code of a pincode for the given provider.
78
     *    Raises an exception if the pin code is not serviced by the given provider.
79
     * 
80
     * @param providerId
81
     * @param pinCode
82
     */
3430 rajveer 83
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 84
 
1139 chandransh 85
    /**
3103 chandransh 86
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 87
     * 
88
     * @param providerId
3103 chandransh 89
     * @param type
1139 chandransh 90
     */
3430 rajveer 91
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 92
 
1730 ankur.sing 93
    /**
94
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
95
     * fromDate should be passed as milliseconds corresponding to the start of the day.
96
     * If fromDate is passed as -1, fromDate is not considered for filtering
97
     * If toDate is passed as -1, toDate is not considered for filtering
98
     * 
99
     * @param fromDate
100
     * @param toDate
101
     */
3430 rajveer 102
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 103
 
4934 amit.gupta 104
    /**
105
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
106
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
107
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
108
     * 
109
     * @param catalogItemId
110
     * @param destination_pin
111
     * @param type
112
     */
113
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
114
 
5527 anupam.sin 115
    /**
116
     * Returns the id for a given pickUpType
117
     * 
118
     * @param pickUp
119
     */
120
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
121
 
5553 rajveer 122
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
123
 
124
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
125
 
5719 rajveer 126
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
127
 
6322 amar.kumar 128
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException;
129
 
130
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException;
131
 
412 ashish 132
  }
133
 
3430 rajveer 134
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
135
 
136
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
137
 
138
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
139
 
4630 mandeep.dh 140
    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 141
 
5766 rajveer 142
    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 143
 
5247 rajveer 144
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 145
 
146
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
147
 
148
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
149
 
150
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
151
 
152
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
153
 
4934 amit.gupta 154
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
155
 
5527 anupam.sin 156
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
157
 
5553 rajveer 158
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
159
 
160
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
161
 
5719 rajveer 162
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
163
 
6322 amar.kumar 164
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
165
 
166
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
167
 
3430 rajveer 168
  }
169
 
3374 rajveer 170
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 171
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
172
      public Factory() {}
173
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
174
        return new Client(prot);
175
      }
176
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
177
        return new Client(iprot, oprot);
178
      }
179
    }
180
 
181
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 182
    {
3430 rajveer 183
      super(prot, prot);
412 ashish 184
    }
185
 
3430 rajveer 186
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 187
      super(iprot, oprot);
412 ashish 188
    }
189
 
3430 rajveer 190
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 191
    {
192
      send_getProvider(providerId);
193
      return recv_getProvider();
194
    }
195
 
3430 rajveer 196
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 197
    {
198
      getProvider_args args = new getProvider_args();
3430 rajveer 199
      args.setProviderId(providerId);
200
      sendBase("getProvider", args);
668 chandransh 201
    }
202
 
3430 rajveer 203
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 204
    {
205
      getProvider_result result = new getProvider_result();
3430 rajveer 206
      receiveBase(result, "getProvider");
668 chandransh 207
      if (result.isSetSuccess()) {
208
        return result.success;
209
      }
210
      if (result.lse != null) {
211
        throw result.lse;
212
      }
3430 rajveer 213
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 214
    }
215
 
3430 rajveer 216
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 217
    {
218
      send_getAllProviders();
219
      return recv_getAllProviders();
220
    }
221
 
3430 rajveer 222
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 223
    {
224
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 225
      sendBase("getAllProviders", args);
674 chandransh 226
    }
227
 
3430 rajveer 228
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 229
    {
230
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 231
      receiveBase(result, "getAllProviders");
674 chandransh 232
      if (result.isSetSuccess()) {
233
        return result.success;
234
      }
235
      if (result.lse != null) {
236
        throw result.lse;
237
      }
3430 rajveer 238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 239
    }
240
 
4630 mandeep.dh 241
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 242
    {
4630 mandeep.dh 243
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 244
      return recv_getLogisticsEstimation();
245
    }
246
 
4630 mandeep.dh 247
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 248
    {
249
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 250
      args.setItemId(itemId);
251
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 252
      args.setType(type);
3430 rajveer 253
      sendBase("getLogisticsEstimation", args);
471 rajveer 254
    }
255
 
3430 rajveer 256
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 257
    {
258
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 259
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 260
      if (result.isSetSuccess()) {
261
        return result.success;
262
      }
263
      if (result.se != null) {
264
        throw result.se;
265
      }
3430 rajveer 266
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 267
    }
268
 
5766 rajveer 269
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 270
    {
5766 rajveer 271
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 272
      return recv_getLogisticsInfo();
471 rajveer 273
    }
274
 
5766 rajveer 275
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 276
    {
648 chandransh 277
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 278
      args.setDestination_pincode(destination_pincode);
279
      args.setItem_id(item_id);
280
      args.setType(type);
5766 rajveer 281
      args.setPickUp(pickUp);
3430 rajveer 282
      sendBase("getLogisticsInfo", args);
471 rajveer 283
    }
284
 
3430 rajveer 285
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 286
    {
648 chandransh 287
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 288
      receiveBase(result, "getLogisticsInfo");
648 chandransh 289
      if (result.isSetSuccess()) {
290
        return result.success;
477 rajveer 291
      }
648 chandransh 292
      if (result.se != null) {
293
        throw result.se;
412 ashish 294
      }
3430 rajveer 295
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 296
    }
297
 
5247 rajveer 298
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 299
    {
5247 rajveer 300
      send_getEmptyAWB(providerId, type);
412 ashish 301
      return recv_getEmptyAWB();
302
    }
303
 
5247 rajveer 304
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 305
    {
306
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 307
      args.setProviderId(providerId);
5247 rajveer 308
      args.setType(type);
3430 rajveer 309
      sendBase("getEmptyAWB", args);
412 ashish 310
    }
311
 
3430 rajveer 312
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 313
    {
314
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 315
      receiveBase(result, "getEmptyAWB");
412 ashish 316
      if (result.isSetSuccess()) {
317
        return result.success;
318
      }
648 chandransh 319
      if (result.se != null) {
320
        throw result.se;
321
      }
3430 rajveer 322
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 323
    }
324
 
3430 rajveer 325
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 326
    {
648 chandransh 327
      send_getShipmentInfo(awb, providerId);
412 ashish 328
      return recv_getShipmentInfo();
329
    }
330
 
3430 rajveer 331
    public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
412 ashish 332
    {
333
      getShipmentInfo_args args = new getShipmentInfo_args();
3430 rajveer 334
      args.setAwb(awb);
335
      args.setProviderId(providerId);
336
      sendBase("getShipmentInfo", args);
412 ashish 337
    }
338
 
3430 rajveer 339
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 340
    {
341
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 342
      receiveBase(result, "getShipmentInfo");
412 ashish 343
      if (result.isSetSuccess()) {
344
        return result.success;
345
      }
648 chandransh 346
      if (result.se != null) {
347
        throw result.se;
348
      }
3430 rajveer 349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 350
    }
351
 
3430 rajveer 352
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 353
    {
354
      send_getDestinationCode(providerId, pinCode);
355
      return recv_getDestinationCode();
356
    }
357
 
3430 rajveer 358
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 359
    {
360
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 361
      args.setProviderId(providerId);
362
      args.setPinCode(pinCode);
363
      sendBase("getDestinationCode", args);
730 chandransh 364
    }
365
 
3430 rajveer 366
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 367
    {
368
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 369
      receiveBase(result, "getDestinationCode");
730 chandransh 370
      if (result.isSetSuccess()) {
371
        return result.success;
372
      }
373
      if (result.se != null) {
374
        throw result.se;
375
      }
3430 rajveer 376
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 377
    }
378
 
3430 rajveer 379
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 380
    {
3103 chandransh 381
      send_getFreeAwbCount(providerId, type);
1139 chandransh 382
      return recv_getFreeAwbCount();
383
    }
384
 
3430 rajveer 385
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 386
    {
387
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 388
      args.setProviderId(providerId);
389
      args.setType(type);
390
      sendBase("getFreeAwbCount", args);
1139 chandransh 391
    }
392
 
3430 rajveer 393
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 394
    {
395
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 396
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 397
      if (result.isSetSuccess()) {
398
        return result.success;
399
      }
3430 rajveer 400
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 401
    }
402
 
3430 rajveer 403
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 404
    {
405
      send_getHolidays(fromDate, toDate);
406
      return recv_getHolidays();
407
    }
408
 
3430 rajveer 409
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 410
    {
411
      getHolidays_args args = new getHolidays_args();
3430 rajveer 412
      args.setFromDate(fromDate);
413
      args.setToDate(toDate);
414
      sendBase("getHolidays", args);
1730 ankur.sing 415
    }
416
 
3430 rajveer 417
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 418
    {
419
      getHolidays_result result = new getHolidays_result();
3430 rajveer 420
      receiveBase(result, "getHolidays");
1730 ankur.sing 421
      if (result.isSetSuccess()) {
422
        return result.success;
423
      }
3430 rajveer 424
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 425
    }
426
 
4934 amit.gupta 427
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
428
    {
429
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
430
      return recv_getEntityLogisticsEstimation();
431
    }
432
 
433
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
434
    {
435
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
436
      args.setCatalogItemId(catalogItemId);
437
      args.setDestination_pin(destination_pin);
438
      args.setType(type);
439
      sendBase("getEntityLogisticsEstimation", args);
440
    }
441
 
442
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
443
    {
444
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
445
      receiveBase(result, "getEntityLogisticsEstimation");
446
      if (result.isSetSuccess()) {
447
        return result.success;
448
      }
449
      if (result.se != null) {
450
        throw result.se;
451
      }
452
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
453
    }
454
 
5527 anupam.sin 455
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
456
    {
457
      send_getProviderForPickupType(pickUp);
458
      return recv_getProviderForPickupType();
459
    }
460
 
461
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
462
    {
463
      getProviderForPickupType_args args = new getProviderForPickupType_args();
464
      args.setPickUp(pickUp);
465
      sendBase("getProviderForPickupType", args);
466
    }
467
 
468
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
469
    {
470
      getProviderForPickupType_result result = new getProviderForPickupType_result();
471
      receiveBase(result, "getProviderForPickupType");
472
      if (result.isSetSuccess()) {
473
        return result.success;
474
      }
475
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
476
    }
477
 
5553 rajveer 478
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
479
    {
480
      send_getAllPickupStores();
481
      return recv_getAllPickupStores();
482
    }
483
 
484
    public void send_getAllPickupStores() throws org.apache.thrift.TException
485
    {
486
      getAllPickupStores_args args = new getAllPickupStores_args();
487
      sendBase("getAllPickupStores", args);
488
    }
489
 
490
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
491
    {
492
      getAllPickupStores_result result = new getAllPickupStores_result();
493
      receiveBase(result, "getAllPickupStores");
494
      if (result.isSetSuccess()) {
495
        return result.success;
496
      }
497
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
498
    }
499
 
500
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
501
    {
502
      send_getPickupStore(storeId);
503
      return recv_getPickupStore();
504
    }
505
 
506
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
507
    {
508
      getPickupStore_args args = new getPickupStore_args();
509
      args.setStoreId(storeId);
510
      sendBase("getPickupStore", args);
511
    }
512
 
513
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
514
    {
515
      getPickupStore_result result = new getPickupStore_result();
516
      receiveBase(result, "getPickupStore");
517
      if (result.isSetSuccess()) {
518
        return result.success;
519
      }
520
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
521
    }
522
 
5719 rajveer 523
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
524
    {
525
      send_getPickupStoreByHotspotId(hotspotId);
526
      return recv_getPickupStoreByHotspotId();
527
    }
528
 
529
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
530
    {
531
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
532
      args.setHotspotId(hotspotId);
533
      sendBase("getPickupStoreByHotspotId", args);
534
    }
535
 
536
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
537
    {
538
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
539
      receiveBase(result, "getPickupStoreByHotspotId");
540
      if (result.isSetSuccess()) {
541
        return result.success;
542
      }
543
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
544
    }
545
 
6322 amar.kumar 546
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException
547
    {
548
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType);
549
      recv_addPincode();
550
    }
551
 
552
    public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException
553
    {
554
      addPincode_args args = new addPincode_args();
555
      args.setProviderId(providerId);
556
      args.setPincode(pincode);
557
      args.setDestCode(destCode);
558
      args.setExp(exp);
559
      args.setCod(cod);
560
      args.setStationType(stationType);
561
      sendBase("addPincode", args);
562
    }
563
 
564
    public void recv_addPincode() throws org.apache.thrift.TException
565
    {
566
      addPincode_result result = new addPincode_result();
567
      receiveBase(result, "addPincode");
568
      return;
569
    }
570
 
571
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException
572
    {
573
      send_updatePincode(providerId, pincode, exp, cod);
574
      recv_updatePincode();
575
    }
576
 
577
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException
578
    {
579
      updatePincode_args args = new updatePincode_args();
580
      args.setProviderId(providerId);
581
      args.setPincode(pincode);
582
      args.setExp(exp);
583
      args.setCod(cod);
584
      sendBase("updatePincode", args);
585
    }
586
 
587
    public void recv_updatePincode() throws org.apache.thrift.TException
588
    {
589
      updatePincode_result result = new updatePincode_result();
590
      receiveBase(result, "updatePincode");
591
      return;
592
    }
593
 
412 ashish 594
  }
3430 rajveer 595
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
596
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
597
      private org.apache.thrift.async.TAsyncClientManager clientManager;
598
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
599
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
600
        this.clientManager = clientManager;
601
        this.protocolFactory = protocolFactory;
602
      }
603
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
604
        return new AsyncClient(protocolFactory, clientManager, transport);
605
      }
412 ashish 606
    }
607
 
3430 rajveer 608
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
609
      super(protocolFactory, clientManager, transport);
610
    }
412 ashish 611
 
3430 rajveer 612
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
613
      checkReady();
614
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
615
      this.___currentMethod = method_call;
616
      ___manager.call(method_call);
617
    }
618
 
619
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
620
      private long providerId;
621
      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 {
622
        super(client, protocolFactory, transport, resultHandler, false);
623
        this.providerId = providerId;
412 ashish 624
      }
3430 rajveer 625
 
626
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
627
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
628
        getProvider_args args = new getProvider_args();
629
        args.setProviderId(providerId);
630
        args.write(prot);
631
        prot.writeMessageEnd();
632
      }
633
 
634
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
635
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
636
          throw new IllegalStateException("Method call not finished!");
637
        }
638
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
639
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
640
        return (new Client(prot)).recv_getProvider();
641
      }
412 ashish 642
    }
643
 
3430 rajveer 644
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
645
      checkReady();
646
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
647
      this.___currentMethod = method_call;
648
      ___manager.call(method_call);
649
    }
650
 
651
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
652
      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 {
653
        super(client, protocolFactory, transport, resultHandler, false);
654
      }
655
 
656
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
657
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
658
        getAllProviders_args args = new getAllProviders_args();
659
        args.write(prot);
660
        prot.writeMessageEnd();
661
      }
662
 
663
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
664
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
665
          throw new IllegalStateException("Method call not finished!");
666
        }
667
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
668
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
669
        return (new Client(prot)).recv_getAllProviders();
670
      }
671
    }
672
 
4630 mandeep.dh 673
    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 674
      checkReady();
4630 mandeep.dh 675
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 676
      this.___currentMethod = method_call;
677
      ___manager.call(method_call);
678
    }
679
 
680
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
681
      private long itemId;
682
      private String destination_pin;
4630 mandeep.dh 683
      private DeliveryType type;
684
      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 685
        super(client, protocolFactory, transport, resultHandler, false);
686
        this.itemId = itemId;
687
        this.destination_pin = destination_pin;
4630 mandeep.dh 688
        this.type = type;
3430 rajveer 689
      }
690
 
691
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
692
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
693
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
694
        args.setItemId(itemId);
695
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 696
        args.setType(type);
3430 rajveer 697
        args.write(prot);
698
        prot.writeMessageEnd();
699
      }
700
 
701
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
702
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
703
          throw new IllegalStateException("Method call not finished!");
704
        }
705
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
706
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
707
        return (new Client(prot)).recv_getLogisticsEstimation();
708
      }
709
    }
710
 
5766 rajveer 711
    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 712
      checkReady();
5766 rajveer 713
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 714
      this.___currentMethod = method_call;
715
      ___manager.call(method_call);
716
    }
717
 
718
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
719
      private String destination_pincode;
720
      private long item_id;
721
      private DeliveryType type;
5766 rajveer 722
      private PickUpType pickUp;
723
      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 724
        super(client, protocolFactory, transport, resultHandler, false);
725
        this.destination_pincode = destination_pincode;
726
        this.item_id = item_id;
727
        this.type = type;
5766 rajveer 728
        this.pickUp = pickUp;
3430 rajveer 729
      }
730
 
731
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
732
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
733
        getLogisticsInfo_args args = new getLogisticsInfo_args();
734
        args.setDestination_pincode(destination_pincode);
735
        args.setItem_id(item_id);
736
        args.setType(type);
5766 rajveer 737
        args.setPickUp(pickUp);
3430 rajveer 738
        args.write(prot);
739
        prot.writeMessageEnd();
740
      }
741
 
742
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
743
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
744
          throw new IllegalStateException("Method call not finished!");
745
        }
746
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
747
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
748
        return (new Client(prot)).recv_getLogisticsInfo();
749
      }
750
    }
751
 
5247 rajveer 752
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 753
      checkReady();
5247 rajveer 754
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 755
      this.___currentMethod = method_call;
756
      ___manager.call(method_call);
757
    }
758
 
759
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
760
      private long providerId;
5247 rajveer 761
      private DeliveryType type;
762
      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 763
        super(client, protocolFactory, transport, resultHandler, false);
764
        this.providerId = providerId;
5247 rajveer 765
        this.type = type;
3430 rajveer 766
      }
767
 
768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
770
        getEmptyAWB_args args = new getEmptyAWB_args();
771
        args.setProviderId(providerId);
5247 rajveer 772
        args.setType(type);
3430 rajveer 773
        args.write(prot);
774
        prot.writeMessageEnd();
775
      }
776
 
777
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
779
          throw new IllegalStateException("Method call not finished!");
780
        }
781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
783
        return (new Client(prot)).recv_getEmptyAWB();
784
      }
785
    }
786
 
787
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
788
      checkReady();
789
      getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
790
      this.___currentMethod = method_call;
791
      ___manager.call(method_call);
792
    }
793
 
794
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
795
      private String awb;
796
      private long providerId;
797
      public getShipmentInfo_call(String awb, 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 {
798
        super(client, protocolFactory, transport, resultHandler, false);
799
        this.awb = awb;
800
        this.providerId = providerId;
801
      }
802
 
803
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
804
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
805
        getShipmentInfo_args args = new getShipmentInfo_args();
806
        args.setAwb(awb);
807
        args.setProviderId(providerId);
808
        args.write(prot);
809
        prot.writeMessageEnd();
810
      }
811
 
812
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
813
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
814
          throw new IllegalStateException("Method call not finished!");
815
        }
816
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
818
        return (new Client(prot)).recv_getShipmentInfo();
819
      }
820
    }
821
 
822
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
823
      checkReady();
824
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
825
      this.___currentMethod = method_call;
826
      ___manager.call(method_call);
827
    }
828
 
829
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
830
      private long providerId;
831
      private String pinCode;
832
      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 {
833
        super(client, protocolFactory, transport, resultHandler, false);
834
        this.providerId = providerId;
835
        this.pinCode = pinCode;
836
      }
837
 
838
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
839
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
840
        getDestinationCode_args args = new getDestinationCode_args();
841
        args.setProviderId(providerId);
842
        args.setPinCode(pinCode);
843
        args.write(prot);
844
        prot.writeMessageEnd();
845
      }
846
 
847
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
848
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
849
          throw new IllegalStateException("Method call not finished!");
850
        }
851
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
852
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
853
        return (new Client(prot)).recv_getDestinationCode();
854
      }
855
    }
856
 
857
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
858
      checkReady();
859
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
860
      this.___currentMethod = method_call;
861
      ___manager.call(method_call);
862
    }
863
 
864
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
865
      private long providerId;
866
      private String type;
867
      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 {
868
        super(client, protocolFactory, transport, resultHandler, false);
869
        this.providerId = providerId;
870
        this.type = type;
871
      }
872
 
873
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
874
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
875
        getFreeAwbCount_args args = new getFreeAwbCount_args();
876
        args.setProviderId(providerId);
877
        args.setType(type);
878
        args.write(prot);
879
        prot.writeMessageEnd();
880
      }
881
 
882
      public long getResult() throws org.apache.thrift.TException {
883
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
884
          throw new IllegalStateException("Method call not finished!");
885
        }
886
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
887
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
888
        return (new Client(prot)).recv_getFreeAwbCount();
889
      }
890
    }
891
 
892
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
893
      checkReady();
894
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
895
      this.___currentMethod = method_call;
896
      ___manager.call(method_call);
897
    }
898
 
899
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
900
      private long fromDate;
901
      private long toDate;
902
      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 {
903
        super(client, protocolFactory, transport, resultHandler, false);
904
        this.fromDate = fromDate;
905
        this.toDate = toDate;
906
      }
907
 
908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
910
        getHolidays_args args = new getHolidays_args();
911
        args.setFromDate(fromDate);
912
        args.setToDate(toDate);
913
        args.write(prot);
914
        prot.writeMessageEnd();
915
      }
916
 
917
      public List<Long> getResult() throws org.apache.thrift.TException {
918
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
919
          throw new IllegalStateException("Method call not finished!");
920
        }
921
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
922
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
923
        return (new Client(prot)).recv_getHolidays();
924
      }
925
    }
926
 
4934 amit.gupta 927
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
928
      checkReady();
929
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
930
      this.___currentMethod = method_call;
931
      ___manager.call(method_call);
932
    }
933
 
934
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
935
      private long catalogItemId;
936
      private String destination_pin;
937
      private DeliveryType type;
938
      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 {
939
        super(client, protocolFactory, transport, resultHandler, false);
940
        this.catalogItemId = catalogItemId;
941
        this.destination_pin = destination_pin;
942
        this.type = type;
943
      }
944
 
945
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
946
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
947
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
948
        args.setCatalogItemId(catalogItemId);
949
        args.setDestination_pin(destination_pin);
950
        args.setType(type);
951
        args.write(prot);
952
        prot.writeMessageEnd();
953
      }
954
 
955
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
956
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
957
          throw new IllegalStateException("Method call not finished!");
958
        }
959
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
960
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
961
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
962
      }
963
    }
964
 
5527 anupam.sin 965
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
966
      checkReady();
967
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
968
      this.___currentMethod = method_call;
969
      ___manager.call(method_call);
970
    }
971
 
972
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
973
      private long pickUp;
974
      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 {
975
        super(client, protocolFactory, transport, resultHandler, false);
976
        this.pickUp = pickUp;
977
      }
978
 
979
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
980
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
981
        getProviderForPickupType_args args = new getProviderForPickupType_args();
982
        args.setPickUp(pickUp);
983
        args.write(prot);
984
        prot.writeMessageEnd();
985
      }
986
 
987
      public long getResult() throws org.apache.thrift.TException {
988
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
989
          throw new IllegalStateException("Method call not finished!");
990
        }
991
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
993
        return (new Client(prot)).recv_getProviderForPickupType();
994
      }
995
    }
996
 
5553 rajveer 997
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
998
      checkReady();
999
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1000
      this.___currentMethod = method_call;
1001
      ___manager.call(method_call);
1002
    }
1003
 
1004
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1005
      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 {
1006
        super(client, protocolFactory, transport, resultHandler, false);
1007
      }
1008
 
1009
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1010
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1011
        getAllPickupStores_args args = new getAllPickupStores_args();
1012
        args.write(prot);
1013
        prot.writeMessageEnd();
1014
      }
1015
 
1016
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1017
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1018
          throw new IllegalStateException("Method call not finished!");
1019
        }
1020
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1021
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1022
        return (new Client(prot)).recv_getAllPickupStores();
1023
      }
1024
    }
1025
 
1026
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1027
      checkReady();
1028
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1029
      this.___currentMethod = method_call;
1030
      ___manager.call(method_call);
1031
    }
1032
 
1033
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1034
      private long storeId;
1035
      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 {
1036
        super(client, protocolFactory, transport, resultHandler, false);
1037
        this.storeId = storeId;
1038
      }
1039
 
1040
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1041
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1042
        getPickupStore_args args = new getPickupStore_args();
1043
        args.setStoreId(storeId);
1044
        args.write(prot);
1045
        prot.writeMessageEnd();
1046
      }
1047
 
1048
      public PickupStore getResult() throws org.apache.thrift.TException {
1049
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1050
          throw new IllegalStateException("Method call not finished!");
1051
        }
1052
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1053
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1054
        return (new Client(prot)).recv_getPickupStore();
1055
      }
1056
    }
1057
 
5719 rajveer 1058
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1059
      checkReady();
1060
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1061
      this.___currentMethod = method_call;
1062
      ___manager.call(method_call);
1063
    }
1064
 
1065
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1066
      private String hotspotId;
1067
      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 {
1068
        super(client, protocolFactory, transport, resultHandler, false);
1069
        this.hotspotId = hotspotId;
1070
      }
1071
 
1072
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1073
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1074
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1075
        args.setHotspotId(hotspotId);
1076
        args.write(prot);
1077
        prot.writeMessageEnd();
1078
      }
1079
 
1080
      public PickupStore getResult() throws org.apache.thrift.TException {
1081
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1082
          throw new IllegalStateException("Method call not finished!");
1083
        }
1084
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1085
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1086
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1087
      }
1088
    }
1089
 
6322 amar.kumar 1090
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
1091
      checkReady();
1092
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, resultHandler, this, ___protocolFactory, ___transport);
1093
      this.___currentMethod = method_call;
1094
      ___manager.call(method_call);
1095
    }
1096
 
1097
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1098
      private long providerId;
1099
      private String pincode;
1100
      private String destCode;
1101
      private boolean exp;
1102
      private boolean cod;
1103
      private int stationType;
1104
      public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, 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 {
1105
        super(client, protocolFactory, transport, resultHandler, false);
1106
        this.providerId = providerId;
1107
        this.pincode = pincode;
1108
        this.destCode = destCode;
1109
        this.exp = exp;
1110
        this.cod = cod;
1111
        this.stationType = stationType;
1112
      }
1113
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        addPincode_args args = new addPincode_args();
1117
        args.setProviderId(providerId);
1118
        args.setPincode(pincode);
1119
        args.setDestCode(destCode);
1120
        args.setExp(exp);
1121
        args.setCod(cod);
1122
        args.setStationType(stationType);
1123
        args.write(prot);
1124
        prot.writeMessageEnd();
1125
      }
1126
 
1127
      public void getResult() throws org.apache.thrift.TException {
1128
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1129
          throw new IllegalStateException("Method call not finished!");
1130
        }
1131
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1132
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1133
        (new Client(prot)).recv_addPincode();
1134
      }
1135
    }
1136
 
1137
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
1138
      checkReady();
1139
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, resultHandler, this, ___protocolFactory, ___transport);
1140
      this.___currentMethod = method_call;
1141
      ___manager.call(method_call);
1142
    }
1143
 
1144
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1145
      private long providerId;
1146
      private String pincode;
1147
      private boolean exp;
1148
      private boolean cod;
1149
      public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, 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 {
1150
        super(client, protocolFactory, transport, resultHandler, false);
1151
        this.providerId = providerId;
1152
        this.pincode = pincode;
1153
        this.exp = exp;
1154
        this.cod = cod;
1155
      }
1156
 
1157
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1158
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1159
        updatePincode_args args = new updatePincode_args();
1160
        args.setProviderId(providerId);
1161
        args.setPincode(pincode);
1162
        args.setExp(exp);
1163
        args.setCod(cod);
1164
        args.write(prot);
1165
        prot.writeMessageEnd();
1166
      }
1167
 
1168
      public void getResult() throws org.apache.thrift.TException {
1169
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1170
          throw new IllegalStateException("Method call not finished!");
1171
        }
1172
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1173
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1174
        (new Client(prot)).recv_updatePincode();
1175
      }
1176
    }
1177
 
3430 rajveer 1178
  }
1179
 
1180
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1181
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1182
    public Processor(I iface) {
1183
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1184
    }
1185
 
1186
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1187
      super(iface, getProcessMap(processMap));
1188
    }
1189
 
1190
    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) {
1191
      processMap.put("getProvider", new getProvider());
1192
      processMap.put("getAllProviders", new getAllProviders());
1193
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
1194
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1195
      processMap.put("getEmptyAWB", new getEmptyAWB());
1196
      processMap.put("getShipmentInfo", new getShipmentInfo());
1197
      processMap.put("getDestinationCode", new getDestinationCode());
1198
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1199
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1200
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1201
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1202
      processMap.put("getAllPickupStores", new getAllPickupStores());
1203
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1204
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1205
      processMap.put("addPincode", new addPincode());
1206
      processMap.put("updatePincode", new updatePincode());
3430 rajveer 1207
      return processMap;
1208
    }
1209
 
1210
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1211
      public getProvider() {
1212
        super("getProvider");
1213
      }
1214
 
1215
      protected getProvider_args getEmptyArgsInstance() {
1216
        return new getProvider_args();
1217
      }
1218
 
1219
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1220
        getProvider_result result = new getProvider_result();
1221
        try {
3430 rajveer 1222
          result.success = iface.getProvider(args.providerId);
668 chandransh 1223
        } catch (LogisticsServiceException lse) {
1224
          result.lse = lse;
1225
        }
3430 rajveer 1226
        return result;
668 chandransh 1227
      }
1228
    }
1229
 
3430 rajveer 1230
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1231
      public getAllProviders() {
1232
        super("getAllProviders");
1233
      }
1234
 
1235
      protected getAllProviders_args getEmptyArgsInstance() {
1236
        return new getAllProviders_args();
1237
      }
1238
 
1239
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1240
        getAllProviders_result result = new getAllProviders_result();
1241
        try {
3430 rajveer 1242
          result.success = iface.getAllProviders();
674 chandransh 1243
        } catch (LogisticsServiceException lse) {
1244
          result.lse = lse;
1245
        }
3430 rajveer 1246
        return result;
674 chandransh 1247
      }
1248
    }
1249
 
3430 rajveer 1250
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1251
      public getLogisticsEstimation() {
1252
        super("getLogisticsEstimation");
1253
      }
1254
 
1255
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1256
        return new getLogisticsEstimation_args();
1257
      }
1258
 
1259
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1260
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1261
        try {
4630 mandeep.dh 1262
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1263
        } catch (LogisticsServiceException se) {
1264
          result.se = se;
1265
        }
3430 rajveer 1266
        return result;
483 rajveer 1267
      }
1268
    }
1269
 
3430 rajveer 1270
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1271
      public getLogisticsInfo() {
1272
        super("getLogisticsInfo");
1273
      }
1274
 
1275
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1276
        return new getLogisticsInfo_args();
1277
      }
1278
 
1279
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1280
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1281
        try {
5766 rajveer 1282
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1283
        } catch (LogisticsServiceException se) {
1284
          result.se = se;
1285
        }
3430 rajveer 1286
        return result;
471 rajveer 1287
      }
1288
    }
1289
 
3430 rajveer 1290
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1291
      public getEmptyAWB() {
1292
        super("getEmptyAWB");
1293
      }
1294
 
1295
      protected getEmptyAWB_args getEmptyArgsInstance() {
1296
        return new getEmptyAWB_args();
1297
      }
1298
 
1299
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1300
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1301
        try {
5247 rajveer 1302
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1303
        } catch (LogisticsServiceException se) {
1304
          result.se = se;
1305
        }
3430 rajveer 1306
        return result;
412 ashish 1307
      }
1308
    }
1309
 
3430 rajveer 1310
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1311
      public getShipmentInfo() {
1312
        super("getShipmentInfo");
1313
      }
1314
 
1315
      protected getShipmentInfo_args getEmptyArgsInstance() {
1316
        return new getShipmentInfo_args();
1317
      }
1318
 
1319
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1320
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1321
        try {
3430 rajveer 1322
          result.success = iface.getShipmentInfo(args.awb, args.providerId);
648 chandransh 1323
        } catch (LogisticsServiceException se) {
1324
          result.se = se;
1325
        }
3430 rajveer 1326
        return result;
412 ashish 1327
      }
1328
    }
1329
 
3430 rajveer 1330
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1331
      public getDestinationCode() {
1332
        super("getDestinationCode");
1333
      }
1334
 
1335
      protected getDestinationCode_args getEmptyArgsInstance() {
1336
        return new getDestinationCode_args();
1337
      }
1338
 
1339
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1340
        getDestinationCode_result result = new getDestinationCode_result();
1341
        try {
3430 rajveer 1342
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1343
        } catch (LogisticsServiceException se) {
1344
          result.se = se;
1345
        }
3430 rajveer 1346
        return result;
730 chandransh 1347
      }
1348
    }
1349
 
3430 rajveer 1350
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1351
      public getFreeAwbCount() {
1352
        super("getFreeAwbCount");
1353
      }
1354
 
1355
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1356
        return new getFreeAwbCount_args();
1357
      }
1358
 
1359
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1360
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1361
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1362
        result.setSuccessIsSet(true);
3430 rajveer 1363
        return result;
1139 chandransh 1364
      }
1365
    }
1366
 
3430 rajveer 1367
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1368
      public getHolidays() {
1369
        super("getHolidays");
1370
      }
1371
 
1372
      protected getHolidays_args getEmptyArgsInstance() {
1373
        return new getHolidays_args();
1374
      }
1375
 
1376
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1377
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1378
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1379
        return result;
1730 ankur.sing 1380
      }
1381
    }
1382
 
4934 amit.gupta 1383
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1384
      public getEntityLogisticsEstimation() {
1385
        super("getEntityLogisticsEstimation");
1386
      }
1387
 
1388
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1389
        return new getEntityLogisticsEstimation_args();
1390
      }
1391
 
1392
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1393
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1394
        try {
1395
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1396
        } catch (LogisticsServiceException se) {
1397
          result.se = se;
1398
        }
1399
        return result;
1400
      }
1401
    }
1402
 
5527 anupam.sin 1403
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1404
      public getProviderForPickupType() {
1405
        super("getProviderForPickupType");
1406
      }
1407
 
1408
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1409
        return new getProviderForPickupType_args();
1410
      }
1411
 
1412
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1413
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1414
        result.success = iface.getProviderForPickupType(args.pickUp);
1415
        result.setSuccessIsSet(true);
1416
        return result;
1417
      }
1418
    }
1419
 
5553 rajveer 1420
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1421
      public getAllPickupStores() {
1422
        super("getAllPickupStores");
1423
      }
1424
 
1425
      protected getAllPickupStores_args getEmptyArgsInstance() {
1426
        return new getAllPickupStores_args();
1427
      }
1428
 
1429
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1430
        getAllPickupStores_result result = new getAllPickupStores_result();
1431
        result.success = iface.getAllPickupStores();
1432
        return result;
1433
      }
1434
    }
1435
 
1436
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1437
      public getPickupStore() {
1438
        super("getPickupStore");
1439
      }
1440
 
1441
      protected getPickupStore_args getEmptyArgsInstance() {
1442
        return new getPickupStore_args();
1443
      }
1444
 
1445
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1446
        getPickupStore_result result = new getPickupStore_result();
1447
        result.success = iface.getPickupStore(args.storeId);
1448
        return result;
1449
      }
1450
    }
1451
 
5719 rajveer 1452
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1453
      public getPickupStoreByHotspotId() {
1454
        super("getPickupStoreByHotspotId");
1455
      }
1456
 
1457
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1458
        return new getPickupStoreByHotspotId_args();
1459
      }
1460
 
1461
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1462
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1463
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1464
        return result;
1465
      }
1466
    }
1467
 
6322 amar.kumar 1468
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1469
      public addPincode() {
1470
        super("addPincode");
1471
      }
1472
 
1473
      protected addPincode_args getEmptyArgsInstance() {
1474
        return new addPincode_args();
1475
      }
1476
 
1477
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1478
        addPincode_result result = new addPincode_result();
1479
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType);
1480
        return result;
1481
      }
1482
    }
1483
 
1484
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1485
      public updatePincode() {
1486
        super("updatePincode");
1487
      }
1488
 
1489
      protected updatePincode_args getEmptyArgsInstance() {
1490
        return new updatePincode_args();
1491
      }
1492
 
1493
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1494
        updatePincode_result result = new updatePincode_result();
1495
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod);
1496
        return result;
1497
      }
1498
    }
1499
 
412 ashish 1500
  }
1501
 
3430 rajveer 1502
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1503
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1504
 
3430 rajveer 1505
    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 1506
 
3430 rajveer 1507
    private long providerId; // required
668 chandransh 1508
 
1509
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1510
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1511
      PROVIDER_ID((short)1, "providerId");
1512
 
1513
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1514
 
1515
      static {
1516
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1517
          byName.put(field.getFieldName(), field);
1518
        }
1519
      }
1520
 
1521
      /**
1522
       * Find the _Fields constant that matches fieldId, or null if its not found.
1523
       */
1524
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1525
        switch(fieldId) {
1526
          case 1: // PROVIDER_ID
1527
            return PROVIDER_ID;
1528
          default:
1529
            return null;
1530
        }
668 chandransh 1531
      }
1532
 
1533
      /**
1534
       * Find the _Fields constant that matches fieldId, throwing an exception
1535
       * if it is not found.
1536
       */
1537
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1538
        _Fields fields = findByThriftId(fieldId);
1539
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1540
        return fields;
1541
      }
1542
 
1543
      /**
1544
       * Find the _Fields constant that matches name, or null if its not found.
1545
       */
1546
      public static _Fields findByName(String name) {
1547
        return byName.get(name);
1548
      }
1549
 
1550
      private final short _thriftId;
1551
      private final String _fieldName;
1552
 
1553
      _Fields(short thriftId, String fieldName) {
1554
        _thriftId = thriftId;
1555
        _fieldName = fieldName;
1556
      }
1557
 
1558
      public short getThriftFieldId() {
1559
        return _thriftId;
1560
      }
1561
 
1562
      public String getFieldName() {
1563
        return _fieldName;
1564
      }
1565
    }
1566
 
1567
    // isset id assignments
1568
    private static final int __PROVIDERID_ISSET_ID = 0;
1569
    private BitSet __isset_bit_vector = new BitSet(1);
1570
 
3430 rajveer 1571
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1572
    static {
3430 rajveer 1573
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1574
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1575
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1576
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1577
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1578
    }
1579
 
1580
    public getProvider_args() {
1581
    }
1582
 
1583
    public getProvider_args(
1584
      long providerId)
1585
    {
1586
      this();
1587
      this.providerId = providerId;
1588
      setProviderIdIsSet(true);
1589
    }
1590
 
1591
    /**
1592
     * Performs a deep copy on <i>other</i>.
1593
     */
1594
    public getProvider_args(getProvider_args other) {
1595
      __isset_bit_vector.clear();
1596
      __isset_bit_vector.or(other.__isset_bit_vector);
1597
      this.providerId = other.providerId;
1598
    }
1599
 
1600
    public getProvider_args deepCopy() {
1601
      return new getProvider_args(this);
1602
    }
1603
 
3430 rajveer 1604
    @Override
1605
    public void clear() {
1606
      setProviderIdIsSet(false);
1607
      this.providerId = 0;
668 chandransh 1608
    }
1609
 
1610
    public long getProviderId() {
1611
      return this.providerId;
1612
    }
1613
 
3430 rajveer 1614
    public void setProviderId(long providerId) {
668 chandransh 1615
      this.providerId = providerId;
1616
      setProviderIdIsSet(true);
1617
    }
1618
 
1619
    public void unsetProviderId() {
1620
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1621
    }
1622
 
3430 rajveer 1623
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1624
    public boolean isSetProviderId() {
1625
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1626
    }
1627
 
1628
    public void setProviderIdIsSet(boolean value) {
1629
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1630
    }
1631
 
1632
    public void setFieldValue(_Fields field, Object value) {
1633
      switch (field) {
1634
      case PROVIDER_ID:
1635
        if (value == null) {
1636
          unsetProviderId();
1637
        } else {
1638
          setProviderId((Long)value);
1639
        }
1640
        break;
1641
 
1642
      }
1643
    }
1644
 
1645
    public Object getFieldValue(_Fields field) {
1646
      switch (field) {
1647
      case PROVIDER_ID:
3430 rajveer 1648
        return Long.valueOf(getProviderId());
668 chandransh 1649
 
1650
      }
1651
      throw new IllegalStateException();
1652
    }
1653
 
3430 rajveer 1654
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1655
    public boolean isSet(_Fields field) {
1656
      if (field == null) {
1657
        throw new IllegalArgumentException();
1658
      }
668 chandransh 1659
 
1660
      switch (field) {
1661
      case PROVIDER_ID:
1662
        return isSetProviderId();
1663
      }
1664
      throw new IllegalStateException();
1665
    }
1666
 
1667
    @Override
1668
    public boolean equals(Object that) {
1669
      if (that == null)
1670
        return false;
1671
      if (that instanceof getProvider_args)
1672
        return this.equals((getProvider_args)that);
1673
      return false;
1674
    }
1675
 
1676
    public boolean equals(getProvider_args that) {
1677
      if (that == null)
1678
        return false;
1679
 
1680
      boolean this_present_providerId = true;
1681
      boolean that_present_providerId = true;
1682
      if (this_present_providerId || that_present_providerId) {
1683
        if (!(this_present_providerId && that_present_providerId))
1684
          return false;
1685
        if (this.providerId != that.providerId)
1686
          return false;
1687
      }
1688
 
1689
      return true;
1690
    }
1691
 
1692
    @Override
1693
    public int hashCode() {
1694
      return 0;
1695
    }
1696
 
1697
    public int compareTo(getProvider_args other) {
1698
      if (!getClass().equals(other.getClass())) {
1699
        return getClass().getName().compareTo(other.getClass().getName());
1700
      }
1701
 
1702
      int lastComparison = 0;
1703
      getProvider_args typedOther = (getProvider_args)other;
1704
 
3430 rajveer 1705
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 1706
      if (lastComparison != 0) {
1707
        return lastComparison;
1708
      }
3430 rajveer 1709
      if (isSetProviderId()) {
1710
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
1711
        if (lastComparison != 0) {
1712
          return lastComparison;
1713
        }
668 chandransh 1714
      }
1715
      return 0;
1716
    }
1717
 
3430 rajveer 1718
    public _Fields fieldForId(int fieldId) {
1719
      return _Fields.findByThriftId(fieldId);
1720
    }
1721
 
1722
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1723
      org.apache.thrift.protocol.TField field;
668 chandransh 1724
      iprot.readStructBegin();
1725
      while (true)
1726
      {
1727
        field = iprot.readFieldBegin();
3430 rajveer 1728
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1729
          break;
1730
        }
3430 rajveer 1731
        switch (field.id) {
1732
          case 1: // PROVIDER_ID
1733
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1734
              this.providerId = iprot.readI64();
1735
              setProviderIdIsSet(true);
1736
            } else { 
1737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1738
            }
1739
            break;
1740
          default:
1741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1742
        }
3430 rajveer 1743
        iprot.readFieldEnd();
668 chandransh 1744
      }
1745
      iprot.readStructEnd();
1746
      validate();
1747
    }
1748
 
3430 rajveer 1749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1750
      validate();
1751
 
1752
      oprot.writeStructBegin(STRUCT_DESC);
1753
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1754
      oprot.writeI64(this.providerId);
1755
      oprot.writeFieldEnd();
1756
      oprot.writeFieldStop();
1757
      oprot.writeStructEnd();
1758
    }
1759
 
1760
    @Override
1761
    public String toString() {
1762
      StringBuilder sb = new StringBuilder("getProvider_args(");
1763
      boolean first = true;
1764
 
1765
      sb.append("providerId:");
1766
      sb.append(this.providerId);
1767
      first = false;
1768
      sb.append(")");
1769
      return sb.toString();
1770
    }
1771
 
3430 rajveer 1772
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1773
      // check for required fields
1774
    }
1775
 
3430 rajveer 1776
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1777
      try {
1778
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1779
      } catch (org.apache.thrift.TException te) {
1780
        throw new java.io.IOException(te);
1781
      }
1782
    }
1783
 
1784
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1785
      try {
1786
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1787
      } catch (org.apache.thrift.TException te) {
1788
        throw new java.io.IOException(te);
1789
      }
1790
    }
1791
 
668 chandransh 1792
  }
1793
 
3430 rajveer 1794
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1795
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 1796
 
3430 rajveer 1797
    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);
1798
    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 1799
 
3430 rajveer 1800
    private Provider success; // required
1801
    private LogisticsServiceException lse; // required
668 chandransh 1802
 
1803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1804
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1805
      SUCCESS((short)0, "success"),
1806
      LSE((short)1, "lse");
1807
 
1808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1809
 
1810
      static {
1811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1812
          byName.put(field.getFieldName(), field);
1813
        }
1814
      }
1815
 
1816
      /**
1817
       * Find the _Fields constant that matches fieldId, or null if its not found.
1818
       */
1819
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1820
        switch(fieldId) {
1821
          case 0: // SUCCESS
1822
            return SUCCESS;
1823
          case 1: // LSE
1824
            return LSE;
1825
          default:
1826
            return null;
1827
        }
668 chandransh 1828
      }
1829
 
1830
      /**
1831
       * Find the _Fields constant that matches fieldId, throwing an exception
1832
       * if it is not found.
1833
       */
1834
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1835
        _Fields fields = findByThriftId(fieldId);
1836
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1837
        return fields;
1838
      }
1839
 
1840
      /**
1841
       * Find the _Fields constant that matches name, or null if its not found.
1842
       */
1843
      public static _Fields findByName(String name) {
1844
        return byName.get(name);
1845
      }
1846
 
1847
      private final short _thriftId;
1848
      private final String _fieldName;
1849
 
1850
      _Fields(short thriftId, String fieldName) {
1851
        _thriftId = thriftId;
1852
        _fieldName = fieldName;
1853
      }
1854
 
1855
      public short getThriftFieldId() {
1856
        return _thriftId;
1857
      }
1858
 
1859
      public String getFieldName() {
1860
        return _fieldName;
1861
      }
1862
    }
1863
 
1864
    // isset id assignments
1865
 
3430 rajveer 1866
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1867
    static {
3430 rajveer 1868
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1869
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1870
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
1871
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1872
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1873
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1874
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 1875
    }
1876
 
1877
    public getProvider_result() {
1878
    }
1879
 
1880
    public getProvider_result(
1881
      Provider success,
1882
      LogisticsServiceException lse)
1883
    {
1884
      this();
1885
      this.success = success;
1886
      this.lse = lse;
1887
    }
1888
 
1889
    /**
1890
     * Performs a deep copy on <i>other</i>.
1891
     */
1892
    public getProvider_result(getProvider_result other) {
1893
      if (other.isSetSuccess()) {
1894
        this.success = new Provider(other.success);
1895
      }
1896
      if (other.isSetLse()) {
1897
        this.lse = new LogisticsServiceException(other.lse);
1898
      }
1899
    }
1900
 
1901
    public getProvider_result deepCopy() {
1902
      return new getProvider_result(this);
1903
    }
1904
 
3430 rajveer 1905
    @Override
1906
    public void clear() {
1907
      this.success = null;
1908
      this.lse = null;
668 chandransh 1909
    }
1910
 
1911
    public Provider getSuccess() {
1912
      return this.success;
1913
    }
1914
 
3430 rajveer 1915
    public void setSuccess(Provider success) {
668 chandransh 1916
      this.success = success;
1917
    }
1918
 
1919
    public void unsetSuccess() {
1920
      this.success = null;
1921
    }
1922
 
3430 rajveer 1923
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 1924
    public boolean isSetSuccess() {
1925
      return this.success != null;
1926
    }
1927
 
1928
    public void setSuccessIsSet(boolean value) {
1929
      if (!value) {
1930
        this.success = null;
1931
      }
1932
    }
1933
 
1934
    public LogisticsServiceException getLse() {
1935
      return this.lse;
1936
    }
1937
 
3430 rajveer 1938
    public void setLse(LogisticsServiceException lse) {
668 chandransh 1939
      this.lse = lse;
1940
    }
1941
 
1942
    public void unsetLse() {
1943
      this.lse = null;
1944
    }
1945
 
3430 rajveer 1946
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 1947
    public boolean isSetLse() {
1948
      return this.lse != null;
1949
    }
1950
 
1951
    public void setLseIsSet(boolean value) {
1952
      if (!value) {
1953
        this.lse = null;
1954
      }
1955
    }
1956
 
1957
    public void setFieldValue(_Fields field, Object value) {
1958
      switch (field) {
1959
      case SUCCESS:
1960
        if (value == null) {
1961
          unsetSuccess();
1962
        } else {
1963
          setSuccess((Provider)value);
1964
        }
1965
        break;
1966
 
1967
      case LSE:
1968
        if (value == null) {
1969
          unsetLse();
1970
        } else {
1971
          setLse((LogisticsServiceException)value);
1972
        }
1973
        break;
1974
 
1975
      }
1976
    }
1977
 
1978
    public Object getFieldValue(_Fields field) {
1979
      switch (field) {
1980
      case SUCCESS:
1981
        return getSuccess();
1982
 
1983
      case LSE:
1984
        return getLse();
1985
 
1986
      }
1987
      throw new IllegalStateException();
1988
    }
1989
 
3430 rajveer 1990
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1991
    public boolean isSet(_Fields field) {
1992
      if (field == null) {
1993
        throw new IllegalArgumentException();
1994
      }
668 chandransh 1995
 
1996
      switch (field) {
1997
      case SUCCESS:
1998
        return isSetSuccess();
1999
      case LSE:
2000
        return isSetLse();
2001
      }
2002
      throw new IllegalStateException();
2003
    }
2004
 
2005
    @Override
2006
    public boolean equals(Object that) {
2007
      if (that == null)
2008
        return false;
2009
      if (that instanceof getProvider_result)
2010
        return this.equals((getProvider_result)that);
2011
      return false;
2012
    }
2013
 
2014
    public boolean equals(getProvider_result that) {
2015
      if (that == null)
2016
        return false;
2017
 
2018
      boolean this_present_success = true && this.isSetSuccess();
2019
      boolean that_present_success = true && that.isSetSuccess();
2020
      if (this_present_success || that_present_success) {
2021
        if (!(this_present_success && that_present_success))
2022
          return false;
2023
        if (!this.success.equals(that.success))
2024
          return false;
2025
      }
2026
 
2027
      boolean this_present_lse = true && this.isSetLse();
2028
      boolean that_present_lse = true && that.isSetLse();
2029
      if (this_present_lse || that_present_lse) {
2030
        if (!(this_present_lse && that_present_lse))
2031
          return false;
2032
        if (!this.lse.equals(that.lse))
2033
          return false;
2034
      }
2035
 
2036
      return true;
2037
    }
2038
 
2039
    @Override
2040
    public int hashCode() {
2041
      return 0;
2042
    }
2043
 
3430 rajveer 2044
    public int compareTo(getProvider_result other) {
2045
      if (!getClass().equals(other.getClass())) {
2046
        return getClass().getName().compareTo(other.getClass().getName());
2047
      }
2048
 
2049
      int lastComparison = 0;
2050
      getProvider_result typedOther = (getProvider_result)other;
2051
 
2052
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2053
      if (lastComparison != 0) {
2054
        return lastComparison;
2055
      }
2056
      if (isSetSuccess()) {
2057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2058
        if (lastComparison != 0) {
2059
          return lastComparison;
2060
        }
2061
      }
2062
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2063
      if (lastComparison != 0) {
2064
        return lastComparison;
2065
      }
2066
      if (isSetLse()) {
2067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2068
        if (lastComparison != 0) {
2069
          return lastComparison;
2070
        }
2071
      }
2072
      return 0;
2073
    }
2074
 
2075
    public _Fields fieldForId(int fieldId) {
2076
      return _Fields.findByThriftId(fieldId);
2077
    }
2078
 
2079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2080
      org.apache.thrift.protocol.TField field;
668 chandransh 2081
      iprot.readStructBegin();
2082
      while (true)
2083
      {
2084
        field = iprot.readFieldBegin();
3430 rajveer 2085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2086
          break;
2087
        }
3430 rajveer 2088
        switch (field.id) {
2089
          case 0: // SUCCESS
2090
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2091
              this.success = new Provider();
2092
              this.success.read(iprot);
2093
            } else { 
2094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2095
            }
2096
            break;
2097
          case 1: // LSE
2098
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2099
              this.lse = new LogisticsServiceException();
2100
              this.lse.read(iprot);
2101
            } else { 
2102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2103
            }
2104
            break;
2105
          default:
2106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2107
        }
3430 rajveer 2108
        iprot.readFieldEnd();
668 chandransh 2109
      }
2110
      iprot.readStructEnd();
2111
      validate();
2112
    }
2113
 
3430 rajveer 2114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2115
      oprot.writeStructBegin(STRUCT_DESC);
2116
 
2117
      if (this.isSetSuccess()) {
2118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2119
        this.success.write(oprot);
2120
        oprot.writeFieldEnd();
2121
      } else if (this.isSetLse()) {
2122
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2123
        this.lse.write(oprot);
2124
        oprot.writeFieldEnd();
2125
      }
2126
      oprot.writeFieldStop();
2127
      oprot.writeStructEnd();
2128
    }
2129
 
2130
    @Override
2131
    public String toString() {
2132
      StringBuilder sb = new StringBuilder("getProvider_result(");
2133
      boolean first = true;
2134
 
2135
      sb.append("success:");
2136
      if (this.success == null) {
2137
        sb.append("null");
2138
      } else {
2139
        sb.append(this.success);
2140
      }
2141
      first = false;
2142
      if (!first) sb.append(", ");
2143
      sb.append("lse:");
2144
      if (this.lse == null) {
2145
        sb.append("null");
2146
      } else {
2147
        sb.append(this.lse);
2148
      }
2149
      first = false;
2150
      sb.append(")");
2151
      return sb.toString();
2152
    }
2153
 
3430 rajveer 2154
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2155
      // check for required fields
2156
    }
2157
 
3430 rajveer 2158
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2159
      try {
2160
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2161
      } catch (org.apache.thrift.TException te) {
2162
        throw new java.io.IOException(te);
2163
      }
2164
    }
2165
 
2166
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2167
      try {
2168
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2169
      } catch (org.apache.thrift.TException te) {
2170
        throw new java.io.IOException(te);
2171
      }
2172
    }
2173
 
668 chandransh 2174
  }
2175
 
3430 rajveer 2176
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2177
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2178
 
2179
 
2180
 
2181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2182
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2183
;
2184
 
2185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2186
 
2187
      static {
2188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2189
          byName.put(field.getFieldName(), field);
2190
        }
2191
      }
2192
 
2193
      /**
2194
       * Find the _Fields constant that matches fieldId, or null if its not found.
2195
       */
2196
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2197
        switch(fieldId) {
2198
          default:
2199
            return null;
2200
        }
674 chandransh 2201
      }
2202
 
2203
      /**
2204
       * Find the _Fields constant that matches fieldId, throwing an exception
2205
       * if it is not found.
2206
       */
2207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2208
        _Fields fields = findByThriftId(fieldId);
2209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2210
        return fields;
2211
      }
2212
 
2213
      /**
2214
       * Find the _Fields constant that matches name, or null if its not found.
2215
       */
2216
      public static _Fields findByName(String name) {
2217
        return byName.get(name);
2218
      }
2219
 
2220
      private final short _thriftId;
2221
      private final String _fieldName;
2222
 
2223
      _Fields(short thriftId, String fieldName) {
2224
        _thriftId = thriftId;
2225
        _fieldName = fieldName;
2226
      }
2227
 
2228
      public short getThriftFieldId() {
2229
        return _thriftId;
2230
      }
2231
 
2232
      public String getFieldName() {
2233
        return _fieldName;
2234
      }
2235
    }
3430 rajveer 2236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2237
    static {
3430 rajveer 2238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2239
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2240
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2241
    }
2242
 
2243
    public getAllProviders_args() {
2244
    }
2245
 
2246
    /**
2247
     * Performs a deep copy on <i>other</i>.
2248
     */
2249
    public getAllProviders_args(getAllProviders_args other) {
2250
    }
2251
 
2252
    public getAllProviders_args deepCopy() {
2253
      return new getAllProviders_args(this);
2254
    }
2255
 
3430 rajveer 2256
    @Override
2257
    public void clear() {
674 chandransh 2258
    }
2259
 
2260
    public void setFieldValue(_Fields field, Object value) {
2261
      switch (field) {
2262
      }
2263
    }
2264
 
2265
    public Object getFieldValue(_Fields field) {
2266
      switch (field) {
2267
      }
2268
      throw new IllegalStateException();
2269
    }
2270
 
3430 rajveer 2271
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2272
    public boolean isSet(_Fields field) {
2273
      if (field == null) {
2274
        throw new IllegalArgumentException();
2275
      }
674 chandransh 2276
 
2277
      switch (field) {
2278
      }
2279
      throw new IllegalStateException();
2280
    }
2281
 
2282
    @Override
2283
    public boolean equals(Object that) {
2284
      if (that == null)
2285
        return false;
2286
      if (that instanceof getAllProviders_args)
2287
        return this.equals((getAllProviders_args)that);
2288
      return false;
2289
    }
2290
 
2291
    public boolean equals(getAllProviders_args that) {
2292
      if (that == null)
2293
        return false;
2294
 
2295
      return true;
2296
    }
2297
 
2298
    @Override
2299
    public int hashCode() {
2300
      return 0;
2301
    }
2302
 
2303
    public int compareTo(getAllProviders_args other) {
2304
      if (!getClass().equals(other.getClass())) {
2305
        return getClass().getName().compareTo(other.getClass().getName());
2306
      }
2307
 
2308
      int lastComparison = 0;
2309
      getAllProviders_args typedOther = (getAllProviders_args)other;
2310
 
2311
      return 0;
2312
    }
2313
 
3430 rajveer 2314
    public _Fields fieldForId(int fieldId) {
2315
      return _Fields.findByThriftId(fieldId);
2316
    }
2317
 
2318
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2319
      org.apache.thrift.protocol.TField field;
674 chandransh 2320
      iprot.readStructBegin();
2321
      while (true)
2322
      {
2323
        field = iprot.readFieldBegin();
3430 rajveer 2324
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2325
          break;
2326
        }
3430 rajveer 2327
        switch (field.id) {
2328
          default:
2329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2330
        }
3430 rajveer 2331
        iprot.readFieldEnd();
674 chandransh 2332
      }
2333
      iprot.readStructEnd();
2334
      validate();
2335
    }
2336
 
3430 rajveer 2337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2338
      validate();
2339
 
2340
      oprot.writeStructBegin(STRUCT_DESC);
2341
      oprot.writeFieldStop();
2342
      oprot.writeStructEnd();
2343
    }
2344
 
2345
    @Override
2346
    public String toString() {
2347
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2348
      boolean first = true;
2349
 
2350
      sb.append(")");
2351
      return sb.toString();
2352
    }
2353
 
3430 rajveer 2354
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2355
      // check for required fields
2356
    }
2357
 
3430 rajveer 2358
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2359
      try {
2360
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2361
      } catch (org.apache.thrift.TException te) {
2362
        throw new java.io.IOException(te);
2363
      }
2364
    }
2365
 
2366
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2367
      try {
2368
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2369
      } catch (org.apache.thrift.TException te) {
2370
        throw new java.io.IOException(te);
2371
      }
2372
    }
2373
 
674 chandransh 2374
  }
2375
 
3430 rajveer 2376
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2377
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2378
 
3430 rajveer 2379
    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);
2380
    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 2381
 
3430 rajveer 2382
    private List<Provider> success; // required
2383
    private LogisticsServiceException lse; // required
674 chandransh 2384
 
2385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2387
      SUCCESS((short)0, "success"),
2388
      LSE((short)1, "lse");
2389
 
2390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2391
 
2392
      static {
2393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2394
          byName.put(field.getFieldName(), field);
2395
        }
2396
      }
2397
 
2398
      /**
2399
       * Find the _Fields constant that matches fieldId, or null if its not found.
2400
       */
2401
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2402
        switch(fieldId) {
2403
          case 0: // SUCCESS
2404
            return SUCCESS;
2405
          case 1: // LSE
2406
            return LSE;
2407
          default:
2408
            return null;
2409
        }
674 chandransh 2410
      }
2411
 
2412
      /**
2413
       * Find the _Fields constant that matches fieldId, throwing an exception
2414
       * if it is not found.
2415
       */
2416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2417
        _Fields fields = findByThriftId(fieldId);
2418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2419
        return fields;
2420
      }
2421
 
2422
      /**
2423
       * Find the _Fields constant that matches name, or null if its not found.
2424
       */
2425
      public static _Fields findByName(String name) {
2426
        return byName.get(name);
2427
      }
2428
 
2429
      private final short _thriftId;
2430
      private final String _fieldName;
2431
 
2432
      _Fields(short thriftId, String fieldName) {
2433
        _thriftId = thriftId;
2434
        _fieldName = fieldName;
2435
      }
2436
 
2437
      public short getThriftFieldId() {
2438
        return _thriftId;
2439
      }
2440
 
2441
      public String getFieldName() {
2442
        return _fieldName;
2443
      }
2444
    }
2445
 
2446
    // isset id assignments
2447
 
3430 rajveer 2448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2449
    static {
3430 rajveer 2450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2451
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2452
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2453
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2454
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2458
    }
2459
 
2460
    public getAllProviders_result() {
2461
    }
2462
 
2463
    public getAllProviders_result(
2464
      List<Provider> success,
2465
      LogisticsServiceException lse)
2466
    {
2467
      this();
2468
      this.success = success;
2469
      this.lse = lse;
2470
    }
2471
 
2472
    /**
2473
     * Performs a deep copy on <i>other</i>.
2474
     */
2475
    public getAllProviders_result(getAllProviders_result other) {
2476
      if (other.isSetSuccess()) {
2477
        List<Provider> __this__success = new ArrayList<Provider>();
2478
        for (Provider other_element : other.success) {
2479
          __this__success.add(new Provider(other_element));
2480
        }
2481
        this.success = __this__success;
2482
      }
2483
      if (other.isSetLse()) {
2484
        this.lse = new LogisticsServiceException(other.lse);
2485
      }
2486
    }
2487
 
2488
    public getAllProviders_result deepCopy() {
2489
      return new getAllProviders_result(this);
2490
    }
2491
 
3430 rajveer 2492
    @Override
2493
    public void clear() {
2494
      this.success = null;
2495
      this.lse = null;
674 chandransh 2496
    }
2497
 
2498
    public int getSuccessSize() {
2499
      return (this.success == null) ? 0 : this.success.size();
2500
    }
2501
 
2502
    public java.util.Iterator<Provider> getSuccessIterator() {
2503
      return (this.success == null) ? null : this.success.iterator();
2504
    }
2505
 
2506
    public void addToSuccess(Provider elem) {
2507
      if (this.success == null) {
2508
        this.success = new ArrayList<Provider>();
2509
      }
2510
      this.success.add(elem);
2511
    }
2512
 
2513
    public List<Provider> getSuccess() {
2514
      return this.success;
2515
    }
2516
 
3430 rajveer 2517
    public void setSuccess(List<Provider> success) {
674 chandransh 2518
      this.success = success;
2519
    }
2520
 
2521
    public void unsetSuccess() {
2522
      this.success = null;
2523
    }
2524
 
3430 rajveer 2525
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2526
    public boolean isSetSuccess() {
2527
      return this.success != null;
2528
    }
2529
 
2530
    public void setSuccessIsSet(boolean value) {
2531
      if (!value) {
2532
        this.success = null;
2533
      }
2534
    }
2535
 
2536
    public LogisticsServiceException getLse() {
2537
      return this.lse;
2538
    }
2539
 
3430 rajveer 2540
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2541
      this.lse = lse;
2542
    }
2543
 
2544
    public void unsetLse() {
2545
      this.lse = null;
2546
    }
2547
 
3430 rajveer 2548
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2549
    public boolean isSetLse() {
2550
      return this.lse != null;
2551
    }
2552
 
2553
    public void setLseIsSet(boolean value) {
2554
      if (!value) {
2555
        this.lse = null;
2556
      }
2557
    }
2558
 
2559
    public void setFieldValue(_Fields field, Object value) {
2560
      switch (field) {
2561
      case SUCCESS:
2562
        if (value == null) {
2563
          unsetSuccess();
2564
        } else {
2565
          setSuccess((List<Provider>)value);
2566
        }
2567
        break;
2568
 
2569
      case LSE:
2570
        if (value == null) {
2571
          unsetLse();
2572
        } else {
2573
          setLse((LogisticsServiceException)value);
2574
        }
2575
        break;
2576
 
2577
      }
2578
    }
2579
 
2580
    public Object getFieldValue(_Fields field) {
2581
      switch (field) {
2582
      case SUCCESS:
2583
        return getSuccess();
2584
 
2585
      case LSE:
2586
        return getLse();
2587
 
2588
      }
2589
      throw new IllegalStateException();
2590
    }
2591
 
3430 rajveer 2592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2593
    public boolean isSet(_Fields field) {
2594
      if (field == null) {
2595
        throw new IllegalArgumentException();
2596
      }
674 chandransh 2597
 
2598
      switch (field) {
2599
      case SUCCESS:
2600
        return isSetSuccess();
2601
      case LSE:
2602
        return isSetLse();
2603
      }
2604
      throw new IllegalStateException();
2605
    }
2606
 
2607
    @Override
2608
    public boolean equals(Object that) {
2609
      if (that == null)
2610
        return false;
2611
      if (that instanceof getAllProviders_result)
2612
        return this.equals((getAllProviders_result)that);
2613
      return false;
2614
    }
2615
 
2616
    public boolean equals(getAllProviders_result that) {
2617
      if (that == null)
2618
        return false;
2619
 
2620
      boolean this_present_success = true && this.isSetSuccess();
2621
      boolean that_present_success = true && that.isSetSuccess();
2622
      if (this_present_success || that_present_success) {
2623
        if (!(this_present_success && that_present_success))
2624
          return false;
2625
        if (!this.success.equals(that.success))
2626
          return false;
2627
      }
2628
 
2629
      boolean this_present_lse = true && this.isSetLse();
2630
      boolean that_present_lse = true && that.isSetLse();
2631
      if (this_present_lse || that_present_lse) {
2632
        if (!(this_present_lse && that_present_lse))
2633
          return false;
2634
        if (!this.lse.equals(that.lse))
2635
          return false;
2636
      }
2637
 
2638
      return true;
2639
    }
2640
 
2641
    @Override
2642
    public int hashCode() {
2643
      return 0;
2644
    }
2645
 
3430 rajveer 2646
    public int compareTo(getAllProviders_result other) {
2647
      if (!getClass().equals(other.getClass())) {
2648
        return getClass().getName().compareTo(other.getClass().getName());
2649
      }
2650
 
2651
      int lastComparison = 0;
2652
      getAllProviders_result typedOther = (getAllProviders_result)other;
2653
 
2654
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2655
      if (lastComparison != 0) {
2656
        return lastComparison;
2657
      }
2658
      if (isSetSuccess()) {
2659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2660
        if (lastComparison != 0) {
2661
          return lastComparison;
2662
        }
2663
      }
2664
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2665
      if (lastComparison != 0) {
2666
        return lastComparison;
2667
      }
2668
      if (isSetLse()) {
2669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2670
        if (lastComparison != 0) {
2671
          return lastComparison;
2672
        }
2673
      }
2674
      return 0;
2675
    }
2676
 
2677
    public _Fields fieldForId(int fieldId) {
2678
      return _Fields.findByThriftId(fieldId);
2679
    }
2680
 
2681
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2682
      org.apache.thrift.protocol.TField field;
674 chandransh 2683
      iprot.readStructBegin();
2684
      while (true)
2685
      {
2686
        field = iprot.readFieldBegin();
3430 rajveer 2687
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2688
          break;
2689
        }
3430 rajveer 2690
        switch (field.id) {
2691
          case 0: // SUCCESS
2692
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2693
              {
2694
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
2695
                this.success = new ArrayList<Provider>(_list5.size);
2696
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 2697
                {
3430 rajveer 2698
                  Provider _elem7; // required
2699
                  _elem7 = new Provider();
2700
                  _elem7.read(iprot);
2701
                  this.success.add(_elem7);
674 chandransh 2702
                }
3430 rajveer 2703
                iprot.readListEnd();
674 chandransh 2704
              }
3430 rajveer 2705
            } else { 
2706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2707
            }
2708
            break;
2709
          case 1: // LSE
2710
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2711
              this.lse = new LogisticsServiceException();
2712
              this.lse.read(iprot);
2713
            } else { 
2714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2715
            }
2716
            break;
2717
          default:
2718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2719
        }
3430 rajveer 2720
        iprot.readFieldEnd();
674 chandransh 2721
      }
2722
      iprot.readStructEnd();
2723
      validate();
2724
    }
2725
 
3430 rajveer 2726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2727
      oprot.writeStructBegin(STRUCT_DESC);
2728
 
2729
      if (this.isSetSuccess()) {
2730
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2731
        {
3430 rajveer 2732
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 2733
          for (Provider _iter8 : this.success)
674 chandransh 2734
          {
3044 chandransh 2735
            _iter8.write(oprot);
674 chandransh 2736
          }
2737
          oprot.writeListEnd();
2738
        }
2739
        oprot.writeFieldEnd();
2740
      } else if (this.isSetLse()) {
2741
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2742
        this.lse.write(oprot);
2743
        oprot.writeFieldEnd();
2744
      }
2745
      oprot.writeFieldStop();
2746
      oprot.writeStructEnd();
2747
    }
2748
 
2749
    @Override
2750
    public String toString() {
2751
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
2752
      boolean first = true;
2753
 
2754
      sb.append("success:");
2755
      if (this.success == null) {
2756
        sb.append("null");
2757
      } else {
2758
        sb.append(this.success);
2759
      }
2760
      first = false;
2761
      if (!first) sb.append(", ");
2762
      sb.append("lse:");
2763
      if (this.lse == null) {
2764
        sb.append("null");
2765
      } else {
2766
        sb.append(this.lse);
2767
      }
2768
      first = false;
2769
      sb.append(")");
2770
      return sb.toString();
2771
    }
2772
 
3430 rajveer 2773
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2774
      // check for required fields
2775
    }
2776
 
3430 rajveer 2777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2778
      try {
2779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2780
      } catch (org.apache.thrift.TException te) {
2781
        throw new java.io.IOException(te);
2782
      }
2783
    }
2784
 
2785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2786
      try {
2787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2788
      } catch (org.apache.thrift.TException te) {
2789
        throw new java.io.IOException(te);
2790
      }
2791
    }
2792
 
674 chandransh 2793
  }
2794
 
3430 rajveer 2795
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
2796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 2797
 
3430 rajveer 2798
    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);
2799
    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 2800
    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 2801
 
3430 rajveer 2802
    private long itemId; // required
2803
    private String destination_pin; // required
4630 mandeep.dh 2804
    private DeliveryType type; // required
471 rajveer 2805
 
2806
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2807
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2808
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 2809
      DESTINATION_PIN((short)2, "destination_pin"),
2810
      /**
2811
       * 
2812
       * @see DeliveryType
2813
       */
2814
      TYPE((short)3, "type");
471 rajveer 2815
 
2816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2817
 
2818
      static {
2819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2820
          byName.put(field.getFieldName(), field);
2821
        }
2822
      }
2823
 
2824
      /**
2825
       * Find the _Fields constant that matches fieldId, or null if its not found.
2826
       */
2827
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2828
        switch(fieldId) {
2829
          case 1: // ITEM_ID
2830
            return ITEM_ID;
2831
          case 2: // DESTINATION_PIN
2832
            return DESTINATION_PIN;
4630 mandeep.dh 2833
          case 3: // TYPE
2834
            return TYPE;
3430 rajveer 2835
          default:
2836
            return null;
2837
        }
471 rajveer 2838
      }
2839
 
2840
      /**
2841
       * Find the _Fields constant that matches fieldId, throwing an exception
2842
       * if it is not found.
2843
       */
2844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2845
        _Fields fields = findByThriftId(fieldId);
2846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2847
        return fields;
2848
      }
2849
 
2850
      /**
2851
       * Find the _Fields constant that matches name, or null if its not found.
2852
       */
2853
      public static _Fields findByName(String name) {
2854
        return byName.get(name);
2855
      }
2856
 
2857
      private final short _thriftId;
2858
      private final String _fieldName;
2859
 
2860
      _Fields(short thriftId, String fieldName) {
2861
        _thriftId = thriftId;
2862
        _fieldName = fieldName;
2863
      }
2864
 
2865
      public short getThriftFieldId() {
2866
        return _thriftId;
2867
      }
2868
 
2869
      public String getFieldName() {
2870
        return _fieldName;
2871
      }
2872
    }
2873
 
2874
    // isset id assignments
2875
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 2876
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 2877
 
3430 rajveer 2878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 2879
    static {
3430 rajveer 2880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2881
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2883
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 2885
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2886
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 2887
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2888
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 2889
    }
2890
 
2891
    public getLogisticsEstimation_args() {
2892
    }
2893
 
2894
    public getLogisticsEstimation_args(
2895
      long itemId,
4630 mandeep.dh 2896
      String destination_pin,
2897
      DeliveryType type)
471 rajveer 2898
    {
2899
      this();
2900
      this.itemId = itemId;
2901
      setItemIdIsSet(true);
2902
      this.destination_pin = destination_pin;
4630 mandeep.dh 2903
      this.type = type;
471 rajveer 2904
    }
2905
 
2906
    /**
2907
     * Performs a deep copy on <i>other</i>.
2908
     */
2909
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
2910
      __isset_bit_vector.clear();
2911
      __isset_bit_vector.or(other.__isset_bit_vector);
2912
      this.itemId = other.itemId;
2913
      if (other.isSetDestination_pin()) {
2914
        this.destination_pin = other.destination_pin;
2915
      }
4630 mandeep.dh 2916
      if (other.isSetType()) {
2917
        this.type = other.type;
2918
      }
471 rajveer 2919
    }
2920
 
2921
    public getLogisticsEstimation_args deepCopy() {
2922
      return new getLogisticsEstimation_args(this);
2923
    }
2924
 
3430 rajveer 2925
    @Override
2926
    public void clear() {
2927
      setItemIdIsSet(false);
2928
      this.itemId = 0;
2929
      this.destination_pin = null;
4630 mandeep.dh 2930
      this.type = null;
471 rajveer 2931
    }
2932
 
2933
    public long getItemId() {
2934
      return this.itemId;
2935
    }
2936
 
3430 rajveer 2937
    public void setItemId(long itemId) {
471 rajveer 2938
      this.itemId = itemId;
2939
      setItemIdIsSet(true);
2940
    }
2941
 
2942
    public void unsetItemId() {
2943
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2944
    }
2945
 
3430 rajveer 2946
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 2947
    public boolean isSetItemId() {
2948
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2949
    }
2950
 
2951
    public void setItemIdIsSet(boolean value) {
2952
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2953
    }
2954
 
2955
    public String getDestination_pin() {
2956
      return this.destination_pin;
2957
    }
2958
 
3430 rajveer 2959
    public void setDestination_pin(String destination_pin) {
471 rajveer 2960
      this.destination_pin = destination_pin;
2961
    }
2962
 
2963
    public void unsetDestination_pin() {
2964
      this.destination_pin = null;
2965
    }
2966
 
3430 rajveer 2967
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 2968
    public boolean isSetDestination_pin() {
2969
      return this.destination_pin != null;
2970
    }
2971
 
2972
    public void setDestination_pinIsSet(boolean value) {
2973
      if (!value) {
2974
        this.destination_pin = null;
2975
      }
2976
    }
2977
 
4630 mandeep.dh 2978
    /**
2979
     * 
2980
     * @see DeliveryType
2981
     */
2982
    public DeliveryType getType() {
2983
      return this.type;
2984
    }
2985
 
2986
    /**
2987
     * 
2988
     * @see DeliveryType
2989
     */
2990
    public void setType(DeliveryType type) {
2991
      this.type = type;
2992
    }
2993
 
2994
    public void unsetType() {
2995
      this.type = null;
2996
    }
2997
 
2998
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2999
    public boolean isSetType() {
3000
      return this.type != null;
3001
    }
3002
 
3003
    public void setTypeIsSet(boolean value) {
3004
      if (!value) {
3005
        this.type = null;
3006
      }
3007
    }
3008
 
471 rajveer 3009
    public void setFieldValue(_Fields field, Object value) {
3010
      switch (field) {
3011
      case ITEM_ID:
3012
        if (value == null) {
3013
          unsetItemId();
3014
        } else {
3015
          setItemId((Long)value);
3016
        }
3017
        break;
3018
 
3019
      case DESTINATION_PIN:
3020
        if (value == null) {
3021
          unsetDestination_pin();
3022
        } else {
3023
          setDestination_pin((String)value);
3024
        }
3025
        break;
3026
 
4630 mandeep.dh 3027
      case TYPE:
3028
        if (value == null) {
3029
          unsetType();
3030
        } else {
3031
          setType((DeliveryType)value);
3032
        }
3033
        break;
3034
 
471 rajveer 3035
      }
3036
    }
3037
 
3038
    public Object getFieldValue(_Fields field) {
3039
      switch (field) {
3040
      case ITEM_ID:
3430 rajveer 3041
        return Long.valueOf(getItemId());
471 rajveer 3042
 
3043
      case DESTINATION_PIN:
3044
        return getDestination_pin();
3045
 
4630 mandeep.dh 3046
      case TYPE:
3047
        return getType();
3048
 
471 rajveer 3049
      }
3050
      throw new IllegalStateException();
3051
    }
3052
 
3430 rajveer 3053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3054
    public boolean isSet(_Fields field) {
3055
      if (field == null) {
3056
        throw new IllegalArgumentException();
3057
      }
471 rajveer 3058
 
3059
      switch (field) {
3060
      case ITEM_ID:
3061
        return isSetItemId();
3062
      case DESTINATION_PIN:
3063
        return isSetDestination_pin();
4630 mandeep.dh 3064
      case TYPE:
3065
        return isSetType();
471 rajveer 3066
      }
3067
      throw new IllegalStateException();
3068
    }
3069
 
3070
    @Override
3071
    public boolean equals(Object that) {
3072
      if (that == null)
3073
        return false;
3074
      if (that instanceof getLogisticsEstimation_args)
3075
        return this.equals((getLogisticsEstimation_args)that);
3076
      return false;
3077
    }
3078
 
3079
    public boolean equals(getLogisticsEstimation_args that) {
3080
      if (that == null)
3081
        return false;
3082
 
3083
      boolean this_present_itemId = true;
3084
      boolean that_present_itemId = true;
3085
      if (this_present_itemId || that_present_itemId) {
3086
        if (!(this_present_itemId && that_present_itemId))
3087
          return false;
3088
        if (this.itemId != that.itemId)
3089
          return false;
3090
      }
3091
 
3092
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3093
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3094
      if (this_present_destination_pin || that_present_destination_pin) {
3095
        if (!(this_present_destination_pin && that_present_destination_pin))
3096
          return false;
3097
        if (!this.destination_pin.equals(that.destination_pin))
3098
          return false;
3099
      }
3100
 
4630 mandeep.dh 3101
      boolean this_present_type = true && this.isSetType();
3102
      boolean that_present_type = true && that.isSetType();
3103
      if (this_present_type || that_present_type) {
3104
        if (!(this_present_type && that_present_type))
3105
          return false;
3106
        if (!this.type.equals(that.type))
3107
          return false;
3108
      }
3109
 
471 rajveer 3110
      return true;
3111
    }
3112
 
3113
    @Override
3114
    public int hashCode() {
3115
      return 0;
3116
    }
3117
 
3118
    public int compareTo(getLogisticsEstimation_args other) {
3119
      if (!getClass().equals(other.getClass())) {
3120
        return getClass().getName().compareTo(other.getClass().getName());
3121
      }
3122
 
3123
      int lastComparison = 0;
3124
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3125
 
3430 rajveer 3126
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3127
      if (lastComparison != 0) {
3128
        return lastComparison;
3129
      }
3430 rajveer 3130
      if (isSetItemId()) {
3131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3132
        if (lastComparison != 0) {
3133
          return lastComparison;
3134
        }
471 rajveer 3135
      }
3430 rajveer 3136
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3137
      if (lastComparison != 0) {
3138
        return lastComparison;
3139
      }
3430 rajveer 3140
      if (isSetDestination_pin()) {
3141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3142
        if (lastComparison != 0) {
3143
          return lastComparison;
3144
        }
471 rajveer 3145
      }
4630 mandeep.dh 3146
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3147
      if (lastComparison != 0) {
3148
        return lastComparison;
3149
      }
3150
      if (isSetType()) {
3151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3152
        if (lastComparison != 0) {
3153
          return lastComparison;
3154
        }
3155
      }
471 rajveer 3156
      return 0;
3157
    }
3158
 
3430 rajveer 3159
    public _Fields fieldForId(int fieldId) {
3160
      return _Fields.findByThriftId(fieldId);
3161
    }
3162
 
3163
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3164
      org.apache.thrift.protocol.TField field;
471 rajveer 3165
      iprot.readStructBegin();
3166
      while (true)
3167
      {
3168
        field = iprot.readFieldBegin();
3430 rajveer 3169
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3170
          break;
3171
        }
3430 rajveer 3172
        switch (field.id) {
3173
          case 1: // ITEM_ID
3174
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3175
              this.itemId = iprot.readI64();
3176
              setItemIdIsSet(true);
3177
            } else { 
3178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3179
            }
3180
            break;
3181
          case 2: // DESTINATION_PIN
3182
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3183
              this.destination_pin = iprot.readString();
3184
            } else { 
3185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3186
            }
3187
            break;
4630 mandeep.dh 3188
          case 3: // TYPE
3189
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3190
              this.type = DeliveryType.findByValue(iprot.readI32());
3191
            } else { 
3192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3193
            }
3194
            break;
3430 rajveer 3195
          default:
3196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3197
        }
3430 rajveer 3198
        iprot.readFieldEnd();
471 rajveer 3199
      }
3200
      iprot.readStructEnd();
3201
      validate();
3202
    }
3203
 
3430 rajveer 3204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3205
      validate();
3206
 
3207
      oprot.writeStructBegin(STRUCT_DESC);
3208
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3209
      oprot.writeI64(this.itemId);
3210
      oprot.writeFieldEnd();
3211
      if (this.destination_pin != null) {
3212
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3213
        oprot.writeString(this.destination_pin);
3214
        oprot.writeFieldEnd();
3215
      }
4630 mandeep.dh 3216
      if (this.type != null) {
3217
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3218
        oprot.writeI32(this.type.getValue());
3219
        oprot.writeFieldEnd();
3220
      }
471 rajveer 3221
      oprot.writeFieldStop();
3222
      oprot.writeStructEnd();
3223
    }
3224
 
3225
    @Override
3226
    public String toString() {
3227
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3228
      boolean first = true;
3229
 
3230
      sb.append("itemId:");
3231
      sb.append(this.itemId);
3232
      first = false;
3233
      if (!first) sb.append(", ");
3234
      sb.append("destination_pin:");
3235
      if (this.destination_pin == null) {
3236
        sb.append("null");
3237
      } else {
3238
        sb.append(this.destination_pin);
3239
      }
3240
      first = false;
4630 mandeep.dh 3241
      if (!first) sb.append(", ");
3242
      sb.append("type:");
3243
      if (this.type == null) {
3244
        sb.append("null");
3245
      } else {
3246
        sb.append(this.type);
3247
      }
3248
      first = false;
471 rajveer 3249
      sb.append(")");
3250
      return sb.toString();
3251
    }
3252
 
3430 rajveer 3253
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3254
      // check for required fields
3255
    }
3256
 
3430 rajveer 3257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3258
      try {
3259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3260
      } catch (org.apache.thrift.TException te) {
3261
        throw new java.io.IOException(te);
3262
      }
3263
    }
3264
 
3265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3266
      try {
3267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3268
      } catch (org.apache.thrift.TException te) {
3269
        throw new java.io.IOException(te);
3270
      }
3271
    }
3272
 
471 rajveer 3273
  }
3274
 
3430 rajveer 3275
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3277
 
3430 rajveer 3278
    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);
3279
    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 3280
 
3430 rajveer 3281
    private LogisticsInfo success; // required
3282
    private LogisticsServiceException se; // required
471 rajveer 3283
 
3284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3286
      SUCCESS((short)0, "success"),
3287
      SE((short)1, "se");
3288
 
3289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3290
 
3291
      static {
3292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3293
          byName.put(field.getFieldName(), field);
3294
        }
3295
      }
3296
 
3297
      /**
3298
       * Find the _Fields constant that matches fieldId, or null if its not found.
3299
       */
3300
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3301
        switch(fieldId) {
3302
          case 0: // SUCCESS
3303
            return SUCCESS;
3304
          case 1: // SE
3305
            return SE;
3306
          default:
3307
            return null;
3308
        }
471 rajveer 3309
      }
3310
 
3311
      /**
3312
       * Find the _Fields constant that matches fieldId, throwing an exception
3313
       * if it is not found.
3314
       */
3315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3316
        _Fields fields = findByThriftId(fieldId);
3317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3318
        return fields;
3319
      }
3320
 
3321
      /**
3322
       * Find the _Fields constant that matches name, or null if its not found.
3323
       */
3324
      public static _Fields findByName(String name) {
3325
        return byName.get(name);
3326
      }
3327
 
3328
      private final short _thriftId;
3329
      private final String _fieldName;
3330
 
3331
      _Fields(short thriftId, String fieldName) {
3332
        _thriftId = thriftId;
3333
        _fieldName = fieldName;
3334
      }
3335
 
3336
      public short getThriftFieldId() {
3337
        return _thriftId;
3338
      }
3339
 
3340
      public String getFieldName() {
3341
        return _fieldName;
3342
      }
3343
    }
3344
 
3345
    // isset id assignments
3346
 
3430 rajveer 3347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3348
    static {
3430 rajveer 3349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3350
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3351
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3352
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3356
    }
3357
 
3358
    public getLogisticsEstimation_result() {
3359
    }
3360
 
3361
    public getLogisticsEstimation_result(
648 chandransh 3362
      LogisticsInfo success,
471 rajveer 3363
      LogisticsServiceException se)
3364
    {
3365
      this();
3366
      this.success = success;
3367
      this.se = se;
3368
    }
3369
 
3370
    /**
3371
     * Performs a deep copy on <i>other</i>.
3372
     */
3373
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3374
      if (other.isSetSuccess()) {
648 chandransh 3375
        this.success = new LogisticsInfo(other.success);
471 rajveer 3376
      }
3377
      if (other.isSetSe()) {
3378
        this.se = new LogisticsServiceException(other.se);
3379
      }
3380
    }
3381
 
3382
    public getLogisticsEstimation_result deepCopy() {
3383
      return new getLogisticsEstimation_result(this);
3384
    }
3385
 
3430 rajveer 3386
    @Override
3387
    public void clear() {
3388
      this.success = null;
3389
      this.se = null;
471 rajveer 3390
    }
3391
 
648 chandransh 3392
    public LogisticsInfo getSuccess() {
471 rajveer 3393
      return this.success;
3394
    }
3395
 
3430 rajveer 3396
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3397
      this.success = success;
3398
    }
3399
 
3400
    public void unsetSuccess() {
3401
      this.success = null;
3402
    }
3403
 
3430 rajveer 3404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3405
    public boolean isSetSuccess() {
3406
      return this.success != null;
3407
    }
3408
 
3409
    public void setSuccessIsSet(boolean value) {
3410
      if (!value) {
3411
        this.success = null;
3412
      }
3413
    }
3414
 
3415
    public LogisticsServiceException getSe() {
3416
      return this.se;
3417
    }
3418
 
3430 rajveer 3419
    public void setSe(LogisticsServiceException se) {
471 rajveer 3420
      this.se = se;
3421
    }
3422
 
3423
    public void unsetSe() {
3424
      this.se = null;
3425
    }
3426
 
3430 rajveer 3427
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3428
    public boolean isSetSe() {
3429
      return this.se != null;
3430
    }
3431
 
3432
    public void setSeIsSet(boolean value) {
3433
      if (!value) {
3434
        this.se = null;
3435
      }
3436
    }
3437
 
3438
    public void setFieldValue(_Fields field, Object value) {
3439
      switch (field) {
3440
      case SUCCESS:
3441
        if (value == null) {
3442
          unsetSuccess();
3443
        } else {
648 chandransh 3444
          setSuccess((LogisticsInfo)value);
471 rajveer 3445
        }
3446
        break;
3447
 
3448
      case SE:
3449
        if (value == null) {
3450
          unsetSe();
3451
        } else {
3452
          setSe((LogisticsServiceException)value);
3453
        }
3454
        break;
3455
 
3456
      }
3457
    }
3458
 
3459
    public Object getFieldValue(_Fields field) {
3460
      switch (field) {
3461
      case SUCCESS:
3462
        return getSuccess();
3463
 
3464
      case SE:
3465
        return getSe();
3466
 
3467
      }
3468
      throw new IllegalStateException();
3469
    }
3470
 
3430 rajveer 3471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3472
    public boolean isSet(_Fields field) {
3473
      if (field == null) {
3474
        throw new IllegalArgumentException();
3475
      }
471 rajveer 3476
 
3477
      switch (field) {
3478
      case SUCCESS:
3479
        return isSetSuccess();
3480
      case SE:
3481
        return isSetSe();
3482
      }
3483
      throw new IllegalStateException();
3484
    }
3485
 
3486
    @Override
3487
    public boolean equals(Object that) {
3488
      if (that == null)
3489
        return false;
3490
      if (that instanceof getLogisticsEstimation_result)
3491
        return this.equals((getLogisticsEstimation_result)that);
3492
      return false;
3493
    }
3494
 
3495
    public boolean equals(getLogisticsEstimation_result that) {
3496
      if (that == null)
3497
        return false;
3498
 
3499
      boolean this_present_success = true && this.isSetSuccess();
3500
      boolean that_present_success = true && that.isSetSuccess();
3501
      if (this_present_success || that_present_success) {
3502
        if (!(this_present_success && that_present_success))
3503
          return false;
3504
        if (!this.success.equals(that.success))
3505
          return false;
3506
      }
3507
 
3508
      boolean this_present_se = true && this.isSetSe();
3509
      boolean that_present_se = true && that.isSetSe();
3510
      if (this_present_se || that_present_se) {
3511
        if (!(this_present_se && that_present_se))
3512
          return false;
3513
        if (!this.se.equals(that.se))
3514
          return false;
3515
      }
3516
 
3517
      return true;
3518
    }
3519
 
3520
    @Override
3521
    public int hashCode() {
3522
      return 0;
3523
    }
3524
 
3525
    public int compareTo(getLogisticsEstimation_result other) {
3526
      if (!getClass().equals(other.getClass())) {
3527
        return getClass().getName().compareTo(other.getClass().getName());
3528
      }
3529
 
3530
      int lastComparison = 0;
3531
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3532
 
3430 rajveer 3533
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3534
      if (lastComparison != 0) {
3535
        return lastComparison;
3536
      }
3430 rajveer 3537
      if (isSetSuccess()) {
3538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3539
        if (lastComparison != 0) {
3540
          return lastComparison;
3541
        }
471 rajveer 3542
      }
3430 rajveer 3543
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3544
      if (lastComparison != 0) {
3545
        return lastComparison;
3546
      }
3430 rajveer 3547
      if (isSetSe()) {
3548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3549
        if (lastComparison != 0) {
3550
          return lastComparison;
3551
        }
471 rajveer 3552
      }
3553
      return 0;
3554
    }
3555
 
3430 rajveer 3556
    public _Fields fieldForId(int fieldId) {
3557
      return _Fields.findByThriftId(fieldId);
3558
    }
3559
 
3560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3561
      org.apache.thrift.protocol.TField field;
471 rajveer 3562
      iprot.readStructBegin();
3563
      while (true)
3564
      {
3565
        field = iprot.readFieldBegin();
3430 rajveer 3566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3567
          break;
3568
        }
3430 rajveer 3569
        switch (field.id) {
3570
          case 0: // SUCCESS
3571
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3572
              this.success = new LogisticsInfo();
3573
              this.success.read(iprot);
3574
            } else { 
3575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3576
            }
3577
            break;
3578
          case 1: // SE
3579
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3580
              this.se = new LogisticsServiceException();
3581
              this.se.read(iprot);
3582
            } else { 
3583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3584
            }
3585
            break;
3586
          default:
3587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3588
        }
3430 rajveer 3589
        iprot.readFieldEnd();
471 rajveer 3590
      }
3591
      iprot.readStructEnd();
3592
      validate();
3593
    }
3594
 
3430 rajveer 3595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3596
      oprot.writeStructBegin(STRUCT_DESC);
3597
 
3598
      if (this.isSetSuccess()) {
3599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3600
        this.success.write(oprot);
3601
        oprot.writeFieldEnd();
3602
      } else if (this.isSetSe()) {
3603
        oprot.writeFieldBegin(SE_FIELD_DESC);
3604
        this.se.write(oprot);
3605
        oprot.writeFieldEnd();
3606
      }
3607
      oprot.writeFieldStop();
3608
      oprot.writeStructEnd();
3609
    }
3610
 
3611
    @Override
3612
    public String toString() {
3613
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3614
      boolean first = true;
3615
 
3616
      sb.append("success:");
3617
      if (this.success == null) {
3618
        sb.append("null");
3619
      } else {
3620
        sb.append(this.success);
3621
      }
3622
      first = false;
3623
      if (!first) sb.append(", ");
3624
      sb.append("se:");
3625
      if (this.se == null) {
3626
        sb.append("null");
3627
      } else {
3628
        sb.append(this.se);
3629
      }
3630
      first = false;
3631
      sb.append(")");
3632
      return sb.toString();
3633
    }
3634
 
3430 rajveer 3635
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3636
      // check for required fields
3637
    }
3638
 
3430 rajveer 3639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3640
      try {
3641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3642
      } catch (org.apache.thrift.TException te) {
3643
        throw new java.io.IOException(te);
3644
      }
3645
    }
3646
 
3647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3648
      try {
3649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3650
      } catch (org.apache.thrift.TException te) {
3651
        throw new java.io.IOException(te);
3652
      }
3653
    }
3654
 
471 rajveer 3655
  }
3656
 
3430 rajveer 3657
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
3658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 3659
 
3430 rajveer 3660
    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);
3661
    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);
3662
    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 3663
    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 3664
 
3430 rajveer 3665
    private String destination_pincode; // required
3666
    private long item_id; // required
3667
    private DeliveryType type; // required
5766 rajveer 3668
    private PickUpType pickUp; // required
471 rajveer 3669
 
3670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3672
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 3673
      ITEM_ID((short)2, "item_id"),
3674
      /**
3675
       * 
3676
       * @see DeliveryType
3677
       */
5766 rajveer 3678
      TYPE((short)3, "type"),
3679
      /**
3680
       * 
3681
       * @see PickUpType
3682
       */
3683
      PICK_UP((short)4, "pickUp");
471 rajveer 3684
 
3685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3686
 
3687
      static {
3688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3689
          byName.put(field.getFieldName(), field);
3690
        }
3691
      }
3692
 
3693
      /**
3694
       * Find the _Fields constant that matches fieldId, or null if its not found.
3695
       */
3696
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3697
        switch(fieldId) {
3698
          case 1: // DESTINATION_PINCODE
3699
            return DESTINATION_PINCODE;
3700
          case 2: // ITEM_ID
3701
            return ITEM_ID;
3702
          case 3: // TYPE
3703
            return TYPE;
5766 rajveer 3704
          case 4: // PICK_UP
3705
            return PICK_UP;
3430 rajveer 3706
          default:
3707
            return null;
3708
        }
471 rajveer 3709
      }
3710
 
3711
      /**
3712
       * Find the _Fields constant that matches fieldId, throwing an exception
3713
       * if it is not found.
3714
       */
3715
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3716
        _Fields fields = findByThriftId(fieldId);
3717
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3718
        return fields;
3719
      }
3720
 
3721
      /**
3722
       * Find the _Fields constant that matches name, or null if its not found.
3723
       */
3724
      public static _Fields findByName(String name) {
3725
        return byName.get(name);
3726
      }
3727
 
3728
      private final short _thriftId;
3729
      private final String _fieldName;
3730
 
3731
      _Fields(short thriftId, String fieldName) {
3732
        _thriftId = thriftId;
3733
        _fieldName = fieldName;
3734
      }
3735
 
3736
      public short getThriftFieldId() {
3737
        return _thriftId;
3738
      }
3739
 
3740
      public String getFieldName() {
3741
        return _fieldName;
3742
      }
3743
    }
3744
 
3745
    // isset id assignments
715 rajveer 3746
    private static final int __ITEM_ID_ISSET_ID = 0;
3747
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3748
 
3430 rajveer 3749
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 3750
    static {
3430 rajveer 3751
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3752
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3753
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3754
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3755
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3756
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3757
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 3758
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3759
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 3760
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3761
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 3762
    }
3763
 
648 chandransh 3764
    public getLogisticsInfo_args() {
477 rajveer 3765
    }
3766
 
648 chandransh 3767
    public getLogisticsInfo_args(
3768
      String destination_pincode,
3044 chandransh 3769
      long item_id,
5766 rajveer 3770
      DeliveryType type,
3771
      PickUpType pickUp)
477 rajveer 3772
    {
3773
      this();
648 chandransh 3774
      this.destination_pincode = destination_pincode;
3775
      this.item_id = item_id;
715 rajveer 3776
      setItem_idIsSet(true);
3044 chandransh 3777
      this.type = type;
5766 rajveer 3778
      this.pickUp = pickUp;
477 rajveer 3779
    }
3780
 
3781
    /**
3782
     * Performs a deep copy on <i>other</i>.
3783
     */
648 chandransh 3784
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 3785
      __isset_bit_vector.clear();
3786
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 3787
      if (other.isSetDestination_pincode()) {
3788
        this.destination_pincode = other.destination_pincode;
477 rajveer 3789
      }
715 rajveer 3790
      this.item_id = other.item_id;
3044 chandransh 3791
      if (other.isSetType()) {
3792
        this.type = other.type;
3793
      }
5766 rajveer 3794
      if (other.isSetPickUp()) {
3795
        this.pickUp = other.pickUp;
3796
      }
477 rajveer 3797
    }
3798
 
648 chandransh 3799
    public getLogisticsInfo_args deepCopy() {
3800
      return new getLogisticsInfo_args(this);
477 rajveer 3801
    }
3802
 
3430 rajveer 3803
    @Override
3804
    public void clear() {
3805
      this.destination_pincode = null;
3806
      setItem_idIsSet(false);
3807
      this.item_id = 0;
3808
      this.type = null;
5766 rajveer 3809
      this.pickUp = null;
477 rajveer 3810
    }
3811
 
648 chandransh 3812
    public String getDestination_pincode() {
3813
      return this.destination_pincode;
477 rajveer 3814
    }
3815
 
3430 rajveer 3816
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 3817
      this.destination_pincode = destination_pincode;
477 rajveer 3818
    }
3819
 
648 chandransh 3820
    public void unsetDestination_pincode() {
3821
      this.destination_pincode = null;
477 rajveer 3822
    }
3823
 
3430 rajveer 3824
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 3825
    public boolean isSetDestination_pincode() {
3826
      return this.destination_pincode != null;
477 rajveer 3827
    }
3828
 
648 chandransh 3829
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 3830
      if (!value) {
648 chandransh 3831
        this.destination_pincode = null;
477 rajveer 3832
      }
3833
    }
3834
 
715 rajveer 3835
    public long getItem_id() {
648 chandransh 3836
      return this.item_id;
477 rajveer 3837
    }
3838
 
3430 rajveer 3839
    public void setItem_id(long item_id) {
648 chandransh 3840
      this.item_id = item_id;
715 rajveer 3841
      setItem_idIsSet(true);
477 rajveer 3842
    }
3843
 
648 chandransh 3844
    public void unsetItem_id() {
715 rajveer 3845
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 3846
    }
3847
 
3430 rajveer 3848
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 3849
    public boolean isSetItem_id() {
715 rajveer 3850
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 3851
    }
3852
 
648 chandransh 3853
    public void setItem_idIsSet(boolean value) {
715 rajveer 3854
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 3855
    }
3856
 
3044 chandransh 3857
    /**
3858
     * 
3859
     * @see DeliveryType
3860
     */
3861
    public DeliveryType getType() {
3862
      return this.type;
3863
    }
3864
 
3865
    /**
3866
     * 
3867
     * @see DeliveryType
3868
     */
3430 rajveer 3869
    public void setType(DeliveryType type) {
3044 chandransh 3870
      this.type = type;
3871
    }
3872
 
3873
    public void unsetType() {
3874
      this.type = null;
3875
    }
3876
 
3430 rajveer 3877
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 3878
    public boolean isSetType() {
3879
      return this.type != null;
3880
    }
3881
 
3882
    public void setTypeIsSet(boolean value) {
3883
      if (!value) {
3884
        this.type = null;
3885
      }
3886
    }
3887
 
5766 rajveer 3888
    /**
3889
     * 
3890
     * @see PickUpType
3891
     */
3892
    public PickUpType getPickUp() {
3893
      return this.pickUp;
3894
    }
3895
 
3896
    /**
3897
     * 
3898
     * @see PickUpType
3899
     */
3900
    public void setPickUp(PickUpType pickUp) {
3901
      this.pickUp = pickUp;
3902
    }
3903
 
3904
    public void unsetPickUp() {
3905
      this.pickUp = null;
3906
    }
3907
 
3908
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
3909
    public boolean isSetPickUp() {
3910
      return this.pickUp != null;
3911
    }
3912
 
3913
    public void setPickUpIsSet(boolean value) {
3914
      if (!value) {
3915
        this.pickUp = null;
3916
      }
3917
    }
3918
 
477 rajveer 3919
    public void setFieldValue(_Fields field, Object value) {
3920
      switch (field) {
648 chandransh 3921
      case DESTINATION_PINCODE:
477 rajveer 3922
        if (value == null) {
648 chandransh 3923
          unsetDestination_pincode();
477 rajveer 3924
        } else {
648 chandransh 3925
          setDestination_pincode((String)value);
477 rajveer 3926
        }
3927
        break;
3928
 
648 chandransh 3929
      case ITEM_ID:
477 rajveer 3930
        if (value == null) {
648 chandransh 3931
          unsetItem_id();
477 rajveer 3932
        } else {
715 rajveer 3933
          setItem_id((Long)value);
477 rajveer 3934
        }
3935
        break;
3936
 
3044 chandransh 3937
      case TYPE:
3938
        if (value == null) {
3939
          unsetType();
3940
        } else {
3941
          setType((DeliveryType)value);
3942
        }
3943
        break;
3944
 
5766 rajveer 3945
      case PICK_UP:
3946
        if (value == null) {
3947
          unsetPickUp();
3948
        } else {
3949
          setPickUp((PickUpType)value);
3950
        }
3951
        break;
3952
 
477 rajveer 3953
      }
3954
    }
3955
 
3956
    public Object getFieldValue(_Fields field) {
3957
      switch (field) {
648 chandransh 3958
      case DESTINATION_PINCODE:
3959
        return getDestination_pincode();
477 rajveer 3960
 
648 chandransh 3961
      case ITEM_ID:
3430 rajveer 3962
        return Long.valueOf(getItem_id());
477 rajveer 3963
 
3044 chandransh 3964
      case TYPE:
3965
        return getType();
3966
 
5766 rajveer 3967
      case PICK_UP:
3968
        return getPickUp();
3969
 
477 rajveer 3970
      }
3971
      throw new IllegalStateException();
3972
    }
3973
 
3430 rajveer 3974
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3975
    public boolean isSet(_Fields field) {
3976
      if (field == null) {
3977
        throw new IllegalArgumentException();
3978
      }
477 rajveer 3979
 
3980
      switch (field) {
648 chandransh 3981
      case DESTINATION_PINCODE:
3982
        return isSetDestination_pincode();
3983
      case ITEM_ID:
3984
        return isSetItem_id();
3044 chandransh 3985
      case TYPE:
3986
        return isSetType();
5766 rajveer 3987
      case PICK_UP:
3988
        return isSetPickUp();
477 rajveer 3989
      }
3990
      throw new IllegalStateException();
3991
    }
3992
 
3993
    @Override
3994
    public boolean equals(Object that) {
3995
      if (that == null)
3996
        return false;
648 chandransh 3997
      if (that instanceof getLogisticsInfo_args)
3998
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 3999
      return false;
4000
    }
4001
 
648 chandransh 4002
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 4003
      if (that == null)
4004
        return false;
4005
 
648 chandransh 4006
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
4007
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
4008
      if (this_present_destination_pincode || that_present_destination_pincode) {
4009
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 4010
          return false;
648 chandransh 4011
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 4012
          return false;
4013
      }
4014
 
715 rajveer 4015
      boolean this_present_item_id = true;
4016
      boolean that_present_item_id = true;
648 chandransh 4017
      if (this_present_item_id || that_present_item_id) {
4018
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 4019
          return false;
715 rajveer 4020
        if (this.item_id != that.item_id)
477 rajveer 4021
          return false;
4022
      }
4023
 
3044 chandransh 4024
      boolean this_present_type = true && this.isSetType();
4025
      boolean that_present_type = true && that.isSetType();
4026
      if (this_present_type || that_present_type) {
4027
        if (!(this_present_type && that_present_type))
4028
          return false;
4029
        if (!this.type.equals(that.type))
4030
          return false;
4031
      }
4032
 
5766 rajveer 4033
      boolean this_present_pickUp = true && this.isSetPickUp();
4034
      boolean that_present_pickUp = true && that.isSetPickUp();
4035
      if (this_present_pickUp || that_present_pickUp) {
4036
        if (!(this_present_pickUp && that_present_pickUp))
4037
          return false;
4038
        if (!this.pickUp.equals(that.pickUp))
4039
          return false;
4040
      }
4041
 
477 rajveer 4042
      return true;
4043
    }
4044
 
4045
    @Override
4046
    public int hashCode() {
4047
      return 0;
4048
    }
4049
 
648 chandransh 4050
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 4051
      if (!getClass().equals(other.getClass())) {
4052
        return getClass().getName().compareTo(other.getClass().getName());
4053
      }
4054
 
4055
      int lastComparison = 0;
648 chandransh 4056
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 4057
 
3430 rajveer 4058
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 4059
      if (lastComparison != 0) {
4060
        return lastComparison;
4061
      }
3430 rajveer 4062
      if (isSetDestination_pincode()) {
4063
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
4064
        if (lastComparison != 0) {
4065
          return lastComparison;
4066
        }
477 rajveer 4067
      }
3430 rajveer 4068
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 4069
      if (lastComparison != 0) {
4070
        return lastComparison;
4071
      }
3430 rajveer 4072
      if (isSetItem_id()) {
4073
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
4074
        if (lastComparison != 0) {
4075
          return lastComparison;
4076
        }
477 rajveer 4077
      }
3430 rajveer 4078
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 4079
      if (lastComparison != 0) {
4080
        return lastComparison;
4081
      }
3430 rajveer 4082
      if (isSetType()) {
4083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4084
        if (lastComparison != 0) {
4085
          return lastComparison;
4086
        }
3044 chandransh 4087
      }
5766 rajveer 4088
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
4089
      if (lastComparison != 0) {
4090
        return lastComparison;
4091
      }
4092
      if (isSetPickUp()) {
4093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
4094
        if (lastComparison != 0) {
4095
          return lastComparison;
4096
        }
4097
      }
477 rajveer 4098
      return 0;
4099
    }
4100
 
3430 rajveer 4101
    public _Fields fieldForId(int fieldId) {
4102
      return _Fields.findByThriftId(fieldId);
4103
    }
4104
 
4105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4106
      org.apache.thrift.protocol.TField field;
477 rajveer 4107
      iprot.readStructBegin();
4108
      while (true)
4109
      {
4110
        field = iprot.readFieldBegin();
3430 rajveer 4111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 4112
          break;
4113
        }
3430 rajveer 4114
        switch (field.id) {
4115
          case 1: // DESTINATION_PINCODE
4116
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4117
              this.destination_pincode = iprot.readString();
4118
            } else { 
4119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4120
            }
4121
            break;
4122
          case 2: // ITEM_ID
4123
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4124
              this.item_id = iprot.readI64();
4125
              setItem_idIsSet(true);
4126
            } else { 
4127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4128
            }
4129
            break;
4130
          case 3: // TYPE
4131
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4132
              this.type = DeliveryType.findByValue(iprot.readI32());
4133
            } else { 
4134
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4135
            }
4136
            break;
5766 rajveer 4137
          case 4: // PICK_UP
4138
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4139
              this.pickUp = PickUpType.findByValue(iprot.readI32());
4140
            } else { 
4141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4142
            }
4143
            break;
3430 rajveer 4144
          default:
4145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 4146
        }
3430 rajveer 4147
        iprot.readFieldEnd();
477 rajveer 4148
      }
4149
      iprot.readStructEnd();
4150
      validate();
4151
    }
4152
 
3430 rajveer 4153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 4154
      validate();
4155
 
4156
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 4157
      if (this.destination_pincode != null) {
4158
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
4159
        oprot.writeString(this.destination_pincode);
477 rajveer 4160
        oprot.writeFieldEnd();
4161
      }
715 rajveer 4162
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4163
      oprot.writeI64(this.item_id);
4164
      oprot.writeFieldEnd();
3044 chandransh 4165
      if (this.type != null) {
4166
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4167
        oprot.writeI32(this.type.getValue());
4168
        oprot.writeFieldEnd();
4169
      }
5766 rajveer 4170
      if (this.pickUp != null) {
4171
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
4172
        oprot.writeI32(this.pickUp.getValue());
4173
        oprot.writeFieldEnd();
4174
      }
477 rajveer 4175
      oprot.writeFieldStop();
4176
      oprot.writeStructEnd();
4177
    }
4178
 
4179
    @Override
4180
    public String toString() {
648 chandransh 4181
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 4182
      boolean first = true;
4183
 
648 chandransh 4184
      sb.append("destination_pincode:");
4185
      if (this.destination_pincode == null) {
477 rajveer 4186
        sb.append("null");
4187
      } else {
648 chandransh 4188
        sb.append(this.destination_pincode);
477 rajveer 4189
      }
4190
      first = false;
4191
      if (!first) sb.append(", ");
648 chandransh 4192
      sb.append("item_id:");
715 rajveer 4193
      sb.append(this.item_id);
477 rajveer 4194
      first = false;
3044 chandransh 4195
      if (!first) sb.append(", ");
4196
      sb.append("type:");
4197
      if (this.type == null) {
4198
        sb.append("null");
4199
      } else {
4200
        sb.append(this.type);
4201
      }
4202
      first = false;
5766 rajveer 4203
      if (!first) sb.append(", ");
4204
      sb.append("pickUp:");
4205
      if (this.pickUp == null) {
4206
        sb.append("null");
4207
      } else {
4208
        sb.append(this.pickUp);
4209
      }
4210
      first = false;
477 rajveer 4211
      sb.append(")");
4212
      return sb.toString();
4213
    }
4214
 
3430 rajveer 4215
    public void validate() throws org.apache.thrift.TException {
477 rajveer 4216
      // check for required fields
4217
    }
4218
 
3430 rajveer 4219
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4220
      try {
4221
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4222
      } catch (org.apache.thrift.TException te) {
4223
        throw new java.io.IOException(te);
4224
      }
4225
    }
4226
 
4227
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4228
      try {
4229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4230
      } catch (org.apache.thrift.TException te) {
4231
        throw new java.io.IOException(te);
4232
      }
4233
    }
4234
 
477 rajveer 4235
  }
4236
 
3430 rajveer 4237
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
4238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 4239
 
3430 rajveer 4240
    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);
4241
    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 4242
 
3430 rajveer 4243
    private LogisticsInfo success; // required
4244
    private LogisticsServiceException se; // required
477 rajveer 4245
 
4246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4248
      SUCCESS((short)0, "success"),
4249
      SE((short)1, "se");
477 rajveer 4250
 
4251
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4252
 
4253
      static {
4254
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4255
          byName.put(field.getFieldName(), field);
4256
        }
4257
      }
4258
 
4259
      /**
4260
       * Find the _Fields constant that matches fieldId, or null if its not found.
4261
       */
4262
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4263
        switch(fieldId) {
4264
          case 0: // SUCCESS
4265
            return SUCCESS;
4266
          case 1: // SE
4267
            return SE;
4268
          default:
4269
            return null;
4270
        }
477 rajveer 4271
      }
4272
 
4273
      /**
4274
       * Find the _Fields constant that matches fieldId, throwing an exception
4275
       * if it is not found.
4276
       */
4277
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4278
        _Fields fields = findByThriftId(fieldId);
4279
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4280
        return fields;
4281
      }
4282
 
4283
      /**
4284
       * Find the _Fields constant that matches name, or null if its not found.
4285
       */
4286
      public static _Fields findByName(String name) {
4287
        return byName.get(name);
4288
      }
4289
 
4290
      private final short _thriftId;
4291
      private final String _fieldName;
4292
 
4293
      _Fields(short thriftId, String fieldName) {
4294
        _thriftId = thriftId;
4295
        _fieldName = fieldName;
4296
      }
4297
 
4298
      public short getThriftFieldId() {
4299
        return _thriftId;
4300
      }
4301
 
4302
      public String getFieldName() {
4303
        return _fieldName;
4304
      }
4305
    }
4306
 
412 ashish 4307
    // isset id assignments
4308
 
3430 rajveer 4309
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4310
    static {
3430 rajveer 4311
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4312
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4313
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4314
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4315
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4316
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4317
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 4318
    }
4319
 
648 chandransh 4320
    public getLogisticsInfo_result() {
412 ashish 4321
    }
4322
 
648 chandransh 4323
    public getLogisticsInfo_result(
4324
      LogisticsInfo success,
4325
      LogisticsServiceException se)
412 ashish 4326
    {
4327
      this();
648 chandransh 4328
      this.success = success;
4329
      this.se = se;
412 ashish 4330
    }
4331
 
4332
    /**
4333
     * Performs a deep copy on <i>other</i>.
4334
     */
648 chandransh 4335
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
4336
      if (other.isSetSuccess()) {
4337
        this.success = new LogisticsInfo(other.success);
412 ashish 4338
      }
648 chandransh 4339
      if (other.isSetSe()) {
4340
        this.se = new LogisticsServiceException(other.se);
4341
      }
412 ashish 4342
    }
4343
 
648 chandransh 4344
    public getLogisticsInfo_result deepCopy() {
4345
      return new getLogisticsInfo_result(this);
412 ashish 4346
    }
4347
 
3430 rajveer 4348
    @Override
4349
    public void clear() {
4350
      this.success = null;
4351
      this.se = null;
412 ashish 4352
    }
4353
 
648 chandransh 4354
    public LogisticsInfo getSuccess() {
4355
      return this.success;
412 ashish 4356
    }
4357
 
3430 rajveer 4358
    public void setSuccess(LogisticsInfo success) {
648 chandransh 4359
      this.success = success;
412 ashish 4360
    }
4361
 
648 chandransh 4362
    public void unsetSuccess() {
4363
      this.success = null;
412 ashish 4364
    }
4365
 
3430 rajveer 4366
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 4367
    public boolean isSetSuccess() {
4368
      return this.success != null;
412 ashish 4369
    }
4370
 
648 chandransh 4371
    public void setSuccessIsSet(boolean value) {
412 ashish 4372
      if (!value) {
648 chandransh 4373
        this.success = null;
412 ashish 4374
      }
4375
    }
4376
 
648 chandransh 4377
    public LogisticsServiceException getSe() {
4378
      return this.se;
412 ashish 4379
    }
4380
 
3430 rajveer 4381
    public void setSe(LogisticsServiceException se) {
648 chandransh 4382
      this.se = se;
412 ashish 4383
    }
4384
 
648 chandransh 4385
    public void unsetSe() {
4386
      this.se = null;
412 ashish 4387
    }
4388
 
3430 rajveer 4389
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 4390
    public boolean isSetSe() {
4391
      return this.se != null;
412 ashish 4392
    }
4393
 
648 chandransh 4394
    public void setSeIsSet(boolean value) {
4395
      if (!value) {
4396
        this.se = null;
4397
      }
412 ashish 4398
    }
4399
 
4400
    public void setFieldValue(_Fields field, Object value) {
4401
      switch (field) {
648 chandransh 4402
      case SUCCESS:
412 ashish 4403
        if (value == null) {
648 chandransh 4404
          unsetSuccess();
412 ashish 4405
        } else {
648 chandransh 4406
          setSuccess((LogisticsInfo)value);
412 ashish 4407
        }
4408
        break;
4409
 
648 chandransh 4410
      case SE:
412 ashish 4411
        if (value == null) {
648 chandransh 4412
          unsetSe();
412 ashish 4413
        } else {
648 chandransh 4414
          setSe((LogisticsServiceException)value);
412 ashish 4415
        }
4416
        break;
4417
 
4418
      }
4419
    }
4420
 
4421
    public Object getFieldValue(_Fields field) {
4422
      switch (field) {
648 chandransh 4423
      case SUCCESS:
4424
        return getSuccess();
412 ashish 4425
 
648 chandransh 4426
      case SE:
4427
        return getSe();
412 ashish 4428
 
4429
      }
4430
      throw new IllegalStateException();
4431
    }
4432
 
3430 rajveer 4433
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4434
    public boolean isSet(_Fields field) {
4435
      if (field == null) {
4436
        throw new IllegalArgumentException();
4437
      }
412 ashish 4438
 
4439
      switch (field) {
648 chandransh 4440
      case SUCCESS:
4441
        return isSetSuccess();
4442
      case SE:
4443
        return isSetSe();
412 ashish 4444
      }
4445
      throw new IllegalStateException();
4446
    }
4447
 
4448
    @Override
4449
    public boolean equals(Object that) {
4450
      if (that == null)
4451
        return false;
648 chandransh 4452
      if (that instanceof getLogisticsInfo_result)
4453
        return this.equals((getLogisticsInfo_result)that);
412 ashish 4454
      return false;
4455
    }
4456
 
648 chandransh 4457
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 4458
      if (that == null)
4459
        return false;
4460
 
648 chandransh 4461
      boolean this_present_success = true && this.isSetSuccess();
4462
      boolean that_present_success = true && that.isSetSuccess();
4463
      if (this_present_success || that_present_success) {
4464
        if (!(this_present_success && that_present_success))
412 ashish 4465
          return false;
648 chandransh 4466
        if (!this.success.equals(that.success))
412 ashish 4467
          return false;
4468
      }
4469
 
648 chandransh 4470
      boolean this_present_se = true && this.isSetSe();
4471
      boolean that_present_se = true && that.isSetSe();
4472
      if (this_present_se || that_present_se) {
4473
        if (!(this_present_se && that_present_se))
412 ashish 4474
          return false;
648 chandransh 4475
        if (!this.se.equals(that.se))
412 ashish 4476
          return false;
4477
      }
4478
 
4479
      return true;
4480
    }
4481
 
4482
    @Override
4483
    public int hashCode() {
4484
      return 0;
4485
    }
4486
 
648 chandransh 4487
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 4488
      if (!getClass().equals(other.getClass())) {
4489
        return getClass().getName().compareTo(other.getClass().getName());
4490
      }
4491
 
4492
      int lastComparison = 0;
648 chandransh 4493
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 4494
 
3430 rajveer 4495
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 4496
      if (lastComparison != 0) {
4497
        return lastComparison;
4498
      }
3430 rajveer 4499
      if (isSetSuccess()) {
4500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4501
        if (lastComparison != 0) {
4502
          return lastComparison;
4503
        }
412 ashish 4504
      }
3430 rajveer 4505
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 4506
      if (lastComparison != 0) {
4507
        return lastComparison;
4508
      }
3430 rajveer 4509
      if (isSetSe()) {
4510
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4511
        if (lastComparison != 0) {
4512
          return lastComparison;
4513
        }
412 ashish 4514
      }
4515
      return 0;
4516
    }
4517
 
3430 rajveer 4518
    public _Fields fieldForId(int fieldId) {
4519
      return _Fields.findByThriftId(fieldId);
4520
    }
4521
 
4522
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4523
      org.apache.thrift.protocol.TField field;
412 ashish 4524
      iprot.readStructBegin();
4525
      while (true)
4526
      {
4527
        field = iprot.readFieldBegin();
3430 rajveer 4528
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4529
          break;
4530
        }
3430 rajveer 4531
        switch (field.id) {
4532
          case 0: // SUCCESS
4533
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4534
              this.success = new LogisticsInfo();
4535
              this.success.read(iprot);
4536
            } else { 
4537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4538
            }
4539
            break;
4540
          case 1: // SE
4541
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4542
              this.se = new LogisticsServiceException();
4543
              this.se.read(iprot);
4544
            } else { 
4545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4546
            }
4547
            break;
4548
          default:
4549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4550
        }
3430 rajveer 4551
        iprot.readFieldEnd();
412 ashish 4552
      }
4553
      iprot.readStructEnd();
4554
      validate();
4555
    }
4556
 
3430 rajveer 4557
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 4558
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 4559
 
648 chandransh 4560
      if (this.isSetSuccess()) {
4561
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4562
        this.success.write(oprot);
412 ashish 4563
        oprot.writeFieldEnd();
648 chandransh 4564
      } else if (this.isSetSe()) {
4565
        oprot.writeFieldBegin(SE_FIELD_DESC);
4566
        this.se.write(oprot);
4567
        oprot.writeFieldEnd();
412 ashish 4568
      }
4569
      oprot.writeFieldStop();
4570
      oprot.writeStructEnd();
4571
    }
4572
 
4573
    @Override
4574
    public String toString() {
648 chandransh 4575
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 4576
      boolean first = true;
4577
 
648 chandransh 4578
      sb.append("success:");
4579
      if (this.success == null) {
412 ashish 4580
        sb.append("null");
4581
      } else {
648 chandransh 4582
        sb.append(this.success);
412 ashish 4583
      }
4584
      first = false;
4585
      if (!first) sb.append(", ");
648 chandransh 4586
      sb.append("se:");
4587
      if (this.se == null) {
4588
        sb.append("null");
4589
      } else {
4590
        sb.append(this.se);
4591
      }
412 ashish 4592
      first = false;
4593
      sb.append(")");
4594
      return sb.toString();
4595
    }
4596
 
3430 rajveer 4597
    public void validate() throws org.apache.thrift.TException {
412 ashish 4598
      // check for required fields
4599
    }
4600
 
3430 rajveer 4601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4602
      try {
4603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4604
      } catch (org.apache.thrift.TException te) {
4605
        throw new java.io.IOException(te);
4606
      }
4607
    }
4608
 
4609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4610
      try {
4611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4612
      } catch (org.apache.thrift.TException te) {
4613
        throw new java.io.IOException(te);
4614
      }
4615
    }
4616
 
412 ashish 4617
  }
4618
 
3430 rajveer 4619
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
4620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 4621
 
3430 rajveer 4622
    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 4623
    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 4624
 
3430 rajveer 4625
    private long providerId; // required
5247 rajveer 4626
    private DeliveryType type; // required
412 ashish 4627
 
4628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4629
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 4630
      PROVIDER_ID((short)1, "providerId"),
4631
      /**
4632
       * 
4633
       * @see DeliveryType
4634
       */
4635
      TYPE((short)-1, "type");
412 ashish 4636
 
4637
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4638
 
4639
      static {
4640
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4641
          byName.put(field.getFieldName(), field);
4642
        }
4643
      }
4644
 
4645
      /**
4646
       * Find the _Fields constant that matches fieldId, or null if its not found.
4647
       */
4648
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4649
        switch(fieldId) {
4650
          case 1: // PROVIDER_ID
4651
            return PROVIDER_ID;
5247 rajveer 4652
          case -1: // TYPE
4653
            return TYPE;
3430 rajveer 4654
          default:
4655
            return null;
4656
        }
412 ashish 4657
      }
4658
 
4659
      /**
4660
       * Find the _Fields constant that matches fieldId, throwing an exception
4661
       * if it is not found.
4662
       */
4663
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4664
        _Fields fields = findByThriftId(fieldId);
4665
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4666
        return fields;
4667
      }
4668
 
4669
      /**
4670
       * Find the _Fields constant that matches name, or null if its not found.
4671
       */
4672
      public static _Fields findByName(String name) {
4673
        return byName.get(name);
4674
      }
4675
 
4676
      private final short _thriftId;
4677
      private final String _fieldName;
4678
 
4679
      _Fields(short thriftId, String fieldName) {
4680
        _thriftId = thriftId;
4681
        _fieldName = fieldName;
4682
      }
4683
 
4684
      public short getThriftFieldId() {
4685
        return _thriftId;
4686
      }
4687
 
4688
      public String getFieldName() {
4689
        return _fieldName;
4690
      }
4691
    }
4692
 
4693
    // isset id assignments
648 chandransh 4694
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 4695
    private BitSet __isset_bit_vector = new BitSet(1);
4696
 
3430 rajveer 4697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4698
    static {
3430 rajveer 4699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4700
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4701
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 4702
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4703
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 4704
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4705
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 4706
    }
4707
 
4708
    public getEmptyAWB_args() {
4709
    }
4710
 
4711
    public getEmptyAWB_args(
5247 rajveer 4712
      long providerId,
4713
      DeliveryType type)
412 ashish 4714
    {
4715
      this();
648 chandransh 4716
      this.providerId = providerId;
4717
      setProviderIdIsSet(true);
5247 rajveer 4718
      this.type = type;
412 ashish 4719
    }
4720
 
4721
    /**
4722
     * Performs a deep copy on <i>other</i>.
4723
     */
4724
    public getEmptyAWB_args(getEmptyAWB_args other) {
4725
      __isset_bit_vector.clear();
4726
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4727
      this.providerId = other.providerId;
5247 rajveer 4728
      if (other.isSetType()) {
4729
        this.type = other.type;
4730
      }
412 ashish 4731
    }
4732
 
4733
    public getEmptyAWB_args deepCopy() {
4734
      return new getEmptyAWB_args(this);
4735
    }
4736
 
3430 rajveer 4737
    @Override
4738
    public void clear() {
4739
      setProviderIdIsSet(false);
4740
      this.providerId = 0;
5247 rajveer 4741
      this.type = null;
412 ashish 4742
    }
4743
 
648 chandransh 4744
    public long getProviderId() {
4745
      return this.providerId;
412 ashish 4746
    }
4747
 
3430 rajveer 4748
    public void setProviderId(long providerId) {
648 chandransh 4749
      this.providerId = providerId;
4750
      setProviderIdIsSet(true);
412 ashish 4751
    }
4752
 
648 chandransh 4753
    public void unsetProviderId() {
4754
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 4755
    }
4756
 
3430 rajveer 4757
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 4758
    public boolean isSetProviderId() {
4759
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 4760
    }
4761
 
648 chandransh 4762
    public void setProviderIdIsSet(boolean value) {
4763
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 4764
    }
4765
 
5247 rajveer 4766
    /**
4767
     * 
4768
     * @see DeliveryType
4769
     */
4770
    public DeliveryType getType() {
4771
      return this.type;
4772
    }
4773
 
4774
    /**
4775
     * 
4776
     * @see DeliveryType
4777
     */
4778
    public void setType(DeliveryType type) {
4779
      this.type = type;
4780
    }
4781
 
4782
    public void unsetType() {
4783
      this.type = null;
4784
    }
4785
 
4786
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4787
    public boolean isSetType() {
4788
      return this.type != null;
4789
    }
4790
 
4791
    public void setTypeIsSet(boolean value) {
4792
      if (!value) {
4793
        this.type = null;
4794
      }
4795
    }
4796
 
412 ashish 4797
    public void setFieldValue(_Fields field, Object value) {
4798
      switch (field) {
4799
      case PROVIDER_ID:
4800
        if (value == null) {
648 chandransh 4801
          unsetProviderId();
412 ashish 4802
        } else {
648 chandransh 4803
          setProviderId((Long)value);
412 ashish 4804
        }
4805
        break;
4806
 
5247 rajveer 4807
      case TYPE:
4808
        if (value == null) {
4809
          unsetType();
4810
        } else {
4811
          setType((DeliveryType)value);
4812
        }
4813
        break;
4814
 
412 ashish 4815
      }
4816
    }
4817
 
4818
    public Object getFieldValue(_Fields field) {
4819
      switch (field) {
4820
      case PROVIDER_ID:
3430 rajveer 4821
        return Long.valueOf(getProviderId());
412 ashish 4822
 
5247 rajveer 4823
      case TYPE:
4824
        return getType();
4825
 
412 ashish 4826
      }
4827
      throw new IllegalStateException();
4828
    }
4829
 
3430 rajveer 4830
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4831
    public boolean isSet(_Fields field) {
4832
      if (field == null) {
4833
        throw new IllegalArgumentException();
4834
      }
412 ashish 4835
 
4836
      switch (field) {
4837
      case PROVIDER_ID:
648 chandransh 4838
        return isSetProviderId();
5247 rajveer 4839
      case TYPE:
4840
        return isSetType();
412 ashish 4841
      }
4842
      throw new IllegalStateException();
4843
    }
4844
 
4845
    @Override
4846
    public boolean equals(Object that) {
4847
      if (that == null)
4848
        return false;
4849
      if (that instanceof getEmptyAWB_args)
4850
        return this.equals((getEmptyAWB_args)that);
4851
      return false;
4852
    }
4853
 
4854
    public boolean equals(getEmptyAWB_args that) {
4855
      if (that == null)
4856
        return false;
4857
 
648 chandransh 4858
      boolean this_present_providerId = true;
4859
      boolean that_present_providerId = true;
4860
      if (this_present_providerId || that_present_providerId) {
4861
        if (!(this_present_providerId && that_present_providerId))
412 ashish 4862
          return false;
648 chandransh 4863
        if (this.providerId != that.providerId)
412 ashish 4864
          return false;
4865
      }
4866
 
5247 rajveer 4867
      boolean this_present_type = true && this.isSetType();
4868
      boolean that_present_type = true && that.isSetType();
4869
      if (this_present_type || that_present_type) {
4870
        if (!(this_present_type && that_present_type))
4871
          return false;
4872
        if (!this.type.equals(that.type))
4873
          return false;
4874
      }
4875
 
412 ashish 4876
      return true;
4877
    }
4878
 
4879
    @Override
4880
    public int hashCode() {
4881
      return 0;
4882
    }
4883
 
4884
    public int compareTo(getEmptyAWB_args other) {
4885
      if (!getClass().equals(other.getClass())) {
4886
        return getClass().getName().compareTo(other.getClass().getName());
4887
      }
4888
 
4889
      int lastComparison = 0;
4890
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
4891
 
3430 rajveer 4892
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 4893
      if (lastComparison != 0) {
4894
        return lastComparison;
4895
      }
3430 rajveer 4896
      if (isSetProviderId()) {
4897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4898
        if (lastComparison != 0) {
4899
          return lastComparison;
4900
        }
412 ashish 4901
      }
5247 rajveer 4902
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4903
      if (lastComparison != 0) {
4904
        return lastComparison;
4905
      }
4906
      if (isSetType()) {
4907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4908
        if (lastComparison != 0) {
4909
          return lastComparison;
4910
        }
4911
      }
412 ashish 4912
      return 0;
4913
    }
4914
 
3430 rajveer 4915
    public _Fields fieldForId(int fieldId) {
4916
      return _Fields.findByThriftId(fieldId);
4917
    }
4918
 
4919
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4920
      org.apache.thrift.protocol.TField field;
412 ashish 4921
      iprot.readStructBegin();
4922
      while (true)
4923
      {
4924
        field = iprot.readFieldBegin();
3430 rajveer 4925
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4926
          break;
4927
        }
3430 rajveer 4928
        switch (field.id) {
4929
          case 1: // PROVIDER_ID
4930
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4931
              this.providerId = iprot.readI64();
4932
              setProviderIdIsSet(true);
4933
            } else { 
4934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4935
            }
4936
            break;
5247 rajveer 4937
          case -1: // TYPE
4938
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4939
              this.type = DeliveryType.findByValue(iprot.readI32());
4940
            } else { 
4941
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4942
            }
4943
            break;
3430 rajveer 4944
          default:
4945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4946
        }
3430 rajveer 4947
        iprot.readFieldEnd();
412 ashish 4948
      }
4949
      iprot.readStructEnd();
4950
      validate();
4951
    }
4952
 
3430 rajveer 4953
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 4954
      validate();
4955
 
4956
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 4957
      if (this.type != null) {
4958
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4959
        oprot.writeI32(this.type.getValue());
4960
        oprot.writeFieldEnd();
4961
      }
412 ashish 4962
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 4963
      oprot.writeI64(this.providerId);
412 ashish 4964
      oprot.writeFieldEnd();
4965
      oprot.writeFieldStop();
4966
      oprot.writeStructEnd();
4967
    }
4968
 
4969
    @Override
4970
    public String toString() {
4971
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
4972
      boolean first = true;
4973
 
648 chandransh 4974
      sb.append("providerId:");
4975
      sb.append(this.providerId);
412 ashish 4976
      first = false;
5247 rajveer 4977
      if (!first) sb.append(", ");
4978
      sb.append("type:");
4979
      if (this.type == null) {
4980
        sb.append("null");
4981
      } else {
4982
        sb.append(this.type);
4983
      }
4984
      first = false;
412 ashish 4985
      sb.append(")");
4986
      return sb.toString();
4987
    }
4988
 
3430 rajveer 4989
    public void validate() throws org.apache.thrift.TException {
412 ashish 4990
      // check for required fields
4991
    }
4992
 
3430 rajveer 4993
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4994
      try {
4995
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4996
      } catch (org.apache.thrift.TException te) {
4997
        throw new java.io.IOException(te);
4998
      }
4999
    }
5000
 
5001
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5002
      try {
5003
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5004
        __isset_bit_vector = new BitSet(1);
5005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5006
      } catch (org.apache.thrift.TException te) {
5007
        throw new java.io.IOException(te);
5008
      }
5009
    }
5010
 
412 ashish 5011
  }
5012
 
3430 rajveer 5013
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
5014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 5015
 
3430 rajveer 5016
    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);
5017
    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 5018
 
3430 rajveer 5019
    private String success; // required
5020
    private LogisticsServiceException se; // required
412 ashish 5021
 
5022
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5023
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5024
      SUCCESS((short)0, "success"),
5025
      SE((short)1, "se");
412 ashish 5026
 
5027
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5028
 
5029
      static {
5030
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5031
          byName.put(field.getFieldName(), field);
5032
        }
5033
      }
5034
 
5035
      /**
5036
       * Find the _Fields constant that matches fieldId, or null if its not found.
5037
       */
5038
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5039
        switch(fieldId) {
5040
          case 0: // SUCCESS
5041
            return SUCCESS;
5042
          case 1: // SE
5043
            return SE;
5044
          default:
5045
            return null;
5046
        }
412 ashish 5047
      }
5048
 
5049
      /**
5050
       * Find the _Fields constant that matches fieldId, throwing an exception
5051
       * if it is not found.
5052
       */
5053
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5054
        _Fields fields = findByThriftId(fieldId);
5055
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5056
        return fields;
5057
      }
5058
 
5059
      /**
5060
       * Find the _Fields constant that matches name, or null if its not found.
5061
       */
5062
      public static _Fields findByName(String name) {
5063
        return byName.get(name);
5064
      }
5065
 
5066
      private final short _thriftId;
5067
      private final String _fieldName;
5068
 
5069
      _Fields(short thriftId, String fieldName) {
5070
        _thriftId = thriftId;
5071
        _fieldName = fieldName;
5072
      }
5073
 
5074
      public short getThriftFieldId() {
5075
        return _thriftId;
5076
      }
5077
 
5078
      public String getFieldName() {
5079
        return _fieldName;
5080
      }
5081
    }
5082
 
5083
    // isset id assignments
5084
 
3430 rajveer 5085
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5086
    static {
3430 rajveer 5087
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5088
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5090
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 5094
    }
5095
 
5096
    public getEmptyAWB_result() {
5097
    }
5098
 
5099
    public getEmptyAWB_result(
648 chandransh 5100
      String success,
5101
      LogisticsServiceException se)
412 ashish 5102
    {
5103
      this();
5104
      this.success = success;
648 chandransh 5105
      this.se = se;
412 ashish 5106
    }
5107
 
5108
    /**
5109
     * Performs a deep copy on <i>other</i>.
5110
     */
5111
    public getEmptyAWB_result(getEmptyAWB_result other) {
5112
      if (other.isSetSuccess()) {
5113
        this.success = other.success;
5114
      }
648 chandransh 5115
      if (other.isSetSe()) {
5116
        this.se = new LogisticsServiceException(other.se);
5117
      }
412 ashish 5118
    }
5119
 
5120
    public getEmptyAWB_result deepCopy() {
5121
      return new getEmptyAWB_result(this);
5122
    }
5123
 
3430 rajveer 5124
    @Override
5125
    public void clear() {
5126
      this.success = null;
5127
      this.se = null;
412 ashish 5128
    }
5129
 
5130
    public String getSuccess() {
5131
      return this.success;
5132
    }
5133
 
3430 rajveer 5134
    public void setSuccess(String success) {
412 ashish 5135
      this.success = success;
5136
    }
5137
 
5138
    public void unsetSuccess() {
5139
      this.success = null;
5140
    }
5141
 
3430 rajveer 5142
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 5143
    public boolean isSetSuccess() {
5144
      return this.success != null;
5145
    }
5146
 
5147
    public void setSuccessIsSet(boolean value) {
5148
      if (!value) {
5149
        this.success = null;
5150
      }
5151
    }
5152
 
648 chandransh 5153
    public LogisticsServiceException getSe() {
5154
      return this.se;
412 ashish 5155
    }
5156
 
3430 rajveer 5157
    public void setSe(LogisticsServiceException se) {
648 chandransh 5158
      this.se = se;
412 ashish 5159
    }
5160
 
648 chandransh 5161
    public void unsetSe() {
5162
      this.se = null;
412 ashish 5163
    }
5164
 
3430 rajveer 5165
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5166
    public boolean isSetSe() {
5167
      return this.se != null;
412 ashish 5168
    }
5169
 
648 chandransh 5170
    public void setSeIsSet(boolean value) {
412 ashish 5171
      if (!value) {
648 chandransh 5172
        this.se = null;
412 ashish 5173
      }
5174
    }
5175
 
5176
    public void setFieldValue(_Fields field, Object value) {
5177
      switch (field) {
5178
      case SUCCESS:
5179
        if (value == null) {
5180
          unsetSuccess();
5181
        } else {
648 chandransh 5182
          setSuccess((String)value);
412 ashish 5183
        }
5184
        break;
5185
 
648 chandransh 5186
      case SE:
5187
        if (value == null) {
5188
          unsetSe();
5189
        } else {
5190
          setSe((LogisticsServiceException)value);
5191
        }
5192
        break;
5193
 
412 ashish 5194
      }
5195
    }
5196
 
5197
    public Object getFieldValue(_Fields field) {
5198
      switch (field) {
5199
      case SUCCESS:
5200
        return getSuccess();
5201
 
648 chandransh 5202
      case SE:
5203
        return getSe();
5204
 
412 ashish 5205
      }
5206
      throw new IllegalStateException();
5207
    }
5208
 
3430 rajveer 5209
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5210
    public boolean isSet(_Fields field) {
5211
      if (field == null) {
5212
        throw new IllegalArgumentException();
5213
      }
412 ashish 5214
 
5215
      switch (field) {
5216
      case SUCCESS:
5217
        return isSetSuccess();
648 chandransh 5218
      case SE:
5219
        return isSetSe();
412 ashish 5220
      }
5221
      throw new IllegalStateException();
5222
    }
5223
 
5224
    @Override
5225
    public boolean equals(Object that) {
5226
      if (that == null)
5227
        return false;
648 chandransh 5228
      if (that instanceof getEmptyAWB_result)
5229
        return this.equals((getEmptyAWB_result)that);
412 ashish 5230
      return false;
5231
    }
5232
 
648 chandransh 5233
    public boolean equals(getEmptyAWB_result that) {
412 ashish 5234
      if (that == null)
5235
        return false;
5236
 
5237
      boolean this_present_success = true && this.isSetSuccess();
5238
      boolean that_present_success = true && that.isSetSuccess();
5239
      if (this_present_success || that_present_success) {
5240
        if (!(this_present_success && that_present_success))
5241
          return false;
5242
        if (!this.success.equals(that.success))
5243
          return false;
5244
      }
5245
 
648 chandransh 5246
      boolean this_present_se = true && this.isSetSe();
5247
      boolean that_present_se = true && that.isSetSe();
5248
      if (this_present_se || that_present_se) {
5249
        if (!(this_present_se && that_present_se))
5250
          return false;
5251
        if (!this.se.equals(that.se))
5252
          return false;
5253
      }
5254
 
412 ashish 5255
      return true;
5256
    }
5257
 
5258
    @Override
5259
    public int hashCode() {
5260
      return 0;
5261
    }
5262
 
648 chandransh 5263
    public int compareTo(getEmptyAWB_result other) {
412 ashish 5264
      if (!getClass().equals(other.getClass())) {
5265
        return getClass().getName().compareTo(other.getClass().getName());
5266
      }
5267
 
5268
      int lastComparison = 0;
648 chandransh 5269
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 5270
 
3430 rajveer 5271
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5272
      if (lastComparison != 0) {
5273
        return lastComparison;
5274
      }
3430 rajveer 5275
      if (isSetSuccess()) {
5276
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5277
        if (lastComparison != 0) {
5278
          return lastComparison;
5279
        }
412 ashish 5280
      }
3430 rajveer 5281
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5282
      if (lastComparison != 0) {
5283
        return lastComparison;
5284
      }
3430 rajveer 5285
      if (isSetSe()) {
5286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5287
        if (lastComparison != 0) {
5288
          return lastComparison;
5289
        }
412 ashish 5290
      }
5291
      return 0;
5292
    }
5293
 
3430 rajveer 5294
    public _Fields fieldForId(int fieldId) {
5295
      return _Fields.findByThriftId(fieldId);
5296
    }
5297
 
5298
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5299
      org.apache.thrift.protocol.TField field;
412 ashish 5300
      iprot.readStructBegin();
5301
      while (true)
5302
      {
5303
        field = iprot.readFieldBegin();
3430 rajveer 5304
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5305
          break;
5306
        }
3430 rajveer 5307
        switch (field.id) {
5308
          case 0: // SUCCESS
5309
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5310
              this.success = iprot.readString();
5311
            } else { 
5312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5313
            }
5314
            break;
5315
          case 1: // SE
5316
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5317
              this.se = new LogisticsServiceException();
5318
              this.se.read(iprot);
5319
            } else { 
5320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5321
            }
5322
            break;
5323
          default:
5324
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5325
        }
3430 rajveer 5326
        iprot.readFieldEnd();
412 ashish 5327
      }
5328
      iprot.readStructEnd();
5329
      validate();
5330
    }
5331
 
3430 rajveer 5332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 5333
      oprot.writeStructBegin(STRUCT_DESC);
5334
 
5335
      if (this.isSetSuccess()) {
5336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 5337
        oprot.writeString(this.success);
412 ashish 5338
        oprot.writeFieldEnd();
648 chandransh 5339
      } else if (this.isSetSe()) {
5340
        oprot.writeFieldBegin(SE_FIELD_DESC);
5341
        this.se.write(oprot);
5342
        oprot.writeFieldEnd();
412 ashish 5343
      }
5344
      oprot.writeFieldStop();
5345
      oprot.writeStructEnd();
5346
    }
5347
 
5348
    @Override
5349
    public String toString() {
648 chandransh 5350
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 5351
      boolean first = true;
5352
 
5353
      sb.append("success:");
5354
      if (this.success == null) {
5355
        sb.append("null");
5356
      } else {
5357
        sb.append(this.success);
5358
      }
5359
      first = false;
648 chandransh 5360
      if (!first) sb.append(", ");
5361
      sb.append("se:");
5362
      if (this.se == null) {
442 rajveer 5363
        sb.append("null");
5364
      } else {
648 chandransh 5365
        sb.append(this.se);
442 rajveer 5366
      }
5367
      first = false;
5368
      sb.append(")");
5369
      return sb.toString();
5370
    }
5371
 
3430 rajveer 5372
    public void validate() throws org.apache.thrift.TException {
442 rajveer 5373
      // check for required fields
5374
    }
5375
 
3430 rajveer 5376
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5377
      try {
5378
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5379
      } catch (org.apache.thrift.TException te) {
5380
        throw new java.io.IOException(te);
5381
      }
5382
    }
5383
 
5384
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5385
      try {
5386
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5387
      } catch (org.apache.thrift.TException te) {
5388
        throw new java.io.IOException(te);
5389
      }
5390
    }
5391
 
442 rajveer 5392
  }
5393
 
3430 rajveer 5394
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
5395
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 5396
 
3430 rajveer 5397
    private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
5398
    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 5399
 
3430 rajveer 5400
    private String awb; // required
5401
    private long providerId; // required
442 rajveer 5402
 
5403
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5404
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
442 rajveer 5405
      AWB((short)1, "awb"),
648 chandransh 5406
      PROVIDER_ID((short)2, "providerId");
442 rajveer 5407
 
5408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5409
 
5410
      static {
5411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5412
          byName.put(field.getFieldName(), field);
5413
        }
5414
      }
5415
 
5416
      /**
5417
       * Find the _Fields constant that matches fieldId, or null if its not found.
5418
       */
5419
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5420
        switch(fieldId) {
5421
          case 1: // AWB
5422
            return AWB;
5423
          case 2: // PROVIDER_ID
5424
            return PROVIDER_ID;
5425
          default:
5426
            return null;
5427
        }
442 rajveer 5428
      }
5429
 
5430
      /**
5431
       * Find the _Fields constant that matches fieldId, throwing an exception
5432
       * if it is not found.
5433
       */
5434
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5435
        _Fields fields = findByThriftId(fieldId);
5436
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5437
        return fields;
5438
      }
5439
 
5440
      /**
5441
       * Find the _Fields constant that matches name, or null if its not found.
5442
       */
5443
      public static _Fields findByName(String name) {
5444
        return byName.get(name);
5445
      }
5446
 
5447
      private final short _thriftId;
5448
      private final String _fieldName;
5449
 
5450
      _Fields(short thriftId, String fieldName) {
5451
        _thriftId = thriftId;
5452
        _fieldName = fieldName;
5453
      }
5454
 
5455
      public short getThriftFieldId() {
5456
        return _thriftId;
5457
      }
5458
 
5459
      public String getFieldName() {
5460
        return _fieldName;
5461
      }
5462
    }
5463
 
5464
    // isset id assignments
648 chandransh 5465
    private static final int __PROVIDERID_ISSET_ID = 0;
5466
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 5467
 
3430 rajveer 5468
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 5469
    static {
3430 rajveer 5470
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5471
      tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5472
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5473
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5474
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5475
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5476
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 5477
    }
5478
 
648 chandransh 5479
    public getShipmentInfo_args() {
442 rajveer 5480
    }
5481
 
648 chandransh 5482
    public getShipmentInfo_args(
442 rajveer 5483
      String awb,
648 chandransh 5484
      long providerId)
442 rajveer 5485
    {
5486
      this();
5487
      this.awb = awb;
648 chandransh 5488
      this.providerId = providerId;
5489
      setProviderIdIsSet(true);
442 rajveer 5490
    }
5491
 
5492
    /**
5493
     * Performs a deep copy on <i>other</i>.
5494
     */
648 chandransh 5495
    public getShipmentInfo_args(getShipmentInfo_args other) {
5496
      __isset_bit_vector.clear();
5497
      __isset_bit_vector.or(other.__isset_bit_vector);
442 rajveer 5498
      if (other.isSetAwb()) {
5499
        this.awb = other.awb;
5500
      }
648 chandransh 5501
      this.providerId = other.providerId;
442 rajveer 5502
    }
5503
 
648 chandransh 5504
    public getShipmentInfo_args deepCopy() {
5505
      return new getShipmentInfo_args(this);
442 rajveer 5506
    }
5507
 
3430 rajveer 5508
    @Override
5509
    public void clear() {
5510
      this.awb = null;
5511
      setProviderIdIsSet(false);
5512
      this.providerId = 0;
442 rajveer 5513
    }
5514
 
5515
    public String getAwb() {
5516
      return this.awb;
5517
    }
5518
 
3430 rajveer 5519
    public void setAwb(String awb) {
442 rajveer 5520
      this.awb = awb;
5521
    }
5522
 
5523
    public void unsetAwb() {
5524
      this.awb = null;
5525
    }
5526
 
3430 rajveer 5527
    /** Returns true if field awb is set (has been assigned a value) and false otherwise */
442 rajveer 5528
    public boolean isSetAwb() {
5529
      return this.awb != null;
5530
    }
5531
 
5532
    public void setAwbIsSet(boolean value) {
5533
      if (!value) {
5534
        this.awb = null;
5535
      }
5536
    }
5537
 
648 chandransh 5538
    public long getProviderId() {
5539
      return this.providerId;
442 rajveer 5540
    }
5541
 
3430 rajveer 5542
    public void setProviderId(long providerId) {
648 chandransh 5543
      this.providerId = providerId;
5544
      setProviderIdIsSet(true);
442 rajveer 5545
    }
5546
 
648 chandransh 5547
    public void unsetProviderId() {
5548
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 5549
    }
5550
 
3430 rajveer 5551
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 5552
    public boolean isSetProviderId() {
5553
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 5554
    }
5555
 
648 chandransh 5556
    public void setProviderIdIsSet(boolean value) {
5557
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 5558
    }
5559
 
5560
    public void setFieldValue(_Fields field, Object value) {
5561
      switch (field) {
5562
      case AWB:
5563
        if (value == null) {
5564
          unsetAwb();
5565
        } else {
5566
          setAwb((String)value);
5567
        }
5568
        break;
5569
 
648 chandransh 5570
      case PROVIDER_ID:
442 rajveer 5571
        if (value == null) {
648 chandransh 5572
          unsetProviderId();
442 rajveer 5573
        } else {
648 chandransh 5574
          setProviderId((Long)value);
442 rajveer 5575
        }
5576
        break;
5577
 
5578
      }
5579
    }
5580
 
5581
    public Object getFieldValue(_Fields field) {
5582
      switch (field) {
5583
      case AWB:
5584
        return getAwb();
5585
 
648 chandransh 5586
      case PROVIDER_ID:
3430 rajveer 5587
        return Long.valueOf(getProviderId());
442 rajveer 5588
 
5589
      }
5590
      throw new IllegalStateException();
5591
    }
5592
 
3430 rajveer 5593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5594
    public boolean isSet(_Fields field) {
5595
      if (field == null) {
5596
        throw new IllegalArgumentException();
5597
      }
442 rajveer 5598
 
5599
      switch (field) {
5600
      case AWB:
5601
        return isSetAwb();
648 chandransh 5602
      case PROVIDER_ID:
5603
        return isSetProviderId();
442 rajveer 5604
      }
5605
      throw new IllegalStateException();
5606
    }
5607
 
5608
    @Override
5609
    public boolean equals(Object that) {
5610
      if (that == null)
5611
        return false;
648 chandransh 5612
      if (that instanceof getShipmentInfo_args)
5613
        return this.equals((getShipmentInfo_args)that);
442 rajveer 5614
      return false;
5615
    }
5616
 
648 chandransh 5617
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 5618
      if (that == null)
5619
        return false;
5620
 
5621
      boolean this_present_awb = true && this.isSetAwb();
5622
      boolean that_present_awb = true && that.isSetAwb();
5623
      if (this_present_awb || that_present_awb) {
5624
        if (!(this_present_awb && that_present_awb))
5625
          return false;
5626
        if (!this.awb.equals(that.awb))
5627
          return false;
5628
      }
5629
 
648 chandransh 5630
      boolean this_present_providerId = true;
5631
      boolean that_present_providerId = true;
5632
      if (this_present_providerId || that_present_providerId) {
5633
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 5634
          return false;
648 chandransh 5635
        if (this.providerId != that.providerId)
442 rajveer 5636
          return false;
5637
      }
5638
 
5639
      return true;
5640
    }
5641
 
5642
    @Override
5643
    public int hashCode() {
5644
      return 0;
5645
    }
5646
 
648 chandransh 5647
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 5648
      if (!getClass().equals(other.getClass())) {
5649
        return getClass().getName().compareTo(other.getClass().getName());
5650
      }
5651
 
5652
      int lastComparison = 0;
648 chandransh 5653
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 5654
 
3430 rajveer 5655
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
442 rajveer 5656
      if (lastComparison != 0) {
5657
        return lastComparison;
5658
      }
3430 rajveer 5659
      if (isSetAwb()) {
5660
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
5661
        if (lastComparison != 0) {
5662
          return lastComparison;
5663
        }
442 rajveer 5664
      }
3430 rajveer 5665
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 5666
      if (lastComparison != 0) {
5667
        return lastComparison;
5668
      }
3430 rajveer 5669
      if (isSetProviderId()) {
5670
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5671
        if (lastComparison != 0) {
5672
          return lastComparison;
5673
        }
442 rajveer 5674
      }
5675
      return 0;
5676
    }
5677
 
3430 rajveer 5678
    public _Fields fieldForId(int fieldId) {
5679
      return _Fields.findByThriftId(fieldId);
5680
    }
5681
 
5682
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5683
      org.apache.thrift.protocol.TField field;
442 rajveer 5684
      iprot.readStructBegin();
5685
      while (true)
5686
      {
5687
        field = iprot.readFieldBegin();
3430 rajveer 5688
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 5689
          break;
5690
        }
3430 rajveer 5691
        switch (field.id) {
5692
          case 1: // AWB
5693
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5694
              this.awb = iprot.readString();
5695
            } else { 
5696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5697
            }
5698
            break;
5699
          case 2: // PROVIDER_ID
5700
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5701
              this.providerId = iprot.readI64();
5702
              setProviderIdIsSet(true);
5703
            } else { 
5704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5705
            }
5706
            break;
5707
          default:
5708
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 5709
        }
3430 rajveer 5710
        iprot.readFieldEnd();
442 rajveer 5711
      }
5712
      iprot.readStructEnd();
5713
      validate();
5714
    }
5715
 
3430 rajveer 5716
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 5717
      validate();
5718
 
5719
      oprot.writeStructBegin(STRUCT_DESC);
5720
      if (this.awb != null) {
5721
        oprot.writeFieldBegin(AWB_FIELD_DESC);
5722
        oprot.writeString(this.awb);
5723
        oprot.writeFieldEnd();
5724
      }
648 chandransh 5725
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5726
      oprot.writeI64(this.providerId);
5727
      oprot.writeFieldEnd();
442 rajveer 5728
      oprot.writeFieldStop();
5729
      oprot.writeStructEnd();
5730
    }
5731
 
5732
    @Override
5733
    public String toString() {
648 chandransh 5734
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 5735
      boolean first = true;
5736
 
5737
      sb.append("awb:");
5738
      if (this.awb == null) {
5739
        sb.append("null");
5740
      } else {
5741
        sb.append(this.awb);
5742
      }
5743
      first = false;
5744
      if (!first) sb.append(", ");
648 chandransh 5745
      sb.append("providerId:");
5746
      sb.append(this.providerId);
442 rajveer 5747
      first = false;
5748
      sb.append(")");
5749
      return sb.toString();
5750
    }
5751
 
3430 rajveer 5752
    public void validate() throws org.apache.thrift.TException {
442 rajveer 5753
      // check for required fields
5754
    }
5755
 
3430 rajveer 5756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5757
      try {
5758
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5759
      } catch (org.apache.thrift.TException te) {
5760
        throw new java.io.IOException(te);
5761
      }
5762
    }
5763
 
5764
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5765
      try {
5766
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5767
      } catch (org.apache.thrift.TException te) {
5768
        throw new java.io.IOException(te);
5769
      }
5770
    }
5771
 
442 rajveer 5772
  }
5773
 
3430 rajveer 5774
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
5775
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 5776
 
3430 rajveer 5777
    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);
5778
    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 5779
 
3430 rajveer 5780
    private List<AwbUpdate> success; // required
5781
    private LogisticsServiceException se; // required
412 ashish 5782
 
5783
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5784
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5785
      SUCCESS((short)0, "success"),
5786
      SE((short)1, "se");
412 ashish 5787
 
5788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5789
 
5790
      static {
5791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5792
          byName.put(field.getFieldName(), field);
5793
        }
5794
      }
5795
 
5796
      /**
5797
       * Find the _Fields constant that matches fieldId, or null if its not found.
5798
       */
5799
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5800
        switch(fieldId) {
5801
          case 0: // SUCCESS
5802
            return SUCCESS;
5803
          case 1: // SE
5804
            return SE;
5805
          default:
5806
            return null;
5807
        }
412 ashish 5808
      }
5809
 
5810
      /**
5811
       * Find the _Fields constant that matches fieldId, throwing an exception
5812
       * if it is not found.
5813
       */
5814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5815
        _Fields fields = findByThriftId(fieldId);
5816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5817
        return fields;
5818
      }
5819
 
5820
      /**
5821
       * Find the _Fields constant that matches name, or null if its not found.
5822
       */
5823
      public static _Fields findByName(String name) {
5824
        return byName.get(name);
5825
      }
5826
 
5827
      private final short _thriftId;
5828
      private final String _fieldName;
5829
 
5830
      _Fields(short thriftId, String fieldName) {
5831
        _thriftId = thriftId;
5832
        _fieldName = fieldName;
5833
      }
5834
 
5835
      public short getThriftFieldId() {
5836
        return _thriftId;
5837
      }
5838
 
5839
      public String getFieldName() {
5840
        return _fieldName;
5841
      }
5842
    }
5843
 
5844
    // isset id assignments
5845
 
3430 rajveer 5846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5847
    static {
3430 rajveer 5848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5849
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5850
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5851
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
5852
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 5856
    }
5857
 
5858
    public getShipmentInfo_result() {
5859
    }
5860
 
5861
    public getShipmentInfo_result(
648 chandransh 5862
      List<AwbUpdate> success,
5863
      LogisticsServiceException se)
412 ashish 5864
    {
5865
      this();
5866
      this.success = success;
648 chandransh 5867
      this.se = se;
412 ashish 5868
    }
5869
 
5870
    /**
5871
     * Performs a deep copy on <i>other</i>.
5872
     */
5873
    public getShipmentInfo_result(getShipmentInfo_result other) {
5874
      if (other.isSetSuccess()) {
648 chandransh 5875
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
5876
        for (AwbUpdate other_element : other.success) {
5877
          __this__success.add(new AwbUpdate(other_element));
5878
        }
5879
        this.success = __this__success;
412 ashish 5880
      }
648 chandransh 5881
      if (other.isSetSe()) {
5882
        this.se = new LogisticsServiceException(other.se);
5883
      }
412 ashish 5884
    }
5885
 
5886
    public getShipmentInfo_result deepCopy() {
5887
      return new getShipmentInfo_result(this);
5888
    }
5889
 
3430 rajveer 5890
    @Override
5891
    public void clear() {
5892
      this.success = null;
5893
      this.se = null;
412 ashish 5894
    }
5895
 
5896
    public int getSuccessSize() {
5897
      return (this.success == null) ? 0 : this.success.size();
5898
    }
5899
 
648 chandransh 5900
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 5901
      return (this.success == null) ? null : this.success.iterator();
5902
    }
5903
 
648 chandransh 5904
    public void addToSuccess(AwbUpdate elem) {
412 ashish 5905
      if (this.success == null) {
648 chandransh 5906
        this.success = new ArrayList<AwbUpdate>();
412 ashish 5907
      }
5908
      this.success.add(elem);
5909
    }
5910
 
648 chandransh 5911
    public List<AwbUpdate> getSuccess() {
412 ashish 5912
      return this.success;
5913
    }
5914
 
3430 rajveer 5915
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 5916
      this.success = success;
5917
    }
5918
 
5919
    public void unsetSuccess() {
5920
      this.success = null;
5921
    }
5922
 
3430 rajveer 5923
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 5924
    public boolean isSetSuccess() {
5925
      return this.success != null;
5926
    }
5927
 
5928
    public void setSuccessIsSet(boolean value) {
5929
      if (!value) {
5930
        this.success = null;
5931
      }
5932
    }
5933
 
648 chandransh 5934
    public LogisticsServiceException getSe() {
5935
      return this.se;
412 ashish 5936
    }
5937
 
3430 rajveer 5938
    public void setSe(LogisticsServiceException se) {
648 chandransh 5939
      this.se = se;
412 ashish 5940
    }
5941
 
648 chandransh 5942
    public void unsetSe() {
5943
      this.se = null;
412 ashish 5944
    }
5945
 
3430 rajveer 5946
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5947
    public boolean isSetSe() {
5948
      return this.se != null;
412 ashish 5949
    }
5950
 
648 chandransh 5951
    public void setSeIsSet(boolean value) {
5952
      if (!value) {
5953
        this.se = null;
412 ashish 5954
      }
5955
    }
5956
 
5957
    public void setFieldValue(_Fields field, Object value) {
5958
      switch (field) {
648 chandransh 5959
      case SUCCESS:
412 ashish 5960
        if (value == null) {
648 chandransh 5961
          unsetSuccess();
412 ashish 5962
        } else {
648 chandransh 5963
          setSuccess((List<AwbUpdate>)value);
412 ashish 5964
        }
5965
        break;
5966
 
648 chandransh 5967
      case SE:
412 ashish 5968
        if (value == null) {
648 chandransh 5969
          unsetSe();
412 ashish 5970
        } else {
648 chandransh 5971
          setSe((LogisticsServiceException)value);
412 ashish 5972
        }
5973
        break;
5974
 
5975
      }
5976
    }
5977
 
5978
    public Object getFieldValue(_Fields field) {
5979
      switch (field) {
648 chandransh 5980
      case SUCCESS:
5981
        return getSuccess();
412 ashish 5982
 
648 chandransh 5983
      case SE:
5984
        return getSe();
412 ashish 5985
 
5986
      }
5987
      throw new IllegalStateException();
5988
    }
5989
 
3430 rajveer 5990
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5991
    public boolean isSet(_Fields field) {
5992
      if (field == null) {
5993
        throw new IllegalArgumentException();
5994
      }
412 ashish 5995
 
5996
      switch (field) {
648 chandransh 5997
      case SUCCESS:
5998
        return isSetSuccess();
5999
      case SE:
6000
        return isSetSe();
412 ashish 6001
      }
6002
      throw new IllegalStateException();
6003
    }
6004
 
6005
    @Override
6006
    public boolean equals(Object that) {
6007
      if (that == null)
6008
        return false;
648 chandransh 6009
      if (that instanceof getShipmentInfo_result)
6010
        return this.equals((getShipmentInfo_result)that);
412 ashish 6011
      return false;
6012
    }
6013
 
648 chandransh 6014
    public boolean equals(getShipmentInfo_result that) {
412 ashish 6015
      if (that == null)
6016
        return false;
6017
 
648 chandransh 6018
      boolean this_present_success = true && this.isSetSuccess();
6019
      boolean that_present_success = true && that.isSetSuccess();
6020
      if (this_present_success || that_present_success) {
6021
        if (!(this_present_success && that_present_success))
412 ashish 6022
          return false;
648 chandransh 6023
        if (!this.success.equals(that.success))
412 ashish 6024
          return false;
6025
      }
6026
 
648 chandransh 6027
      boolean this_present_se = true && this.isSetSe();
6028
      boolean that_present_se = true && that.isSetSe();
6029
      if (this_present_se || that_present_se) {
6030
        if (!(this_present_se && that_present_se))
412 ashish 6031
          return false;
648 chandransh 6032
        if (!this.se.equals(that.se))
412 ashish 6033
          return false;
6034
      }
6035
 
6036
      return true;
6037
    }
6038
 
6039
    @Override
6040
    public int hashCode() {
6041
      return 0;
6042
    }
6043
 
648 chandransh 6044
    public int compareTo(getShipmentInfo_result other) {
412 ashish 6045
      if (!getClass().equals(other.getClass())) {
6046
        return getClass().getName().compareTo(other.getClass().getName());
6047
      }
6048
 
6049
      int lastComparison = 0;
648 chandransh 6050
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 6051
 
3430 rajveer 6052
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6053
      if (lastComparison != 0) {
6054
        return lastComparison;
6055
      }
3430 rajveer 6056
      if (isSetSuccess()) {
6057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6058
        if (lastComparison != 0) {
6059
          return lastComparison;
6060
        }
412 ashish 6061
      }
3430 rajveer 6062
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6063
      if (lastComparison != 0) {
6064
        return lastComparison;
6065
      }
3430 rajveer 6066
      if (isSetSe()) {
6067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6068
        if (lastComparison != 0) {
6069
          return lastComparison;
6070
        }
412 ashish 6071
      }
6072
      return 0;
6073
    }
6074
 
3430 rajveer 6075
    public _Fields fieldForId(int fieldId) {
6076
      return _Fields.findByThriftId(fieldId);
6077
    }
6078
 
6079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6080
      org.apache.thrift.protocol.TField field;
412 ashish 6081
      iprot.readStructBegin();
6082
      while (true)
6083
      {
6084
        field = iprot.readFieldBegin();
3430 rajveer 6085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6086
          break;
6087
        }
3430 rajveer 6088
        switch (field.id) {
6089
          case 0: // SUCCESS
6090
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6091
              {
6092
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
6093
                this.success = new ArrayList<AwbUpdate>(_list9.size);
6094
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 6095
                {
3430 rajveer 6096
                  AwbUpdate _elem11; // required
6097
                  _elem11 = new AwbUpdate();
6098
                  _elem11.read(iprot);
6099
                  this.success.add(_elem11);
412 ashish 6100
                }
3430 rajveer 6101
                iprot.readListEnd();
412 ashish 6102
              }
3430 rajveer 6103
            } else { 
6104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6105
            }
6106
            break;
6107
          case 1: // SE
6108
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6109
              this.se = new LogisticsServiceException();
6110
              this.se.read(iprot);
6111
            } else { 
6112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6113
            }
6114
            break;
6115
          default:
6116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6117
        }
3430 rajveer 6118
        iprot.readFieldEnd();
412 ashish 6119
      }
6120
      iprot.readStructEnd();
6121
      validate();
6122
    }
6123
 
3430 rajveer 6124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6125
      oprot.writeStructBegin(STRUCT_DESC);
6126
 
6127
      if (this.isSetSuccess()) {
6128
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6129
        {
3430 rajveer 6130
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 6131
          for (AwbUpdate _iter12 : this.success)
412 ashish 6132
          {
3044 chandransh 6133
            _iter12.write(oprot);
412 ashish 6134
          }
6135
          oprot.writeListEnd();
6136
        }
6137
        oprot.writeFieldEnd();
648 chandransh 6138
      } else if (this.isSetSe()) {
6139
        oprot.writeFieldBegin(SE_FIELD_DESC);
6140
        this.se.write(oprot);
6141
        oprot.writeFieldEnd();
412 ashish 6142
      }
6143
      oprot.writeFieldStop();
6144
      oprot.writeStructEnd();
6145
    }
6146
 
6147
    @Override
6148
    public String toString() {
648 chandransh 6149
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 6150
      boolean first = true;
6151
 
6152
      sb.append("success:");
6153
      if (this.success == null) {
6154
        sb.append("null");
6155
      } else {
6156
        sb.append(this.success);
6157
      }
6158
      first = false;
648 chandransh 6159
      if (!first) sb.append(", ");
6160
      sb.append("se:");
6161
      if (this.se == null) {
6162
        sb.append("null");
6163
      } else {
6164
        sb.append(this.se);
6165
      }
6166
      first = false;
412 ashish 6167
      sb.append(")");
6168
      return sb.toString();
6169
    }
6170
 
3430 rajveer 6171
    public void validate() throws org.apache.thrift.TException {
412 ashish 6172
      // check for required fields
6173
    }
6174
 
3430 rajveer 6175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6176
      try {
6177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6178
      } catch (org.apache.thrift.TException te) {
6179
        throw new java.io.IOException(te);
6180
      }
6181
    }
6182
 
6183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6184
      try {
6185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6186
      } catch (org.apache.thrift.TException te) {
6187
        throw new java.io.IOException(te);
6188
      }
6189
    }
6190
 
412 ashish 6191
  }
6192
 
3430 rajveer 6193
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
6194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 6195
 
3430 rajveer 6196
    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);
6197
    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 6198
 
3430 rajveer 6199
    private long providerId; // required
6200
    private String pinCode; // required
730 chandransh 6201
 
6202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 6204
      PROVIDER_ID((short)1, "providerId"),
6205
      PIN_CODE((short)2, "pinCode");
6206
 
6207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6208
 
6209
      static {
6210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6211
          byName.put(field.getFieldName(), field);
6212
        }
6213
      }
6214
 
6215
      /**
6216
       * Find the _Fields constant that matches fieldId, or null if its not found.
6217
       */
6218
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6219
        switch(fieldId) {
6220
          case 1: // PROVIDER_ID
6221
            return PROVIDER_ID;
6222
          case 2: // PIN_CODE
6223
            return PIN_CODE;
6224
          default:
6225
            return null;
6226
        }
730 chandransh 6227
      }
6228
 
6229
      /**
6230
       * Find the _Fields constant that matches fieldId, throwing an exception
6231
       * if it is not found.
6232
       */
6233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6234
        _Fields fields = findByThriftId(fieldId);
6235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6236
        return fields;
6237
      }
6238
 
6239
      /**
6240
       * Find the _Fields constant that matches name, or null if its not found.
6241
       */
6242
      public static _Fields findByName(String name) {
6243
        return byName.get(name);
6244
      }
6245
 
6246
      private final short _thriftId;
6247
      private final String _fieldName;
6248
 
6249
      _Fields(short thriftId, String fieldName) {
6250
        _thriftId = thriftId;
6251
        _fieldName = fieldName;
6252
      }
6253
 
6254
      public short getThriftFieldId() {
6255
        return _thriftId;
6256
      }
6257
 
6258
      public String getFieldName() {
6259
        return _fieldName;
6260
      }
6261
    }
6262
 
6263
    // isset id assignments
6264
    private static final int __PROVIDERID_ISSET_ID = 0;
6265
    private BitSet __isset_bit_vector = new BitSet(1);
6266
 
3430 rajveer 6267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 6268
    static {
3430 rajveer 6269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6270
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6272
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 6276
    }
6277
 
6278
    public getDestinationCode_args() {
6279
    }
6280
 
6281
    public getDestinationCode_args(
6282
      long providerId,
6283
      String pinCode)
6284
    {
6285
      this();
6286
      this.providerId = providerId;
6287
      setProviderIdIsSet(true);
6288
      this.pinCode = pinCode;
6289
    }
6290
 
6291
    /**
6292
     * Performs a deep copy on <i>other</i>.
6293
     */
6294
    public getDestinationCode_args(getDestinationCode_args other) {
6295
      __isset_bit_vector.clear();
6296
      __isset_bit_vector.or(other.__isset_bit_vector);
6297
      this.providerId = other.providerId;
6298
      if (other.isSetPinCode()) {
6299
        this.pinCode = other.pinCode;
6300
      }
6301
    }
6302
 
6303
    public getDestinationCode_args deepCopy() {
6304
      return new getDestinationCode_args(this);
6305
    }
6306
 
3430 rajveer 6307
    @Override
6308
    public void clear() {
6309
      setProviderIdIsSet(false);
6310
      this.providerId = 0;
6311
      this.pinCode = null;
730 chandransh 6312
    }
6313
 
6314
    public long getProviderId() {
6315
      return this.providerId;
6316
    }
6317
 
3430 rajveer 6318
    public void setProviderId(long providerId) {
730 chandransh 6319
      this.providerId = providerId;
6320
      setProviderIdIsSet(true);
6321
    }
6322
 
6323
    public void unsetProviderId() {
6324
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
6325
    }
6326
 
3430 rajveer 6327
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 6328
    public boolean isSetProviderId() {
6329
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
6330
    }
6331
 
6332
    public void setProviderIdIsSet(boolean value) {
6333
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
6334
    }
6335
 
6336
    public String getPinCode() {
6337
      return this.pinCode;
6338
    }
6339
 
3430 rajveer 6340
    public void setPinCode(String pinCode) {
730 chandransh 6341
      this.pinCode = pinCode;
6342
    }
6343
 
6344
    public void unsetPinCode() {
6345
      this.pinCode = null;
6346
    }
6347
 
3430 rajveer 6348
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 6349
    public boolean isSetPinCode() {
6350
      return this.pinCode != null;
6351
    }
6352
 
6353
    public void setPinCodeIsSet(boolean value) {
6354
      if (!value) {
6355
        this.pinCode = null;
6356
      }
6357
    }
6358
 
6359
    public void setFieldValue(_Fields field, Object value) {
6360
      switch (field) {
6361
      case PROVIDER_ID:
6362
        if (value == null) {
6363
          unsetProviderId();
6364
        } else {
6365
          setProviderId((Long)value);
6366
        }
6367
        break;
6368
 
6369
      case PIN_CODE:
6370
        if (value == null) {
6371
          unsetPinCode();
6372
        } else {
6373
          setPinCode((String)value);
6374
        }
6375
        break;
6376
 
6377
      }
6378
    }
6379
 
6380
    public Object getFieldValue(_Fields field) {
6381
      switch (field) {
6382
      case PROVIDER_ID:
3430 rajveer 6383
        return Long.valueOf(getProviderId());
730 chandransh 6384
 
6385
      case PIN_CODE:
6386
        return getPinCode();
6387
 
6388
      }
6389
      throw new IllegalStateException();
6390
    }
6391
 
3430 rajveer 6392
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6393
    public boolean isSet(_Fields field) {
6394
      if (field == null) {
6395
        throw new IllegalArgumentException();
6396
      }
730 chandransh 6397
 
6398
      switch (field) {
6399
      case PROVIDER_ID:
6400
        return isSetProviderId();
6401
      case PIN_CODE:
6402
        return isSetPinCode();
6403
      }
6404
      throw new IllegalStateException();
6405
    }
6406
 
6407
    @Override
6408
    public boolean equals(Object that) {
6409
      if (that == null)
6410
        return false;
6411
      if (that instanceof getDestinationCode_args)
6412
        return this.equals((getDestinationCode_args)that);
6413
      return false;
6414
    }
6415
 
6416
    public boolean equals(getDestinationCode_args that) {
6417
      if (that == null)
6418
        return false;
6419
 
6420
      boolean this_present_providerId = true;
6421
      boolean that_present_providerId = true;
6422
      if (this_present_providerId || that_present_providerId) {
6423
        if (!(this_present_providerId && that_present_providerId))
6424
          return false;
6425
        if (this.providerId != that.providerId)
6426
          return false;
6427
      }
6428
 
6429
      boolean this_present_pinCode = true && this.isSetPinCode();
6430
      boolean that_present_pinCode = true && that.isSetPinCode();
6431
      if (this_present_pinCode || that_present_pinCode) {
6432
        if (!(this_present_pinCode && that_present_pinCode))
6433
          return false;
6434
        if (!this.pinCode.equals(that.pinCode))
6435
          return false;
6436
      }
6437
 
6438
      return true;
6439
    }
6440
 
6441
    @Override
6442
    public int hashCode() {
6443
      return 0;
6444
    }
6445
 
6446
    public int compareTo(getDestinationCode_args other) {
6447
      if (!getClass().equals(other.getClass())) {
6448
        return getClass().getName().compareTo(other.getClass().getName());
6449
      }
6450
 
6451
      int lastComparison = 0;
6452
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
6453
 
3430 rajveer 6454
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 6455
      if (lastComparison != 0) {
6456
        return lastComparison;
6457
      }
3430 rajveer 6458
      if (isSetProviderId()) {
6459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6460
        if (lastComparison != 0) {
6461
          return lastComparison;
6462
        }
730 chandransh 6463
      }
3430 rajveer 6464
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 6465
      if (lastComparison != 0) {
6466
        return lastComparison;
6467
      }
3430 rajveer 6468
      if (isSetPinCode()) {
6469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
6470
        if (lastComparison != 0) {
6471
          return lastComparison;
6472
        }
730 chandransh 6473
      }
6474
      return 0;
6475
    }
6476
 
3430 rajveer 6477
    public _Fields fieldForId(int fieldId) {
6478
      return _Fields.findByThriftId(fieldId);
6479
    }
6480
 
6481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6482
      org.apache.thrift.protocol.TField field;
730 chandransh 6483
      iprot.readStructBegin();
6484
      while (true)
6485
      {
6486
        field = iprot.readFieldBegin();
3430 rajveer 6487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 6488
          break;
6489
        }
3430 rajveer 6490
        switch (field.id) {
6491
          case 1: // PROVIDER_ID
6492
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6493
              this.providerId = iprot.readI64();
6494
              setProviderIdIsSet(true);
6495
            } else { 
6496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6497
            }
6498
            break;
6499
          case 2: // PIN_CODE
6500
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6501
              this.pinCode = iprot.readString();
6502
            } else { 
6503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6504
            }
6505
            break;
6506
          default:
6507
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 6508
        }
3430 rajveer 6509
        iprot.readFieldEnd();
730 chandransh 6510
      }
6511
      iprot.readStructEnd();
6512
      validate();
6513
    }
6514
 
3430 rajveer 6515
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 6516
      validate();
6517
 
6518
      oprot.writeStructBegin(STRUCT_DESC);
6519
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6520
      oprot.writeI64(this.providerId);
6521
      oprot.writeFieldEnd();
6522
      if (this.pinCode != null) {
6523
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
6524
        oprot.writeString(this.pinCode);
6525
        oprot.writeFieldEnd();
6526
      }
6527
      oprot.writeFieldStop();
6528
      oprot.writeStructEnd();
6529
    }
6530
 
6531
    @Override
6532
    public String toString() {
6533
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
6534
      boolean first = true;
6535
 
6536
      sb.append("providerId:");
6537
      sb.append(this.providerId);
6538
      first = false;
6539
      if (!first) sb.append(", ");
6540
      sb.append("pinCode:");
6541
      if (this.pinCode == null) {
6542
        sb.append("null");
6543
      } else {
6544
        sb.append(this.pinCode);
6545
      }
6546
      first = false;
6547
      sb.append(")");
6548
      return sb.toString();
6549
    }
6550
 
3430 rajveer 6551
    public void validate() throws org.apache.thrift.TException {
730 chandransh 6552
      // check for required fields
6553
    }
6554
 
3430 rajveer 6555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6556
      try {
6557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6558
      } catch (org.apache.thrift.TException te) {
6559
        throw new java.io.IOException(te);
6560
      }
6561
    }
6562
 
6563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6564
      try {
6565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6566
      } catch (org.apache.thrift.TException te) {
6567
        throw new java.io.IOException(te);
6568
      }
6569
    }
6570
 
730 chandransh 6571
  }
6572
 
3430 rajveer 6573
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
6574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 6575
 
3430 rajveer 6576
    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);
6577
    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 6578
 
3430 rajveer 6579
    private String success; // required
6580
    private LogisticsServiceException se; // required
730 chandransh 6581
 
6582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 6584
      SUCCESS((short)0, "success"),
6585
      SE((short)1, "se");
6586
 
6587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6588
 
6589
      static {
6590
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6591
          byName.put(field.getFieldName(), field);
6592
        }
6593
      }
6594
 
6595
      /**
6596
       * Find the _Fields constant that matches fieldId, or null if its not found.
6597
       */
6598
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6599
        switch(fieldId) {
6600
          case 0: // SUCCESS
6601
            return SUCCESS;
6602
          case 1: // SE
6603
            return SE;
6604
          default:
6605
            return null;
6606
        }
730 chandransh 6607
      }
6608
 
6609
      /**
6610
       * Find the _Fields constant that matches fieldId, throwing an exception
6611
       * if it is not found.
6612
       */
6613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6614
        _Fields fields = findByThriftId(fieldId);
6615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6616
        return fields;
6617
      }
6618
 
6619
      /**
6620
       * Find the _Fields constant that matches name, or null if its not found.
6621
       */
6622
      public static _Fields findByName(String name) {
6623
        return byName.get(name);
6624
      }
6625
 
6626
      private final short _thriftId;
6627
      private final String _fieldName;
6628
 
6629
      _Fields(short thriftId, String fieldName) {
6630
        _thriftId = thriftId;
6631
        _fieldName = fieldName;
6632
      }
6633
 
6634
      public short getThriftFieldId() {
6635
        return _thriftId;
6636
      }
6637
 
6638
      public String getFieldName() {
6639
        return _fieldName;
6640
      }
6641
    }
6642
 
6643
    // isset id assignments
6644
 
3430 rajveer 6645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 6646
    static {
3430 rajveer 6647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6650
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 6654
    }
6655
 
6656
    public getDestinationCode_result() {
6657
    }
6658
 
6659
    public getDestinationCode_result(
6660
      String success,
6661
      LogisticsServiceException se)
6662
    {
6663
      this();
6664
      this.success = success;
6665
      this.se = se;
6666
    }
6667
 
6668
    /**
6669
     * Performs a deep copy on <i>other</i>.
6670
     */
6671
    public getDestinationCode_result(getDestinationCode_result other) {
6672
      if (other.isSetSuccess()) {
6673
        this.success = other.success;
6674
      }
6675
      if (other.isSetSe()) {
6676
        this.se = new LogisticsServiceException(other.se);
6677
      }
6678
    }
6679
 
6680
    public getDestinationCode_result deepCopy() {
6681
      return new getDestinationCode_result(this);
6682
    }
6683
 
3430 rajveer 6684
    @Override
6685
    public void clear() {
6686
      this.success = null;
6687
      this.se = null;
730 chandransh 6688
    }
6689
 
6690
    public String getSuccess() {
6691
      return this.success;
6692
    }
6693
 
3430 rajveer 6694
    public void setSuccess(String success) {
730 chandransh 6695
      this.success = success;
6696
    }
6697
 
6698
    public void unsetSuccess() {
6699
      this.success = null;
6700
    }
6701
 
3430 rajveer 6702
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 6703
    public boolean isSetSuccess() {
6704
      return this.success != null;
6705
    }
6706
 
6707
    public void setSuccessIsSet(boolean value) {
6708
      if (!value) {
6709
        this.success = null;
6710
      }
6711
    }
6712
 
6713
    public LogisticsServiceException getSe() {
6714
      return this.se;
6715
    }
6716
 
3430 rajveer 6717
    public void setSe(LogisticsServiceException se) {
730 chandransh 6718
      this.se = se;
6719
    }
6720
 
6721
    public void unsetSe() {
6722
      this.se = null;
6723
    }
6724
 
3430 rajveer 6725
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 6726
    public boolean isSetSe() {
6727
      return this.se != null;
6728
    }
6729
 
6730
    public void setSeIsSet(boolean value) {
6731
      if (!value) {
6732
        this.se = null;
6733
      }
6734
    }
6735
 
6736
    public void setFieldValue(_Fields field, Object value) {
6737
      switch (field) {
6738
      case SUCCESS:
6739
        if (value == null) {
6740
          unsetSuccess();
6741
        } else {
6742
          setSuccess((String)value);
6743
        }
6744
        break;
6745
 
6746
      case SE:
6747
        if (value == null) {
6748
          unsetSe();
6749
        } else {
6750
          setSe((LogisticsServiceException)value);
6751
        }
6752
        break;
6753
 
6754
      }
6755
    }
6756
 
6757
    public Object getFieldValue(_Fields field) {
6758
      switch (field) {
6759
      case SUCCESS:
6760
        return getSuccess();
6761
 
6762
      case SE:
6763
        return getSe();
6764
 
6765
      }
6766
      throw new IllegalStateException();
6767
    }
6768
 
3430 rajveer 6769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6770
    public boolean isSet(_Fields field) {
6771
      if (field == null) {
6772
        throw new IllegalArgumentException();
6773
      }
730 chandransh 6774
 
6775
      switch (field) {
6776
      case SUCCESS:
6777
        return isSetSuccess();
6778
      case SE:
6779
        return isSetSe();
6780
      }
6781
      throw new IllegalStateException();
6782
    }
6783
 
6784
    @Override
6785
    public boolean equals(Object that) {
6786
      if (that == null)
6787
        return false;
6788
      if (that instanceof getDestinationCode_result)
6789
        return this.equals((getDestinationCode_result)that);
6790
      return false;
6791
    }
6792
 
6793
    public boolean equals(getDestinationCode_result that) {
6794
      if (that == null)
6795
        return false;
6796
 
6797
      boolean this_present_success = true && this.isSetSuccess();
6798
      boolean that_present_success = true && that.isSetSuccess();
6799
      if (this_present_success || that_present_success) {
6800
        if (!(this_present_success && that_present_success))
6801
          return false;
6802
        if (!this.success.equals(that.success))
6803
          return false;
6804
      }
6805
 
6806
      boolean this_present_se = true && this.isSetSe();
6807
      boolean that_present_se = true && that.isSetSe();
6808
      if (this_present_se || that_present_se) {
6809
        if (!(this_present_se && that_present_se))
6810
          return false;
6811
        if (!this.se.equals(that.se))
6812
          return false;
6813
      }
6814
 
6815
      return true;
6816
    }
6817
 
6818
    @Override
6819
    public int hashCode() {
6820
      return 0;
6821
    }
6822
 
6823
    public int compareTo(getDestinationCode_result other) {
6824
      if (!getClass().equals(other.getClass())) {
6825
        return getClass().getName().compareTo(other.getClass().getName());
6826
      }
6827
 
6828
      int lastComparison = 0;
6829
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
6830
 
3430 rajveer 6831
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 6832
      if (lastComparison != 0) {
6833
        return lastComparison;
6834
      }
3430 rajveer 6835
      if (isSetSuccess()) {
6836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6837
        if (lastComparison != 0) {
6838
          return lastComparison;
6839
        }
730 chandransh 6840
      }
3430 rajveer 6841
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 6842
      if (lastComparison != 0) {
6843
        return lastComparison;
6844
      }
3430 rajveer 6845
      if (isSetSe()) {
6846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6847
        if (lastComparison != 0) {
6848
          return lastComparison;
6849
        }
730 chandransh 6850
      }
6851
      return 0;
6852
    }
6853
 
3430 rajveer 6854
    public _Fields fieldForId(int fieldId) {
6855
      return _Fields.findByThriftId(fieldId);
6856
    }
6857
 
6858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6859
      org.apache.thrift.protocol.TField field;
730 chandransh 6860
      iprot.readStructBegin();
6861
      while (true)
6862
      {
6863
        field = iprot.readFieldBegin();
3430 rajveer 6864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 6865
          break;
6866
        }
3430 rajveer 6867
        switch (field.id) {
6868
          case 0: // SUCCESS
6869
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6870
              this.success = iprot.readString();
6871
            } else { 
6872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6873
            }
6874
            break;
6875
          case 1: // SE
6876
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6877
              this.se = new LogisticsServiceException();
6878
              this.se.read(iprot);
6879
            } else { 
6880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6881
            }
6882
            break;
6883
          default:
6884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 6885
        }
3430 rajveer 6886
        iprot.readFieldEnd();
730 chandransh 6887
      }
6888
      iprot.readStructEnd();
6889
      validate();
6890
    }
6891
 
3430 rajveer 6892
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 6893
      oprot.writeStructBegin(STRUCT_DESC);
6894
 
6895
      if (this.isSetSuccess()) {
6896
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6897
        oprot.writeString(this.success);
6898
        oprot.writeFieldEnd();
6899
      } else if (this.isSetSe()) {
6900
        oprot.writeFieldBegin(SE_FIELD_DESC);
6901
        this.se.write(oprot);
6902
        oprot.writeFieldEnd();
6903
      }
6904
      oprot.writeFieldStop();
6905
      oprot.writeStructEnd();
6906
    }
6907
 
6908
    @Override
6909
    public String toString() {
6910
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
6911
      boolean first = true;
6912
 
6913
      sb.append("success:");
6914
      if (this.success == null) {
6915
        sb.append("null");
6916
      } else {
6917
        sb.append(this.success);
6918
      }
6919
      first = false;
6920
      if (!first) sb.append(", ");
6921
      sb.append("se:");
6922
      if (this.se == null) {
6923
        sb.append("null");
6924
      } else {
6925
        sb.append(this.se);
6926
      }
6927
      first = false;
6928
      sb.append(")");
6929
      return sb.toString();
6930
    }
6931
 
3430 rajveer 6932
    public void validate() throws org.apache.thrift.TException {
730 chandransh 6933
      // check for required fields
6934
    }
6935
 
3430 rajveer 6936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6937
      try {
6938
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6939
      } catch (org.apache.thrift.TException te) {
6940
        throw new java.io.IOException(te);
6941
      }
6942
    }
6943
 
6944
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6945
      try {
6946
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6947
      } catch (org.apache.thrift.TException te) {
6948
        throw new java.io.IOException(te);
6949
      }
6950
    }
6951
 
730 chandransh 6952
  }
6953
 
3430 rajveer 6954
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
6955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 6956
 
3430 rajveer 6957
    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);
6958
    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 6959
 
3430 rajveer 6960
    private long providerId; // required
6961
    private String type; // required
1139 chandransh 6962
 
6963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 6965
      PROVIDER_ID((short)1, "providerId"),
6966
      TYPE((short)2, "type");
1139 chandransh 6967
 
6968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6969
 
6970
      static {
6971
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6972
          byName.put(field.getFieldName(), field);
6973
        }
6974
      }
6975
 
6976
      /**
6977
       * Find the _Fields constant that matches fieldId, or null if its not found.
6978
       */
6979
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6980
        switch(fieldId) {
6981
          case 1: // PROVIDER_ID
6982
            return PROVIDER_ID;
6983
          case 2: // TYPE
6984
            return TYPE;
6985
          default:
6986
            return null;
6987
        }
1139 chandransh 6988
      }
6989
 
6990
      /**
6991
       * Find the _Fields constant that matches fieldId, throwing an exception
6992
       * if it is not found.
6993
       */
6994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6995
        _Fields fields = findByThriftId(fieldId);
6996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6997
        return fields;
6998
      }
6999
 
7000
      /**
7001
       * Find the _Fields constant that matches name, or null if its not found.
7002
       */
7003
      public static _Fields findByName(String name) {
7004
        return byName.get(name);
7005
      }
7006
 
7007
      private final short _thriftId;
7008
      private final String _fieldName;
7009
 
7010
      _Fields(short thriftId, String fieldName) {
7011
        _thriftId = thriftId;
7012
        _fieldName = fieldName;
7013
      }
7014
 
7015
      public short getThriftFieldId() {
7016
        return _thriftId;
7017
      }
7018
 
7019
      public String getFieldName() {
7020
        return _fieldName;
7021
      }
7022
    }
7023
 
7024
    // isset id assignments
7025
    private static final int __PROVIDERID_ISSET_ID = 0;
7026
    private BitSet __isset_bit_vector = new BitSet(1);
7027
 
3430 rajveer 7028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 7029
    static {
3430 rajveer 7030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7031
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7033
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 7037
    }
7038
 
7039
    public getFreeAwbCount_args() {
7040
    }
7041
 
7042
    public getFreeAwbCount_args(
3103 chandransh 7043
      long providerId,
7044
      String type)
1139 chandransh 7045
    {
7046
      this();
7047
      this.providerId = providerId;
7048
      setProviderIdIsSet(true);
3103 chandransh 7049
      this.type = type;
1139 chandransh 7050
    }
7051
 
7052
    /**
7053
     * Performs a deep copy on <i>other</i>.
7054
     */
7055
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
7056
      __isset_bit_vector.clear();
7057
      __isset_bit_vector.or(other.__isset_bit_vector);
7058
      this.providerId = other.providerId;
3103 chandransh 7059
      if (other.isSetType()) {
7060
        this.type = other.type;
7061
      }
1139 chandransh 7062
    }
7063
 
7064
    public getFreeAwbCount_args deepCopy() {
7065
      return new getFreeAwbCount_args(this);
7066
    }
7067
 
3430 rajveer 7068
    @Override
7069
    public void clear() {
7070
      setProviderIdIsSet(false);
7071
      this.providerId = 0;
7072
      this.type = null;
1139 chandransh 7073
    }
7074
 
7075
    public long getProviderId() {
7076
      return this.providerId;
7077
    }
7078
 
3430 rajveer 7079
    public void setProviderId(long providerId) {
1139 chandransh 7080
      this.providerId = providerId;
7081
      setProviderIdIsSet(true);
7082
    }
7083
 
7084
    public void unsetProviderId() {
7085
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
7086
    }
7087
 
3430 rajveer 7088
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 7089
    public boolean isSetProviderId() {
7090
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
7091
    }
7092
 
7093
    public void setProviderIdIsSet(boolean value) {
7094
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
7095
    }
7096
 
3103 chandransh 7097
    public String getType() {
7098
      return this.type;
7099
    }
7100
 
3430 rajveer 7101
    public void setType(String type) {
3103 chandransh 7102
      this.type = type;
7103
    }
7104
 
7105
    public void unsetType() {
7106
      this.type = null;
7107
    }
7108
 
3430 rajveer 7109
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 7110
    public boolean isSetType() {
7111
      return this.type != null;
7112
    }
7113
 
7114
    public void setTypeIsSet(boolean value) {
7115
      if (!value) {
7116
        this.type = null;
7117
      }
7118
    }
7119
 
1139 chandransh 7120
    public void setFieldValue(_Fields field, Object value) {
7121
      switch (field) {
7122
      case PROVIDER_ID:
7123
        if (value == null) {
7124
          unsetProviderId();
7125
        } else {
7126
          setProviderId((Long)value);
7127
        }
7128
        break;
7129
 
3103 chandransh 7130
      case TYPE:
7131
        if (value == null) {
7132
          unsetType();
7133
        } else {
7134
          setType((String)value);
7135
        }
7136
        break;
7137
 
1139 chandransh 7138
      }
7139
    }
7140
 
7141
    public Object getFieldValue(_Fields field) {
7142
      switch (field) {
7143
      case PROVIDER_ID:
3430 rajveer 7144
        return Long.valueOf(getProviderId());
1139 chandransh 7145
 
3103 chandransh 7146
      case TYPE:
7147
        return getType();
7148
 
1139 chandransh 7149
      }
7150
      throw new IllegalStateException();
7151
    }
7152
 
3430 rajveer 7153
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7154
    public boolean isSet(_Fields field) {
7155
      if (field == null) {
7156
        throw new IllegalArgumentException();
7157
      }
1139 chandransh 7158
 
7159
      switch (field) {
7160
      case PROVIDER_ID:
7161
        return isSetProviderId();
3103 chandransh 7162
      case TYPE:
7163
        return isSetType();
1139 chandransh 7164
      }
7165
      throw new IllegalStateException();
7166
    }
7167
 
7168
    @Override
7169
    public boolean equals(Object that) {
7170
      if (that == null)
7171
        return false;
7172
      if (that instanceof getFreeAwbCount_args)
7173
        return this.equals((getFreeAwbCount_args)that);
7174
      return false;
7175
    }
7176
 
7177
    public boolean equals(getFreeAwbCount_args that) {
7178
      if (that == null)
7179
        return false;
7180
 
7181
      boolean this_present_providerId = true;
7182
      boolean that_present_providerId = true;
7183
      if (this_present_providerId || that_present_providerId) {
7184
        if (!(this_present_providerId && that_present_providerId))
7185
          return false;
7186
        if (this.providerId != that.providerId)
7187
          return false;
7188
      }
7189
 
3103 chandransh 7190
      boolean this_present_type = true && this.isSetType();
7191
      boolean that_present_type = true && that.isSetType();
7192
      if (this_present_type || that_present_type) {
7193
        if (!(this_present_type && that_present_type))
7194
          return false;
7195
        if (!this.type.equals(that.type))
7196
          return false;
7197
      }
7198
 
1139 chandransh 7199
      return true;
7200
    }
7201
 
7202
    @Override
7203
    public int hashCode() {
7204
      return 0;
7205
    }
7206
 
7207
    public int compareTo(getFreeAwbCount_args other) {
7208
      if (!getClass().equals(other.getClass())) {
7209
        return getClass().getName().compareTo(other.getClass().getName());
7210
      }
7211
 
7212
      int lastComparison = 0;
7213
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
7214
 
3430 rajveer 7215
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 7216
      if (lastComparison != 0) {
7217
        return lastComparison;
7218
      }
3430 rajveer 7219
      if (isSetProviderId()) {
7220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7221
        if (lastComparison != 0) {
7222
          return lastComparison;
7223
        }
1139 chandransh 7224
      }
3430 rajveer 7225
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 7226
      if (lastComparison != 0) {
7227
        return lastComparison;
7228
      }
3430 rajveer 7229
      if (isSetType()) {
7230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
7231
        if (lastComparison != 0) {
7232
          return lastComparison;
7233
        }
3103 chandransh 7234
      }
1139 chandransh 7235
      return 0;
7236
    }
7237
 
3430 rajveer 7238
    public _Fields fieldForId(int fieldId) {
7239
      return _Fields.findByThriftId(fieldId);
7240
    }
7241
 
7242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7243
      org.apache.thrift.protocol.TField field;
1139 chandransh 7244
      iprot.readStructBegin();
7245
      while (true)
7246
      {
7247
        field = iprot.readFieldBegin();
3430 rajveer 7248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 7249
          break;
7250
        }
3430 rajveer 7251
        switch (field.id) {
7252
          case 1: // PROVIDER_ID
7253
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7254
              this.providerId = iprot.readI64();
7255
              setProviderIdIsSet(true);
7256
            } else { 
7257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7258
            }
7259
            break;
7260
          case 2: // TYPE
7261
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7262
              this.type = iprot.readString();
7263
            } else { 
7264
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7265
            }
7266
            break;
7267
          default:
7268
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 7269
        }
3430 rajveer 7270
        iprot.readFieldEnd();
1139 chandransh 7271
      }
7272
      iprot.readStructEnd();
7273
      validate();
7274
    }
7275
 
3430 rajveer 7276
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 7277
      validate();
7278
 
7279
      oprot.writeStructBegin(STRUCT_DESC);
7280
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7281
      oprot.writeI64(this.providerId);
7282
      oprot.writeFieldEnd();
3103 chandransh 7283
      if (this.type != null) {
7284
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
7285
        oprot.writeString(this.type);
7286
        oprot.writeFieldEnd();
7287
      }
1139 chandransh 7288
      oprot.writeFieldStop();
7289
      oprot.writeStructEnd();
7290
    }
7291
 
7292
    @Override
7293
    public String toString() {
7294
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
7295
      boolean first = true;
7296
 
7297
      sb.append("providerId:");
7298
      sb.append(this.providerId);
7299
      first = false;
3103 chandransh 7300
      if (!first) sb.append(", ");
7301
      sb.append("type:");
7302
      if (this.type == null) {
7303
        sb.append("null");
7304
      } else {
7305
        sb.append(this.type);
7306
      }
7307
      first = false;
1139 chandransh 7308
      sb.append(")");
7309
      return sb.toString();
7310
    }
7311
 
3430 rajveer 7312
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 7313
      // check for required fields
7314
    }
7315
 
3430 rajveer 7316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7317
      try {
7318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7319
      } catch (org.apache.thrift.TException te) {
7320
        throw new java.io.IOException(te);
7321
      }
7322
    }
7323
 
7324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7325
      try {
7326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7327
      } catch (org.apache.thrift.TException te) {
7328
        throw new java.io.IOException(te);
7329
      }
7330
    }
7331
 
1139 chandransh 7332
  }
7333
 
3430 rajveer 7334
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
7335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 7336
 
3430 rajveer 7337
    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 7338
 
3430 rajveer 7339
    private long success; // required
1139 chandransh 7340
 
7341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 7343
      SUCCESS((short)0, "success");
7344
 
7345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7346
 
7347
      static {
7348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7349
          byName.put(field.getFieldName(), field);
7350
        }
7351
      }
7352
 
7353
      /**
7354
       * Find the _Fields constant that matches fieldId, or null if its not found.
7355
       */
7356
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7357
        switch(fieldId) {
7358
          case 0: // SUCCESS
7359
            return SUCCESS;
7360
          default:
7361
            return null;
7362
        }
1139 chandransh 7363
      }
7364
 
7365
      /**
7366
       * Find the _Fields constant that matches fieldId, throwing an exception
7367
       * if it is not found.
7368
       */
7369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7370
        _Fields fields = findByThriftId(fieldId);
7371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7372
        return fields;
7373
      }
7374
 
7375
      /**
7376
       * Find the _Fields constant that matches name, or null if its not found.
7377
       */
7378
      public static _Fields findByName(String name) {
7379
        return byName.get(name);
7380
      }
7381
 
7382
      private final short _thriftId;
7383
      private final String _fieldName;
7384
 
7385
      _Fields(short thriftId, String fieldName) {
7386
        _thriftId = thriftId;
7387
        _fieldName = fieldName;
7388
      }
7389
 
7390
      public short getThriftFieldId() {
7391
        return _thriftId;
7392
      }
7393
 
7394
      public String getFieldName() {
7395
        return _fieldName;
7396
      }
7397
    }
7398
 
7399
    // isset id assignments
7400
    private static final int __SUCCESS_ISSET_ID = 0;
7401
    private BitSet __isset_bit_vector = new BitSet(1);
7402
 
3430 rajveer 7403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 7404
    static {
3430 rajveer 7405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7406
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 7410
    }
7411
 
7412
    public getFreeAwbCount_result() {
7413
    }
7414
 
7415
    public getFreeAwbCount_result(
7416
      long success)
7417
    {
7418
      this();
7419
      this.success = success;
7420
      setSuccessIsSet(true);
7421
    }
7422
 
7423
    /**
7424
     * Performs a deep copy on <i>other</i>.
7425
     */
7426
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
7427
      __isset_bit_vector.clear();
7428
      __isset_bit_vector.or(other.__isset_bit_vector);
7429
      this.success = other.success;
7430
    }
7431
 
7432
    public getFreeAwbCount_result deepCopy() {
7433
      return new getFreeAwbCount_result(this);
7434
    }
7435
 
3430 rajveer 7436
    @Override
7437
    public void clear() {
7438
      setSuccessIsSet(false);
7439
      this.success = 0;
1139 chandransh 7440
    }
7441
 
7442
    public long getSuccess() {
7443
      return this.success;
7444
    }
7445
 
3430 rajveer 7446
    public void setSuccess(long success) {
1139 chandransh 7447
      this.success = success;
7448
      setSuccessIsSet(true);
7449
    }
7450
 
7451
    public void unsetSuccess() {
7452
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7453
    }
7454
 
3430 rajveer 7455
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 7456
    public boolean isSetSuccess() {
7457
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7458
    }
7459
 
7460
    public void setSuccessIsSet(boolean value) {
7461
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7462
    }
7463
 
7464
    public void setFieldValue(_Fields field, Object value) {
7465
      switch (field) {
7466
      case SUCCESS:
7467
        if (value == null) {
7468
          unsetSuccess();
7469
        } else {
7470
          setSuccess((Long)value);
7471
        }
7472
        break;
7473
 
7474
      }
7475
    }
7476
 
7477
    public Object getFieldValue(_Fields field) {
7478
      switch (field) {
7479
      case SUCCESS:
3430 rajveer 7480
        return Long.valueOf(getSuccess());
1139 chandransh 7481
 
7482
      }
7483
      throw new IllegalStateException();
7484
    }
7485
 
3430 rajveer 7486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7487
    public boolean isSet(_Fields field) {
7488
      if (field == null) {
7489
        throw new IllegalArgumentException();
7490
      }
1139 chandransh 7491
 
7492
      switch (field) {
7493
      case SUCCESS:
7494
        return isSetSuccess();
7495
      }
7496
      throw new IllegalStateException();
7497
    }
7498
 
7499
    @Override
7500
    public boolean equals(Object that) {
7501
      if (that == null)
7502
        return false;
7503
      if (that instanceof getFreeAwbCount_result)
7504
        return this.equals((getFreeAwbCount_result)that);
7505
      return false;
7506
    }
7507
 
7508
    public boolean equals(getFreeAwbCount_result that) {
7509
      if (that == null)
7510
        return false;
7511
 
7512
      boolean this_present_success = true;
7513
      boolean that_present_success = true;
7514
      if (this_present_success || that_present_success) {
7515
        if (!(this_present_success && that_present_success))
7516
          return false;
7517
        if (this.success != that.success)
7518
          return false;
7519
      }
7520
 
7521
      return true;
7522
    }
7523
 
7524
    @Override
7525
    public int hashCode() {
7526
      return 0;
7527
    }
7528
 
7529
    public int compareTo(getFreeAwbCount_result other) {
7530
      if (!getClass().equals(other.getClass())) {
7531
        return getClass().getName().compareTo(other.getClass().getName());
7532
      }
7533
 
7534
      int lastComparison = 0;
7535
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
7536
 
3430 rajveer 7537
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 7538
      if (lastComparison != 0) {
7539
        return lastComparison;
7540
      }
3430 rajveer 7541
      if (isSetSuccess()) {
7542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7543
        if (lastComparison != 0) {
7544
          return lastComparison;
7545
        }
1139 chandransh 7546
      }
7547
      return 0;
7548
    }
7549
 
3430 rajveer 7550
    public _Fields fieldForId(int fieldId) {
7551
      return _Fields.findByThriftId(fieldId);
7552
    }
7553
 
7554
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7555
      org.apache.thrift.protocol.TField field;
1139 chandransh 7556
      iprot.readStructBegin();
7557
      while (true)
7558
      {
7559
        field = iprot.readFieldBegin();
3430 rajveer 7560
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 7561
          break;
7562
        }
3430 rajveer 7563
        switch (field.id) {
7564
          case 0: // SUCCESS
7565
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7566
              this.success = iprot.readI64();
7567
              setSuccessIsSet(true);
7568
            } else { 
7569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7570
            }
7571
            break;
7572
          default:
7573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 7574
        }
3430 rajveer 7575
        iprot.readFieldEnd();
1139 chandransh 7576
      }
7577
      iprot.readStructEnd();
7578
      validate();
7579
    }
7580
 
3430 rajveer 7581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 7582
      oprot.writeStructBegin(STRUCT_DESC);
7583
 
7584
      if (this.isSetSuccess()) {
7585
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7586
        oprot.writeI64(this.success);
7587
        oprot.writeFieldEnd();
7588
      }
7589
      oprot.writeFieldStop();
7590
      oprot.writeStructEnd();
7591
    }
7592
 
7593
    @Override
7594
    public String toString() {
7595
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
7596
      boolean first = true;
7597
 
7598
      sb.append("success:");
7599
      sb.append(this.success);
7600
      first = false;
7601
      sb.append(")");
7602
      return sb.toString();
7603
    }
7604
 
3430 rajveer 7605
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 7606
      // check for required fields
7607
    }
7608
 
3430 rajveer 7609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7610
      try {
7611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7612
      } catch (org.apache.thrift.TException te) {
7613
        throw new java.io.IOException(te);
7614
      }
7615
    }
7616
 
7617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7618
      try {
7619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7620
      } catch (org.apache.thrift.TException te) {
7621
        throw new java.io.IOException(te);
7622
      }
7623
    }
7624
 
1139 chandransh 7625
  }
7626
 
3430 rajveer 7627
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
7628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 7629
 
3430 rajveer 7630
    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);
7631
    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 7632
 
3430 rajveer 7633
    private long fromDate; // required
7634
    private long toDate; // required
1730 ankur.sing 7635
 
7636
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7637
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 7638
      FROM_DATE((short)1, "fromDate"),
7639
      TO_DATE((short)2, "toDate");
7640
 
7641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7642
 
7643
      static {
7644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7645
          byName.put(field.getFieldName(), field);
7646
        }
7647
      }
7648
 
7649
      /**
7650
       * Find the _Fields constant that matches fieldId, or null if its not found.
7651
       */
7652
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7653
        switch(fieldId) {
7654
          case 1: // FROM_DATE
7655
            return FROM_DATE;
7656
          case 2: // TO_DATE
7657
            return TO_DATE;
7658
          default:
7659
            return null;
7660
        }
1730 ankur.sing 7661
      }
7662
 
7663
      /**
7664
       * Find the _Fields constant that matches fieldId, throwing an exception
7665
       * if it is not found.
7666
       */
7667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7668
        _Fields fields = findByThriftId(fieldId);
7669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7670
        return fields;
7671
      }
7672
 
7673
      /**
7674
       * Find the _Fields constant that matches name, or null if its not found.
7675
       */
7676
      public static _Fields findByName(String name) {
7677
        return byName.get(name);
7678
      }
7679
 
7680
      private final short _thriftId;
7681
      private final String _fieldName;
7682
 
7683
      _Fields(short thriftId, String fieldName) {
7684
        _thriftId = thriftId;
7685
        _fieldName = fieldName;
7686
      }
7687
 
7688
      public short getThriftFieldId() {
7689
        return _thriftId;
7690
      }
7691
 
7692
      public String getFieldName() {
7693
        return _fieldName;
7694
      }
7695
    }
7696
 
7697
    // isset id assignments
7698
    private static final int __FROMDATE_ISSET_ID = 0;
7699
    private static final int __TODATE_ISSET_ID = 1;
7700
    private BitSet __isset_bit_vector = new BitSet(2);
7701
 
3430 rajveer 7702
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 7703
    static {
3430 rajveer 7704
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7705
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7707
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7708
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7709
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7710
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 7711
    }
7712
 
7713
    public getHolidays_args() {
7714
    }
7715
 
7716
    public getHolidays_args(
7717
      long fromDate,
7718
      long toDate)
7719
    {
7720
      this();
7721
      this.fromDate = fromDate;
7722
      setFromDateIsSet(true);
7723
      this.toDate = toDate;
7724
      setToDateIsSet(true);
7725
    }
7726
 
7727
    /**
7728
     * Performs a deep copy on <i>other</i>.
7729
     */
7730
    public getHolidays_args(getHolidays_args other) {
7731
      __isset_bit_vector.clear();
7732
      __isset_bit_vector.or(other.__isset_bit_vector);
7733
      this.fromDate = other.fromDate;
7734
      this.toDate = other.toDate;
7735
    }
7736
 
7737
    public getHolidays_args deepCopy() {
7738
      return new getHolidays_args(this);
7739
    }
7740
 
3430 rajveer 7741
    @Override
7742
    public void clear() {
7743
      setFromDateIsSet(false);
7744
      this.fromDate = 0;
7745
      setToDateIsSet(false);
7746
      this.toDate = 0;
1730 ankur.sing 7747
    }
7748
 
7749
    public long getFromDate() {
7750
      return this.fromDate;
7751
    }
7752
 
3430 rajveer 7753
    public void setFromDate(long fromDate) {
1730 ankur.sing 7754
      this.fromDate = fromDate;
7755
      setFromDateIsSet(true);
7756
    }
7757
 
7758
    public void unsetFromDate() {
7759
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
7760
    }
7761
 
3430 rajveer 7762
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7763
    public boolean isSetFromDate() {
7764
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
7765
    }
7766
 
7767
    public void setFromDateIsSet(boolean value) {
7768
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
7769
    }
7770
 
7771
    public long getToDate() {
7772
      return this.toDate;
7773
    }
7774
 
3430 rajveer 7775
    public void setToDate(long toDate) {
1730 ankur.sing 7776
      this.toDate = toDate;
7777
      setToDateIsSet(true);
7778
    }
7779
 
7780
    public void unsetToDate() {
7781
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
7782
    }
7783
 
3430 rajveer 7784
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7785
    public boolean isSetToDate() {
7786
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
7787
    }
7788
 
7789
    public void setToDateIsSet(boolean value) {
7790
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
7791
    }
7792
 
7793
    public void setFieldValue(_Fields field, Object value) {
7794
      switch (field) {
7795
      case FROM_DATE:
7796
        if (value == null) {
7797
          unsetFromDate();
7798
        } else {
7799
          setFromDate((Long)value);
7800
        }
7801
        break;
7802
 
7803
      case TO_DATE:
7804
        if (value == null) {
7805
          unsetToDate();
7806
        } else {
7807
          setToDate((Long)value);
7808
        }
7809
        break;
7810
 
7811
      }
7812
    }
7813
 
7814
    public Object getFieldValue(_Fields field) {
7815
      switch (field) {
7816
      case FROM_DATE:
3430 rajveer 7817
        return Long.valueOf(getFromDate());
1730 ankur.sing 7818
 
7819
      case TO_DATE:
3430 rajveer 7820
        return Long.valueOf(getToDate());
1730 ankur.sing 7821
 
7822
      }
7823
      throw new IllegalStateException();
7824
    }
7825
 
3430 rajveer 7826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7827
    public boolean isSet(_Fields field) {
7828
      if (field == null) {
7829
        throw new IllegalArgumentException();
7830
      }
1730 ankur.sing 7831
 
7832
      switch (field) {
7833
      case FROM_DATE:
7834
        return isSetFromDate();
7835
      case TO_DATE:
7836
        return isSetToDate();
7837
      }
7838
      throw new IllegalStateException();
7839
    }
7840
 
7841
    @Override
7842
    public boolean equals(Object that) {
7843
      if (that == null)
7844
        return false;
7845
      if (that instanceof getHolidays_args)
7846
        return this.equals((getHolidays_args)that);
7847
      return false;
7848
    }
7849
 
7850
    public boolean equals(getHolidays_args that) {
7851
      if (that == null)
7852
        return false;
7853
 
7854
      boolean this_present_fromDate = true;
7855
      boolean that_present_fromDate = true;
7856
      if (this_present_fromDate || that_present_fromDate) {
7857
        if (!(this_present_fromDate && that_present_fromDate))
7858
          return false;
7859
        if (this.fromDate != that.fromDate)
7860
          return false;
7861
      }
7862
 
7863
      boolean this_present_toDate = true;
7864
      boolean that_present_toDate = true;
7865
      if (this_present_toDate || that_present_toDate) {
7866
        if (!(this_present_toDate && that_present_toDate))
7867
          return false;
7868
        if (this.toDate != that.toDate)
7869
          return false;
7870
      }
7871
 
7872
      return true;
7873
    }
7874
 
7875
    @Override
7876
    public int hashCode() {
7877
      return 0;
7878
    }
7879
 
7880
    public int compareTo(getHolidays_args other) {
7881
      if (!getClass().equals(other.getClass())) {
7882
        return getClass().getName().compareTo(other.getClass().getName());
7883
      }
7884
 
7885
      int lastComparison = 0;
7886
      getHolidays_args typedOther = (getHolidays_args)other;
7887
 
3430 rajveer 7888
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 7889
      if (lastComparison != 0) {
7890
        return lastComparison;
7891
      }
3430 rajveer 7892
      if (isSetFromDate()) {
7893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
7894
        if (lastComparison != 0) {
7895
          return lastComparison;
7896
        }
1730 ankur.sing 7897
      }
3430 rajveer 7898
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 7899
      if (lastComparison != 0) {
7900
        return lastComparison;
7901
      }
3430 rajveer 7902
      if (isSetToDate()) {
7903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
7904
        if (lastComparison != 0) {
7905
          return lastComparison;
7906
        }
1730 ankur.sing 7907
      }
7908
      return 0;
7909
    }
7910
 
3430 rajveer 7911
    public _Fields fieldForId(int fieldId) {
7912
      return _Fields.findByThriftId(fieldId);
7913
    }
7914
 
7915
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7916
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 7917
      iprot.readStructBegin();
7918
      while (true)
7919
      {
7920
        field = iprot.readFieldBegin();
3430 rajveer 7921
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 7922
          break;
7923
        }
3430 rajveer 7924
        switch (field.id) {
7925
          case 1: // FROM_DATE
7926
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7927
              this.fromDate = iprot.readI64();
7928
              setFromDateIsSet(true);
7929
            } else { 
7930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7931
            }
7932
            break;
7933
          case 2: // TO_DATE
7934
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7935
              this.toDate = iprot.readI64();
7936
              setToDateIsSet(true);
7937
            } else { 
7938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7939
            }
7940
            break;
7941
          default:
7942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 7943
        }
3430 rajveer 7944
        iprot.readFieldEnd();
1730 ankur.sing 7945
      }
7946
      iprot.readStructEnd();
7947
      validate();
7948
    }
7949
 
3430 rajveer 7950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 7951
      validate();
7952
 
7953
      oprot.writeStructBegin(STRUCT_DESC);
7954
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
7955
      oprot.writeI64(this.fromDate);
7956
      oprot.writeFieldEnd();
7957
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
7958
      oprot.writeI64(this.toDate);
7959
      oprot.writeFieldEnd();
7960
      oprot.writeFieldStop();
7961
      oprot.writeStructEnd();
7962
    }
7963
 
7964
    @Override
7965
    public String toString() {
7966
      StringBuilder sb = new StringBuilder("getHolidays_args(");
7967
      boolean first = true;
7968
 
7969
      sb.append("fromDate:");
7970
      sb.append(this.fromDate);
7971
      first = false;
7972
      if (!first) sb.append(", ");
7973
      sb.append("toDate:");
7974
      sb.append(this.toDate);
7975
      first = false;
7976
      sb.append(")");
7977
      return sb.toString();
7978
    }
7979
 
3430 rajveer 7980
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 7981
      // check for required fields
7982
    }
7983
 
3430 rajveer 7984
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7985
      try {
7986
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7987
      } catch (org.apache.thrift.TException te) {
7988
        throw new java.io.IOException(te);
7989
      }
7990
    }
7991
 
7992
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7993
      try {
7994
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7995
        __isset_bit_vector = new BitSet(1);
7996
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7997
      } catch (org.apache.thrift.TException te) {
7998
        throw new java.io.IOException(te);
7999
      }
8000
    }
8001
 
1730 ankur.sing 8002
  }
8003
 
3430 rajveer 8004
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
8005
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 8006
 
3430 rajveer 8007
    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 8008
 
3430 rajveer 8009
    private List<Long> success; // required
1730 ankur.sing 8010
 
8011
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8012
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 8013
      SUCCESS((short)0, "success");
8014
 
8015
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8016
 
8017
      static {
8018
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8019
          byName.put(field.getFieldName(), field);
8020
        }
8021
      }
8022
 
8023
      /**
8024
       * Find the _Fields constant that matches fieldId, or null if its not found.
8025
       */
8026
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8027
        switch(fieldId) {
8028
          case 0: // SUCCESS
8029
            return SUCCESS;
8030
          default:
8031
            return null;
8032
        }
1730 ankur.sing 8033
      }
8034
 
8035
      /**
8036
       * Find the _Fields constant that matches fieldId, throwing an exception
8037
       * if it is not found.
8038
       */
8039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8040
        _Fields fields = findByThriftId(fieldId);
8041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8042
        return fields;
8043
      }
8044
 
8045
      /**
8046
       * Find the _Fields constant that matches name, or null if its not found.
8047
       */
8048
      public static _Fields findByName(String name) {
8049
        return byName.get(name);
8050
      }
8051
 
8052
      private final short _thriftId;
8053
      private final String _fieldName;
8054
 
8055
      _Fields(short thriftId, String fieldName) {
8056
        _thriftId = thriftId;
8057
        _fieldName = fieldName;
8058
      }
8059
 
8060
      public short getThriftFieldId() {
8061
        return _thriftId;
8062
      }
8063
 
8064
      public String getFieldName() {
8065
        return _fieldName;
8066
      }
8067
    }
8068
 
8069
    // isset id assignments
8070
 
3430 rajveer 8071
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 8072
    static {
3430 rajveer 8073
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8074
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8075
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8076
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
8077
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8078
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 8079
    }
8080
 
8081
    public getHolidays_result() {
8082
    }
8083
 
8084
    public getHolidays_result(
8085
      List<Long> success)
8086
    {
8087
      this();
8088
      this.success = success;
8089
    }
8090
 
8091
    /**
8092
     * Performs a deep copy on <i>other</i>.
8093
     */
8094
    public getHolidays_result(getHolidays_result other) {
8095
      if (other.isSetSuccess()) {
8096
        List<Long> __this__success = new ArrayList<Long>();
8097
        for (Long other_element : other.success) {
8098
          __this__success.add(other_element);
8099
        }
8100
        this.success = __this__success;
8101
      }
8102
    }
8103
 
8104
    public getHolidays_result deepCopy() {
8105
      return new getHolidays_result(this);
8106
    }
8107
 
3430 rajveer 8108
    @Override
8109
    public void clear() {
8110
      this.success = null;
1730 ankur.sing 8111
    }
8112
 
8113
    public int getSuccessSize() {
8114
      return (this.success == null) ? 0 : this.success.size();
8115
    }
8116
 
8117
    public java.util.Iterator<Long> getSuccessIterator() {
8118
      return (this.success == null) ? null : this.success.iterator();
8119
    }
8120
 
8121
    public void addToSuccess(long elem) {
8122
      if (this.success == null) {
8123
        this.success = new ArrayList<Long>();
8124
      }
8125
      this.success.add(elem);
8126
    }
8127
 
8128
    public List<Long> getSuccess() {
8129
      return this.success;
8130
    }
8131
 
3430 rajveer 8132
    public void setSuccess(List<Long> success) {
1730 ankur.sing 8133
      this.success = success;
8134
    }
8135
 
8136
    public void unsetSuccess() {
8137
      this.success = null;
8138
    }
8139
 
3430 rajveer 8140
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 8141
    public boolean isSetSuccess() {
8142
      return this.success != null;
8143
    }
8144
 
8145
    public void setSuccessIsSet(boolean value) {
8146
      if (!value) {
8147
        this.success = null;
8148
      }
8149
    }
8150
 
8151
    public void setFieldValue(_Fields field, Object value) {
8152
      switch (field) {
8153
      case SUCCESS:
8154
        if (value == null) {
8155
          unsetSuccess();
8156
        } else {
8157
          setSuccess((List<Long>)value);
8158
        }
8159
        break;
8160
 
8161
      }
8162
    }
8163
 
8164
    public Object getFieldValue(_Fields field) {
8165
      switch (field) {
8166
      case SUCCESS:
8167
        return getSuccess();
8168
 
8169
      }
8170
      throw new IllegalStateException();
8171
    }
8172
 
3430 rajveer 8173
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8174
    public boolean isSet(_Fields field) {
8175
      if (field == null) {
8176
        throw new IllegalArgumentException();
8177
      }
1730 ankur.sing 8178
 
8179
      switch (field) {
8180
      case SUCCESS:
8181
        return isSetSuccess();
8182
      }
8183
      throw new IllegalStateException();
8184
    }
8185
 
8186
    @Override
8187
    public boolean equals(Object that) {
8188
      if (that == null)
8189
        return false;
8190
      if (that instanceof getHolidays_result)
8191
        return this.equals((getHolidays_result)that);
8192
      return false;
8193
    }
8194
 
8195
    public boolean equals(getHolidays_result that) {
8196
      if (that == null)
8197
        return false;
8198
 
8199
      boolean this_present_success = true && this.isSetSuccess();
8200
      boolean that_present_success = true && that.isSetSuccess();
8201
      if (this_present_success || that_present_success) {
8202
        if (!(this_present_success && that_present_success))
8203
          return false;
8204
        if (!this.success.equals(that.success))
8205
          return false;
8206
      }
8207
 
8208
      return true;
8209
    }
8210
 
8211
    @Override
8212
    public int hashCode() {
8213
      return 0;
8214
    }
8215
 
8216
    public int compareTo(getHolidays_result other) {
8217
      if (!getClass().equals(other.getClass())) {
8218
        return getClass().getName().compareTo(other.getClass().getName());
8219
      }
8220
 
8221
      int lastComparison = 0;
8222
      getHolidays_result typedOther = (getHolidays_result)other;
8223
 
3430 rajveer 8224
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 8225
      if (lastComparison != 0) {
8226
        return lastComparison;
8227
      }
3430 rajveer 8228
      if (isSetSuccess()) {
8229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8230
        if (lastComparison != 0) {
8231
          return lastComparison;
8232
        }
1730 ankur.sing 8233
      }
8234
      return 0;
8235
    }
8236
 
3430 rajveer 8237
    public _Fields fieldForId(int fieldId) {
8238
      return _Fields.findByThriftId(fieldId);
8239
    }
8240
 
8241
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8242
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 8243
      iprot.readStructBegin();
8244
      while (true)
8245
      {
8246
        field = iprot.readFieldBegin();
3430 rajveer 8247
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 8248
          break;
8249
        }
3430 rajveer 8250
        switch (field.id) {
8251
          case 0: // SUCCESS
8252
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8253
              {
8254
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
8255
                this.success = new ArrayList<Long>(_list13.size);
8256
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 8257
                {
3430 rajveer 8258
                  long _elem15; // required
8259
                  _elem15 = iprot.readI64();
8260
                  this.success.add(_elem15);
1730 ankur.sing 8261
                }
3430 rajveer 8262
                iprot.readListEnd();
1730 ankur.sing 8263
              }
3430 rajveer 8264
            } else { 
8265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8266
            }
8267
            break;
8268
          default:
8269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 8270
        }
3430 rajveer 8271
        iprot.readFieldEnd();
1730 ankur.sing 8272
      }
8273
      iprot.readStructEnd();
8274
      validate();
8275
    }
8276
 
3430 rajveer 8277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 8278
      oprot.writeStructBegin(STRUCT_DESC);
8279
 
8280
      if (this.isSetSuccess()) {
8281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8282
        {
3430 rajveer 8283
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 8284
          for (long _iter16 : this.success)
1730 ankur.sing 8285
          {
3044 chandransh 8286
            oprot.writeI64(_iter16);
1730 ankur.sing 8287
          }
8288
          oprot.writeListEnd();
8289
        }
8290
        oprot.writeFieldEnd();
8291
      }
8292
      oprot.writeFieldStop();
8293
      oprot.writeStructEnd();
8294
    }
8295
 
8296
    @Override
8297
    public String toString() {
8298
      StringBuilder sb = new StringBuilder("getHolidays_result(");
8299
      boolean first = true;
8300
 
8301
      sb.append("success:");
8302
      if (this.success == null) {
8303
        sb.append("null");
8304
      } else {
8305
        sb.append(this.success);
8306
      }
8307
      first = false;
8308
      sb.append(")");
8309
      return sb.toString();
8310
    }
8311
 
3430 rajveer 8312
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 8313
      // check for required fields
8314
    }
8315
 
3430 rajveer 8316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8317
      try {
8318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8319
      } catch (org.apache.thrift.TException te) {
8320
        throw new java.io.IOException(te);
8321
      }
8322
    }
8323
 
8324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8325
      try {
8326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8327
      } catch (org.apache.thrift.TException te) {
8328
        throw new java.io.IOException(te);
8329
      }
8330
    }
8331
 
1730 ankur.sing 8332
  }
8333
 
4934 amit.gupta 8334
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
8335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
8336
 
8337
    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);
8338
    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);
8339
    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);
8340
 
8341
    private long catalogItemId; // required
8342
    private String destination_pin; // required
8343
    private DeliveryType type; // required
8344
 
8345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8347
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
8348
      DESTINATION_PIN((short)2, "destination_pin"),
8349
      /**
8350
       * 
8351
       * @see DeliveryType
8352
       */
8353
      TYPE((short)3, "type");
8354
 
8355
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8356
 
8357
      static {
8358
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8359
          byName.put(field.getFieldName(), field);
8360
        }
8361
      }
8362
 
8363
      /**
8364
       * Find the _Fields constant that matches fieldId, or null if its not found.
8365
       */
8366
      public static _Fields findByThriftId(int fieldId) {
8367
        switch(fieldId) {
8368
          case 1: // CATALOG_ITEM_ID
8369
            return CATALOG_ITEM_ID;
8370
          case 2: // DESTINATION_PIN
8371
            return DESTINATION_PIN;
8372
          case 3: // TYPE
8373
            return TYPE;
8374
          default:
8375
            return null;
8376
        }
8377
      }
8378
 
8379
      /**
8380
       * Find the _Fields constant that matches fieldId, throwing an exception
8381
       * if it is not found.
8382
       */
8383
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8384
        _Fields fields = findByThriftId(fieldId);
8385
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8386
        return fields;
8387
      }
8388
 
8389
      /**
8390
       * Find the _Fields constant that matches name, or null if its not found.
8391
       */
8392
      public static _Fields findByName(String name) {
8393
        return byName.get(name);
8394
      }
8395
 
8396
      private final short _thriftId;
8397
      private final String _fieldName;
8398
 
8399
      _Fields(short thriftId, String fieldName) {
8400
        _thriftId = thriftId;
8401
        _fieldName = fieldName;
8402
      }
8403
 
8404
      public short getThriftFieldId() {
8405
        return _thriftId;
8406
      }
8407
 
8408
      public String getFieldName() {
8409
        return _fieldName;
8410
      }
8411
    }
8412
 
8413
    // isset id assignments
8414
    private static final int __CATALOGITEMID_ISSET_ID = 0;
8415
    private BitSet __isset_bit_vector = new BitSet(1);
8416
 
8417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8418
    static {
8419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8420
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8422
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8424
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8425
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
8426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
8428
    }
8429
 
8430
    public getEntityLogisticsEstimation_args() {
8431
    }
8432
 
8433
    public getEntityLogisticsEstimation_args(
8434
      long catalogItemId,
8435
      String destination_pin,
8436
      DeliveryType type)
8437
    {
8438
      this();
8439
      this.catalogItemId = catalogItemId;
8440
      setCatalogItemIdIsSet(true);
8441
      this.destination_pin = destination_pin;
8442
      this.type = type;
8443
    }
8444
 
8445
    /**
8446
     * Performs a deep copy on <i>other</i>.
8447
     */
8448
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
8449
      __isset_bit_vector.clear();
8450
      __isset_bit_vector.or(other.__isset_bit_vector);
8451
      this.catalogItemId = other.catalogItemId;
8452
      if (other.isSetDestination_pin()) {
8453
        this.destination_pin = other.destination_pin;
8454
      }
8455
      if (other.isSetType()) {
8456
        this.type = other.type;
8457
      }
8458
    }
8459
 
8460
    public getEntityLogisticsEstimation_args deepCopy() {
8461
      return new getEntityLogisticsEstimation_args(this);
8462
    }
8463
 
8464
    @Override
8465
    public void clear() {
8466
      setCatalogItemIdIsSet(false);
8467
      this.catalogItemId = 0;
8468
      this.destination_pin = null;
8469
      this.type = null;
8470
    }
8471
 
8472
    public long getCatalogItemId() {
8473
      return this.catalogItemId;
8474
    }
8475
 
8476
    public void setCatalogItemId(long catalogItemId) {
8477
      this.catalogItemId = catalogItemId;
8478
      setCatalogItemIdIsSet(true);
8479
    }
8480
 
8481
    public void unsetCatalogItemId() {
8482
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
8483
    }
8484
 
8485
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
8486
    public boolean isSetCatalogItemId() {
8487
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
8488
    }
8489
 
8490
    public void setCatalogItemIdIsSet(boolean value) {
8491
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
8492
    }
8493
 
8494
    public String getDestination_pin() {
8495
      return this.destination_pin;
8496
    }
8497
 
8498
    public void setDestination_pin(String destination_pin) {
8499
      this.destination_pin = destination_pin;
8500
    }
8501
 
8502
    public void unsetDestination_pin() {
8503
      this.destination_pin = null;
8504
    }
8505
 
8506
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
8507
    public boolean isSetDestination_pin() {
8508
      return this.destination_pin != null;
8509
    }
8510
 
8511
    public void setDestination_pinIsSet(boolean value) {
8512
      if (!value) {
8513
        this.destination_pin = null;
8514
      }
8515
    }
8516
 
8517
    /**
8518
     * 
8519
     * @see DeliveryType
8520
     */
8521
    public DeliveryType getType() {
8522
      return this.type;
8523
    }
8524
 
8525
    /**
8526
     * 
8527
     * @see DeliveryType
8528
     */
8529
    public void setType(DeliveryType type) {
8530
      this.type = type;
8531
    }
8532
 
8533
    public void unsetType() {
8534
      this.type = null;
8535
    }
8536
 
8537
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
8538
    public boolean isSetType() {
8539
      return this.type != null;
8540
    }
8541
 
8542
    public void setTypeIsSet(boolean value) {
8543
      if (!value) {
8544
        this.type = null;
8545
      }
8546
    }
8547
 
8548
    public void setFieldValue(_Fields field, Object value) {
8549
      switch (field) {
8550
      case CATALOG_ITEM_ID:
8551
        if (value == null) {
8552
          unsetCatalogItemId();
8553
        } else {
8554
          setCatalogItemId((Long)value);
8555
        }
8556
        break;
8557
 
8558
      case DESTINATION_PIN:
8559
        if (value == null) {
8560
          unsetDestination_pin();
8561
        } else {
8562
          setDestination_pin((String)value);
8563
        }
8564
        break;
8565
 
8566
      case TYPE:
8567
        if (value == null) {
8568
          unsetType();
8569
        } else {
8570
          setType((DeliveryType)value);
8571
        }
8572
        break;
8573
 
8574
      }
8575
    }
8576
 
8577
    public Object getFieldValue(_Fields field) {
8578
      switch (field) {
8579
      case CATALOG_ITEM_ID:
8580
        return Long.valueOf(getCatalogItemId());
8581
 
8582
      case DESTINATION_PIN:
8583
        return getDestination_pin();
8584
 
8585
      case TYPE:
8586
        return getType();
8587
 
8588
      }
8589
      throw new IllegalStateException();
8590
    }
8591
 
8592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8593
    public boolean isSet(_Fields field) {
8594
      if (field == null) {
8595
        throw new IllegalArgumentException();
8596
      }
8597
 
8598
      switch (field) {
8599
      case CATALOG_ITEM_ID:
8600
        return isSetCatalogItemId();
8601
      case DESTINATION_PIN:
8602
        return isSetDestination_pin();
8603
      case TYPE:
8604
        return isSetType();
8605
      }
8606
      throw new IllegalStateException();
8607
    }
8608
 
8609
    @Override
8610
    public boolean equals(Object that) {
8611
      if (that == null)
8612
        return false;
8613
      if (that instanceof getEntityLogisticsEstimation_args)
8614
        return this.equals((getEntityLogisticsEstimation_args)that);
8615
      return false;
8616
    }
8617
 
8618
    public boolean equals(getEntityLogisticsEstimation_args that) {
8619
      if (that == null)
8620
        return false;
8621
 
8622
      boolean this_present_catalogItemId = true;
8623
      boolean that_present_catalogItemId = true;
8624
      if (this_present_catalogItemId || that_present_catalogItemId) {
8625
        if (!(this_present_catalogItemId && that_present_catalogItemId))
8626
          return false;
8627
        if (this.catalogItemId != that.catalogItemId)
8628
          return false;
8629
      }
8630
 
8631
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
8632
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
8633
      if (this_present_destination_pin || that_present_destination_pin) {
8634
        if (!(this_present_destination_pin && that_present_destination_pin))
8635
          return false;
8636
        if (!this.destination_pin.equals(that.destination_pin))
8637
          return false;
8638
      }
8639
 
8640
      boolean this_present_type = true && this.isSetType();
8641
      boolean that_present_type = true && that.isSetType();
8642
      if (this_present_type || that_present_type) {
8643
        if (!(this_present_type && that_present_type))
8644
          return false;
8645
        if (!this.type.equals(that.type))
8646
          return false;
8647
      }
8648
 
8649
      return true;
8650
    }
8651
 
8652
    @Override
8653
    public int hashCode() {
8654
      return 0;
8655
    }
8656
 
8657
    public int compareTo(getEntityLogisticsEstimation_args other) {
8658
      if (!getClass().equals(other.getClass())) {
8659
        return getClass().getName().compareTo(other.getClass().getName());
8660
      }
8661
 
8662
      int lastComparison = 0;
8663
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
8664
 
8665
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
8666
      if (lastComparison != 0) {
8667
        return lastComparison;
8668
      }
8669
      if (isSetCatalogItemId()) {
8670
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
8671
        if (lastComparison != 0) {
8672
          return lastComparison;
8673
        }
8674
      }
8675
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
8676
      if (lastComparison != 0) {
8677
        return lastComparison;
8678
      }
8679
      if (isSetDestination_pin()) {
8680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
8681
        if (lastComparison != 0) {
8682
          return lastComparison;
8683
        }
8684
      }
8685
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
8686
      if (lastComparison != 0) {
8687
        return lastComparison;
8688
      }
8689
      if (isSetType()) {
8690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
8691
        if (lastComparison != 0) {
8692
          return lastComparison;
8693
        }
8694
      }
8695
      return 0;
8696
    }
8697
 
8698
    public _Fields fieldForId(int fieldId) {
8699
      return _Fields.findByThriftId(fieldId);
8700
    }
8701
 
8702
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8703
      org.apache.thrift.protocol.TField field;
8704
      iprot.readStructBegin();
8705
      while (true)
8706
      {
8707
        field = iprot.readFieldBegin();
8708
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8709
          break;
8710
        }
8711
        switch (field.id) {
8712
          case 1: // CATALOG_ITEM_ID
8713
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8714
              this.catalogItemId = iprot.readI64();
8715
              setCatalogItemIdIsSet(true);
8716
            } else { 
8717
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8718
            }
8719
            break;
8720
          case 2: // DESTINATION_PIN
8721
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8722
              this.destination_pin = iprot.readString();
8723
            } else { 
8724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8725
            }
8726
            break;
8727
          case 3: // TYPE
8728
            if (field.type == org.apache.thrift.protocol.TType.I32) {
8729
              this.type = DeliveryType.findByValue(iprot.readI32());
8730
            } else { 
8731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8732
            }
8733
            break;
8734
          default:
8735
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8736
        }
8737
        iprot.readFieldEnd();
8738
      }
8739
      iprot.readStructEnd();
8740
      validate();
8741
    }
8742
 
8743
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8744
      validate();
8745
 
8746
      oprot.writeStructBegin(STRUCT_DESC);
8747
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
8748
      oprot.writeI64(this.catalogItemId);
8749
      oprot.writeFieldEnd();
8750
      if (this.destination_pin != null) {
8751
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
8752
        oprot.writeString(this.destination_pin);
8753
        oprot.writeFieldEnd();
8754
      }
8755
      if (this.type != null) {
8756
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8757
        oprot.writeI32(this.type.getValue());
8758
        oprot.writeFieldEnd();
8759
      }
8760
      oprot.writeFieldStop();
8761
      oprot.writeStructEnd();
8762
    }
8763
 
8764
    @Override
8765
    public String toString() {
8766
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
8767
      boolean first = true;
8768
 
8769
      sb.append("catalogItemId:");
8770
      sb.append(this.catalogItemId);
8771
      first = false;
8772
      if (!first) sb.append(", ");
8773
      sb.append("destination_pin:");
8774
      if (this.destination_pin == null) {
8775
        sb.append("null");
8776
      } else {
8777
        sb.append(this.destination_pin);
8778
      }
8779
      first = false;
8780
      if (!first) sb.append(", ");
8781
      sb.append("type:");
8782
      if (this.type == null) {
8783
        sb.append("null");
8784
      } else {
8785
        sb.append(this.type);
8786
      }
8787
      first = false;
8788
      sb.append(")");
8789
      return sb.toString();
8790
    }
8791
 
8792
    public void validate() throws org.apache.thrift.TException {
8793
      // check for required fields
8794
    }
8795
 
8796
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8797
      try {
8798
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8799
      } catch (org.apache.thrift.TException te) {
8800
        throw new java.io.IOException(te);
8801
      }
8802
    }
8803
 
8804
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8805
      try {
8806
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8807
      } catch (org.apache.thrift.TException te) {
8808
        throw new java.io.IOException(te);
8809
      }
8810
    }
8811
 
8812
  }
8813
 
8814
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
8815
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
8816
 
8817
    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);
8818
    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);
8819
 
8820
    private List<Long> success; // required
8821
    private LogisticsServiceException se; // required
8822
 
8823
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8824
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8825
      SUCCESS((short)0, "success"),
8826
      SE((short)1, "se");
8827
 
8828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8829
 
8830
      static {
8831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8832
          byName.put(field.getFieldName(), field);
8833
        }
8834
      }
8835
 
8836
      /**
8837
       * Find the _Fields constant that matches fieldId, or null if its not found.
8838
       */
8839
      public static _Fields findByThriftId(int fieldId) {
8840
        switch(fieldId) {
8841
          case 0: // SUCCESS
8842
            return SUCCESS;
8843
          case 1: // SE
8844
            return SE;
8845
          default:
8846
            return null;
8847
        }
8848
      }
8849
 
8850
      /**
8851
       * Find the _Fields constant that matches fieldId, throwing an exception
8852
       * if it is not found.
8853
       */
8854
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8855
        _Fields fields = findByThriftId(fieldId);
8856
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8857
        return fields;
8858
      }
8859
 
8860
      /**
8861
       * Find the _Fields constant that matches name, or null if its not found.
8862
       */
8863
      public static _Fields findByName(String name) {
8864
        return byName.get(name);
8865
      }
8866
 
8867
      private final short _thriftId;
8868
      private final String _fieldName;
8869
 
8870
      _Fields(short thriftId, String fieldName) {
8871
        _thriftId = thriftId;
8872
        _fieldName = fieldName;
8873
      }
8874
 
8875
      public short getThriftFieldId() {
8876
        return _thriftId;
8877
      }
8878
 
8879
      public String getFieldName() {
8880
        return _fieldName;
8881
      }
8882
    }
8883
 
8884
    // isset id assignments
8885
 
8886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8887
    static {
8888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8889
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8890
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8891
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
8892
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
8896
    }
8897
 
8898
    public getEntityLogisticsEstimation_result() {
8899
    }
8900
 
8901
    public getEntityLogisticsEstimation_result(
8902
      List<Long> success,
8903
      LogisticsServiceException se)
8904
    {
8905
      this();
8906
      this.success = success;
8907
      this.se = se;
8908
    }
8909
 
8910
    /**
8911
     * Performs a deep copy on <i>other</i>.
8912
     */
8913
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
8914
      if (other.isSetSuccess()) {
8915
        List<Long> __this__success = new ArrayList<Long>();
8916
        for (Long other_element : other.success) {
8917
          __this__success.add(other_element);
8918
        }
8919
        this.success = __this__success;
8920
      }
8921
      if (other.isSetSe()) {
8922
        this.se = new LogisticsServiceException(other.se);
8923
      }
8924
    }
8925
 
8926
    public getEntityLogisticsEstimation_result deepCopy() {
8927
      return new getEntityLogisticsEstimation_result(this);
8928
    }
8929
 
8930
    @Override
8931
    public void clear() {
8932
      this.success = null;
8933
      this.se = null;
8934
    }
8935
 
8936
    public int getSuccessSize() {
8937
      return (this.success == null) ? 0 : this.success.size();
8938
    }
8939
 
8940
    public java.util.Iterator<Long> getSuccessIterator() {
8941
      return (this.success == null) ? null : this.success.iterator();
8942
    }
8943
 
8944
    public void addToSuccess(long elem) {
8945
      if (this.success == null) {
8946
        this.success = new ArrayList<Long>();
8947
      }
8948
      this.success.add(elem);
8949
    }
8950
 
8951
    public List<Long> getSuccess() {
8952
      return this.success;
8953
    }
8954
 
8955
    public void setSuccess(List<Long> success) {
8956
      this.success = success;
8957
    }
8958
 
8959
    public void unsetSuccess() {
8960
      this.success = null;
8961
    }
8962
 
8963
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8964
    public boolean isSetSuccess() {
8965
      return this.success != null;
8966
    }
8967
 
8968
    public void setSuccessIsSet(boolean value) {
8969
      if (!value) {
8970
        this.success = null;
8971
      }
8972
    }
8973
 
8974
    public LogisticsServiceException getSe() {
8975
      return this.se;
8976
    }
8977
 
8978
    public void setSe(LogisticsServiceException se) {
8979
      this.se = se;
8980
    }
8981
 
8982
    public void unsetSe() {
8983
      this.se = null;
8984
    }
8985
 
8986
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8987
    public boolean isSetSe() {
8988
      return this.se != null;
8989
    }
8990
 
8991
    public void setSeIsSet(boolean value) {
8992
      if (!value) {
8993
        this.se = null;
8994
      }
8995
    }
8996
 
8997
    public void setFieldValue(_Fields field, Object value) {
8998
      switch (field) {
8999
      case SUCCESS:
9000
        if (value == null) {
9001
          unsetSuccess();
9002
        } else {
9003
          setSuccess((List<Long>)value);
9004
        }
9005
        break;
9006
 
9007
      case SE:
9008
        if (value == null) {
9009
          unsetSe();
9010
        } else {
9011
          setSe((LogisticsServiceException)value);
9012
        }
9013
        break;
9014
 
9015
      }
9016
    }
9017
 
9018
    public Object getFieldValue(_Fields field) {
9019
      switch (field) {
9020
      case SUCCESS:
9021
        return getSuccess();
9022
 
9023
      case SE:
9024
        return getSe();
9025
 
9026
      }
9027
      throw new IllegalStateException();
9028
    }
9029
 
9030
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9031
    public boolean isSet(_Fields field) {
9032
      if (field == null) {
9033
        throw new IllegalArgumentException();
9034
      }
9035
 
9036
      switch (field) {
9037
      case SUCCESS:
9038
        return isSetSuccess();
9039
      case SE:
9040
        return isSetSe();
9041
      }
9042
      throw new IllegalStateException();
9043
    }
9044
 
9045
    @Override
9046
    public boolean equals(Object that) {
9047
      if (that == null)
9048
        return false;
9049
      if (that instanceof getEntityLogisticsEstimation_result)
9050
        return this.equals((getEntityLogisticsEstimation_result)that);
9051
      return false;
9052
    }
9053
 
9054
    public boolean equals(getEntityLogisticsEstimation_result that) {
9055
      if (that == null)
9056
        return false;
9057
 
9058
      boolean this_present_success = true && this.isSetSuccess();
9059
      boolean that_present_success = true && that.isSetSuccess();
9060
      if (this_present_success || that_present_success) {
9061
        if (!(this_present_success && that_present_success))
9062
          return false;
9063
        if (!this.success.equals(that.success))
9064
          return false;
9065
      }
9066
 
9067
      boolean this_present_se = true && this.isSetSe();
9068
      boolean that_present_se = true && that.isSetSe();
9069
      if (this_present_se || that_present_se) {
9070
        if (!(this_present_se && that_present_se))
9071
          return false;
9072
        if (!this.se.equals(that.se))
9073
          return false;
9074
      }
9075
 
9076
      return true;
9077
    }
9078
 
9079
    @Override
9080
    public int hashCode() {
9081
      return 0;
9082
    }
9083
 
9084
    public int compareTo(getEntityLogisticsEstimation_result other) {
9085
      if (!getClass().equals(other.getClass())) {
9086
        return getClass().getName().compareTo(other.getClass().getName());
9087
      }
9088
 
9089
      int lastComparison = 0;
9090
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
9091
 
9092
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9093
      if (lastComparison != 0) {
9094
        return lastComparison;
9095
      }
9096
      if (isSetSuccess()) {
9097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9098
        if (lastComparison != 0) {
9099
          return lastComparison;
9100
        }
9101
      }
9102
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
9103
      if (lastComparison != 0) {
9104
        return lastComparison;
9105
      }
9106
      if (isSetSe()) {
9107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9108
        if (lastComparison != 0) {
9109
          return lastComparison;
9110
        }
9111
      }
9112
      return 0;
9113
    }
9114
 
9115
    public _Fields fieldForId(int fieldId) {
9116
      return _Fields.findByThriftId(fieldId);
9117
    }
9118
 
9119
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9120
      org.apache.thrift.protocol.TField field;
9121
      iprot.readStructBegin();
9122
      while (true)
9123
      {
9124
        field = iprot.readFieldBegin();
9125
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9126
          break;
9127
        }
9128
        switch (field.id) {
9129
          case 0: // SUCCESS
9130
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9131
              {
9132
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
9133
                this.success = new ArrayList<Long>(_list17.size);
9134
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
9135
                {
9136
                  long _elem19; // required
9137
                  _elem19 = iprot.readI64();
9138
                  this.success.add(_elem19);
9139
                }
9140
                iprot.readListEnd();
9141
              }
9142
            } else { 
9143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9144
            }
9145
            break;
9146
          case 1: // SE
9147
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9148
              this.se = new LogisticsServiceException();
9149
              this.se.read(iprot);
9150
            } else { 
9151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9152
            }
9153
            break;
9154
          default:
9155
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9156
        }
9157
        iprot.readFieldEnd();
9158
      }
9159
      iprot.readStructEnd();
9160
      validate();
9161
    }
9162
 
9163
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9164
      oprot.writeStructBegin(STRUCT_DESC);
9165
 
9166
      if (this.isSetSuccess()) {
9167
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9168
        {
9169
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
9170
          for (long _iter20 : this.success)
9171
          {
9172
            oprot.writeI64(_iter20);
9173
          }
9174
          oprot.writeListEnd();
9175
        }
9176
        oprot.writeFieldEnd();
9177
      } else if (this.isSetSe()) {
9178
        oprot.writeFieldBegin(SE_FIELD_DESC);
9179
        this.se.write(oprot);
9180
        oprot.writeFieldEnd();
9181
      }
9182
      oprot.writeFieldStop();
9183
      oprot.writeStructEnd();
9184
    }
9185
 
9186
    @Override
9187
    public String toString() {
9188
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
9189
      boolean first = true;
9190
 
9191
      sb.append("success:");
9192
      if (this.success == null) {
9193
        sb.append("null");
9194
      } else {
9195
        sb.append(this.success);
9196
      }
9197
      first = false;
9198
      if (!first) sb.append(", ");
9199
      sb.append("se:");
9200
      if (this.se == null) {
9201
        sb.append("null");
9202
      } else {
9203
        sb.append(this.se);
9204
      }
9205
      first = false;
9206
      sb.append(")");
9207
      return sb.toString();
9208
    }
9209
 
9210
    public void validate() throws org.apache.thrift.TException {
9211
      // check for required fields
9212
    }
9213
 
9214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9215
      try {
9216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9217
      } catch (org.apache.thrift.TException te) {
9218
        throw new java.io.IOException(te);
9219
      }
9220
    }
9221
 
9222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9223
      try {
9224
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9225
      } catch (org.apache.thrift.TException te) {
9226
        throw new java.io.IOException(te);
9227
      }
9228
    }
9229
 
9230
  }
9231
 
5527 anupam.sin 9232
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
9233
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
9234
 
9235
    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);
9236
 
9237
    private long pickUp; // required
9238
 
9239
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9240
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9241
      PICK_UP((short)1, "pickUp");
9242
 
9243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9244
 
9245
      static {
9246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9247
          byName.put(field.getFieldName(), field);
9248
        }
9249
      }
9250
 
9251
      /**
9252
       * Find the _Fields constant that matches fieldId, or null if its not found.
9253
       */
9254
      public static _Fields findByThriftId(int fieldId) {
9255
        switch(fieldId) {
9256
          case 1: // PICK_UP
9257
            return PICK_UP;
9258
          default:
9259
            return null;
9260
        }
9261
      }
9262
 
9263
      /**
9264
       * Find the _Fields constant that matches fieldId, throwing an exception
9265
       * if it is not found.
9266
       */
9267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9268
        _Fields fields = findByThriftId(fieldId);
9269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9270
        return fields;
9271
      }
9272
 
9273
      /**
9274
       * Find the _Fields constant that matches name, or null if its not found.
9275
       */
9276
      public static _Fields findByName(String name) {
9277
        return byName.get(name);
9278
      }
9279
 
9280
      private final short _thriftId;
9281
      private final String _fieldName;
9282
 
9283
      _Fields(short thriftId, String fieldName) {
9284
        _thriftId = thriftId;
9285
        _fieldName = fieldName;
9286
      }
9287
 
9288
      public short getThriftFieldId() {
9289
        return _thriftId;
9290
      }
9291
 
9292
      public String getFieldName() {
9293
        return _fieldName;
9294
      }
9295
    }
9296
 
9297
    // isset id assignments
9298
    private static final int __PICKUP_ISSET_ID = 0;
9299
    private BitSet __isset_bit_vector = new BitSet(1);
9300
 
9301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9302
    static {
9303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9304
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9306
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9307
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
9308
    }
9309
 
9310
    public getProviderForPickupType_args() {
9311
    }
9312
 
9313
    public getProviderForPickupType_args(
9314
      long pickUp)
9315
    {
9316
      this();
9317
      this.pickUp = pickUp;
9318
      setPickUpIsSet(true);
9319
    }
9320
 
9321
    /**
9322
     * Performs a deep copy on <i>other</i>.
9323
     */
9324
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
9325
      __isset_bit_vector.clear();
9326
      __isset_bit_vector.or(other.__isset_bit_vector);
9327
      this.pickUp = other.pickUp;
9328
    }
9329
 
9330
    public getProviderForPickupType_args deepCopy() {
9331
      return new getProviderForPickupType_args(this);
9332
    }
9333
 
9334
    @Override
9335
    public void clear() {
9336
      setPickUpIsSet(false);
9337
      this.pickUp = 0;
9338
    }
9339
 
9340
    public long getPickUp() {
9341
      return this.pickUp;
9342
    }
9343
 
9344
    public void setPickUp(long pickUp) {
9345
      this.pickUp = pickUp;
9346
      setPickUpIsSet(true);
9347
    }
9348
 
9349
    public void unsetPickUp() {
9350
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
9351
    }
9352
 
9353
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
9354
    public boolean isSetPickUp() {
9355
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
9356
    }
9357
 
9358
    public void setPickUpIsSet(boolean value) {
9359
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
9360
    }
9361
 
9362
    public void setFieldValue(_Fields field, Object value) {
9363
      switch (field) {
9364
      case PICK_UP:
9365
        if (value == null) {
9366
          unsetPickUp();
9367
        } else {
9368
          setPickUp((Long)value);
9369
        }
9370
        break;
9371
 
9372
      }
9373
    }
9374
 
9375
    public Object getFieldValue(_Fields field) {
9376
      switch (field) {
9377
      case PICK_UP:
9378
        return Long.valueOf(getPickUp());
9379
 
9380
      }
9381
      throw new IllegalStateException();
9382
    }
9383
 
9384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9385
    public boolean isSet(_Fields field) {
9386
      if (field == null) {
9387
        throw new IllegalArgumentException();
9388
      }
9389
 
9390
      switch (field) {
9391
      case PICK_UP:
9392
        return isSetPickUp();
9393
      }
9394
      throw new IllegalStateException();
9395
    }
9396
 
9397
    @Override
9398
    public boolean equals(Object that) {
9399
      if (that == null)
9400
        return false;
9401
      if (that instanceof getProviderForPickupType_args)
9402
        return this.equals((getProviderForPickupType_args)that);
9403
      return false;
9404
    }
9405
 
9406
    public boolean equals(getProviderForPickupType_args that) {
9407
      if (that == null)
9408
        return false;
9409
 
9410
      boolean this_present_pickUp = true;
9411
      boolean that_present_pickUp = true;
9412
      if (this_present_pickUp || that_present_pickUp) {
9413
        if (!(this_present_pickUp && that_present_pickUp))
9414
          return false;
9415
        if (this.pickUp != that.pickUp)
9416
          return false;
9417
      }
9418
 
9419
      return true;
9420
    }
9421
 
9422
    @Override
9423
    public int hashCode() {
9424
      return 0;
9425
    }
9426
 
9427
    public int compareTo(getProviderForPickupType_args other) {
9428
      if (!getClass().equals(other.getClass())) {
9429
        return getClass().getName().compareTo(other.getClass().getName());
9430
      }
9431
 
9432
      int lastComparison = 0;
9433
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
9434
 
9435
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
9436
      if (lastComparison != 0) {
9437
        return lastComparison;
9438
      }
9439
      if (isSetPickUp()) {
9440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
9441
        if (lastComparison != 0) {
9442
          return lastComparison;
9443
        }
9444
      }
9445
      return 0;
9446
    }
9447
 
9448
    public _Fields fieldForId(int fieldId) {
9449
      return _Fields.findByThriftId(fieldId);
9450
    }
9451
 
9452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9453
      org.apache.thrift.protocol.TField field;
9454
      iprot.readStructBegin();
9455
      while (true)
9456
      {
9457
        field = iprot.readFieldBegin();
9458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9459
          break;
9460
        }
9461
        switch (field.id) {
9462
          case 1: // PICK_UP
9463
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9464
              this.pickUp = iprot.readI64();
9465
              setPickUpIsSet(true);
9466
            } else { 
9467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9468
            }
9469
            break;
9470
          default:
9471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9472
        }
9473
        iprot.readFieldEnd();
9474
      }
9475
      iprot.readStructEnd();
9476
      validate();
9477
    }
9478
 
9479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9480
      validate();
9481
 
9482
      oprot.writeStructBegin(STRUCT_DESC);
9483
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
9484
      oprot.writeI64(this.pickUp);
9485
      oprot.writeFieldEnd();
9486
      oprot.writeFieldStop();
9487
      oprot.writeStructEnd();
9488
    }
9489
 
9490
    @Override
9491
    public String toString() {
9492
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
9493
      boolean first = true;
9494
 
9495
      sb.append("pickUp:");
9496
      sb.append(this.pickUp);
9497
      first = false;
9498
      sb.append(")");
9499
      return sb.toString();
9500
    }
9501
 
9502
    public void validate() throws org.apache.thrift.TException {
9503
      // check for required fields
9504
    }
9505
 
9506
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9507
      try {
9508
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9509
      } catch (org.apache.thrift.TException te) {
9510
        throw new java.io.IOException(te);
9511
      }
9512
    }
9513
 
9514
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9515
      try {
9516
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9517
        __isset_bit_vector = new BitSet(1);
9518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9519
      } catch (org.apache.thrift.TException te) {
9520
        throw new java.io.IOException(te);
9521
      }
9522
    }
9523
 
9524
  }
9525
 
9526
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
9527
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
9528
 
9529
    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);
9530
 
9531
    private long success; // required
9532
 
9533
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9534
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9535
      SUCCESS((short)0, "success");
9536
 
9537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9538
 
9539
      static {
9540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9541
          byName.put(field.getFieldName(), field);
9542
        }
9543
      }
9544
 
9545
      /**
9546
       * Find the _Fields constant that matches fieldId, or null if its not found.
9547
       */
9548
      public static _Fields findByThriftId(int fieldId) {
9549
        switch(fieldId) {
9550
          case 0: // SUCCESS
9551
            return SUCCESS;
9552
          default:
9553
            return null;
9554
        }
9555
      }
9556
 
9557
      /**
9558
       * Find the _Fields constant that matches fieldId, throwing an exception
9559
       * if it is not found.
9560
       */
9561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9562
        _Fields fields = findByThriftId(fieldId);
9563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9564
        return fields;
9565
      }
9566
 
9567
      /**
9568
       * Find the _Fields constant that matches name, or null if its not found.
9569
       */
9570
      public static _Fields findByName(String name) {
9571
        return byName.get(name);
9572
      }
9573
 
9574
      private final short _thriftId;
9575
      private final String _fieldName;
9576
 
9577
      _Fields(short thriftId, String fieldName) {
9578
        _thriftId = thriftId;
9579
        _fieldName = fieldName;
9580
      }
9581
 
9582
      public short getThriftFieldId() {
9583
        return _thriftId;
9584
      }
9585
 
9586
      public String getFieldName() {
9587
        return _fieldName;
9588
      }
9589
    }
9590
 
9591
    // isset id assignments
9592
    private static final int __SUCCESS_ISSET_ID = 0;
9593
    private BitSet __isset_bit_vector = new BitSet(1);
9594
 
9595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9596
    static {
9597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9598
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9600
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9601
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
9602
    }
9603
 
9604
    public getProviderForPickupType_result() {
9605
    }
9606
 
9607
    public getProviderForPickupType_result(
9608
      long success)
9609
    {
9610
      this();
9611
      this.success = success;
9612
      setSuccessIsSet(true);
9613
    }
9614
 
9615
    /**
9616
     * Performs a deep copy on <i>other</i>.
9617
     */
9618
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
9619
      __isset_bit_vector.clear();
9620
      __isset_bit_vector.or(other.__isset_bit_vector);
9621
      this.success = other.success;
9622
    }
9623
 
9624
    public getProviderForPickupType_result deepCopy() {
9625
      return new getProviderForPickupType_result(this);
9626
    }
9627
 
9628
    @Override
9629
    public void clear() {
9630
      setSuccessIsSet(false);
9631
      this.success = 0;
9632
    }
9633
 
9634
    public long getSuccess() {
9635
      return this.success;
9636
    }
9637
 
9638
    public void setSuccess(long success) {
9639
      this.success = success;
9640
      setSuccessIsSet(true);
9641
    }
9642
 
9643
    public void unsetSuccess() {
9644
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9645
    }
9646
 
9647
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9648
    public boolean isSetSuccess() {
9649
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9650
    }
9651
 
9652
    public void setSuccessIsSet(boolean value) {
9653
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9654
    }
9655
 
9656
    public void setFieldValue(_Fields field, Object value) {
9657
      switch (field) {
9658
      case SUCCESS:
9659
        if (value == null) {
9660
          unsetSuccess();
9661
        } else {
9662
          setSuccess((Long)value);
9663
        }
9664
        break;
9665
 
9666
      }
9667
    }
9668
 
9669
    public Object getFieldValue(_Fields field) {
9670
      switch (field) {
9671
      case SUCCESS:
9672
        return Long.valueOf(getSuccess());
9673
 
9674
      }
9675
      throw new IllegalStateException();
9676
    }
9677
 
9678
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9679
    public boolean isSet(_Fields field) {
9680
      if (field == null) {
9681
        throw new IllegalArgumentException();
9682
      }
9683
 
9684
      switch (field) {
9685
      case SUCCESS:
9686
        return isSetSuccess();
9687
      }
9688
      throw new IllegalStateException();
9689
    }
9690
 
9691
    @Override
9692
    public boolean equals(Object that) {
9693
      if (that == null)
9694
        return false;
9695
      if (that instanceof getProviderForPickupType_result)
9696
        return this.equals((getProviderForPickupType_result)that);
9697
      return false;
9698
    }
9699
 
9700
    public boolean equals(getProviderForPickupType_result that) {
9701
      if (that == null)
9702
        return false;
9703
 
9704
      boolean this_present_success = true;
9705
      boolean that_present_success = true;
9706
      if (this_present_success || that_present_success) {
9707
        if (!(this_present_success && that_present_success))
9708
          return false;
9709
        if (this.success != that.success)
9710
          return false;
9711
      }
9712
 
9713
      return true;
9714
    }
9715
 
9716
    @Override
9717
    public int hashCode() {
9718
      return 0;
9719
    }
9720
 
9721
    public int compareTo(getProviderForPickupType_result other) {
9722
      if (!getClass().equals(other.getClass())) {
9723
        return getClass().getName().compareTo(other.getClass().getName());
9724
      }
9725
 
9726
      int lastComparison = 0;
9727
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
9728
 
9729
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9730
      if (lastComparison != 0) {
9731
        return lastComparison;
9732
      }
9733
      if (isSetSuccess()) {
9734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9735
        if (lastComparison != 0) {
9736
          return lastComparison;
9737
        }
9738
      }
9739
      return 0;
9740
    }
9741
 
9742
    public _Fields fieldForId(int fieldId) {
9743
      return _Fields.findByThriftId(fieldId);
9744
    }
9745
 
9746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9747
      org.apache.thrift.protocol.TField field;
9748
      iprot.readStructBegin();
9749
      while (true)
9750
      {
9751
        field = iprot.readFieldBegin();
9752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9753
          break;
9754
        }
9755
        switch (field.id) {
9756
          case 0: // SUCCESS
9757
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9758
              this.success = iprot.readI64();
9759
              setSuccessIsSet(true);
9760
            } else { 
9761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9762
            }
9763
            break;
9764
          default:
9765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9766
        }
9767
        iprot.readFieldEnd();
9768
      }
9769
      iprot.readStructEnd();
9770
      validate();
9771
    }
9772
 
9773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9774
      oprot.writeStructBegin(STRUCT_DESC);
9775
 
9776
      if (this.isSetSuccess()) {
9777
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9778
        oprot.writeI64(this.success);
9779
        oprot.writeFieldEnd();
9780
      }
9781
      oprot.writeFieldStop();
9782
      oprot.writeStructEnd();
9783
    }
9784
 
9785
    @Override
9786
    public String toString() {
9787
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
9788
      boolean first = true;
9789
 
9790
      sb.append("success:");
9791
      sb.append(this.success);
9792
      first = false;
9793
      sb.append(")");
9794
      return sb.toString();
9795
    }
9796
 
9797
    public void validate() throws org.apache.thrift.TException {
9798
      // check for required fields
9799
    }
9800
 
9801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9802
      try {
9803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9804
      } catch (org.apache.thrift.TException te) {
9805
        throw new java.io.IOException(te);
9806
      }
9807
    }
9808
 
9809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9810
      try {
9811
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9812
      } catch (org.apache.thrift.TException te) {
9813
        throw new java.io.IOException(te);
9814
      }
9815
    }
9816
 
9817
  }
9818
 
5553 rajveer 9819
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
9820
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
9821
 
9822
 
9823
 
9824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9826
;
9827
 
9828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9829
 
9830
      static {
9831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9832
          byName.put(field.getFieldName(), field);
9833
        }
9834
      }
9835
 
9836
      /**
9837
       * Find the _Fields constant that matches fieldId, or null if its not found.
9838
       */
9839
      public static _Fields findByThriftId(int fieldId) {
9840
        switch(fieldId) {
9841
          default:
9842
            return null;
9843
        }
9844
      }
9845
 
9846
      /**
9847
       * Find the _Fields constant that matches fieldId, throwing an exception
9848
       * if it is not found.
9849
       */
9850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9851
        _Fields fields = findByThriftId(fieldId);
9852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9853
        return fields;
9854
      }
9855
 
9856
      /**
9857
       * Find the _Fields constant that matches name, or null if its not found.
9858
       */
9859
      public static _Fields findByName(String name) {
9860
        return byName.get(name);
9861
      }
9862
 
9863
      private final short _thriftId;
9864
      private final String _fieldName;
9865
 
9866
      _Fields(short thriftId, String fieldName) {
9867
        _thriftId = thriftId;
9868
        _fieldName = fieldName;
9869
      }
9870
 
9871
      public short getThriftFieldId() {
9872
        return _thriftId;
9873
      }
9874
 
9875
      public String getFieldName() {
9876
        return _fieldName;
9877
      }
9878
    }
9879
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9880
    static {
9881
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
9884
    }
9885
 
9886
    public getAllPickupStores_args() {
9887
    }
9888
 
9889
    /**
9890
     * Performs a deep copy on <i>other</i>.
9891
     */
9892
    public getAllPickupStores_args(getAllPickupStores_args other) {
9893
    }
9894
 
9895
    public getAllPickupStores_args deepCopy() {
9896
      return new getAllPickupStores_args(this);
9897
    }
9898
 
9899
    @Override
9900
    public void clear() {
9901
    }
9902
 
9903
    public void setFieldValue(_Fields field, Object value) {
9904
      switch (field) {
9905
      }
9906
    }
9907
 
9908
    public Object getFieldValue(_Fields field) {
9909
      switch (field) {
9910
      }
9911
      throw new IllegalStateException();
9912
    }
9913
 
9914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9915
    public boolean isSet(_Fields field) {
9916
      if (field == null) {
9917
        throw new IllegalArgumentException();
9918
      }
9919
 
9920
      switch (field) {
9921
      }
9922
      throw new IllegalStateException();
9923
    }
9924
 
9925
    @Override
9926
    public boolean equals(Object that) {
9927
      if (that == null)
9928
        return false;
9929
      if (that instanceof getAllPickupStores_args)
9930
        return this.equals((getAllPickupStores_args)that);
9931
      return false;
9932
    }
9933
 
9934
    public boolean equals(getAllPickupStores_args that) {
9935
      if (that == null)
9936
        return false;
9937
 
9938
      return true;
9939
    }
9940
 
9941
    @Override
9942
    public int hashCode() {
9943
      return 0;
9944
    }
9945
 
9946
    public int compareTo(getAllPickupStores_args other) {
9947
      if (!getClass().equals(other.getClass())) {
9948
        return getClass().getName().compareTo(other.getClass().getName());
9949
      }
9950
 
9951
      int lastComparison = 0;
9952
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
9953
 
9954
      return 0;
9955
    }
9956
 
9957
    public _Fields fieldForId(int fieldId) {
9958
      return _Fields.findByThriftId(fieldId);
9959
    }
9960
 
9961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9962
      org.apache.thrift.protocol.TField field;
9963
      iprot.readStructBegin();
9964
      while (true)
9965
      {
9966
        field = iprot.readFieldBegin();
9967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9968
          break;
9969
        }
9970
        switch (field.id) {
9971
          default:
9972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9973
        }
9974
        iprot.readFieldEnd();
9975
      }
9976
      iprot.readStructEnd();
9977
      validate();
9978
    }
9979
 
9980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9981
      validate();
9982
 
9983
      oprot.writeStructBegin(STRUCT_DESC);
9984
      oprot.writeFieldStop();
9985
      oprot.writeStructEnd();
9986
    }
9987
 
9988
    @Override
9989
    public String toString() {
9990
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
9991
      boolean first = true;
9992
 
9993
      sb.append(")");
9994
      return sb.toString();
9995
    }
9996
 
9997
    public void validate() throws org.apache.thrift.TException {
9998
      // check for required fields
9999
    }
10000
 
10001
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10002
      try {
10003
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10004
      } catch (org.apache.thrift.TException te) {
10005
        throw new java.io.IOException(te);
10006
      }
10007
    }
10008
 
10009
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10010
      try {
10011
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10012
      } catch (org.apache.thrift.TException te) {
10013
        throw new java.io.IOException(te);
10014
      }
10015
    }
10016
 
10017
  }
10018
 
10019
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
10020
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
10021
 
10022
    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);
10023
 
10024
    private List<PickupStore> success; // required
10025
 
10026
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10027
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10028
      SUCCESS((short)0, "success");
10029
 
10030
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10031
 
10032
      static {
10033
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10034
          byName.put(field.getFieldName(), field);
10035
        }
10036
      }
10037
 
10038
      /**
10039
       * Find the _Fields constant that matches fieldId, or null if its not found.
10040
       */
10041
      public static _Fields findByThriftId(int fieldId) {
10042
        switch(fieldId) {
10043
          case 0: // SUCCESS
10044
            return SUCCESS;
10045
          default:
10046
            return null;
10047
        }
10048
      }
10049
 
10050
      /**
10051
       * Find the _Fields constant that matches fieldId, throwing an exception
10052
       * if it is not found.
10053
       */
10054
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10055
        _Fields fields = findByThriftId(fieldId);
10056
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10057
        return fields;
10058
      }
10059
 
10060
      /**
10061
       * Find the _Fields constant that matches name, or null if its not found.
10062
       */
10063
      public static _Fields findByName(String name) {
10064
        return byName.get(name);
10065
      }
10066
 
10067
      private final short _thriftId;
10068
      private final String _fieldName;
10069
 
10070
      _Fields(short thriftId, String fieldName) {
10071
        _thriftId = thriftId;
10072
        _fieldName = fieldName;
10073
      }
10074
 
10075
      public short getThriftFieldId() {
10076
        return _thriftId;
10077
      }
10078
 
10079
      public String getFieldName() {
10080
        return _fieldName;
10081
      }
10082
    }
10083
 
10084
    // isset id assignments
10085
 
10086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10087
    static {
10088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10089
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10090
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10091
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
10092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
10094
    }
10095
 
10096
    public getAllPickupStores_result() {
10097
    }
10098
 
10099
    public getAllPickupStores_result(
10100
      List<PickupStore> success)
10101
    {
10102
      this();
10103
      this.success = success;
10104
    }
10105
 
10106
    /**
10107
     * Performs a deep copy on <i>other</i>.
10108
     */
10109
    public getAllPickupStores_result(getAllPickupStores_result other) {
10110
      if (other.isSetSuccess()) {
10111
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
10112
        for (PickupStore other_element : other.success) {
10113
          __this__success.add(new PickupStore(other_element));
10114
        }
10115
        this.success = __this__success;
10116
      }
10117
    }
10118
 
10119
    public getAllPickupStores_result deepCopy() {
10120
      return new getAllPickupStores_result(this);
10121
    }
10122
 
10123
    @Override
10124
    public void clear() {
10125
      this.success = null;
10126
    }
10127
 
10128
    public int getSuccessSize() {
10129
      return (this.success == null) ? 0 : this.success.size();
10130
    }
10131
 
10132
    public java.util.Iterator<PickupStore> getSuccessIterator() {
10133
      return (this.success == null) ? null : this.success.iterator();
10134
    }
10135
 
10136
    public void addToSuccess(PickupStore elem) {
10137
      if (this.success == null) {
10138
        this.success = new ArrayList<PickupStore>();
10139
      }
10140
      this.success.add(elem);
10141
    }
10142
 
10143
    public List<PickupStore> getSuccess() {
10144
      return this.success;
10145
    }
10146
 
10147
    public void setSuccess(List<PickupStore> success) {
10148
      this.success = success;
10149
    }
10150
 
10151
    public void unsetSuccess() {
10152
      this.success = null;
10153
    }
10154
 
10155
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10156
    public boolean isSetSuccess() {
10157
      return this.success != null;
10158
    }
10159
 
10160
    public void setSuccessIsSet(boolean value) {
10161
      if (!value) {
10162
        this.success = null;
10163
      }
10164
    }
10165
 
10166
    public void setFieldValue(_Fields field, Object value) {
10167
      switch (field) {
10168
      case SUCCESS:
10169
        if (value == null) {
10170
          unsetSuccess();
10171
        } else {
10172
          setSuccess((List<PickupStore>)value);
10173
        }
10174
        break;
10175
 
10176
      }
10177
    }
10178
 
10179
    public Object getFieldValue(_Fields field) {
10180
      switch (field) {
10181
      case SUCCESS:
10182
        return getSuccess();
10183
 
10184
      }
10185
      throw new IllegalStateException();
10186
    }
10187
 
10188
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10189
    public boolean isSet(_Fields field) {
10190
      if (field == null) {
10191
        throw new IllegalArgumentException();
10192
      }
10193
 
10194
      switch (field) {
10195
      case SUCCESS:
10196
        return isSetSuccess();
10197
      }
10198
      throw new IllegalStateException();
10199
    }
10200
 
10201
    @Override
10202
    public boolean equals(Object that) {
10203
      if (that == null)
10204
        return false;
10205
      if (that instanceof getAllPickupStores_result)
10206
        return this.equals((getAllPickupStores_result)that);
10207
      return false;
10208
    }
10209
 
10210
    public boolean equals(getAllPickupStores_result that) {
10211
      if (that == null)
10212
        return false;
10213
 
10214
      boolean this_present_success = true && this.isSetSuccess();
10215
      boolean that_present_success = true && that.isSetSuccess();
10216
      if (this_present_success || that_present_success) {
10217
        if (!(this_present_success && that_present_success))
10218
          return false;
10219
        if (!this.success.equals(that.success))
10220
          return false;
10221
      }
10222
 
10223
      return true;
10224
    }
10225
 
10226
    @Override
10227
    public int hashCode() {
10228
      return 0;
10229
    }
10230
 
10231
    public int compareTo(getAllPickupStores_result other) {
10232
      if (!getClass().equals(other.getClass())) {
10233
        return getClass().getName().compareTo(other.getClass().getName());
10234
      }
10235
 
10236
      int lastComparison = 0;
10237
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
10238
 
10239
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10240
      if (lastComparison != 0) {
10241
        return lastComparison;
10242
      }
10243
      if (isSetSuccess()) {
10244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10245
        if (lastComparison != 0) {
10246
          return lastComparison;
10247
        }
10248
      }
10249
      return 0;
10250
    }
10251
 
10252
    public _Fields fieldForId(int fieldId) {
10253
      return _Fields.findByThriftId(fieldId);
10254
    }
10255
 
10256
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10257
      org.apache.thrift.protocol.TField field;
10258
      iprot.readStructBegin();
10259
      while (true)
10260
      {
10261
        field = iprot.readFieldBegin();
10262
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10263
          break;
10264
        }
10265
        switch (field.id) {
10266
          case 0: // SUCCESS
10267
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10268
              {
10269
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
10270
                this.success = new ArrayList<PickupStore>(_list21.size);
10271
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
10272
                {
10273
                  PickupStore _elem23; // required
10274
                  _elem23 = new PickupStore();
10275
                  _elem23.read(iprot);
10276
                  this.success.add(_elem23);
10277
                }
10278
                iprot.readListEnd();
10279
              }
10280
            } else { 
10281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10282
            }
10283
            break;
10284
          default:
10285
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10286
        }
10287
        iprot.readFieldEnd();
10288
      }
10289
      iprot.readStructEnd();
10290
      validate();
10291
    }
10292
 
10293
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10294
      oprot.writeStructBegin(STRUCT_DESC);
10295
 
10296
      if (this.isSetSuccess()) {
10297
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10298
        {
10299
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10300
          for (PickupStore _iter24 : this.success)
10301
          {
10302
            _iter24.write(oprot);
10303
          }
10304
          oprot.writeListEnd();
10305
        }
10306
        oprot.writeFieldEnd();
10307
      }
10308
      oprot.writeFieldStop();
10309
      oprot.writeStructEnd();
10310
    }
10311
 
10312
    @Override
10313
    public String toString() {
10314
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
10315
      boolean first = true;
10316
 
10317
      sb.append("success:");
10318
      if (this.success == null) {
10319
        sb.append("null");
10320
      } else {
10321
        sb.append(this.success);
10322
      }
10323
      first = false;
10324
      sb.append(")");
10325
      return sb.toString();
10326
    }
10327
 
10328
    public void validate() throws org.apache.thrift.TException {
10329
      // check for required fields
10330
    }
10331
 
10332
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10333
      try {
10334
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10335
      } catch (org.apache.thrift.TException te) {
10336
        throw new java.io.IOException(te);
10337
      }
10338
    }
10339
 
10340
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10341
      try {
10342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10343
      } catch (org.apache.thrift.TException te) {
10344
        throw new java.io.IOException(te);
10345
      }
10346
    }
10347
 
10348
  }
10349
 
10350
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
10351
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
10352
 
10353
    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);
10354
 
10355
    private long storeId; // required
10356
 
10357
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10358
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10359
      STORE_ID((short)1, "storeId");
10360
 
10361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10362
 
10363
      static {
10364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10365
          byName.put(field.getFieldName(), field);
10366
        }
10367
      }
10368
 
10369
      /**
10370
       * Find the _Fields constant that matches fieldId, or null if its not found.
10371
       */
10372
      public static _Fields findByThriftId(int fieldId) {
10373
        switch(fieldId) {
10374
          case 1: // STORE_ID
10375
            return STORE_ID;
10376
          default:
10377
            return null;
10378
        }
10379
      }
10380
 
10381
      /**
10382
       * Find the _Fields constant that matches fieldId, throwing an exception
10383
       * if it is not found.
10384
       */
10385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10386
        _Fields fields = findByThriftId(fieldId);
10387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10388
        return fields;
10389
      }
10390
 
10391
      /**
10392
       * Find the _Fields constant that matches name, or null if its not found.
10393
       */
10394
      public static _Fields findByName(String name) {
10395
        return byName.get(name);
10396
      }
10397
 
10398
      private final short _thriftId;
10399
      private final String _fieldName;
10400
 
10401
      _Fields(short thriftId, String fieldName) {
10402
        _thriftId = thriftId;
10403
        _fieldName = fieldName;
10404
      }
10405
 
10406
      public short getThriftFieldId() {
10407
        return _thriftId;
10408
      }
10409
 
10410
      public String getFieldName() {
10411
        return _fieldName;
10412
      }
10413
    }
10414
 
10415
    // isset id assignments
10416
    private static final int __STOREID_ISSET_ID = 0;
10417
    private BitSet __isset_bit_vector = new BitSet(1);
10418
 
10419
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10420
    static {
10421
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10422
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
10426
    }
10427
 
10428
    public getPickupStore_args() {
10429
    }
10430
 
10431
    public getPickupStore_args(
10432
      long storeId)
10433
    {
10434
      this();
10435
      this.storeId = storeId;
10436
      setStoreIdIsSet(true);
10437
    }
10438
 
10439
    /**
10440
     * Performs a deep copy on <i>other</i>.
10441
     */
10442
    public getPickupStore_args(getPickupStore_args other) {
10443
      __isset_bit_vector.clear();
10444
      __isset_bit_vector.or(other.__isset_bit_vector);
10445
      this.storeId = other.storeId;
10446
    }
10447
 
10448
    public getPickupStore_args deepCopy() {
10449
      return new getPickupStore_args(this);
10450
    }
10451
 
10452
    @Override
10453
    public void clear() {
10454
      setStoreIdIsSet(false);
10455
      this.storeId = 0;
10456
    }
10457
 
10458
    public long getStoreId() {
10459
      return this.storeId;
10460
    }
10461
 
10462
    public void setStoreId(long storeId) {
10463
      this.storeId = storeId;
10464
      setStoreIdIsSet(true);
10465
    }
10466
 
10467
    public void unsetStoreId() {
10468
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
10469
    }
10470
 
10471
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
10472
    public boolean isSetStoreId() {
10473
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
10474
    }
10475
 
10476
    public void setStoreIdIsSet(boolean value) {
10477
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
10478
    }
10479
 
10480
    public void setFieldValue(_Fields field, Object value) {
10481
      switch (field) {
10482
      case STORE_ID:
10483
        if (value == null) {
10484
          unsetStoreId();
10485
        } else {
10486
          setStoreId((Long)value);
10487
        }
10488
        break;
10489
 
10490
      }
10491
    }
10492
 
10493
    public Object getFieldValue(_Fields field) {
10494
      switch (field) {
10495
      case STORE_ID:
10496
        return Long.valueOf(getStoreId());
10497
 
10498
      }
10499
      throw new IllegalStateException();
10500
    }
10501
 
10502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10503
    public boolean isSet(_Fields field) {
10504
      if (field == null) {
10505
        throw new IllegalArgumentException();
10506
      }
10507
 
10508
      switch (field) {
10509
      case STORE_ID:
10510
        return isSetStoreId();
10511
      }
10512
      throw new IllegalStateException();
10513
    }
10514
 
10515
    @Override
10516
    public boolean equals(Object that) {
10517
      if (that == null)
10518
        return false;
10519
      if (that instanceof getPickupStore_args)
10520
        return this.equals((getPickupStore_args)that);
10521
      return false;
10522
    }
10523
 
10524
    public boolean equals(getPickupStore_args that) {
10525
      if (that == null)
10526
        return false;
10527
 
10528
      boolean this_present_storeId = true;
10529
      boolean that_present_storeId = true;
10530
      if (this_present_storeId || that_present_storeId) {
10531
        if (!(this_present_storeId && that_present_storeId))
10532
          return false;
10533
        if (this.storeId != that.storeId)
10534
          return false;
10535
      }
10536
 
10537
      return true;
10538
    }
10539
 
10540
    @Override
10541
    public int hashCode() {
10542
      return 0;
10543
    }
10544
 
10545
    public int compareTo(getPickupStore_args other) {
10546
      if (!getClass().equals(other.getClass())) {
10547
        return getClass().getName().compareTo(other.getClass().getName());
10548
      }
10549
 
10550
      int lastComparison = 0;
10551
      getPickupStore_args typedOther = (getPickupStore_args)other;
10552
 
10553
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
10554
      if (lastComparison != 0) {
10555
        return lastComparison;
10556
      }
10557
      if (isSetStoreId()) {
10558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
10559
        if (lastComparison != 0) {
10560
          return lastComparison;
10561
        }
10562
      }
10563
      return 0;
10564
    }
10565
 
10566
    public _Fields fieldForId(int fieldId) {
10567
      return _Fields.findByThriftId(fieldId);
10568
    }
10569
 
10570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10571
      org.apache.thrift.protocol.TField field;
10572
      iprot.readStructBegin();
10573
      while (true)
10574
      {
10575
        field = iprot.readFieldBegin();
10576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10577
          break;
10578
        }
10579
        switch (field.id) {
10580
          case 1: // STORE_ID
10581
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10582
              this.storeId = iprot.readI64();
10583
              setStoreIdIsSet(true);
10584
            } else { 
10585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10586
            }
10587
            break;
10588
          default:
10589
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10590
        }
10591
        iprot.readFieldEnd();
10592
      }
10593
      iprot.readStructEnd();
10594
      validate();
10595
    }
10596
 
10597
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10598
      validate();
10599
 
10600
      oprot.writeStructBegin(STRUCT_DESC);
10601
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
10602
      oprot.writeI64(this.storeId);
10603
      oprot.writeFieldEnd();
10604
      oprot.writeFieldStop();
10605
      oprot.writeStructEnd();
10606
    }
10607
 
10608
    @Override
10609
    public String toString() {
10610
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
10611
      boolean first = true;
10612
 
10613
      sb.append("storeId:");
10614
      sb.append(this.storeId);
10615
      first = false;
10616
      sb.append(")");
10617
      return sb.toString();
10618
    }
10619
 
10620
    public void validate() throws org.apache.thrift.TException {
10621
      // check for required fields
10622
    }
10623
 
10624
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10625
      try {
10626
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10627
      } catch (org.apache.thrift.TException te) {
10628
        throw new java.io.IOException(te);
10629
      }
10630
    }
10631
 
10632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10633
      try {
10634
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10635
        __isset_bit_vector = new BitSet(1);
10636
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10637
      } catch (org.apache.thrift.TException te) {
10638
        throw new java.io.IOException(te);
10639
      }
10640
    }
10641
 
10642
  }
10643
 
10644
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
10645
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
10646
 
10647
    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);
10648
 
10649
    private PickupStore success; // required
10650
 
10651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10652
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10653
      SUCCESS((short)0, "success");
10654
 
10655
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10656
 
10657
      static {
10658
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10659
          byName.put(field.getFieldName(), field);
10660
        }
10661
      }
10662
 
10663
      /**
10664
       * Find the _Fields constant that matches fieldId, or null if its not found.
10665
       */
10666
      public static _Fields findByThriftId(int fieldId) {
10667
        switch(fieldId) {
10668
          case 0: // SUCCESS
10669
            return SUCCESS;
10670
          default:
10671
            return null;
10672
        }
10673
      }
10674
 
10675
      /**
10676
       * Find the _Fields constant that matches fieldId, throwing an exception
10677
       * if it is not found.
10678
       */
10679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10680
        _Fields fields = findByThriftId(fieldId);
10681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10682
        return fields;
10683
      }
10684
 
10685
      /**
10686
       * Find the _Fields constant that matches name, or null if its not found.
10687
       */
10688
      public static _Fields findByName(String name) {
10689
        return byName.get(name);
10690
      }
10691
 
10692
      private final short _thriftId;
10693
      private final String _fieldName;
10694
 
10695
      _Fields(short thriftId, String fieldName) {
10696
        _thriftId = thriftId;
10697
        _fieldName = fieldName;
10698
      }
10699
 
10700
      public short getThriftFieldId() {
10701
        return _thriftId;
10702
      }
10703
 
10704
      public String getFieldName() {
10705
        return _fieldName;
10706
      }
10707
    }
10708
 
10709
    // isset id assignments
10710
 
10711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10712
    static {
10713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10714
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10715
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
10716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
10718
    }
10719
 
10720
    public getPickupStore_result() {
10721
    }
10722
 
10723
    public getPickupStore_result(
10724
      PickupStore success)
10725
    {
10726
      this();
10727
      this.success = success;
10728
    }
10729
 
10730
    /**
10731
     * Performs a deep copy on <i>other</i>.
10732
     */
10733
    public getPickupStore_result(getPickupStore_result other) {
10734
      if (other.isSetSuccess()) {
10735
        this.success = new PickupStore(other.success);
10736
      }
10737
    }
10738
 
10739
    public getPickupStore_result deepCopy() {
10740
      return new getPickupStore_result(this);
10741
    }
10742
 
10743
    @Override
10744
    public void clear() {
10745
      this.success = null;
10746
    }
10747
 
10748
    public PickupStore getSuccess() {
10749
      return this.success;
10750
    }
10751
 
10752
    public void setSuccess(PickupStore success) {
10753
      this.success = success;
10754
    }
10755
 
10756
    public void unsetSuccess() {
10757
      this.success = null;
10758
    }
10759
 
10760
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10761
    public boolean isSetSuccess() {
10762
      return this.success != null;
10763
    }
10764
 
10765
    public void setSuccessIsSet(boolean value) {
10766
      if (!value) {
10767
        this.success = null;
10768
      }
10769
    }
10770
 
10771
    public void setFieldValue(_Fields field, Object value) {
10772
      switch (field) {
10773
      case SUCCESS:
10774
        if (value == null) {
10775
          unsetSuccess();
10776
        } else {
10777
          setSuccess((PickupStore)value);
10778
        }
10779
        break;
10780
 
10781
      }
10782
    }
10783
 
10784
    public Object getFieldValue(_Fields field) {
10785
      switch (field) {
10786
      case SUCCESS:
10787
        return getSuccess();
10788
 
10789
      }
10790
      throw new IllegalStateException();
10791
    }
10792
 
10793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10794
    public boolean isSet(_Fields field) {
10795
      if (field == null) {
10796
        throw new IllegalArgumentException();
10797
      }
10798
 
10799
      switch (field) {
10800
      case SUCCESS:
10801
        return isSetSuccess();
10802
      }
10803
      throw new IllegalStateException();
10804
    }
10805
 
10806
    @Override
10807
    public boolean equals(Object that) {
10808
      if (that == null)
10809
        return false;
10810
      if (that instanceof getPickupStore_result)
10811
        return this.equals((getPickupStore_result)that);
10812
      return false;
10813
    }
10814
 
10815
    public boolean equals(getPickupStore_result that) {
10816
      if (that == null)
10817
        return false;
10818
 
10819
      boolean this_present_success = true && this.isSetSuccess();
10820
      boolean that_present_success = true && that.isSetSuccess();
10821
      if (this_present_success || that_present_success) {
10822
        if (!(this_present_success && that_present_success))
10823
          return false;
10824
        if (!this.success.equals(that.success))
10825
          return false;
10826
      }
10827
 
10828
      return true;
10829
    }
10830
 
10831
    @Override
10832
    public int hashCode() {
10833
      return 0;
10834
    }
10835
 
10836
    public int compareTo(getPickupStore_result other) {
10837
      if (!getClass().equals(other.getClass())) {
10838
        return getClass().getName().compareTo(other.getClass().getName());
10839
      }
10840
 
10841
      int lastComparison = 0;
10842
      getPickupStore_result typedOther = (getPickupStore_result)other;
10843
 
10844
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10845
      if (lastComparison != 0) {
10846
        return lastComparison;
10847
      }
10848
      if (isSetSuccess()) {
10849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10850
        if (lastComparison != 0) {
10851
          return lastComparison;
10852
        }
10853
      }
10854
      return 0;
10855
    }
10856
 
10857
    public _Fields fieldForId(int fieldId) {
10858
      return _Fields.findByThriftId(fieldId);
10859
    }
10860
 
10861
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10862
      org.apache.thrift.protocol.TField field;
10863
      iprot.readStructBegin();
10864
      while (true)
10865
      {
10866
        field = iprot.readFieldBegin();
10867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10868
          break;
10869
        }
10870
        switch (field.id) {
10871
          case 0: // SUCCESS
10872
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10873
              this.success = new PickupStore();
10874
              this.success.read(iprot);
10875
            } else { 
10876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10877
            }
10878
            break;
10879
          default:
10880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10881
        }
10882
        iprot.readFieldEnd();
10883
      }
10884
      iprot.readStructEnd();
10885
      validate();
10886
    }
10887
 
10888
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10889
      oprot.writeStructBegin(STRUCT_DESC);
10890
 
10891
      if (this.isSetSuccess()) {
10892
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10893
        this.success.write(oprot);
10894
        oprot.writeFieldEnd();
10895
      }
10896
      oprot.writeFieldStop();
10897
      oprot.writeStructEnd();
10898
    }
10899
 
10900
    @Override
10901
    public String toString() {
10902
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
10903
      boolean first = true;
10904
 
10905
      sb.append("success:");
10906
      if (this.success == null) {
10907
        sb.append("null");
10908
      } else {
10909
        sb.append(this.success);
10910
      }
10911
      first = false;
10912
      sb.append(")");
10913
      return sb.toString();
10914
    }
10915
 
10916
    public void validate() throws org.apache.thrift.TException {
10917
      // check for required fields
10918
    }
10919
 
10920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10921
      try {
10922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10923
      } catch (org.apache.thrift.TException te) {
10924
        throw new java.io.IOException(te);
10925
      }
10926
    }
10927
 
10928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10929
      try {
10930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10931
      } catch (org.apache.thrift.TException te) {
10932
        throw new java.io.IOException(te);
10933
      }
10934
    }
10935
 
10936
  }
10937
 
5719 rajveer 10938
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
10939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
10940
 
10941
    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);
10942
 
10943
    private String hotspotId; // required
10944
 
10945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10947
      HOTSPOT_ID((short)1, "hotspotId");
10948
 
10949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10950
 
10951
      static {
10952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10953
          byName.put(field.getFieldName(), field);
10954
        }
10955
      }
10956
 
10957
      /**
10958
       * Find the _Fields constant that matches fieldId, or null if its not found.
10959
       */
10960
      public static _Fields findByThriftId(int fieldId) {
10961
        switch(fieldId) {
10962
          case 1: // HOTSPOT_ID
10963
            return HOTSPOT_ID;
10964
          default:
10965
            return null;
10966
        }
10967
      }
10968
 
10969
      /**
10970
       * Find the _Fields constant that matches fieldId, throwing an exception
10971
       * if it is not found.
10972
       */
10973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10974
        _Fields fields = findByThriftId(fieldId);
10975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10976
        return fields;
10977
      }
10978
 
10979
      /**
10980
       * Find the _Fields constant that matches name, or null if its not found.
10981
       */
10982
      public static _Fields findByName(String name) {
10983
        return byName.get(name);
10984
      }
10985
 
10986
      private final short _thriftId;
10987
      private final String _fieldName;
10988
 
10989
      _Fields(short thriftId, String fieldName) {
10990
        _thriftId = thriftId;
10991
        _fieldName = fieldName;
10992
      }
10993
 
10994
      public short getThriftFieldId() {
10995
        return _thriftId;
10996
      }
10997
 
10998
      public String getFieldName() {
10999
        return _fieldName;
11000
      }
11001
    }
11002
 
11003
    // isset id assignments
11004
 
11005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11006
    static {
11007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11008
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11010
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11011
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
11012
    }
11013
 
11014
    public getPickupStoreByHotspotId_args() {
11015
    }
11016
 
11017
    public getPickupStoreByHotspotId_args(
11018
      String hotspotId)
11019
    {
11020
      this();
11021
      this.hotspotId = hotspotId;
11022
    }
11023
 
11024
    /**
11025
     * Performs a deep copy on <i>other</i>.
11026
     */
11027
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
11028
      if (other.isSetHotspotId()) {
11029
        this.hotspotId = other.hotspotId;
11030
      }
11031
    }
11032
 
11033
    public getPickupStoreByHotspotId_args deepCopy() {
11034
      return new getPickupStoreByHotspotId_args(this);
11035
    }
11036
 
11037
    @Override
11038
    public void clear() {
11039
      this.hotspotId = null;
11040
    }
11041
 
11042
    public String getHotspotId() {
11043
      return this.hotspotId;
11044
    }
11045
 
11046
    public void setHotspotId(String hotspotId) {
11047
      this.hotspotId = hotspotId;
11048
    }
11049
 
11050
    public void unsetHotspotId() {
11051
      this.hotspotId = null;
11052
    }
11053
 
11054
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
11055
    public boolean isSetHotspotId() {
11056
      return this.hotspotId != null;
11057
    }
11058
 
11059
    public void setHotspotIdIsSet(boolean value) {
11060
      if (!value) {
11061
        this.hotspotId = null;
11062
      }
11063
    }
11064
 
11065
    public void setFieldValue(_Fields field, Object value) {
11066
      switch (field) {
11067
      case HOTSPOT_ID:
11068
        if (value == null) {
11069
          unsetHotspotId();
11070
        } else {
11071
          setHotspotId((String)value);
11072
        }
11073
        break;
11074
 
11075
      }
11076
    }
11077
 
11078
    public Object getFieldValue(_Fields field) {
11079
      switch (field) {
11080
      case HOTSPOT_ID:
11081
        return getHotspotId();
11082
 
11083
      }
11084
      throw new IllegalStateException();
11085
    }
11086
 
11087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11088
    public boolean isSet(_Fields field) {
11089
      if (field == null) {
11090
        throw new IllegalArgumentException();
11091
      }
11092
 
11093
      switch (field) {
11094
      case HOTSPOT_ID:
11095
        return isSetHotspotId();
11096
      }
11097
      throw new IllegalStateException();
11098
    }
11099
 
11100
    @Override
11101
    public boolean equals(Object that) {
11102
      if (that == null)
11103
        return false;
11104
      if (that instanceof getPickupStoreByHotspotId_args)
11105
        return this.equals((getPickupStoreByHotspotId_args)that);
11106
      return false;
11107
    }
11108
 
11109
    public boolean equals(getPickupStoreByHotspotId_args that) {
11110
      if (that == null)
11111
        return false;
11112
 
11113
      boolean this_present_hotspotId = true && this.isSetHotspotId();
11114
      boolean that_present_hotspotId = true && that.isSetHotspotId();
11115
      if (this_present_hotspotId || that_present_hotspotId) {
11116
        if (!(this_present_hotspotId && that_present_hotspotId))
11117
          return false;
11118
        if (!this.hotspotId.equals(that.hotspotId))
11119
          return false;
11120
      }
11121
 
11122
      return true;
11123
    }
11124
 
11125
    @Override
11126
    public int hashCode() {
11127
      return 0;
11128
    }
11129
 
11130
    public int compareTo(getPickupStoreByHotspotId_args other) {
11131
      if (!getClass().equals(other.getClass())) {
11132
        return getClass().getName().compareTo(other.getClass().getName());
11133
      }
11134
 
11135
      int lastComparison = 0;
11136
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
11137
 
11138
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
11139
      if (lastComparison != 0) {
11140
        return lastComparison;
11141
      }
11142
      if (isSetHotspotId()) {
11143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
11144
        if (lastComparison != 0) {
11145
          return lastComparison;
11146
        }
11147
      }
11148
      return 0;
11149
    }
11150
 
11151
    public _Fields fieldForId(int fieldId) {
11152
      return _Fields.findByThriftId(fieldId);
11153
    }
11154
 
11155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11156
      org.apache.thrift.protocol.TField field;
11157
      iprot.readStructBegin();
11158
      while (true)
11159
      {
11160
        field = iprot.readFieldBegin();
11161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11162
          break;
11163
        }
11164
        switch (field.id) {
11165
          case 1: // HOTSPOT_ID
11166
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11167
              this.hotspotId = iprot.readString();
11168
            } else { 
11169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11170
            }
11171
            break;
11172
          default:
11173
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11174
        }
11175
        iprot.readFieldEnd();
11176
      }
11177
      iprot.readStructEnd();
11178
      validate();
11179
    }
11180
 
11181
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11182
      validate();
11183
 
11184
      oprot.writeStructBegin(STRUCT_DESC);
11185
      if (this.hotspotId != null) {
11186
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
11187
        oprot.writeString(this.hotspotId);
11188
        oprot.writeFieldEnd();
11189
      }
11190
      oprot.writeFieldStop();
11191
      oprot.writeStructEnd();
11192
    }
11193
 
11194
    @Override
11195
    public String toString() {
11196
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
11197
      boolean first = true;
11198
 
11199
      sb.append("hotspotId:");
11200
      if (this.hotspotId == null) {
11201
        sb.append("null");
11202
      } else {
11203
        sb.append(this.hotspotId);
11204
      }
11205
      first = false;
11206
      sb.append(")");
11207
      return sb.toString();
11208
    }
11209
 
11210
    public void validate() throws org.apache.thrift.TException {
11211
      // check for required fields
11212
    }
11213
 
11214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11215
      try {
11216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11217
      } catch (org.apache.thrift.TException te) {
11218
        throw new java.io.IOException(te);
11219
      }
11220
    }
11221
 
11222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11223
      try {
11224
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11225
      } catch (org.apache.thrift.TException te) {
11226
        throw new java.io.IOException(te);
11227
      }
11228
    }
11229
 
11230
  }
11231
 
11232
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
11233
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
11234
 
11235
    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);
11236
 
11237
    private PickupStore success; // required
11238
 
11239
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11240
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11241
      SUCCESS((short)0, "success");
11242
 
11243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11244
 
11245
      static {
11246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11247
          byName.put(field.getFieldName(), field);
11248
        }
11249
      }
11250
 
11251
      /**
11252
       * Find the _Fields constant that matches fieldId, or null if its not found.
11253
       */
11254
      public static _Fields findByThriftId(int fieldId) {
11255
        switch(fieldId) {
11256
          case 0: // SUCCESS
11257
            return SUCCESS;
11258
          default:
11259
            return null;
11260
        }
11261
      }
11262
 
11263
      /**
11264
       * Find the _Fields constant that matches fieldId, throwing an exception
11265
       * if it is not found.
11266
       */
11267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11268
        _Fields fields = findByThriftId(fieldId);
11269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11270
        return fields;
11271
      }
11272
 
11273
      /**
11274
       * Find the _Fields constant that matches name, or null if its not found.
11275
       */
11276
      public static _Fields findByName(String name) {
11277
        return byName.get(name);
11278
      }
11279
 
11280
      private final short _thriftId;
11281
      private final String _fieldName;
11282
 
11283
      _Fields(short thriftId, String fieldName) {
11284
        _thriftId = thriftId;
11285
        _fieldName = fieldName;
11286
      }
11287
 
11288
      public short getThriftFieldId() {
11289
        return _thriftId;
11290
      }
11291
 
11292
      public String getFieldName() {
11293
        return _fieldName;
11294
      }
11295
    }
11296
 
11297
    // isset id assignments
11298
 
11299
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11300
    static {
11301
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11302
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11303
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
11304
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11305
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
11306
    }
11307
 
11308
    public getPickupStoreByHotspotId_result() {
11309
    }
11310
 
11311
    public getPickupStoreByHotspotId_result(
11312
      PickupStore success)
11313
    {
11314
      this();
11315
      this.success = success;
11316
    }
11317
 
11318
    /**
11319
     * Performs a deep copy on <i>other</i>.
11320
     */
11321
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
11322
      if (other.isSetSuccess()) {
11323
        this.success = new PickupStore(other.success);
11324
      }
11325
    }
11326
 
11327
    public getPickupStoreByHotspotId_result deepCopy() {
11328
      return new getPickupStoreByHotspotId_result(this);
11329
    }
11330
 
11331
    @Override
11332
    public void clear() {
11333
      this.success = null;
11334
    }
11335
 
11336
    public PickupStore getSuccess() {
11337
      return this.success;
11338
    }
11339
 
11340
    public void setSuccess(PickupStore success) {
11341
      this.success = success;
11342
    }
11343
 
11344
    public void unsetSuccess() {
11345
      this.success = null;
11346
    }
11347
 
11348
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11349
    public boolean isSetSuccess() {
11350
      return this.success != null;
11351
    }
11352
 
11353
    public void setSuccessIsSet(boolean value) {
11354
      if (!value) {
11355
        this.success = null;
11356
      }
11357
    }
11358
 
11359
    public void setFieldValue(_Fields field, Object value) {
11360
      switch (field) {
11361
      case SUCCESS:
11362
        if (value == null) {
11363
          unsetSuccess();
11364
        } else {
11365
          setSuccess((PickupStore)value);
11366
        }
11367
        break;
11368
 
11369
      }
11370
    }
11371
 
11372
    public Object getFieldValue(_Fields field) {
11373
      switch (field) {
11374
      case SUCCESS:
11375
        return getSuccess();
11376
 
11377
      }
11378
      throw new IllegalStateException();
11379
    }
11380
 
11381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11382
    public boolean isSet(_Fields field) {
11383
      if (field == null) {
11384
        throw new IllegalArgumentException();
11385
      }
11386
 
11387
      switch (field) {
11388
      case SUCCESS:
11389
        return isSetSuccess();
11390
      }
11391
      throw new IllegalStateException();
11392
    }
11393
 
11394
    @Override
11395
    public boolean equals(Object that) {
11396
      if (that == null)
11397
        return false;
11398
      if (that instanceof getPickupStoreByHotspotId_result)
11399
        return this.equals((getPickupStoreByHotspotId_result)that);
11400
      return false;
11401
    }
11402
 
11403
    public boolean equals(getPickupStoreByHotspotId_result that) {
11404
      if (that == null)
11405
        return false;
11406
 
11407
      boolean this_present_success = true && this.isSetSuccess();
11408
      boolean that_present_success = true && that.isSetSuccess();
11409
      if (this_present_success || that_present_success) {
11410
        if (!(this_present_success && that_present_success))
11411
          return false;
11412
        if (!this.success.equals(that.success))
11413
          return false;
11414
      }
11415
 
11416
      return true;
11417
    }
11418
 
11419
    @Override
11420
    public int hashCode() {
11421
      return 0;
11422
    }
11423
 
11424
    public int compareTo(getPickupStoreByHotspotId_result other) {
11425
      if (!getClass().equals(other.getClass())) {
11426
        return getClass().getName().compareTo(other.getClass().getName());
11427
      }
11428
 
11429
      int lastComparison = 0;
11430
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
11431
 
11432
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11433
      if (lastComparison != 0) {
11434
        return lastComparison;
11435
      }
11436
      if (isSetSuccess()) {
11437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11438
        if (lastComparison != 0) {
11439
          return lastComparison;
11440
        }
11441
      }
11442
      return 0;
11443
    }
11444
 
11445
    public _Fields fieldForId(int fieldId) {
11446
      return _Fields.findByThriftId(fieldId);
11447
    }
11448
 
11449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11450
      org.apache.thrift.protocol.TField field;
11451
      iprot.readStructBegin();
11452
      while (true)
11453
      {
11454
        field = iprot.readFieldBegin();
11455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11456
          break;
11457
        }
11458
        switch (field.id) {
11459
          case 0: // SUCCESS
11460
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11461
              this.success = new PickupStore();
11462
              this.success.read(iprot);
11463
            } else { 
11464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11465
            }
11466
            break;
11467
          default:
11468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11469
        }
11470
        iprot.readFieldEnd();
11471
      }
11472
      iprot.readStructEnd();
11473
      validate();
11474
    }
11475
 
11476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11477
      oprot.writeStructBegin(STRUCT_DESC);
11478
 
11479
      if (this.isSetSuccess()) {
11480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11481
        this.success.write(oprot);
11482
        oprot.writeFieldEnd();
11483
      }
11484
      oprot.writeFieldStop();
11485
      oprot.writeStructEnd();
11486
    }
11487
 
11488
    @Override
11489
    public String toString() {
11490
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
11491
      boolean first = true;
11492
 
11493
      sb.append("success:");
11494
      if (this.success == null) {
11495
        sb.append("null");
11496
      } else {
11497
        sb.append(this.success);
11498
      }
11499
      first = false;
11500
      sb.append(")");
11501
      return sb.toString();
11502
    }
11503
 
11504
    public void validate() throws org.apache.thrift.TException {
11505
      // check for required fields
11506
    }
11507
 
11508
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11509
      try {
11510
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11511
      } catch (org.apache.thrift.TException te) {
11512
        throw new java.io.IOException(te);
11513
      }
11514
    }
11515
 
11516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11517
      try {
11518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11519
      } catch (org.apache.thrift.TException te) {
11520
        throw new java.io.IOException(te);
11521
      }
11522
    }
11523
 
11524
  }
11525
 
6322 amar.kumar 11526
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
11527
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
11528
 
11529
    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);
11530
    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);
11531
    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);
11532
    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);
11533
    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);
11534
    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);
11535
 
11536
    private long providerId; // required
11537
    private String pincode; // required
11538
    private String destCode; // required
11539
    private boolean exp; // required
11540
    private boolean cod; // required
11541
    private int stationType; // required
11542
 
11543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11545
      PROVIDER_ID((short)1, "providerId"),
11546
      PINCODE((short)2, "pincode"),
11547
      DEST_CODE((short)3, "destCode"),
11548
      EXP((short)4, "exp"),
11549
      COD((short)5, "cod"),
11550
      STATION_TYPE((short)6, "stationType");
11551
 
11552
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11553
 
11554
      static {
11555
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11556
          byName.put(field.getFieldName(), field);
11557
        }
11558
      }
11559
 
11560
      /**
11561
       * Find the _Fields constant that matches fieldId, or null if its not found.
11562
       */
11563
      public static _Fields findByThriftId(int fieldId) {
11564
        switch(fieldId) {
11565
          case 1: // PROVIDER_ID
11566
            return PROVIDER_ID;
11567
          case 2: // PINCODE
11568
            return PINCODE;
11569
          case 3: // DEST_CODE
11570
            return DEST_CODE;
11571
          case 4: // EXP
11572
            return EXP;
11573
          case 5: // COD
11574
            return COD;
11575
          case 6: // STATION_TYPE
11576
            return STATION_TYPE;
11577
          default:
11578
            return null;
11579
        }
11580
      }
11581
 
11582
      /**
11583
       * Find the _Fields constant that matches fieldId, throwing an exception
11584
       * if it is not found.
11585
       */
11586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11587
        _Fields fields = findByThriftId(fieldId);
11588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11589
        return fields;
11590
      }
11591
 
11592
      /**
11593
       * Find the _Fields constant that matches name, or null if its not found.
11594
       */
11595
      public static _Fields findByName(String name) {
11596
        return byName.get(name);
11597
      }
11598
 
11599
      private final short _thriftId;
11600
      private final String _fieldName;
11601
 
11602
      _Fields(short thriftId, String fieldName) {
11603
        _thriftId = thriftId;
11604
        _fieldName = fieldName;
11605
      }
11606
 
11607
      public short getThriftFieldId() {
11608
        return _thriftId;
11609
      }
11610
 
11611
      public String getFieldName() {
11612
        return _fieldName;
11613
      }
11614
    }
11615
 
11616
    // isset id assignments
11617
    private static final int __PROVIDERID_ISSET_ID = 0;
11618
    private static final int __EXP_ISSET_ID = 1;
11619
    private static final int __COD_ISSET_ID = 2;
11620
    private static final int __STATIONTYPE_ISSET_ID = 3;
11621
    private BitSet __isset_bit_vector = new BitSet(4);
11622
 
11623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11624
    static {
11625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11626
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11628
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11629
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11630
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11632
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11634
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11636
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
11640
    }
11641
 
11642
    public addPincode_args() {
11643
    }
11644
 
11645
    public addPincode_args(
11646
      long providerId,
11647
      String pincode,
11648
      String destCode,
11649
      boolean exp,
11650
      boolean cod,
11651
      int stationType)
11652
    {
11653
      this();
11654
      this.providerId = providerId;
11655
      setProviderIdIsSet(true);
11656
      this.pincode = pincode;
11657
      this.destCode = destCode;
11658
      this.exp = exp;
11659
      setExpIsSet(true);
11660
      this.cod = cod;
11661
      setCodIsSet(true);
11662
      this.stationType = stationType;
11663
      setStationTypeIsSet(true);
11664
    }
11665
 
11666
    /**
11667
     * Performs a deep copy on <i>other</i>.
11668
     */
11669
    public addPincode_args(addPincode_args other) {
11670
      __isset_bit_vector.clear();
11671
      __isset_bit_vector.or(other.__isset_bit_vector);
11672
      this.providerId = other.providerId;
11673
      if (other.isSetPincode()) {
11674
        this.pincode = other.pincode;
11675
      }
11676
      if (other.isSetDestCode()) {
11677
        this.destCode = other.destCode;
11678
      }
11679
      this.exp = other.exp;
11680
      this.cod = other.cod;
11681
      this.stationType = other.stationType;
11682
    }
11683
 
11684
    public addPincode_args deepCopy() {
11685
      return new addPincode_args(this);
11686
    }
11687
 
11688
    @Override
11689
    public void clear() {
11690
      setProviderIdIsSet(false);
11691
      this.providerId = 0;
11692
      this.pincode = null;
11693
      this.destCode = null;
11694
      setExpIsSet(false);
11695
      this.exp = false;
11696
      setCodIsSet(false);
11697
      this.cod = false;
11698
      setStationTypeIsSet(false);
11699
      this.stationType = 0;
11700
    }
11701
 
11702
    public long getProviderId() {
11703
      return this.providerId;
11704
    }
11705
 
11706
    public void setProviderId(long providerId) {
11707
      this.providerId = providerId;
11708
      setProviderIdIsSet(true);
11709
    }
11710
 
11711
    public void unsetProviderId() {
11712
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
11713
    }
11714
 
11715
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
11716
    public boolean isSetProviderId() {
11717
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
11718
    }
11719
 
11720
    public void setProviderIdIsSet(boolean value) {
11721
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
11722
    }
11723
 
11724
    public String getPincode() {
11725
      return this.pincode;
11726
    }
11727
 
11728
    public void setPincode(String pincode) {
11729
      this.pincode = pincode;
11730
    }
11731
 
11732
    public void unsetPincode() {
11733
      this.pincode = null;
11734
    }
11735
 
11736
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
11737
    public boolean isSetPincode() {
11738
      return this.pincode != null;
11739
    }
11740
 
11741
    public void setPincodeIsSet(boolean value) {
11742
      if (!value) {
11743
        this.pincode = null;
11744
      }
11745
    }
11746
 
11747
    public String getDestCode() {
11748
      return this.destCode;
11749
    }
11750
 
11751
    public void setDestCode(String destCode) {
11752
      this.destCode = destCode;
11753
    }
11754
 
11755
    public void unsetDestCode() {
11756
      this.destCode = null;
11757
    }
11758
 
11759
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
11760
    public boolean isSetDestCode() {
11761
      return this.destCode != null;
11762
    }
11763
 
11764
    public void setDestCodeIsSet(boolean value) {
11765
      if (!value) {
11766
        this.destCode = null;
11767
      }
11768
    }
11769
 
11770
    public boolean isExp() {
11771
      return this.exp;
11772
    }
11773
 
11774
    public void setExp(boolean exp) {
11775
      this.exp = exp;
11776
      setExpIsSet(true);
11777
    }
11778
 
11779
    public void unsetExp() {
11780
      __isset_bit_vector.clear(__EXP_ISSET_ID);
11781
    }
11782
 
11783
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
11784
    public boolean isSetExp() {
11785
      return __isset_bit_vector.get(__EXP_ISSET_ID);
11786
    }
11787
 
11788
    public void setExpIsSet(boolean value) {
11789
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
11790
    }
11791
 
11792
    public boolean isCod() {
11793
      return this.cod;
11794
    }
11795
 
11796
    public void setCod(boolean cod) {
11797
      this.cod = cod;
11798
      setCodIsSet(true);
11799
    }
11800
 
11801
    public void unsetCod() {
11802
      __isset_bit_vector.clear(__COD_ISSET_ID);
11803
    }
11804
 
11805
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
11806
    public boolean isSetCod() {
11807
      return __isset_bit_vector.get(__COD_ISSET_ID);
11808
    }
11809
 
11810
    public void setCodIsSet(boolean value) {
11811
      __isset_bit_vector.set(__COD_ISSET_ID, value);
11812
    }
11813
 
11814
    public int getStationType() {
11815
      return this.stationType;
11816
    }
11817
 
11818
    public void setStationType(int stationType) {
11819
      this.stationType = stationType;
11820
      setStationTypeIsSet(true);
11821
    }
11822
 
11823
    public void unsetStationType() {
11824
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
11825
    }
11826
 
11827
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
11828
    public boolean isSetStationType() {
11829
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
11830
    }
11831
 
11832
    public void setStationTypeIsSet(boolean value) {
11833
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
11834
    }
11835
 
11836
    public void setFieldValue(_Fields field, Object value) {
11837
      switch (field) {
11838
      case PROVIDER_ID:
11839
        if (value == null) {
11840
          unsetProviderId();
11841
        } else {
11842
          setProviderId((Long)value);
11843
        }
11844
        break;
11845
 
11846
      case PINCODE:
11847
        if (value == null) {
11848
          unsetPincode();
11849
        } else {
11850
          setPincode((String)value);
11851
        }
11852
        break;
11853
 
11854
      case DEST_CODE:
11855
        if (value == null) {
11856
          unsetDestCode();
11857
        } else {
11858
          setDestCode((String)value);
11859
        }
11860
        break;
11861
 
11862
      case EXP:
11863
        if (value == null) {
11864
          unsetExp();
11865
        } else {
11866
          setExp((Boolean)value);
11867
        }
11868
        break;
11869
 
11870
      case COD:
11871
        if (value == null) {
11872
          unsetCod();
11873
        } else {
11874
          setCod((Boolean)value);
11875
        }
11876
        break;
11877
 
11878
      case STATION_TYPE:
11879
        if (value == null) {
11880
          unsetStationType();
11881
        } else {
11882
          setStationType((Integer)value);
11883
        }
11884
        break;
11885
 
11886
      }
11887
    }
11888
 
11889
    public Object getFieldValue(_Fields field) {
11890
      switch (field) {
11891
      case PROVIDER_ID:
11892
        return Long.valueOf(getProviderId());
11893
 
11894
      case PINCODE:
11895
        return getPincode();
11896
 
11897
      case DEST_CODE:
11898
        return getDestCode();
11899
 
11900
      case EXP:
11901
        return Boolean.valueOf(isExp());
11902
 
11903
      case COD:
11904
        return Boolean.valueOf(isCod());
11905
 
11906
      case STATION_TYPE:
11907
        return Integer.valueOf(getStationType());
11908
 
11909
      }
11910
      throw new IllegalStateException();
11911
    }
11912
 
11913
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11914
    public boolean isSet(_Fields field) {
11915
      if (field == null) {
11916
        throw new IllegalArgumentException();
11917
      }
11918
 
11919
      switch (field) {
11920
      case PROVIDER_ID:
11921
        return isSetProviderId();
11922
      case PINCODE:
11923
        return isSetPincode();
11924
      case DEST_CODE:
11925
        return isSetDestCode();
11926
      case EXP:
11927
        return isSetExp();
11928
      case COD:
11929
        return isSetCod();
11930
      case STATION_TYPE:
11931
        return isSetStationType();
11932
      }
11933
      throw new IllegalStateException();
11934
    }
11935
 
11936
    @Override
11937
    public boolean equals(Object that) {
11938
      if (that == null)
11939
        return false;
11940
      if (that instanceof addPincode_args)
11941
        return this.equals((addPincode_args)that);
11942
      return false;
11943
    }
11944
 
11945
    public boolean equals(addPincode_args that) {
11946
      if (that == null)
11947
        return false;
11948
 
11949
      boolean this_present_providerId = true;
11950
      boolean that_present_providerId = true;
11951
      if (this_present_providerId || that_present_providerId) {
11952
        if (!(this_present_providerId && that_present_providerId))
11953
          return false;
11954
        if (this.providerId != that.providerId)
11955
          return false;
11956
      }
11957
 
11958
      boolean this_present_pincode = true && this.isSetPincode();
11959
      boolean that_present_pincode = true && that.isSetPincode();
11960
      if (this_present_pincode || that_present_pincode) {
11961
        if (!(this_present_pincode && that_present_pincode))
11962
          return false;
11963
        if (!this.pincode.equals(that.pincode))
11964
          return false;
11965
      }
11966
 
11967
      boolean this_present_destCode = true && this.isSetDestCode();
11968
      boolean that_present_destCode = true && that.isSetDestCode();
11969
      if (this_present_destCode || that_present_destCode) {
11970
        if (!(this_present_destCode && that_present_destCode))
11971
          return false;
11972
        if (!this.destCode.equals(that.destCode))
11973
          return false;
11974
      }
11975
 
11976
      boolean this_present_exp = true;
11977
      boolean that_present_exp = true;
11978
      if (this_present_exp || that_present_exp) {
11979
        if (!(this_present_exp && that_present_exp))
11980
          return false;
11981
        if (this.exp != that.exp)
11982
          return false;
11983
      }
11984
 
11985
      boolean this_present_cod = true;
11986
      boolean that_present_cod = true;
11987
      if (this_present_cod || that_present_cod) {
11988
        if (!(this_present_cod && that_present_cod))
11989
          return false;
11990
        if (this.cod != that.cod)
11991
          return false;
11992
      }
11993
 
11994
      boolean this_present_stationType = true;
11995
      boolean that_present_stationType = true;
11996
      if (this_present_stationType || that_present_stationType) {
11997
        if (!(this_present_stationType && that_present_stationType))
11998
          return false;
11999
        if (this.stationType != that.stationType)
12000
          return false;
12001
      }
12002
 
12003
      return true;
12004
    }
12005
 
12006
    @Override
12007
    public int hashCode() {
12008
      return 0;
12009
    }
12010
 
12011
    public int compareTo(addPincode_args other) {
12012
      if (!getClass().equals(other.getClass())) {
12013
        return getClass().getName().compareTo(other.getClass().getName());
12014
      }
12015
 
12016
      int lastComparison = 0;
12017
      addPincode_args typedOther = (addPincode_args)other;
12018
 
12019
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
12020
      if (lastComparison != 0) {
12021
        return lastComparison;
12022
      }
12023
      if (isSetProviderId()) {
12024
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
12025
        if (lastComparison != 0) {
12026
          return lastComparison;
12027
        }
12028
      }
12029
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
12030
      if (lastComparison != 0) {
12031
        return lastComparison;
12032
      }
12033
      if (isSetPincode()) {
12034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
12035
        if (lastComparison != 0) {
12036
          return lastComparison;
12037
        }
12038
      }
12039
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
12040
      if (lastComparison != 0) {
12041
        return lastComparison;
12042
      }
12043
      if (isSetDestCode()) {
12044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
12045
        if (lastComparison != 0) {
12046
          return lastComparison;
12047
        }
12048
      }
12049
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
12050
      if (lastComparison != 0) {
12051
        return lastComparison;
12052
      }
12053
      if (isSetExp()) {
12054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
12055
        if (lastComparison != 0) {
12056
          return lastComparison;
12057
        }
12058
      }
12059
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
12060
      if (lastComparison != 0) {
12061
        return lastComparison;
12062
      }
12063
      if (isSetCod()) {
12064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
12065
        if (lastComparison != 0) {
12066
          return lastComparison;
12067
        }
12068
      }
12069
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
12070
      if (lastComparison != 0) {
12071
        return lastComparison;
12072
      }
12073
      if (isSetStationType()) {
12074
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
12075
        if (lastComparison != 0) {
12076
          return lastComparison;
12077
        }
12078
      }
12079
      return 0;
12080
    }
12081
 
12082
    public _Fields fieldForId(int fieldId) {
12083
      return _Fields.findByThriftId(fieldId);
12084
    }
12085
 
12086
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12087
      org.apache.thrift.protocol.TField field;
12088
      iprot.readStructBegin();
12089
      while (true)
12090
      {
12091
        field = iprot.readFieldBegin();
12092
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12093
          break;
12094
        }
12095
        switch (field.id) {
12096
          case 1: // PROVIDER_ID
12097
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12098
              this.providerId = iprot.readI64();
12099
              setProviderIdIsSet(true);
12100
            } else { 
12101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12102
            }
12103
            break;
12104
          case 2: // PINCODE
12105
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12106
              this.pincode = iprot.readString();
12107
            } else { 
12108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12109
            }
12110
            break;
12111
          case 3: // DEST_CODE
12112
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12113
              this.destCode = iprot.readString();
12114
            } else { 
12115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12116
            }
12117
            break;
12118
          case 4: // EXP
12119
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12120
              this.exp = iprot.readBool();
12121
              setExpIsSet(true);
12122
            } else { 
12123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12124
            }
12125
            break;
12126
          case 5: // COD
12127
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12128
              this.cod = iprot.readBool();
12129
              setCodIsSet(true);
12130
            } else { 
12131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12132
            }
12133
            break;
12134
          case 6: // STATION_TYPE
12135
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12136
              this.stationType = iprot.readI32();
12137
              setStationTypeIsSet(true);
12138
            } else { 
12139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12140
            }
12141
            break;
12142
          default:
12143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12144
        }
12145
        iprot.readFieldEnd();
12146
      }
12147
      iprot.readStructEnd();
12148
      validate();
12149
    }
12150
 
12151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12152
      validate();
12153
 
12154
      oprot.writeStructBegin(STRUCT_DESC);
12155
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
12156
      oprot.writeI64(this.providerId);
12157
      oprot.writeFieldEnd();
12158
      if (this.pincode != null) {
12159
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
12160
        oprot.writeString(this.pincode);
12161
        oprot.writeFieldEnd();
12162
      }
12163
      if (this.destCode != null) {
12164
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
12165
        oprot.writeString(this.destCode);
12166
        oprot.writeFieldEnd();
12167
      }
12168
      oprot.writeFieldBegin(EXP_FIELD_DESC);
12169
      oprot.writeBool(this.exp);
12170
      oprot.writeFieldEnd();
12171
      oprot.writeFieldBegin(COD_FIELD_DESC);
12172
      oprot.writeBool(this.cod);
12173
      oprot.writeFieldEnd();
12174
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
12175
      oprot.writeI32(this.stationType);
12176
      oprot.writeFieldEnd();
12177
      oprot.writeFieldStop();
12178
      oprot.writeStructEnd();
12179
    }
12180
 
12181
    @Override
12182
    public String toString() {
12183
      StringBuilder sb = new StringBuilder("addPincode_args(");
12184
      boolean first = true;
12185
 
12186
      sb.append("providerId:");
12187
      sb.append(this.providerId);
12188
      first = false;
12189
      if (!first) sb.append(", ");
12190
      sb.append("pincode:");
12191
      if (this.pincode == null) {
12192
        sb.append("null");
12193
      } else {
12194
        sb.append(this.pincode);
12195
      }
12196
      first = false;
12197
      if (!first) sb.append(", ");
12198
      sb.append("destCode:");
12199
      if (this.destCode == null) {
12200
        sb.append("null");
12201
      } else {
12202
        sb.append(this.destCode);
12203
      }
12204
      first = false;
12205
      if (!first) sb.append(", ");
12206
      sb.append("exp:");
12207
      sb.append(this.exp);
12208
      first = false;
12209
      if (!first) sb.append(", ");
12210
      sb.append("cod:");
12211
      sb.append(this.cod);
12212
      first = false;
12213
      if (!first) sb.append(", ");
12214
      sb.append("stationType:");
12215
      sb.append(this.stationType);
12216
      first = false;
12217
      sb.append(")");
12218
      return sb.toString();
12219
    }
12220
 
12221
    public void validate() throws org.apache.thrift.TException {
12222
      // check for required fields
12223
    }
12224
 
12225
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12226
      try {
12227
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12228
      } catch (org.apache.thrift.TException te) {
12229
        throw new java.io.IOException(te);
12230
      }
12231
    }
12232
 
12233
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12234
      try {
12235
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12236
        __isset_bit_vector = new BitSet(1);
12237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12238
      } catch (org.apache.thrift.TException te) {
12239
        throw new java.io.IOException(te);
12240
      }
12241
    }
12242
 
12243
  }
12244
 
12245
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
12246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
12247
 
12248
 
12249
 
12250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12252
;
12253
 
12254
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12255
 
12256
      static {
12257
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12258
          byName.put(field.getFieldName(), field);
12259
        }
12260
      }
12261
 
12262
      /**
12263
       * Find the _Fields constant that matches fieldId, or null if its not found.
12264
       */
12265
      public static _Fields findByThriftId(int fieldId) {
12266
        switch(fieldId) {
12267
          default:
12268
            return null;
12269
        }
12270
      }
12271
 
12272
      /**
12273
       * Find the _Fields constant that matches fieldId, throwing an exception
12274
       * if it is not found.
12275
       */
12276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12277
        _Fields fields = findByThriftId(fieldId);
12278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12279
        return fields;
12280
      }
12281
 
12282
      /**
12283
       * Find the _Fields constant that matches name, or null if its not found.
12284
       */
12285
      public static _Fields findByName(String name) {
12286
        return byName.get(name);
12287
      }
12288
 
12289
      private final short _thriftId;
12290
      private final String _fieldName;
12291
 
12292
      _Fields(short thriftId, String fieldName) {
12293
        _thriftId = thriftId;
12294
        _fieldName = fieldName;
12295
      }
12296
 
12297
      public short getThriftFieldId() {
12298
        return _thriftId;
12299
      }
12300
 
12301
      public String getFieldName() {
12302
        return _fieldName;
12303
      }
12304
    }
12305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12306
    static {
12307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12308
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12309
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
12310
    }
12311
 
12312
    public addPincode_result() {
12313
    }
12314
 
12315
    /**
12316
     * Performs a deep copy on <i>other</i>.
12317
     */
12318
    public addPincode_result(addPincode_result other) {
12319
    }
12320
 
12321
    public addPincode_result deepCopy() {
12322
      return new addPincode_result(this);
12323
    }
12324
 
12325
    @Override
12326
    public void clear() {
12327
    }
12328
 
12329
    public void setFieldValue(_Fields field, Object value) {
12330
      switch (field) {
12331
      }
12332
    }
12333
 
12334
    public Object getFieldValue(_Fields field) {
12335
      switch (field) {
12336
      }
12337
      throw new IllegalStateException();
12338
    }
12339
 
12340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12341
    public boolean isSet(_Fields field) {
12342
      if (field == null) {
12343
        throw new IllegalArgumentException();
12344
      }
12345
 
12346
      switch (field) {
12347
      }
12348
      throw new IllegalStateException();
12349
    }
12350
 
12351
    @Override
12352
    public boolean equals(Object that) {
12353
      if (that == null)
12354
        return false;
12355
      if (that instanceof addPincode_result)
12356
        return this.equals((addPincode_result)that);
12357
      return false;
12358
    }
12359
 
12360
    public boolean equals(addPincode_result that) {
12361
      if (that == null)
12362
        return false;
12363
 
12364
      return true;
12365
    }
12366
 
12367
    @Override
12368
    public int hashCode() {
12369
      return 0;
12370
    }
12371
 
12372
    public int compareTo(addPincode_result other) {
12373
      if (!getClass().equals(other.getClass())) {
12374
        return getClass().getName().compareTo(other.getClass().getName());
12375
      }
12376
 
12377
      int lastComparison = 0;
12378
      addPincode_result typedOther = (addPincode_result)other;
12379
 
12380
      return 0;
12381
    }
12382
 
12383
    public _Fields fieldForId(int fieldId) {
12384
      return _Fields.findByThriftId(fieldId);
12385
    }
12386
 
12387
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12388
      org.apache.thrift.protocol.TField field;
12389
      iprot.readStructBegin();
12390
      while (true)
12391
      {
12392
        field = iprot.readFieldBegin();
12393
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12394
          break;
12395
        }
12396
        switch (field.id) {
12397
          default:
12398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12399
        }
12400
        iprot.readFieldEnd();
12401
      }
12402
      iprot.readStructEnd();
12403
      validate();
12404
    }
12405
 
12406
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12407
      oprot.writeStructBegin(STRUCT_DESC);
12408
 
12409
      oprot.writeFieldStop();
12410
      oprot.writeStructEnd();
12411
    }
12412
 
12413
    @Override
12414
    public String toString() {
12415
      StringBuilder sb = new StringBuilder("addPincode_result(");
12416
      boolean first = true;
12417
 
12418
      sb.append(")");
12419
      return sb.toString();
12420
    }
12421
 
12422
    public void validate() throws org.apache.thrift.TException {
12423
      // check for required fields
12424
    }
12425
 
12426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12427
      try {
12428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12429
      } catch (org.apache.thrift.TException te) {
12430
        throw new java.io.IOException(te);
12431
      }
12432
    }
12433
 
12434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12435
      try {
12436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12437
      } catch (org.apache.thrift.TException te) {
12438
        throw new java.io.IOException(te);
12439
      }
12440
    }
12441
 
12442
  }
12443
 
12444
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
12445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
12446
 
12447
    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);
12448
    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);
12449
    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);
12450
    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);
12451
 
12452
    private long providerId; // required
12453
    private String pincode; // required
12454
    private boolean exp; // required
12455
    private boolean cod; // required
12456
 
12457
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12458
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12459
      PROVIDER_ID((short)1, "providerId"),
12460
      PINCODE((short)2, "pincode"),
12461
      EXP((short)3, "exp"),
12462
      COD((short)4, "cod");
12463
 
12464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12465
 
12466
      static {
12467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12468
          byName.put(field.getFieldName(), field);
12469
        }
12470
      }
12471
 
12472
      /**
12473
       * Find the _Fields constant that matches fieldId, or null if its not found.
12474
       */
12475
      public static _Fields findByThriftId(int fieldId) {
12476
        switch(fieldId) {
12477
          case 1: // PROVIDER_ID
12478
            return PROVIDER_ID;
12479
          case 2: // PINCODE
12480
            return PINCODE;
12481
          case 3: // EXP
12482
            return EXP;
12483
          case 4: // COD
12484
            return COD;
12485
          default:
12486
            return null;
12487
        }
12488
      }
12489
 
12490
      /**
12491
       * Find the _Fields constant that matches fieldId, throwing an exception
12492
       * if it is not found.
12493
       */
12494
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12495
        _Fields fields = findByThriftId(fieldId);
12496
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12497
        return fields;
12498
      }
12499
 
12500
      /**
12501
       * Find the _Fields constant that matches name, or null if its not found.
12502
       */
12503
      public static _Fields findByName(String name) {
12504
        return byName.get(name);
12505
      }
12506
 
12507
      private final short _thriftId;
12508
      private final String _fieldName;
12509
 
12510
      _Fields(short thriftId, String fieldName) {
12511
        _thriftId = thriftId;
12512
        _fieldName = fieldName;
12513
      }
12514
 
12515
      public short getThriftFieldId() {
12516
        return _thriftId;
12517
      }
12518
 
12519
      public String getFieldName() {
12520
        return _fieldName;
12521
      }
12522
    }
12523
 
12524
    // isset id assignments
12525
    private static final int __PROVIDERID_ISSET_ID = 0;
12526
    private static final int __EXP_ISSET_ID = 1;
12527
    private static final int __COD_ISSET_ID = 2;
12528
    private BitSet __isset_bit_vector = new BitSet(3);
12529
 
12530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12531
    static {
12532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12533
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12534
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12535
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12537
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12538
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12539
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12541
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12542
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
12543
    }
12544
 
12545
    public updatePincode_args() {
12546
    }
12547
 
12548
    public updatePincode_args(
12549
      long providerId,
12550
      String pincode,
12551
      boolean exp,
12552
      boolean cod)
12553
    {
12554
      this();
12555
      this.providerId = providerId;
12556
      setProviderIdIsSet(true);
12557
      this.pincode = pincode;
12558
      this.exp = exp;
12559
      setExpIsSet(true);
12560
      this.cod = cod;
12561
      setCodIsSet(true);
12562
    }
12563
 
12564
    /**
12565
     * Performs a deep copy on <i>other</i>.
12566
     */
12567
    public updatePincode_args(updatePincode_args other) {
12568
      __isset_bit_vector.clear();
12569
      __isset_bit_vector.or(other.__isset_bit_vector);
12570
      this.providerId = other.providerId;
12571
      if (other.isSetPincode()) {
12572
        this.pincode = other.pincode;
12573
      }
12574
      this.exp = other.exp;
12575
      this.cod = other.cod;
12576
    }
12577
 
12578
    public updatePincode_args deepCopy() {
12579
      return new updatePincode_args(this);
12580
    }
12581
 
12582
    @Override
12583
    public void clear() {
12584
      setProviderIdIsSet(false);
12585
      this.providerId = 0;
12586
      this.pincode = null;
12587
      setExpIsSet(false);
12588
      this.exp = false;
12589
      setCodIsSet(false);
12590
      this.cod = false;
12591
    }
12592
 
12593
    public long getProviderId() {
12594
      return this.providerId;
12595
    }
12596
 
12597
    public void setProviderId(long providerId) {
12598
      this.providerId = providerId;
12599
      setProviderIdIsSet(true);
12600
    }
12601
 
12602
    public void unsetProviderId() {
12603
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
12604
    }
12605
 
12606
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
12607
    public boolean isSetProviderId() {
12608
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
12609
    }
12610
 
12611
    public void setProviderIdIsSet(boolean value) {
12612
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
12613
    }
12614
 
12615
    public String getPincode() {
12616
      return this.pincode;
12617
    }
12618
 
12619
    public void setPincode(String pincode) {
12620
      this.pincode = pincode;
12621
    }
12622
 
12623
    public void unsetPincode() {
12624
      this.pincode = null;
12625
    }
12626
 
12627
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
12628
    public boolean isSetPincode() {
12629
      return this.pincode != null;
12630
    }
12631
 
12632
    public void setPincodeIsSet(boolean value) {
12633
      if (!value) {
12634
        this.pincode = null;
12635
      }
12636
    }
12637
 
12638
    public boolean isExp() {
12639
      return this.exp;
12640
    }
12641
 
12642
    public void setExp(boolean exp) {
12643
      this.exp = exp;
12644
      setExpIsSet(true);
12645
    }
12646
 
12647
    public void unsetExp() {
12648
      __isset_bit_vector.clear(__EXP_ISSET_ID);
12649
    }
12650
 
12651
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
12652
    public boolean isSetExp() {
12653
      return __isset_bit_vector.get(__EXP_ISSET_ID);
12654
    }
12655
 
12656
    public void setExpIsSet(boolean value) {
12657
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
12658
    }
12659
 
12660
    public boolean isCod() {
12661
      return this.cod;
12662
    }
12663
 
12664
    public void setCod(boolean cod) {
12665
      this.cod = cod;
12666
      setCodIsSet(true);
12667
    }
12668
 
12669
    public void unsetCod() {
12670
      __isset_bit_vector.clear(__COD_ISSET_ID);
12671
    }
12672
 
12673
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
12674
    public boolean isSetCod() {
12675
      return __isset_bit_vector.get(__COD_ISSET_ID);
12676
    }
12677
 
12678
    public void setCodIsSet(boolean value) {
12679
      __isset_bit_vector.set(__COD_ISSET_ID, value);
12680
    }
12681
 
12682
    public void setFieldValue(_Fields field, Object value) {
12683
      switch (field) {
12684
      case PROVIDER_ID:
12685
        if (value == null) {
12686
          unsetProviderId();
12687
        } else {
12688
          setProviderId((Long)value);
12689
        }
12690
        break;
12691
 
12692
      case PINCODE:
12693
        if (value == null) {
12694
          unsetPincode();
12695
        } else {
12696
          setPincode((String)value);
12697
        }
12698
        break;
12699
 
12700
      case EXP:
12701
        if (value == null) {
12702
          unsetExp();
12703
        } else {
12704
          setExp((Boolean)value);
12705
        }
12706
        break;
12707
 
12708
      case COD:
12709
        if (value == null) {
12710
          unsetCod();
12711
        } else {
12712
          setCod((Boolean)value);
12713
        }
12714
        break;
12715
 
12716
      }
12717
    }
12718
 
12719
    public Object getFieldValue(_Fields field) {
12720
      switch (field) {
12721
      case PROVIDER_ID:
12722
        return Long.valueOf(getProviderId());
12723
 
12724
      case PINCODE:
12725
        return getPincode();
12726
 
12727
      case EXP:
12728
        return Boolean.valueOf(isExp());
12729
 
12730
      case COD:
12731
        return Boolean.valueOf(isCod());
12732
 
12733
      }
12734
      throw new IllegalStateException();
12735
    }
12736
 
12737
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12738
    public boolean isSet(_Fields field) {
12739
      if (field == null) {
12740
        throw new IllegalArgumentException();
12741
      }
12742
 
12743
      switch (field) {
12744
      case PROVIDER_ID:
12745
        return isSetProviderId();
12746
      case PINCODE:
12747
        return isSetPincode();
12748
      case EXP:
12749
        return isSetExp();
12750
      case COD:
12751
        return isSetCod();
12752
      }
12753
      throw new IllegalStateException();
12754
    }
12755
 
12756
    @Override
12757
    public boolean equals(Object that) {
12758
      if (that == null)
12759
        return false;
12760
      if (that instanceof updatePincode_args)
12761
        return this.equals((updatePincode_args)that);
12762
      return false;
12763
    }
12764
 
12765
    public boolean equals(updatePincode_args that) {
12766
      if (that == null)
12767
        return false;
12768
 
12769
      boolean this_present_providerId = true;
12770
      boolean that_present_providerId = true;
12771
      if (this_present_providerId || that_present_providerId) {
12772
        if (!(this_present_providerId && that_present_providerId))
12773
          return false;
12774
        if (this.providerId != that.providerId)
12775
          return false;
12776
      }
12777
 
12778
      boolean this_present_pincode = true && this.isSetPincode();
12779
      boolean that_present_pincode = true && that.isSetPincode();
12780
      if (this_present_pincode || that_present_pincode) {
12781
        if (!(this_present_pincode && that_present_pincode))
12782
          return false;
12783
        if (!this.pincode.equals(that.pincode))
12784
          return false;
12785
      }
12786
 
12787
      boolean this_present_exp = true;
12788
      boolean that_present_exp = true;
12789
      if (this_present_exp || that_present_exp) {
12790
        if (!(this_present_exp && that_present_exp))
12791
          return false;
12792
        if (this.exp != that.exp)
12793
          return false;
12794
      }
12795
 
12796
      boolean this_present_cod = true;
12797
      boolean that_present_cod = true;
12798
      if (this_present_cod || that_present_cod) {
12799
        if (!(this_present_cod && that_present_cod))
12800
          return false;
12801
        if (this.cod != that.cod)
12802
          return false;
12803
      }
12804
 
12805
      return true;
12806
    }
12807
 
12808
    @Override
12809
    public int hashCode() {
12810
      return 0;
12811
    }
12812
 
12813
    public int compareTo(updatePincode_args other) {
12814
      if (!getClass().equals(other.getClass())) {
12815
        return getClass().getName().compareTo(other.getClass().getName());
12816
      }
12817
 
12818
      int lastComparison = 0;
12819
      updatePincode_args typedOther = (updatePincode_args)other;
12820
 
12821
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
12822
      if (lastComparison != 0) {
12823
        return lastComparison;
12824
      }
12825
      if (isSetProviderId()) {
12826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
12827
        if (lastComparison != 0) {
12828
          return lastComparison;
12829
        }
12830
      }
12831
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
12832
      if (lastComparison != 0) {
12833
        return lastComparison;
12834
      }
12835
      if (isSetPincode()) {
12836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
12837
        if (lastComparison != 0) {
12838
          return lastComparison;
12839
        }
12840
      }
12841
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
12842
      if (lastComparison != 0) {
12843
        return lastComparison;
12844
      }
12845
      if (isSetExp()) {
12846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
12847
        if (lastComparison != 0) {
12848
          return lastComparison;
12849
        }
12850
      }
12851
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
12852
      if (lastComparison != 0) {
12853
        return lastComparison;
12854
      }
12855
      if (isSetCod()) {
12856
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
12857
        if (lastComparison != 0) {
12858
          return lastComparison;
12859
        }
12860
      }
12861
      return 0;
12862
    }
12863
 
12864
    public _Fields fieldForId(int fieldId) {
12865
      return _Fields.findByThriftId(fieldId);
12866
    }
12867
 
12868
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12869
      org.apache.thrift.protocol.TField field;
12870
      iprot.readStructBegin();
12871
      while (true)
12872
      {
12873
        field = iprot.readFieldBegin();
12874
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12875
          break;
12876
        }
12877
        switch (field.id) {
12878
          case 1: // PROVIDER_ID
12879
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12880
              this.providerId = iprot.readI64();
12881
              setProviderIdIsSet(true);
12882
            } else { 
12883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12884
            }
12885
            break;
12886
          case 2: // PINCODE
12887
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12888
              this.pincode = iprot.readString();
12889
            } else { 
12890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12891
            }
12892
            break;
12893
          case 3: // EXP
12894
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12895
              this.exp = iprot.readBool();
12896
              setExpIsSet(true);
12897
            } else { 
12898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12899
            }
12900
            break;
12901
          case 4: // COD
12902
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12903
              this.cod = iprot.readBool();
12904
              setCodIsSet(true);
12905
            } else { 
12906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12907
            }
12908
            break;
12909
          default:
12910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12911
        }
12912
        iprot.readFieldEnd();
12913
      }
12914
      iprot.readStructEnd();
12915
      validate();
12916
    }
12917
 
12918
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12919
      validate();
12920
 
12921
      oprot.writeStructBegin(STRUCT_DESC);
12922
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
12923
      oprot.writeI64(this.providerId);
12924
      oprot.writeFieldEnd();
12925
      if (this.pincode != null) {
12926
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
12927
        oprot.writeString(this.pincode);
12928
        oprot.writeFieldEnd();
12929
      }
12930
      oprot.writeFieldBegin(EXP_FIELD_DESC);
12931
      oprot.writeBool(this.exp);
12932
      oprot.writeFieldEnd();
12933
      oprot.writeFieldBegin(COD_FIELD_DESC);
12934
      oprot.writeBool(this.cod);
12935
      oprot.writeFieldEnd();
12936
      oprot.writeFieldStop();
12937
      oprot.writeStructEnd();
12938
    }
12939
 
12940
    @Override
12941
    public String toString() {
12942
      StringBuilder sb = new StringBuilder("updatePincode_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("exp:");
12958
      sb.append(this.exp);
12959
      first = false;
12960
      if (!first) sb.append(", ");
12961
      sb.append("cod:");
12962
      sb.append(this.cod);
12963
      first = false;
12964
      sb.append(")");
12965
      return sb.toString();
12966
    }
12967
 
12968
    public void validate() throws org.apache.thrift.TException {
12969
      // check for required fields
12970
    }
12971
 
12972
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12973
      try {
12974
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12975
      } catch (org.apache.thrift.TException te) {
12976
        throw new java.io.IOException(te);
12977
      }
12978
    }
12979
 
12980
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12981
      try {
12982
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12983
        __isset_bit_vector = new BitSet(1);
12984
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12985
      } catch (org.apache.thrift.TException te) {
12986
        throw new java.io.IOException(te);
12987
      }
12988
    }
12989
 
12990
  }
12991
 
12992
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
12993
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
12994
 
12995
 
12996
 
12997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12999
;
13000
 
13001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13002
 
13003
      static {
13004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13005
          byName.put(field.getFieldName(), field);
13006
        }
13007
      }
13008
 
13009
      /**
13010
       * Find the _Fields constant that matches fieldId, or null if its not found.
13011
       */
13012
      public static _Fields findByThriftId(int fieldId) {
13013
        switch(fieldId) {
13014
          default:
13015
            return null;
13016
        }
13017
      }
13018
 
13019
      /**
13020
       * Find the _Fields constant that matches fieldId, throwing an exception
13021
       * if it is not found.
13022
       */
13023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13024
        _Fields fields = findByThriftId(fieldId);
13025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13026
        return fields;
13027
      }
13028
 
13029
      /**
13030
       * Find the _Fields constant that matches name, or null if its not found.
13031
       */
13032
      public static _Fields findByName(String name) {
13033
        return byName.get(name);
13034
      }
13035
 
13036
      private final short _thriftId;
13037
      private final String _fieldName;
13038
 
13039
      _Fields(short thriftId, String fieldName) {
13040
        _thriftId = thriftId;
13041
        _fieldName = fieldName;
13042
      }
13043
 
13044
      public short getThriftFieldId() {
13045
        return _thriftId;
13046
      }
13047
 
13048
      public String getFieldName() {
13049
        return _fieldName;
13050
      }
13051
    }
13052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13053
    static {
13054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13055
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13056
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
13057
    }
13058
 
13059
    public updatePincode_result() {
13060
    }
13061
 
13062
    /**
13063
     * Performs a deep copy on <i>other</i>.
13064
     */
13065
    public updatePincode_result(updatePincode_result other) {
13066
    }
13067
 
13068
    public updatePincode_result deepCopy() {
13069
      return new updatePincode_result(this);
13070
    }
13071
 
13072
    @Override
13073
    public void clear() {
13074
    }
13075
 
13076
    public void setFieldValue(_Fields field, Object value) {
13077
      switch (field) {
13078
      }
13079
    }
13080
 
13081
    public Object getFieldValue(_Fields field) {
13082
      switch (field) {
13083
      }
13084
      throw new IllegalStateException();
13085
    }
13086
 
13087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13088
    public boolean isSet(_Fields field) {
13089
      if (field == null) {
13090
        throw new IllegalArgumentException();
13091
      }
13092
 
13093
      switch (field) {
13094
      }
13095
      throw new IllegalStateException();
13096
    }
13097
 
13098
    @Override
13099
    public boolean equals(Object that) {
13100
      if (that == null)
13101
        return false;
13102
      if (that instanceof updatePincode_result)
13103
        return this.equals((updatePincode_result)that);
13104
      return false;
13105
    }
13106
 
13107
    public boolean equals(updatePincode_result that) {
13108
      if (that == null)
13109
        return false;
13110
 
13111
      return true;
13112
    }
13113
 
13114
    @Override
13115
    public int hashCode() {
13116
      return 0;
13117
    }
13118
 
13119
    public int compareTo(updatePincode_result other) {
13120
      if (!getClass().equals(other.getClass())) {
13121
        return getClass().getName().compareTo(other.getClass().getName());
13122
      }
13123
 
13124
      int lastComparison = 0;
13125
      updatePincode_result typedOther = (updatePincode_result)other;
13126
 
13127
      return 0;
13128
    }
13129
 
13130
    public _Fields fieldForId(int fieldId) {
13131
      return _Fields.findByThriftId(fieldId);
13132
    }
13133
 
13134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13135
      org.apache.thrift.protocol.TField field;
13136
      iprot.readStructBegin();
13137
      while (true)
13138
      {
13139
        field = iprot.readFieldBegin();
13140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13141
          break;
13142
        }
13143
        switch (field.id) {
13144
          default:
13145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13146
        }
13147
        iprot.readFieldEnd();
13148
      }
13149
      iprot.readStructEnd();
13150
      validate();
13151
    }
13152
 
13153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13154
      oprot.writeStructBegin(STRUCT_DESC);
13155
 
13156
      oprot.writeFieldStop();
13157
      oprot.writeStructEnd();
13158
    }
13159
 
13160
    @Override
13161
    public String toString() {
13162
      StringBuilder sb = new StringBuilder("updatePincode_result(");
13163
      boolean first = true;
13164
 
13165
      sb.append(")");
13166
      return sb.toString();
13167
    }
13168
 
13169
    public void validate() throws org.apache.thrift.TException {
13170
      // check for required fields
13171
    }
13172
 
13173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13174
      try {
13175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13176
      } catch (org.apache.thrift.TException te) {
13177
        throw new java.io.IOException(te);
13178
      }
13179
    }
13180
 
13181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13182
      try {
13183
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13184
      } catch (org.apache.thrift.TException te) {
13185
        throw new java.io.IOException(te);
13186
      }
13187
    }
13188
 
13189
  }
13190
 
412 ashish 13191
}