Subversion Repositories SmartDukaan

Rev

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