Subversion Repositories SmartDukaan

Rev

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