Subversion Repositories SmartDukaan

Rev

Rev 6643 | Rev 7567 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
412 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
412 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.logistics;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
412 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LogisticsService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
412 ashish 26
 
648 chandransh 27
    /**
668 chandransh 28
     * Returns a provider for a given provider ID. Throws an exception if none found.
29
     * 
30
     * @param providerId
31
     */
3430 rajveer 32
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
668 chandransh 33
 
34
    /**
674 chandransh 35
     * Returns a list containing all the providers.
36
     */
3430 rajveer 37
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
674 chandransh 38
 
39
    /**
648 chandransh 40
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
41
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
42
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
43
     * 
44
     * @param itemId
45
     * @param destination_pin
4630 mandeep.dh 46
     * @param type
648 chandransh 47
     */
4630 mandeep.dh 48
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
483 rajveer 49
 
7256 rajveer 50
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
51
 
648 chandransh 52
    /**
53
     * Same as above excpet that an airway bill number is also allocated and returned.
54
     * 
55
     * @param destination_pincode
56
     * @param item_id
3044 chandransh 57
     * @param type
5766 rajveer 58
     * @param pickUp
648 chandransh 59
     */
5766 rajveer 60
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 61
 
648 chandransh 62
    /**
63
     * Returns an unused AWB number for the given provider.
64
     * 
65
     * @param providerId
5247 rajveer 66
     * @param type
648 chandransh 67
     */
5247 rajveer 68
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 69
 
648 chandransh 70
    /**
71
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
72
     * 
6643 rajveer 73
     * @param awbNumber
648 chandransh 74
     * @param providerId
75
     */
6643 rajveer 76
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 77
 
730 chandransh 78
    /**
6643 rajveer 79
     * Store the update for the given AWB number and provider id.
80
     * 
81
     * @param update
82
     */
83
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
84
 
85
    /**
730 chandransh 86
     * Returns the short three letter code of a pincode for the given provider.
87
     *    Raises an exception if the pin code is not serviced by the given provider.
88
     * 
89
     * @param providerId
90
     * @param pinCode
91
     */
3430 rajveer 92
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 93
 
1139 chandransh 94
    /**
3103 chandransh 95
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 96
     * 
97
     * @param providerId
3103 chandransh 98
     * @param type
1139 chandransh 99
     */
3430 rajveer 100
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 101
 
1730 ankur.sing 102
    /**
103
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
104
     * fromDate should be passed as milliseconds corresponding to the start of the day.
105
     * If fromDate is passed as -1, fromDate is not considered for filtering
106
     * If toDate is passed as -1, toDate is not considered for filtering
107
     * 
108
     * @param fromDate
109
     * @param toDate
110
     */
3430 rajveer 111
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 112
 
4934 amit.gupta 113
    /**
114
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
115
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
116
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
117
     * 
118
     * @param catalogItemId
119
     * @param destination_pin
120
     * @param type
121
     */
122
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
123
 
5527 anupam.sin 124
    /**
125
     * Returns the id for a given pickUpType
126
     * 
127
     * @param pickUp
128
     */
129
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
130
 
5553 rajveer 131
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
132
 
133
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
134
 
5719 rajveer 135
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
136
 
6524 rajveer 137
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 138
 
6524 rajveer 139
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 140
 
412 ashish 141
  }
142
 
3430 rajveer 143
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
144
 
145
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
146
 
147
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
148
 
4630 mandeep.dh 149
    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 150
 
7256 rajveer 151
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
152
 
5766 rajveer 153
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 154
 
5247 rajveer 155
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 156
 
6643 rajveer 157
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 158
 
6643 rajveer 159
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
160
 
3430 rajveer 161
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
162
 
163
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
166
 
4934 amit.gupta 167
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
168
 
5527 anupam.sin 169
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
170
 
5553 rajveer 171
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
174
 
5719 rajveer 175
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
176
 
6524 rajveer 177
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 178
 
6524 rajveer 179
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 180
 
3430 rajveer 181
  }
182
 
3374 rajveer 183
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 184
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
185
      public Factory() {}
186
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
187
        return new Client(prot);
188
      }
189
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
190
        return new Client(iprot, oprot);
191
      }
192
    }
193
 
194
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 195
    {
3430 rajveer 196
      super(prot, prot);
412 ashish 197
    }
198
 
3430 rajveer 199
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 200
      super(iprot, oprot);
412 ashish 201
    }
202
 
3430 rajveer 203
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 204
    {
205
      send_getProvider(providerId);
206
      return recv_getProvider();
207
    }
208
 
3430 rajveer 209
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 210
    {
211
      getProvider_args args = new getProvider_args();
3430 rajveer 212
      args.setProviderId(providerId);
213
      sendBase("getProvider", args);
668 chandransh 214
    }
215
 
3430 rajveer 216
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 217
    {
218
      getProvider_result result = new getProvider_result();
3430 rajveer 219
      receiveBase(result, "getProvider");
668 chandransh 220
      if (result.isSetSuccess()) {
221
        return result.success;
222
      }
223
      if (result.lse != null) {
224
        throw result.lse;
225
      }
3430 rajveer 226
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 227
    }
228
 
3430 rajveer 229
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 230
    {
231
      send_getAllProviders();
232
      return recv_getAllProviders();
233
    }
234
 
3430 rajveer 235
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 236
    {
237
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 238
      sendBase("getAllProviders", args);
674 chandransh 239
    }
240
 
3430 rajveer 241
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 242
    {
243
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 244
      receiveBase(result, "getAllProviders");
674 chandransh 245
      if (result.isSetSuccess()) {
246
        return result.success;
247
      }
248
      if (result.lse != null) {
249
        throw result.lse;
250
      }
3430 rajveer 251
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 252
    }
253
 
4630 mandeep.dh 254
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 255
    {
4630 mandeep.dh 256
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 257
      return recv_getLogisticsEstimation();
258
    }
259
 
4630 mandeep.dh 260
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 261
    {
262
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 263
      args.setItemId(itemId);
264
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 265
      args.setType(type);
3430 rajveer 266
      sendBase("getLogisticsEstimation", args);
471 rajveer 267
    }
268
 
3430 rajveer 269
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 270
    {
271
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 272
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 273
      if (result.isSetSuccess()) {
274
        return result.success;
275
      }
276
      if (result.se != null) {
277
        throw result.se;
278
      }
3430 rajveer 279
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 280
    }
281
 
7256 rajveer 282
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
283
    {
284
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
285
      return recv_getLogisticsEstimationForStore();
286
    }
287
 
288
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
289
    {
290
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
291
      args.setItemId(itemId);
292
      args.setDestination_pin(destination_pin);
293
      args.setType(type);
294
      sendBase("getLogisticsEstimationForStore", args);
295
    }
296
 
297
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
298
    {
299
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
300
      receiveBase(result, "getLogisticsEstimationForStore");
301
      if (result.isSetSuccess()) {
302
        return result.success;
303
      }
304
      if (result.se != null) {
305
        throw result.se;
306
      }
307
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
308
    }
309
 
5766 rajveer 310
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 311
    {
5766 rajveer 312
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 313
      return recv_getLogisticsInfo();
471 rajveer 314
    }
315
 
5766 rajveer 316
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 317
    {
648 chandransh 318
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 319
      args.setDestination_pincode(destination_pincode);
320
      args.setItem_id(item_id);
321
      args.setType(type);
5766 rajveer 322
      args.setPickUp(pickUp);
3430 rajveer 323
      sendBase("getLogisticsInfo", args);
471 rajveer 324
    }
325
 
3430 rajveer 326
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 327
    {
648 chandransh 328
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 329
      receiveBase(result, "getLogisticsInfo");
648 chandransh 330
      if (result.isSetSuccess()) {
331
        return result.success;
477 rajveer 332
      }
648 chandransh 333
      if (result.se != null) {
334
        throw result.se;
412 ashish 335
      }
3430 rajveer 336
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 337
    }
338
 
5247 rajveer 339
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 340
    {
5247 rajveer 341
      send_getEmptyAWB(providerId, type);
412 ashish 342
      return recv_getEmptyAWB();
343
    }
344
 
5247 rajveer 345
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 346
    {
347
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 348
      args.setProviderId(providerId);
5247 rajveer 349
      args.setType(type);
3430 rajveer 350
      sendBase("getEmptyAWB", args);
412 ashish 351
    }
352
 
3430 rajveer 353
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 354
    {
355
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 356
      receiveBase(result, "getEmptyAWB");
412 ashish 357
      if (result.isSetSuccess()) {
358
        return result.success;
359
      }
648 chandransh 360
      if (result.se != null) {
361
        throw result.se;
362
      }
3430 rajveer 363
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 364
    }
365
 
6643 rajveer 366
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 367
    {
6643 rajveer 368
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 369
      return recv_getShipmentInfo();
370
    }
371
 
6643 rajveer 372
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 373
    {
374
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 375
      args.setAwbNumber(awbNumber);
3430 rajveer 376
      args.setProviderId(providerId);
377
      sendBase("getShipmentInfo", args);
412 ashish 378
    }
379
 
3430 rajveer 380
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 381
    {
382
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 383
      receiveBase(result, "getShipmentInfo");
412 ashish 384
      if (result.isSetSuccess()) {
385
        return result.success;
386
      }
648 chandransh 387
      if (result.se != null) {
388
        throw result.se;
389
      }
3430 rajveer 390
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 391
    }
392
 
6643 rajveer 393
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
394
    {
395
      send_storeShipmentInfo(update);
396
      recv_storeShipmentInfo();
397
    }
398
 
399
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
400
    {
401
      storeShipmentInfo_args args = new storeShipmentInfo_args();
402
      args.setUpdate(update);
403
      sendBase("storeShipmentInfo", args);
404
    }
405
 
406
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
407
    {
408
      storeShipmentInfo_result result = new storeShipmentInfo_result();
409
      receiveBase(result, "storeShipmentInfo");
410
      if (result.se != null) {
411
        throw result.se;
412
      }
413
      return;
414
    }
415
 
3430 rajveer 416
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 417
    {
418
      send_getDestinationCode(providerId, pinCode);
419
      return recv_getDestinationCode();
420
    }
421
 
3430 rajveer 422
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 423
    {
424
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 425
      args.setProviderId(providerId);
426
      args.setPinCode(pinCode);
427
      sendBase("getDestinationCode", args);
730 chandransh 428
    }
429
 
3430 rajveer 430
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 431
    {
432
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 433
      receiveBase(result, "getDestinationCode");
730 chandransh 434
      if (result.isSetSuccess()) {
435
        return result.success;
436
      }
437
      if (result.se != null) {
438
        throw result.se;
439
      }
3430 rajveer 440
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 441
    }
442
 
3430 rajveer 443
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 444
    {
3103 chandransh 445
      send_getFreeAwbCount(providerId, type);
1139 chandransh 446
      return recv_getFreeAwbCount();
447
    }
448
 
3430 rajveer 449
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 450
    {
451
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 452
      args.setProviderId(providerId);
453
      args.setType(type);
454
      sendBase("getFreeAwbCount", args);
1139 chandransh 455
    }
456
 
3430 rajveer 457
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 458
    {
459
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 460
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 461
      if (result.isSetSuccess()) {
462
        return result.success;
463
      }
3430 rajveer 464
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 465
    }
466
 
3430 rajveer 467
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 468
    {
469
      send_getHolidays(fromDate, toDate);
470
      return recv_getHolidays();
471
    }
472
 
3430 rajveer 473
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 474
    {
475
      getHolidays_args args = new getHolidays_args();
3430 rajveer 476
      args.setFromDate(fromDate);
477
      args.setToDate(toDate);
478
      sendBase("getHolidays", args);
1730 ankur.sing 479
    }
480
 
3430 rajveer 481
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 482
    {
483
      getHolidays_result result = new getHolidays_result();
3430 rajveer 484
      receiveBase(result, "getHolidays");
1730 ankur.sing 485
      if (result.isSetSuccess()) {
486
        return result.success;
487
      }
3430 rajveer 488
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 489
    }
490
 
4934 amit.gupta 491
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
492
    {
493
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
494
      return recv_getEntityLogisticsEstimation();
495
    }
496
 
497
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
498
    {
499
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
500
      args.setCatalogItemId(catalogItemId);
501
      args.setDestination_pin(destination_pin);
502
      args.setType(type);
503
      sendBase("getEntityLogisticsEstimation", args);
504
    }
505
 
506
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
507
    {
508
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
509
      receiveBase(result, "getEntityLogisticsEstimation");
510
      if (result.isSetSuccess()) {
511
        return result.success;
512
      }
513
      if (result.se != null) {
514
        throw result.se;
515
      }
516
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
517
    }
518
 
5527 anupam.sin 519
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
520
    {
521
      send_getProviderForPickupType(pickUp);
522
      return recv_getProviderForPickupType();
523
    }
524
 
525
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
526
    {
527
      getProviderForPickupType_args args = new getProviderForPickupType_args();
528
      args.setPickUp(pickUp);
529
      sendBase("getProviderForPickupType", args);
530
    }
531
 
532
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
533
    {
534
      getProviderForPickupType_result result = new getProviderForPickupType_result();
535
      receiveBase(result, "getProviderForPickupType");
536
      if (result.isSetSuccess()) {
537
        return result.success;
538
      }
539
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
540
    }
541
 
5553 rajveer 542
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
543
    {
544
      send_getAllPickupStores();
545
      return recv_getAllPickupStores();
546
    }
547
 
548
    public void send_getAllPickupStores() throws org.apache.thrift.TException
549
    {
550
      getAllPickupStores_args args = new getAllPickupStores_args();
551
      sendBase("getAllPickupStores", args);
552
    }
553
 
554
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
555
    {
556
      getAllPickupStores_result result = new getAllPickupStores_result();
557
      receiveBase(result, "getAllPickupStores");
558
      if (result.isSetSuccess()) {
559
        return result.success;
560
      }
561
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
562
    }
563
 
564
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
565
    {
566
      send_getPickupStore(storeId);
567
      return recv_getPickupStore();
568
    }
569
 
570
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
571
    {
572
      getPickupStore_args args = new getPickupStore_args();
573
      args.setStoreId(storeId);
574
      sendBase("getPickupStore", args);
575
    }
576
 
577
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
578
    {
579
      getPickupStore_result result = new getPickupStore_result();
580
      receiveBase(result, "getPickupStore");
581
      if (result.isSetSuccess()) {
582
        return result.success;
583
      }
584
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
585
    }
586
 
5719 rajveer 587
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
588
    {
589
      send_getPickupStoreByHotspotId(hotspotId);
590
      return recv_getPickupStoreByHotspotId();
591
    }
592
 
593
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
594
    {
595
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
596
      args.setHotspotId(hotspotId);
597
      sendBase("getPickupStoreByHotspotId", args);
598
    }
599
 
600
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
601
    {
602
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
603
      receiveBase(result, "getPickupStoreByHotspotId");
604
      if (result.isSetSuccess()) {
605
        return result.success;
606
      }
607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
608
    }
609
 
6524 rajveer 610
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 611
    {
6524 rajveer 612
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 613
      recv_addPincode();
614
    }
615
 
6524 rajveer 616
    public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 617
    {
618
      addPincode_args args = new addPincode_args();
619
      args.setProviderId(providerId);
620
      args.setPincode(pincode);
621
      args.setDestCode(destCode);
622
      args.setExp(exp);
623
      args.setCod(cod);
624
      args.setStationType(stationType);
6524 rajveer 625
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 626
      sendBase("addPincode", args);
627
    }
628
 
629
    public void recv_addPincode() throws org.apache.thrift.TException
630
    {
631
      addPincode_result result = new addPincode_result();
632
      receiveBase(result, "addPincode");
633
      return;
634
    }
635
 
6524 rajveer 636
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 637
    {
6524 rajveer 638
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 639
      recv_updatePincode();
640
    }
641
 
6524 rajveer 642
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 643
    {
644
      updatePincode_args args = new updatePincode_args();
645
      args.setProviderId(providerId);
646
      args.setPincode(pincode);
647
      args.setExp(exp);
648
      args.setCod(cod);
6524 rajveer 649
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 650
      sendBase("updatePincode", args);
651
    }
652
 
653
    public void recv_updatePincode() throws org.apache.thrift.TException
654
    {
655
      updatePincode_result result = new updatePincode_result();
656
      receiveBase(result, "updatePincode");
657
      return;
658
    }
659
 
412 ashish 660
  }
3430 rajveer 661
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
662
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
663
      private org.apache.thrift.async.TAsyncClientManager clientManager;
664
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
665
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
666
        this.clientManager = clientManager;
667
        this.protocolFactory = protocolFactory;
668
      }
669
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
670
        return new AsyncClient(protocolFactory, clientManager, transport);
671
      }
412 ashish 672
    }
673
 
3430 rajveer 674
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
675
      super(protocolFactory, clientManager, transport);
676
    }
412 ashish 677
 
3430 rajveer 678
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
679
      checkReady();
680
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
681
      this.___currentMethod = method_call;
682
      ___manager.call(method_call);
683
    }
684
 
685
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
686
      private long providerId;
687
      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 {
688
        super(client, protocolFactory, transport, resultHandler, false);
689
        this.providerId = providerId;
412 ashish 690
      }
3430 rajveer 691
 
692
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
693
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
694
        getProvider_args args = new getProvider_args();
695
        args.setProviderId(providerId);
696
        args.write(prot);
697
        prot.writeMessageEnd();
698
      }
699
 
700
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
701
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
702
          throw new IllegalStateException("Method call not finished!");
703
        }
704
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
705
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
706
        return (new Client(prot)).recv_getProvider();
707
      }
412 ashish 708
    }
709
 
3430 rajveer 710
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
711
      checkReady();
712
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
713
      this.___currentMethod = method_call;
714
      ___manager.call(method_call);
715
    }
716
 
717
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
718
      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 {
719
        super(client, protocolFactory, transport, resultHandler, false);
720
      }
721
 
722
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
723
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
724
        getAllProviders_args args = new getAllProviders_args();
725
        args.write(prot);
726
        prot.writeMessageEnd();
727
      }
728
 
729
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
730
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
731
          throw new IllegalStateException("Method call not finished!");
732
        }
733
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
734
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
735
        return (new Client(prot)).recv_getAllProviders();
736
      }
737
    }
738
 
4630 mandeep.dh 739
    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 740
      checkReady();
4630 mandeep.dh 741
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 742
      this.___currentMethod = method_call;
743
      ___manager.call(method_call);
744
    }
745
 
746
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
747
      private long itemId;
748
      private String destination_pin;
4630 mandeep.dh 749
      private DeliveryType type;
750
      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 751
        super(client, protocolFactory, transport, resultHandler, false);
752
        this.itemId = itemId;
753
        this.destination_pin = destination_pin;
4630 mandeep.dh 754
        this.type = type;
3430 rajveer 755
      }
756
 
757
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
758
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
759
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
760
        args.setItemId(itemId);
761
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 762
        args.setType(type);
3430 rajveer 763
        args.write(prot);
764
        prot.writeMessageEnd();
765
      }
766
 
767
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
768
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
769
          throw new IllegalStateException("Method call not finished!");
770
        }
771
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
773
        return (new Client(prot)).recv_getLogisticsEstimation();
774
      }
775
    }
776
 
7256 rajveer 777
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
778
      checkReady();
779
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
780
      this.___currentMethod = method_call;
781
      ___manager.call(method_call);
782
    }
783
 
784
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
785
      private long itemId;
786
      private String destination_pin;
787
      private DeliveryType type;
788
      public getLogisticsEstimationForStore_call(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
789
        super(client, protocolFactory, transport, resultHandler, false);
790
        this.itemId = itemId;
791
        this.destination_pin = destination_pin;
792
        this.type = type;
793
      }
794
 
795
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
796
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
797
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
798
        args.setItemId(itemId);
799
        args.setDestination_pin(destination_pin);
800
        args.setType(type);
801
        args.write(prot);
802
        prot.writeMessageEnd();
803
      }
804
 
805
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
806
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
807
          throw new IllegalStateException("Method call not finished!");
808
        }
809
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
811
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
812
      }
813
    }
814
 
5766 rajveer 815
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 816
      checkReady();
5766 rajveer 817
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 818
      this.___currentMethod = method_call;
819
      ___manager.call(method_call);
820
    }
821
 
822
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
823
      private String destination_pincode;
824
      private long item_id;
825
      private DeliveryType type;
5766 rajveer 826
      private PickUpType pickUp;
827
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 828
        super(client, protocolFactory, transport, resultHandler, false);
829
        this.destination_pincode = destination_pincode;
830
        this.item_id = item_id;
831
        this.type = type;
5766 rajveer 832
        this.pickUp = pickUp;
3430 rajveer 833
      }
834
 
835
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
836
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
837
        getLogisticsInfo_args args = new getLogisticsInfo_args();
838
        args.setDestination_pincode(destination_pincode);
839
        args.setItem_id(item_id);
840
        args.setType(type);
5766 rajveer 841
        args.setPickUp(pickUp);
3430 rajveer 842
        args.write(prot);
843
        prot.writeMessageEnd();
844
      }
845
 
846
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
847
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
848
          throw new IllegalStateException("Method call not finished!");
849
        }
850
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
852
        return (new Client(prot)).recv_getLogisticsInfo();
853
      }
854
    }
855
 
5247 rajveer 856
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 857
      checkReady();
5247 rajveer 858
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 859
      this.___currentMethod = method_call;
860
      ___manager.call(method_call);
861
    }
862
 
863
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
864
      private long providerId;
5247 rajveer 865
      private DeliveryType type;
866
      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 867
        super(client, protocolFactory, transport, resultHandler, false);
868
        this.providerId = providerId;
5247 rajveer 869
        this.type = type;
3430 rajveer 870
      }
871
 
872
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
873
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
874
        getEmptyAWB_args args = new getEmptyAWB_args();
875
        args.setProviderId(providerId);
5247 rajveer 876
        args.setType(type);
3430 rajveer 877
        args.write(prot);
878
        prot.writeMessageEnd();
879
      }
880
 
881
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
882
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
883
          throw new IllegalStateException("Method call not finished!");
884
        }
885
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
886
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
887
        return (new Client(prot)).recv_getEmptyAWB();
888
      }
889
    }
890
 
6643 rajveer 891
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 892
      checkReady();
6643 rajveer 893
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 894
      this.___currentMethod = method_call;
895
      ___manager.call(method_call);
896
    }
897
 
898
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 899
      private String awbNumber;
3430 rajveer 900
      private long providerId;
6643 rajveer 901
      public getShipmentInfo_call(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 902
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 903
        this.awbNumber = awbNumber;
3430 rajveer 904
        this.providerId = providerId;
905
      }
906
 
907
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
908
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
909
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 910
        args.setAwbNumber(awbNumber);
3430 rajveer 911
        args.setProviderId(providerId);
912
        args.write(prot);
913
        prot.writeMessageEnd();
914
      }
915
 
916
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
918
          throw new IllegalStateException("Method call not finished!");
919
        }
920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
922
        return (new Client(prot)).recv_getShipmentInfo();
923
      }
924
    }
925
 
6643 rajveer 926
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
927
      checkReady();
928
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
929
      this.___currentMethod = method_call;
930
      ___manager.call(method_call);
931
    }
932
 
933
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
934
      private AwbUpdate update;
935
      public storeShipmentInfo_call(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
936
        super(client, protocolFactory, transport, resultHandler, false);
937
        this.update = update;
938
      }
939
 
940
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
941
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
942
        storeShipmentInfo_args args = new storeShipmentInfo_args();
943
        args.setUpdate(update);
944
        args.write(prot);
945
        prot.writeMessageEnd();
946
      }
947
 
948
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
950
          throw new IllegalStateException("Method call not finished!");
951
        }
952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
954
        (new Client(prot)).recv_storeShipmentInfo();
955
      }
956
    }
957
 
3430 rajveer 958
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
959
      checkReady();
960
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
961
      this.___currentMethod = method_call;
962
      ___manager.call(method_call);
963
    }
964
 
965
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
966
      private long providerId;
967
      private String pinCode;
968
      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 {
969
        super(client, protocolFactory, transport, resultHandler, false);
970
        this.providerId = providerId;
971
        this.pinCode = pinCode;
972
      }
973
 
974
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
975
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
976
        getDestinationCode_args args = new getDestinationCode_args();
977
        args.setProviderId(providerId);
978
        args.setPinCode(pinCode);
979
        args.write(prot);
980
        prot.writeMessageEnd();
981
      }
982
 
983
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
985
          throw new IllegalStateException("Method call not finished!");
986
        }
987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
989
        return (new Client(prot)).recv_getDestinationCode();
990
      }
991
    }
992
 
993
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
994
      checkReady();
995
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
996
      this.___currentMethod = method_call;
997
      ___manager.call(method_call);
998
    }
999
 
1000
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1001
      private long providerId;
1002
      private String type;
1003
      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 {
1004
        super(client, protocolFactory, transport, resultHandler, false);
1005
        this.providerId = providerId;
1006
        this.type = type;
1007
      }
1008
 
1009
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1010
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1011
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1012
        args.setProviderId(providerId);
1013
        args.setType(type);
1014
        args.write(prot);
1015
        prot.writeMessageEnd();
1016
      }
1017
 
1018
      public long getResult() throws org.apache.thrift.TException {
1019
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1020
          throw new IllegalStateException("Method call not finished!");
1021
        }
1022
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1023
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1024
        return (new Client(prot)).recv_getFreeAwbCount();
1025
      }
1026
    }
1027
 
1028
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1029
      checkReady();
1030
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1031
      this.___currentMethod = method_call;
1032
      ___manager.call(method_call);
1033
    }
1034
 
1035
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1036
      private long fromDate;
1037
      private long toDate;
1038
      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 {
1039
        super(client, protocolFactory, transport, resultHandler, false);
1040
        this.fromDate = fromDate;
1041
        this.toDate = toDate;
1042
      }
1043
 
1044
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1045
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1046
        getHolidays_args args = new getHolidays_args();
1047
        args.setFromDate(fromDate);
1048
        args.setToDate(toDate);
1049
        args.write(prot);
1050
        prot.writeMessageEnd();
1051
      }
1052
 
1053
      public List<Long> getResult() throws org.apache.thrift.TException {
1054
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1055
          throw new IllegalStateException("Method call not finished!");
1056
        }
1057
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1058
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1059
        return (new Client(prot)).recv_getHolidays();
1060
      }
1061
    }
1062
 
4934 amit.gupta 1063
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1064
      checkReady();
1065
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1066
      this.___currentMethod = method_call;
1067
      ___manager.call(method_call);
1068
    }
1069
 
1070
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1071
      private long catalogItemId;
1072
      private String destination_pin;
1073
      private DeliveryType type;
1074
      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 {
1075
        super(client, protocolFactory, transport, resultHandler, false);
1076
        this.catalogItemId = catalogItemId;
1077
        this.destination_pin = destination_pin;
1078
        this.type = type;
1079
      }
1080
 
1081
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1082
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1083
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1084
        args.setCatalogItemId(catalogItemId);
1085
        args.setDestination_pin(destination_pin);
1086
        args.setType(type);
1087
        args.write(prot);
1088
        prot.writeMessageEnd();
1089
      }
1090
 
1091
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1092
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1093
          throw new IllegalStateException("Method call not finished!");
1094
        }
1095
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1096
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1097
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1098
      }
1099
    }
1100
 
5527 anupam.sin 1101
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1102
      checkReady();
1103
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1104
      this.___currentMethod = method_call;
1105
      ___manager.call(method_call);
1106
    }
1107
 
1108
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1109
      private long pickUp;
1110
      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 {
1111
        super(client, protocolFactory, transport, resultHandler, false);
1112
        this.pickUp = pickUp;
1113
      }
1114
 
1115
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1116
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1117
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1118
        args.setPickUp(pickUp);
1119
        args.write(prot);
1120
        prot.writeMessageEnd();
1121
      }
1122
 
1123
      public long getResult() throws org.apache.thrift.TException {
1124
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1125
          throw new IllegalStateException("Method call not finished!");
1126
        }
1127
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1128
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1129
        return (new Client(prot)).recv_getProviderForPickupType();
1130
      }
1131
    }
1132
 
5553 rajveer 1133
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1134
      checkReady();
1135
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1136
      this.___currentMethod = method_call;
1137
      ___manager.call(method_call);
1138
    }
1139
 
1140
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1141
      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 {
1142
        super(client, protocolFactory, transport, resultHandler, false);
1143
      }
1144
 
1145
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1146
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1147
        getAllPickupStores_args args = new getAllPickupStores_args();
1148
        args.write(prot);
1149
        prot.writeMessageEnd();
1150
      }
1151
 
1152
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1153
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1154
          throw new IllegalStateException("Method call not finished!");
1155
        }
1156
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1157
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1158
        return (new Client(prot)).recv_getAllPickupStores();
1159
      }
1160
    }
1161
 
1162
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1163
      checkReady();
1164
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1165
      this.___currentMethod = method_call;
1166
      ___manager.call(method_call);
1167
    }
1168
 
1169
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1170
      private long storeId;
1171
      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 {
1172
        super(client, protocolFactory, transport, resultHandler, false);
1173
        this.storeId = storeId;
1174
      }
1175
 
1176
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1177
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1178
        getPickupStore_args args = new getPickupStore_args();
1179
        args.setStoreId(storeId);
1180
        args.write(prot);
1181
        prot.writeMessageEnd();
1182
      }
1183
 
1184
      public PickupStore getResult() throws org.apache.thrift.TException {
1185
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1186
          throw new IllegalStateException("Method call not finished!");
1187
        }
1188
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1189
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1190
        return (new Client(prot)).recv_getPickupStore();
1191
      }
1192
    }
1193
 
5719 rajveer 1194
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1195
      checkReady();
1196
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1197
      this.___currentMethod = method_call;
1198
      ___manager.call(method_call);
1199
    }
1200
 
1201
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1202
      private String hotspotId;
1203
      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 {
1204
        super(client, protocolFactory, transport, resultHandler, false);
1205
        this.hotspotId = hotspotId;
1206
      }
1207
 
1208
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1209
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1210
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1211
        args.setHotspotId(hotspotId);
1212
        args.write(prot);
1213
        prot.writeMessageEnd();
1214
      }
1215
 
1216
      public PickupStore getResult() throws org.apache.thrift.TException {
1217
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1218
          throw new IllegalStateException("Method call not finished!");
1219
        }
1220
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1221
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1222
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1223
      }
1224
    }
1225
 
6524 rajveer 1226
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 1227
      checkReady();
6524 rajveer 1228
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1229
      this.___currentMethod = method_call;
1230
      ___manager.call(method_call);
1231
    }
1232
 
1233
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1234
      private long providerId;
1235
      private String pincode;
1236
      private String destCode;
1237
      private boolean exp;
1238
      private boolean cod;
1239
      private int stationType;
6524 rajveer 1240
      private boolean otgAvailable;
1241
      public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
6322 amar.kumar 1242
        super(client, protocolFactory, transport, resultHandler, false);
1243
        this.providerId = providerId;
1244
        this.pincode = pincode;
1245
        this.destCode = destCode;
1246
        this.exp = exp;
1247
        this.cod = cod;
1248
        this.stationType = stationType;
6524 rajveer 1249
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1250
      }
1251
 
1252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1254
        addPincode_args args = new addPincode_args();
1255
        args.setProviderId(providerId);
1256
        args.setPincode(pincode);
1257
        args.setDestCode(destCode);
1258
        args.setExp(exp);
1259
        args.setCod(cod);
1260
        args.setStationType(stationType);
6524 rajveer 1261
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1262
        args.write(prot);
1263
        prot.writeMessageEnd();
1264
      }
1265
 
1266
      public void getResult() throws org.apache.thrift.TException {
1267
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1268
          throw new IllegalStateException("Method call not finished!");
1269
        }
1270
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1271
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1272
        (new Client(prot)).recv_addPincode();
1273
      }
1274
    }
1275
 
6524 rajveer 1276
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 1277
      checkReady();
6524 rajveer 1278
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1279
      this.___currentMethod = method_call;
1280
      ___manager.call(method_call);
1281
    }
1282
 
1283
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1284
      private long providerId;
1285
      private String pincode;
1286
      private boolean exp;
1287
      private boolean cod;
6524 rajveer 1288
      private boolean otgAvailable;
1289
      public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
6322 amar.kumar 1290
        super(client, protocolFactory, transport, resultHandler, false);
1291
        this.providerId = providerId;
1292
        this.pincode = pincode;
1293
        this.exp = exp;
1294
        this.cod = cod;
6524 rajveer 1295
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1296
      }
1297
 
1298
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1299
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1300
        updatePincode_args args = new updatePincode_args();
1301
        args.setProviderId(providerId);
1302
        args.setPincode(pincode);
1303
        args.setExp(exp);
1304
        args.setCod(cod);
6524 rajveer 1305
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1306
        args.write(prot);
1307
        prot.writeMessageEnd();
1308
      }
1309
 
1310
      public void getResult() throws org.apache.thrift.TException {
1311
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1312
          throw new IllegalStateException("Method call not finished!");
1313
        }
1314
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1315
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1316
        (new Client(prot)).recv_updatePincode();
1317
      }
1318
    }
1319
 
3430 rajveer 1320
  }
1321
 
1322
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1323
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1324
    public Processor(I iface) {
1325
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1326
    }
1327
 
1328
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1329
      super(iface, getProcessMap(processMap));
1330
    }
1331
 
1332
    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) {
1333
      processMap.put("getProvider", new getProvider());
1334
      processMap.put("getAllProviders", new getAllProviders());
1335
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1336
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1337
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1338
      processMap.put("getEmptyAWB", new getEmptyAWB());
1339
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1340
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1341
      processMap.put("getDestinationCode", new getDestinationCode());
1342
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1343
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1344
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1345
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1346
      processMap.put("getAllPickupStores", new getAllPickupStores());
1347
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1348
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1349
      processMap.put("addPincode", new addPincode());
1350
      processMap.put("updatePincode", new updatePincode());
3430 rajveer 1351
      return processMap;
1352
    }
1353
 
1354
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1355
      public getProvider() {
1356
        super("getProvider");
1357
      }
1358
 
1359
      protected getProvider_args getEmptyArgsInstance() {
1360
        return new getProvider_args();
1361
      }
1362
 
1363
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1364
        getProvider_result result = new getProvider_result();
1365
        try {
3430 rajveer 1366
          result.success = iface.getProvider(args.providerId);
668 chandransh 1367
        } catch (LogisticsServiceException lse) {
1368
          result.lse = lse;
1369
        }
3430 rajveer 1370
        return result;
668 chandransh 1371
      }
1372
    }
1373
 
3430 rajveer 1374
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1375
      public getAllProviders() {
1376
        super("getAllProviders");
1377
      }
1378
 
1379
      protected getAllProviders_args getEmptyArgsInstance() {
1380
        return new getAllProviders_args();
1381
      }
1382
 
1383
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1384
        getAllProviders_result result = new getAllProviders_result();
1385
        try {
3430 rajveer 1386
          result.success = iface.getAllProviders();
674 chandransh 1387
        } catch (LogisticsServiceException lse) {
1388
          result.lse = lse;
1389
        }
3430 rajveer 1390
        return result;
674 chandransh 1391
      }
1392
    }
1393
 
3430 rajveer 1394
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1395
      public getLogisticsEstimation() {
1396
        super("getLogisticsEstimation");
1397
      }
1398
 
1399
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1400
        return new getLogisticsEstimation_args();
1401
      }
1402
 
1403
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1404
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1405
        try {
4630 mandeep.dh 1406
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1407
        } catch (LogisticsServiceException se) {
1408
          result.se = se;
1409
        }
3430 rajveer 1410
        return result;
483 rajveer 1411
      }
1412
    }
1413
 
7256 rajveer 1414
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1415
      public getLogisticsEstimationForStore() {
1416
        super("getLogisticsEstimationForStore");
1417
      }
1418
 
1419
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1420
        return new getLogisticsEstimationForStore_args();
1421
      }
1422
 
1423
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1424
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1425
        try {
1426
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1427
        } catch (LogisticsServiceException se) {
1428
          result.se = se;
1429
        }
1430
        return result;
1431
      }
1432
    }
1433
 
3430 rajveer 1434
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1435
      public getLogisticsInfo() {
1436
        super("getLogisticsInfo");
1437
      }
1438
 
1439
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1440
        return new getLogisticsInfo_args();
1441
      }
1442
 
1443
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1444
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1445
        try {
5766 rajveer 1446
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1447
        } catch (LogisticsServiceException se) {
1448
          result.se = se;
1449
        }
3430 rajveer 1450
        return result;
471 rajveer 1451
      }
1452
    }
1453
 
3430 rajveer 1454
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1455
      public getEmptyAWB() {
1456
        super("getEmptyAWB");
1457
      }
1458
 
1459
      protected getEmptyAWB_args getEmptyArgsInstance() {
1460
        return new getEmptyAWB_args();
1461
      }
1462
 
1463
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1464
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1465
        try {
5247 rajveer 1466
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1467
        } catch (LogisticsServiceException se) {
1468
          result.se = se;
1469
        }
3430 rajveer 1470
        return result;
412 ashish 1471
      }
1472
    }
1473
 
3430 rajveer 1474
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1475
      public getShipmentInfo() {
1476
        super("getShipmentInfo");
1477
      }
1478
 
1479
      protected getShipmentInfo_args getEmptyArgsInstance() {
1480
        return new getShipmentInfo_args();
1481
      }
1482
 
1483
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1484
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1485
        try {
6643 rajveer 1486
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1487
        } catch (LogisticsServiceException se) {
1488
          result.se = se;
1489
        }
3430 rajveer 1490
        return result;
412 ashish 1491
      }
1492
    }
1493
 
6643 rajveer 1494
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1495
      public storeShipmentInfo() {
1496
        super("storeShipmentInfo");
1497
      }
1498
 
1499
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1500
        return new storeShipmentInfo_args();
1501
      }
1502
 
1503
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1504
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1505
        try {
1506
          iface.storeShipmentInfo(args.update);
1507
        } catch (LogisticsServiceException se) {
1508
          result.se = se;
1509
        }
1510
        return result;
1511
      }
1512
    }
1513
 
3430 rajveer 1514
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1515
      public getDestinationCode() {
1516
        super("getDestinationCode");
1517
      }
1518
 
1519
      protected getDestinationCode_args getEmptyArgsInstance() {
1520
        return new getDestinationCode_args();
1521
      }
1522
 
1523
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1524
        getDestinationCode_result result = new getDestinationCode_result();
1525
        try {
3430 rajveer 1526
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1527
        } catch (LogisticsServiceException se) {
1528
          result.se = se;
1529
        }
3430 rajveer 1530
        return result;
730 chandransh 1531
      }
1532
    }
1533
 
3430 rajveer 1534
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1535
      public getFreeAwbCount() {
1536
        super("getFreeAwbCount");
1537
      }
1538
 
1539
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1540
        return new getFreeAwbCount_args();
1541
      }
1542
 
1543
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1544
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1545
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1546
        result.setSuccessIsSet(true);
3430 rajveer 1547
        return result;
1139 chandransh 1548
      }
1549
    }
1550
 
3430 rajveer 1551
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1552
      public getHolidays() {
1553
        super("getHolidays");
1554
      }
1555
 
1556
      protected getHolidays_args getEmptyArgsInstance() {
1557
        return new getHolidays_args();
1558
      }
1559
 
1560
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1561
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1562
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1563
        return result;
1730 ankur.sing 1564
      }
1565
    }
1566
 
4934 amit.gupta 1567
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1568
      public getEntityLogisticsEstimation() {
1569
        super("getEntityLogisticsEstimation");
1570
      }
1571
 
1572
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1573
        return new getEntityLogisticsEstimation_args();
1574
      }
1575
 
1576
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1577
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1578
        try {
1579
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1580
        } catch (LogisticsServiceException se) {
1581
          result.se = se;
1582
        }
1583
        return result;
1584
      }
1585
    }
1586
 
5527 anupam.sin 1587
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1588
      public getProviderForPickupType() {
1589
        super("getProviderForPickupType");
1590
      }
1591
 
1592
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1593
        return new getProviderForPickupType_args();
1594
      }
1595
 
1596
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1597
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1598
        result.success = iface.getProviderForPickupType(args.pickUp);
1599
        result.setSuccessIsSet(true);
1600
        return result;
1601
      }
1602
    }
1603
 
5553 rajveer 1604
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1605
      public getAllPickupStores() {
1606
        super("getAllPickupStores");
1607
      }
1608
 
1609
      protected getAllPickupStores_args getEmptyArgsInstance() {
1610
        return new getAllPickupStores_args();
1611
      }
1612
 
1613
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1614
        getAllPickupStores_result result = new getAllPickupStores_result();
1615
        result.success = iface.getAllPickupStores();
1616
        return result;
1617
      }
1618
    }
1619
 
1620
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1621
      public getPickupStore() {
1622
        super("getPickupStore");
1623
      }
1624
 
1625
      protected getPickupStore_args getEmptyArgsInstance() {
1626
        return new getPickupStore_args();
1627
      }
1628
 
1629
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1630
        getPickupStore_result result = new getPickupStore_result();
1631
        result.success = iface.getPickupStore(args.storeId);
1632
        return result;
1633
      }
1634
    }
1635
 
5719 rajveer 1636
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1637
      public getPickupStoreByHotspotId() {
1638
        super("getPickupStoreByHotspotId");
1639
      }
1640
 
1641
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1642
        return new getPickupStoreByHotspotId_args();
1643
      }
1644
 
1645
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1646
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1647
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1648
        return result;
1649
      }
1650
    }
1651
 
6322 amar.kumar 1652
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1653
      public addPincode() {
1654
        super("addPincode");
1655
      }
1656
 
1657
      protected addPincode_args getEmptyArgsInstance() {
1658
        return new addPincode_args();
1659
      }
1660
 
1661
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1662
        addPincode_result result = new addPincode_result();
6524 rajveer 1663
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1664
        return result;
1665
      }
1666
    }
1667
 
1668
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1669
      public updatePincode() {
1670
        super("updatePincode");
1671
      }
1672
 
1673
      protected updatePincode_args getEmptyArgsInstance() {
1674
        return new updatePincode_args();
1675
      }
1676
 
1677
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1678
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1679
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1680
        return result;
1681
      }
1682
    }
1683
 
412 ashish 1684
  }
1685
 
3430 rajveer 1686
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1687
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1688
 
3430 rajveer 1689
    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 1690
 
3430 rajveer 1691
    private long providerId; // required
668 chandransh 1692
 
1693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1694
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1695
      PROVIDER_ID((short)1, "providerId");
1696
 
1697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1698
 
1699
      static {
1700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1701
          byName.put(field.getFieldName(), field);
1702
        }
1703
      }
1704
 
1705
      /**
1706
       * Find the _Fields constant that matches fieldId, or null if its not found.
1707
       */
1708
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1709
        switch(fieldId) {
1710
          case 1: // PROVIDER_ID
1711
            return PROVIDER_ID;
1712
          default:
1713
            return null;
1714
        }
668 chandransh 1715
      }
1716
 
1717
      /**
1718
       * Find the _Fields constant that matches fieldId, throwing an exception
1719
       * if it is not found.
1720
       */
1721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1722
        _Fields fields = findByThriftId(fieldId);
1723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1724
        return fields;
1725
      }
1726
 
1727
      /**
1728
       * Find the _Fields constant that matches name, or null if its not found.
1729
       */
1730
      public static _Fields findByName(String name) {
1731
        return byName.get(name);
1732
      }
1733
 
1734
      private final short _thriftId;
1735
      private final String _fieldName;
1736
 
1737
      _Fields(short thriftId, String fieldName) {
1738
        _thriftId = thriftId;
1739
        _fieldName = fieldName;
1740
      }
1741
 
1742
      public short getThriftFieldId() {
1743
        return _thriftId;
1744
      }
1745
 
1746
      public String getFieldName() {
1747
        return _fieldName;
1748
      }
1749
    }
1750
 
1751
    // isset id assignments
1752
    private static final int __PROVIDERID_ISSET_ID = 0;
1753
    private BitSet __isset_bit_vector = new BitSet(1);
1754
 
3430 rajveer 1755
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1756
    static {
3430 rajveer 1757
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1758
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1760
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1761
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1762
    }
1763
 
1764
    public getProvider_args() {
1765
    }
1766
 
1767
    public getProvider_args(
1768
      long providerId)
1769
    {
1770
      this();
1771
      this.providerId = providerId;
1772
      setProviderIdIsSet(true);
1773
    }
1774
 
1775
    /**
1776
     * Performs a deep copy on <i>other</i>.
1777
     */
1778
    public getProvider_args(getProvider_args other) {
1779
      __isset_bit_vector.clear();
1780
      __isset_bit_vector.or(other.__isset_bit_vector);
1781
      this.providerId = other.providerId;
1782
    }
1783
 
1784
    public getProvider_args deepCopy() {
1785
      return new getProvider_args(this);
1786
    }
1787
 
3430 rajveer 1788
    @Override
1789
    public void clear() {
1790
      setProviderIdIsSet(false);
1791
      this.providerId = 0;
668 chandransh 1792
    }
1793
 
1794
    public long getProviderId() {
1795
      return this.providerId;
1796
    }
1797
 
3430 rajveer 1798
    public void setProviderId(long providerId) {
668 chandransh 1799
      this.providerId = providerId;
1800
      setProviderIdIsSet(true);
1801
    }
1802
 
1803
    public void unsetProviderId() {
1804
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1805
    }
1806
 
3430 rajveer 1807
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1808
    public boolean isSetProviderId() {
1809
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1810
    }
1811
 
1812
    public void setProviderIdIsSet(boolean value) {
1813
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1814
    }
1815
 
1816
    public void setFieldValue(_Fields field, Object value) {
1817
      switch (field) {
1818
      case PROVIDER_ID:
1819
        if (value == null) {
1820
          unsetProviderId();
1821
        } else {
1822
          setProviderId((Long)value);
1823
        }
1824
        break;
1825
 
1826
      }
1827
    }
1828
 
1829
    public Object getFieldValue(_Fields field) {
1830
      switch (field) {
1831
      case PROVIDER_ID:
3430 rajveer 1832
        return Long.valueOf(getProviderId());
668 chandransh 1833
 
1834
      }
1835
      throw new IllegalStateException();
1836
    }
1837
 
3430 rajveer 1838
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1839
    public boolean isSet(_Fields field) {
1840
      if (field == null) {
1841
        throw new IllegalArgumentException();
1842
      }
668 chandransh 1843
 
1844
      switch (field) {
1845
      case PROVIDER_ID:
1846
        return isSetProviderId();
1847
      }
1848
      throw new IllegalStateException();
1849
    }
1850
 
1851
    @Override
1852
    public boolean equals(Object that) {
1853
      if (that == null)
1854
        return false;
1855
      if (that instanceof getProvider_args)
1856
        return this.equals((getProvider_args)that);
1857
      return false;
1858
    }
1859
 
1860
    public boolean equals(getProvider_args that) {
1861
      if (that == null)
1862
        return false;
1863
 
1864
      boolean this_present_providerId = true;
1865
      boolean that_present_providerId = true;
1866
      if (this_present_providerId || that_present_providerId) {
1867
        if (!(this_present_providerId && that_present_providerId))
1868
          return false;
1869
        if (this.providerId != that.providerId)
1870
          return false;
1871
      }
1872
 
1873
      return true;
1874
    }
1875
 
1876
    @Override
1877
    public int hashCode() {
1878
      return 0;
1879
    }
1880
 
1881
    public int compareTo(getProvider_args other) {
1882
      if (!getClass().equals(other.getClass())) {
1883
        return getClass().getName().compareTo(other.getClass().getName());
1884
      }
1885
 
1886
      int lastComparison = 0;
1887
      getProvider_args typedOther = (getProvider_args)other;
1888
 
3430 rajveer 1889
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 1890
      if (lastComparison != 0) {
1891
        return lastComparison;
1892
      }
3430 rajveer 1893
      if (isSetProviderId()) {
1894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
1895
        if (lastComparison != 0) {
1896
          return lastComparison;
1897
        }
668 chandransh 1898
      }
1899
      return 0;
1900
    }
1901
 
3430 rajveer 1902
    public _Fields fieldForId(int fieldId) {
1903
      return _Fields.findByThriftId(fieldId);
1904
    }
1905
 
1906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1907
      org.apache.thrift.protocol.TField field;
668 chandransh 1908
      iprot.readStructBegin();
1909
      while (true)
1910
      {
1911
        field = iprot.readFieldBegin();
3430 rajveer 1912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1913
          break;
1914
        }
3430 rajveer 1915
        switch (field.id) {
1916
          case 1: // PROVIDER_ID
1917
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1918
              this.providerId = iprot.readI64();
1919
              setProviderIdIsSet(true);
1920
            } else { 
1921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1922
            }
1923
            break;
1924
          default:
1925
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1926
        }
3430 rajveer 1927
        iprot.readFieldEnd();
668 chandransh 1928
      }
1929
      iprot.readStructEnd();
1930
      validate();
1931
    }
1932
 
3430 rajveer 1933
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1934
      validate();
1935
 
1936
      oprot.writeStructBegin(STRUCT_DESC);
1937
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1938
      oprot.writeI64(this.providerId);
1939
      oprot.writeFieldEnd();
1940
      oprot.writeFieldStop();
1941
      oprot.writeStructEnd();
1942
    }
1943
 
1944
    @Override
1945
    public String toString() {
1946
      StringBuilder sb = new StringBuilder("getProvider_args(");
1947
      boolean first = true;
1948
 
1949
      sb.append("providerId:");
1950
      sb.append(this.providerId);
1951
      first = false;
1952
      sb.append(")");
1953
      return sb.toString();
1954
    }
1955
 
3430 rajveer 1956
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1957
      // check for required fields
1958
    }
1959
 
3430 rajveer 1960
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1961
      try {
1962
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1963
      } catch (org.apache.thrift.TException te) {
1964
        throw new java.io.IOException(te);
1965
      }
1966
    }
1967
 
1968
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1969
      try {
1970
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1971
      } catch (org.apache.thrift.TException te) {
1972
        throw new java.io.IOException(te);
1973
      }
1974
    }
1975
 
668 chandransh 1976
  }
1977
 
3430 rajveer 1978
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1979
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 1980
 
3430 rajveer 1981
    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);
1982
    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 1983
 
3430 rajveer 1984
    private Provider success; // required
1985
    private LogisticsServiceException lse; // required
668 chandransh 1986
 
1987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1989
      SUCCESS((short)0, "success"),
1990
      LSE((short)1, "lse");
1991
 
1992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1993
 
1994
      static {
1995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1996
          byName.put(field.getFieldName(), field);
1997
        }
1998
      }
1999
 
2000
      /**
2001
       * Find the _Fields constant that matches fieldId, or null if its not found.
2002
       */
2003
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2004
        switch(fieldId) {
2005
          case 0: // SUCCESS
2006
            return SUCCESS;
2007
          case 1: // LSE
2008
            return LSE;
2009
          default:
2010
            return null;
2011
        }
668 chandransh 2012
      }
2013
 
2014
      /**
2015
       * Find the _Fields constant that matches fieldId, throwing an exception
2016
       * if it is not found.
2017
       */
2018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2019
        _Fields fields = findByThriftId(fieldId);
2020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2021
        return fields;
2022
      }
2023
 
2024
      /**
2025
       * Find the _Fields constant that matches name, or null if its not found.
2026
       */
2027
      public static _Fields findByName(String name) {
2028
        return byName.get(name);
2029
      }
2030
 
2031
      private final short _thriftId;
2032
      private final String _fieldName;
2033
 
2034
      _Fields(short thriftId, String fieldName) {
2035
        _thriftId = thriftId;
2036
        _fieldName = fieldName;
2037
      }
2038
 
2039
      public short getThriftFieldId() {
2040
        return _thriftId;
2041
      }
2042
 
2043
      public String getFieldName() {
2044
        return _fieldName;
2045
      }
2046
    }
2047
 
2048
    // isset id assignments
2049
 
3430 rajveer 2050
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2051
    static {
3430 rajveer 2052
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2053
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2054
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2055
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2059
    }
2060
 
2061
    public getProvider_result() {
2062
    }
2063
 
2064
    public getProvider_result(
2065
      Provider success,
2066
      LogisticsServiceException lse)
2067
    {
2068
      this();
2069
      this.success = success;
2070
      this.lse = lse;
2071
    }
2072
 
2073
    /**
2074
     * Performs a deep copy on <i>other</i>.
2075
     */
2076
    public getProvider_result(getProvider_result other) {
2077
      if (other.isSetSuccess()) {
2078
        this.success = new Provider(other.success);
2079
      }
2080
      if (other.isSetLse()) {
2081
        this.lse = new LogisticsServiceException(other.lse);
2082
      }
2083
    }
2084
 
2085
    public getProvider_result deepCopy() {
2086
      return new getProvider_result(this);
2087
    }
2088
 
3430 rajveer 2089
    @Override
2090
    public void clear() {
2091
      this.success = null;
2092
      this.lse = null;
668 chandransh 2093
    }
2094
 
2095
    public Provider getSuccess() {
2096
      return this.success;
2097
    }
2098
 
3430 rajveer 2099
    public void setSuccess(Provider success) {
668 chandransh 2100
      this.success = success;
2101
    }
2102
 
2103
    public void unsetSuccess() {
2104
      this.success = null;
2105
    }
2106
 
3430 rajveer 2107
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2108
    public boolean isSetSuccess() {
2109
      return this.success != null;
2110
    }
2111
 
2112
    public void setSuccessIsSet(boolean value) {
2113
      if (!value) {
2114
        this.success = null;
2115
      }
2116
    }
2117
 
2118
    public LogisticsServiceException getLse() {
2119
      return this.lse;
2120
    }
2121
 
3430 rajveer 2122
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2123
      this.lse = lse;
2124
    }
2125
 
2126
    public void unsetLse() {
2127
      this.lse = null;
2128
    }
2129
 
3430 rajveer 2130
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2131
    public boolean isSetLse() {
2132
      return this.lse != null;
2133
    }
2134
 
2135
    public void setLseIsSet(boolean value) {
2136
      if (!value) {
2137
        this.lse = null;
2138
      }
2139
    }
2140
 
2141
    public void setFieldValue(_Fields field, Object value) {
2142
      switch (field) {
2143
      case SUCCESS:
2144
        if (value == null) {
2145
          unsetSuccess();
2146
        } else {
2147
          setSuccess((Provider)value);
2148
        }
2149
        break;
2150
 
2151
      case LSE:
2152
        if (value == null) {
2153
          unsetLse();
2154
        } else {
2155
          setLse((LogisticsServiceException)value);
2156
        }
2157
        break;
2158
 
2159
      }
2160
    }
2161
 
2162
    public Object getFieldValue(_Fields field) {
2163
      switch (field) {
2164
      case SUCCESS:
2165
        return getSuccess();
2166
 
2167
      case LSE:
2168
        return getLse();
2169
 
2170
      }
2171
      throw new IllegalStateException();
2172
    }
2173
 
3430 rajveer 2174
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2175
    public boolean isSet(_Fields field) {
2176
      if (field == null) {
2177
        throw new IllegalArgumentException();
2178
      }
668 chandransh 2179
 
2180
      switch (field) {
2181
      case SUCCESS:
2182
        return isSetSuccess();
2183
      case LSE:
2184
        return isSetLse();
2185
      }
2186
      throw new IllegalStateException();
2187
    }
2188
 
2189
    @Override
2190
    public boolean equals(Object that) {
2191
      if (that == null)
2192
        return false;
2193
      if (that instanceof getProvider_result)
2194
        return this.equals((getProvider_result)that);
2195
      return false;
2196
    }
2197
 
2198
    public boolean equals(getProvider_result that) {
2199
      if (that == null)
2200
        return false;
2201
 
2202
      boolean this_present_success = true && this.isSetSuccess();
2203
      boolean that_present_success = true && that.isSetSuccess();
2204
      if (this_present_success || that_present_success) {
2205
        if (!(this_present_success && that_present_success))
2206
          return false;
2207
        if (!this.success.equals(that.success))
2208
          return false;
2209
      }
2210
 
2211
      boolean this_present_lse = true && this.isSetLse();
2212
      boolean that_present_lse = true && that.isSetLse();
2213
      if (this_present_lse || that_present_lse) {
2214
        if (!(this_present_lse && that_present_lse))
2215
          return false;
2216
        if (!this.lse.equals(that.lse))
2217
          return false;
2218
      }
2219
 
2220
      return true;
2221
    }
2222
 
2223
    @Override
2224
    public int hashCode() {
2225
      return 0;
2226
    }
2227
 
3430 rajveer 2228
    public int compareTo(getProvider_result other) {
2229
      if (!getClass().equals(other.getClass())) {
2230
        return getClass().getName().compareTo(other.getClass().getName());
2231
      }
2232
 
2233
      int lastComparison = 0;
2234
      getProvider_result typedOther = (getProvider_result)other;
2235
 
2236
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2237
      if (lastComparison != 0) {
2238
        return lastComparison;
2239
      }
2240
      if (isSetSuccess()) {
2241
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2242
        if (lastComparison != 0) {
2243
          return lastComparison;
2244
        }
2245
      }
2246
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2247
      if (lastComparison != 0) {
2248
        return lastComparison;
2249
      }
2250
      if (isSetLse()) {
2251
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2252
        if (lastComparison != 0) {
2253
          return lastComparison;
2254
        }
2255
      }
2256
      return 0;
2257
    }
2258
 
2259
    public _Fields fieldForId(int fieldId) {
2260
      return _Fields.findByThriftId(fieldId);
2261
    }
2262
 
2263
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2264
      org.apache.thrift.protocol.TField field;
668 chandransh 2265
      iprot.readStructBegin();
2266
      while (true)
2267
      {
2268
        field = iprot.readFieldBegin();
3430 rajveer 2269
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2270
          break;
2271
        }
3430 rajveer 2272
        switch (field.id) {
2273
          case 0: // SUCCESS
2274
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2275
              this.success = new Provider();
2276
              this.success.read(iprot);
2277
            } else { 
2278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2279
            }
2280
            break;
2281
          case 1: // LSE
2282
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2283
              this.lse = new LogisticsServiceException();
2284
              this.lse.read(iprot);
2285
            } else { 
2286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2287
            }
2288
            break;
2289
          default:
2290
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2291
        }
3430 rajveer 2292
        iprot.readFieldEnd();
668 chandransh 2293
      }
2294
      iprot.readStructEnd();
2295
      validate();
2296
    }
2297
 
3430 rajveer 2298
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2299
      oprot.writeStructBegin(STRUCT_DESC);
2300
 
2301
      if (this.isSetSuccess()) {
2302
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2303
        this.success.write(oprot);
2304
        oprot.writeFieldEnd();
2305
      } else if (this.isSetLse()) {
2306
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2307
        this.lse.write(oprot);
2308
        oprot.writeFieldEnd();
2309
      }
2310
      oprot.writeFieldStop();
2311
      oprot.writeStructEnd();
2312
    }
2313
 
2314
    @Override
2315
    public String toString() {
2316
      StringBuilder sb = new StringBuilder("getProvider_result(");
2317
      boolean first = true;
2318
 
2319
      sb.append("success:");
2320
      if (this.success == null) {
2321
        sb.append("null");
2322
      } else {
2323
        sb.append(this.success);
2324
      }
2325
      first = false;
2326
      if (!first) sb.append(", ");
2327
      sb.append("lse:");
2328
      if (this.lse == null) {
2329
        sb.append("null");
2330
      } else {
2331
        sb.append(this.lse);
2332
      }
2333
      first = false;
2334
      sb.append(")");
2335
      return sb.toString();
2336
    }
2337
 
3430 rajveer 2338
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2339
      // check for required fields
2340
    }
2341
 
3430 rajveer 2342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2343
      try {
2344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2345
      } catch (org.apache.thrift.TException te) {
2346
        throw new java.io.IOException(te);
2347
      }
2348
    }
2349
 
2350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2351
      try {
2352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2353
      } catch (org.apache.thrift.TException te) {
2354
        throw new java.io.IOException(te);
2355
      }
2356
    }
2357
 
668 chandransh 2358
  }
2359
 
3430 rajveer 2360
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2362
 
2363
 
2364
 
2365
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2366
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2367
;
2368
 
2369
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2370
 
2371
      static {
2372
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2373
          byName.put(field.getFieldName(), field);
2374
        }
2375
      }
2376
 
2377
      /**
2378
       * Find the _Fields constant that matches fieldId, or null if its not found.
2379
       */
2380
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2381
        switch(fieldId) {
2382
          default:
2383
            return null;
2384
        }
674 chandransh 2385
      }
2386
 
2387
      /**
2388
       * Find the _Fields constant that matches fieldId, throwing an exception
2389
       * if it is not found.
2390
       */
2391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2392
        _Fields fields = findByThriftId(fieldId);
2393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2394
        return fields;
2395
      }
2396
 
2397
      /**
2398
       * Find the _Fields constant that matches name, or null if its not found.
2399
       */
2400
      public static _Fields findByName(String name) {
2401
        return byName.get(name);
2402
      }
2403
 
2404
      private final short _thriftId;
2405
      private final String _fieldName;
2406
 
2407
      _Fields(short thriftId, String fieldName) {
2408
        _thriftId = thriftId;
2409
        _fieldName = fieldName;
2410
      }
2411
 
2412
      public short getThriftFieldId() {
2413
        return _thriftId;
2414
      }
2415
 
2416
      public String getFieldName() {
2417
        return _fieldName;
2418
      }
2419
    }
3430 rajveer 2420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2421
    static {
3430 rajveer 2422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2425
    }
2426
 
2427
    public getAllProviders_args() {
2428
    }
2429
 
2430
    /**
2431
     * Performs a deep copy on <i>other</i>.
2432
     */
2433
    public getAllProviders_args(getAllProviders_args other) {
2434
    }
2435
 
2436
    public getAllProviders_args deepCopy() {
2437
      return new getAllProviders_args(this);
2438
    }
2439
 
3430 rajveer 2440
    @Override
2441
    public void clear() {
674 chandransh 2442
    }
2443
 
2444
    public void setFieldValue(_Fields field, Object value) {
2445
      switch (field) {
2446
      }
2447
    }
2448
 
2449
    public Object getFieldValue(_Fields field) {
2450
      switch (field) {
2451
      }
2452
      throw new IllegalStateException();
2453
    }
2454
 
3430 rajveer 2455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2456
    public boolean isSet(_Fields field) {
2457
      if (field == null) {
2458
        throw new IllegalArgumentException();
2459
      }
674 chandransh 2460
 
2461
      switch (field) {
2462
      }
2463
      throw new IllegalStateException();
2464
    }
2465
 
2466
    @Override
2467
    public boolean equals(Object that) {
2468
      if (that == null)
2469
        return false;
2470
      if (that instanceof getAllProviders_args)
2471
        return this.equals((getAllProviders_args)that);
2472
      return false;
2473
    }
2474
 
2475
    public boolean equals(getAllProviders_args that) {
2476
      if (that == null)
2477
        return false;
2478
 
2479
      return true;
2480
    }
2481
 
2482
    @Override
2483
    public int hashCode() {
2484
      return 0;
2485
    }
2486
 
2487
    public int compareTo(getAllProviders_args other) {
2488
      if (!getClass().equals(other.getClass())) {
2489
        return getClass().getName().compareTo(other.getClass().getName());
2490
      }
2491
 
2492
      int lastComparison = 0;
2493
      getAllProviders_args typedOther = (getAllProviders_args)other;
2494
 
2495
      return 0;
2496
    }
2497
 
3430 rajveer 2498
    public _Fields fieldForId(int fieldId) {
2499
      return _Fields.findByThriftId(fieldId);
2500
    }
2501
 
2502
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2503
      org.apache.thrift.protocol.TField field;
674 chandransh 2504
      iprot.readStructBegin();
2505
      while (true)
2506
      {
2507
        field = iprot.readFieldBegin();
3430 rajveer 2508
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2509
          break;
2510
        }
3430 rajveer 2511
        switch (field.id) {
2512
          default:
2513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2514
        }
3430 rajveer 2515
        iprot.readFieldEnd();
674 chandransh 2516
      }
2517
      iprot.readStructEnd();
2518
      validate();
2519
    }
2520
 
3430 rajveer 2521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2522
      validate();
2523
 
2524
      oprot.writeStructBegin(STRUCT_DESC);
2525
      oprot.writeFieldStop();
2526
      oprot.writeStructEnd();
2527
    }
2528
 
2529
    @Override
2530
    public String toString() {
2531
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2532
      boolean first = true;
2533
 
2534
      sb.append(")");
2535
      return sb.toString();
2536
    }
2537
 
3430 rajveer 2538
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2539
      // check for required fields
2540
    }
2541
 
3430 rajveer 2542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2543
      try {
2544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2545
      } catch (org.apache.thrift.TException te) {
2546
        throw new java.io.IOException(te);
2547
      }
2548
    }
2549
 
2550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2551
      try {
2552
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2553
      } catch (org.apache.thrift.TException te) {
2554
        throw new java.io.IOException(te);
2555
      }
2556
    }
2557
 
674 chandransh 2558
  }
2559
 
3430 rajveer 2560
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2561
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2562
 
3430 rajveer 2563
    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);
2564
    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 2565
 
3430 rajveer 2566
    private List<Provider> success; // required
2567
    private LogisticsServiceException lse; // required
674 chandransh 2568
 
2569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2571
      SUCCESS((short)0, "success"),
2572
      LSE((short)1, "lse");
2573
 
2574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2575
 
2576
      static {
2577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2578
          byName.put(field.getFieldName(), field);
2579
        }
2580
      }
2581
 
2582
      /**
2583
       * Find the _Fields constant that matches fieldId, or null if its not found.
2584
       */
2585
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2586
        switch(fieldId) {
2587
          case 0: // SUCCESS
2588
            return SUCCESS;
2589
          case 1: // LSE
2590
            return LSE;
2591
          default:
2592
            return null;
2593
        }
674 chandransh 2594
      }
2595
 
2596
      /**
2597
       * Find the _Fields constant that matches fieldId, throwing an exception
2598
       * if it is not found.
2599
       */
2600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2601
        _Fields fields = findByThriftId(fieldId);
2602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2603
        return fields;
2604
      }
2605
 
2606
      /**
2607
       * Find the _Fields constant that matches name, or null if its not found.
2608
       */
2609
      public static _Fields findByName(String name) {
2610
        return byName.get(name);
2611
      }
2612
 
2613
      private final short _thriftId;
2614
      private final String _fieldName;
2615
 
2616
      _Fields(short thriftId, String fieldName) {
2617
        _thriftId = thriftId;
2618
        _fieldName = fieldName;
2619
      }
2620
 
2621
      public short getThriftFieldId() {
2622
        return _thriftId;
2623
      }
2624
 
2625
      public String getFieldName() {
2626
        return _fieldName;
2627
      }
2628
    }
2629
 
2630
    // isset id assignments
2631
 
3430 rajveer 2632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2633
    static {
3430 rajveer 2634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2635
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2636
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2637
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2638
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2642
    }
2643
 
2644
    public getAllProviders_result() {
2645
    }
2646
 
2647
    public getAllProviders_result(
2648
      List<Provider> success,
2649
      LogisticsServiceException lse)
2650
    {
2651
      this();
2652
      this.success = success;
2653
      this.lse = lse;
2654
    }
2655
 
2656
    /**
2657
     * Performs a deep copy on <i>other</i>.
2658
     */
2659
    public getAllProviders_result(getAllProviders_result other) {
2660
      if (other.isSetSuccess()) {
2661
        List<Provider> __this__success = new ArrayList<Provider>();
2662
        for (Provider other_element : other.success) {
2663
          __this__success.add(new Provider(other_element));
2664
        }
2665
        this.success = __this__success;
2666
      }
2667
      if (other.isSetLse()) {
2668
        this.lse = new LogisticsServiceException(other.lse);
2669
      }
2670
    }
2671
 
2672
    public getAllProviders_result deepCopy() {
2673
      return new getAllProviders_result(this);
2674
    }
2675
 
3430 rajveer 2676
    @Override
2677
    public void clear() {
2678
      this.success = null;
2679
      this.lse = null;
674 chandransh 2680
    }
2681
 
2682
    public int getSuccessSize() {
2683
      return (this.success == null) ? 0 : this.success.size();
2684
    }
2685
 
2686
    public java.util.Iterator<Provider> getSuccessIterator() {
2687
      return (this.success == null) ? null : this.success.iterator();
2688
    }
2689
 
2690
    public void addToSuccess(Provider elem) {
2691
      if (this.success == null) {
2692
        this.success = new ArrayList<Provider>();
2693
      }
2694
      this.success.add(elem);
2695
    }
2696
 
2697
    public List<Provider> getSuccess() {
2698
      return this.success;
2699
    }
2700
 
3430 rajveer 2701
    public void setSuccess(List<Provider> success) {
674 chandransh 2702
      this.success = success;
2703
    }
2704
 
2705
    public void unsetSuccess() {
2706
      this.success = null;
2707
    }
2708
 
3430 rajveer 2709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2710
    public boolean isSetSuccess() {
2711
      return this.success != null;
2712
    }
2713
 
2714
    public void setSuccessIsSet(boolean value) {
2715
      if (!value) {
2716
        this.success = null;
2717
      }
2718
    }
2719
 
2720
    public LogisticsServiceException getLse() {
2721
      return this.lse;
2722
    }
2723
 
3430 rajveer 2724
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2725
      this.lse = lse;
2726
    }
2727
 
2728
    public void unsetLse() {
2729
      this.lse = null;
2730
    }
2731
 
3430 rajveer 2732
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2733
    public boolean isSetLse() {
2734
      return this.lse != null;
2735
    }
2736
 
2737
    public void setLseIsSet(boolean value) {
2738
      if (!value) {
2739
        this.lse = null;
2740
      }
2741
    }
2742
 
2743
    public void setFieldValue(_Fields field, Object value) {
2744
      switch (field) {
2745
      case SUCCESS:
2746
        if (value == null) {
2747
          unsetSuccess();
2748
        } else {
2749
          setSuccess((List<Provider>)value);
2750
        }
2751
        break;
2752
 
2753
      case LSE:
2754
        if (value == null) {
2755
          unsetLse();
2756
        } else {
2757
          setLse((LogisticsServiceException)value);
2758
        }
2759
        break;
2760
 
2761
      }
2762
    }
2763
 
2764
    public Object getFieldValue(_Fields field) {
2765
      switch (field) {
2766
      case SUCCESS:
2767
        return getSuccess();
2768
 
2769
      case LSE:
2770
        return getLse();
2771
 
2772
      }
2773
      throw new IllegalStateException();
2774
    }
2775
 
3430 rajveer 2776
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2777
    public boolean isSet(_Fields field) {
2778
      if (field == null) {
2779
        throw new IllegalArgumentException();
2780
      }
674 chandransh 2781
 
2782
      switch (field) {
2783
      case SUCCESS:
2784
        return isSetSuccess();
2785
      case LSE:
2786
        return isSetLse();
2787
      }
2788
      throw new IllegalStateException();
2789
    }
2790
 
2791
    @Override
2792
    public boolean equals(Object that) {
2793
      if (that == null)
2794
        return false;
2795
      if (that instanceof getAllProviders_result)
2796
        return this.equals((getAllProviders_result)that);
2797
      return false;
2798
    }
2799
 
2800
    public boolean equals(getAllProviders_result that) {
2801
      if (that == null)
2802
        return false;
2803
 
2804
      boolean this_present_success = true && this.isSetSuccess();
2805
      boolean that_present_success = true && that.isSetSuccess();
2806
      if (this_present_success || that_present_success) {
2807
        if (!(this_present_success && that_present_success))
2808
          return false;
2809
        if (!this.success.equals(that.success))
2810
          return false;
2811
      }
2812
 
2813
      boolean this_present_lse = true && this.isSetLse();
2814
      boolean that_present_lse = true && that.isSetLse();
2815
      if (this_present_lse || that_present_lse) {
2816
        if (!(this_present_lse && that_present_lse))
2817
          return false;
2818
        if (!this.lse.equals(that.lse))
2819
          return false;
2820
      }
2821
 
2822
      return true;
2823
    }
2824
 
2825
    @Override
2826
    public int hashCode() {
2827
      return 0;
2828
    }
2829
 
3430 rajveer 2830
    public int compareTo(getAllProviders_result other) {
2831
      if (!getClass().equals(other.getClass())) {
2832
        return getClass().getName().compareTo(other.getClass().getName());
2833
      }
2834
 
2835
      int lastComparison = 0;
2836
      getAllProviders_result typedOther = (getAllProviders_result)other;
2837
 
2838
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2839
      if (lastComparison != 0) {
2840
        return lastComparison;
2841
      }
2842
      if (isSetSuccess()) {
2843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2844
        if (lastComparison != 0) {
2845
          return lastComparison;
2846
        }
2847
      }
2848
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2849
      if (lastComparison != 0) {
2850
        return lastComparison;
2851
      }
2852
      if (isSetLse()) {
2853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2854
        if (lastComparison != 0) {
2855
          return lastComparison;
2856
        }
2857
      }
2858
      return 0;
2859
    }
2860
 
2861
    public _Fields fieldForId(int fieldId) {
2862
      return _Fields.findByThriftId(fieldId);
2863
    }
2864
 
2865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2866
      org.apache.thrift.protocol.TField field;
674 chandransh 2867
      iprot.readStructBegin();
2868
      while (true)
2869
      {
2870
        field = iprot.readFieldBegin();
3430 rajveer 2871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2872
          break;
2873
        }
3430 rajveer 2874
        switch (field.id) {
2875
          case 0: // SUCCESS
2876
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2877
              {
2878
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
2879
                this.success = new ArrayList<Provider>(_list5.size);
2880
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 2881
                {
3430 rajveer 2882
                  Provider _elem7; // required
2883
                  _elem7 = new Provider();
2884
                  _elem7.read(iprot);
2885
                  this.success.add(_elem7);
674 chandransh 2886
                }
3430 rajveer 2887
                iprot.readListEnd();
674 chandransh 2888
              }
3430 rajveer 2889
            } else { 
2890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2891
            }
2892
            break;
2893
          case 1: // LSE
2894
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2895
              this.lse = new LogisticsServiceException();
2896
              this.lse.read(iprot);
2897
            } else { 
2898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2899
            }
2900
            break;
2901
          default:
2902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2903
        }
3430 rajveer 2904
        iprot.readFieldEnd();
674 chandransh 2905
      }
2906
      iprot.readStructEnd();
2907
      validate();
2908
    }
2909
 
3430 rajveer 2910
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2911
      oprot.writeStructBegin(STRUCT_DESC);
2912
 
2913
      if (this.isSetSuccess()) {
2914
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2915
        {
3430 rajveer 2916
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 2917
          for (Provider _iter8 : this.success)
674 chandransh 2918
          {
3044 chandransh 2919
            _iter8.write(oprot);
674 chandransh 2920
          }
2921
          oprot.writeListEnd();
2922
        }
2923
        oprot.writeFieldEnd();
2924
      } else if (this.isSetLse()) {
2925
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2926
        this.lse.write(oprot);
2927
        oprot.writeFieldEnd();
2928
      }
2929
      oprot.writeFieldStop();
2930
      oprot.writeStructEnd();
2931
    }
2932
 
2933
    @Override
2934
    public String toString() {
2935
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
2936
      boolean first = true;
2937
 
2938
      sb.append("success:");
2939
      if (this.success == null) {
2940
        sb.append("null");
2941
      } else {
2942
        sb.append(this.success);
2943
      }
2944
      first = false;
2945
      if (!first) sb.append(", ");
2946
      sb.append("lse:");
2947
      if (this.lse == null) {
2948
        sb.append("null");
2949
      } else {
2950
        sb.append(this.lse);
2951
      }
2952
      first = false;
2953
      sb.append(")");
2954
      return sb.toString();
2955
    }
2956
 
3430 rajveer 2957
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2958
      // check for required fields
2959
    }
2960
 
3430 rajveer 2961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2962
      try {
2963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2964
      } catch (org.apache.thrift.TException te) {
2965
        throw new java.io.IOException(te);
2966
      }
2967
    }
2968
 
2969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2970
      try {
2971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2972
      } catch (org.apache.thrift.TException te) {
2973
        throw new java.io.IOException(te);
2974
      }
2975
    }
2976
 
674 chandransh 2977
  }
2978
 
3430 rajveer 2979
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
2980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 2981
 
3430 rajveer 2982
    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);
2983
    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 2984
    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 2985
 
3430 rajveer 2986
    private long itemId; // required
2987
    private String destination_pin; // required
4630 mandeep.dh 2988
    private DeliveryType type; // required
471 rajveer 2989
 
2990
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2991
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2992
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 2993
      DESTINATION_PIN((short)2, "destination_pin"),
2994
      /**
2995
       * 
2996
       * @see DeliveryType
2997
       */
2998
      TYPE((short)3, "type");
471 rajveer 2999
 
3000
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3001
 
3002
      static {
3003
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3004
          byName.put(field.getFieldName(), field);
3005
        }
3006
      }
3007
 
3008
      /**
3009
       * Find the _Fields constant that matches fieldId, or null if its not found.
3010
       */
3011
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3012
        switch(fieldId) {
3013
          case 1: // ITEM_ID
3014
            return ITEM_ID;
3015
          case 2: // DESTINATION_PIN
3016
            return DESTINATION_PIN;
4630 mandeep.dh 3017
          case 3: // TYPE
3018
            return TYPE;
3430 rajveer 3019
          default:
3020
            return null;
3021
        }
471 rajveer 3022
      }
3023
 
3024
      /**
3025
       * Find the _Fields constant that matches fieldId, throwing an exception
3026
       * if it is not found.
3027
       */
3028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3029
        _Fields fields = findByThriftId(fieldId);
3030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3031
        return fields;
3032
      }
3033
 
3034
      /**
3035
       * Find the _Fields constant that matches name, or null if its not found.
3036
       */
3037
      public static _Fields findByName(String name) {
3038
        return byName.get(name);
3039
      }
3040
 
3041
      private final short _thriftId;
3042
      private final String _fieldName;
3043
 
3044
      _Fields(short thriftId, String fieldName) {
3045
        _thriftId = thriftId;
3046
        _fieldName = fieldName;
3047
      }
3048
 
3049
      public short getThriftFieldId() {
3050
        return _thriftId;
3051
      }
3052
 
3053
      public String getFieldName() {
3054
        return _fieldName;
3055
      }
3056
    }
3057
 
3058
    // isset id assignments
3059
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3060
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3061
 
3430 rajveer 3062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3063
    static {
3430 rajveer 3064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3065
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3067
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3068
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3069
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3070
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3073
    }
3074
 
3075
    public getLogisticsEstimation_args() {
3076
    }
3077
 
3078
    public getLogisticsEstimation_args(
3079
      long itemId,
4630 mandeep.dh 3080
      String destination_pin,
3081
      DeliveryType type)
471 rajveer 3082
    {
3083
      this();
3084
      this.itemId = itemId;
3085
      setItemIdIsSet(true);
3086
      this.destination_pin = destination_pin;
4630 mandeep.dh 3087
      this.type = type;
471 rajveer 3088
    }
3089
 
3090
    /**
3091
     * Performs a deep copy on <i>other</i>.
3092
     */
3093
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3094
      __isset_bit_vector.clear();
3095
      __isset_bit_vector.or(other.__isset_bit_vector);
3096
      this.itemId = other.itemId;
3097
      if (other.isSetDestination_pin()) {
3098
        this.destination_pin = other.destination_pin;
3099
      }
4630 mandeep.dh 3100
      if (other.isSetType()) {
3101
        this.type = other.type;
3102
      }
471 rajveer 3103
    }
3104
 
3105
    public getLogisticsEstimation_args deepCopy() {
3106
      return new getLogisticsEstimation_args(this);
3107
    }
3108
 
3430 rajveer 3109
    @Override
3110
    public void clear() {
3111
      setItemIdIsSet(false);
3112
      this.itemId = 0;
3113
      this.destination_pin = null;
4630 mandeep.dh 3114
      this.type = null;
471 rajveer 3115
    }
3116
 
3117
    public long getItemId() {
3118
      return this.itemId;
3119
    }
3120
 
3430 rajveer 3121
    public void setItemId(long itemId) {
471 rajveer 3122
      this.itemId = itemId;
3123
      setItemIdIsSet(true);
3124
    }
3125
 
3126
    public void unsetItemId() {
3127
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3128
    }
3129
 
3430 rajveer 3130
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3131
    public boolean isSetItemId() {
3132
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3133
    }
3134
 
3135
    public void setItemIdIsSet(boolean value) {
3136
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3137
    }
3138
 
3139
    public String getDestination_pin() {
3140
      return this.destination_pin;
3141
    }
3142
 
3430 rajveer 3143
    public void setDestination_pin(String destination_pin) {
471 rajveer 3144
      this.destination_pin = destination_pin;
3145
    }
3146
 
3147
    public void unsetDestination_pin() {
3148
      this.destination_pin = null;
3149
    }
3150
 
3430 rajveer 3151
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3152
    public boolean isSetDestination_pin() {
3153
      return this.destination_pin != null;
3154
    }
3155
 
3156
    public void setDestination_pinIsSet(boolean value) {
3157
      if (!value) {
3158
        this.destination_pin = null;
3159
      }
3160
    }
3161
 
4630 mandeep.dh 3162
    /**
3163
     * 
3164
     * @see DeliveryType
3165
     */
3166
    public DeliveryType getType() {
3167
      return this.type;
3168
    }
3169
 
3170
    /**
3171
     * 
3172
     * @see DeliveryType
3173
     */
3174
    public void setType(DeliveryType type) {
3175
      this.type = type;
3176
    }
3177
 
3178
    public void unsetType() {
3179
      this.type = null;
3180
    }
3181
 
3182
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3183
    public boolean isSetType() {
3184
      return this.type != null;
3185
    }
3186
 
3187
    public void setTypeIsSet(boolean value) {
3188
      if (!value) {
3189
        this.type = null;
3190
      }
3191
    }
3192
 
471 rajveer 3193
    public void setFieldValue(_Fields field, Object value) {
3194
      switch (field) {
3195
      case ITEM_ID:
3196
        if (value == null) {
3197
          unsetItemId();
3198
        } else {
3199
          setItemId((Long)value);
3200
        }
3201
        break;
3202
 
3203
      case DESTINATION_PIN:
3204
        if (value == null) {
3205
          unsetDestination_pin();
3206
        } else {
3207
          setDestination_pin((String)value);
3208
        }
3209
        break;
3210
 
4630 mandeep.dh 3211
      case TYPE:
3212
        if (value == null) {
3213
          unsetType();
3214
        } else {
3215
          setType((DeliveryType)value);
3216
        }
3217
        break;
3218
 
471 rajveer 3219
      }
3220
    }
3221
 
3222
    public Object getFieldValue(_Fields field) {
3223
      switch (field) {
3224
      case ITEM_ID:
3430 rajveer 3225
        return Long.valueOf(getItemId());
471 rajveer 3226
 
3227
      case DESTINATION_PIN:
3228
        return getDestination_pin();
3229
 
4630 mandeep.dh 3230
      case TYPE:
3231
        return getType();
3232
 
471 rajveer 3233
      }
3234
      throw new IllegalStateException();
3235
    }
3236
 
3430 rajveer 3237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3238
    public boolean isSet(_Fields field) {
3239
      if (field == null) {
3240
        throw new IllegalArgumentException();
3241
      }
471 rajveer 3242
 
3243
      switch (field) {
3244
      case ITEM_ID:
3245
        return isSetItemId();
3246
      case DESTINATION_PIN:
3247
        return isSetDestination_pin();
4630 mandeep.dh 3248
      case TYPE:
3249
        return isSetType();
471 rajveer 3250
      }
3251
      throw new IllegalStateException();
3252
    }
3253
 
3254
    @Override
3255
    public boolean equals(Object that) {
3256
      if (that == null)
3257
        return false;
3258
      if (that instanceof getLogisticsEstimation_args)
3259
        return this.equals((getLogisticsEstimation_args)that);
3260
      return false;
3261
    }
3262
 
3263
    public boolean equals(getLogisticsEstimation_args that) {
3264
      if (that == null)
3265
        return false;
3266
 
3267
      boolean this_present_itemId = true;
3268
      boolean that_present_itemId = true;
3269
      if (this_present_itemId || that_present_itemId) {
3270
        if (!(this_present_itemId && that_present_itemId))
3271
          return false;
3272
        if (this.itemId != that.itemId)
3273
          return false;
3274
      }
3275
 
3276
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3277
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3278
      if (this_present_destination_pin || that_present_destination_pin) {
3279
        if (!(this_present_destination_pin && that_present_destination_pin))
3280
          return false;
3281
        if (!this.destination_pin.equals(that.destination_pin))
3282
          return false;
3283
      }
3284
 
4630 mandeep.dh 3285
      boolean this_present_type = true && this.isSetType();
3286
      boolean that_present_type = true && that.isSetType();
3287
      if (this_present_type || that_present_type) {
3288
        if (!(this_present_type && that_present_type))
3289
          return false;
3290
        if (!this.type.equals(that.type))
3291
          return false;
3292
      }
3293
 
471 rajveer 3294
      return true;
3295
    }
3296
 
3297
    @Override
3298
    public int hashCode() {
3299
      return 0;
3300
    }
3301
 
3302
    public int compareTo(getLogisticsEstimation_args other) {
3303
      if (!getClass().equals(other.getClass())) {
3304
        return getClass().getName().compareTo(other.getClass().getName());
3305
      }
3306
 
3307
      int lastComparison = 0;
3308
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3309
 
3430 rajveer 3310
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3311
      if (lastComparison != 0) {
3312
        return lastComparison;
3313
      }
3430 rajveer 3314
      if (isSetItemId()) {
3315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3316
        if (lastComparison != 0) {
3317
          return lastComparison;
3318
        }
471 rajveer 3319
      }
3430 rajveer 3320
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3321
      if (lastComparison != 0) {
3322
        return lastComparison;
3323
      }
3430 rajveer 3324
      if (isSetDestination_pin()) {
3325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3326
        if (lastComparison != 0) {
3327
          return lastComparison;
3328
        }
471 rajveer 3329
      }
4630 mandeep.dh 3330
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3331
      if (lastComparison != 0) {
3332
        return lastComparison;
3333
      }
3334
      if (isSetType()) {
3335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3336
        if (lastComparison != 0) {
3337
          return lastComparison;
3338
        }
3339
      }
471 rajveer 3340
      return 0;
3341
    }
3342
 
3430 rajveer 3343
    public _Fields fieldForId(int fieldId) {
3344
      return _Fields.findByThriftId(fieldId);
3345
    }
3346
 
3347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3348
      org.apache.thrift.protocol.TField field;
471 rajveer 3349
      iprot.readStructBegin();
3350
      while (true)
3351
      {
3352
        field = iprot.readFieldBegin();
3430 rajveer 3353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3354
          break;
3355
        }
3430 rajveer 3356
        switch (field.id) {
3357
          case 1: // ITEM_ID
3358
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3359
              this.itemId = iprot.readI64();
3360
              setItemIdIsSet(true);
3361
            } else { 
3362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3363
            }
3364
            break;
3365
          case 2: // DESTINATION_PIN
3366
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3367
              this.destination_pin = iprot.readString();
3368
            } else { 
3369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3370
            }
3371
            break;
4630 mandeep.dh 3372
          case 3: // TYPE
3373
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3374
              this.type = DeliveryType.findByValue(iprot.readI32());
3375
            } else { 
3376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3377
            }
3378
            break;
3430 rajveer 3379
          default:
3380
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3381
        }
3430 rajveer 3382
        iprot.readFieldEnd();
471 rajveer 3383
      }
3384
      iprot.readStructEnd();
3385
      validate();
3386
    }
3387
 
3430 rajveer 3388
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3389
      validate();
3390
 
3391
      oprot.writeStructBegin(STRUCT_DESC);
3392
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3393
      oprot.writeI64(this.itemId);
3394
      oprot.writeFieldEnd();
3395
      if (this.destination_pin != null) {
3396
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3397
        oprot.writeString(this.destination_pin);
3398
        oprot.writeFieldEnd();
3399
      }
4630 mandeep.dh 3400
      if (this.type != null) {
3401
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3402
        oprot.writeI32(this.type.getValue());
3403
        oprot.writeFieldEnd();
3404
      }
471 rajveer 3405
      oprot.writeFieldStop();
3406
      oprot.writeStructEnd();
3407
    }
3408
 
3409
    @Override
3410
    public String toString() {
3411
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3412
      boolean first = true;
3413
 
3414
      sb.append("itemId:");
3415
      sb.append(this.itemId);
3416
      first = false;
3417
      if (!first) sb.append(", ");
3418
      sb.append("destination_pin:");
3419
      if (this.destination_pin == null) {
3420
        sb.append("null");
3421
      } else {
3422
        sb.append(this.destination_pin);
3423
      }
3424
      first = false;
4630 mandeep.dh 3425
      if (!first) sb.append(", ");
3426
      sb.append("type:");
3427
      if (this.type == null) {
3428
        sb.append("null");
3429
      } else {
3430
        sb.append(this.type);
3431
      }
3432
      first = false;
471 rajveer 3433
      sb.append(")");
3434
      return sb.toString();
3435
    }
3436
 
3430 rajveer 3437
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3438
      // check for required fields
3439
    }
3440
 
3430 rajveer 3441
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3442
      try {
3443
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3444
      } catch (org.apache.thrift.TException te) {
3445
        throw new java.io.IOException(te);
3446
      }
3447
    }
3448
 
3449
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3450
      try {
3451
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3452
      } catch (org.apache.thrift.TException te) {
3453
        throw new java.io.IOException(te);
3454
      }
3455
    }
3456
 
471 rajveer 3457
  }
3458
 
3430 rajveer 3459
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3460
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3461
 
3430 rajveer 3462
    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);
3463
    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 3464
 
3430 rajveer 3465
    private LogisticsInfo success; // required
3466
    private LogisticsServiceException se; // required
471 rajveer 3467
 
3468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3470
      SUCCESS((short)0, "success"),
3471
      SE((short)1, "se");
3472
 
3473
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3474
 
3475
      static {
3476
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3477
          byName.put(field.getFieldName(), field);
3478
        }
3479
      }
3480
 
3481
      /**
3482
       * Find the _Fields constant that matches fieldId, or null if its not found.
3483
       */
3484
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3485
        switch(fieldId) {
3486
          case 0: // SUCCESS
3487
            return SUCCESS;
3488
          case 1: // SE
3489
            return SE;
3490
          default:
3491
            return null;
3492
        }
471 rajveer 3493
      }
3494
 
3495
      /**
3496
       * Find the _Fields constant that matches fieldId, throwing an exception
3497
       * if it is not found.
3498
       */
3499
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3500
        _Fields fields = findByThriftId(fieldId);
3501
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3502
        return fields;
3503
      }
3504
 
3505
      /**
3506
       * Find the _Fields constant that matches name, or null if its not found.
3507
       */
3508
      public static _Fields findByName(String name) {
3509
        return byName.get(name);
3510
      }
3511
 
3512
      private final short _thriftId;
3513
      private final String _fieldName;
3514
 
3515
      _Fields(short thriftId, String fieldName) {
3516
        _thriftId = thriftId;
3517
        _fieldName = fieldName;
3518
      }
3519
 
3520
      public short getThriftFieldId() {
3521
        return _thriftId;
3522
      }
3523
 
3524
      public String getFieldName() {
3525
        return _fieldName;
3526
      }
3527
    }
3528
 
3529
    // isset id assignments
3530
 
3430 rajveer 3531
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3532
    static {
3430 rajveer 3533
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3534
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3535
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3536
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3540
    }
3541
 
3542
    public getLogisticsEstimation_result() {
3543
    }
3544
 
3545
    public getLogisticsEstimation_result(
648 chandransh 3546
      LogisticsInfo success,
471 rajveer 3547
      LogisticsServiceException se)
3548
    {
3549
      this();
3550
      this.success = success;
3551
      this.se = se;
3552
    }
3553
 
3554
    /**
3555
     * Performs a deep copy on <i>other</i>.
3556
     */
3557
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3558
      if (other.isSetSuccess()) {
648 chandransh 3559
        this.success = new LogisticsInfo(other.success);
471 rajveer 3560
      }
3561
      if (other.isSetSe()) {
3562
        this.se = new LogisticsServiceException(other.se);
3563
      }
3564
    }
3565
 
3566
    public getLogisticsEstimation_result deepCopy() {
3567
      return new getLogisticsEstimation_result(this);
3568
    }
3569
 
3430 rajveer 3570
    @Override
3571
    public void clear() {
3572
      this.success = null;
3573
      this.se = null;
471 rajveer 3574
    }
3575
 
648 chandransh 3576
    public LogisticsInfo getSuccess() {
471 rajveer 3577
      return this.success;
3578
    }
3579
 
3430 rajveer 3580
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3581
      this.success = success;
3582
    }
3583
 
3584
    public void unsetSuccess() {
3585
      this.success = null;
3586
    }
3587
 
3430 rajveer 3588
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3589
    public boolean isSetSuccess() {
3590
      return this.success != null;
3591
    }
3592
 
3593
    public void setSuccessIsSet(boolean value) {
3594
      if (!value) {
3595
        this.success = null;
3596
      }
3597
    }
3598
 
3599
    public LogisticsServiceException getSe() {
3600
      return this.se;
3601
    }
3602
 
3430 rajveer 3603
    public void setSe(LogisticsServiceException se) {
471 rajveer 3604
      this.se = se;
3605
    }
3606
 
3607
    public void unsetSe() {
3608
      this.se = null;
3609
    }
3610
 
3430 rajveer 3611
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3612
    public boolean isSetSe() {
3613
      return this.se != null;
3614
    }
3615
 
3616
    public void setSeIsSet(boolean value) {
3617
      if (!value) {
3618
        this.se = null;
3619
      }
3620
    }
3621
 
3622
    public void setFieldValue(_Fields field, Object value) {
3623
      switch (field) {
3624
      case SUCCESS:
3625
        if (value == null) {
3626
          unsetSuccess();
3627
        } else {
648 chandransh 3628
          setSuccess((LogisticsInfo)value);
471 rajveer 3629
        }
3630
        break;
3631
 
3632
      case SE:
3633
        if (value == null) {
3634
          unsetSe();
3635
        } else {
3636
          setSe((LogisticsServiceException)value);
3637
        }
3638
        break;
3639
 
3640
      }
3641
    }
3642
 
3643
    public Object getFieldValue(_Fields field) {
3644
      switch (field) {
3645
      case SUCCESS:
3646
        return getSuccess();
3647
 
3648
      case SE:
3649
        return getSe();
3650
 
3651
      }
3652
      throw new IllegalStateException();
3653
    }
3654
 
3430 rajveer 3655
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3656
    public boolean isSet(_Fields field) {
3657
      if (field == null) {
3658
        throw new IllegalArgumentException();
3659
      }
471 rajveer 3660
 
3661
      switch (field) {
3662
      case SUCCESS:
3663
        return isSetSuccess();
3664
      case SE:
3665
        return isSetSe();
3666
      }
3667
      throw new IllegalStateException();
3668
    }
3669
 
3670
    @Override
3671
    public boolean equals(Object that) {
3672
      if (that == null)
3673
        return false;
3674
      if (that instanceof getLogisticsEstimation_result)
3675
        return this.equals((getLogisticsEstimation_result)that);
3676
      return false;
3677
    }
3678
 
3679
    public boolean equals(getLogisticsEstimation_result that) {
3680
      if (that == null)
3681
        return false;
3682
 
3683
      boolean this_present_success = true && this.isSetSuccess();
3684
      boolean that_present_success = true && that.isSetSuccess();
3685
      if (this_present_success || that_present_success) {
3686
        if (!(this_present_success && that_present_success))
3687
          return false;
3688
        if (!this.success.equals(that.success))
3689
          return false;
3690
      }
3691
 
3692
      boolean this_present_se = true && this.isSetSe();
3693
      boolean that_present_se = true && that.isSetSe();
3694
      if (this_present_se || that_present_se) {
3695
        if (!(this_present_se && that_present_se))
3696
          return false;
3697
        if (!this.se.equals(that.se))
3698
          return false;
3699
      }
3700
 
3701
      return true;
3702
    }
3703
 
3704
    @Override
3705
    public int hashCode() {
3706
      return 0;
3707
    }
3708
 
3709
    public int compareTo(getLogisticsEstimation_result other) {
3710
      if (!getClass().equals(other.getClass())) {
3711
        return getClass().getName().compareTo(other.getClass().getName());
3712
      }
3713
 
3714
      int lastComparison = 0;
3715
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3716
 
3430 rajveer 3717
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3718
      if (lastComparison != 0) {
3719
        return lastComparison;
3720
      }
3430 rajveer 3721
      if (isSetSuccess()) {
3722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3723
        if (lastComparison != 0) {
3724
          return lastComparison;
3725
        }
471 rajveer 3726
      }
3430 rajveer 3727
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3728
      if (lastComparison != 0) {
3729
        return lastComparison;
3730
      }
3430 rajveer 3731
      if (isSetSe()) {
3732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3733
        if (lastComparison != 0) {
3734
          return lastComparison;
3735
        }
471 rajveer 3736
      }
3737
      return 0;
3738
    }
3739
 
3430 rajveer 3740
    public _Fields fieldForId(int fieldId) {
3741
      return _Fields.findByThriftId(fieldId);
3742
    }
3743
 
3744
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3745
      org.apache.thrift.protocol.TField field;
471 rajveer 3746
      iprot.readStructBegin();
3747
      while (true)
3748
      {
3749
        field = iprot.readFieldBegin();
3430 rajveer 3750
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3751
          break;
3752
        }
3430 rajveer 3753
        switch (field.id) {
3754
          case 0: // SUCCESS
3755
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3756
              this.success = new LogisticsInfo();
3757
              this.success.read(iprot);
3758
            } else { 
3759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3760
            }
3761
            break;
3762
          case 1: // SE
3763
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3764
              this.se = new LogisticsServiceException();
3765
              this.se.read(iprot);
3766
            } else { 
3767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3768
            }
3769
            break;
3770
          default:
3771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3772
        }
3430 rajveer 3773
        iprot.readFieldEnd();
471 rajveer 3774
      }
3775
      iprot.readStructEnd();
3776
      validate();
3777
    }
3778
 
3430 rajveer 3779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3780
      oprot.writeStructBegin(STRUCT_DESC);
3781
 
3782
      if (this.isSetSuccess()) {
3783
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3784
        this.success.write(oprot);
3785
        oprot.writeFieldEnd();
3786
      } else if (this.isSetSe()) {
3787
        oprot.writeFieldBegin(SE_FIELD_DESC);
3788
        this.se.write(oprot);
3789
        oprot.writeFieldEnd();
3790
      }
3791
      oprot.writeFieldStop();
3792
      oprot.writeStructEnd();
3793
    }
3794
 
3795
    @Override
3796
    public String toString() {
3797
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3798
      boolean first = true;
3799
 
3800
      sb.append("success:");
3801
      if (this.success == null) {
3802
        sb.append("null");
3803
      } else {
3804
        sb.append(this.success);
3805
      }
3806
      first = false;
3807
      if (!first) sb.append(", ");
3808
      sb.append("se:");
3809
      if (this.se == null) {
3810
        sb.append("null");
3811
      } else {
3812
        sb.append(this.se);
3813
      }
3814
      first = false;
3815
      sb.append(")");
3816
      return sb.toString();
3817
    }
3818
 
3430 rajveer 3819
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3820
      // check for required fields
3821
    }
3822
 
3430 rajveer 3823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3824
      try {
3825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3826
      } catch (org.apache.thrift.TException te) {
3827
        throw new java.io.IOException(te);
3828
      }
3829
    }
3830
 
3831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3832
      try {
3833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3834
      } catch (org.apache.thrift.TException te) {
3835
        throw new java.io.IOException(te);
3836
      }
3837
    }
3838
 
471 rajveer 3839
  }
3840
 
7256 rajveer 3841
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
3842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
3843
 
3844
    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);
3845
    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);
3846
    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);
3847
 
3848
    private long itemId; // required
3849
    private String destination_pin; // required
3850
    private DeliveryType type; // required
3851
 
3852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3854
      ITEM_ID((short)1, "itemId"),
3855
      DESTINATION_PIN((short)2, "destination_pin"),
3856
      /**
3857
       * 
3858
       * @see DeliveryType
3859
       */
3860
      TYPE((short)3, "type");
3861
 
3862
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3863
 
3864
      static {
3865
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3866
          byName.put(field.getFieldName(), field);
3867
        }
3868
      }
3869
 
3870
      /**
3871
       * Find the _Fields constant that matches fieldId, or null if its not found.
3872
       */
3873
      public static _Fields findByThriftId(int fieldId) {
3874
        switch(fieldId) {
3875
          case 1: // ITEM_ID
3876
            return ITEM_ID;
3877
          case 2: // DESTINATION_PIN
3878
            return DESTINATION_PIN;
3879
          case 3: // TYPE
3880
            return TYPE;
3881
          default:
3882
            return null;
3883
        }
3884
      }
3885
 
3886
      /**
3887
       * Find the _Fields constant that matches fieldId, throwing an exception
3888
       * if it is not found.
3889
       */
3890
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3891
        _Fields fields = findByThriftId(fieldId);
3892
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3893
        return fields;
3894
      }
3895
 
3896
      /**
3897
       * Find the _Fields constant that matches name, or null if its not found.
3898
       */
3899
      public static _Fields findByName(String name) {
3900
        return byName.get(name);
3901
      }
3902
 
3903
      private final short _thriftId;
3904
      private final String _fieldName;
3905
 
3906
      _Fields(short thriftId, String fieldName) {
3907
        _thriftId = thriftId;
3908
        _fieldName = fieldName;
3909
      }
3910
 
3911
      public short getThriftFieldId() {
3912
        return _thriftId;
3913
      }
3914
 
3915
      public String getFieldName() {
3916
        return _fieldName;
3917
      }
3918
    }
3919
 
3920
    // isset id assignments
3921
    private static final int __ITEMID_ISSET_ID = 0;
3922
    private BitSet __isset_bit_vector = new BitSet(1);
3923
 
3924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3925
    static {
3926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3927
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3929
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3931
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3932
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3933
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3934
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
3935
    }
3936
 
3937
    public getLogisticsEstimationForStore_args() {
3938
    }
3939
 
3940
    public getLogisticsEstimationForStore_args(
3941
      long itemId,
3942
      String destination_pin,
3943
      DeliveryType type)
3944
    {
3945
      this();
3946
      this.itemId = itemId;
3947
      setItemIdIsSet(true);
3948
      this.destination_pin = destination_pin;
3949
      this.type = type;
3950
    }
3951
 
3952
    /**
3953
     * Performs a deep copy on <i>other</i>.
3954
     */
3955
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
3956
      __isset_bit_vector.clear();
3957
      __isset_bit_vector.or(other.__isset_bit_vector);
3958
      this.itemId = other.itemId;
3959
      if (other.isSetDestination_pin()) {
3960
        this.destination_pin = other.destination_pin;
3961
      }
3962
      if (other.isSetType()) {
3963
        this.type = other.type;
3964
      }
3965
    }
3966
 
3967
    public getLogisticsEstimationForStore_args deepCopy() {
3968
      return new getLogisticsEstimationForStore_args(this);
3969
    }
3970
 
3971
    @Override
3972
    public void clear() {
3973
      setItemIdIsSet(false);
3974
      this.itemId = 0;
3975
      this.destination_pin = null;
3976
      this.type = null;
3977
    }
3978
 
3979
    public long getItemId() {
3980
      return this.itemId;
3981
    }
3982
 
3983
    public void setItemId(long itemId) {
3984
      this.itemId = itemId;
3985
      setItemIdIsSet(true);
3986
    }
3987
 
3988
    public void unsetItemId() {
3989
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3990
    }
3991
 
3992
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
3993
    public boolean isSetItemId() {
3994
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3995
    }
3996
 
3997
    public void setItemIdIsSet(boolean value) {
3998
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3999
    }
4000
 
4001
    public String getDestination_pin() {
4002
      return this.destination_pin;
4003
    }
4004
 
4005
    public void setDestination_pin(String destination_pin) {
4006
      this.destination_pin = destination_pin;
4007
    }
4008
 
4009
    public void unsetDestination_pin() {
4010
      this.destination_pin = null;
4011
    }
4012
 
4013
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4014
    public boolean isSetDestination_pin() {
4015
      return this.destination_pin != null;
4016
    }
4017
 
4018
    public void setDestination_pinIsSet(boolean value) {
4019
      if (!value) {
4020
        this.destination_pin = null;
4021
      }
4022
    }
4023
 
4024
    /**
4025
     * 
4026
     * @see DeliveryType
4027
     */
4028
    public DeliveryType getType() {
4029
      return this.type;
4030
    }
4031
 
4032
    /**
4033
     * 
4034
     * @see DeliveryType
4035
     */
4036
    public void setType(DeliveryType type) {
4037
      this.type = type;
4038
    }
4039
 
4040
    public void unsetType() {
4041
      this.type = null;
4042
    }
4043
 
4044
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4045
    public boolean isSetType() {
4046
      return this.type != null;
4047
    }
4048
 
4049
    public void setTypeIsSet(boolean value) {
4050
      if (!value) {
4051
        this.type = null;
4052
      }
4053
    }
4054
 
4055
    public void setFieldValue(_Fields field, Object value) {
4056
      switch (field) {
4057
      case ITEM_ID:
4058
        if (value == null) {
4059
          unsetItemId();
4060
        } else {
4061
          setItemId((Long)value);
4062
        }
4063
        break;
4064
 
4065
      case DESTINATION_PIN:
4066
        if (value == null) {
4067
          unsetDestination_pin();
4068
        } else {
4069
          setDestination_pin((String)value);
4070
        }
4071
        break;
4072
 
4073
      case TYPE:
4074
        if (value == null) {
4075
          unsetType();
4076
        } else {
4077
          setType((DeliveryType)value);
4078
        }
4079
        break;
4080
 
4081
      }
4082
    }
4083
 
4084
    public Object getFieldValue(_Fields field) {
4085
      switch (field) {
4086
      case ITEM_ID:
4087
        return Long.valueOf(getItemId());
4088
 
4089
      case DESTINATION_PIN:
4090
        return getDestination_pin();
4091
 
4092
      case TYPE:
4093
        return getType();
4094
 
4095
      }
4096
      throw new IllegalStateException();
4097
    }
4098
 
4099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4100
    public boolean isSet(_Fields field) {
4101
      if (field == null) {
4102
        throw new IllegalArgumentException();
4103
      }
4104
 
4105
      switch (field) {
4106
      case ITEM_ID:
4107
        return isSetItemId();
4108
      case DESTINATION_PIN:
4109
        return isSetDestination_pin();
4110
      case TYPE:
4111
        return isSetType();
4112
      }
4113
      throw new IllegalStateException();
4114
    }
4115
 
4116
    @Override
4117
    public boolean equals(Object that) {
4118
      if (that == null)
4119
        return false;
4120
      if (that instanceof getLogisticsEstimationForStore_args)
4121
        return this.equals((getLogisticsEstimationForStore_args)that);
4122
      return false;
4123
    }
4124
 
4125
    public boolean equals(getLogisticsEstimationForStore_args that) {
4126
      if (that == null)
4127
        return false;
4128
 
4129
      boolean this_present_itemId = true;
4130
      boolean that_present_itemId = true;
4131
      if (this_present_itemId || that_present_itemId) {
4132
        if (!(this_present_itemId && that_present_itemId))
4133
          return false;
4134
        if (this.itemId != that.itemId)
4135
          return false;
4136
      }
4137
 
4138
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4139
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4140
      if (this_present_destination_pin || that_present_destination_pin) {
4141
        if (!(this_present_destination_pin && that_present_destination_pin))
4142
          return false;
4143
        if (!this.destination_pin.equals(that.destination_pin))
4144
          return false;
4145
      }
4146
 
4147
      boolean this_present_type = true && this.isSetType();
4148
      boolean that_present_type = true && that.isSetType();
4149
      if (this_present_type || that_present_type) {
4150
        if (!(this_present_type && that_present_type))
4151
          return false;
4152
        if (!this.type.equals(that.type))
4153
          return false;
4154
      }
4155
 
4156
      return true;
4157
    }
4158
 
4159
    @Override
4160
    public int hashCode() {
4161
      return 0;
4162
    }
4163
 
4164
    public int compareTo(getLogisticsEstimationForStore_args other) {
4165
      if (!getClass().equals(other.getClass())) {
4166
        return getClass().getName().compareTo(other.getClass().getName());
4167
      }
4168
 
4169
      int lastComparison = 0;
4170
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4171
 
4172
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4173
      if (lastComparison != 0) {
4174
        return lastComparison;
4175
      }
4176
      if (isSetItemId()) {
4177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4178
        if (lastComparison != 0) {
4179
          return lastComparison;
4180
        }
4181
      }
4182
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4183
      if (lastComparison != 0) {
4184
        return lastComparison;
4185
      }
4186
      if (isSetDestination_pin()) {
4187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4188
        if (lastComparison != 0) {
4189
          return lastComparison;
4190
        }
4191
      }
4192
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4193
      if (lastComparison != 0) {
4194
        return lastComparison;
4195
      }
4196
      if (isSetType()) {
4197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4198
        if (lastComparison != 0) {
4199
          return lastComparison;
4200
        }
4201
      }
4202
      return 0;
4203
    }
4204
 
4205
    public _Fields fieldForId(int fieldId) {
4206
      return _Fields.findByThriftId(fieldId);
4207
    }
4208
 
4209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4210
      org.apache.thrift.protocol.TField field;
4211
      iprot.readStructBegin();
4212
      while (true)
4213
      {
4214
        field = iprot.readFieldBegin();
4215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4216
          break;
4217
        }
4218
        switch (field.id) {
4219
          case 1: // ITEM_ID
4220
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4221
              this.itemId = iprot.readI64();
4222
              setItemIdIsSet(true);
4223
            } else { 
4224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4225
            }
4226
            break;
4227
          case 2: // DESTINATION_PIN
4228
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4229
              this.destination_pin = iprot.readString();
4230
            } else { 
4231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4232
            }
4233
            break;
4234
          case 3: // TYPE
4235
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4236
              this.type = DeliveryType.findByValue(iprot.readI32());
4237
            } else { 
4238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4239
            }
4240
            break;
4241
          default:
4242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4243
        }
4244
        iprot.readFieldEnd();
4245
      }
4246
      iprot.readStructEnd();
4247
      validate();
4248
    }
4249
 
4250
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4251
      validate();
4252
 
4253
      oprot.writeStructBegin(STRUCT_DESC);
4254
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4255
      oprot.writeI64(this.itemId);
4256
      oprot.writeFieldEnd();
4257
      if (this.destination_pin != null) {
4258
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4259
        oprot.writeString(this.destination_pin);
4260
        oprot.writeFieldEnd();
4261
      }
4262
      if (this.type != null) {
4263
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4264
        oprot.writeI32(this.type.getValue());
4265
        oprot.writeFieldEnd();
4266
      }
4267
      oprot.writeFieldStop();
4268
      oprot.writeStructEnd();
4269
    }
4270
 
4271
    @Override
4272
    public String toString() {
4273
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4274
      boolean first = true;
4275
 
4276
      sb.append("itemId:");
4277
      sb.append(this.itemId);
4278
      first = false;
4279
      if (!first) sb.append(", ");
4280
      sb.append("destination_pin:");
4281
      if (this.destination_pin == null) {
4282
        sb.append("null");
4283
      } else {
4284
        sb.append(this.destination_pin);
4285
      }
4286
      first = false;
4287
      if (!first) sb.append(", ");
4288
      sb.append("type:");
4289
      if (this.type == null) {
4290
        sb.append("null");
4291
      } else {
4292
        sb.append(this.type);
4293
      }
4294
      first = false;
4295
      sb.append(")");
4296
      return sb.toString();
4297
    }
4298
 
4299
    public void validate() throws org.apache.thrift.TException {
4300
      // check for required fields
4301
    }
4302
 
4303
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4304
      try {
4305
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4306
      } catch (org.apache.thrift.TException te) {
4307
        throw new java.io.IOException(te);
4308
      }
4309
    }
4310
 
4311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4312
      try {
4313
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4314
        __isset_bit_vector = new BitSet(1);
4315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4316
      } catch (org.apache.thrift.TException te) {
4317
        throw new java.io.IOException(te);
4318
      }
4319
    }
4320
 
4321
  }
4322
 
4323
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4325
 
4326
    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);
4327
    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);
4328
 
4329
    private LogisticsInfo success; // required
4330
    private LogisticsServiceException se; // required
4331
 
4332
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4333
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4334
      SUCCESS((short)0, "success"),
4335
      SE((short)1, "se");
4336
 
4337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4338
 
4339
      static {
4340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4341
          byName.put(field.getFieldName(), field);
4342
        }
4343
      }
4344
 
4345
      /**
4346
       * Find the _Fields constant that matches fieldId, or null if its not found.
4347
       */
4348
      public static _Fields findByThriftId(int fieldId) {
4349
        switch(fieldId) {
4350
          case 0: // SUCCESS
4351
            return SUCCESS;
4352
          case 1: // SE
4353
            return SE;
4354
          default:
4355
            return null;
4356
        }
4357
      }
4358
 
4359
      /**
4360
       * Find the _Fields constant that matches fieldId, throwing an exception
4361
       * if it is not found.
4362
       */
4363
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4364
        _Fields fields = findByThriftId(fieldId);
4365
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4366
        return fields;
4367
      }
4368
 
4369
      /**
4370
       * Find the _Fields constant that matches name, or null if its not found.
4371
       */
4372
      public static _Fields findByName(String name) {
4373
        return byName.get(name);
4374
      }
4375
 
4376
      private final short _thriftId;
4377
      private final String _fieldName;
4378
 
4379
      _Fields(short thriftId, String fieldName) {
4380
        _thriftId = thriftId;
4381
        _fieldName = fieldName;
4382
      }
4383
 
4384
      public short getThriftFieldId() {
4385
        return _thriftId;
4386
      }
4387
 
4388
      public String getFieldName() {
4389
        return _fieldName;
4390
      }
4391
    }
4392
 
4393
    // isset id assignments
4394
 
4395
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4396
    static {
4397
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4398
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4399
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4400
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4401
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4402
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4403
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4404
    }
4405
 
4406
    public getLogisticsEstimationForStore_result() {
4407
    }
4408
 
4409
    public getLogisticsEstimationForStore_result(
4410
      LogisticsInfo success,
4411
      LogisticsServiceException se)
4412
    {
4413
      this();
4414
      this.success = success;
4415
      this.se = se;
4416
    }
4417
 
4418
    /**
4419
     * Performs a deep copy on <i>other</i>.
4420
     */
4421
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4422
      if (other.isSetSuccess()) {
4423
        this.success = new LogisticsInfo(other.success);
4424
      }
4425
      if (other.isSetSe()) {
4426
        this.se = new LogisticsServiceException(other.se);
4427
      }
4428
    }
4429
 
4430
    public getLogisticsEstimationForStore_result deepCopy() {
4431
      return new getLogisticsEstimationForStore_result(this);
4432
    }
4433
 
4434
    @Override
4435
    public void clear() {
4436
      this.success = null;
4437
      this.se = null;
4438
    }
4439
 
4440
    public LogisticsInfo getSuccess() {
4441
      return this.success;
4442
    }
4443
 
4444
    public void setSuccess(LogisticsInfo success) {
4445
      this.success = success;
4446
    }
4447
 
4448
    public void unsetSuccess() {
4449
      this.success = null;
4450
    }
4451
 
4452
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4453
    public boolean isSetSuccess() {
4454
      return this.success != null;
4455
    }
4456
 
4457
    public void setSuccessIsSet(boolean value) {
4458
      if (!value) {
4459
        this.success = null;
4460
      }
4461
    }
4462
 
4463
    public LogisticsServiceException getSe() {
4464
      return this.se;
4465
    }
4466
 
4467
    public void setSe(LogisticsServiceException se) {
4468
      this.se = se;
4469
    }
4470
 
4471
    public void unsetSe() {
4472
      this.se = null;
4473
    }
4474
 
4475
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4476
    public boolean isSetSe() {
4477
      return this.se != null;
4478
    }
4479
 
4480
    public void setSeIsSet(boolean value) {
4481
      if (!value) {
4482
        this.se = null;
4483
      }
4484
    }
4485
 
4486
    public void setFieldValue(_Fields field, Object value) {
4487
      switch (field) {
4488
      case SUCCESS:
4489
        if (value == null) {
4490
          unsetSuccess();
4491
        } else {
4492
          setSuccess((LogisticsInfo)value);
4493
        }
4494
        break;
4495
 
4496
      case SE:
4497
        if (value == null) {
4498
          unsetSe();
4499
        } else {
4500
          setSe((LogisticsServiceException)value);
4501
        }
4502
        break;
4503
 
4504
      }
4505
    }
4506
 
4507
    public Object getFieldValue(_Fields field) {
4508
      switch (field) {
4509
      case SUCCESS:
4510
        return getSuccess();
4511
 
4512
      case SE:
4513
        return getSe();
4514
 
4515
      }
4516
      throw new IllegalStateException();
4517
    }
4518
 
4519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4520
    public boolean isSet(_Fields field) {
4521
      if (field == null) {
4522
        throw new IllegalArgumentException();
4523
      }
4524
 
4525
      switch (field) {
4526
      case SUCCESS:
4527
        return isSetSuccess();
4528
      case SE:
4529
        return isSetSe();
4530
      }
4531
      throw new IllegalStateException();
4532
    }
4533
 
4534
    @Override
4535
    public boolean equals(Object that) {
4536
      if (that == null)
4537
        return false;
4538
      if (that instanceof getLogisticsEstimationForStore_result)
4539
        return this.equals((getLogisticsEstimationForStore_result)that);
4540
      return false;
4541
    }
4542
 
4543
    public boolean equals(getLogisticsEstimationForStore_result that) {
4544
      if (that == null)
4545
        return false;
4546
 
4547
      boolean this_present_success = true && this.isSetSuccess();
4548
      boolean that_present_success = true && that.isSetSuccess();
4549
      if (this_present_success || that_present_success) {
4550
        if (!(this_present_success && that_present_success))
4551
          return false;
4552
        if (!this.success.equals(that.success))
4553
          return false;
4554
      }
4555
 
4556
      boolean this_present_se = true && this.isSetSe();
4557
      boolean that_present_se = true && that.isSetSe();
4558
      if (this_present_se || that_present_se) {
4559
        if (!(this_present_se && that_present_se))
4560
          return false;
4561
        if (!this.se.equals(that.se))
4562
          return false;
4563
      }
4564
 
4565
      return true;
4566
    }
4567
 
4568
    @Override
4569
    public int hashCode() {
4570
      return 0;
4571
    }
4572
 
4573
    public int compareTo(getLogisticsEstimationForStore_result other) {
4574
      if (!getClass().equals(other.getClass())) {
4575
        return getClass().getName().compareTo(other.getClass().getName());
4576
      }
4577
 
4578
      int lastComparison = 0;
4579
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
4580
 
4581
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4582
      if (lastComparison != 0) {
4583
        return lastComparison;
4584
      }
4585
      if (isSetSuccess()) {
4586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4587
        if (lastComparison != 0) {
4588
          return lastComparison;
4589
        }
4590
      }
4591
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4592
      if (lastComparison != 0) {
4593
        return lastComparison;
4594
      }
4595
      if (isSetSe()) {
4596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4597
        if (lastComparison != 0) {
4598
          return lastComparison;
4599
        }
4600
      }
4601
      return 0;
4602
    }
4603
 
4604
    public _Fields fieldForId(int fieldId) {
4605
      return _Fields.findByThriftId(fieldId);
4606
    }
4607
 
4608
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4609
      org.apache.thrift.protocol.TField field;
4610
      iprot.readStructBegin();
4611
      while (true)
4612
      {
4613
        field = iprot.readFieldBegin();
4614
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4615
          break;
4616
        }
4617
        switch (field.id) {
4618
          case 0: // SUCCESS
4619
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4620
              this.success = new LogisticsInfo();
4621
              this.success.read(iprot);
4622
            } else { 
4623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4624
            }
4625
            break;
4626
          case 1: // SE
4627
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4628
              this.se = new LogisticsServiceException();
4629
              this.se.read(iprot);
4630
            } else { 
4631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4632
            }
4633
            break;
4634
          default:
4635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4636
        }
4637
        iprot.readFieldEnd();
4638
      }
4639
      iprot.readStructEnd();
4640
      validate();
4641
    }
4642
 
4643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4644
      oprot.writeStructBegin(STRUCT_DESC);
4645
 
4646
      if (this.isSetSuccess()) {
4647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4648
        this.success.write(oprot);
4649
        oprot.writeFieldEnd();
4650
      } else if (this.isSetSe()) {
4651
        oprot.writeFieldBegin(SE_FIELD_DESC);
4652
        this.se.write(oprot);
4653
        oprot.writeFieldEnd();
4654
      }
4655
      oprot.writeFieldStop();
4656
      oprot.writeStructEnd();
4657
    }
4658
 
4659
    @Override
4660
    public String toString() {
4661
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
4662
      boolean first = true;
4663
 
4664
      sb.append("success:");
4665
      if (this.success == null) {
4666
        sb.append("null");
4667
      } else {
4668
        sb.append(this.success);
4669
      }
4670
      first = false;
4671
      if (!first) sb.append(", ");
4672
      sb.append("se:");
4673
      if (this.se == null) {
4674
        sb.append("null");
4675
      } else {
4676
        sb.append(this.se);
4677
      }
4678
      first = false;
4679
      sb.append(")");
4680
      return sb.toString();
4681
    }
4682
 
4683
    public void validate() throws org.apache.thrift.TException {
4684
      // check for required fields
4685
    }
4686
 
4687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4688
      try {
4689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4690
      } catch (org.apache.thrift.TException te) {
4691
        throw new java.io.IOException(te);
4692
      }
4693
    }
4694
 
4695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4696
      try {
4697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4698
      } catch (org.apache.thrift.TException te) {
4699
        throw new java.io.IOException(te);
4700
      }
4701
    }
4702
 
4703
  }
4704
 
3430 rajveer 4705
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
4706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 4707
 
3430 rajveer 4708
    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);
4709
    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);
4710
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
5766 rajveer 4711
    private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I32, (short)4);
471 rajveer 4712
 
3430 rajveer 4713
    private String destination_pincode; // required
4714
    private long item_id; // required
4715
    private DeliveryType type; // required
5766 rajveer 4716
    private PickUpType pickUp; // required
471 rajveer 4717
 
4718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4720
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 4721
      ITEM_ID((short)2, "item_id"),
4722
      /**
4723
       * 
4724
       * @see DeliveryType
4725
       */
5766 rajveer 4726
      TYPE((short)3, "type"),
4727
      /**
4728
       * 
4729
       * @see PickUpType
4730
       */
4731
      PICK_UP((short)4, "pickUp");
471 rajveer 4732
 
4733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4734
 
4735
      static {
4736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4737
          byName.put(field.getFieldName(), field);
4738
        }
4739
      }
4740
 
4741
      /**
4742
       * Find the _Fields constant that matches fieldId, or null if its not found.
4743
       */
4744
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4745
        switch(fieldId) {
4746
          case 1: // DESTINATION_PINCODE
4747
            return DESTINATION_PINCODE;
4748
          case 2: // ITEM_ID
4749
            return ITEM_ID;
4750
          case 3: // TYPE
4751
            return TYPE;
5766 rajveer 4752
          case 4: // PICK_UP
4753
            return PICK_UP;
3430 rajveer 4754
          default:
4755
            return null;
4756
        }
471 rajveer 4757
      }
4758
 
4759
      /**
4760
       * Find the _Fields constant that matches fieldId, throwing an exception
4761
       * if it is not found.
4762
       */
4763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4764
        _Fields fields = findByThriftId(fieldId);
4765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4766
        return fields;
4767
      }
4768
 
4769
      /**
4770
       * Find the _Fields constant that matches name, or null if its not found.
4771
       */
4772
      public static _Fields findByName(String name) {
4773
        return byName.get(name);
4774
      }
4775
 
4776
      private final short _thriftId;
4777
      private final String _fieldName;
4778
 
4779
      _Fields(short thriftId, String fieldName) {
4780
        _thriftId = thriftId;
4781
        _fieldName = fieldName;
4782
      }
4783
 
4784
      public short getThriftFieldId() {
4785
        return _thriftId;
4786
      }
4787
 
4788
      public String getFieldName() {
4789
        return _fieldName;
4790
      }
4791
    }
4792
 
4793
    // isset id assignments
715 rajveer 4794
    private static final int __ITEM_ID_ISSET_ID = 0;
4795
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 4796
 
3430 rajveer 4797
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 4798
    static {
3430 rajveer 4799
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4800
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4802
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4804
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4805
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 4806
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4807
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 4808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 4810
    }
4811
 
648 chandransh 4812
    public getLogisticsInfo_args() {
477 rajveer 4813
    }
4814
 
648 chandransh 4815
    public getLogisticsInfo_args(
4816
      String destination_pincode,
3044 chandransh 4817
      long item_id,
5766 rajveer 4818
      DeliveryType type,
4819
      PickUpType pickUp)
477 rajveer 4820
    {
4821
      this();
648 chandransh 4822
      this.destination_pincode = destination_pincode;
4823
      this.item_id = item_id;
715 rajveer 4824
      setItem_idIsSet(true);
3044 chandransh 4825
      this.type = type;
5766 rajveer 4826
      this.pickUp = pickUp;
477 rajveer 4827
    }
4828
 
4829
    /**
4830
     * Performs a deep copy on <i>other</i>.
4831
     */
648 chandransh 4832
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 4833
      __isset_bit_vector.clear();
4834
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4835
      if (other.isSetDestination_pincode()) {
4836
        this.destination_pincode = other.destination_pincode;
477 rajveer 4837
      }
715 rajveer 4838
      this.item_id = other.item_id;
3044 chandransh 4839
      if (other.isSetType()) {
4840
        this.type = other.type;
4841
      }
5766 rajveer 4842
      if (other.isSetPickUp()) {
4843
        this.pickUp = other.pickUp;
4844
      }
477 rajveer 4845
    }
4846
 
648 chandransh 4847
    public getLogisticsInfo_args deepCopy() {
4848
      return new getLogisticsInfo_args(this);
477 rajveer 4849
    }
4850
 
3430 rajveer 4851
    @Override
4852
    public void clear() {
4853
      this.destination_pincode = null;
4854
      setItem_idIsSet(false);
4855
      this.item_id = 0;
4856
      this.type = null;
5766 rajveer 4857
      this.pickUp = null;
477 rajveer 4858
    }
4859
 
648 chandransh 4860
    public String getDestination_pincode() {
4861
      return this.destination_pincode;
477 rajveer 4862
    }
4863
 
3430 rajveer 4864
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 4865
      this.destination_pincode = destination_pincode;
477 rajveer 4866
    }
4867
 
648 chandransh 4868
    public void unsetDestination_pincode() {
4869
      this.destination_pincode = null;
477 rajveer 4870
    }
4871
 
3430 rajveer 4872
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 4873
    public boolean isSetDestination_pincode() {
4874
      return this.destination_pincode != null;
477 rajveer 4875
    }
4876
 
648 chandransh 4877
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 4878
      if (!value) {
648 chandransh 4879
        this.destination_pincode = null;
477 rajveer 4880
      }
4881
    }
4882
 
715 rajveer 4883
    public long getItem_id() {
648 chandransh 4884
      return this.item_id;
477 rajveer 4885
    }
4886
 
3430 rajveer 4887
    public void setItem_id(long item_id) {
648 chandransh 4888
      this.item_id = item_id;
715 rajveer 4889
      setItem_idIsSet(true);
477 rajveer 4890
    }
4891
 
648 chandransh 4892
    public void unsetItem_id() {
715 rajveer 4893
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 4894
    }
4895
 
3430 rajveer 4896
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 4897
    public boolean isSetItem_id() {
715 rajveer 4898
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 4899
    }
4900
 
648 chandransh 4901
    public void setItem_idIsSet(boolean value) {
715 rajveer 4902
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 4903
    }
4904
 
3044 chandransh 4905
    /**
4906
     * 
4907
     * @see DeliveryType
4908
     */
4909
    public DeliveryType getType() {
4910
      return this.type;
4911
    }
4912
 
4913
    /**
4914
     * 
4915
     * @see DeliveryType
4916
     */
3430 rajveer 4917
    public void setType(DeliveryType type) {
3044 chandransh 4918
      this.type = type;
4919
    }
4920
 
4921
    public void unsetType() {
4922
      this.type = null;
4923
    }
4924
 
3430 rajveer 4925
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 4926
    public boolean isSetType() {
4927
      return this.type != null;
4928
    }
4929
 
4930
    public void setTypeIsSet(boolean value) {
4931
      if (!value) {
4932
        this.type = null;
4933
      }
4934
    }
4935
 
5766 rajveer 4936
    /**
4937
     * 
4938
     * @see PickUpType
4939
     */
4940
    public PickUpType getPickUp() {
4941
      return this.pickUp;
4942
    }
4943
 
4944
    /**
4945
     * 
4946
     * @see PickUpType
4947
     */
4948
    public void setPickUp(PickUpType pickUp) {
4949
      this.pickUp = pickUp;
4950
    }
4951
 
4952
    public void unsetPickUp() {
4953
      this.pickUp = null;
4954
    }
4955
 
4956
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
4957
    public boolean isSetPickUp() {
4958
      return this.pickUp != null;
4959
    }
4960
 
4961
    public void setPickUpIsSet(boolean value) {
4962
      if (!value) {
4963
        this.pickUp = null;
4964
      }
4965
    }
4966
 
477 rajveer 4967
    public void setFieldValue(_Fields field, Object value) {
4968
      switch (field) {
648 chandransh 4969
      case DESTINATION_PINCODE:
477 rajveer 4970
        if (value == null) {
648 chandransh 4971
          unsetDestination_pincode();
477 rajveer 4972
        } else {
648 chandransh 4973
          setDestination_pincode((String)value);
477 rajveer 4974
        }
4975
        break;
4976
 
648 chandransh 4977
      case ITEM_ID:
477 rajveer 4978
        if (value == null) {
648 chandransh 4979
          unsetItem_id();
477 rajveer 4980
        } else {
715 rajveer 4981
          setItem_id((Long)value);
477 rajveer 4982
        }
4983
        break;
4984
 
3044 chandransh 4985
      case TYPE:
4986
        if (value == null) {
4987
          unsetType();
4988
        } else {
4989
          setType((DeliveryType)value);
4990
        }
4991
        break;
4992
 
5766 rajveer 4993
      case PICK_UP:
4994
        if (value == null) {
4995
          unsetPickUp();
4996
        } else {
4997
          setPickUp((PickUpType)value);
4998
        }
4999
        break;
5000
 
477 rajveer 5001
      }
5002
    }
5003
 
5004
    public Object getFieldValue(_Fields field) {
5005
      switch (field) {
648 chandransh 5006
      case DESTINATION_PINCODE:
5007
        return getDestination_pincode();
477 rajveer 5008
 
648 chandransh 5009
      case ITEM_ID:
3430 rajveer 5010
        return Long.valueOf(getItem_id());
477 rajveer 5011
 
3044 chandransh 5012
      case TYPE:
5013
        return getType();
5014
 
5766 rajveer 5015
      case PICK_UP:
5016
        return getPickUp();
5017
 
477 rajveer 5018
      }
5019
      throw new IllegalStateException();
5020
    }
5021
 
3430 rajveer 5022
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5023
    public boolean isSet(_Fields field) {
5024
      if (field == null) {
5025
        throw new IllegalArgumentException();
5026
      }
477 rajveer 5027
 
5028
      switch (field) {
648 chandransh 5029
      case DESTINATION_PINCODE:
5030
        return isSetDestination_pincode();
5031
      case ITEM_ID:
5032
        return isSetItem_id();
3044 chandransh 5033
      case TYPE:
5034
        return isSetType();
5766 rajveer 5035
      case PICK_UP:
5036
        return isSetPickUp();
477 rajveer 5037
      }
5038
      throw new IllegalStateException();
5039
    }
5040
 
5041
    @Override
5042
    public boolean equals(Object that) {
5043
      if (that == null)
5044
        return false;
648 chandransh 5045
      if (that instanceof getLogisticsInfo_args)
5046
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5047
      return false;
5048
    }
5049
 
648 chandransh 5050
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5051
      if (that == null)
5052
        return false;
5053
 
648 chandransh 5054
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5055
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5056
      if (this_present_destination_pincode || that_present_destination_pincode) {
5057
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5058
          return false;
648 chandransh 5059
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5060
          return false;
5061
      }
5062
 
715 rajveer 5063
      boolean this_present_item_id = true;
5064
      boolean that_present_item_id = true;
648 chandransh 5065
      if (this_present_item_id || that_present_item_id) {
5066
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5067
          return false;
715 rajveer 5068
        if (this.item_id != that.item_id)
477 rajveer 5069
          return false;
5070
      }
5071
 
3044 chandransh 5072
      boolean this_present_type = true && this.isSetType();
5073
      boolean that_present_type = true && that.isSetType();
5074
      if (this_present_type || that_present_type) {
5075
        if (!(this_present_type && that_present_type))
5076
          return false;
5077
        if (!this.type.equals(that.type))
5078
          return false;
5079
      }
5080
 
5766 rajveer 5081
      boolean this_present_pickUp = true && this.isSetPickUp();
5082
      boolean that_present_pickUp = true && that.isSetPickUp();
5083
      if (this_present_pickUp || that_present_pickUp) {
5084
        if (!(this_present_pickUp && that_present_pickUp))
5085
          return false;
5086
        if (!this.pickUp.equals(that.pickUp))
5087
          return false;
5088
      }
5089
 
477 rajveer 5090
      return true;
5091
    }
5092
 
5093
    @Override
5094
    public int hashCode() {
5095
      return 0;
5096
    }
5097
 
648 chandransh 5098
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5099
      if (!getClass().equals(other.getClass())) {
5100
        return getClass().getName().compareTo(other.getClass().getName());
5101
      }
5102
 
5103
      int lastComparison = 0;
648 chandransh 5104
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5105
 
3430 rajveer 5106
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5107
      if (lastComparison != 0) {
5108
        return lastComparison;
5109
      }
3430 rajveer 5110
      if (isSetDestination_pincode()) {
5111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5112
        if (lastComparison != 0) {
5113
          return lastComparison;
5114
        }
477 rajveer 5115
      }
3430 rajveer 5116
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5117
      if (lastComparison != 0) {
5118
        return lastComparison;
5119
      }
3430 rajveer 5120
      if (isSetItem_id()) {
5121
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5122
        if (lastComparison != 0) {
5123
          return lastComparison;
5124
        }
477 rajveer 5125
      }
3430 rajveer 5126
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5127
      if (lastComparison != 0) {
5128
        return lastComparison;
5129
      }
3430 rajveer 5130
      if (isSetType()) {
5131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5132
        if (lastComparison != 0) {
5133
          return lastComparison;
5134
        }
3044 chandransh 5135
      }
5766 rajveer 5136
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5137
      if (lastComparison != 0) {
5138
        return lastComparison;
5139
      }
5140
      if (isSetPickUp()) {
5141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5142
        if (lastComparison != 0) {
5143
          return lastComparison;
5144
        }
5145
      }
477 rajveer 5146
      return 0;
5147
    }
5148
 
3430 rajveer 5149
    public _Fields fieldForId(int fieldId) {
5150
      return _Fields.findByThriftId(fieldId);
5151
    }
5152
 
5153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5154
      org.apache.thrift.protocol.TField field;
477 rajveer 5155
      iprot.readStructBegin();
5156
      while (true)
5157
      {
5158
        field = iprot.readFieldBegin();
3430 rajveer 5159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5160
          break;
5161
        }
3430 rajveer 5162
        switch (field.id) {
5163
          case 1: // DESTINATION_PINCODE
5164
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5165
              this.destination_pincode = iprot.readString();
5166
            } else { 
5167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5168
            }
5169
            break;
5170
          case 2: // ITEM_ID
5171
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5172
              this.item_id = iprot.readI64();
5173
              setItem_idIsSet(true);
5174
            } else { 
5175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5176
            }
5177
            break;
5178
          case 3: // TYPE
5179
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5180
              this.type = DeliveryType.findByValue(iprot.readI32());
5181
            } else { 
5182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5183
            }
5184
            break;
5766 rajveer 5185
          case 4: // PICK_UP
5186
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5187
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5188
            } else { 
5189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5190
            }
5191
            break;
3430 rajveer 5192
          default:
5193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5194
        }
3430 rajveer 5195
        iprot.readFieldEnd();
477 rajveer 5196
      }
5197
      iprot.readStructEnd();
5198
      validate();
5199
    }
5200
 
3430 rajveer 5201
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5202
      validate();
5203
 
5204
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5205
      if (this.destination_pincode != null) {
5206
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5207
        oprot.writeString(this.destination_pincode);
477 rajveer 5208
        oprot.writeFieldEnd();
5209
      }
715 rajveer 5210
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5211
      oprot.writeI64(this.item_id);
5212
      oprot.writeFieldEnd();
3044 chandransh 5213
      if (this.type != null) {
5214
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5215
        oprot.writeI32(this.type.getValue());
5216
        oprot.writeFieldEnd();
5217
      }
5766 rajveer 5218
      if (this.pickUp != null) {
5219
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5220
        oprot.writeI32(this.pickUp.getValue());
5221
        oprot.writeFieldEnd();
5222
      }
477 rajveer 5223
      oprot.writeFieldStop();
5224
      oprot.writeStructEnd();
5225
    }
5226
 
5227
    @Override
5228
    public String toString() {
648 chandransh 5229
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5230
      boolean first = true;
5231
 
648 chandransh 5232
      sb.append("destination_pincode:");
5233
      if (this.destination_pincode == null) {
477 rajveer 5234
        sb.append("null");
5235
      } else {
648 chandransh 5236
        sb.append(this.destination_pincode);
477 rajveer 5237
      }
5238
      first = false;
5239
      if (!first) sb.append(", ");
648 chandransh 5240
      sb.append("item_id:");
715 rajveer 5241
      sb.append(this.item_id);
477 rajveer 5242
      first = false;
3044 chandransh 5243
      if (!first) sb.append(", ");
5244
      sb.append("type:");
5245
      if (this.type == null) {
5246
        sb.append("null");
5247
      } else {
5248
        sb.append(this.type);
5249
      }
5250
      first = false;
5766 rajveer 5251
      if (!first) sb.append(", ");
5252
      sb.append("pickUp:");
5253
      if (this.pickUp == null) {
5254
        sb.append("null");
5255
      } else {
5256
        sb.append(this.pickUp);
5257
      }
5258
      first = false;
477 rajveer 5259
      sb.append(")");
5260
      return sb.toString();
5261
    }
5262
 
3430 rajveer 5263
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5264
      // check for required fields
5265
    }
5266
 
3430 rajveer 5267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5268
      try {
5269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5270
      } catch (org.apache.thrift.TException te) {
5271
        throw new java.io.IOException(te);
5272
      }
5273
    }
5274
 
5275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5276
      try {
5277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5278
      } catch (org.apache.thrift.TException te) {
5279
        throw new java.io.IOException(te);
5280
      }
5281
    }
5282
 
477 rajveer 5283
  }
5284
 
3430 rajveer 5285
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5287
 
3430 rajveer 5288
    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);
5289
    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 5290
 
3430 rajveer 5291
    private LogisticsInfo success; // required
5292
    private LogisticsServiceException se; // required
477 rajveer 5293
 
5294
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5295
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5296
      SUCCESS((short)0, "success"),
5297
      SE((short)1, "se");
477 rajveer 5298
 
5299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5300
 
5301
      static {
5302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5303
          byName.put(field.getFieldName(), field);
5304
        }
5305
      }
5306
 
5307
      /**
5308
       * Find the _Fields constant that matches fieldId, or null if its not found.
5309
       */
5310
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5311
        switch(fieldId) {
5312
          case 0: // SUCCESS
5313
            return SUCCESS;
5314
          case 1: // SE
5315
            return SE;
5316
          default:
5317
            return null;
5318
        }
477 rajveer 5319
      }
5320
 
5321
      /**
5322
       * Find the _Fields constant that matches fieldId, throwing an exception
5323
       * if it is not found.
5324
       */
5325
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5326
        _Fields fields = findByThriftId(fieldId);
5327
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5328
        return fields;
5329
      }
5330
 
5331
      /**
5332
       * Find the _Fields constant that matches name, or null if its not found.
5333
       */
5334
      public static _Fields findByName(String name) {
5335
        return byName.get(name);
5336
      }
5337
 
5338
      private final short _thriftId;
5339
      private final String _fieldName;
5340
 
5341
      _Fields(short thriftId, String fieldName) {
5342
        _thriftId = thriftId;
5343
        _fieldName = fieldName;
5344
      }
5345
 
5346
      public short getThriftFieldId() {
5347
        return _thriftId;
5348
      }
5349
 
5350
      public String getFieldName() {
5351
        return _fieldName;
5352
      }
5353
    }
5354
 
412 ashish 5355
    // isset id assignments
5356
 
3430 rajveer 5357
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5358
    static {
3430 rajveer 5359
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5360
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5361
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5362
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5364
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5365
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5366
    }
5367
 
648 chandransh 5368
    public getLogisticsInfo_result() {
412 ashish 5369
    }
5370
 
648 chandransh 5371
    public getLogisticsInfo_result(
5372
      LogisticsInfo success,
5373
      LogisticsServiceException se)
412 ashish 5374
    {
5375
      this();
648 chandransh 5376
      this.success = success;
5377
      this.se = se;
412 ashish 5378
    }
5379
 
5380
    /**
5381
     * Performs a deep copy on <i>other</i>.
5382
     */
648 chandransh 5383
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5384
      if (other.isSetSuccess()) {
5385
        this.success = new LogisticsInfo(other.success);
412 ashish 5386
      }
648 chandransh 5387
      if (other.isSetSe()) {
5388
        this.se = new LogisticsServiceException(other.se);
5389
      }
412 ashish 5390
    }
5391
 
648 chandransh 5392
    public getLogisticsInfo_result deepCopy() {
5393
      return new getLogisticsInfo_result(this);
412 ashish 5394
    }
5395
 
3430 rajveer 5396
    @Override
5397
    public void clear() {
5398
      this.success = null;
5399
      this.se = null;
412 ashish 5400
    }
5401
 
648 chandransh 5402
    public LogisticsInfo getSuccess() {
5403
      return this.success;
412 ashish 5404
    }
5405
 
3430 rajveer 5406
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5407
      this.success = success;
412 ashish 5408
    }
5409
 
648 chandransh 5410
    public void unsetSuccess() {
5411
      this.success = null;
412 ashish 5412
    }
5413
 
3430 rajveer 5414
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5415
    public boolean isSetSuccess() {
5416
      return this.success != null;
412 ashish 5417
    }
5418
 
648 chandransh 5419
    public void setSuccessIsSet(boolean value) {
412 ashish 5420
      if (!value) {
648 chandransh 5421
        this.success = null;
412 ashish 5422
      }
5423
    }
5424
 
648 chandransh 5425
    public LogisticsServiceException getSe() {
5426
      return this.se;
412 ashish 5427
    }
5428
 
3430 rajveer 5429
    public void setSe(LogisticsServiceException se) {
648 chandransh 5430
      this.se = se;
412 ashish 5431
    }
5432
 
648 chandransh 5433
    public void unsetSe() {
5434
      this.se = null;
412 ashish 5435
    }
5436
 
3430 rajveer 5437
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5438
    public boolean isSetSe() {
5439
      return this.se != null;
412 ashish 5440
    }
5441
 
648 chandransh 5442
    public void setSeIsSet(boolean value) {
5443
      if (!value) {
5444
        this.se = null;
5445
      }
412 ashish 5446
    }
5447
 
5448
    public void setFieldValue(_Fields field, Object value) {
5449
      switch (field) {
648 chandransh 5450
      case SUCCESS:
412 ashish 5451
        if (value == null) {
648 chandransh 5452
          unsetSuccess();
412 ashish 5453
        } else {
648 chandransh 5454
          setSuccess((LogisticsInfo)value);
412 ashish 5455
        }
5456
        break;
5457
 
648 chandransh 5458
      case SE:
412 ashish 5459
        if (value == null) {
648 chandransh 5460
          unsetSe();
412 ashish 5461
        } else {
648 chandransh 5462
          setSe((LogisticsServiceException)value);
412 ashish 5463
        }
5464
        break;
5465
 
5466
      }
5467
    }
5468
 
5469
    public Object getFieldValue(_Fields field) {
5470
      switch (field) {
648 chandransh 5471
      case SUCCESS:
5472
        return getSuccess();
412 ashish 5473
 
648 chandransh 5474
      case SE:
5475
        return getSe();
412 ashish 5476
 
5477
      }
5478
      throw new IllegalStateException();
5479
    }
5480
 
3430 rajveer 5481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5482
    public boolean isSet(_Fields field) {
5483
      if (field == null) {
5484
        throw new IllegalArgumentException();
5485
      }
412 ashish 5486
 
5487
      switch (field) {
648 chandransh 5488
      case SUCCESS:
5489
        return isSetSuccess();
5490
      case SE:
5491
        return isSetSe();
412 ashish 5492
      }
5493
      throw new IllegalStateException();
5494
    }
5495
 
5496
    @Override
5497
    public boolean equals(Object that) {
5498
      if (that == null)
5499
        return false;
648 chandransh 5500
      if (that instanceof getLogisticsInfo_result)
5501
        return this.equals((getLogisticsInfo_result)that);
412 ashish 5502
      return false;
5503
    }
5504
 
648 chandransh 5505
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 5506
      if (that == null)
5507
        return false;
5508
 
648 chandransh 5509
      boolean this_present_success = true && this.isSetSuccess();
5510
      boolean that_present_success = true && that.isSetSuccess();
5511
      if (this_present_success || that_present_success) {
5512
        if (!(this_present_success && that_present_success))
412 ashish 5513
          return false;
648 chandransh 5514
        if (!this.success.equals(that.success))
412 ashish 5515
          return false;
5516
      }
5517
 
648 chandransh 5518
      boolean this_present_se = true && this.isSetSe();
5519
      boolean that_present_se = true && that.isSetSe();
5520
      if (this_present_se || that_present_se) {
5521
        if (!(this_present_se && that_present_se))
412 ashish 5522
          return false;
648 chandransh 5523
        if (!this.se.equals(that.se))
412 ashish 5524
          return false;
5525
      }
5526
 
5527
      return true;
5528
    }
5529
 
5530
    @Override
5531
    public int hashCode() {
5532
      return 0;
5533
    }
5534
 
648 chandransh 5535
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 5536
      if (!getClass().equals(other.getClass())) {
5537
        return getClass().getName().compareTo(other.getClass().getName());
5538
      }
5539
 
5540
      int lastComparison = 0;
648 chandransh 5541
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 5542
 
3430 rajveer 5543
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5544
      if (lastComparison != 0) {
5545
        return lastComparison;
5546
      }
3430 rajveer 5547
      if (isSetSuccess()) {
5548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5549
        if (lastComparison != 0) {
5550
          return lastComparison;
5551
        }
412 ashish 5552
      }
3430 rajveer 5553
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5554
      if (lastComparison != 0) {
5555
        return lastComparison;
5556
      }
3430 rajveer 5557
      if (isSetSe()) {
5558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5559
        if (lastComparison != 0) {
5560
          return lastComparison;
5561
        }
412 ashish 5562
      }
5563
      return 0;
5564
    }
5565
 
3430 rajveer 5566
    public _Fields fieldForId(int fieldId) {
5567
      return _Fields.findByThriftId(fieldId);
5568
    }
5569
 
5570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5571
      org.apache.thrift.protocol.TField field;
412 ashish 5572
      iprot.readStructBegin();
5573
      while (true)
5574
      {
5575
        field = iprot.readFieldBegin();
3430 rajveer 5576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5577
          break;
5578
        }
3430 rajveer 5579
        switch (field.id) {
5580
          case 0: // SUCCESS
5581
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5582
              this.success = new LogisticsInfo();
5583
              this.success.read(iprot);
5584
            } else { 
5585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5586
            }
5587
            break;
5588
          case 1: // SE
5589
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5590
              this.se = new LogisticsServiceException();
5591
              this.se.read(iprot);
5592
            } else { 
5593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5594
            }
5595
            break;
5596
          default:
5597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5598
        }
3430 rajveer 5599
        iprot.readFieldEnd();
412 ashish 5600
      }
5601
      iprot.readStructEnd();
5602
      validate();
5603
    }
5604
 
3430 rajveer 5605
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 5606
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 5607
 
648 chandransh 5608
      if (this.isSetSuccess()) {
5609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5610
        this.success.write(oprot);
412 ashish 5611
        oprot.writeFieldEnd();
648 chandransh 5612
      } else if (this.isSetSe()) {
5613
        oprot.writeFieldBegin(SE_FIELD_DESC);
5614
        this.se.write(oprot);
5615
        oprot.writeFieldEnd();
412 ashish 5616
      }
5617
      oprot.writeFieldStop();
5618
      oprot.writeStructEnd();
5619
    }
5620
 
5621
    @Override
5622
    public String toString() {
648 chandransh 5623
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 5624
      boolean first = true;
5625
 
648 chandransh 5626
      sb.append("success:");
5627
      if (this.success == null) {
412 ashish 5628
        sb.append("null");
5629
      } else {
648 chandransh 5630
        sb.append(this.success);
412 ashish 5631
      }
5632
      first = false;
5633
      if (!first) sb.append(", ");
648 chandransh 5634
      sb.append("se:");
5635
      if (this.se == null) {
5636
        sb.append("null");
5637
      } else {
5638
        sb.append(this.se);
5639
      }
412 ashish 5640
      first = false;
5641
      sb.append(")");
5642
      return sb.toString();
5643
    }
5644
 
3430 rajveer 5645
    public void validate() throws org.apache.thrift.TException {
412 ashish 5646
      // check for required fields
5647
    }
5648
 
3430 rajveer 5649
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5650
      try {
5651
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5652
      } catch (org.apache.thrift.TException te) {
5653
        throw new java.io.IOException(te);
5654
      }
5655
    }
5656
 
5657
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5658
      try {
5659
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5660
      } catch (org.apache.thrift.TException te) {
5661
        throw new java.io.IOException(te);
5662
      }
5663
    }
5664
 
412 ashish 5665
  }
5666
 
3430 rajveer 5667
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
5668
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 5669
 
3430 rajveer 5670
    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 5671
    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 5672
 
3430 rajveer 5673
    private long providerId; // required
5247 rajveer 5674
    private DeliveryType type; // required
412 ashish 5675
 
5676
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5677
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 5678
      PROVIDER_ID((short)1, "providerId"),
5679
      /**
5680
       * 
5681
       * @see DeliveryType
5682
       */
5683
      TYPE((short)-1, "type");
412 ashish 5684
 
5685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5686
 
5687
      static {
5688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5689
          byName.put(field.getFieldName(), field);
5690
        }
5691
      }
5692
 
5693
      /**
5694
       * Find the _Fields constant that matches fieldId, or null if its not found.
5695
       */
5696
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5697
        switch(fieldId) {
5698
          case 1: // PROVIDER_ID
5699
            return PROVIDER_ID;
5247 rajveer 5700
          case -1: // TYPE
5701
            return TYPE;
3430 rajveer 5702
          default:
5703
            return null;
5704
        }
412 ashish 5705
      }
5706
 
5707
      /**
5708
       * Find the _Fields constant that matches fieldId, throwing an exception
5709
       * if it is not found.
5710
       */
5711
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5712
        _Fields fields = findByThriftId(fieldId);
5713
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5714
        return fields;
5715
      }
5716
 
5717
      /**
5718
       * Find the _Fields constant that matches name, or null if its not found.
5719
       */
5720
      public static _Fields findByName(String name) {
5721
        return byName.get(name);
5722
      }
5723
 
5724
      private final short _thriftId;
5725
      private final String _fieldName;
5726
 
5727
      _Fields(short thriftId, String fieldName) {
5728
        _thriftId = thriftId;
5729
        _fieldName = fieldName;
5730
      }
5731
 
5732
      public short getThriftFieldId() {
5733
        return _thriftId;
5734
      }
5735
 
5736
      public String getFieldName() {
5737
        return _fieldName;
5738
      }
5739
    }
5740
 
5741
    // isset id assignments
648 chandransh 5742
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 5743
    private BitSet __isset_bit_vector = new BitSet(1);
5744
 
3430 rajveer 5745
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5746
    static {
3430 rajveer 5747
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5748
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5749
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 5750
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5751
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 5752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 5754
    }
5755
 
5756
    public getEmptyAWB_args() {
5757
    }
5758
 
5759
    public getEmptyAWB_args(
5247 rajveer 5760
      long providerId,
5761
      DeliveryType type)
412 ashish 5762
    {
5763
      this();
648 chandransh 5764
      this.providerId = providerId;
5765
      setProviderIdIsSet(true);
5247 rajveer 5766
      this.type = type;
412 ashish 5767
    }
5768
 
5769
    /**
5770
     * Performs a deep copy on <i>other</i>.
5771
     */
5772
    public getEmptyAWB_args(getEmptyAWB_args other) {
5773
      __isset_bit_vector.clear();
5774
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5775
      this.providerId = other.providerId;
5247 rajveer 5776
      if (other.isSetType()) {
5777
        this.type = other.type;
5778
      }
412 ashish 5779
    }
5780
 
5781
    public getEmptyAWB_args deepCopy() {
5782
      return new getEmptyAWB_args(this);
5783
    }
5784
 
3430 rajveer 5785
    @Override
5786
    public void clear() {
5787
      setProviderIdIsSet(false);
5788
      this.providerId = 0;
5247 rajveer 5789
      this.type = null;
412 ashish 5790
    }
5791
 
648 chandransh 5792
    public long getProviderId() {
5793
      return this.providerId;
412 ashish 5794
    }
5795
 
3430 rajveer 5796
    public void setProviderId(long providerId) {
648 chandransh 5797
      this.providerId = providerId;
5798
      setProviderIdIsSet(true);
412 ashish 5799
    }
5800
 
648 chandransh 5801
    public void unsetProviderId() {
5802
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 5803
    }
5804
 
3430 rajveer 5805
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 5806
    public boolean isSetProviderId() {
5807
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 5808
    }
5809
 
648 chandransh 5810
    public void setProviderIdIsSet(boolean value) {
5811
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 5812
    }
5813
 
5247 rajveer 5814
    /**
5815
     * 
5816
     * @see DeliveryType
5817
     */
5818
    public DeliveryType getType() {
5819
      return this.type;
5820
    }
5821
 
5822
    /**
5823
     * 
5824
     * @see DeliveryType
5825
     */
5826
    public void setType(DeliveryType type) {
5827
      this.type = type;
5828
    }
5829
 
5830
    public void unsetType() {
5831
      this.type = null;
5832
    }
5833
 
5834
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5835
    public boolean isSetType() {
5836
      return this.type != null;
5837
    }
5838
 
5839
    public void setTypeIsSet(boolean value) {
5840
      if (!value) {
5841
        this.type = null;
5842
      }
5843
    }
5844
 
412 ashish 5845
    public void setFieldValue(_Fields field, Object value) {
5846
      switch (field) {
5847
      case PROVIDER_ID:
5848
        if (value == null) {
648 chandransh 5849
          unsetProviderId();
412 ashish 5850
        } else {
648 chandransh 5851
          setProviderId((Long)value);
412 ashish 5852
        }
5853
        break;
5854
 
5247 rajveer 5855
      case TYPE:
5856
        if (value == null) {
5857
          unsetType();
5858
        } else {
5859
          setType((DeliveryType)value);
5860
        }
5861
        break;
5862
 
412 ashish 5863
      }
5864
    }
5865
 
5866
    public Object getFieldValue(_Fields field) {
5867
      switch (field) {
5868
      case PROVIDER_ID:
3430 rajveer 5869
        return Long.valueOf(getProviderId());
412 ashish 5870
 
5247 rajveer 5871
      case TYPE:
5872
        return getType();
5873
 
412 ashish 5874
      }
5875
      throw new IllegalStateException();
5876
    }
5877
 
3430 rajveer 5878
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5879
    public boolean isSet(_Fields field) {
5880
      if (field == null) {
5881
        throw new IllegalArgumentException();
5882
      }
412 ashish 5883
 
5884
      switch (field) {
5885
      case PROVIDER_ID:
648 chandransh 5886
        return isSetProviderId();
5247 rajveer 5887
      case TYPE:
5888
        return isSetType();
412 ashish 5889
      }
5890
      throw new IllegalStateException();
5891
    }
5892
 
5893
    @Override
5894
    public boolean equals(Object that) {
5895
      if (that == null)
5896
        return false;
5897
      if (that instanceof getEmptyAWB_args)
5898
        return this.equals((getEmptyAWB_args)that);
5899
      return false;
5900
    }
5901
 
5902
    public boolean equals(getEmptyAWB_args that) {
5903
      if (that == null)
5904
        return false;
5905
 
648 chandransh 5906
      boolean this_present_providerId = true;
5907
      boolean that_present_providerId = true;
5908
      if (this_present_providerId || that_present_providerId) {
5909
        if (!(this_present_providerId && that_present_providerId))
412 ashish 5910
          return false;
648 chandransh 5911
        if (this.providerId != that.providerId)
412 ashish 5912
          return false;
5913
      }
5914
 
5247 rajveer 5915
      boolean this_present_type = true && this.isSetType();
5916
      boolean that_present_type = true && that.isSetType();
5917
      if (this_present_type || that_present_type) {
5918
        if (!(this_present_type && that_present_type))
5919
          return false;
5920
        if (!this.type.equals(that.type))
5921
          return false;
5922
      }
5923
 
412 ashish 5924
      return true;
5925
    }
5926
 
5927
    @Override
5928
    public int hashCode() {
5929
      return 0;
5930
    }
5931
 
5932
    public int compareTo(getEmptyAWB_args other) {
5933
      if (!getClass().equals(other.getClass())) {
5934
        return getClass().getName().compareTo(other.getClass().getName());
5935
      }
5936
 
5937
      int lastComparison = 0;
5938
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
5939
 
3430 rajveer 5940
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 5941
      if (lastComparison != 0) {
5942
        return lastComparison;
5943
      }
3430 rajveer 5944
      if (isSetProviderId()) {
5945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5946
        if (lastComparison != 0) {
5947
          return lastComparison;
5948
        }
412 ashish 5949
      }
5247 rajveer 5950
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
5951
      if (lastComparison != 0) {
5952
        return lastComparison;
5953
      }
5954
      if (isSetType()) {
5955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5956
        if (lastComparison != 0) {
5957
          return lastComparison;
5958
        }
5959
      }
412 ashish 5960
      return 0;
5961
    }
5962
 
3430 rajveer 5963
    public _Fields fieldForId(int fieldId) {
5964
      return _Fields.findByThriftId(fieldId);
5965
    }
5966
 
5967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5968
      org.apache.thrift.protocol.TField field;
412 ashish 5969
      iprot.readStructBegin();
5970
      while (true)
5971
      {
5972
        field = iprot.readFieldBegin();
3430 rajveer 5973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5974
          break;
5975
        }
3430 rajveer 5976
        switch (field.id) {
5977
          case 1: // PROVIDER_ID
5978
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5979
              this.providerId = iprot.readI64();
5980
              setProviderIdIsSet(true);
5981
            } else { 
5982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5983
            }
5984
            break;
5247 rajveer 5985
          case -1: // TYPE
5986
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5987
              this.type = DeliveryType.findByValue(iprot.readI32());
5988
            } else { 
5989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5990
            }
5991
            break;
3430 rajveer 5992
          default:
5993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5994
        }
3430 rajveer 5995
        iprot.readFieldEnd();
412 ashish 5996
      }
5997
      iprot.readStructEnd();
5998
      validate();
5999
    }
6000
 
3430 rajveer 6001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6002
      validate();
6003
 
6004
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6005
      if (this.type != null) {
6006
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6007
        oprot.writeI32(this.type.getValue());
6008
        oprot.writeFieldEnd();
6009
      }
412 ashish 6010
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6011
      oprot.writeI64(this.providerId);
412 ashish 6012
      oprot.writeFieldEnd();
6013
      oprot.writeFieldStop();
6014
      oprot.writeStructEnd();
6015
    }
6016
 
6017
    @Override
6018
    public String toString() {
6019
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6020
      boolean first = true;
6021
 
648 chandransh 6022
      sb.append("providerId:");
6023
      sb.append(this.providerId);
412 ashish 6024
      first = false;
5247 rajveer 6025
      if (!first) sb.append(", ");
6026
      sb.append("type:");
6027
      if (this.type == null) {
6028
        sb.append("null");
6029
      } else {
6030
        sb.append(this.type);
6031
      }
6032
      first = false;
412 ashish 6033
      sb.append(")");
6034
      return sb.toString();
6035
    }
6036
 
3430 rajveer 6037
    public void validate() throws org.apache.thrift.TException {
412 ashish 6038
      // check for required fields
6039
    }
6040
 
3430 rajveer 6041
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6042
      try {
6043
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6044
      } catch (org.apache.thrift.TException te) {
6045
        throw new java.io.IOException(te);
6046
      }
6047
    }
6048
 
6049
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6050
      try {
6051
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6052
        __isset_bit_vector = new BitSet(1);
6053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6054
      } catch (org.apache.thrift.TException te) {
6055
        throw new java.io.IOException(te);
6056
      }
6057
    }
6058
 
412 ashish 6059
  }
6060
 
3430 rajveer 6061
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6063
 
3430 rajveer 6064
    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);
6065
    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 6066
 
3430 rajveer 6067
    private String success; // required
6068
    private LogisticsServiceException se; // required
412 ashish 6069
 
6070
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6071
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6072
      SUCCESS((short)0, "success"),
6073
      SE((short)1, "se");
412 ashish 6074
 
6075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6076
 
6077
      static {
6078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6079
          byName.put(field.getFieldName(), field);
6080
        }
6081
      }
6082
 
6083
      /**
6084
       * Find the _Fields constant that matches fieldId, or null if its not found.
6085
       */
6086
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6087
        switch(fieldId) {
6088
          case 0: // SUCCESS
6089
            return SUCCESS;
6090
          case 1: // SE
6091
            return SE;
6092
          default:
6093
            return null;
6094
        }
412 ashish 6095
      }
6096
 
6097
      /**
6098
       * Find the _Fields constant that matches fieldId, throwing an exception
6099
       * if it is not found.
6100
       */
6101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6102
        _Fields fields = findByThriftId(fieldId);
6103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6104
        return fields;
6105
      }
6106
 
6107
      /**
6108
       * Find the _Fields constant that matches name, or null if its not found.
6109
       */
6110
      public static _Fields findByName(String name) {
6111
        return byName.get(name);
6112
      }
6113
 
6114
      private final short _thriftId;
6115
      private final String _fieldName;
6116
 
6117
      _Fields(short thriftId, String fieldName) {
6118
        _thriftId = thriftId;
6119
        _fieldName = fieldName;
6120
      }
6121
 
6122
      public short getThriftFieldId() {
6123
        return _thriftId;
6124
      }
6125
 
6126
      public String getFieldName() {
6127
        return _fieldName;
6128
      }
6129
    }
6130
 
6131
    // isset id assignments
6132
 
3430 rajveer 6133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6134
    static {
3430 rajveer 6135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6136
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6138
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6140
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6141
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6142
    }
6143
 
6144
    public getEmptyAWB_result() {
6145
    }
6146
 
6147
    public getEmptyAWB_result(
648 chandransh 6148
      String success,
6149
      LogisticsServiceException se)
412 ashish 6150
    {
6151
      this();
6152
      this.success = success;
648 chandransh 6153
      this.se = se;
412 ashish 6154
    }
6155
 
6156
    /**
6157
     * Performs a deep copy on <i>other</i>.
6158
     */
6159
    public getEmptyAWB_result(getEmptyAWB_result other) {
6160
      if (other.isSetSuccess()) {
6161
        this.success = other.success;
6162
      }
648 chandransh 6163
      if (other.isSetSe()) {
6164
        this.se = new LogisticsServiceException(other.se);
6165
      }
412 ashish 6166
    }
6167
 
6168
    public getEmptyAWB_result deepCopy() {
6169
      return new getEmptyAWB_result(this);
6170
    }
6171
 
3430 rajveer 6172
    @Override
6173
    public void clear() {
6174
      this.success = null;
6175
      this.se = null;
412 ashish 6176
    }
6177
 
6178
    public String getSuccess() {
6179
      return this.success;
6180
    }
6181
 
3430 rajveer 6182
    public void setSuccess(String success) {
412 ashish 6183
      this.success = success;
6184
    }
6185
 
6186
    public void unsetSuccess() {
6187
      this.success = null;
6188
    }
6189
 
3430 rajveer 6190
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6191
    public boolean isSetSuccess() {
6192
      return this.success != null;
6193
    }
6194
 
6195
    public void setSuccessIsSet(boolean value) {
6196
      if (!value) {
6197
        this.success = null;
6198
      }
6199
    }
6200
 
648 chandransh 6201
    public LogisticsServiceException getSe() {
6202
      return this.se;
412 ashish 6203
    }
6204
 
3430 rajveer 6205
    public void setSe(LogisticsServiceException se) {
648 chandransh 6206
      this.se = se;
412 ashish 6207
    }
6208
 
648 chandransh 6209
    public void unsetSe() {
6210
      this.se = null;
412 ashish 6211
    }
6212
 
3430 rajveer 6213
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6214
    public boolean isSetSe() {
6215
      return this.se != null;
412 ashish 6216
    }
6217
 
648 chandransh 6218
    public void setSeIsSet(boolean value) {
412 ashish 6219
      if (!value) {
648 chandransh 6220
        this.se = null;
412 ashish 6221
      }
6222
    }
6223
 
6224
    public void setFieldValue(_Fields field, Object value) {
6225
      switch (field) {
6226
      case SUCCESS:
6227
        if (value == null) {
6228
          unsetSuccess();
6229
        } else {
648 chandransh 6230
          setSuccess((String)value);
412 ashish 6231
        }
6232
        break;
6233
 
648 chandransh 6234
      case SE:
6235
        if (value == null) {
6236
          unsetSe();
6237
        } else {
6238
          setSe((LogisticsServiceException)value);
6239
        }
6240
        break;
6241
 
412 ashish 6242
      }
6243
    }
6244
 
6245
    public Object getFieldValue(_Fields field) {
6246
      switch (field) {
6247
      case SUCCESS:
6248
        return getSuccess();
6249
 
648 chandransh 6250
      case SE:
6251
        return getSe();
6252
 
412 ashish 6253
      }
6254
      throw new IllegalStateException();
6255
    }
6256
 
3430 rajveer 6257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6258
    public boolean isSet(_Fields field) {
6259
      if (field == null) {
6260
        throw new IllegalArgumentException();
6261
      }
412 ashish 6262
 
6263
      switch (field) {
6264
      case SUCCESS:
6265
        return isSetSuccess();
648 chandransh 6266
      case SE:
6267
        return isSetSe();
412 ashish 6268
      }
6269
      throw new IllegalStateException();
6270
    }
6271
 
6272
    @Override
6273
    public boolean equals(Object that) {
6274
      if (that == null)
6275
        return false;
648 chandransh 6276
      if (that instanceof getEmptyAWB_result)
6277
        return this.equals((getEmptyAWB_result)that);
412 ashish 6278
      return false;
6279
    }
6280
 
648 chandransh 6281
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6282
      if (that == null)
6283
        return false;
6284
 
6285
      boolean this_present_success = true && this.isSetSuccess();
6286
      boolean that_present_success = true && that.isSetSuccess();
6287
      if (this_present_success || that_present_success) {
6288
        if (!(this_present_success && that_present_success))
6289
          return false;
6290
        if (!this.success.equals(that.success))
6291
          return false;
6292
      }
6293
 
648 chandransh 6294
      boolean this_present_se = true && this.isSetSe();
6295
      boolean that_present_se = true && that.isSetSe();
6296
      if (this_present_se || that_present_se) {
6297
        if (!(this_present_se && that_present_se))
6298
          return false;
6299
        if (!this.se.equals(that.se))
6300
          return false;
6301
      }
6302
 
412 ashish 6303
      return true;
6304
    }
6305
 
6306
    @Override
6307
    public int hashCode() {
6308
      return 0;
6309
    }
6310
 
648 chandransh 6311
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6312
      if (!getClass().equals(other.getClass())) {
6313
        return getClass().getName().compareTo(other.getClass().getName());
6314
      }
6315
 
6316
      int lastComparison = 0;
648 chandransh 6317
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6318
 
3430 rajveer 6319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6320
      if (lastComparison != 0) {
6321
        return lastComparison;
6322
      }
3430 rajveer 6323
      if (isSetSuccess()) {
6324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6325
        if (lastComparison != 0) {
6326
          return lastComparison;
6327
        }
412 ashish 6328
      }
3430 rajveer 6329
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6330
      if (lastComparison != 0) {
6331
        return lastComparison;
6332
      }
3430 rajveer 6333
      if (isSetSe()) {
6334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6335
        if (lastComparison != 0) {
6336
          return lastComparison;
6337
        }
412 ashish 6338
      }
6339
      return 0;
6340
    }
6341
 
3430 rajveer 6342
    public _Fields fieldForId(int fieldId) {
6343
      return _Fields.findByThriftId(fieldId);
6344
    }
6345
 
6346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6347
      org.apache.thrift.protocol.TField field;
412 ashish 6348
      iprot.readStructBegin();
6349
      while (true)
6350
      {
6351
        field = iprot.readFieldBegin();
3430 rajveer 6352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6353
          break;
6354
        }
3430 rajveer 6355
        switch (field.id) {
6356
          case 0: // SUCCESS
6357
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6358
              this.success = iprot.readString();
6359
            } else { 
6360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6361
            }
6362
            break;
6363
          case 1: // SE
6364
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6365
              this.se = new LogisticsServiceException();
6366
              this.se.read(iprot);
6367
            } else { 
6368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6369
            }
6370
            break;
6371
          default:
6372
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6373
        }
3430 rajveer 6374
        iprot.readFieldEnd();
412 ashish 6375
      }
6376
      iprot.readStructEnd();
6377
      validate();
6378
    }
6379
 
3430 rajveer 6380
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6381
      oprot.writeStructBegin(STRUCT_DESC);
6382
 
6383
      if (this.isSetSuccess()) {
6384
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6385
        oprot.writeString(this.success);
412 ashish 6386
        oprot.writeFieldEnd();
648 chandransh 6387
      } else if (this.isSetSe()) {
6388
        oprot.writeFieldBegin(SE_FIELD_DESC);
6389
        this.se.write(oprot);
6390
        oprot.writeFieldEnd();
412 ashish 6391
      }
6392
      oprot.writeFieldStop();
6393
      oprot.writeStructEnd();
6394
    }
6395
 
6396
    @Override
6397
    public String toString() {
648 chandransh 6398
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6399
      boolean first = true;
6400
 
6401
      sb.append("success:");
6402
      if (this.success == null) {
6403
        sb.append("null");
6404
      } else {
6405
        sb.append(this.success);
6406
      }
6407
      first = false;
648 chandransh 6408
      if (!first) sb.append(", ");
6409
      sb.append("se:");
6410
      if (this.se == null) {
442 rajveer 6411
        sb.append("null");
6412
      } else {
648 chandransh 6413
        sb.append(this.se);
442 rajveer 6414
      }
6415
      first = false;
6416
      sb.append(")");
6417
      return sb.toString();
6418
    }
6419
 
3430 rajveer 6420
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6421
      // check for required fields
6422
    }
6423
 
3430 rajveer 6424
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6425
      try {
6426
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6427
      } catch (org.apache.thrift.TException te) {
6428
        throw new java.io.IOException(te);
6429
      }
6430
    }
6431
 
6432
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6433
      try {
6434
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6435
      } catch (org.apache.thrift.TException te) {
6436
        throw new java.io.IOException(te);
6437
      }
6438
    }
6439
 
442 rajveer 6440
  }
6441
 
3430 rajveer 6442
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6444
 
6643 rajveer 6445
    private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
3430 rajveer 6446
    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 6447
 
6643 rajveer 6448
    private String awbNumber; // required
3430 rajveer 6449
    private long providerId; // required
442 rajveer 6450
 
6451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6453
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6454
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6455
 
6456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6457
 
6458
      static {
6459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6460
          byName.put(field.getFieldName(), field);
6461
        }
6462
      }
6463
 
6464
      /**
6465
       * Find the _Fields constant that matches fieldId, or null if its not found.
6466
       */
6467
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6468
        switch(fieldId) {
6643 rajveer 6469
          case 1: // AWB_NUMBER
6470
            return AWB_NUMBER;
3430 rajveer 6471
          case 2: // PROVIDER_ID
6472
            return PROVIDER_ID;
6473
          default:
6474
            return null;
6475
        }
442 rajveer 6476
      }
6477
 
6478
      /**
6479
       * Find the _Fields constant that matches fieldId, throwing an exception
6480
       * if it is not found.
6481
       */
6482
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6483
        _Fields fields = findByThriftId(fieldId);
6484
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6485
        return fields;
6486
      }
6487
 
6488
      /**
6489
       * Find the _Fields constant that matches name, or null if its not found.
6490
       */
6491
      public static _Fields findByName(String name) {
6492
        return byName.get(name);
6493
      }
6494
 
6495
      private final short _thriftId;
6496
      private final String _fieldName;
6497
 
6498
      _Fields(short thriftId, String fieldName) {
6499
        _thriftId = thriftId;
6500
        _fieldName = fieldName;
6501
      }
6502
 
6503
      public short getThriftFieldId() {
6504
        return _thriftId;
6505
      }
6506
 
6507
      public String getFieldName() {
6508
        return _fieldName;
6509
      }
6510
    }
6511
 
6512
    // isset id assignments
648 chandransh 6513
    private static final int __PROVIDERID_ISSET_ID = 0;
6514
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 6515
 
3430 rajveer 6516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 6517
    static {
3430 rajveer 6518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 6519
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 6520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6521
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6523
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6524
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 6525
    }
6526
 
648 chandransh 6527
    public getShipmentInfo_args() {
442 rajveer 6528
    }
6529
 
648 chandransh 6530
    public getShipmentInfo_args(
6643 rajveer 6531
      String awbNumber,
648 chandransh 6532
      long providerId)
442 rajveer 6533
    {
6534
      this();
6643 rajveer 6535
      this.awbNumber = awbNumber;
648 chandransh 6536
      this.providerId = providerId;
6537
      setProviderIdIsSet(true);
442 rajveer 6538
    }
6539
 
6540
    /**
6541
     * Performs a deep copy on <i>other</i>.
6542
     */
648 chandransh 6543
    public getShipmentInfo_args(getShipmentInfo_args other) {
6544
      __isset_bit_vector.clear();
6545
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 6546
      if (other.isSetAwbNumber()) {
6547
        this.awbNumber = other.awbNumber;
442 rajveer 6548
      }
648 chandransh 6549
      this.providerId = other.providerId;
442 rajveer 6550
    }
6551
 
648 chandransh 6552
    public getShipmentInfo_args deepCopy() {
6553
      return new getShipmentInfo_args(this);
442 rajveer 6554
    }
6555
 
3430 rajveer 6556
    @Override
6557
    public void clear() {
6643 rajveer 6558
      this.awbNumber = null;
3430 rajveer 6559
      setProviderIdIsSet(false);
6560
      this.providerId = 0;
442 rajveer 6561
    }
6562
 
6643 rajveer 6563
    public String getAwbNumber() {
6564
      return this.awbNumber;
442 rajveer 6565
    }
6566
 
6643 rajveer 6567
    public void setAwbNumber(String awbNumber) {
6568
      this.awbNumber = awbNumber;
442 rajveer 6569
    }
6570
 
6643 rajveer 6571
    public void unsetAwbNumber() {
6572
      this.awbNumber = null;
442 rajveer 6573
    }
6574
 
6643 rajveer 6575
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
6576
    public boolean isSetAwbNumber() {
6577
      return this.awbNumber != null;
442 rajveer 6578
    }
6579
 
6643 rajveer 6580
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 6581
      if (!value) {
6643 rajveer 6582
        this.awbNumber = null;
442 rajveer 6583
      }
6584
    }
6585
 
648 chandransh 6586
    public long getProviderId() {
6587
      return this.providerId;
442 rajveer 6588
    }
6589
 
3430 rajveer 6590
    public void setProviderId(long providerId) {
648 chandransh 6591
      this.providerId = providerId;
6592
      setProviderIdIsSet(true);
442 rajveer 6593
    }
6594
 
648 chandransh 6595
    public void unsetProviderId() {
6596
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 6597
    }
6598
 
3430 rajveer 6599
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6600
    public boolean isSetProviderId() {
6601
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 6602
    }
6603
 
648 chandransh 6604
    public void setProviderIdIsSet(boolean value) {
6605
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 6606
    }
6607
 
6608
    public void setFieldValue(_Fields field, Object value) {
6609
      switch (field) {
6643 rajveer 6610
      case AWB_NUMBER:
442 rajveer 6611
        if (value == null) {
6643 rajveer 6612
          unsetAwbNumber();
442 rajveer 6613
        } else {
6643 rajveer 6614
          setAwbNumber((String)value);
442 rajveer 6615
        }
6616
        break;
6617
 
648 chandransh 6618
      case PROVIDER_ID:
442 rajveer 6619
        if (value == null) {
648 chandransh 6620
          unsetProviderId();
442 rajveer 6621
        } else {
648 chandransh 6622
          setProviderId((Long)value);
442 rajveer 6623
        }
6624
        break;
6625
 
6626
      }
6627
    }
6628
 
6629
    public Object getFieldValue(_Fields field) {
6630
      switch (field) {
6643 rajveer 6631
      case AWB_NUMBER:
6632
        return getAwbNumber();
442 rajveer 6633
 
648 chandransh 6634
      case PROVIDER_ID:
3430 rajveer 6635
        return Long.valueOf(getProviderId());
442 rajveer 6636
 
6637
      }
6638
      throw new IllegalStateException();
6639
    }
6640
 
3430 rajveer 6641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6642
    public boolean isSet(_Fields field) {
6643
      if (field == null) {
6644
        throw new IllegalArgumentException();
6645
      }
442 rajveer 6646
 
6647
      switch (field) {
6643 rajveer 6648
      case AWB_NUMBER:
6649
        return isSetAwbNumber();
648 chandransh 6650
      case PROVIDER_ID:
6651
        return isSetProviderId();
442 rajveer 6652
      }
6653
      throw new IllegalStateException();
6654
    }
6655
 
6656
    @Override
6657
    public boolean equals(Object that) {
6658
      if (that == null)
6659
        return false;
648 chandransh 6660
      if (that instanceof getShipmentInfo_args)
6661
        return this.equals((getShipmentInfo_args)that);
442 rajveer 6662
      return false;
6663
    }
6664
 
648 chandransh 6665
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 6666
      if (that == null)
6667
        return false;
6668
 
6643 rajveer 6669
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
6670
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
6671
      if (this_present_awbNumber || that_present_awbNumber) {
6672
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 6673
          return false;
6643 rajveer 6674
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 6675
          return false;
6676
      }
6677
 
648 chandransh 6678
      boolean this_present_providerId = true;
6679
      boolean that_present_providerId = true;
6680
      if (this_present_providerId || that_present_providerId) {
6681
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 6682
          return false;
648 chandransh 6683
        if (this.providerId != that.providerId)
442 rajveer 6684
          return false;
6685
      }
6686
 
6687
      return true;
6688
    }
6689
 
6690
    @Override
6691
    public int hashCode() {
6692
      return 0;
6693
    }
6694
 
648 chandransh 6695
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 6696
      if (!getClass().equals(other.getClass())) {
6697
        return getClass().getName().compareTo(other.getClass().getName());
6698
      }
6699
 
6700
      int lastComparison = 0;
648 chandransh 6701
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 6702
 
6643 rajveer 6703
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 6704
      if (lastComparison != 0) {
6705
        return lastComparison;
6706
      }
6643 rajveer 6707
      if (isSetAwbNumber()) {
6708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 6709
        if (lastComparison != 0) {
6710
          return lastComparison;
6711
        }
442 rajveer 6712
      }
3430 rajveer 6713
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 6714
      if (lastComparison != 0) {
6715
        return lastComparison;
6716
      }
3430 rajveer 6717
      if (isSetProviderId()) {
6718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6719
        if (lastComparison != 0) {
6720
          return lastComparison;
6721
        }
442 rajveer 6722
      }
6723
      return 0;
6724
    }
6725
 
3430 rajveer 6726
    public _Fields fieldForId(int fieldId) {
6727
      return _Fields.findByThriftId(fieldId);
6728
    }
6729
 
6730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6731
      org.apache.thrift.protocol.TField field;
442 rajveer 6732
      iprot.readStructBegin();
6733
      while (true)
6734
      {
6735
        field = iprot.readFieldBegin();
3430 rajveer 6736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 6737
          break;
6738
        }
3430 rajveer 6739
        switch (field.id) {
6643 rajveer 6740
          case 1: // AWB_NUMBER
3430 rajveer 6741
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 6742
              this.awbNumber = iprot.readString();
3430 rajveer 6743
            } else { 
6744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6745
            }
6746
            break;
6747
          case 2: // PROVIDER_ID
6748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6749
              this.providerId = iprot.readI64();
6750
              setProviderIdIsSet(true);
6751
            } else { 
6752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6753
            }
6754
            break;
6755
          default:
6756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 6757
        }
3430 rajveer 6758
        iprot.readFieldEnd();
442 rajveer 6759
      }
6760
      iprot.readStructEnd();
6761
      validate();
6762
    }
6763
 
3430 rajveer 6764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 6765
      validate();
6766
 
6767
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 6768
      if (this.awbNumber != null) {
6769
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
6770
        oprot.writeString(this.awbNumber);
442 rajveer 6771
        oprot.writeFieldEnd();
6772
      }
648 chandransh 6773
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6774
      oprot.writeI64(this.providerId);
6775
      oprot.writeFieldEnd();
442 rajveer 6776
      oprot.writeFieldStop();
6777
      oprot.writeStructEnd();
6778
    }
6779
 
6780
    @Override
6781
    public String toString() {
648 chandransh 6782
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 6783
      boolean first = true;
6784
 
6643 rajveer 6785
      sb.append("awbNumber:");
6786
      if (this.awbNumber == null) {
442 rajveer 6787
        sb.append("null");
6788
      } else {
6643 rajveer 6789
        sb.append(this.awbNumber);
442 rajveer 6790
      }
6791
      first = false;
6792
      if (!first) sb.append(", ");
648 chandransh 6793
      sb.append("providerId:");
6794
      sb.append(this.providerId);
442 rajveer 6795
      first = false;
6796
      sb.append(")");
6797
      return sb.toString();
6798
    }
6799
 
3430 rajveer 6800
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6801
      // check for required fields
6802
    }
6803
 
3430 rajveer 6804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6805
      try {
6806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6807
      } catch (org.apache.thrift.TException te) {
6808
        throw new java.io.IOException(te);
6809
      }
6810
    }
6811
 
6812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6813
      try {
6814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6815
      } catch (org.apache.thrift.TException te) {
6816
        throw new java.io.IOException(te);
6817
      }
6818
    }
6819
 
442 rajveer 6820
  }
6821
 
3430 rajveer 6822
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
6823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 6824
 
3430 rajveer 6825
    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);
6826
    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 6827
 
3430 rajveer 6828
    private List<AwbUpdate> success; // required
6829
    private LogisticsServiceException se; // required
412 ashish 6830
 
6831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6833
      SUCCESS((short)0, "success"),
6834
      SE((short)1, "se");
412 ashish 6835
 
6836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6837
 
6838
      static {
6839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6840
          byName.put(field.getFieldName(), field);
6841
        }
6842
      }
6843
 
6844
      /**
6845
       * Find the _Fields constant that matches fieldId, or null if its not found.
6846
       */
6847
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6848
        switch(fieldId) {
6849
          case 0: // SUCCESS
6850
            return SUCCESS;
6851
          case 1: // SE
6852
            return SE;
6853
          default:
6854
            return null;
6855
        }
412 ashish 6856
      }
6857
 
6858
      /**
6859
       * Find the _Fields constant that matches fieldId, throwing an exception
6860
       * if it is not found.
6861
       */
6862
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6863
        _Fields fields = findByThriftId(fieldId);
6864
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6865
        return fields;
6866
      }
6867
 
6868
      /**
6869
       * Find the _Fields constant that matches name, or null if its not found.
6870
       */
6871
      public static _Fields findByName(String name) {
6872
        return byName.get(name);
6873
      }
6874
 
6875
      private final short _thriftId;
6876
      private final String _fieldName;
6877
 
6878
      _Fields(short thriftId, String fieldName) {
6879
        _thriftId = thriftId;
6880
        _fieldName = fieldName;
6881
      }
6882
 
6883
      public short getThriftFieldId() {
6884
        return _thriftId;
6885
      }
6886
 
6887
      public String getFieldName() {
6888
        return _fieldName;
6889
      }
6890
    }
6891
 
6892
    // isset id assignments
6893
 
3430 rajveer 6894
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6895
    static {
3430 rajveer 6896
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6897
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6898
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6899
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
6900
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6901
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 6904
    }
6905
 
6906
    public getShipmentInfo_result() {
6907
    }
6908
 
6909
    public getShipmentInfo_result(
648 chandransh 6910
      List<AwbUpdate> success,
6911
      LogisticsServiceException se)
412 ashish 6912
    {
6913
      this();
6914
      this.success = success;
648 chandransh 6915
      this.se = se;
412 ashish 6916
    }
6917
 
6918
    /**
6919
     * Performs a deep copy on <i>other</i>.
6920
     */
6921
    public getShipmentInfo_result(getShipmentInfo_result other) {
6922
      if (other.isSetSuccess()) {
648 chandransh 6923
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
6924
        for (AwbUpdate other_element : other.success) {
6925
          __this__success.add(new AwbUpdate(other_element));
6926
        }
6927
        this.success = __this__success;
412 ashish 6928
      }
648 chandransh 6929
      if (other.isSetSe()) {
6930
        this.se = new LogisticsServiceException(other.se);
6931
      }
412 ashish 6932
    }
6933
 
6934
    public getShipmentInfo_result deepCopy() {
6935
      return new getShipmentInfo_result(this);
6936
    }
6937
 
3430 rajveer 6938
    @Override
6939
    public void clear() {
6940
      this.success = null;
6941
      this.se = null;
412 ashish 6942
    }
6943
 
6944
    public int getSuccessSize() {
6945
      return (this.success == null) ? 0 : this.success.size();
6946
    }
6947
 
648 chandransh 6948
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 6949
      return (this.success == null) ? null : this.success.iterator();
6950
    }
6951
 
648 chandransh 6952
    public void addToSuccess(AwbUpdate elem) {
412 ashish 6953
      if (this.success == null) {
648 chandransh 6954
        this.success = new ArrayList<AwbUpdate>();
412 ashish 6955
      }
6956
      this.success.add(elem);
6957
    }
6958
 
648 chandransh 6959
    public List<AwbUpdate> getSuccess() {
412 ashish 6960
      return this.success;
6961
    }
6962
 
3430 rajveer 6963
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 6964
      this.success = success;
6965
    }
6966
 
6967
    public void unsetSuccess() {
6968
      this.success = null;
6969
    }
6970
 
3430 rajveer 6971
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6972
    public boolean isSetSuccess() {
6973
      return this.success != null;
6974
    }
6975
 
6976
    public void setSuccessIsSet(boolean value) {
6977
      if (!value) {
6978
        this.success = null;
6979
      }
6980
    }
6981
 
648 chandransh 6982
    public LogisticsServiceException getSe() {
6983
      return this.se;
412 ashish 6984
    }
6985
 
3430 rajveer 6986
    public void setSe(LogisticsServiceException se) {
648 chandransh 6987
      this.se = se;
412 ashish 6988
    }
6989
 
648 chandransh 6990
    public void unsetSe() {
6991
      this.se = null;
412 ashish 6992
    }
6993
 
3430 rajveer 6994
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6995
    public boolean isSetSe() {
6996
      return this.se != null;
412 ashish 6997
    }
6998
 
648 chandransh 6999
    public void setSeIsSet(boolean value) {
7000
      if (!value) {
7001
        this.se = null;
412 ashish 7002
      }
7003
    }
7004
 
7005
    public void setFieldValue(_Fields field, Object value) {
7006
      switch (field) {
648 chandransh 7007
      case SUCCESS:
412 ashish 7008
        if (value == null) {
648 chandransh 7009
          unsetSuccess();
412 ashish 7010
        } else {
648 chandransh 7011
          setSuccess((List<AwbUpdate>)value);
412 ashish 7012
        }
7013
        break;
7014
 
648 chandransh 7015
      case SE:
412 ashish 7016
        if (value == null) {
648 chandransh 7017
          unsetSe();
412 ashish 7018
        } else {
648 chandransh 7019
          setSe((LogisticsServiceException)value);
412 ashish 7020
        }
7021
        break;
7022
 
7023
      }
7024
    }
7025
 
7026
    public Object getFieldValue(_Fields field) {
7027
      switch (field) {
648 chandransh 7028
      case SUCCESS:
7029
        return getSuccess();
412 ashish 7030
 
648 chandransh 7031
      case SE:
7032
        return getSe();
412 ashish 7033
 
7034
      }
7035
      throw new IllegalStateException();
7036
    }
7037
 
3430 rajveer 7038
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7039
    public boolean isSet(_Fields field) {
7040
      if (field == null) {
7041
        throw new IllegalArgumentException();
7042
      }
412 ashish 7043
 
7044
      switch (field) {
648 chandransh 7045
      case SUCCESS:
7046
        return isSetSuccess();
7047
      case SE:
7048
        return isSetSe();
412 ashish 7049
      }
7050
      throw new IllegalStateException();
7051
    }
7052
 
7053
    @Override
7054
    public boolean equals(Object that) {
7055
      if (that == null)
7056
        return false;
648 chandransh 7057
      if (that instanceof getShipmentInfo_result)
7058
        return this.equals((getShipmentInfo_result)that);
412 ashish 7059
      return false;
7060
    }
7061
 
648 chandransh 7062
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7063
      if (that == null)
7064
        return false;
7065
 
648 chandransh 7066
      boolean this_present_success = true && this.isSetSuccess();
7067
      boolean that_present_success = true && that.isSetSuccess();
7068
      if (this_present_success || that_present_success) {
7069
        if (!(this_present_success && that_present_success))
412 ashish 7070
          return false;
648 chandransh 7071
        if (!this.success.equals(that.success))
412 ashish 7072
          return false;
7073
      }
7074
 
648 chandransh 7075
      boolean this_present_se = true && this.isSetSe();
7076
      boolean that_present_se = true && that.isSetSe();
7077
      if (this_present_se || that_present_se) {
7078
        if (!(this_present_se && that_present_se))
412 ashish 7079
          return false;
648 chandransh 7080
        if (!this.se.equals(that.se))
412 ashish 7081
          return false;
7082
      }
7083
 
7084
      return true;
7085
    }
7086
 
7087
    @Override
7088
    public int hashCode() {
7089
      return 0;
7090
    }
7091
 
648 chandransh 7092
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7093
      if (!getClass().equals(other.getClass())) {
7094
        return getClass().getName().compareTo(other.getClass().getName());
7095
      }
7096
 
7097
      int lastComparison = 0;
648 chandransh 7098
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7099
 
3430 rajveer 7100
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7101
      if (lastComparison != 0) {
7102
        return lastComparison;
7103
      }
3430 rajveer 7104
      if (isSetSuccess()) {
7105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7106
        if (lastComparison != 0) {
7107
          return lastComparison;
7108
        }
412 ashish 7109
      }
3430 rajveer 7110
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7111
      if (lastComparison != 0) {
7112
        return lastComparison;
7113
      }
3430 rajveer 7114
      if (isSetSe()) {
7115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7116
        if (lastComparison != 0) {
7117
          return lastComparison;
7118
        }
412 ashish 7119
      }
7120
      return 0;
7121
    }
7122
 
3430 rajveer 7123
    public _Fields fieldForId(int fieldId) {
7124
      return _Fields.findByThriftId(fieldId);
7125
    }
7126
 
7127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7128
      org.apache.thrift.protocol.TField field;
412 ashish 7129
      iprot.readStructBegin();
7130
      while (true)
7131
      {
7132
        field = iprot.readFieldBegin();
3430 rajveer 7133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7134
          break;
7135
        }
3430 rajveer 7136
        switch (field.id) {
7137
          case 0: // SUCCESS
7138
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7139
              {
7140
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
7141
                this.success = new ArrayList<AwbUpdate>(_list9.size);
7142
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 7143
                {
3430 rajveer 7144
                  AwbUpdate _elem11; // required
7145
                  _elem11 = new AwbUpdate();
7146
                  _elem11.read(iprot);
7147
                  this.success.add(_elem11);
412 ashish 7148
                }
3430 rajveer 7149
                iprot.readListEnd();
412 ashish 7150
              }
3430 rajveer 7151
            } else { 
7152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7153
            }
7154
            break;
7155
          case 1: // SE
7156
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7157
              this.se = new LogisticsServiceException();
7158
              this.se.read(iprot);
7159
            } else { 
7160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7161
            }
7162
            break;
7163
          default:
7164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7165
        }
3430 rajveer 7166
        iprot.readFieldEnd();
412 ashish 7167
      }
7168
      iprot.readStructEnd();
7169
      validate();
7170
    }
7171
 
3430 rajveer 7172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7173
      oprot.writeStructBegin(STRUCT_DESC);
7174
 
7175
      if (this.isSetSuccess()) {
7176
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7177
        {
3430 rajveer 7178
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 7179
          for (AwbUpdate _iter12 : this.success)
412 ashish 7180
          {
3044 chandransh 7181
            _iter12.write(oprot);
412 ashish 7182
          }
7183
          oprot.writeListEnd();
7184
        }
7185
        oprot.writeFieldEnd();
648 chandransh 7186
      } else if (this.isSetSe()) {
7187
        oprot.writeFieldBegin(SE_FIELD_DESC);
7188
        this.se.write(oprot);
7189
        oprot.writeFieldEnd();
412 ashish 7190
      }
7191
      oprot.writeFieldStop();
7192
      oprot.writeStructEnd();
7193
    }
7194
 
7195
    @Override
7196
    public String toString() {
648 chandransh 7197
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7198
      boolean first = true;
7199
 
7200
      sb.append("success:");
7201
      if (this.success == null) {
7202
        sb.append("null");
7203
      } else {
7204
        sb.append(this.success);
7205
      }
7206
      first = false;
648 chandransh 7207
      if (!first) sb.append(", ");
7208
      sb.append("se:");
7209
      if (this.se == null) {
7210
        sb.append("null");
7211
      } else {
7212
        sb.append(this.se);
7213
      }
7214
      first = false;
412 ashish 7215
      sb.append(")");
7216
      return sb.toString();
7217
    }
7218
 
3430 rajveer 7219
    public void validate() throws org.apache.thrift.TException {
412 ashish 7220
      // check for required fields
7221
    }
7222
 
3430 rajveer 7223
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7224
      try {
7225
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7226
      } catch (org.apache.thrift.TException te) {
7227
        throw new java.io.IOException(te);
7228
      }
7229
    }
7230
 
7231
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7232
      try {
7233
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7234
      } catch (org.apache.thrift.TException te) {
7235
        throw new java.io.IOException(te);
7236
      }
7237
    }
7238
 
412 ashish 7239
  }
7240
 
6643 rajveer 7241
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7242
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7243
 
7244
    private static final org.apache.thrift.protocol.TField UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("update", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7245
 
7246
    private AwbUpdate update; // required
7247
 
7248
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7249
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7250
      UPDATE((short)1, "update");
7251
 
7252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7253
 
7254
      static {
7255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7256
          byName.put(field.getFieldName(), field);
7257
        }
7258
      }
7259
 
7260
      /**
7261
       * Find the _Fields constant that matches fieldId, or null if its not found.
7262
       */
7263
      public static _Fields findByThriftId(int fieldId) {
7264
        switch(fieldId) {
7265
          case 1: // UPDATE
7266
            return UPDATE;
7267
          default:
7268
            return null;
7269
        }
7270
      }
7271
 
7272
      /**
7273
       * Find the _Fields constant that matches fieldId, throwing an exception
7274
       * if it is not found.
7275
       */
7276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7277
        _Fields fields = findByThriftId(fieldId);
7278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7279
        return fields;
7280
      }
7281
 
7282
      /**
7283
       * Find the _Fields constant that matches name, or null if its not found.
7284
       */
7285
      public static _Fields findByName(String name) {
7286
        return byName.get(name);
7287
      }
7288
 
7289
      private final short _thriftId;
7290
      private final String _fieldName;
7291
 
7292
      _Fields(short thriftId, String fieldName) {
7293
        _thriftId = thriftId;
7294
        _fieldName = fieldName;
7295
      }
7296
 
7297
      public short getThriftFieldId() {
7298
        return _thriftId;
7299
      }
7300
 
7301
      public String getFieldName() {
7302
        return _fieldName;
7303
      }
7304
    }
7305
 
7306
    // isset id assignments
7307
 
7308
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7309
    static {
7310
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7311
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7312
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7315
    }
7316
 
7317
    public storeShipmentInfo_args() {
7318
    }
7319
 
7320
    public storeShipmentInfo_args(
7321
      AwbUpdate update)
7322
    {
7323
      this();
7324
      this.update = update;
7325
    }
7326
 
7327
    /**
7328
     * Performs a deep copy on <i>other</i>.
7329
     */
7330
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7331
      if (other.isSetUpdate()) {
7332
        this.update = new AwbUpdate(other.update);
7333
      }
7334
    }
7335
 
7336
    public storeShipmentInfo_args deepCopy() {
7337
      return new storeShipmentInfo_args(this);
7338
    }
7339
 
7340
    @Override
7341
    public void clear() {
7342
      this.update = null;
7343
    }
7344
 
7345
    public AwbUpdate getUpdate() {
7346
      return this.update;
7347
    }
7348
 
7349
    public void setUpdate(AwbUpdate update) {
7350
      this.update = update;
7351
    }
7352
 
7353
    public void unsetUpdate() {
7354
      this.update = null;
7355
    }
7356
 
7357
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7358
    public boolean isSetUpdate() {
7359
      return this.update != null;
7360
    }
7361
 
7362
    public void setUpdateIsSet(boolean value) {
7363
      if (!value) {
7364
        this.update = null;
7365
      }
7366
    }
7367
 
7368
    public void setFieldValue(_Fields field, Object value) {
7369
      switch (field) {
7370
      case UPDATE:
7371
        if (value == null) {
7372
          unsetUpdate();
7373
        } else {
7374
          setUpdate((AwbUpdate)value);
7375
        }
7376
        break;
7377
 
7378
      }
7379
    }
7380
 
7381
    public Object getFieldValue(_Fields field) {
7382
      switch (field) {
7383
      case UPDATE:
7384
        return getUpdate();
7385
 
7386
      }
7387
      throw new IllegalStateException();
7388
    }
7389
 
7390
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7391
    public boolean isSet(_Fields field) {
7392
      if (field == null) {
7393
        throw new IllegalArgumentException();
7394
      }
7395
 
7396
      switch (field) {
7397
      case UPDATE:
7398
        return isSetUpdate();
7399
      }
7400
      throw new IllegalStateException();
7401
    }
7402
 
7403
    @Override
7404
    public boolean equals(Object that) {
7405
      if (that == null)
7406
        return false;
7407
      if (that instanceof storeShipmentInfo_args)
7408
        return this.equals((storeShipmentInfo_args)that);
7409
      return false;
7410
    }
7411
 
7412
    public boolean equals(storeShipmentInfo_args that) {
7413
      if (that == null)
7414
        return false;
7415
 
7416
      boolean this_present_update = true && this.isSetUpdate();
7417
      boolean that_present_update = true && that.isSetUpdate();
7418
      if (this_present_update || that_present_update) {
7419
        if (!(this_present_update && that_present_update))
7420
          return false;
7421
        if (!this.update.equals(that.update))
7422
          return false;
7423
      }
7424
 
7425
      return true;
7426
    }
7427
 
7428
    @Override
7429
    public int hashCode() {
7430
      return 0;
7431
    }
7432
 
7433
    public int compareTo(storeShipmentInfo_args other) {
7434
      if (!getClass().equals(other.getClass())) {
7435
        return getClass().getName().compareTo(other.getClass().getName());
7436
      }
7437
 
7438
      int lastComparison = 0;
7439
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7440
 
7441
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7442
      if (lastComparison != 0) {
7443
        return lastComparison;
7444
      }
7445
      if (isSetUpdate()) {
7446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7447
        if (lastComparison != 0) {
7448
          return lastComparison;
7449
        }
7450
      }
7451
      return 0;
7452
    }
7453
 
7454
    public _Fields fieldForId(int fieldId) {
7455
      return _Fields.findByThriftId(fieldId);
7456
    }
7457
 
7458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7459
      org.apache.thrift.protocol.TField field;
7460
      iprot.readStructBegin();
7461
      while (true)
7462
      {
7463
        field = iprot.readFieldBegin();
7464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7465
          break;
7466
        }
7467
        switch (field.id) {
7468
          case 1: // UPDATE
7469
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7470
              this.update = new AwbUpdate();
7471
              this.update.read(iprot);
7472
            } else { 
7473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7474
            }
7475
            break;
7476
          default:
7477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7478
        }
7479
        iprot.readFieldEnd();
7480
      }
7481
      iprot.readStructEnd();
7482
      validate();
7483
    }
7484
 
7485
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7486
      validate();
7487
 
7488
      oprot.writeStructBegin(STRUCT_DESC);
7489
      if (this.update != null) {
7490
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7491
        this.update.write(oprot);
7492
        oprot.writeFieldEnd();
7493
      }
7494
      oprot.writeFieldStop();
7495
      oprot.writeStructEnd();
7496
    }
7497
 
7498
    @Override
7499
    public String toString() {
7500
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
7501
      boolean first = true;
7502
 
7503
      sb.append("update:");
7504
      if (this.update == null) {
7505
        sb.append("null");
7506
      } else {
7507
        sb.append(this.update);
7508
      }
7509
      first = false;
7510
      sb.append(")");
7511
      return sb.toString();
7512
    }
7513
 
7514
    public void validate() throws org.apache.thrift.TException {
7515
      // check for required fields
7516
    }
7517
 
7518
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7519
      try {
7520
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7521
      } catch (org.apache.thrift.TException te) {
7522
        throw new java.io.IOException(te);
7523
      }
7524
    }
7525
 
7526
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7527
      try {
7528
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7529
      } catch (org.apache.thrift.TException te) {
7530
        throw new java.io.IOException(te);
7531
      }
7532
    }
7533
 
7534
  }
7535
 
7536
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7537
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
7538
 
7539
    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);
7540
 
7541
    private LogisticsServiceException se; // required
7542
 
7543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7545
      SE((short)1, "se");
7546
 
7547
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7548
 
7549
      static {
7550
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7551
          byName.put(field.getFieldName(), field);
7552
        }
7553
      }
7554
 
7555
      /**
7556
       * Find the _Fields constant that matches fieldId, or null if its not found.
7557
       */
7558
      public static _Fields findByThriftId(int fieldId) {
7559
        switch(fieldId) {
7560
          case 1: // SE
7561
            return SE;
7562
          default:
7563
            return null;
7564
        }
7565
      }
7566
 
7567
      /**
7568
       * Find the _Fields constant that matches fieldId, throwing an exception
7569
       * if it is not found.
7570
       */
7571
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7572
        _Fields fields = findByThriftId(fieldId);
7573
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7574
        return fields;
7575
      }
7576
 
7577
      /**
7578
       * Find the _Fields constant that matches name, or null if its not found.
7579
       */
7580
      public static _Fields findByName(String name) {
7581
        return byName.get(name);
7582
      }
7583
 
7584
      private final short _thriftId;
7585
      private final String _fieldName;
7586
 
7587
      _Fields(short thriftId, String fieldName) {
7588
        _thriftId = thriftId;
7589
        _fieldName = fieldName;
7590
      }
7591
 
7592
      public short getThriftFieldId() {
7593
        return _thriftId;
7594
      }
7595
 
7596
      public String getFieldName() {
7597
        return _fieldName;
7598
      }
7599
    }
7600
 
7601
    // isset id assignments
7602
 
7603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7604
    static {
7605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7606
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
7610
    }
7611
 
7612
    public storeShipmentInfo_result() {
7613
    }
7614
 
7615
    public storeShipmentInfo_result(
7616
      LogisticsServiceException se)
7617
    {
7618
      this();
7619
      this.se = se;
7620
    }
7621
 
7622
    /**
7623
     * Performs a deep copy on <i>other</i>.
7624
     */
7625
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
7626
      if (other.isSetSe()) {
7627
        this.se = new LogisticsServiceException(other.se);
7628
      }
7629
    }
7630
 
7631
    public storeShipmentInfo_result deepCopy() {
7632
      return new storeShipmentInfo_result(this);
7633
    }
7634
 
7635
    @Override
7636
    public void clear() {
7637
      this.se = null;
7638
    }
7639
 
7640
    public LogisticsServiceException getSe() {
7641
      return this.se;
7642
    }
7643
 
7644
    public void setSe(LogisticsServiceException se) {
7645
      this.se = se;
7646
    }
7647
 
7648
    public void unsetSe() {
7649
      this.se = null;
7650
    }
7651
 
7652
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7653
    public boolean isSetSe() {
7654
      return this.se != null;
7655
    }
7656
 
7657
    public void setSeIsSet(boolean value) {
7658
      if (!value) {
7659
        this.se = null;
7660
      }
7661
    }
7662
 
7663
    public void setFieldValue(_Fields field, Object value) {
7664
      switch (field) {
7665
      case SE:
7666
        if (value == null) {
7667
          unsetSe();
7668
        } else {
7669
          setSe((LogisticsServiceException)value);
7670
        }
7671
        break;
7672
 
7673
      }
7674
    }
7675
 
7676
    public Object getFieldValue(_Fields field) {
7677
      switch (field) {
7678
      case SE:
7679
        return getSe();
7680
 
7681
      }
7682
      throw new IllegalStateException();
7683
    }
7684
 
7685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7686
    public boolean isSet(_Fields field) {
7687
      if (field == null) {
7688
        throw new IllegalArgumentException();
7689
      }
7690
 
7691
      switch (field) {
7692
      case SE:
7693
        return isSetSe();
7694
      }
7695
      throw new IllegalStateException();
7696
    }
7697
 
7698
    @Override
7699
    public boolean equals(Object that) {
7700
      if (that == null)
7701
        return false;
7702
      if (that instanceof storeShipmentInfo_result)
7703
        return this.equals((storeShipmentInfo_result)that);
7704
      return false;
7705
    }
7706
 
7707
    public boolean equals(storeShipmentInfo_result that) {
7708
      if (that == null)
7709
        return false;
7710
 
7711
      boolean this_present_se = true && this.isSetSe();
7712
      boolean that_present_se = true && that.isSetSe();
7713
      if (this_present_se || that_present_se) {
7714
        if (!(this_present_se && that_present_se))
7715
          return false;
7716
        if (!this.se.equals(that.se))
7717
          return false;
7718
      }
7719
 
7720
      return true;
7721
    }
7722
 
7723
    @Override
7724
    public int hashCode() {
7725
      return 0;
7726
    }
7727
 
7728
    public int compareTo(storeShipmentInfo_result other) {
7729
      if (!getClass().equals(other.getClass())) {
7730
        return getClass().getName().compareTo(other.getClass().getName());
7731
      }
7732
 
7733
      int lastComparison = 0;
7734
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
7735
 
7736
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7737
      if (lastComparison != 0) {
7738
        return lastComparison;
7739
      }
7740
      if (isSetSe()) {
7741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7742
        if (lastComparison != 0) {
7743
          return lastComparison;
7744
        }
7745
      }
7746
      return 0;
7747
    }
7748
 
7749
    public _Fields fieldForId(int fieldId) {
7750
      return _Fields.findByThriftId(fieldId);
7751
    }
7752
 
7753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7754
      org.apache.thrift.protocol.TField field;
7755
      iprot.readStructBegin();
7756
      while (true)
7757
      {
7758
        field = iprot.readFieldBegin();
7759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7760
          break;
7761
        }
7762
        switch (field.id) {
7763
          case 1: // SE
7764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7765
              this.se = new LogisticsServiceException();
7766
              this.se.read(iprot);
7767
            } else { 
7768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7769
            }
7770
            break;
7771
          default:
7772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7773
        }
7774
        iprot.readFieldEnd();
7775
      }
7776
      iprot.readStructEnd();
7777
      validate();
7778
    }
7779
 
7780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7781
      oprot.writeStructBegin(STRUCT_DESC);
7782
 
7783
      if (this.isSetSe()) {
7784
        oprot.writeFieldBegin(SE_FIELD_DESC);
7785
        this.se.write(oprot);
7786
        oprot.writeFieldEnd();
7787
      }
7788
      oprot.writeFieldStop();
7789
      oprot.writeStructEnd();
7790
    }
7791
 
7792
    @Override
7793
    public String toString() {
7794
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
7795
      boolean first = true;
7796
 
7797
      sb.append("se:");
7798
      if (this.se == null) {
7799
        sb.append("null");
7800
      } else {
7801
        sb.append(this.se);
7802
      }
7803
      first = false;
7804
      sb.append(")");
7805
      return sb.toString();
7806
    }
7807
 
7808
    public void validate() throws org.apache.thrift.TException {
7809
      // check for required fields
7810
    }
7811
 
7812
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7813
      try {
7814
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7815
      } catch (org.apache.thrift.TException te) {
7816
        throw new java.io.IOException(te);
7817
      }
7818
    }
7819
 
7820
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7821
      try {
7822
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7823
      } catch (org.apache.thrift.TException te) {
7824
        throw new java.io.IOException(te);
7825
      }
7826
    }
7827
 
7828
  }
7829
 
3430 rajveer 7830
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
7831
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 7832
 
3430 rajveer 7833
    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);
7834
    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 7835
 
3430 rajveer 7836
    private long providerId; // required
7837
    private String pinCode; // required
730 chandransh 7838
 
7839
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7840
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 7841
      PROVIDER_ID((short)1, "providerId"),
7842
      PIN_CODE((short)2, "pinCode");
7843
 
7844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7845
 
7846
      static {
7847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7848
          byName.put(field.getFieldName(), field);
7849
        }
7850
      }
7851
 
7852
      /**
7853
       * Find the _Fields constant that matches fieldId, or null if its not found.
7854
       */
7855
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7856
        switch(fieldId) {
7857
          case 1: // PROVIDER_ID
7858
            return PROVIDER_ID;
7859
          case 2: // PIN_CODE
7860
            return PIN_CODE;
7861
          default:
7862
            return null;
7863
        }
730 chandransh 7864
      }
7865
 
7866
      /**
7867
       * Find the _Fields constant that matches fieldId, throwing an exception
7868
       * if it is not found.
7869
       */
7870
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7871
        _Fields fields = findByThriftId(fieldId);
7872
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7873
        return fields;
7874
      }
7875
 
7876
      /**
7877
       * Find the _Fields constant that matches name, or null if its not found.
7878
       */
7879
      public static _Fields findByName(String name) {
7880
        return byName.get(name);
7881
      }
7882
 
7883
      private final short _thriftId;
7884
      private final String _fieldName;
7885
 
7886
      _Fields(short thriftId, String fieldName) {
7887
        _thriftId = thriftId;
7888
        _fieldName = fieldName;
7889
      }
7890
 
7891
      public short getThriftFieldId() {
7892
        return _thriftId;
7893
      }
7894
 
7895
      public String getFieldName() {
7896
        return _fieldName;
7897
      }
7898
    }
7899
 
7900
    // isset id assignments
7901
    private static final int __PROVIDERID_ISSET_ID = 0;
7902
    private BitSet __isset_bit_vector = new BitSet(1);
7903
 
3430 rajveer 7904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 7905
    static {
3430 rajveer 7906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7907
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7909
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7911
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7912
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 7913
    }
7914
 
7915
    public getDestinationCode_args() {
7916
    }
7917
 
7918
    public getDestinationCode_args(
7919
      long providerId,
7920
      String pinCode)
7921
    {
7922
      this();
7923
      this.providerId = providerId;
7924
      setProviderIdIsSet(true);
7925
      this.pinCode = pinCode;
7926
    }
7927
 
7928
    /**
7929
     * Performs a deep copy on <i>other</i>.
7930
     */
7931
    public getDestinationCode_args(getDestinationCode_args other) {
7932
      __isset_bit_vector.clear();
7933
      __isset_bit_vector.or(other.__isset_bit_vector);
7934
      this.providerId = other.providerId;
7935
      if (other.isSetPinCode()) {
7936
        this.pinCode = other.pinCode;
7937
      }
7938
    }
7939
 
7940
    public getDestinationCode_args deepCopy() {
7941
      return new getDestinationCode_args(this);
7942
    }
7943
 
3430 rajveer 7944
    @Override
7945
    public void clear() {
7946
      setProviderIdIsSet(false);
7947
      this.providerId = 0;
7948
      this.pinCode = null;
730 chandransh 7949
    }
7950
 
7951
    public long getProviderId() {
7952
      return this.providerId;
7953
    }
7954
 
3430 rajveer 7955
    public void setProviderId(long providerId) {
730 chandransh 7956
      this.providerId = providerId;
7957
      setProviderIdIsSet(true);
7958
    }
7959
 
7960
    public void unsetProviderId() {
7961
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
7962
    }
7963
 
3430 rajveer 7964
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 7965
    public boolean isSetProviderId() {
7966
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
7967
    }
7968
 
7969
    public void setProviderIdIsSet(boolean value) {
7970
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
7971
    }
7972
 
7973
    public String getPinCode() {
7974
      return this.pinCode;
7975
    }
7976
 
3430 rajveer 7977
    public void setPinCode(String pinCode) {
730 chandransh 7978
      this.pinCode = pinCode;
7979
    }
7980
 
7981
    public void unsetPinCode() {
7982
      this.pinCode = null;
7983
    }
7984
 
3430 rajveer 7985
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 7986
    public boolean isSetPinCode() {
7987
      return this.pinCode != null;
7988
    }
7989
 
7990
    public void setPinCodeIsSet(boolean value) {
7991
      if (!value) {
7992
        this.pinCode = null;
7993
      }
7994
    }
7995
 
7996
    public void setFieldValue(_Fields field, Object value) {
7997
      switch (field) {
7998
      case PROVIDER_ID:
7999
        if (value == null) {
8000
          unsetProviderId();
8001
        } else {
8002
          setProviderId((Long)value);
8003
        }
8004
        break;
8005
 
8006
      case PIN_CODE:
8007
        if (value == null) {
8008
          unsetPinCode();
8009
        } else {
8010
          setPinCode((String)value);
8011
        }
8012
        break;
8013
 
8014
      }
8015
    }
8016
 
8017
    public Object getFieldValue(_Fields field) {
8018
      switch (field) {
8019
      case PROVIDER_ID:
3430 rajveer 8020
        return Long.valueOf(getProviderId());
730 chandransh 8021
 
8022
      case PIN_CODE:
8023
        return getPinCode();
8024
 
8025
      }
8026
      throw new IllegalStateException();
8027
    }
8028
 
3430 rajveer 8029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8030
    public boolean isSet(_Fields field) {
8031
      if (field == null) {
8032
        throw new IllegalArgumentException();
8033
      }
730 chandransh 8034
 
8035
      switch (field) {
8036
      case PROVIDER_ID:
8037
        return isSetProviderId();
8038
      case PIN_CODE:
8039
        return isSetPinCode();
8040
      }
8041
      throw new IllegalStateException();
8042
    }
8043
 
8044
    @Override
8045
    public boolean equals(Object that) {
8046
      if (that == null)
8047
        return false;
8048
      if (that instanceof getDestinationCode_args)
8049
        return this.equals((getDestinationCode_args)that);
8050
      return false;
8051
    }
8052
 
8053
    public boolean equals(getDestinationCode_args that) {
8054
      if (that == null)
8055
        return false;
8056
 
8057
      boolean this_present_providerId = true;
8058
      boolean that_present_providerId = true;
8059
      if (this_present_providerId || that_present_providerId) {
8060
        if (!(this_present_providerId && that_present_providerId))
8061
          return false;
8062
        if (this.providerId != that.providerId)
8063
          return false;
8064
      }
8065
 
8066
      boolean this_present_pinCode = true && this.isSetPinCode();
8067
      boolean that_present_pinCode = true && that.isSetPinCode();
8068
      if (this_present_pinCode || that_present_pinCode) {
8069
        if (!(this_present_pinCode && that_present_pinCode))
8070
          return false;
8071
        if (!this.pinCode.equals(that.pinCode))
8072
          return false;
8073
      }
8074
 
8075
      return true;
8076
    }
8077
 
8078
    @Override
8079
    public int hashCode() {
8080
      return 0;
8081
    }
8082
 
8083
    public int compareTo(getDestinationCode_args other) {
8084
      if (!getClass().equals(other.getClass())) {
8085
        return getClass().getName().compareTo(other.getClass().getName());
8086
      }
8087
 
8088
      int lastComparison = 0;
8089
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8090
 
3430 rajveer 8091
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8092
      if (lastComparison != 0) {
8093
        return lastComparison;
8094
      }
3430 rajveer 8095
      if (isSetProviderId()) {
8096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8097
        if (lastComparison != 0) {
8098
          return lastComparison;
8099
        }
730 chandransh 8100
      }
3430 rajveer 8101
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8102
      if (lastComparison != 0) {
8103
        return lastComparison;
8104
      }
3430 rajveer 8105
      if (isSetPinCode()) {
8106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8107
        if (lastComparison != 0) {
8108
          return lastComparison;
8109
        }
730 chandransh 8110
      }
8111
      return 0;
8112
    }
8113
 
3430 rajveer 8114
    public _Fields fieldForId(int fieldId) {
8115
      return _Fields.findByThriftId(fieldId);
8116
    }
8117
 
8118
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8119
      org.apache.thrift.protocol.TField field;
730 chandransh 8120
      iprot.readStructBegin();
8121
      while (true)
8122
      {
8123
        field = iprot.readFieldBegin();
3430 rajveer 8124
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8125
          break;
8126
        }
3430 rajveer 8127
        switch (field.id) {
8128
          case 1: // PROVIDER_ID
8129
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8130
              this.providerId = iprot.readI64();
8131
              setProviderIdIsSet(true);
8132
            } else { 
8133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8134
            }
8135
            break;
8136
          case 2: // PIN_CODE
8137
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8138
              this.pinCode = iprot.readString();
8139
            } else { 
8140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8141
            }
8142
            break;
8143
          default:
8144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8145
        }
3430 rajveer 8146
        iprot.readFieldEnd();
730 chandransh 8147
      }
8148
      iprot.readStructEnd();
8149
      validate();
8150
    }
8151
 
3430 rajveer 8152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8153
      validate();
8154
 
8155
      oprot.writeStructBegin(STRUCT_DESC);
8156
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8157
      oprot.writeI64(this.providerId);
8158
      oprot.writeFieldEnd();
8159
      if (this.pinCode != null) {
8160
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8161
        oprot.writeString(this.pinCode);
8162
        oprot.writeFieldEnd();
8163
      }
8164
      oprot.writeFieldStop();
8165
      oprot.writeStructEnd();
8166
    }
8167
 
8168
    @Override
8169
    public String toString() {
8170
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8171
      boolean first = true;
8172
 
8173
      sb.append("providerId:");
8174
      sb.append(this.providerId);
8175
      first = false;
8176
      if (!first) sb.append(", ");
8177
      sb.append("pinCode:");
8178
      if (this.pinCode == null) {
8179
        sb.append("null");
8180
      } else {
8181
        sb.append(this.pinCode);
8182
      }
8183
      first = false;
8184
      sb.append(")");
8185
      return sb.toString();
8186
    }
8187
 
3430 rajveer 8188
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8189
      // check for required fields
8190
    }
8191
 
3430 rajveer 8192
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8193
      try {
8194
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8195
      } catch (org.apache.thrift.TException te) {
8196
        throw new java.io.IOException(te);
8197
      }
8198
    }
8199
 
8200
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8201
      try {
8202
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8203
      } catch (org.apache.thrift.TException te) {
8204
        throw new java.io.IOException(te);
8205
      }
8206
    }
8207
 
730 chandransh 8208
  }
8209
 
3430 rajveer 8210
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8211
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8212
 
3430 rajveer 8213
    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);
8214
    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 8215
 
3430 rajveer 8216
    private String success; // required
8217
    private LogisticsServiceException se; // required
730 chandransh 8218
 
8219
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8220
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8221
      SUCCESS((short)0, "success"),
8222
      SE((short)1, "se");
8223
 
8224
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8225
 
8226
      static {
8227
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8228
          byName.put(field.getFieldName(), field);
8229
        }
8230
      }
8231
 
8232
      /**
8233
       * Find the _Fields constant that matches fieldId, or null if its not found.
8234
       */
8235
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8236
        switch(fieldId) {
8237
          case 0: // SUCCESS
8238
            return SUCCESS;
8239
          case 1: // SE
8240
            return SE;
8241
          default:
8242
            return null;
8243
        }
730 chandransh 8244
      }
8245
 
8246
      /**
8247
       * Find the _Fields constant that matches fieldId, throwing an exception
8248
       * if it is not found.
8249
       */
8250
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8251
        _Fields fields = findByThriftId(fieldId);
8252
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8253
        return fields;
8254
      }
8255
 
8256
      /**
8257
       * Find the _Fields constant that matches name, or null if its not found.
8258
       */
8259
      public static _Fields findByName(String name) {
8260
        return byName.get(name);
8261
      }
8262
 
8263
      private final short _thriftId;
8264
      private final String _fieldName;
8265
 
8266
      _Fields(short thriftId, String fieldName) {
8267
        _thriftId = thriftId;
8268
        _fieldName = fieldName;
8269
      }
8270
 
8271
      public short getThriftFieldId() {
8272
        return _thriftId;
8273
      }
8274
 
8275
      public String getFieldName() {
8276
        return _fieldName;
8277
      }
8278
    }
8279
 
8280
    // isset id assignments
8281
 
3430 rajveer 8282
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8283
    static {
3430 rajveer 8284
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8285
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8287
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8289
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8290
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8291
    }
8292
 
8293
    public getDestinationCode_result() {
8294
    }
8295
 
8296
    public getDestinationCode_result(
8297
      String success,
8298
      LogisticsServiceException se)
8299
    {
8300
      this();
8301
      this.success = success;
8302
      this.se = se;
8303
    }
8304
 
8305
    /**
8306
     * Performs a deep copy on <i>other</i>.
8307
     */
8308
    public getDestinationCode_result(getDestinationCode_result other) {
8309
      if (other.isSetSuccess()) {
8310
        this.success = other.success;
8311
      }
8312
      if (other.isSetSe()) {
8313
        this.se = new LogisticsServiceException(other.se);
8314
      }
8315
    }
8316
 
8317
    public getDestinationCode_result deepCopy() {
8318
      return new getDestinationCode_result(this);
8319
    }
8320
 
3430 rajveer 8321
    @Override
8322
    public void clear() {
8323
      this.success = null;
8324
      this.se = null;
730 chandransh 8325
    }
8326
 
8327
    public String getSuccess() {
8328
      return this.success;
8329
    }
8330
 
3430 rajveer 8331
    public void setSuccess(String success) {
730 chandransh 8332
      this.success = success;
8333
    }
8334
 
8335
    public void unsetSuccess() {
8336
      this.success = null;
8337
    }
8338
 
3430 rajveer 8339
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8340
    public boolean isSetSuccess() {
8341
      return this.success != null;
8342
    }
8343
 
8344
    public void setSuccessIsSet(boolean value) {
8345
      if (!value) {
8346
        this.success = null;
8347
      }
8348
    }
8349
 
8350
    public LogisticsServiceException getSe() {
8351
      return this.se;
8352
    }
8353
 
3430 rajveer 8354
    public void setSe(LogisticsServiceException se) {
730 chandransh 8355
      this.se = se;
8356
    }
8357
 
8358
    public void unsetSe() {
8359
      this.se = null;
8360
    }
8361
 
3430 rajveer 8362
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8363
    public boolean isSetSe() {
8364
      return this.se != null;
8365
    }
8366
 
8367
    public void setSeIsSet(boolean value) {
8368
      if (!value) {
8369
        this.se = null;
8370
      }
8371
    }
8372
 
8373
    public void setFieldValue(_Fields field, Object value) {
8374
      switch (field) {
8375
      case SUCCESS:
8376
        if (value == null) {
8377
          unsetSuccess();
8378
        } else {
8379
          setSuccess((String)value);
8380
        }
8381
        break;
8382
 
8383
      case SE:
8384
        if (value == null) {
8385
          unsetSe();
8386
        } else {
8387
          setSe((LogisticsServiceException)value);
8388
        }
8389
        break;
8390
 
8391
      }
8392
    }
8393
 
8394
    public Object getFieldValue(_Fields field) {
8395
      switch (field) {
8396
      case SUCCESS:
8397
        return getSuccess();
8398
 
8399
      case SE:
8400
        return getSe();
8401
 
8402
      }
8403
      throw new IllegalStateException();
8404
    }
8405
 
3430 rajveer 8406
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8407
    public boolean isSet(_Fields field) {
8408
      if (field == null) {
8409
        throw new IllegalArgumentException();
8410
      }
730 chandransh 8411
 
8412
      switch (field) {
8413
      case SUCCESS:
8414
        return isSetSuccess();
8415
      case SE:
8416
        return isSetSe();
8417
      }
8418
      throw new IllegalStateException();
8419
    }
8420
 
8421
    @Override
8422
    public boolean equals(Object that) {
8423
      if (that == null)
8424
        return false;
8425
      if (that instanceof getDestinationCode_result)
8426
        return this.equals((getDestinationCode_result)that);
8427
      return false;
8428
    }
8429
 
8430
    public boolean equals(getDestinationCode_result that) {
8431
      if (that == null)
8432
        return false;
8433
 
8434
      boolean this_present_success = true && this.isSetSuccess();
8435
      boolean that_present_success = true && that.isSetSuccess();
8436
      if (this_present_success || that_present_success) {
8437
        if (!(this_present_success && that_present_success))
8438
          return false;
8439
        if (!this.success.equals(that.success))
8440
          return false;
8441
      }
8442
 
8443
      boolean this_present_se = true && this.isSetSe();
8444
      boolean that_present_se = true && that.isSetSe();
8445
      if (this_present_se || that_present_se) {
8446
        if (!(this_present_se && that_present_se))
8447
          return false;
8448
        if (!this.se.equals(that.se))
8449
          return false;
8450
      }
8451
 
8452
      return true;
8453
    }
8454
 
8455
    @Override
8456
    public int hashCode() {
8457
      return 0;
8458
    }
8459
 
8460
    public int compareTo(getDestinationCode_result other) {
8461
      if (!getClass().equals(other.getClass())) {
8462
        return getClass().getName().compareTo(other.getClass().getName());
8463
      }
8464
 
8465
      int lastComparison = 0;
8466
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8467
 
3430 rajveer 8468
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8469
      if (lastComparison != 0) {
8470
        return lastComparison;
8471
      }
3430 rajveer 8472
      if (isSetSuccess()) {
8473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8474
        if (lastComparison != 0) {
8475
          return lastComparison;
8476
        }
730 chandransh 8477
      }
3430 rajveer 8478
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8479
      if (lastComparison != 0) {
8480
        return lastComparison;
8481
      }
3430 rajveer 8482
      if (isSetSe()) {
8483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8484
        if (lastComparison != 0) {
8485
          return lastComparison;
8486
        }
730 chandransh 8487
      }
8488
      return 0;
8489
    }
8490
 
3430 rajveer 8491
    public _Fields fieldForId(int fieldId) {
8492
      return _Fields.findByThriftId(fieldId);
8493
    }
8494
 
8495
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8496
      org.apache.thrift.protocol.TField field;
730 chandransh 8497
      iprot.readStructBegin();
8498
      while (true)
8499
      {
8500
        field = iprot.readFieldBegin();
3430 rajveer 8501
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8502
          break;
8503
        }
3430 rajveer 8504
        switch (field.id) {
8505
          case 0: // SUCCESS
8506
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8507
              this.success = iprot.readString();
8508
            } else { 
8509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8510
            }
8511
            break;
8512
          case 1: // SE
8513
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8514
              this.se = new LogisticsServiceException();
8515
              this.se.read(iprot);
8516
            } else { 
8517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8518
            }
8519
            break;
8520
          default:
8521
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8522
        }
3430 rajveer 8523
        iprot.readFieldEnd();
730 chandransh 8524
      }
8525
      iprot.readStructEnd();
8526
      validate();
8527
    }
8528
 
3430 rajveer 8529
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8530
      oprot.writeStructBegin(STRUCT_DESC);
8531
 
8532
      if (this.isSetSuccess()) {
8533
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8534
        oprot.writeString(this.success);
8535
        oprot.writeFieldEnd();
8536
      } else if (this.isSetSe()) {
8537
        oprot.writeFieldBegin(SE_FIELD_DESC);
8538
        this.se.write(oprot);
8539
        oprot.writeFieldEnd();
8540
      }
8541
      oprot.writeFieldStop();
8542
      oprot.writeStructEnd();
8543
    }
8544
 
8545
    @Override
8546
    public String toString() {
8547
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
8548
      boolean first = true;
8549
 
8550
      sb.append("success:");
8551
      if (this.success == null) {
8552
        sb.append("null");
8553
      } else {
8554
        sb.append(this.success);
8555
      }
8556
      first = false;
8557
      if (!first) sb.append(", ");
8558
      sb.append("se:");
8559
      if (this.se == null) {
8560
        sb.append("null");
8561
      } else {
8562
        sb.append(this.se);
8563
      }
8564
      first = false;
8565
      sb.append(")");
8566
      return sb.toString();
8567
    }
8568
 
3430 rajveer 8569
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8570
      // check for required fields
8571
    }
8572
 
3430 rajveer 8573
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8574
      try {
8575
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8576
      } catch (org.apache.thrift.TException te) {
8577
        throw new java.io.IOException(te);
8578
      }
8579
    }
8580
 
8581
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8582
      try {
8583
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8584
      } catch (org.apache.thrift.TException te) {
8585
        throw new java.io.IOException(te);
8586
      }
8587
    }
8588
 
730 chandransh 8589
  }
8590
 
3430 rajveer 8591
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
8592
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 8593
 
3430 rajveer 8594
    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);
8595
    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 8596
 
3430 rajveer 8597
    private long providerId; // required
8598
    private String type; // required
1139 chandransh 8599
 
8600
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8601
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 8602
      PROVIDER_ID((short)1, "providerId"),
8603
      TYPE((short)2, "type");
1139 chandransh 8604
 
8605
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8606
 
8607
      static {
8608
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8609
          byName.put(field.getFieldName(), field);
8610
        }
8611
      }
8612
 
8613
      /**
8614
       * Find the _Fields constant that matches fieldId, or null if its not found.
8615
       */
8616
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8617
        switch(fieldId) {
8618
          case 1: // PROVIDER_ID
8619
            return PROVIDER_ID;
8620
          case 2: // TYPE
8621
            return TYPE;
8622
          default:
8623
            return null;
8624
        }
1139 chandransh 8625
      }
8626
 
8627
      /**
8628
       * Find the _Fields constant that matches fieldId, throwing an exception
8629
       * if it is not found.
8630
       */
8631
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8632
        _Fields fields = findByThriftId(fieldId);
8633
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8634
        return fields;
8635
      }
8636
 
8637
      /**
8638
       * Find the _Fields constant that matches name, or null if its not found.
8639
       */
8640
      public static _Fields findByName(String name) {
8641
        return byName.get(name);
8642
      }
8643
 
8644
      private final short _thriftId;
8645
      private final String _fieldName;
8646
 
8647
      _Fields(short thriftId, String fieldName) {
8648
        _thriftId = thriftId;
8649
        _fieldName = fieldName;
8650
      }
8651
 
8652
      public short getThriftFieldId() {
8653
        return _thriftId;
8654
      }
8655
 
8656
      public String getFieldName() {
8657
        return _fieldName;
8658
      }
8659
    }
8660
 
8661
    // isset id assignments
8662
    private static final int __PROVIDERID_ISSET_ID = 0;
8663
    private BitSet __isset_bit_vector = new BitSet(1);
8664
 
3430 rajveer 8665
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8666
    static {
3430 rajveer 8667
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8668
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8670
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 8674
    }
8675
 
8676
    public getFreeAwbCount_args() {
8677
    }
8678
 
8679
    public getFreeAwbCount_args(
3103 chandransh 8680
      long providerId,
8681
      String type)
1139 chandransh 8682
    {
8683
      this();
8684
      this.providerId = providerId;
8685
      setProviderIdIsSet(true);
3103 chandransh 8686
      this.type = type;
1139 chandransh 8687
    }
8688
 
8689
    /**
8690
     * Performs a deep copy on <i>other</i>.
8691
     */
8692
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
8693
      __isset_bit_vector.clear();
8694
      __isset_bit_vector.or(other.__isset_bit_vector);
8695
      this.providerId = other.providerId;
3103 chandransh 8696
      if (other.isSetType()) {
8697
        this.type = other.type;
8698
      }
1139 chandransh 8699
    }
8700
 
8701
    public getFreeAwbCount_args deepCopy() {
8702
      return new getFreeAwbCount_args(this);
8703
    }
8704
 
3430 rajveer 8705
    @Override
8706
    public void clear() {
8707
      setProviderIdIsSet(false);
8708
      this.providerId = 0;
8709
      this.type = null;
1139 chandransh 8710
    }
8711
 
8712
    public long getProviderId() {
8713
      return this.providerId;
8714
    }
8715
 
3430 rajveer 8716
    public void setProviderId(long providerId) {
1139 chandransh 8717
      this.providerId = providerId;
8718
      setProviderIdIsSet(true);
8719
    }
8720
 
8721
    public void unsetProviderId() {
8722
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8723
    }
8724
 
3430 rajveer 8725
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 8726
    public boolean isSetProviderId() {
8727
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8728
    }
8729
 
8730
    public void setProviderIdIsSet(boolean value) {
8731
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8732
    }
8733
 
3103 chandransh 8734
    public String getType() {
8735
      return this.type;
8736
    }
8737
 
3430 rajveer 8738
    public void setType(String type) {
3103 chandransh 8739
      this.type = type;
8740
    }
8741
 
8742
    public void unsetType() {
8743
      this.type = null;
8744
    }
8745
 
3430 rajveer 8746
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 8747
    public boolean isSetType() {
8748
      return this.type != null;
8749
    }
8750
 
8751
    public void setTypeIsSet(boolean value) {
8752
      if (!value) {
8753
        this.type = null;
8754
      }
8755
    }
8756
 
1139 chandransh 8757
    public void setFieldValue(_Fields field, Object value) {
8758
      switch (field) {
8759
      case PROVIDER_ID:
8760
        if (value == null) {
8761
          unsetProviderId();
8762
        } else {
8763
          setProviderId((Long)value);
8764
        }
8765
        break;
8766
 
3103 chandransh 8767
      case TYPE:
8768
        if (value == null) {
8769
          unsetType();
8770
        } else {
8771
          setType((String)value);
8772
        }
8773
        break;
8774
 
1139 chandransh 8775
      }
8776
    }
8777
 
8778
    public Object getFieldValue(_Fields field) {
8779
      switch (field) {
8780
      case PROVIDER_ID:
3430 rajveer 8781
        return Long.valueOf(getProviderId());
1139 chandransh 8782
 
3103 chandransh 8783
      case TYPE:
8784
        return getType();
8785
 
1139 chandransh 8786
      }
8787
      throw new IllegalStateException();
8788
    }
8789
 
3430 rajveer 8790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8791
    public boolean isSet(_Fields field) {
8792
      if (field == null) {
8793
        throw new IllegalArgumentException();
8794
      }
1139 chandransh 8795
 
8796
      switch (field) {
8797
      case PROVIDER_ID:
8798
        return isSetProviderId();
3103 chandransh 8799
      case TYPE:
8800
        return isSetType();
1139 chandransh 8801
      }
8802
      throw new IllegalStateException();
8803
    }
8804
 
8805
    @Override
8806
    public boolean equals(Object that) {
8807
      if (that == null)
8808
        return false;
8809
      if (that instanceof getFreeAwbCount_args)
8810
        return this.equals((getFreeAwbCount_args)that);
8811
      return false;
8812
    }
8813
 
8814
    public boolean equals(getFreeAwbCount_args that) {
8815
      if (that == null)
8816
        return false;
8817
 
8818
      boolean this_present_providerId = true;
8819
      boolean that_present_providerId = true;
8820
      if (this_present_providerId || that_present_providerId) {
8821
        if (!(this_present_providerId && that_present_providerId))
8822
          return false;
8823
        if (this.providerId != that.providerId)
8824
          return false;
8825
      }
8826
 
3103 chandransh 8827
      boolean this_present_type = true && this.isSetType();
8828
      boolean that_present_type = true && that.isSetType();
8829
      if (this_present_type || that_present_type) {
8830
        if (!(this_present_type && that_present_type))
8831
          return false;
8832
        if (!this.type.equals(that.type))
8833
          return false;
8834
      }
8835
 
1139 chandransh 8836
      return true;
8837
    }
8838
 
8839
    @Override
8840
    public int hashCode() {
8841
      return 0;
8842
    }
8843
 
8844
    public int compareTo(getFreeAwbCount_args other) {
8845
      if (!getClass().equals(other.getClass())) {
8846
        return getClass().getName().compareTo(other.getClass().getName());
8847
      }
8848
 
8849
      int lastComparison = 0;
8850
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
8851
 
3430 rajveer 8852
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 8853
      if (lastComparison != 0) {
8854
        return lastComparison;
8855
      }
3430 rajveer 8856
      if (isSetProviderId()) {
8857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8858
        if (lastComparison != 0) {
8859
          return lastComparison;
8860
        }
1139 chandransh 8861
      }
3430 rajveer 8862
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 8863
      if (lastComparison != 0) {
8864
        return lastComparison;
8865
      }
3430 rajveer 8866
      if (isSetType()) {
8867
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
8868
        if (lastComparison != 0) {
8869
          return lastComparison;
8870
        }
3103 chandransh 8871
      }
1139 chandransh 8872
      return 0;
8873
    }
8874
 
3430 rajveer 8875
    public _Fields fieldForId(int fieldId) {
8876
      return _Fields.findByThriftId(fieldId);
8877
    }
8878
 
8879
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8880
      org.apache.thrift.protocol.TField field;
1139 chandransh 8881
      iprot.readStructBegin();
8882
      while (true)
8883
      {
8884
        field = iprot.readFieldBegin();
3430 rajveer 8885
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 8886
          break;
8887
        }
3430 rajveer 8888
        switch (field.id) {
8889
          case 1: // PROVIDER_ID
8890
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8891
              this.providerId = iprot.readI64();
8892
              setProviderIdIsSet(true);
8893
            } else { 
8894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8895
            }
8896
            break;
8897
          case 2: // TYPE
8898
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8899
              this.type = iprot.readString();
8900
            } else { 
8901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8902
            }
8903
            break;
8904
          default:
8905
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 8906
        }
3430 rajveer 8907
        iprot.readFieldEnd();
1139 chandransh 8908
      }
8909
      iprot.readStructEnd();
8910
      validate();
8911
    }
8912
 
3430 rajveer 8913
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 8914
      validate();
8915
 
8916
      oprot.writeStructBegin(STRUCT_DESC);
8917
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8918
      oprot.writeI64(this.providerId);
8919
      oprot.writeFieldEnd();
3103 chandransh 8920
      if (this.type != null) {
8921
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8922
        oprot.writeString(this.type);
8923
        oprot.writeFieldEnd();
8924
      }
1139 chandransh 8925
      oprot.writeFieldStop();
8926
      oprot.writeStructEnd();
8927
    }
8928
 
8929
    @Override
8930
    public String toString() {
8931
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
8932
      boolean first = true;
8933
 
8934
      sb.append("providerId:");
8935
      sb.append(this.providerId);
8936
      first = false;
3103 chandransh 8937
      if (!first) sb.append(", ");
8938
      sb.append("type:");
8939
      if (this.type == null) {
8940
        sb.append("null");
8941
      } else {
8942
        sb.append(this.type);
8943
      }
8944
      first = false;
1139 chandransh 8945
      sb.append(")");
8946
      return sb.toString();
8947
    }
8948
 
3430 rajveer 8949
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 8950
      // check for required fields
8951
    }
8952
 
3430 rajveer 8953
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8954
      try {
8955
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8956
      } catch (org.apache.thrift.TException te) {
8957
        throw new java.io.IOException(te);
8958
      }
8959
    }
8960
 
8961
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8962
      try {
8963
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8964
      } catch (org.apache.thrift.TException te) {
8965
        throw new java.io.IOException(te);
8966
      }
8967
    }
8968
 
1139 chandransh 8969
  }
8970
 
3430 rajveer 8971
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
8972
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 8973
 
3430 rajveer 8974
    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 8975
 
3430 rajveer 8976
    private long success; // required
1139 chandransh 8977
 
8978
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8979
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 8980
      SUCCESS((short)0, "success");
8981
 
8982
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8983
 
8984
      static {
8985
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8986
          byName.put(field.getFieldName(), field);
8987
        }
8988
      }
8989
 
8990
      /**
8991
       * Find the _Fields constant that matches fieldId, or null if its not found.
8992
       */
8993
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8994
        switch(fieldId) {
8995
          case 0: // SUCCESS
8996
            return SUCCESS;
8997
          default:
8998
            return null;
8999
        }
1139 chandransh 9000
      }
9001
 
9002
      /**
9003
       * Find the _Fields constant that matches fieldId, throwing an exception
9004
       * if it is not found.
9005
       */
9006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9007
        _Fields fields = findByThriftId(fieldId);
9008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9009
        return fields;
9010
      }
9011
 
9012
      /**
9013
       * Find the _Fields constant that matches name, or null if its not found.
9014
       */
9015
      public static _Fields findByName(String name) {
9016
        return byName.get(name);
9017
      }
9018
 
9019
      private final short _thriftId;
9020
      private final String _fieldName;
9021
 
9022
      _Fields(short thriftId, String fieldName) {
9023
        _thriftId = thriftId;
9024
        _fieldName = fieldName;
9025
      }
9026
 
9027
      public short getThriftFieldId() {
9028
        return _thriftId;
9029
      }
9030
 
9031
      public String getFieldName() {
9032
        return _fieldName;
9033
      }
9034
    }
9035
 
9036
    // isset id assignments
9037
    private static final int __SUCCESS_ISSET_ID = 0;
9038
    private BitSet __isset_bit_vector = new BitSet(1);
9039
 
3430 rajveer 9040
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9041
    static {
3430 rajveer 9042
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9043
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9044
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9045
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9046
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9047
    }
9048
 
9049
    public getFreeAwbCount_result() {
9050
    }
9051
 
9052
    public getFreeAwbCount_result(
9053
      long success)
9054
    {
9055
      this();
9056
      this.success = success;
9057
      setSuccessIsSet(true);
9058
    }
9059
 
9060
    /**
9061
     * Performs a deep copy on <i>other</i>.
9062
     */
9063
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9064
      __isset_bit_vector.clear();
9065
      __isset_bit_vector.or(other.__isset_bit_vector);
9066
      this.success = other.success;
9067
    }
9068
 
9069
    public getFreeAwbCount_result deepCopy() {
9070
      return new getFreeAwbCount_result(this);
9071
    }
9072
 
3430 rajveer 9073
    @Override
9074
    public void clear() {
9075
      setSuccessIsSet(false);
9076
      this.success = 0;
1139 chandransh 9077
    }
9078
 
9079
    public long getSuccess() {
9080
      return this.success;
9081
    }
9082
 
3430 rajveer 9083
    public void setSuccess(long success) {
1139 chandransh 9084
      this.success = success;
9085
      setSuccessIsSet(true);
9086
    }
9087
 
9088
    public void unsetSuccess() {
9089
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9090
    }
9091
 
3430 rajveer 9092
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9093
    public boolean isSetSuccess() {
9094
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9095
    }
9096
 
9097
    public void setSuccessIsSet(boolean value) {
9098
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9099
    }
9100
 
9101
    public void setFieldValue(_Fields field, Object value) {
9102
      switch (field) {
9103
      case SUCCESS:
9104
        if (value == null) {
9105
          unsetSuccess();
9106
        } else {
9107
          setSuccess((Long)value);
9108
        }
9109
        break;
9110
 
9111
      }
9112
    }
9113
 
9114
    public Object getFieldValue(_Fields field) {
9115
      switch (field) {
9116
      case SUCCESS:
3430 rajveer 9117
        return Long.valueOf(getSuccess());
1139 chandransh 9118
 
9119
      }
9120
      throw new IllegalStateException();
9121
    }
9122
 
3430 rajveer 9123
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9124
    public boolean isSet(_Fields field) {
9125
      if (field == null) {
9126
        throw new IllegalArgumentException();
9127
      }
1139 chandransh 9128
 
9129
      switch (field) {
9130
      case SUCCESS:
9131
        return isSetSuccess();
9132
      }
9133
      throw new IllegalStateException();
9134
    }
9135
 
9136
    @Override
9137
    public boolean equals(Object that) {
9138
      if (that == null)
9139
        return false;
9140
      if (that instanceof getFreeAwbCount_result)
9141
        return this.equals((getFreeAwbCount_result)that);
9142
      return false;
9143
    }
9144
 
9145
    public boolean equals(getFreeAwbCount_result that) {
9146
      if (that == null)
9147
        return false;
9148
 
9149
      boolean this_present_success = true;
9150
      boolean that_present_success = true;
9151
      if (this_present_success || that_present_success) {
9152
        if (!(this_present_success && that_present_success))
9153
          return false;
9154
        if (this.success != that.success)
9155
          return false;
9156
      }
9157
 
9158
      return true;
9159
    }
9160
 
9161
    @Override
9162
    public int hashCode() {
9163
      return 0;
9164
    }
9165
 
9166
    public int compareTo(getFreeAwbCount_result other) {
9167
      if (!getClass().equals(other.getClass())) {
9168
        return getClass().getName().compareTo(other.getClass().getName());
9169
      }
9170
 
9171
      int lastComparison = 0;
9172
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9173
 
3430 rajveer 9174
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9175
      if (lastComparison != 0) {
9176
        return lastComparison;
9177
      }
3430 rajveer 9178
      if (isSetSuccess()) {
9179
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9180
        if (lastComparison != 0) {
9181
          return lastComparison;
9182
        }
1139 chandransh 9183
      }
9184
      return 0;
9185
    }
9186
 
3430 rajveer 9187
    public _Fields fieldForId(int fieldId) {
9188
      return _Fields.findByThriftId(fieldId);
9189
    }
9190
 
9191
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9192
      org.apache.thrift.protocol.TField field;
1139 chandransh 9193
      iprot.readStructBegin();
9194
      while (true)
9195
      {
9196
        field = iprot.readFieldBegin();
3430 rajveer 9197
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9198
          break;
9199
        }
3430 rajveer 9200
        switch (field.id) {
9201
          case 0: // SUCCESS
9202
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9203
              this.success = iprot.readI64();
9204
              setSuccessIsSet(true);
9205
            } else { 
9206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9207
            }
9208
            break;
9209
          default:
9210
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9211
        }
3430 rajveer 9212
        iprot.readFieldEnd();
1139 chandransh 9213
      }
9214
      iprot.readStructEnd();
9215
      validate();
9216
    }
9217
 
3430 rajveer 9218
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9219
      oprot.writeStructBegin(STRUCT_DESC);
9220
 
9221
      if (this.isSetSuccess()) {
9222
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9223
        oprot.writeI64(this.success);
9224
        oprot.writeFieldEnd();
9225
      }
9226
      oprot.writeFieldStop();
9227
      oprot.writeStructEnd();
9228
    }
9229
 
9230
    @Override
9231
    public String toString() {
9232
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9233
      boolean first = true;
9234
 
9235
      sb.append("success:");
9236
      sb.append(this.success);
9237
      first = false;
9238
      sb.append(")");
9239
      return sb.toString();
9240
    }
9241
 
3430 rajveer 9242
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9243
      // check for required fields
9244
    }
9245
 
3430 rajveer 9246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9247
      try {
9248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9249
      } catch (org.apache.thrift.TException te) {
9250
        throw new java.io.IOException(te);
9251
      }
9252
    }
9253
 
9254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9255
      try {
9256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9257
      } catch (org.apache.thrift.TException te) {
9258
        throw new java.io.IOException(te);
9259
      }
9260
    }
9261
 
1139 chandransh 9262
  }
9263
 
3430 rajveer 9264
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9266
 
3430 rajveer 9267
    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);
9268
    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 9269
 
3430 rajveer 9270
    private long fromDate; // required
9271
    private long toDate; // required
1730 ankur.sing 9272
 
9273
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9274
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9275
      FROM_DATE((short)1, "fromDate"),
9276
      TO_DATE((short)2, "toDate");
9277
 
9278
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9279
 
9280
      static {
9281
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9282
          byName.put(field.getFieldName(), field);
9283
        }
9284
      }
9285
 
9286
      /**
9287
       * Find the _Fields constant that matches fieldId, or null if its not found.
9288
       */
9289
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9290
        switch(fieldId) {
9291
          case 1: // FROM_DATE
9292
            return FROM_DATE;
9293
          case 2: // TO_DATE
9294
            return TO_DATE;
9295
          default:
9296
            return null;
9297
        }
1730 ankur.sing 9298
      }
9299
 
9300
      /**
9301
       * Find the _Fields constant that matches fieldId, throwing an exception
9302
       * if it is not found.
9303
       */
9304
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9305
        _Fields fields = findByThriftId(fieldId);
9306
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9307
        return fields;
9308
      }
9309
 
9310
      /**
9311
       * Find the _Fields constant that matches name, or null if its not found.
9312
       */
9313
      public static _Fields findByName(String name) {
9314
        return byName.get(name);
9315
      }
9316
 
9317
      private final short _thriftId;
9318
      private final String _fieldName;
9319
 
9320
      _Fields(short thriftId, String fieldName) {
9321
        _thriftId = thriftId;
9322
        _fieldName = fieldName;
9323
      }
9324
 
9325
      public short getThriftFieldId() {
9326
        return _thriftId;
9327
      }
9328
 
9329
      public String getFieldName() {
9330
        return _fieldName;
9331
      }
9332
    }
9333
 
9334
    // isset id assignments
9335
    private static final int __FROMDATE_ISSET_ID = 0;
9336
    private static final int __TODATE_ISSET_ID = 1;
9337
    private BitSet __isset_bit_vector = new BitSet(2);
9338
 
3430 rajveer 9339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9340
    static {
3430 rajveer 9341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9342
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9344
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9346
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9347
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9348
    }
9349
 
9350
    public getHolidays_args() {
9351
    }
9352
 
9353
    public getHolidays_args(
9354
      long fromDate,
9355
      long toDate)
9356
    {
9357
      this();
9358
      this.fromDate = fromDate;
9359
      setFromDateIsSet(true);
9360
      this.toDate = toDate;
9361
      setToDateIsSet(true);
9362
    }
9363
 
9364
    /**
9365
     * Performs a deep copy on <i>other</i>.
9366
     */
9367
    public getHolidays_args(getHolidays_args other) {
9368
      __isset_bit_vector.clear();
9369
      __isset_bit_vector.or(other.__isset_bit_vector);
9370
      this.fromDate = other.fromDate;
9371
      this.toDate = other.toDate;
9372
    }
9373
 
9374
    public getHolidays_args deepCopy() {
9375
      return new getHolidays_args(this);
9376
    }
9377
 
3430 rajveer 9378
    @Override
9379
    public void clear() {
9380
      setFromDateIsSet(false);
9381
      this.fromDate = 0;
9382
      setToDateIsSet(false);
9383
      this.toDate = 0;
1730 ankur.sing 9384
    }
9385
 
9386
    public long getFromDate() {
9387
      return this.fromDate;
9388
    }
9389
 
3430 rajveer 9390
    public void setFromDate(long fromDate) {
1730 ankur.sing 9391
      this.fromDate = fromDate;
9392
      setFromDateIsSet(true);
9393
    }
9394
 
9395
    public void unsetFromDate() {
9396
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9397
    }
9398
 
3430 rajveer 9399
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9400
    public boolean isSetFromDate() {
9401
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9402
    }
9403
 
9404
    public void setFromDateIsSet(boolean value) {
9405
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9406
    }
9407
 
9408
    public long getToDate() {
9409
      return this.toDate;
9410
    }
9411
 
3430 rajveer 9412
    public void setToDate(long toDate) {
1730 ankur.sing 9413
      this.toDate = toDate;
9414
      setToDateIsSet(true);
9415
    }
9416
 
9417
    public void unsetToDate() {
9418
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9419
    }
9420
 
3430 rajveer 9421
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9422
    public boolean isSetToDate() {
9423
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9424
    }
9425
 
9426
    public void setToDateIsSet(boolean value) {
9427
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9428
    }
9429
 
9430
    public void setFieldValue(_Fields field, Object value) {
9431
      switch (field) {
9432
      case FROM_DATE:
9433
        if (value == null) {
9434
          unsetFromDate();
9435
        } else {
9436
          setFromDate((Long)value);
9437
        }
9438
        break;
9439
 
9440
      case TO_DATE:
9441
        if (value == null) {
9442
          unsetToDate();
9443
        } else {
9444
          setToDate((Long)value);
9445
        }
9446
        break;
9447
 
9448
      }
9449
    }
9450
 
9451
    public Object getFieldValue(_Fields field) {
9452
      switch (field) {
9453
      case FROM_DATE:
3430 rajveer 9454
        return Long.valueOf(getFromDate());
1730 ankur.sing 9455
 
9456
      case TO_DATE:
3430 rajveer 9457
        return Long.valueOf(getToDate());
1730 ankur.sing 9458
 
9459
      }
9460
      throw new IllegalStateException();
9461
    }
9462
 
3430 rajveer 9463
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9464
    public boolean isSet(_Fields field) {
9465
      if (field == null) {
9466
        throw new IllegalArgumentException();
9467
      }
1730 ankur.sing 9468
 
9469
      switch (field) {
9470
      case FROM_DATE:
9471
        return isSetFromDate();
9472
      case TO_DATE:
9473
        return isSetToDate();
9474
      }
9475
      throw new IllegalStateException();
9476
    }
9477
 
9478
    @Override
9479
    public boolean equals(Object that) {
9480
      if (that == null)
9481
        return false;
9482
      if (that instanceof getHolidays_args)
9483
        return this.equals((getHolidays_args)that);
9484
      return false;
9485
    }
9486
 
9487
    public boolean equals(getHolidays_args that) {
9488
      if (that == null)
9489
        return false;
9490
 
9491
      boolean this_present_fromDate = true;
9492
      boolean that_present_fromDate = true;
9493
      if (this_present_fromDate || that_present_fromDate) {
9494
        if (!(this_present_fromDate && that_present_fromDate))
9495
          return false;
9496
        if (this.fromDate != that.fromDate)
9497
          return false;
9498
      }
9499
 
9500
      boolean this_present_toDate = true;
9501
      boolean that_present_toDate = true;
9502
      if (this_present_toDate || that_present_toDate) {
9503
        if (!(this_present_toDate && that_present_toDate))
9504
          return false;
9505
        if (this.toDate != that.toDate)
9506
          return false;
9507
      }
9508
 
9509
      return true;
9510
    }
9511
 
9512
    @Override
9513
    public int hashCode() {
9514
      return 0;
9515
    }
9516
 
9517
    public int compareTo(getHolidays_args other) {
9518
      if (!getClass().equals(other.getClass())) {
9519
        return getClass().getName().compareTo(other.getClass().getName());
9520
      }
9521
 
9522
      int lastComparison = 0;
9523
      getHolidays_args typedOther = (getHolidays_args)other;
9524
 
3430 rajveer 9525
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 9526
      if (lastComparison != 0) {
9527
        return lastComparison;
9528
      }
3430 rajveer 9529
      if (isSetFromDate()) {
9530
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
9531
        if (lastComparison != 0) {
9532
          return lastComparison;
9533
        }
1730 ankur.sing 9534
      }
3430 rajveer 9535
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 9536
      if (lastComparison != 0) {
9537
        return lastComparison;
9538
      }
3430 rajveer 9539
      if (isSetToDate()) {
9540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
9541
        if (lastComparison != 0) {
9542
          return lastComparison;
9543
        }
1730 ankur.sing 9544
      }
9545
      return 0;
9546
    }
9547
 
3430 rajveer 9548
    public _Fields fieldForId(int fieldId) {
9549
      return _Fields.findByThriftId(fieldId);
9550
    }
9551
 
9552
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9553
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9554
      iprot.readStructBegin();
9555
      while (true)
9556
      {
9557
        field = iprot.readFieldBegin();
3430 rajveer 9558
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9559
          break;
9560
        }
3430 rajveer 9561
        switch (field.id) {
9562
          case 1: // FROM_DATE
9563
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9564
              this.fromDate = iprot.readI64();
9565
              setFromDateIsSet(true);
9566
            } else { 
9567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9568
            }
9569
            break;
9570
          case 2: // TO_DATE
9571
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9572
              this.toDate = iprot.readI64();
9573
              setToDateIsSet(true);
9574
            } else { 
9575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9576
            }
9577
            break;
9578
          default:
9579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9580
        }
3430 rajveer 9581
        iprot.readFieldEnd();
1730 ankur.sing 9582
      }
9583
      iprot.readStructEnd();
9584
      validate();
9585
    }
9586
 
3430 rajveer 9587
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9588
      validate();
9589
 
9590
      oprot.writeStructBegin(STRUCT_DESC);
9591
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
9592
      oprot.writeI64(this.fromDate);
9593
      oprot.writeFieldEnd();
9594
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
9595
      oprot.writeI64(this.toDate);
9596
      oprot.writeFieldEnd();
9597
      oprot.writeFieldStop();
9598
      oprot.writeStructEnd();
9599
    }
9600
 
9601
    @Override
9602
    public String toString() {
9603
      StringBuilder sb = new StringBuilder("getHolidays_args(");
9604
      boolean first = true;
9605
 
9606
      sb.append("fromDate:");
9607
      sb.append(this.fromDate);
9608
      first = false;
9609
      if (!first) sb.append(", ");
9610
      sb.append("toDate:");
9611
      sb.append(this.toDate);
9612
      first = false;
9613
      sb.append(")");
9614
      return sb.toString();
9615
    }
9616
 
3430 rajveer 9617
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9618
      // check for required fields
9619
    }
9620
 
3430 rajveer 9621
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9622
      try {
9623
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9624
      } catch (org.apache.thrift.TException te) {
9625
        throw new java.io.IOException(te);
9626
      }
9627
    }
9628
 
9629
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9630
      try {
9631
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9632
      } catch (org.apache.thrift.TException te) {
9633
        throw new java.io.IOException(te);
9634
      }
9635
    }
9636
 
1730 ankur.sing 9637
  }
9638
 
3430 rajveer 9639
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
9640
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 9641
 
3430 rajveer 9642
    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 9643
 
3430 rajveer 9644
    private List<Long> success; // required
1730 ankur.sing 9645
 
9646
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9647
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9648
      SUCCESS((short)0, "success");
9649
 
9650
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9651
 
9652
      static {
9653
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9654
          byName.put(field.getFieldName(), field);
9655
        }
9656
      }
9657
 
9658
      /**
9659
       * Find the _Fields constant that matches fieldId, or null if its not found.
9660
       */
9661
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9662
        switch(fieldId) {
9663
          case 0: // SUCCESS
9664
            return SUCCESS;
9665
          default:
9666
            return null;
9667
        }
1730 ankur.sing 9668
      }
9669
 
9670
      /**
9671
       * Find the _Fields constant that matches fieldId, throwing an exception
9672
       * if it is not found.
9673
       */
9674
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9675
        _Fields fields = findByThriftId(fieldId);
9676
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9677
        return fields;
9678
      }
9679
 
9680
      /**
9681
       * Find the _Fields constant that matches name, or null if its not found.
9682
       */
9683
      public static _Fields findByName(String name) {
9684
        return byName.get(name);
9685
      }
9686
 
9687
      private final short _thriftId;
9688
      private final String _fieldName;
9689
 
9690
      _Fields(short thriftId, String fieldName) {
9691
        _thriftId = thriftId;
9692
        _fieldName = fieldName;
9693
      }
9694
 
9695
      public short getThriftFieldId() {
9696
        return _thriftId;
9697
      }
9698
 
9699
      public String getFieldName() {
9700
        return _fieldName;
9701
      }
9702
    }
9703
 
9704
    // isset id assignments
9705
 
3430 rajveer 9706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9707
    static {
3430 rajveer 9708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9709
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9710
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9711
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9712
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9713
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 9714
    }
9715
 
9716
    public getHolidays_result() {
9717
    }
9718
 
9719
    public getHolidays_result(
9720
      List<Long> success)
9721
    {
9722
      this();
9723
      this.success = success;
9724
    }
9725
 
9726
    /**
9727
     * Performs a deep copy on <i>other</i>.
9728
     */
9729
    public getHolidays_result(getHolidays_result other) {
9730
      if (other.isSetSuccess()) {
9731
        List<Long> __this__success = new ArrayList<Long>();
9732
        for (Long other_element : other.success) {
9733
          __this__success.add(other_element);
9734
        }
9735
        this.success = __this__success;
9736
      }
9737
    }
9738
 
9739
    public getHolidays_result deepCopy() {
9740
      return new getHolidays_result(this);
9741
    }
9742
 
3430 rajveer 9743
    @Override
9744
    public void clear() {
9745
      this.success = null;
1730 ankur.sing 9746
    }
9747
 
9748
    public int getSuccessSize() {
9749
      return (this.success == null) ? 0 : this.success.size();
9750
    }
9751
 
9752
    public java.util.Iterator<Long> getSuccessIterator() {
9753
      return (this.success == null) ? null : this.success.iterator();
9754
    }
9755
 
9756
    public void addToSuccess(long elem) {
9757
      if (this.success == null) {
9758
        this.success = new ArrayList<Long>();
9759
      }
9760
      this.success.add(elem);
9761
    }
9762
 
9763
    public List<Long> getSuccess() {
9764
      return this.success;
9765
    }
9766
 
3430 rajveer 9767
    public void setSuccess(List<Long> success) {
1730 ankur.sing 9768
      this.success = success;
9769
    }
9770
 
9771
    public void unsetSuccess() {
9772
      this.success = null;
9773
    }
9774
 
3430 rajveer 9775
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9776
    public boolean isSetSuccess() {
9777
      return this.success != null;
9778
    }
9779
 
9780
    public void setSuccessIsSet(boolean value) {
9781
      if (!value) {
9782
        this.success = null;
9783
      }
9784
    }
9785
 
9786
    public void setFieldValue(_Fields field, Object value) {
9787
      switch (field) {
9788
      case SUCCESS:
9789
        if (value == null) {
9790
          unsetSuccess();
9791
        } else {
9792
          setSuccess((List<Long>)value);
9793
        }
9794
        break;
9795
 
9796
      }
9797
    }
9798
 
9799
    public Object getFieldValue(_Fields field) {
9800
      switch (field) {
9801
      case SUCCESS:
9802
        return getSuccess();
9803
 
9804
      }
9805
      throw new IllegalStateException();
9806
    }
9807
 
3430 rajveer 9808
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9809
    public boolean isSet(_Fields field) {
9810
      if (field == null) {
9811
        throw new IllegalArgumentException();
9812
      }
1730 ankur.sing 9813
 
9814
      switch (field) {
9815
      case SUCCESS:
9816
        return isSetSuccess();
9817
      }
9818
      throw new IllegalStateException();
9819
    }
9820
 
9821
    @Override
9822
    public boolean equals(Object that) {
9823
      if (that == null)
9824
        return false;
9825
      if (that instanceof getHolidays_result)
9826
        return this.equals((getHolidays_result)that);
9827
      return false;
9828
    }
9829
 
9830
    public boolean equals(getHolidays_result that) {
9831
      if (that == null)
9832
        return false;
9833
 
9834
      boolean this_present_success = true && this.isSetSuccess();
9835
      boolean that_present_success = true && that.isSetSuccess();
9836
      if (this_present_success || that_present_success) {
9837
        if (!(this_present_success && that_present_success))
9838
          return false;
9839
        if (!this.success.equals(that.success))
9840
          return false;
9841
      }
9842
 
9843
      return true;
9844
    }
9845
 
9846
    @Override
9847
    public int hashCode() {
9848
      return 0;
9849
    }
9850
 
9851
    public int compareTo(getHolidays_result other) {
9852
      if (!getClass().equals(other.getClass())) {
9853
        return getClass().getName().compareTo(other.getClass().getName());
9854
      }
9855
 
9856
      int lastComparison = 0;
9857
      getHolidays_result typedOther = (getHolidays_result)other;
9858
 
3430 rajveer 9859
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 9860
      if (lastComparison != 0) {
9861
        return lastComparison;
9862
      }
3430 rajveer 9863
      if (isSetSuccess()) {
9864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9865
        if (lastComparison != 0) {
9866
          return lastComparison;
9867
        }
1730 ankur.sing 9868
      }
9869
      return 0;
9870
    }
9871
 
3430 rajveer 9872
    public _Fields fieldForId(int fieldId) {
9873
      return _Fields.findByThriftId(fieldId);
9874
    }
9875
 
9876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9877
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9878
      iprot.readStructBegin();
9879
      while (true)
9880
      {
9881
        field = iprot.readFieldBegin();
3430 rajveer 9882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9883
          break;
9884
        }
3430 rajveer 9885
        switch (field.id) {
9886
          case 0: // SUCCESS
9887
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9888
              {
9889
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
9890
                this.success = new ArrayList<Long>(_list13.size);
9891
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 9892
                {
3430 rajveer 9893
                  long _elem15; // required
9894
                  _elem15 = iprot.readI64();
9895
                  this.success.add(_elem15);
1730 ankur.sing 9896
                }
3430 rajveer 9897
                iprot.readListEnd();
1730 ankur.sing 9898
              }
3430 rajveer 9899
            } else { 
9900
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9901
            }
9902
            break;
9903
          default:
9904
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9905
        }
3430 rajveer 9906
        iprot.readFieldEnd();
1730 ankur.sing 9907
      }
9908
      iprot.readStructEnd();
9909
      validate();
9910
    }
9911
 
3430 rajveer 9912
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9913
      oprot.writeStructBegin(STRUCT_DESC);
9914
 
9915
      if (this.isSetSuccess()) {
9916
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9917
        {
3430 rajveer 9918
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 9919
          for (long _iter16 : this.success)
1730 ankur.sing 9920
          {
3044 chandransh 9921
            oprot.writeI64(_iter16);
1730 ankur.sing 9922
          }
9923
          oprot.writeListEnd();
9924
        }
9925
        oprot.writeFieldEnd();
9926
      }
9927
      oprot.writeFieldStop();
9928
      oprot.writeStructEnd();
9929
    }
9930
 
9931
    @Override
9932
    public String toString() {
9933
      StringBuilder sb = new StringBuilder("getHolidays_result(");
9934
      boolean first = true;
9935
 
9936
      sb.append("success:");
9937
      if (this.success == null) {
9938
        sb.append("null");
9939
      } else {
9940
        sb.append(this.success);
9941
      }
9942
      first = false;
9943
      sb.append(")");
9944
      return sb.toString();
9945
    }
9946
 
3430 rajveer 9947
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9948
      // check for required fields
9949
    }
9950
 
3430 rajveer 9951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9952
      try {
9953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9954
      } catch (org.apache.thrift.TException te) {
9955
        throw new java.io.IOException(te);
9956
      }
9957
    }
9958
 
9959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9960
      try {
9961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9962
      } catch (org.apache.thrift.TException te) {
9963
        throw new java.io.IOException(te);
9964
      }
9965
    }
9966
 
1730 ankur.sing 9967
  }
9968
 
4934 amit.gupta 9969
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
9970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
9971
 
9972
    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);
9973
    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);
9974
    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);
9975
 
9976
    private long catalogItemId; // required
9977
    private String destination_pin; // required
9978
    private DeliveryType type; // required
9979
 
9980
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9981
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9982
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
9983
      DESTINATION_PIN((short)2, "destination_pin"),
9984
      /**
9985
       * 
9986
       * @see DeliveryType
9987
       */
9988
      TYPE((short)3, "type");
9989
 
9990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9991
 
9992
      static {
9993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9994
          byName.put(field.getFieldName(), field);
9995
        }
9996
      }
9997
 
9998
      /**
9999
       * Find the _Fields constant that matches fieldId, or null if its not found.
10000
       */
10001
      public static _Fields findByThriftId(int fieldId) {
10002
        switch(fieldId) {
10003
          case 1: // CATALOG_ITEM_ID
10004
            return CATALOG_ITEM_ID;
10005
          case 2: // DESTINATION_PIN
10006
            return DESTINATION_PIN;
10007
          case 3: // TYPE
10008
            return TYPE;
10009
          default:
10010
            return null;
10011
        }
10012
      }
10013
 
10014
      /**
10015
       * Find the _Fields constant that matches fieldId, throwing an exception
10016
       * if it is not found.
10017
       */
10018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10019
        _Fields fields = findByThriftId(fieldId);
10020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10021
        return fields;
10022
      }
10023
 
10024
      /**
10025
       * Find the _Fields constant that matches name, or null if its not found.
10026
       */
10027
      public static _Fields findByName(String name) {
10028
        return byName.get(name);
10029
      }
10030
 
10031
      private final short _thriftId;
10032
      private final String _fieldName;
10033
 
10034
      _Fields(short thriftId, String fieldName) {
10035
        _thriftId = thriftId;
10036
        _fieldName = fieldName;
10037
      }
10038
 
10039
      public short getThriftFieldId() {
10040
        return _thriftId;
10041
      }
10042
 
10043
      public String getFieldName() {
10044
        return _fieldName;
10045
      }
10046
    }
10047
 
10048
    // isset id assignments
10049
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10050
    private BitSet __isset_bit_vector = new BitSet(1);
10051
 
10052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10053
    static {
10054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10055
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10057
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10059
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10060
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10061
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10062
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10063
    }
10064
 
10065
    public getEntityLogisticsEstimation_args() {
10066
    }
10067
 
10068
    public getEntityLogisticsEstimation_args(
10069
      long catalogItemId,
10070
      String destination_pin,
10071
      DeliveryType type)
10072
    {
10073
      this();
10074
      this.catalogItemId = catalogItemId;
10075
      setCatalogItemIdIsSet(true);
10076
      this.destination_pin = destination_pin;
10077
      this.type = type;
10078
    }
10079
 
10080
    /**
10081
     * Performs a deep copy on <i>other</i>.
10082
     */
10083
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10084
      __isset_bit_vector.clear();
10085
      __isset_bit_vector.or(other.__isset_bit_vector);
10086
      this.catalogItemId = other.catalogItemId;
10087
      if (other.isSetDestination_pin()) {
10088
        this.destination_pin = other.destination_pin;
10089
      }
10090
      if (other.isSetType()) {
10091
        this.type = other.type;
10092
      }
10093
    }
10094
 
10095
    public getEntityLogisticsEstimation_args deepCopy() {
10096
      return new getEntityLogisticsEstimation_args(this);
10097
    }
10098
 
10099
    @Override
10100
    public void clear() {
10101
      setCatalogItemIdIsSet(false);
10102
      this.catalogItemId = 0;
10103
      this.destination_pin = null;
10104
      this.type = null;
10105
    }
10106
 
10107
    public long getCatalogItemId() {
10108
      return this.catalogItemId;
10109
    }
10110
 
10111
    public void setCatalogItemId(long catalogItemId) {
10112
      this.catalogItemId = catalogItemId;
10113
      setCatalogItemIdIsSet(true);
10114
    }
10115
 
10116
    public void unsetCatalogItemId() {
10117
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10118
    }
10119
 
10120
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10121
    public boolean isSetCatalogItemId() {
10122
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10123
    }
10124
 
10125
    public void setCatalogItemIdIsSet(boolean value) {
10126
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10127
    }
10128
 
10129
    public String getDestination_pin() {
10130
      return this.destination_pin;
10131
    }
10132
 
10133
    public void setDestination_pin(String destination_pin) {
10134
      this.destination_pin = destination_pin;
10135
    }
10136
 
10137
    public void unsetDestination_pin() {
10138
      this.destination_pin = null;
10139
    }
10140
 
10141
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10142
    public boolean isSetDestination_pin() {
10143
      return this.destination_pin != null;
10144
    }
10145
 
10146
    public void setDestination_pinIsSet(boolean value) {
10147
      if (!value) {
10148
        this.destination_pin = null;
10149
      }
10150
    }
10151
 
10152
    /**
10153
     * 
10154
     * @see DeliveryType
10155
     */
10156
    public DeliveryType getType() {
10157
      return this.type;
10158
    }
10159
 
10160
    /**
10161
     * 
10162
     * @see DeliveryType
10163
     */
10164
    public void setType(DeliveryType type) {
10165
      this.type = type;
10166
    }
10167
 
10168
    public void unsetType() {
10169
      this.type = null;
10170
    }
10171
 
10172
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10173
    public boolean isSetType() {
10174
      return this.type != null;
10175
    }
10176
 
10177
    public void setTypeIsSet(boolean value) {
10178
      if (!value) {
10179
        this.type = null;
10180
      }
10181
    }
10182
 
10183
    public void setFieldValue(_Fields field, Object value) {
10184
      switch (field) {
10185
      case CATALOG_ITEM_ID:
10186
        if (value == null) {
10187
          unsetCatalogItemId();
10188
        } else {
10189
          setCatalogItemId((Long)value);
10190
        }
10191
        break;
10192
 
10193
      case DESTINATION_PIN:
10194
        if (value == null) {
10195
          unsetDestination_pin();
10196
        } else {
10197
          setDestination_pin((String)value);
10198
        }
10199
        break;
10200
 
10201
      case TYPE:
10202
        if (value == null) {
10203
          unsetType();
10204
        } else {
10205
          setType((DeliveryType)value);
10206
        }
10207
        break;
10208
 
10209
      }
10210
    }
10211
 
10212
    public Object getFieldValue(_Fields field) {
10213
      switch (field) {
10214
      case CATALOG_ITEM_ID:
10215
        return Long.valueOf(getCatalogItemId());
10216
 
10217
      case DESTINATION_PIN:
10218
        return getDestination_pin();
10219
 
10220
      case TYPE:
10221
        return getType();
10222
 
10223
      }
10224
      throw new IllegalStateException();
10225
    }
10226
 
10227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10228
    public boolean isSet(_Fields field) {
10229
      if (field == null) {
10230
        throw new IllegalArgumentException();
10231
      }
10232
 
10233
      switch (field) {
10234
      case CATALOG_ITEM_ID:
10235
        return isSetCatalogItemId();
10236
      case DESTINATION_PIN:
10237
        return isSetDestination_pin();
10238
      case TYPE:
10239
        return isSetType();
10240
      }
10241
      throw new IllegalStateException();
10242
    }
10243
 
10244
    @Override
10245
    public boolean equals(Object that) {
10246
      if (that == null)
10247
        return false;
10248
      if (that instanceof getEntityLogisticsEstimation_args)
10249
        return this.equals((getEntityLogisticsEstimation_args)that);
10250
      return false;
10251
    }
10252
 
10253
    public boolean equals(getEntityLogisticsEstimation_args that) {
10254
      if (that == null)
10255
        return false;
10256
 
10257
      boolean this_present_catalogItemId = true;
10258
      boolean that_present_catalogItemId = true;
10259
      if (this_present_catalogItemId || that_present_catalogItemId) {
10260
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10261
          return false;
10262
        if (this.catalogItemId != that.catalogItemId)
10263
          return false;
10264
      }
10265
 
10266
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10267
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10268
      if (this_present_destination_pin || that_present_destination_pin) {
10269
        if (!(this_present_destination_pin && that_present_destination_pin))
10270
          return false;
10271
        if (!this.destination_pin.equals(that.destination_pin))
10272
          return false;
10273
      }
10274
 
10275
      boolean this_present_type = true && this.isSetType();
10276
      boolean that_present_type = true && that.isSetType();
10277
      if (this_present_type || that_present_type) {
10278
        if (!(this_present_type && that_present_type))
10279
          return false;
10280
        if (!this.type.equals(that.type))
10281
          return false;
10282
      }
10283
 
10284
      return true;
10285
    }
10286
 
10287
    @Override
10288
    public int hashCode() {
10289
      return 0;
10290
    }
10291
 
10292
    public int compareTo(getEntityLogisticsEstimation_args other) {
10293
      if (!getClass().equals(other.getClass())) {
10294
        return getClass().getName().compareTo(other.getClass().getName());
10295
      }
10296
 
10297
      int lastComparison = 0;
10298
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10299
 
10300
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10301
      if (lastComparison != 0) {
10302
        return lastComparison;
10303
      }
10304
      if (isSetCatalogItemId()) {
10305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10306
        if (lastComparison != 0) {
10307
          return lastComparison;
10308
        }
10309
      }
10310
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10311
      if (lastComparison != 0) {
10312
        return lastComparison;
10313
      }
10314
      if (isSetDestination_pin()) {
10315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10316
        if (lastComparison != 0) {
10317
          return lastComparison;
10318
        }
10319
      }
10320
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10321
      if (lastComparison != 0) {
10322
        return lastComparison;
10323
      }
10324
      if (isSetType()) {
10325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10326
        if (lastComparison != 0) {
10327
          return lastComparison;
10328
        }
10329
      }
10330
      return 0;
10331
    }
10332
 
10333
    public _Fields fieldForId(int fieldId) {
10334
      return _Fields.findByThriftId(fieldId);
10335
    }
10336
 
10337
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10338
      org.apache.thrift.protocol.TField field;
10339
      iprot.readStructBegin();
10340
      while (true)
10341
      {
10342
        field = iprot.readFieldBegin();
10343
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10344
          break;
10345
        }
10346
        switch (field.id) {
10347
          case 1: // CATALOG_ITEM_ID
10348
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10349
              this.catalogItemId = iprot.readI64();
10350
              setCatalogItemIdIsSet(true);
10351
            } else { 
10352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10353
            }
10354
            break;
10355
          case 2: // DESTINATION_PIN
10356
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10357
              this.destination_pin = iprot.readString();
10358
            } else { 
10359
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10360
            }
10361
            break;
10362
          case 3: // TYPE
10363
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10364
              this.type = DeliveryType.findByValue(iprot.readI32());
10365
            } else { 
10366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10367
            }
10368
            break;
10369
          default:
10370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10371
        }
10372
        iprot.readFieldEnd();
10373
      }
10374
      iprot.readStructEnd();
10375
      validate();
10376
    }
10377
 
10378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10379
      validate();
10380
 
10381
      oprot.writeStructBegin(STRUCT_DESC);
10382
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10383
      oprot.writeI64(this.catalogItemId);
10384
      oprot.writeFieldEnd();
10385
      if (this.destination_pin != null) {
10386
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10387
        oprot.writeString(this.destination_pin);
10388
        oprot.writeFieldEnd();
10389
      }
10390
      if (this.type != null) {
10391
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10392
        oprot.writeI32(this.type.getValue());
10393
        oprot.writeFieldEnd();
10394
      }
10395
      oprot.writeFieldStop();
10396
      oprot.writeStructEnd();
10397
    }
10398
 
10399
    @Override
10400
    public String toString() {
10401
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10402
      boolean first = true;
10403
 
10404
      sb.append("catalogItemId:");
10405
      sb.append(this.catalogItemId);
10406
      first = false;
10407
      if (!first) sb.append(", ");
10408
      sb.append("destination_pin:");
10409
      if (this.destination_pin == null) {
10410
        sb.append("null");
10411
      } else {
10412
        sb.append(this.destination_pin);
10413
      }
10414
      first = false;
10415
      if (!first) sb.append(", ");
10416
      sb.append("type:");
10417
      if (this.type == null) {
10418
        sb.append("null");
10419
      } else {
10420
        sb.append(this.type);
10421
      }
10422
      first = false;
10423
      sb.append(")");
10424
      return sb.toString();
10425
    }
10426
 
10427
    public void validate() throws org.apache.thrift.TException {
10428
      // check for required fields
10429
    }
10430
 
10431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10432
      try {
10433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10434
      } catch (org.apache.thrift.TException te) {
10435
        throw new java.io.IOException(te);
10436
      }
10437
    }
10438
 
10439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10440
      try {
10441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10442
      } catch (org.apache.thrift.TException te) {
10443
        throw new java.io.IOException(te);
10444
      }
10445
    }
10446
 
10447
  }
10448
 
10449
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10451
 
10452
    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);
10453
    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);
10454
 
10455
    private List<Long> success; // required
10456
    private LogisticsServiceException se; // required
10457
 
10458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10460
      SUCCESS((short)0, "success"),
10461
      SE((short)1, "se");
10462
 
10463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10464
 
10465
      static {
10466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10467
          byName.put(field.getFieldName(), field);
10468
        }
10469
      }
10470
 
10471
      /**
10472
       * Find the _Fields constant that matches fieldId, or null if its not found.
10473
       */
10474
      public static _Fields findByThriftId(int fieldId) {
10475
        switch(fieldId) {
10476
          case 0: // SUCCESS
10477
            return SUCCESS;
10478
          case 1: // SE
10479
            return SE;
10480
          default:
10481
            return null;
10482
        }
10483
      }
10484
 
10485
      /**
10486
       * Find the _Fields constant that matches fieldId, throwing an exception
10487
       * if it is not found.
10488
       */
10489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10490
        _Fields fields = findByThriftId(fieldId);
10491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10492
        return fields;
10493
      }
10494
 
10495
      /**
10496
       * Find the _Fields constant that matches name, or null if its not found.
10497
       */
10498
      public static _Fields findByName(String name) {
10499
        return byName.get(name);
10500
      }
10501
 
10502
      private final short _thriftId;
10503
      private final String _fieldName;
10504
 
10505
      _Fields(short thriftId, String fieldName) {
10506
        _thriftId = thriftId;
10507
        _fieldName = fieldName;
10508
      }
10509
 
10510
      public short getThriftFieldId() {
10511
        return _thriftId;
10512
      }
10513
 
10514
      public String getFieldName() {
10515
        return _fieldName;
10516
      }
10517
    }
10518
 
10519
    // isset id assignments
10520
 
10521
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10522
    static {
10523
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10524
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10525
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10526
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10527
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
10531
    }
10532
 
10533
    public getEntityLogisticsEstimation_result() {
10534
    }
10535
 
10536
    public getEntityLogisticsEstimation_result(
10537
      List<Long> success,
10538
      LogisticsServiceException se)
10539
    {
10540
      this();
10541
      this.success = success;
10542
      this.se = se;
10543
    }
10544
 
10545
    /**
10546
     * Performs a deep copy on <i>other</i>.
10547
     */
10548
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
10549
      if (other.isSetSuccess()) {
10550
        List<Long> __this__success = new ArrayList<Long>();
10551
        for (Long other_element : other.success) {
10552
          __this__success.add(other_element);
10553
        }
10554
        this.success = __this__success;
10555
      }
10556
      if (other.isSetSe()) {
10557
        this.se = new LogisticsServiceException(other.se);
10558
      }
10559
    }
10560
 
10561
    public getEntityLogisticsEstimation_result deepCopy() {
10562
      return new getEntityLogisticsEstimation_result(this);
10563
    }
10564
 
10565
    @Override
10566
    public void clear() {
10567
      this.success = null;
10568
      this.se = null;
10569
    }
10570
 
10571
    public int getSuccessSize() {
10572
      return (this.success == null) ? 0 : this.success.size();
10573
    }
10574
 
10575
    public java.util.Iterator<Long> getSuccessIterator() {
10576
      return (this.success == null) ? null : this.success.iterator();
10577
    }
10578
 
10579
    public void addToSuccess(long elem) {
10580
      if (this.success == null) {
10581
        this.success = new ArrayList<Long>();
10582
      }
10583
      this.success.add(elem);
10584
    }
10585
 
10586
    public List<Long> getSuccess() {
10587
      return this.success;
10588
    }
10589
 
10590
    public void setSuccess(List<Long> success) {
10591
      this.success = success;
10592
    }
10593
 
10594
    public void unsetSuccess() {
10595
      this.success = null;
10596
    }
10597
 
10598
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10599
    public boolean isSetSuccess() {
10600
      return this.success != null;
10601
    }
10602
 
10603
    public void setSuccessIsSet(boolean value) {
10604
      if (!value) {
10605
        this.success = null;
10606
      }
10607
    }
10608
 
10609
    public LogisticsServiceException getSe() {
10610
      return this.se;
10611
    }
10612
 
10613
    public void setSe(LogisticsServiceException se) {
10614
      this.se = se;
10615
    }
10616
 
10617
    public void unsetSe() {
10618
      this.se = null;
10619
    }
10620
 
10621
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10622
    public boolean isSetSe() {
10623
      return this.se != null;
10624
    }
10625
 
10626
    public void setSeIsSet(boolean value) {
10627
      if (!value) {
10628
        this.se = null;
10629
      }
10630
    }
10631
 
10632
    public void setFieldValue(_Fields field, Object value) {
10633
      switch (field) {
10634
      case SUCCESS:
10635
        if (value == null) {
10636
          unsetSuccess();
10637
        } else {
10638
          setSuccess((List<Long>)value);
10639
        }
10640
        break;
10641
 
10642
      case SE:
10643
        if (value == null) {
10644
          unsetSe();
10645
        } else {
10646
          setSe((LogisticsServiceException)value);
10647
        }
10648
        break;
10649
 
10650
      }
10651
    }
10652
 
10653
    public Object getFieldValue(_Fields field) {
10654
      switch (field) {
10655
      case SUCCESS:
10656
        return getSuccess();
10657
 
10658
      case SE:
10659
        return getSe();
10660
 
10661
      }
10662
      throw new IllegalStateException();
10663
    }
10664
 
10665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10666
    public boolean isSet(_Fields field) {
10667
      if (field == null) {
10668
        throw new IllegalArgumentException();
10669
      }
10670
 
10671
      switch (field) {
10672
      case SUCCESS:
10673
        return isSetSuccess();
10674
      case SE:
10675
        return isSetSe();
10676
      }
10677
      throw new IllegalStateException();
10678
    }
10679
 
10680
    @Override
10681
    public boolean equals(Object that) {
10682
      if (that == null)
10683
        return false;
10684
      if (that instanceof getEntityLogisticsEstimation_result)
10685
        return this.equals((getEntityLogisticsEstimation_result)that);
10686
      return false;
10687
    }
10688
 
10689
    public boolean equals(getEntityLogisticsEstimation_result that) {
10690
      if (that == null)
10691
        return false;
10692
 
10693
      boolean this_present_success = true && this.isSetSuccess();
10694
      boolean that_present_success = true && that.isSetSuccess();
10695
      if (this_present_success || that_present_success) {
10696
        if (!(this_present_success && that_present_success))
10697
          return false;
10698
        if (!this.success.equals(that.success))
10699
          return false;
10700
      }
10701
 
10702
      boolean this_present_se = true && this.isSetSe();
10703
      boolean that_present_se = true && that.isSetSe();
10704
      if (this_present_se || that_present_se) {
10705
        if (!(this_present_se && that_present_se))
10706
          return false;
10707
        if (!this.se.equals(that.se))
10708
          return false;
10709
      }
10710
 
10711
      return true;
10712
    }
10713
 
10714
    @Override
10715
    public int hashCode() {
10716
      return 0;
10717
    }
10718
 
10719
    public int compareTo(getEntityLogisticsEstimation_result other) {
10720
      if (!getClass().equals(other.getClass())) {
10721
        return getClass().getName().compareTo(other.getClass().getName());
10722
      }
10723
 
10724
      int lastComparison = 0;
10725
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
10726
 
10727
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10728
      if (lastComparison != 0) {
10729
        return lastComparison;
10730
      }
10731
      if (isSetSuccess()) {
10732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10733
        if (lastComparison != 0) {
10734
          return lastComparison;
10735
        }
10736
      }
10737
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10738
      if (lastComparison != 0) {
10739
        return lastComparison;
10740
      }
10741
      if (isSetSe()) {
10742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10743
        if (lastComparison != 0) {
10744
          return lastComparison;
10745
        }
10746
      }
10747
      return 0;
10748
    }
10749
 
10750
    public _Fields fieldForId(int fieldId) {
10751
      return _Fields.findByThriftId(fieldId);
10752
    }
10753
 
10754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10755
      org.apache.thrift.protocol.TField field;
10756
      iprot.readStructBegin();
10757
      while (true)
10758
      {
10759
        field = iprot.readFieldBegin();
10760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10761
          break;
10762
        }
10763
        switch (field.id) {
10764
          case 0: // SUCCESS
10765
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10766
              {
10767
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
10768
                this.success = new ArrayList<Long>(_list17.size);
10769
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
10770
                {
10771
                  long _elem19; // required
10772
                  _elem19 = iprot.readI64();
10773
                  this.success.add(_elem19);
10774
                }
10775
                iprot.readListEnd();
10776
              }
10777
            } else { 
10778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10779
            }
10780
            break;
10781
          case 1: // SE
10782
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10783
              this.se = new LogisticsServiceException();
10784
              this.se.read(iprot);
10785
            } else { 
10786
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10787
            }
10788
            break;
10789
          default:
10790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10791
        }
10792
        iprot.readFieldEnd();
10793
      }
10794
      iprot.readStructEnd();
10795
      validate();
10796
    }
10797
 
10798
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10799
      oprot.writeStructBegin(STRUCT_DESC);
10800
 
10801
      if (this.isSetSuccess()) {
10802
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10803
        {
10804
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
10805
          for (long _iter20 : this.success)
10806
          {
10807
            oprot.writeI64(_iter20);
10808
          }
10809
          oprot.writeListEnd();
10810
        }
10811
        oprot.writeFieldEnd();
10812
      } else if (this.isSetSe()) {
10813
        oprot.writeFieldBegin(SE_FIELD_DESC);
10814
        this.se.write(oprot);
10815
        oprot.writeFieldEnd();
10816
      }
10817
      oprot.writeFieldStop();
10818
      oprot.writeStructEnd();
10819
    }
10820
 
10821
    @Override
10822
    public String toString() {
10823
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
10824
      boolean first = true;
10825
 
10826
      sb.append("success:");
10827
      if (this.success == null) {
10828
        sb.append("null");
10829
      } else {
10830
        sb.append(this.success);
10831
      }
10832
      first = false;
10833
      if (!first) sb.append(", ");
10834
      sb.append("se:");
10835
      if (this.se == null) {
10836
        sb.append("null");
10837
      } else {
10838
        sb.append(this.se);
10839
      }
10840
      first = false;
10841
      sb.append(")");
10842
      return sb.toString();
10843
    }
10844
 
10845
    public void validate() throws org.apache.thrift.TException {
10846
      // check for required fields
10847
    }
10848
 
10849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10850
      try {
10851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10852
      } catch (org.apache.thrift.TException te) {
10853
        throw new java.io.IOException(te);
10854
      }
10855
    }
10856
 
10857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10858
      try {
10859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10860
      } catch (org.apache.thrift.TException te) {
10861
        throw new java.io.IOException(te);
10862
      }
10863
    }
10864
 
10865
  }
10866
 
5527 anupam.sin 10867
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
10868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
10869
 
10870
    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);
10871
 
10872
    private long pickUp; // required
10873
 
10874
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10875
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10876
      PICK_UP((short)1, "pickUp");
10877
 
10878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10879
 
10880
      static {
10881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10882
          byName.put(field.getFieldName(), field);
10883
        }
10884
      }
10885
 
10886
      /**
10887
       * Find the _Fields constant that matches fieldId, or null if its not found.
10888
       */
10889
      public static _Fields findByThriftId(int fieldId) {
10890
        switch(fieldId) {
10891
          case 1: // PICK_UP
10892
            return PICK_UP;
10893
          default:
10894
            return null;
10895
        }
10896
      }
10897
 
10898
      /**
10899
       * Find the _Fields constant that matches fieldId, throwing an exception
10900
       * if it is not found.
10901
       */
10902
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10903
        _Fields fields = findByThriftId(fieldId);
10904
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10905
        return fields;
10906
      }
10907
 
10908
      /**
10909
       * Find the _Fields constant that matches name, or null if its not found.
10910
       */
10911
      public static _Fields findByName(String name) {
10912
        return byName.get(name);
10913
      }
10914
 
10915
      private final short _thriftId;
10916
      private final String _fieldName;
10917
 
10918
      _Fields(short thriftId, String fieldName) {
10919
        _thriftId = thriftId;
10920
        _fieldName = fieldName;
10921
      }
10922
 
10923
      public short getThriftFieldId() {
10924
        return _thriftId;
10925
      }
10926
 
10927
      public String getFieldName() {
10928
        return _fieldName;
10929
      }
10930
    }
10931
 
10932
    // isset id assignments
10933
    private static final int __PICKUP_ISSET_ID = 0;
10934
    private BitSet __isset_bit_vector = new BitSet(1);
10935
 
10936
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10937
    static {
10938
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10939
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10940
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10941
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10942
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
10943
    }
10944
 
10945
    public getProviderForPickupType_args() {
10946
    }
10947
 
10948
    public getProviderForPickupType_args(
10949
      long pickUp)
10950
    {
10951
      this();
10952
      this.pickUp = pickUp;
10953
      setPickUpIsSet(true);
10954
    }
10955
 
10956
    /**
10957
     * Performs a deep copy on <i>other</i>.
10958
     */
10959
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
10960
      __isset_bit_vector.clear();
10961
      __isset_bit_vector.or(other.__isset_bit_vector);
10962
      this.pickUp = other.pickUp;
10963
    }
10964
 
10965
    public getProviderForPickupType_args deepCopy() {
10966
      return new getProviderForPickupType_args(this);
10967
    }
10968
 
10969
    @Override
10970
    public void clear() {
10971
      setPickUpIsSet(false);
10972
      this.pickUp = 0;
10973
    }
10974
 
10975
    public long getPickUp() {
10976
      return this.pickUp;
10977
    }
10978
 
10979
    public void setPickUp(long pickUp) {
10980
      this.pickUp = pickUp;
10981
      setPickUpIsSet(true);
10982
    }
10983
 
10984
    public void unsetPickUp() {
10985
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
10986
    }
10987
 
10988
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
10989
    public boolean isSetPickUp() {
10990
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
10991
    }
10992
 
10993
    public void setPickUpIsSet(boolean value) {
10994
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
10995
    }
10996
 
10997
    public void setFieldValue(_Fields field, Object value) {
10998
      switch (field) {
10999
      case PICK_UP:
11000
        if (value == null) {
11001
          unsetPickUp();
11002
        } else {
11003
          setPickUp((Long)value);
11004
        }
11005
        break;
11006
 
11007
      }
11008
    }
11009
 
11010
    public Object getFieldValue(_Fields field) {
11011
      switch (field) {
11012
      case PICK_UP:
11013
        return Long.valueOf(getPickUp());
11014
 
11015
      }
11016
      throw new IllegalStateException();
11017
    }
11018
 
11019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11020
    public boolean isSet(_Fields field) {
11021
      if (field == null) {
11022
        throw new IllegalArgumentException();
11023
      }
11024
 
11025
      switch (field) {
11026
      case PICK_UP:
11027
        return isSetPickUp();
11028
      }
11029
      throw new IllegalStateException();
11030
    }
11031
 
11032
    @Override
11033
    public boolean equals(Object that) {
11034
      if (that == null)
11035
        return false;
11036
      if (that instanceof getProviderForPickupType_args)
11037
        return this.equals((getProviderForPickupType_args)that);
11038
      return false;
11039
    }
11040
 
11041
    public boolean equals(getProviderForPickupType_args that) {
11042
      if (that == null)
11043
        return false;
11044
 
11045
      boolean this_present_pickUp = true;
11046
      boolean that_present_pickUp = true;
11047
      if (this_present_pickUp || that_present_pickUp) {
11048
        if (!(this_present_pickUp && that_present_pickUp))
11049
          return false;
11050
        if (this.pickUp != that.pickUp)
11051
          return false;
11052
      }
11053
 
11054
      return true;
11055
    }
11056
 
11057
    @Override
11058
    public int hashCode() {
11059
      return 0;
11060
    }
11061
 
11062
    public int compareTo(getProviderForPickupType_args other) {
11063
      if (!getClass().equals(other.getClass())) {
11064
        return getClass().getName().compareTo(other.getClass().getName());
11065
      }
11066
 
11067
      int lastComparison = 0;
11068
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11069
 
11070
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11071
      if (lastComparison != 0) {
11072
        return lastComparison;
11073
      }
11074
      if (isSetPickUp()) {
11075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11076
        if (lastComparison != 0) {
11077
          return lastComparison;
11078
        }
11079
      }
11080
      return 0;
11081
    }
11082
 
11083
    public _Fields fieldForId(int fieldId) {
11084
      return _Fields.findByThriftId(fieldId);
11085
    }
11086
 
11087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11088
      org.apache.thrift.protocol.TField field;
11089
      iprot.readStructBegin();
11090
      while (true)
11091
      {
11092
        field = iprot.readFieldBegin();
11093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11094
          break;
11095
        }
11096
        switch (field.id) {
11097
          case 1: // PICK_UP
11098
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11099
              this.pickUp = iprot.readI64();
11100
              setPickUpIsSet(true);
11101
            } else { 
11102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11103
            }
11104
            break;
11105
          default:
11106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11107
        }
11108
        iprot.readFieldEnd();
11109
      }
11110
      iprot.readStructEnd();
11111
      validate();
11112
    }
11113
 
11114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11115
      validate();
11116
 
11117
      oprot.writeStructBegin(STRUCT_DESC);
11118
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11119
      oprot.writeI64(this.pickUp);
11120
      oprot.writeFieldEnd();
11121
      oprot.writeFieldStop();
11122
      oprot.writeStructEnd();
11123
    }
11124
 
11125
    @Override
11126
    public String toString() {
11127
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11128
      boolean first = true;
11129
 
11130
      sb.append("pickUp:");
11131
      sb.append(this.pickUp);
11132
      first = false;
11133
      sb.append(")");
11134
      return sb.toString();
11135
    }
11136
 
11137
    public void validate() throws org.apache.thrift.TException {
11138
      // check for required fields
11139
    }
11140
 
11141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11142
      try {
11143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11144
      } catch (org.apache.thrift.TException te) {
11145
        throw new java.io.IOException(te);
11146
      }
11147
    }
11148
 
11149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11150
      try {
11151
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11152
        __isset_bit_vector = new BitSet(1);
11153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11154
      } catch (org.apache.thrift.TException te) {
11155
        throw new java.io.IOException(te);
11156
      }
11157
    }
11158
 
11159
  }
11160
 
11161
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11163
 
11164
    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);
11165
 
11166
    private long success; // required
11167
 
11168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11170
      SUCCESS((short)0, "success");
11171
 
11172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11173
 
11174
      static {
11175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11176
          byName.put(field.getFieldName(), field);
11177
        }
11178
      }
11179
 
11180
      /**
11181
       * Find the _Fields constant that matches fieldId, or null if its not found.
11182
       */
11183
      public static _Fields findByThriftId(int fieldId) {
11184
        switch(fieldId) {
11185
          case 0: // SUCCESS
11186
            return SUCCESS;
11187
          default:
11188
            return null;
11189
        }
11190
      }
11191
 
11192
      /**
11193
       * Find the _Fields constant that matches fieldId, throwing an exception
11194
       * if it is not found.
11195
       */
11196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11197
        _Fields fields = findByThriftId(fieldId);
11198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11199
        return fields;
11200
      }
11201
 
11202
      /**
11203
       * Find the _Fields constant that matches name, or null if its not found.
11204
       */
11205
      public static _Fields findByName(String name) {
11206
        return byName.get(name);
11207
      }
11208
 
11209
      private final short _thriftId;
11210
      private final String _fieldName;
11211
 
11212
      _Fields(short thriftId, String fieldName) {
11213
        _thriftId = thriftId;
11214
        _fieldName = fieldName;
11215
      }
11216
 
11217
      public short getThriftFieldId() {
11218
        return _thriftId;
11219
      }
11220
 
11221
      public String getFieldName() {
11222
        return _fieldName;
11223
      }
11224
    }
11225
 
11226
    // isset id assignments
11227
    private static final int __SUCCESS_ISSET_ID = 0;
11228
    private BitSet __isset_bit_vector = new BitSet(1);
11229
 
11230
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11231
    static {
11232
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11233
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11235
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11236
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11237
    }
11238
 
11239
    public getProviderForPickupType_result() {
11240
    }
11241
 
11242
    public getProviderForPickupType_result(
11243
      long success)
11244
    {
11245
      this();
11246
      this.success = success;
11247
      setSuccessIsSet(true);
11248
    }
11249
 
11250
    /**
11251
     * Performs a deep copy on <i>other</i>.
11252
     */
11253
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11254
      __isset_bit_vector.clear();
11255
      __isset_bit_vector.or(other.__isset_bit_vector);
11256
      this.success = other.success;
11257
    }
11258
 
11259
    public getProviderForPickupType_result deepCopy() {
11260
      return new getProviderForPickupType_result(this);
11261
    }
11262
 
11263
    @Override
11264
    public void clear() {
11265
      setSuccessIsSet(false);
11266
      this.success = 0;
11267
    }
11268
 
11269
    public long getSuccess() {
11270
      return this.success;
11271
    }
11272
 
11273
    public void setSuccess(long success) {
11274
      this.success = success;
11275
      setSuccessIsSet(true);
11276
    }
11277
 
11278
    public void unsetSuccess() {
11279
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11280
    }
11281
 
11282
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11283
    public boolean isSetSuccess() {
11284
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11285
    }
11286
 
11287
    public void setSuccessIsSet(boolean value) {
11288
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11289
    }
11290
 
11291
    public void setFieldValue(_Fields field, Object value) {
11292
      switch (field) {
11293
      case SUCCESS:
11294
        if (value == null) {
11295
          unsetSuccess();
11296
        } else {
11297
          setSuccess((Long)value);
11298
        }
11299
        break;
11300
 
11301
      }
11302
    }
11303
 
11304
    public Object getFieldValue(_Fields field) {
11305
      switch (field) {
11306
      case SUCCESS:
11307
        return Long.valueOf(getSuccess());
11308
 
11309
      }
11310
      throw new IllegalStateException();
11311
    }
11312
 
11313
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11314
    public boolean isSet(_Fields field) {
11315
      if (field == null) {
11316
        throw new IllegalArgumentException();
11317
      }
11318
 
11319
      switch (field) {
11320
      case SUCCESS:
11321
        return isSetSuccess();
11322
      }
11323
      throw new IllegalStateException();
11324
    }
11325
 
11326
    @Override
11327
    public boolean equals(Object that) {
11328
      if (that == null)
11329
        return false;
11330
      if (that instanceof getProviderForPickupType_result)
11331
        return this.equals((getProviderForPickupType_result)that);
11332
      return false;
11333
    }
11334
 
11335
    public boolean equals(getProviderForPickupType_result that) {
11336
      if (that == null)
11337
        return false;
11338
 
11339
      boolean this_present_success = true;
11340
      boolean that_present_success = true;
11341
      if (this_present_success || that_present_success) {
11342
        if (!(this_present_success && that_present_success))
11343
          return false;
11344
        if (this.success != that.success)
11345
          return false;
11346
      }
11347
 
11348
      return true;
11349
    }
11350
 
11351
    @Override
11352
    public int hashCode() {
11353
      return 0;
11354
    }
11355
 
11356
    public int compareTo(getProviderForPickupType_result other) {
11357
      if (!getClass().equals(other.getClass())) {
11358
        return getClass().getName().compareTo(other.getClass().getName());
11359
      }
11360
 
11361
      int lastComparison = 0;
11362
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11363
 
11364
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11365
      if (lastComparison != 0) {
11366
        return lastComparison;
11367
      }
11368
      if (isSetSuccess()) {
11369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11370
        if (lastComparison != 0) {
11371
          return lastComparison;
11372
        }
11373
      }
11374
      return 0;
11375
    }
11376
 
11377
    public _Fields fieldForId(int fieldId) {
11378
      return _Fields.findByThriftId(fieldId);
11379
    }
11380
 
11381
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11382
      org.apache.thrift.protocol.TField field;
11383
      iprot.readStructBegin();
11384
      while (true)
11385
      {
11386
        field = iprot.readFieldBegin();
11387
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11388
          break;
11389
        }
11390
        switch (field.id) {
11391
          case 0: // SUCCESS
11392
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11393
              this.success = iprot.readI64();
11394
              setSuccessIsSet(true);
11395
            } else { 
11396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11397
            }
11398
            break;
11399
          default:
11400
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11401
        }
11402
        iprot.readFieldEnd();
11403
      }
11404
      iprot.readStructEnd();
11405
      validate();
11406
    }
11407
 
11408
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11409
      oprot.writeStructBegin(STRUCT_DESC);
11410
 
11411
      if (this.isSetSuccess()) {
11412
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11413
        oprot.writeI64(this.success);
11414
        oprot.writeFieldEnd();
11415
      }
11416
      oprot.writeFieldStop();
11417
      oprot.writeStructEnd();
11418
    }
11419
 
11420
    @Override
11421
    public String toString() {
11422
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11423
      boolean first = true;
11424
 
11425
      sb.append("success:");
11426
      sb.append(this.success);
11427
      first = false;
11428
      sb.append(")");
11429
      return sb.toString();
11430
    }
11431
 
11432
    public void validate() throws org.apache.thrift.TException {
11433
      // check for required fields
11434
    }
11435
 
11436
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11437
      try {
11438
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11439
      } catch (org.apache.thrift.TException te) {
11440
        throw new java.io.IOException(te);
11441
      }
11442
    }
11443
 
11444
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11445
      try {
11446
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11447
      } catch (org.apache.thrift.TException te) {
11448
        throw new java.io.IOException(te);
11449
      }
11450
    }
11451
 
11452
  }
11453
 
5553 rajveer 11454
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11455
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11456
 
11457
 
11458
 
11459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11461
;
11462
 
11463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11464
 
11465
      static {
11466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11467
          byName.put(field.getFieldName(), field);
11468
        }
11469
      }
11470
 
11471
      /**
11472
       * Find the _Fields constant that matches fieldId, or null if its not found.
11473
       */
11474
      public static _Fields findByThriftId(int fieldId) {
11475
        switch(fieldId) {
11476
          default:
11477
            return null;
11478
        }
11479
      }
11480
 
11481
      /**
11482
       * Find the _Fields constant that matches fieldId, throwing an exception
11483
       * if it is not found.
11484
       */
11485
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11486
        _Fields fields = findByThriftId(fieldId);
11487
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11488
        return fields;
11489
      }
11490
 
11491
      /**
11492
       * Find the _Fields constant that matches name, or null if its not found.
11493
       */
11494
      public static _Fields findByName(String name) {
11495
        return byName.get(name);
11496
      }
11497
 
11498
      private final short _thriftId;
11499
      private final String _fieldName;
11500
 
11501
      _Fields(short thriftId, String fieldName) {
11502
        _thriftId = thriftId;
11503
        _fieldName = fieldName;
11504
      }
11505
 
11506
      public short getThriftFieldId() {
11507
        return _thriftId;
11508
      }
11509
 
11510
      public String getFieldName() {
11511
        return _fieldName;
11512
      }
11513
    }
11514
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11515
    static {
11516
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11517
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11518
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
11519
    }
11520
 
11521
    public getAllPickupStores_args() {
11522
    }
11523
 
11524
    /**
11525
     * Performs a deep copy on <i>other</i>.
11526
     */
11527
    public getAllPickupStores_args(getAllPickupStores_args other) {
11528
    }
11529
 
11530
    public getAllPickupStores_args deepCopy() {
11531
      return new getAllPickupStores_args(this);
11532
    }
11533
 
11534
    @Override
11535
    public void clear() {
11536
    }
11537
 
11538
    public void setFieldValue(_Fields field, Object value) {
11539
      switch (field) {
11540
      }
11541
    }
11542
 
11543
    public Object getFieldValue(_Fields field) {
11544
      switch (field) {
11545
      }
11546
      throw new IllegalStateException();
11547
    }
11548
 
11549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11550
    public boolean isSet(_Fields field) {
11551
      if (field == null) {
11552
        throw new IllegalArgumentException();
11553
      }
11554
 
11555
      switch (field) {
11556
      }
11557
      throw new IllegalStateException();
11558
    }
11559
 
11560
    @Override
11561
    public boolean equals(Object that) {
11562
      if (that == null)
11563
        return false;
11564
      if (that instanceof getAllPickupStores_args)
11565
        return this.equals((getAllPickupStores_args)that);
11566
      return false;
11567
    }
11568
 
11569
    public boolean equals(getAllPickupStores_args that) {
11570
      if (that == null)
11571
        return false;
11572
 
11573
      return true;
11574
    }
11575
 
11576
    @Override
11577
    public int hashCode() {
11578
      return 0;
11579
    }
11580
 
11581
    public int compareTo(getAllPickupStores_args other) {
11582
      if (!getClass().equals(other.getClass())) {
11583
        return getClass().getName().compareTo(other.getClass().getName());
11584
      }
11585
 
11586
      int lastComparison = 0;
11587
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
11588
 
11589
      return 0;
11590
    }
11591
 
11592
    public _Fields fieldForId(int fieldId) {
11593
      return _Fields.findByThriftId(fieldId);
11594
    }
11595
 
11596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11597
      org.apache.thrift.protocol.TField field;
11598
      iprot.readStructBegin();
11599
      while (true)
11600
      {
11601
        field = iprot.readFieldBegin();
11602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11603
          break;
11604
        }
11605
        switch (field.id) {
11606
          default:
11607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11608
        }
11609
        iprot.readFieldEnd();
11610
      }
11611
      iprot.readStructEnd();
11612
      validate();
11613
    }
11614
 
11615
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11616
      validate();
11617
 
11618
      oprot.writeStructBegin(STRUCT_DESC);
11619
      oprot.writeFieldStop();
11620
      oprot.writeStructEnd();
11621
    }
11622
 
11623
    @Override
11624
    public String toString() {
11625
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
11626
      boolean first = true;
11627
 
11628
      sb.append(")");
11629
      return sb.toString();
11630
    }
11631
 
11632
    public void validate() throws org.apache.thrift.TException {
11633
      // check for required fields
11634
    }
11635
 
11636
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11637
      try {
11638
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11639
      } catch (org.apache.thrift.TException te) {
11640
        throw new java.io.IOException(te);
11641
      }
11642
    }
11643
 
11644
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11645
      try {
11646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11647
      } catch (org.apache.thrift.TException te) {
11648
        throw new java.io.IOException(te);
11649
      }
11650
    }
11651
 
11652
  }
11653
 
11654
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
11655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
11656
 
11657
    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);
11658
 
11659
    private List<PickupStore> success; // required
11660
 
11661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11663
      SUCCESS((short)0, "success");
11664
 
11665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11666
 
11667
      static {
11668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11669
          byName.put(field.getFieldName(), field);
11670
        }
11671
      }
11672
 
11673
      /**
11674
       * Find the _Fields constant that matches fieldId, or null if its not found.
11675
       */
11676
      public static _Fields findByThriftId(int fieldId) {
11677
        switch(fieldId) {
11678
          case 0: // SUCCESS
11679
            return SUCCESS;
11680
          default:
11681
            return null;
11682
        }
11683
      }
11684
 
11685
      /**
11686
       * Find the _Fields constant that matches fieldId, throwing an exception
11687
       * if it is not found.
11688
       */
11689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11690
        _Fields fields = findByThriftId(fieldId);
11691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11692
        return fields;
11693
      }
11694
 
11695
      /**
11696
       * Find the _Fields constant that matches name, or null if its not found.
11697
       */
11698
      public static _Fields findByName(String name) {
11699
        return byName.get(name);
11700
      }
11701
 
11702
      private final short _thriftId;
11703
      private final String _fieldName;
11704
 
11705
      _Fields(short thriftId, String fieldName) {
11706
        _thriftId = thriftId;
11707
        _fieldName = fieldName;
11708
      }
11709
 
11710
      public short getThriftFieldId() {
11711
        return _thriftId;
11712
      }
11713
 
11714
      public String getFieldName() {
11715
        return _fieldName;
11716
      }
11717
    }
11718
 
11719
    // isset id assignments
11720
 
11721
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11722
    static {
11723
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11724
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11725
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11726
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
11727
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11728
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
11729
    }
11730
 
11731
    public getAllPickupStores_result() {
11732
    }
11733
 
11734
    public getAllPickupStores_result(
11735
      List<PickupStore> success)
11736
    {
11737
      this();
11738
      this.success = success;
11739
    }
11740
 
11741
    /**
11742
     * Performs a deep copy on <i>other</i>.
11743
     */
11744
    public getAllPickupStores_result(getAllPickupStores_result other) {
11745
      if (other.isSetSuccess()) {
11746
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
11747
        for (PickupStore other_element : other.success) {
11748
          __this__success.add(new PickupStore(other_element));
11749
        }
11750
        this.success = __this__success;
11751
      }
11752
    }
11753
 
11754
    public getAllPickupStores_result deepCopy() {
11755
      return new getAllPickupStores_result(this);
11756
    }
11757
 
11758
    @Override
11759
    public void clear() {
11760
      this.success = null;
11761
    }
11762
 
11763
    public int getSuccessSize() {
11764
      return (this.success == null) ? 0 : this.success.size();
11765
    }
11766
 
11767
    public java.util.Iterator<PickupStore> getSuccessIterator() {
11768
      return (this.success == null) ? null : this.success.iterator();
11769
    }
11770
 
11771
    public void addToSuccess(PickupStore elem) {
11772
      if (this.success == null) {
11773
        this.success = new ArrayList<PickupStore>();
11774
      }
11775
      this.success.add(elem);
11776
    }
11777
 
11778
    public List<PickupStore> getSuccess() {
11779
      return this.success;
11780
    }
11781
 
11782
    public void setSuccess(List<PickupStore> success) {
11783
      this.success = success;
11784
    }
11785
 
11786
    public void unsetSuccess() {
11787
      this.success = null;
11788
    }
11789
 
11790
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11791
    public boolean isSetSuccess() {
11792
      return this.success != null;
11793
    }
11794
 
11795
    public void setSuccessIsSet(boolean value) {
11796
      if (!value) {
11797
        this.success = null;
11798
      }
11799
    }
11800
 
11801
    public void setFieldValue(_Fields field, Object value) {
11802
      switch (field) {
11803
      case SUCCESS:
11804
        if (value == null) {
11805
          unsetSuccess();
11806
        } else {
11807
          setSuccess((List<PickupStore>)value);
11808
        }
11809
        break;
11810
 
11811
      }
11812
    }
11813
 
11814
    public Object getFieldValue(_Fields field) {
11815
      switch (field) {
11816
      case SUCCESS:
11817
        return getSuccess();
11818
 
11819
      }
11820
      throw new IllegalStateException();
11821
    }
11822
 
11823
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11824
    public boolean isSet(_Fields field) {
11825
      if (field == null) {
11826
        throw new IllegalArgumentException();
11827
      }
11828
 
11829
      switch (field) {
11830
      case SUCCESS:
11831
        return isSetSuccess();
11832
      }
11833
      throw new IllegalStateException();
11834
    }
11835
 
11836
    @Override
11837
    public boolean equals(Object that) {
11838
      if (that == null)
11839
        return false;
11840
      if (that instanceof getAllPickupStores_result)
11841
        return this.equals((getAllPickupStores_result)that);
11842
      return false;
11843
    }
11844
 
11845
    public boolean equals(getAllPickupStores_result that) {
11846
      if (that == null)
11847
        return false;
11848
 
11849
      boolean this_present_success = true && this.isSetSuccess();
11850
      boolean that_present_success = true && that.isSetSuccess();
11851
      if (this_present_success || that_present_success) {
11852
        if (!(this_present_success && that_present_success))
11853
          return false;
11854
        if (!this.success.equals(that.success))
11855
          return false;
11856
      }
11857
 
11858
      return true;
11859
    }
11860
 
11861
    @Override
11862
    public int hashCode() {
11863
      return 0;
11864
    }
11865
 
11866
    public int compareTo(getAllPickupStores_result other) {
11867
      if (!getClass().equals(other.getClass())) {
11868
        return getClass().getName().compareTo(other.getClass().getName());
11869
      }
11870
 
11871
      int lastComparison = 0;
11872
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
11873
 
11874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11875
      if (lastComparison != 0) {
11876
        return lastComparison;
11877
      }
11878
      if (isSetSuccess()) {
11879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11880
        if (lastComparison != 0) {
11881
          return lastComparison;
11882
        }
11883
      }
11884
      return 0;
11885
    }
11886
 
11887
    public _Fields fieldForId(int fieldId) {
11888
      return _Fields.findByThriftId(fieldId);
11889
    }
11890
 
11891
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11892
      org.apache.thrift.protocol.TField field;
11893
      iprot.readStructBegin();
11894
      while (true)
11895
      {
11896
        field = iprot.readFieldBegin();
11897
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11898
          break;
11899
        }
11900
        switch (field.id) {
11901
          case 0: // SUCCESS
11902
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11903
              {
11904
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
11905
                this.success = new ArrayList<PickupStore>(_list21.size);
11906
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
11907
                {
11908
                  PickupStore _elem23; // required
11909
                  _elem23 = new PickupStore();
11910
                  _elem23.read(iprot);
11911
                  this.success.add(_elem23);
11912
                }
11913
                iprot.readListEnd();
11914
              }
11915
            } else { 
11916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11917
            }
11918
            break;
11919
          default:
11920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11921
        }
11922
        iprot.readFieldEnd();
11923
      }
11924
      iprot.readStructEnd();
11925
      validate();
11926
    }
11927
 
11928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11929
      oprot.writeStructBegin(STRUCT_DESC);
11930
 
11931
      if (this.isSetSuccess()) {
11932
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11933
        {
11934
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11935
          for (PickupStore _iter24 : this.success)
11936
          {
11937
            _iter24.write(oprot);
11938
          }
11939
          oprot.writeListEnd();
11940
        }
11941
        oprot.writeFieldEnd();
11942
      }
11943
      oprot.writeFieldStop();
11944
      oprot.writeStructEnd();
11945
    }
11946
 
11947
    @Override
11948
    public String toString() {
11949
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
11950
      boolean first = true;
11951
 
11952
      sb.append("success:");
11953
      if (this.success == null) {
11954
        sb.append("null");
11955
      } else {
11956
        sb.append(this.success);
11957
      }
11958
      first = false;
11959
      sb.append(")");
11960
      return sb.toString();
11961
    }
11962
 
11963
    public void validate() throws org.apache.thrift.TException {
11964
      // check for required fields
11965
    }
11966
 
11967
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11968
      try {
11969
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11970
      } catch (org.apache.thrift.TException te) {
11971
        throw new java.io.IOException(te);
11972
      }
11973
    }
11974
 
11975
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11976
      try {
11977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11978
      } catch (org.apache.thrift.TException te) {
11979
        throw new java.io.IOException(te);
11980
      }
11981
    }
11982
 
11983
  }
11984
 
11985
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
11986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
11987
 
11988
    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);
11989
 
11990
    private long storeId; // required
11991
 
11992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11994
      STORE_ID((short)1, "storeId");
11995
 
11996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11997
 
11998
      static {
11999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12000
          byName.put(field.getFieldName(), field);
12001
        }
12002
      }
12003
 
12004
      /**
12005
       * Find the _Fields constant that matches fieldId, or null if its not found.
12006
       */
12007
      public static _Fields findByThriftId(int fieldId) {
12008
        switch(fieldId) {
12009
          case 1: // STORE_ID
12010
            return STORE_ID;
12011
          default:
12012
            return null;
12013
        }
12014
      }
12015
 
12016
      /**
12017
       * Find the _Fields constant that matches fieldId, throwing an exception
12018
       * if it is not found.
12019
       */
12020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12021
        _Fields fields = findByThriftId(fieldId);
12022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12023
        return fields;
12024
      }
12025
 
12026
      /**
12027
       * Find the _Fields constant that matches name, or null if its not found.
12028
       */
12029
      public static _Fields findByName(String name) {
12030
        return byName.get(name);
12031
      }
12032
 
12033
      private final short _thriftId;
12034
      private final String _fieldName;
12035
 
12036
      _Fields(short thriftId, String fieldName) {
12037
        _thriftId = thriftId;
12038
        _fieldName = fieldName;
12039
      }
12040
 
12041
      public short getThriftFieldId() {
12042
        return _thriftId;
12043
      }
12044
 
12045
      public String getFieldName() {
12046
        return _fieldName;
12047
      }
12048
    }
12049
 
12050
    // isset id assignments
12051
    private static final int __STOREID_ISSET_ID = 0;
12052
    private BitSet __isset_bit_vector = new BitSet(1);
12053
 
12054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12055
    static {
12056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12057
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12061
    }
12062
 
12063
    public getPickupStore_args() {
12064
    }
12065
 
12066
    public getPickupStore_args(
12067
      long storeId)
12068
    {
12069
      this();
12070
      this.storeId = storeId;
12071
      setStoreIdIsSet(true);
12072
    }
12073
 
12074
    /**
12075
     * Performs a deep copy on <i>other</i>.
12076
     */
12077
    public getPickupStore_args(getPickupStore_args other) {
12078
      __isset_bit_vector.clear();
12079
      __isset_bit_vector.or(other.__isset_bit_vector);
12080
      this.storeId = other.storeId;
12081
    }
12082
 
12083
    public getPickupStore_args deepCopy() {
12084
      return new getPickupStore_args(this);
12085
    }
12086
 
12087
    @Override
12088
    public void clear() {
12089
      setStoreIdIsSet(false);
12090
      this.storeId = 0;
12091
    }
12092
 
12093
    public long getStoreId() {
12094
      return this.storeId;
12095
    }
12096
 
12097
    public void setStoreId(long storeId) {
12098
      this.storeId = storeId;
12099
      setStoreIdIsSet(true);
12100
    }
12101
 
12102
    public void unsetStoreId() {
12103
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12104
    }
12105
 
12106
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12107
    public boolean isSetStoreId() {
12108
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12109
    }
12110
 
12111
    public void setStoreIdIsSet(boolean value) {
12112
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12113
    }
12114
 
12115
    public void setFieldValue(_Fields field, Object value) {
12116
      switch (field) {
12117
      case STORE_ID:
12118
        if (value == null) {
12119
          unsetStoreId();
12120
        } else {
12121
          setStoreId((Long)value);
12122
        }
12123
        break;
12124
 
12125
      }
12126
    }
12127
 
12128
    public Object getFieldValue(_Fields field) {
12129
      switch (field) {
12130
      case STORE_ID:
12131
        return Long.valueOf(getStoreId());
12132
 
12133
      }
12134
      throw new IllegalStateException();
12135
    }
12136
 
12137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12138
    public boolean isSet(_Fields field) {
12139
      if (field == null) {
12140
        throw new IllegalArgumentException();
12141
      }
12142
 
12143
      switch (field) {
12144
      case STORE_ID:
12145
        return isSetStoreId();
12146
      }
12147
      throw new IllegalStateException();
12148
    }
12149
 
12150
    @Override
12151
    public boolean equals(Object that) {
12152
      if (that == null)
12153
        return false;
12154
      if (that instanceof getPickupStore_args)
12155
        return this.equals((getPickupStore_args)that);
12156
      return false;
12157
    }
12158
 
12159
    public boolean equals(getPickupStore_args that) {
12160
      if (that == null)
12161
        return false;
12162
 
12163
      boolean this_present_storeId = true;
12164
      boolean that_present_storeId = true;
12165
      if (this_present_storeId || that_present_storeId) {
12166
        if (!(this_present_storeId && that_present_storeId))
12167
          return false;
12168
        if (this.storeId != that.storeId)
12169
          return false;
12170
      }
12171
 
12172
      return true;
12173
    }
12174
 
12175
    @Override
12176
    public int hashCode() {
12177
      return 0;
12178
    }
12179
 
12180
    public int compareTo(getPickupStore_args other) {
12181
      if (!getClass().equals(other.getClass())) {
12182
        return getClass().getName().compareTo(other.getClass().getName());
12183
      }
12184
 
12185
      int lastComparison = 0;
12186
      getPickupStore_args typedOther = (getPickupStore_args)other;
12187
 
12188
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12189
      if (lastComparison != 0) {
12190
        return lastComparison;
12191
      }
12192
      if (isSetStoreId()) {
12193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12194
        if (lastComparison != 0) {
12195
          return lastComparison;
12196
        }
12197
      }
12198
      return 0;
12199
    }
12200
 
12201
    public _Fields fieldForId(int fieldId) {
12202
      return _Fields.findByThriftId(fieldId);
12203
    }
12204
 
12205
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12206
      org.apache.thrift.protocol.TField field;
12207
      iprot.readStructBegin();
12208
      while (true)
12209
      {
12210
        field = iprot.readFieldBegin();
12211
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12212
          break;
12213
        }
12214
        switch (field.id) {
12215
          case 1: // STORE_ID
12216
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12217
              this.storeId = iprot.readI64();
12218
              setStoreIdIsSet(true);
12219
            } else { 
12220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12221
            }
12222
            break;
12223
          default:
12224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12225
        }
12226
        iprot.readFieldEnd();
12227
      }
12228
      iprot.readStructEnd();
12229
      validate();
12230
    }
12231
 
12232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12233
      validate();
12234
 
12235
      oprot.writeStructBegin(STRUCT_DESC);
12236
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12237
      oprot.writeI64(this.storeId);
12238
      oprot.writeFieldEnd();
12239
      oprot.writeFieldStop();
12240
      oprot.writeStructEnd();
12241
    }
12242
 
12243
    @Override
12244
    public String toString() {
12245
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12246
      boolean first = true;
12247
 
12248
      sb.append("storeId:");
12249
      sb.append(this.storeId);
12250
      first = false;
12251
      sb.append(")");
12252
      return sb.toString();
12253
    }
12254
 
12255
    public void validate() throws org.apache.thrift.TException {
12256
      // check for required fields
12257
    }
12258
 
12259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12260
      try {
12261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12262
      } catch (org.apache.thrift.TException te) {
12263
        throw new java.io.IOException(te);
12264
      }
12265
    }
12266
 
12267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12268
      try {
12269
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12270
        __isset_bit_vector = new BitSet(1);
12271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12272
      } catch (org.apache.thrift.TException te) {
12273
        throw new java.io.IOException(te);
12274
      }
12275
    }
12276
 
12277
  }
12278
 
12279
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12281
 
12282
    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);
12283
 
12284
    private PickupStore success; // required
12285
 
12286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12288
      SUCCESS((short)0, "success");
12289
 
12290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12291
 
12292
      static {
12293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12294
          byName.put(field.getFieldName(), field);
12295
        }
12296
      }
12297
 
12298
      /**
12299
       * Find the _Fields constant that matches fieldId, or null if its not found.
12300
       */
12301
      public static _Fields findByThriftId(int fieldId) {
12302
        switch(fieldId) {
12303
          case 0: // SUCCESS
12304
            return SUCCESS;
12305
          default:
12306
            return null;
12307
        }
12308
      }
12309
 
12310
      /**
12311
       * Find the _Fields constant that matches fieldId, throwing an exception
12312
       * if it is not found.
12313
       */
12314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12315
        _Fields fields = findByThriftId(fieldId);
12316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12317
        return fields;
12318
      }
12319
 
12320
      /**
12321
       * Find the _Fields constant that matches name, or null if its not found.
12322
       */
12323
      public static _Fields findByName(String name) {
12324
        return byName.get(name);
12325
      }
12326
 
12327
      private final short _thriftId;
12328
      private final String _fieldName;
12329
 
12330
      _Fields(short thriftId, String fieldName) {
12331
        _thriftId = thriftId;
12332
        _fieldName = fieldName;
12333
      }
12334
 
12335
      public short getThriftFieldId() {
12336
        return _thriftId;
12337
      }
12338
 
12339
      public String getFieldName() {
12340
        return _fieldName;
12341
      }
12342
    }
12343
 
12344
    // isset id assignments
12345
 
12346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12347
    static {
12348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12349
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12350
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12353
    }
12354
 
12355
    public getPickupStore_result() {
12356
    }
12357
 
12358
    public getPickupStore_result(
12359
      PickupStore success)
12360
    {
12361
      this();
12362
      this.success = success;
12363
    }
12364
 
12365
    /**
12366
     * Performs a deep copy on <i>other</i>.
12367
     */
12368
    public getPickupStore_result(getPickupStore_result other) {
12369
      if (other.isSetSuccess()) {
12370
        this.success = new PickupStore(other.success);
12371
      }
12372
    }
12373
 
12374
    public getPickupStore_result deepCopy() {
12375
      return new getPickupStore_result(this);
12376
    }
12377
 
12378
    @Override
12379
    public void clear() {
12380
      this.success = null;
12381
    }
12382
 
12383
    public PickupStore getSuccess() {
12384
      return this.success;
12385
    }
12386
 
12387
    public void setSuccess(PickupStore success) {
12388
      this.success = success;
12389
    }
12390
 
12391
    public void unsetSuccess() {
12392
      this.success = null;
12393
    }
12394
 
12395
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12396
    public boolean isSetSuccess() {
12397
      return this.success != null;
12398
    }
12399
 
12400
    public void setSuccessIsSet(boolean value) {
12401
      if (!value) {
12402
        this.success = null;
12403
      }
12404
    }
12405
 
12406
    public void setFieldValue(_Fields field, Object value) {
12407
      switch (field) {
12408
      case SUCCESS:
12409
        if (value == null) {
12410
          unsetSuccess();
12411
        } else {
12412
          setSuccess((PickupStore)value);
12413
        }
12414
        break;
12415
 
12416
      }
12417
    }
12418
 
12419
    public Object getFieldValue(_Fields field) {
12420
      switch (field) {
12421
      case SUCCESS:
12422
        return getSuccess();
12423
 
12424
      }
12425
      throw new IllegalStateException();
12426
    }
12427
 
12428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12429
    public boolean isSet(_Fields field) {
12430
      if (field == null) {
12431
        throw new IllegalArgumentException();
12432
      }
12433
 
12434
      switch (field) {
12435
      case SUCCESS:
12436
        return isSetSuccess();
12437
      }
12438
      throw new IllegalStateException();
12439
    }
12440
 
12441
    @Override
12442
    public boolean equals(Object that) {
12443
      if (that == null)
12444
        return false;
12445
      if (that instanceof getPickupStore_result)
12446
        return this.equals((getPickupStore_result)that);
12447
      return false;
12448
    }
12449
 
12450
    public boolean equals(getPickupStore_result that) {
12451
      if (that == null)
12452
        return false;
12453
 
12454
      boolean this_present_success = true && this.isSetSuccess();
12455
      boolean that_present_success = true && that.isSetSuccess();
12456
      if (this_present_success || that_present_success) {
12457
        if (!(this_present_success && that_present_success))
12458
          return false;
12459
        if (!this.success.equals(that.success))
12460
          return false;
12461
      }
12462
 
12463
      return true;
12464
    }
12465
 
12466
    @Override
12467
    public int hashCode() {
12468
      return 0;
12469
    }
12470
 
12471
    public int compareTo(getPickupStore_result other) {
12472
      if (!getClass().equals(other.getClass())) {
12473
        return getClass().getName().compareTo(other.getClass().getName());
12474
      }
12475
 
12476
      int lastComparison = 0;
12477
      getPickupStore_result typedOther = (getPickupStore_result)other;
12478
 
12479
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12480
      if (lastComparison != 0) {
12481
        return lastComparison;
12482
      }
12483
      if (isSetSuccess()) {
12484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12485
        if (lastComparison != 0) {
12486
          return lastComparison;
12487
        }
12488
      }
12489
      return 0;
12490
    }
12491
 
12492
    public _Fields fieldForId(int fieldId) {
12493
      return _Fields.findByThriftId(fieldId);
12494
    }
12495
 
12496
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12497
      org.apache.thrift.protocol.TField field;
12498
      iprot.readStructBegin();
12499
      while (true)
12500
      {
12501
        field = iprot.readFieldBegin();
12502
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12503
          break;
12504
        }
12505
        switch (field.id) {
12506
          case 0: // SUCCESS
12507
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12508
              this.success = new PickupStore();
12509
              this.success.read(iprot);
12510
            } else { 
12511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12512
            }
12513
            break;
12514
          default:
12515
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12516
        }
12517
        iprot.readFieldEnd();
12518
      }
12519
      iprot.readStructEnd();
12520
      validate();
12521
    }
12522
 
12523
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12524
      oprot.writeStructBegin(STRUCT_DESC);
12525
 
12526
      if (this.isSetSuccess()) {
12527
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12528
        this.success.write(oprot);
12529
        oprot.writeFieldEnd();
12530
      }
12531
      oprot.writeFieldStop();
12532
      oprot.writeStructEnd();
12533
    }
12534
 
12535
    @Override
12536
    public String toString() {
12537
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
12538
      boolean first = true;
12539
 
12540
      sb.append("success:");
12541
      if (this.success == null) {
12542
        sb.append("null");
12543
      } else {
12544
        sb.append(this.success);
12545
      }
12546
      first = false;
12547
      sb.append(")");
12548
      return sb.toString();
12549
    }
12550
 
12551
    public void validate() throws org.apache.thrift.TException {
12552
      // check for required fields
12553
    }
12554
 
12555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12556
      try {
12557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12558
      } catch (org.apache.thrift.TException te) {
12559
        throw new java.io.IOException(te);
12560
      }
12561
    }
12562
 
12563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12564
      try {
12565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12566
      } catch (org.apache.thrift.TException te) {
12567
        throw new java.io.IOException(te);
12568
      }
12569
    }
12570
 
12571
  }
12572
 
5719 rajveer 12573
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
12574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
12575
 
12576
    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);
12577
 
12578
    private String hotspotId; // required
12579
 
12580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12582
      HOTSPOT_ID((short)1, "hotspotId");
12583
 
12584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12585
 
12586
      static {
12587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12588
          byName.put(field.getFieldName(), field);
12589
        }
12590
      }
12591
 
12592
      /**
12593
       * Find the _Fields constant that matches fieldId, or null if its not found.
12594
       */
12595
      public static _Fields findByThriftId(int fieldId) {
12596
        switch(fieldId) {
12597
          case 1: // HOTSPOT_ID
12598
            return HOTSPOT_ID;
12599
          default:
12600
            return null;
12601
        }
12602
      }
12603
 
12604
      /**
12605
       * Find the _Fields constant that matches fieldId, throwing an exception
12606
       * if it is not found.
12607
       */
12608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12609
        _Fields fields = findByThriftId(fieldId);
12610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12611
        return fields;
12612
      }
12613
 
12614
      /**
12615
       * Find the _Fields constant that matches name, or null if its not found.
12616
       */
12617
      public static _Fields findByName(String name) {
12618
        return byName.get(name);
12619
      }
12620
 
12621
      private final short _thriftId;
12622
      private final String _fieldName;
12623
 
12624
      _Fields(short thriftId, String fieldName) {
12625
        _thriftId = thriftId;
12626
        _fieldName = fieldName;
12627
      }
12628
 
12629
      public short getThriftFieldId() {
12630
        return _thriftId;
12631
      }
12632
 
12633
      public String getFieldName() {
12634
        return _fieldName;
12635
      }
12636
    }
12637
 
12638
    // isset id assignments
12639
 
12640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12641
    static {
12642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12643
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
12647
    }
12648
 
12649
    public getPickupStoreByHotspotId_args() {
12650
    }
12651
 
12652
    public getPickupStoreByHotspotId_args(
12653
      String hotspotId)
12654
    {
12655
      this();
12656
      this.hotspotId = hotspotId;
12657
    }
12658
 
12659
    /**
12660
     * Performs a deep copy on <i>other</i>.
12661
     */
12662
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
12663
      if (other.isSetHotspotId()) {
12664
        this.hotspotId = other.hotspotId;
12665
      }
12666
    }
12667
 
12668
    public getPickupStoreByHotspotId_args deepCopy() {
12669
      return new getPickupStoreByHotspotId_args(this);
12670
    }
12671
 
12672
    @Override
12673
    public void clear() {
12674
      this.hotspotId = null;
12675
    }
12676
 
12677
    public String getHotspotId() {
12678
      return this.hotspotId;
12679
    }
12680
 
12681
    public void setHotspotId(String hotspotId) {
12682
      this.hotspotId = hotspotId;
12683
    }
12684
 
12685
    public void unsetHotspotId() {
12686
      this.hotspotId = null;
12687
    }
12688
 
12689
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
12690
    public boolean isSetHotspotId() {
12691
      return this.hotspotId != null;
12692
    }
12693
 
12694
    public void setHotspotIdIsSet(boolean value) {
12695
      if (!value) {
12696
        this.hotspotId = null;
12697
      }
12698
    }
12699
 
12700
    public void setFieldValue(_Fields field, Object value) {
12701
      switch (field) {
12702
      case HOTSPOT_ID:
12703
        if (value == null) {
12704
          unsetHotspotId();
12705
        } else {
12706
          setHotspotId((String)value);
12707
        }
12708
        break;
12709
 
12710
      }
12711
    }
12712
 
12713
    public Object getFieldValue(_Fields field) {
12714
      switch (field) {
12715
      case HOTSPOT_ID:
12716
        return getHotspotId();
12717
 
12718
      }
12719
      throw new IllegalStateException();
12720
    }
12721
 
12722
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12723
    public boolean isSet(_Fields field) {
12724
      if (field == null) {
12725
        throw new IllegalArgumentException();
12726
      }
12727
 
12728
      switch (field) {
12729
      case HOTSPOT_ID:
12730
        return isSetHotspotId();
12731
      }
12732
      throw new IllegalStateException();
12733
    }
12734
 
12735
    @Override
12736
    public boolean equals(Object that) {
12737
      if (that == null)
12738
        return false;
12739
      if (that instanceof getPickupStoreByHotspotId_args)
12740
        return this.equals((getPickupStoreByHotspotId_args)that);
12741
      return false;
12742
    }
12743
 
12744
    public boolean equals(getPickupStoreByHotspotId_args that) {
12745
      if (that == null)
12746
        return false;
12747
 
12748
      boolean this_present_hotspotId = true && this.isSetHotspotId();
12749
      boolean that_present_hotspotId = true && that.isSetHotspotId();
12750
      if (this_present_hotspotId || that_present_hotspotId) {
12751
        if (!(this_present_hotspotId && that_present_hotspotId))
12752
          return false;
12753
        if (!this.hotspotId.equals(that.hotspotId))
12754
          return false;
12755
      }
12756
 
12757
      return true;
12758
    }
12759
 
12760
    @Override
12761
    public int hashCode() {
12762
      return 0;
12763
    }
12764
 
12765
    public int compareTo(getPickupStoreByHotspotId_args other) {
12766
      if (!getClass().equals(other.getClass())) {
12767
        return getClass().getName().compareTo(other.getClass().getName());
12768
      }
12769
 
12770
      int lastComparison = 0;
12771
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
12772
 
12773
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
12774
      if (lastComparison != 0) {
12775
        return lastComparison;
12776
      }
12777
      if (isSetHotspotId()) {
12778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
12779
        if (lastComparison != 0) {
12780
          return lastComparison;
12781
        }
12782
      }
12783
      return 0;
12784
    }
12785
 
12786
    public _Fields fieldForId(int fieldId) {
12787
      return _Fields.findByThriftId(fieldId);
12788
    }
12789
 
12790
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12791
      org.apache.thrift.protocol.TField field;
12792
      iprot.readStructBegin();
12793
      while (true)
12794
      {
12795
        field = iprot.readFieldBegin();
12796
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12797
          break;
12798
        }
12799
        switch (field.id) {
12800
          case 1: // HOTSPOT_ID
12801
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12802
              this.hotspotId = iprot.readString();
12803
            } else { 
12804
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12805
            }
12806
            break;
12807
          default:
12808
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12809
        }
12810
        iprot.readFieldEnd();
12811
      }
12812
      iprot.readStructEnd();
12813
      validate();
12814
    }
12815
 
12816
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12817
      validate();
12818
 
12819
      oprot.writeStructBegin(STRUCT_DESC);
12820
      if (this.hotspotId != null) {
12821
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
12822
        oprot.writeString(this.hotspotId);
12823
        oprot.writeFieldEnd();
12824
      }
12825
      oprot.writeFieldStop();
12826
      oprot.writeStructEnd();
12827
    }
12828
 
12829
    @Override
12830
    public String toString() {
12831
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
12832
      boolean first = true;
12833
 
12834
      sb.append("hotspotId:");
12835
      if (this.hotspotId == null) {
12836
        sb.append("null");
12837
      } else {
12838
        sb.append(this.hotspotId);
12839
      }
12840
      first = false;
12841
      sb.append(")");
12842
      return sb.toString();
12843
    }
12844
 
12845
    public void validate() throws org.apache.thrift.TException {
12846
      // check for required fields
12847
    }
12848
 
12849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12850
      try {
12851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12852
      } catch (org.apache.thrift.TException te) {
12853
        throw new java.io.IOException(te);
12854
      }
12855
    }
12856
 
12857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12858
      try {
12859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12860
      } catch (org.apache.thrift.TException te) {
12861
        throw new java.io.IOException(te);
12862
      }
12863
    }
12864
 
12865
  }
12866
 
12867
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
12868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
12869
 
12870
    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);
12871
 
12872
    private PickupStore success; // required
12873
 
12874
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12875
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12876
      SUCCESS((short)0, "success");
12877
 
12878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12879
 
12880
      static {
12881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12882
          byName.put(field.getFieldName(), field);
12883
        }
12884
      }
12885
 
12886
      /**
12887
       * Find the _Fields constant that matches fieldId, or null if its not found.
12888
       */
12889
      public static _Fields findByThriftId(int fieldId) {
12890
        switch(fieldId) {
12891
          case 0: // SUCCESS
12892
            return SUCCESS;
12893
          default:
12894
            return null;
12895
        }
12896
      }
12897
 
12898
      /**
12899
       * Find the _Fields constant that matches fieldId, throwing an exception
12900
       * if it is not found.
12901
       */
12902
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12903
        _Fields fields = findByThriftId(fieldId);
12904
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12905
        return fields;
12906
      }
12907
 
12908
      /**
12909
       * Find the _Fields constant that matches name, or null if its not found.
12910
       */
12911
      public static _Fields findByName(String name) {
12912
        return byName.get(name);
12913
      }
12914
 
12915
      private final short _thriftId;
12916
      private final String _fieldName;
12917
 
12918
      _Fields(short thriftId, String fieldName) {
12919
        _thriftId = thriftId;
12920
        _fieldName = fieldName;
12921
      }
12922
 
12923
      public short getThriftFieldId() {
12924
        return _thriftId;
12925
      }
12926
 
12927
      public String getFieldName() {
12928
        return _fieldName;
12929
      }
12930
    }
12931
 
12932
    // isset id assignments
12933
 
12934
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12935
    static {
12936
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12937
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12938
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12939
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12940
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
12941
    }
12942
 
12943
    public getPickupStoreByHotspotId_result() {
12944
    }
12945
 
12946
    public getPickupStoreByHotspotId_result(
12947
      PickupStore success)
12948
    {
12949
      this();
12950
      this.success = success;
12951
    }
12952
 
12953
    /**
12954
     * Performs a deep copy on <i>other</i>.
12955
     */
12956
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
12957
      if (other.isSetSuccess()) {
12958
        this.success = new PickupStore(other.success);
12959
      }
12960
    }
12961
 
12962
    public getPickupStoreByHotspotId_result deepCopy() {
12963
      return new getPickupStoreByHotspotId_result(this);
12964
    }
12965
 
12966
    @Override
12967
    public void clear() {
12968
      this.success = null;
12969
    }
12970
 
12971
    public PickupStore getSuccess() {
12972
      return this.success;
12973
    }
12974
 
12975
    public void setSuccess(PickupStore success) {
12976
      this.success = success;
12977
    }
12978
 
12979
    public void unsetSuccess() {
12980
      this.success = null;
12981
    }
12982
 
12983
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12984
    public boolean isSetSuccess() {
12985
      return this.success != null;
12986
    }
12987
 
12988
    public void setSuccessIsSet(boolean value) {
12989
      if (!value) {
12990
        this.success = null;
12991
      }
12992
    }
12993
 
12994
    public void setFieldValue(_Fields field, Object value) {
12995
      switch (field) {
12996
      case SUCCESS:
12997
        if (value == null) {
12998
          unsetSuccess();
12999
        } else {
13000
          setSuccess((PickupStore)value);
13001
        }
13002
        break;
13003
 
13004
      }
13005
    }
13006
 
13007
    public Object getFieldValue(_Fields field) {
13008
      switch (field) {
13009
      case SUCCESS:
13010
        return getSuccess();
13011
 
13012
      }
13013
      throw new IllegalStateException();
13014
    }
13015
 
13016
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13017
    public boolean isSet(_Fields field) {
13018
      if (field == null) {
13019
        throw new IllegalArgumentException();
13020
      }
13021
 
13022
      switch (field) {
13023
      case SUCCESS:
13024
        return isSetSuccess();
13025
      }
13026
      throw new IllegalStateException();
13027
    }
13028
 
13029
    @Override
13030
    public boolean equals(Object that) {
13031
      if (that == null)
13032
        return false;
13033
      if (that instanceof getPickupStoreByHotspotId_result)
13034
        return this.equals((getPickupStoreByHotspotId_result)that);
13035
      return false;
13036
    }
13037
 
13038
    public boolean equals(getPickupStoreByHotspotId_result that) {
13039
      if (that == null)
13040
        return false;
13041
 
13042
      boolean this_present_success = true && this.isSetSuccess();
13043
      boolean that_present_success = true && that.isSetSuccess();
13044
      if (this_present_success || that_present_success) {
13045
        if (!(this_present_success && that_present_success))
13046
          return false;
13047
        if (!this.success.equals(that.success))
13048
          return false;
13049
      }
13050
 
13051
      return true;
13052
    }
13053
 
13054
    @Override
13055
    public int hashCode() {
13056
      return 0;
13057
    }
13058
 
13059
    public int compareTo(getPickupStoreByHotspotId_result other) {
13060
      if (!getClass().equals(other.getClass())) {
13061
        return getClass().getName().compareTo(other.getClass().getName());
13062
      }
13063
 
13064
      int lastComparison = 0;
13065
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13066
 
13067
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13068
      if (lastComparison != 0) {
13069
        return lastComparison;
13070
      }
13071
      if (isSetSuccess()) {
13072
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13073
        if (lastComparison != 0) {
13074
          return lastComparison;
13075
        }
13076
      }
13077
      return 0;
13078
    }
13079
 
13080
    public _Fields fieldForId(int fieldId) {
13081
      return _Fields.findByThriftId(fieldId);
13082
    }
13083
 
13084
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13085
      org.apache.thrift.protocol.TField field;
13086
      iprot.readStructBegin();
13087
      while (true)
13088
      {
13089
        field = iprot.readFieldBegin();
13090
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13091
          break;
13092
        }
13093
        switch (field.id) {
13094
          case 0: // SUCCESS
13095
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13096
              this.success = new PickupStore();
13097
              this.success.read(iprot);
13098
            } else { 
13099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13100
            }
13101
            break;
13102
          default:
13103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13104
        }
13105
        iprot.readFieldEnd();
13106
      }
13107
      iprot.readStructEnd();
13108
      validate();
13109
    }
13110
 
13111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13112
      oprot.writeStructBegin(STRUCT_DESC);
13113
 
13114
      if (this.isSetSuccess()) {
13115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13116
        this.success.write(oprot);
13117
        oprot.writeFieldEnd();
13118
      }
13119
      oprot.writeFieldStop();
13120
      oprot.writeStructEnd();
13121
    }
13122
 
13123
    @Override
13124
    public String toString() {
13125
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13126
      boolean first = true;
13127
 
13128
      sb.append("success:");
13129
      if (this.success == null) {
13130
        sb.append("null");
13131
      } else {
13132
        sb.append(this.success);
13133
      }
13134
      first = false;
13135
      sb.append(")");
13136
      return sb.toString();
13137
    }
13138
 
13139
    public void validate() throws org.apache.thrift.TException {
13140
      // check for required fields
13141
    }
13142
 
13143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13144
      try {
13145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13146
      } catch (org.apache.thrift.TException te) {
13147
        throw new java.io.IOException(te);
13148
      }
13149
    }
13150
 
13151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13152
      try {
13153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13154
      } catch (org.apache.thrift.TException te) {
13155
        throw new java.io.IOException(te);
13156
      }
13157
    }
13158
 
13159
  }
13160
 
6322 amar.kumar 13161
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13163
 
13164
    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);
13165
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
13166
    private static final org.apache.thrift.protocol.TField DEST_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destCode", org.apache.thrift.protocol.TType.STRING, (short)3);
13167
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)4);
13168
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);
13169
    private static final org.apache.thrift.protocol.TField STATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stationType", org.apache.thrift.protocol.TType.I32, (short)6);
6524 rajveer 13170
    private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)7);
6322 amar.kumar 13171
 
13172
    private long providerId; // required
13173
    private String pincode; // required
13174
    private String destCode; // required
13175
    private boolean exp; // required
13176
    private boolean cod; // required
13177
    private int stationType; // required
6524 rajveer 13178
    private boolean otgAvailable; // required
6322 amar.kumar 13179
 
13180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13182
      PROVIDER_ID((short)1, "providerId"),
13183
      PINCODE((short)2, "pincode"),
13184
      DEST_CODE((short)3, "destCode"),
13185
      EXP((short)4, "exp"),
13186
      COD((short)5, "cod"),
6524 rajveer 13187
      STATION_TYPE((short)6, "stationType"),
13188
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13189
 
13190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13191
 
13192
      static {
13193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13194
          byName.put(field.getFieldName(), field);
13195
        }
13196
      }
13197
 
13198
      /**
13199
       * Find the _Fields constant that matches fieldId, or null if its not found.
13200
       */
13201
      public static _Fields findByThriftId(int fieldId) {
13202
        switch(fieldId) {
13203
          case 1: // PROVIDER_ID
13204
            return PROVIDER_ID;
13205
          case 2: // PINCODE
13206
            return PINCODE;
13207
          case 3: // DEST_CODE
13208
            return DEST_CODE;
13209
          case 4: // EXP
13210
            return EXP;
13211
          case 5: // COD
13212
            return COD;
13213
          case 6: // STATION_TYPE
13214
            return STATION_TYPE;
6524 rajveer 13215
          case 7: // OTG_AVAILABLE
13216
            return OTG_AVAILABLE;
6322 amar.kumar 13217
          default:
13218
            return null;
13219
        }
13220
      }
13221
 
13222
      /**
13223
       * Find the _Fields constant that matches fieldId, throwing an exception
13224
       * if it is not found.
13225
       */
13226
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13227
        _Fields fields = findByThriftId(fieldId);
13228
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13229
        return fields;
13230
      }
13231
 
13232
      /**
13233
       * Find the _Fields constant that matches name, or null if its not found.
13234
       */
13235
      public static _Fields findByName(String name) {
13236
        return byName.get(name);
13237
      }
13238
 
13239
      private final short _thriftId;
13240
      private final String _fieldName;
13241
 
13242
      _Fields(short thriftId, String fieldName) {
13243
        _thriftId = thriftId;
13244
        _fieldName = fieldName;
13245
      }
13246
 
13247
      public short getThriftFieldId() {
13248
        return _thriftId;
13249
      }
13250
 
13251
      public String getFieldName() {
13252
        return _fieldName;
13253
      }
13254
    }
13255
 
13256
    // isset id assignments
13257
    private static final int __PROVIDERID_ISSET_ID = 0;
13258
    private static final int __EXP_ISSET_ID = 1;
13259
    private static final int __COD_ISSET_ID = 2;
13260
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13261
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13262
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13263
 
13264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13265
    static {
13266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13267
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13269
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13270
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13271
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13273
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13275
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13277
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13279
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13283
    }
13284
 
13285
    public addPincode_args() {
13286
    }
13287
 
13288
    public addPincode_args(
13289
      long providerId,
13290
      String pincode,
13291
      String destCode,
13292
      boolean exp,
13293
      boolean cod,
6524 rajveer 13294
      int stationType,
13295
      boolean otgAvailable)
6322 amar.kumar 13296
    {
13297
      this();
13298
      this.providerId = providerId;
13299
      setProviderIdIsSet(true);
13300
      this.pincode = pincode;
13301
      this.destCode = destCode;
13302
      this.exp = exp;
13303
      setExpIsSet(true);
13304
      this.cod = cod;
13305
      setCodIsSet(true);
13306
      this.stationType = stationType;
13307
      setStationTypeIsSet(true);
6524 rajveer 13308
      this.otgAvailable = otgAvailable;
13309
      setOtgAvailableIsSet(true);
6322 amar.kumar 13310
    }
13311
 
13312
    /**
13313
     * Performs a deep copy on <i>other</i>.
13314
     */
13315
    public addPincode_args(addPincode_args other) {
13316
      __isset_bit_vector.clear();
13317
      __isset_bit_vector.or(other.__isset_bit_vector);
13318
      this.providerId = other.providerId;
13319
      if (other.isSetPincode()) {
13320
        this.pincode = other.pincode;
13321
      }
13322
      if (other.isSetDestCode()) {
13323
        this.destCode = other.destCode;
13324
      }
13325
      this.exp = other.exp;
13326
      this.cod = other.cod;
13327
      this.stationType = other.stationType;
6524 rajveer 13328
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13329
    }
13330
 
13331
    public addPincode_args deepCopy() {
13332
      return new addPincode_args(this);
13333
    }
13334
 
13335
    @Override
13336
    public void clear() {
13337
      setProviderIdIsSet(false);
13338
      this.providerId = 0;
13339
      this.pincode = null;
13340
      this.destCode = null;
13341
      setExpIsSet(false);
13342
      this.exp = false;
13343
      setCodIsSet(false);
13344
      this.cod = false;
13345
      setStationTypeIsSet(false);
13346
      this.stationType = 0;
6524 rajveer 13347
      setOtgAvailableIsSet(false);
13348
      this.otgAvailable = false;
6322 amar.kumar 13349
    }
13350
 
13351
    public long getProviderId() {
13352
      return this.providerId;
13353
    }
13354
 
13355
    public void setProviderId(long providerId) {
13356
      this.providerId = providerId;
13357
      setProviderIdIsSet(true);
13358
    }
13359
 
13360
    public void unsetProviderId() {
13361
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13362
    }
13363
 
13364
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13365
    public boolean isSetProviderId() {
13366
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13367
    }
13368
 
13369
    public void setProviderIdIsSet(boolean value) {
13370
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13371
    }
13372
 
13373
    public String getPincode() {
13374
      return this.pincode;
13375
    }
13376
 
13377
    public void setPincode(String pincode) {
13378
      this.pincode = pincode;
13379
    }
13380
 
13381
    public void unsetPincode() {
13382
      this.pincode = null;
13383
    }
13384
 
13385
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13386
    public boolean isSetPincode() {
13387
      return this.pincode != null;
13388
    }
13389
 
13390
    public void setPincodeIsSet(boolean value) {
13391
      if (!value) {
13392
        this.pincode = null;
13393
      }
13394
    }
13395
 
13396
    public String getDestCode() {
13397
      return this.destCode;
13398
    }
13399
 
13400
    public void setDestCode(String destCode) {
13401
      this.destCode = destCode;
13402
    }
13403
 
13404
    public void unsetDestCode() {
13405
      this.destCode = null;
13406
    }
13407
 
13408
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13409
    public boolean isSetDestCode() {
13410
      return this.destCode != null;
13411
    }
13412
 
13413
    public void setDestCodeIsSet(boolean value) {
13414
      if (!value) {
13415
        this.destCode = null;
13416
      }
13417
    }
13418
 
13419
    public boolean isExp() {
13420
      return this.exp;
13421
    }
13422
 
13423
    public void setExp(boolean exp) {
13424
      this.exp = exp;
13425
      setExpIsSet(true);
13426
    }
13427
 
13428
    public void unsetExp() {
13429
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13430
    }
13431
 
13432
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13433
    public boolean isSetExp() {
13434
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13435
    }
13436
 
13437
    public void setExpIsSet(boolean value) {
13438
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13439
    }
13440
 
13441
    public boolean isCod() {
13442
      return this.cod;
13443
    }
13444
 
13445
    public void setCod(boolean cod) {
13446
      this.cod = cod;
13447
      setCodIsSet(true);
13448
    }
13449
 
13450
    public void unsetCod() {
13451
      __isset_bit_vector.clear(__COD_ISSET_ID);
13452
    }
13453
 
13454
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13455
    public boolean isSetCod() {
13456
      return __isset_bit_vector.get(__COD_ISSET_ID);
13457
    }
13458
 
13459
    public void setCodIsSet(boolean value) {
13460
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13461
    }
13462
 
13463
    public int getStationType() {
13464
      return this.stationType;
13465
    }
13466
 
13467
    public void setStationType(int stationType) {
13468
      this.stationType = stationType;
13469
      setStationTypeIsSet(true);
13470
    }
13471
 
13472
    public void unsetStationType() {
13473
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13474
    }
13475
 
13476
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13477
    public boolean isSetStationType() {
13478
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13479
    }
13480
 
13481
    public void setStationTypeIsSet(boolean value) {
13482
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13483
    }
13484
 
6524 rajveer 13485
    public boolean isOtgAvailable() {
13486
      return this.otgAvailable;
13487
    }
13488
 
13489
    public void setOtgAvailable(boolean otgAvailable) {
13490
      this.otgAvailable = otgAvailable;
13491
      setOtgAvailableIsSet(true);
13492
    }
13493
 
13494
    public void unsetOtgAvailable() {
13495
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13496
    }
13497
 
13498
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13499
    public boolean isSetOtgAvailable() {
13500
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13501
    }
13502
 
13503
    public void setOtgAvailableIsSet(boolean value) {
13504
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13505
    }
13506
 
6322 amar.kumar 13507
    public void setFieldValue(_Fields field, Object value) {
13508
      switch (field) {
13509
      case PROVIDER_ID:
13510
        if (value == null) {
13511
          unsetProviderId();
13512
        } else {
13513
          setProviderId((Long)value);
13514
        }
13515
        break;
13516
 
13517
      case PINCODE:
13518
        if (value == null) {
13519
          unsetPincode();
13520
        } else {
13521
          setPincode((String)value);
13522
        }
13523
        break;
13524
 
13525
      case DEST_CODE:
13526
        if (value == null) {
13527
          unsetDestCode();
13528
        } else {
13529
          setDestCode((String)value);
13530
        }
13531
        break;
13532
 
13533
      case EXP:
13534
        if (value == null) {
13535
          unsetExp();
13536
        } else {
13537
          setExp((Boolean)value);
13538
        }
13539
        break;
13540
 
13541
      case COD:
13542
        if (value == null) {
13543
          unsetCod();
13544
        } else {
13545
          setCod((Boolean)value);
13546
        }
13547
        break;
13548
 
13549
      case STATION_TYPE:
13550
        if (value == null) {
13551
          unsetStationType();
13552
        } else {
13553
          setStationType((Integer)value);
13554
        }
13555
        break;
13556
 
6524 rajveer 13557
      case OTG_AVAILABLE:
13558
        if (value == null) {
13559
          unsetOtgAvailable();
13560
        } else {
13561
          setOtgAvailable((Boolean)value);
13562
        }
13563
        break;
13564
 
6322 amar.kumar 13565
      }
13566
    }
13567
 
13568
    public Object getFieldValue(_Fields field) {
13569
      switch (field) {
13570
      case PROVIDER_ID:
13571
        return Long.valueOf(getProviderId());
13572
 
13573
      case PINCODE:
13574
        return getPincode();
13575
 
13576
      case DEST_CODE:
13577
        return getDestCode();
13578
 
13579
      case EXP:
13580
        return Boolean.valueOf(isExp());
13581
 
13582
      case COD:
13583
        return Boolean.valueOf(isCod());
13584
 
13585
      case STATION_TYPE:
13586
        return Integer.valueOf(getStationType());
13587
 
6524 rajveer 13588
      case OTG_AVAILABLE:
13589
        return Boolean.valueOf(isOtgAvailable());
13590
 
6322 amar.kumar 13591
      }
13592
      throw new IllegalStateException();
13593
    }
13594
 
13595
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13596
    public boolean isSet(_Fields field) {
13597
      if (field == null) {
13598
        throw new IllegalArgumentException();
13599
      }
13600
 
13601
      switch (field) {
13602
      case PROVIDER_ID:
13603
        return isSetProviderId();
13604
      case PINCODE:
13605
        return isSetPincode();
13606
      case DEST_CODE:
13607
        return isSetDestCode();
13608
      case EXP:
13609
        return isSetExp();
13610
      case COD:
13611
        return isSetCod();
13612
      case STATION_TYPE:
13613
        return isSetStationType();
6524 rajveer 13614
      case OTG_AVAILABLE:
13615
        return isSetOtgAvailable();
6322 amar.kumar 13616
      }
13617
      throw new IllegalStateException();
13618
    }
13619
 
13620
    @Override
13621
    public boolean equals(Object that) {
13622
      if (that == null)
13623
        return false;
13624
      if (that instanceof addPincode_args)
13625
        return this.equals((addPincode_args)that);
13626
      return false;
13627
    }
13628
 
13629
    public boolean equals(addPincode_args that) {
13630
      if (that == null)
13631
        return false;
13632
 
13633
      boolean this_present_providerId = true;
13634
      boolean that_present_providerId = true;
13635
      if (this_present_providerId || that_present_providerId) {
13636
        if (!(this_present_providerId && that_present_providerId))
13637
          return false;
13638
        if (this.providerId != that.providerId)
13639
          return false;
13640
      }
13641
 
13642
      boolean this_present_pincode = true && this.isSetPincode();
13643
      boolean that_present_pincode = true && that.isSetPincode();
13644
      if (this_present_pincode || that_present_pincode) {
13645
        if (!(this_present_pincode && that_present_pincode))
13646
          return false;
13647
        if (!this.pincode.equals(that.pincode))
13648
          return false;
13649
      }
13650
 
13651
      boolean this_present_destCode = true && this.isSetDestCode();
13652
      boolean that_present_destCode = true && that.isSetDestCode();
13653
      if (this_present_destCode || that_present_destCode) {
13654
        if (!(this_present_destCode && that_present_destCode))
13655
          return false;
13656
        if (!this.destCode.equals(that.destCode))
13657
          return false;
13658
      }
13659
 
13660
      boolean this_present_exp = true;
13661
      boolean that_present_exp = true;
13662
      if (this_present_exp || that_present_exp) {
13663
        if (!(this_present_exp && that_present_exp))
13664
          return false;
13665
        if (this.exp != that.exp)
13666
          return false;
13667
      }
13668
 
13669
      boolean this_present_cod = true;
13670
      boolean that_present_cod = true;
13671
      if (this_present_cod || that_present_cod) {
13672
        if (!(this_present_cod && that_present_cod))
13673
          return false;
13674
        if (this.cod != that.cod)
13675
          return false;
13676
      }
13677
 
13678
      boolean this_present_stationType = true;
13679
      boolean that_present_stationType = true;
13680
      if (this_present_stationType || that_present_stationType) {
13681
        if (!(this_present_stationType && that_present_stationType))
13682
          return false;
13683
        if (this.stationType != that.stationType)
13684
          return false;
13685
      }
13686
 
6524 rajveer 13687
      boolean this_present_otgAvailable = true;
13688
      boolean that_present_otgAvailable = true;
13689
      if (this_present_otgAvailable || that_present_otgAvailable) {
13690
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13691
          return false;
13692
        if (this.otgAvailable != that.otgAvailable)
13693
          return false;
13694
      }
13695
 
6322 amar.kumar 13696
      return true;
13697
    }
13698
 
13699
    @Override
13700
    public int hashCode() {
13701
      return 0;
13702
    }
13703
 
13704
    public int compareTo(addPincode_args other) {
13705
      if (!getClass().equals(other.getClass())) {
13706
        return getClass().getName().compareTo(other.getClass().getName());
13707
      }
13708
 
13709
      int lastComparison = 0;
13710
      addPincode_args typedOther = (addPincode_args)other;
13711
 
13712
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13713
      if (lastComparison != 0) {
13714
        return lastComparison;
13715
      }
13716
      if (isSetProviderId()) {
13717
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13718
        if (lastComparison != 0) {
13719
          return lastComparison;
13720
        }
13721
      }
13722
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13723
      if (lastComparison != 0) {
13724
        return lastComparison;
13725
      }
13726
      if (isSetPincode()) {
13727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13728
        if (lastComparison != 0) {
13729
          return lastComparison;
13730
        }
13731
      }
13732
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
13733
      if (lastComparison != 0) {
13734
        return lastComparison;
13735
      }
13736
      if (isSetDestCode()) {
13737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
13738
        if (lastComparison != 0) {
13739
          return lastComparison;
13740
        }
13741
      }
13742
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13743
      if (lastComparison != 0) {
13744
        return lastComparison;
13745
      }
13746
      if (isSetExp()) {
13747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13748
        if (lastComparison != 0) {
13749
          return lastComparison;
13750
        }
13751
      }
13752
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13753
      if (lastComparison != 0) {
13754
        return lastComparison;
13755
      }
13756
      if (isSetCod()) {
13757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
13758
        if (lastComparison != 0) {
13759
          return lastComparison;
13760
        }
13761
      }
13762
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
13763
      if (lastComparison != 0) {
13764
        return lastComparison;
13765
      }
13766
      if (isSetStationType()) {
13767
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
13768
        if (lastComparison != 0) {
13769
          return lastComparison;
13770
        }
13771
      }
6524 rajveer 13772
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
13773
      if (lastComparison != 0) {
13774
        return lastComparison;
13775
      }
13776
      if (isSetOtgAvailable()) {
13777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
13778
        if (lastComparison != 0) {
13779
          return lastComparison;
13780
        }
13781
      }
6322 amar.kumar 13782
      return 0;
13783
    }
13784
 
13785
    public _Fields fieldForId(int fieldId) {
13786
      return _Fields.findByThriftId(fieldId);
13787
    }
13788
 
13789
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13790
      org.apache.thrift.protocol.TField field;
13791
      iprot.readStructBegin();
13792
      while (true)
13793
      {
13794
        field = iprot.readFieldBegin();
13795
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13796
          break;
13797
        }
13798
        switch (field.id) {
13799
          case 1: // PROVIDER_ID
13800
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13801
              this.providerId = iprot.readI64();
13802
              setProviderIdIsSet(true);
13803
            } else { 
13804
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13805
            }
13806
            break;
13807
          case 2: // PINCODE
13808
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13809
              this.pincode = iprot.readString();
13810
            } else { 
13811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13812
            }
13813
            break;
13814
          case 3: // DEST_CODE
13815
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13816
              this.destCode = iprot.readString();
13817
            } else { 
13818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13819
            }
13820
            break;
13821
          case 4: // EXP
13822
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13823
              this.exp = iprot.readBool();
13824
              setExpIsSet(true);
13825
            } else { 
13826
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13827
            }
13828
            break;
13829
          case 5: // COD
13830
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13831
              this.cod = iprot.readBool();
13832
              setCodIsSet(true);
13833
            } else { 
13834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13835
            }
13836
            break;
13837
          case 6: // STATION_TYPE
13838
            if (field.type == org.apache.thrift.protocol.TType.I32) {
13839
              this.stationType = iprot.readI32();
13840
              setStationTypeIsSet(true);
13841
            } else { 
13842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13843
            }
13844
            break;
6524 rajveer 13845
          case 7: // OTG_AVAILABLE
13846
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13847
              this.otgAvailable = iprot.readBool();
13848
              setOtgAvailableIsSet(true);
13849
            } else { 
13850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13851
            }
13852
            break;
6322 amar.kumar 13853
          default:
13854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13855
        }
13856
        iprot.readFieldEnd();
13857
      }
13858
      iprot.readStructEnd();
13859
      validate();
13860
    }
13861
 
13862
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13863
      validate();
13864
 
13865
      oprot.writeStructBegin(STRUCT_DESC);
13866
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
13867
      oprot.writeI64(this.providerId);
13868
      oprot.writeFieldEnd();
13869
      if (this.pincode != null) {
13870
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
13871
        oprot.writeString(this.pincode);
13872
        oprot.writeFieldEnd();
13873
      }
13874
      if (this.destCode != null) {
13875
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
13876
        oprot.writeString(this.destCode);
13877
        oprot.writeFieldEnd();
13878
      }
13879
      oprot.writeFieldBegin(EXP_FIELD_DESC);
13880
      oprot.writeBool(this.exp);
13881
      oprot.writeFieldEnd();
13882
      oprot.writeFieldBegin(COD_FIELD_DESC);
13883
      oprot.writeBool(this.cod);
13884
      oprot.writeFieldEnd();
13885
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
13886
      oprot.writeI32(this.stationType);
13887
      oprot.writeFieldEnd();
6524 rajveer 13888
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
13889
      oprot.writeBool(this.otgAvailable);
13890
      oprot.writeFieldEnd();
6322 amar.kumar 13891
      oprot.writeFieldStop();
13892
      oprot.writeStructEnd();
13893
    }
13894
 
13895
    @Override
13896
    public String toString() {
13897
      StringBuilder sb = new StringBuilder("addPincode_args(");
13898
      boolean first = true;
13899
 
13900
      sb.append("providerId:");
13901
      sb.append(this.providerId);
13902
      first = false;
13903
      if (!first) sb.append(", ");
13904
      sb.append("pincode:");
13905
      if (this.pincode == null) {
13906
        sb.append("null");
13907
      } else {
13908
        sb.append(this.pincode);
13909
      }
13910
      first = false;
13911
      if (!first) sb.append(", ");
13912
      sb.append("destCode:");
13913
      if (this.destCode == null) {
13914
        sb.append("null");
13915
      } else {
13916
        sb.append(this.destCode);
13917
      }
13918
      first = false;
13919
      if (!first) sb.append(", ");
13920
      sb.append("exp:");
13921
      sb.append(this.exp);
13922
      first = false;
13923
      if (!first) sb.append(", ");
13924
      sb.append("cod:");
13925
      sb.append(this.cod);
13926
      first = false;
13927
      if (!first) sb.append(", ");
13928
      sb.append("stationType:");
13929
      sb.append(this.stationType);
13930
      first = false;
6524 rajveer 13931
      if (!first) sb.append(", ");
13932
      sb.append("otgAvailable:");
13933
      sb.append(this.otgAvailable);
13934
      first = false;
6322 amar.kumar 13935
      sb.append(")");
13936
      return sb.toString();
13937
    }
13938
 
13939
    public void validate() throws org.apache.thrift.TException {
13940
      // check for required fields
13941
    }
13942
 
13943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13944
      try {
13945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13946
      } catch (org.apache.thrift.TException te) {
13947
        throw new java.io.IOException(te);
13948
      }
13949
    }
13950
 
13951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13952
      try {
13953
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13954
        __isset_bit_vector = new BitSet(1);
13955
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13956
      } catch (org.apache.thrift.TException te) {
13957
        throw new java.io.IOException(te);
13958
      }
13959
    }
13960
 
13961
  }
13962
 
13963
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
13964
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
13965
 
13966
 
13967
 
13968
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13969
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13970
;
13971
 
13972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13973
 
13974
      static {
13975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13976
          byName.put(field.getFieldName(), field);
13977
        }
13978
      }
13979
 
13980
      /**
13981
       * Find the _Fields constant that matches fieldId, or null if its not found.
13982
       */
13983
      public static _Fields findByThriftId(int fieldId) {
13984
        switch(fieldId) {
13985
          default:
13986
            return null;
13987
        }
13988
      }
13989
 
13990
      /**
13991
       * Find the _Fields constant that matches fieldId, throwing an exception
13992
       * if it is not found.
13993
       */
13994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13995
        _Fields fields = findByThriftId(fieldId);
13996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13997
        return fields;
13998
      }
13999
 
14000
      /**
14001
       * Find the _Fields constant that matches name, or null if its not found.
14002
       */
14003
      public static _Fields findByName(String name) {
14004
        return byName.get(name);
14005
      }
14006
 
14007
      private final short _thriftId;
14008
      private final String _fieldName;
14009
 
14010
      _Fields(short thriftId, String fieldName) {
14011
        _thriftId = thriftId;
14012
        _fieldName = fieldName;
14013
      }
14014
 
14015
      public short getThriftFieldId() {
14016
        return _thriftId;
14017
      }
14018
 
14019
      public String getFieldName() {
14020
        return _fieldName;
14021
      }
14022
    }
14023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14024
    static {
14025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14028
    }
14029
 
14030
    public addPincode_result() {
14031
    }
14032
 
14033
    /**
14034
     * Performs a deep copy on <i>other</i>.
14035
     */
14036
    public addPincode_result(addPincode_result other) {
14037
    }
14038
 
14039
    public addPincode_result deepCopy() {
14040
      return new addPincode_result(this);
14041
    }
14042
 
14043
    @Override
14044
    public void clear() {
14045
    }
14046
 
14047
    public void setFieldValue(_Fields field, Object value) {
14048
      switch (field) {
14049
      }
14050
    }
14051
 
14052
    public Object getFieldValue(_Fields field) {
14053
      switch (field) {
14054
      }
14055
      throw new IllegalStateException();
14056
    }
14057
 
14058
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14059
    public boolean isSet(_Fields field) {
14060
      if (field == null) {
14061
        throw new IllegalArgumentException();
14062
      }
14063
 
14064
      switch (field) {
14065
      }
14066
      throw new IllegalStateException();
14067
    }
14068
 
14069
    @Override
14070
    public boolean equals(Object that) {
14071
      if (that == null)
14072
        return false;
14073
      if (that instanceof addPincode_result)
14074
        return this.equals((addPincode_result)that);
14075
      return false;
14076
    }
14077
 
14078
    public boolean equals(addPincode_result that) {
14079
      if (that == null)
14080
        return false;
14081
 
14082
      return true;
14083
    }
14084
 
14085
    @Override
14086
    public int hashCode() {
14087
      return 0;
14088
    }
14089
 
14090
    public int compareTo(addPincode_result other) {
14091
      if (!getClass().equals(other.getClass())) {
14092
        return getClass().getName().compareTo(other.getClass().getName());
14093
      }
14094
 
14095
      int lastComparison = 0;
14096
      addPincode_result typedOther = (addPincode_result)other;
14097
 
14098
      return 0;
14099
    }
14100
 
14101
    public _Fields fieldForId(int fieldId) {
14102
      return _Fields.findByThriftId(fieldId);
14103
    }
14104
 
14105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14106
      org.apache.thrift.protocol.TField field;
14107
      iprot.readStructBegin();
14108
      while (true)
14109
      {
14110
        field = iprot.readFieldBegin();
14111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14112
          break;
14113
        }
14114
        switch (field.id) {
14115
          default:
14116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14117
        }
14118
        iprot.readFieldEnd();
14119
      }
14120
      iprot.readStructEnd();
14121
      validate();
14122
    }
14123
 
14124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14125
      oprot.writeStructBegin(STRUCT_DESC);
14126
 
14127
      oprot.writeFieldStop();
14128
      oprot.writeStructEnd();
14129
    }
14130
 
14131
    @Override
14132
    public String toString() {
14133
      StringBuilder sb = new StringBuilder("addPincode_result(");
14134
      boolean first = true;
14135
 
14136
      sb.append(")");
14137
      return sb.toString();
14138
    }
14139
 
14140
    public void validate() throws org.apache.thrift.TException {
14141
      // check for required fields
14142
    }
14143
 
14144
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14145
      try {
14146
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14147
      } catch (org.apache.thrift.TException te) {
14148
        throw new java.io.IOException(te);
14149
      }
14150
    }
14151
 
14152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14153
      try {
14154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14155
      } catch (org.apache.thrift.TException te) {
14156
        throw new java.io.IOException(te);
14157
      }
14158
    }
14159
 
14160
  }
14161
 
14162
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14163
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14164
 
14165
    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);
14166
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
14167
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)3);
14168
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)4);
6524 rajveer 14169
    private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)5);
6322 amar.kumar 14170
 
14171
    private long providerId; // required
14172
    private String pincode; // required
14173
    private boolean exp; // required
14174
    private boolean cod; // required
6524 rajveer 14175
    private boolean otgAvailable; // required
6322 amar.kumar 14176
 
14177
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14178
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14179
      PROVIDER_ID((short)1, "providerId"),
14180
      PINCODE((short)2, "pincode"),
14181
      EXP((short)3, "exp"),
6524 rajveer 14182
      COD((short)4, "cod"),
14183
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14184
 
14185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14186
 
14187
      static {
14188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14189
          byName.put(field.getFieldName(), field);
14190
        }
14191
      }
14192
 
14193
      /**
14194
       * Find the _Fields constant that matches fieldId, or null if its not found.
14195
       */
14196
      public static _Fields findByThriftId(int fieldId) {
14197
        switch(fieldId) {
14198
          case 1: // PROVIDER_ID
14199
            return PROVIDER_ID;
14200
          case 2: // PINCODE
14201
            return PINCODE;
14202
          case 3: // EXP
14203
            return EXP;
14204
          case 4: // COD
14205
            return COD;
6524 rajveer 14206
          case 5: // OTG_AVAILABLE
14207
            return OTG_AVAILABLE;
6322 amar.kumar 14208
          default:
14209
            return null;
14210
        }
14211
      }
14212
 
14213
      /**
14214
       * Find the _Fields constant that matches fieldId, throwing an exception
14215
       * if it is not found.
14216
       */
14217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14218
        _Fields fields = findByThriftId(fieldId);
14219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14220
        return fields;
14221
      }
14222
 
14223
      /**
14224
       * Find the _Fields constant that matches name, or null if its not found.
14225
       */
14226
      public static _Fields findByName(String name) {
14227
        return byName.get(name);
14228
      }
14229
 
14230
      private final short _thriftId;
14231
      private final String _fieldName;
14232
 
14233
      _Fields(short thriftId, String fieldName) {
14234
        _thriftId = thriftId;
14235
        _fieldName = fieldName;
14236
      }
14237
 
14238
      public short getThriftFieldId() {
14239
        return _thriftId;
14240
      }
14241
 
14242
      public String getFieldName() {
14243
        return _fieldName;
14244
      }
14245
    }
14246
 
14247
    // isset id assignments
14248
    private static final int __PROVIDERID_ISSET_ID = 0;
14249
    private static final int __EXP_ISSET_ID = 1;
14250
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14251
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14252
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14253
 
14254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14255
    static {
14256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14257
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14258
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14259
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14261
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14262
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14263
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14264
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14265
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14269
    }
14270
 
14271
    public updatePincode_args() {
14272
    }
14273
 
14274
    public updatePincode_args(
14275
      long providerId,
14276
      String pincode,
14277
      boolean exp,
6524 rajveer 14278
      boolean cod,
14279
      boolean otgAvailable)
6322 amar.kumar 14280
    {
14281
      this();
14282
      this.providerId = providerId;
14283
      setProviderIdIsSet(true);
14284
      this.pincode = pincode;
14285
      this.exp = exp;
14286
      setExpIsSet(true);
14287
      this.cod = cod;
14288
      setCodIsSet(true);
6524 rajveer 14289
      this.otgAvailable = otgAvailable;
14290
      setOtgAvailableIsSet(true);
6322 amar.kumar 14291
    }
14292
 
14293
    /**
14294
     * Performs a deep copy on <i>other</i>.
14295
     */
14296
    public updatePincode_args(updatePincode_args other) {
14297
      __isset_bit_vector.clear();
14298
      __isset_bit_vector.or(other.__isset_bit_vector);
14299
      this.providerId = other.providerId;
14300
      if (other.isSetPincode()) {
14301
        this.pincode = other.pincode;
14302
      }
14303
      this.exp = other.exp;
14304
      this.cod = other.cod;
6524 rajveer 14305
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14306
    }
14307
 
14308
    public updatePincode_args deepCopy() {
14309
      return new updatePincode_args(this);
14310
    }
14311
 
14312
    @Override
14313
    public void clear() {
14314
      setProviderIdIsSet(false);
14315
      this.providerId = 0;
14316
      this.pincode = null;
14317
      setExpIsSet(false);
14318
      this.exp = false;
14319
      setCodIsSet(false);
14320
      this.cod = false;
6524 rajveer 14321
      setOtgAvailableIsSet(false);
14322
      this.otgAvailable = false;
6322 amar.kumar 14323
    }
14324
 
14325
    public long getProviderId() {
14326
      return this.providerId;
14327
    }
14328
 
14329
    public void setProviderId(long providerId) {
14330
      this.providerId = providerId;
14331
      setProviderIdIsSet(true);
14332
    }
14333
 
14334
    public void unsetProviderId() {
14335
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14336
    }
14337
 
14338
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14339
    public boolean isSetProviderId() {
14340
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14341
    }
14342
 
14343
    public void setProviderIdIsSet(boolean value) {
14344
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14345
    }
14346
 
14347
    public String getPincode() {
14348
      return this.pincode;
14349
    }
14350
 
14351
    public void setPincode(String pincode) {
14352
      this.pincode = pincode;
14353
    }
14354
 
14355
    public void unsetPincode() {
14356
      this.pincode = null;
14357
    }
14358
 
14359
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14360
    public boolean isSetPincode() {
14361
      return this.pincode != null;
14362
    }
14363
 
14364
    public void setPincodeIsSet(boolean value) {
14365
      if (!value) {
14366
        this.pincode = null;
14367
      }
14368
    }
14369
 
14370
    public boolean isExp() {
14371
      return this.exp;
14372
    }
14373
 
14374
    public void setExp(boolean exp) {
14375
      this.exp = exp;
14376
      setExpIsSet(true);
14377
    }
14378
 
14379
    public void unsetExp() {
14380
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14381
    }
14382
 
14383
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14384
    public boolean isSetExp() {
14385
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14386
    }
14387
 
14388
    public void setExpIsSet(boolean value) {
14389
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14390
    }
14391
 
14392
    public boolean isCod() {
14393
      return this.cod;
14394
    }
14395
 
14396
    public void setCod(boolean cod) {
14397
      this.cod = cod;
14398
      setCodIsSet(true);
14399
    }
14400
 
14401
    public void unsetCod() {
14402
      __isset_bit_vector.clear(__COD_ISSET_ID);
14403
    }
14404
 
14405
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14406
    public boolean isSetCod() {
14407
      return __isset_bit_vector.get(__COD_ISSET_ID);
14408
    }
14409
 
14410
    public void setCodIsSet(boolean value) {
14411
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14412
    }
14413
 
6524 rajveer 14414
    public boolean isOtgAvailable() {
14415
      return this.otgAvailable;
14416
    }
14417
 
14418
    public void setOtgAvailable(boolean otgAvailable) {
14419
      this.otgAvailable = otgAvailable;
14420
      setOtgAvailableIsSet(true);
14421
    }
14422
 
14423
    public void unsetOtgAvailable() {
14424
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14425
    }
14426
 
14427
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14428
    public boolean isSetOtgAvailable() {
14429
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14430
    }
14431
 
14432
    public void setOtgAvailableIsSet(boolean value) {
14433
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14434
    }
14435
 
6322 amar.kumar 14436
    public void setFieldValue(_Fields field, Object value) {
14437
      switch (field) {
14438
      case PROVIDER_ID:
14439
        if (value == null) {
14440
          unsetProviderId();
14441
        } else {
14442
          setProviderId((Long)value);
14443
        }
14444
        break;
14445
 
14446
      case PINCODE:
14447
        if (value == null) {
14448
          unsetPincode();
14449
        } else {
14450
          setPincode((String)value);
14451
        }
14452
        break;
14453
 
14454
      case EXP:
14455
        if (value == null) {
14456
          unsetExp();
14457
        } else {
14458
          setExp((Boolean)value);
14459
        }
14460
        break;
14461
 
14462
      case COD:
14463
        if (value == null) {
14464
          unsetCod();
14465
        } else {
14466
          setCod((Boolean)value);
14467
        }
14468
        break;
14469
 
6524 rajveer 14470
      case OTG_AVAILABLE:
14471
        if (value == null) {
14472
          unsetOtgAvailable();
14473
        } else {
14474
          setOtgAvailable((Boolean)value);
14475
        }
14476
        break;
14477
 
6322 amar.kumar 14478
      }
14479
    }
14480
 
14481
    public Object getFieldValue(_Fields field) {
14482
      switch (field) {
14483
      case PROVIDER_ID:
14484
        return Long.valueOf(getProviderId());
14485
 
14486
      case PINCODE:
14487
        return getPincode();
14488
 
14489
      case EXP:
14490
        return Boolean.valueOf(isExp());
14491
 
14492
      case COD:
14493
        return Boolean.valueOf(isCod());
14494
 
6524 rajveer 14495
      case OTG_AVAILABLE:
14496
        return Boolean.valueOf(isOtgAvailable());
14497
 
6322 amar.kumar 14498
      }
14499
      throw new IllegalStateException();
14500
    }
14501
 
14502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14503
    public boolean isSet(_Fields field) {
14504
      if (field == null) {
14505
        throw new IllegalArgumentException();
14506
      }
14507
 
14508
      switch (field) {
14509
      case PROVIDER_ID:
14510
        return isSetProviderId();
14511
      case PINCODE:
14512
        return isSetPincode();
14513
      case EXP:
14514
        return isSetExp();
14515
      case COD:
14516
        return isSetCod();
6524 rajveer 14517
      case OTG_AVAILABLE:
14518
        return isSetOtgAvailable();
6322 amar.kumar 14519
      }
14520
      throw new IllegalStateException();
14521
    }
14522
 
14523
    @Override
14524
    public boolean equals(Object that) {
14525
      if (that == null)
14526
        return false;
14527
      if (that instanceof updatePincode_args)
14528
        return this.equals((updatePincode_args)that);
14529
      return false;
14530
    }
14531
 
14532
    public boolean equals(updatePincode_args that) {
14533
      if (that == null)
14534
        return false;
14535
 
14536
      boolean this_present_providerId = true;
14537
      boolean that_present_providerId = true;
14538
      if (this_present_providerId || that_present_providerId) {
14539
        if (!(this_present_providerId && that_present_providerId))
14540
          return false;
14541
        if (this.providerId != that.providerId)
14542
          return false;
14543
      }
14544
 
14545
      boolean this_present_pincode = true && this.isSetPincode();
14546
      boolean that_present_pincode = true && that.isSetPincode();
14547
      if (this_present_pincode || that_present_pincode) {
14548
        if (!(this_present_pincode && that_present_pincode))
14549
          return false;
14550
        if (!this.pincode.equals(that.pincode))
14551
          return false;
14552
      }
14553
 
14554
      boolean this_present_exp = true;
14555
      boolean that_present_exp = true;
14556
      if (this_present_exp || that_present_exp) {
14557
        if (!(this_present_exp && that_present_exp))
14558
          return false;
14559
        if (this.exp != that.exp)
14560
          return false;
14561
      }
14562
 
14563
      boolean this_present_cod = true;
14564
      boolean that_present_cod = true;
14565
      if (this_present_cod || that_present_cod) {
14566
        if (!(this_present_cod && that_present_cod))
14567
          return false;
14568
        if (this.cod != that.cod)
14569
          return false;
14570
      }
14571
 
6524 rajveer 14572
      boolean this_present_otgAvailable = true;
14573
      boolean that_present_otgAvailable = true;
14574
      if (this_present_otgAvailable || that_present_otgAvailable) {
14575
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14576
          return false;
14577
        if (this.otgAvailable != that.otgAvailable)
14578
          return false;
14579
      }
14580
 
6322 amar.kumar 14581
      return true;
14582
    }
14583
 
14584
    @Override
14585
    public int hashCode() {
14586
      return 0;
14587
    }
14588
 
14589
    public int compareTo(updatePincode_args other) {
14590
      if (!getClass().equals(other.getClass())) {
14591
        return getClass().getName().compareTo(other.getClass().getName());
14592
      }
14593
 
14594
      int lastComparison = 0;
14595
      updatePincode_args typedOther = (updatePincode_args)other;
14596
 
14597
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14598
      if (lastComparison != 0) {
14599
        return lastComparison;
14600
      }
14601
      if (isSetProviderId()) {
14602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14603
        if (lastComparison != 0) {
14604
          return lastComparison;
14605
        }
14606
      }
14607
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14608
      if (lastComparison != 0) {
14609
        return lastComparison;
14610
      }
14611
      if (isSetPincode()) {
14612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14613
        if (lastComparison != 0) {
14614
          return lastComparison;
14615
        }
14616
      }
14617
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14618
      if (lastComparison != 0) {
14619
        return lastComparison;
14620
      }
14621
      if (isSetExp()) {
14622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14623
        if (lastComparison != 0) {
14624
          return lastComparison;
14625
        }
14626
      }
14627
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14628
      if (lastComparison != 0) {
14629
        return lastComparison;
14630
      }
14631
      if (isSetCod()) {
14632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14633
        if (lastComparison != 0) {
14634
          return lastComparison;
14635
        }
14636
      }
6524 rajveer 14637
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14638
      if (lastComparison != 0) {
14639
        return lastComparison;
14640
      }
14641
      if (isSetOtgAvailable()) {
14642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14643
        if (lastComparison != 0) {
14644
          return lastComparison;
14645
        }
14646
      }
6322 amar.kumar 14647
      return 0;
14648
    }
14649
 
14650
    public _Fields fieldForId(int fieldId) {
14651
      return _Fields.findByThriftId(fieldId);
14652
    }
14653
 
14654
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14655
      org.apache.thrift.protocol.TField field;
14656
      iprot.readStructBegin();
14657
      while (true)
14658
      {
14659
        field = iprot.readFieldBegin();
14660
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14661
          break;
14662
        }
14663
        switch (field.id) {
14664
          case 1: // PROVIDER_ID
14665
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14666
              this.providerId = iprot.readI64();
14667
              setProviderIdIsSet(true);
14668
            } else { 
14669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14670
            }
14671
            break;
14672
          case 2: // PINCODE
14673
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14674
              this.pincode = iprot.readString();
14675
            } else { 
14676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14677
            }
14678
            break;
14679
          case 3: // EXP
14680
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14681
              this.exp = iprot.readBool();
14682
              setExpIsSet(true);
14683
            } else { 
14684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14685
            }
14686
            break;
14687
          case 4: // COD
14688
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14689
              this.cod = iprot.readBool();
14690
              setCodIsSet(true);
14691
            } else { 
14692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14693
            }
14694
            break;
6524 rajveer 14695
          case 5: // OTG_AVAILABLE
14696
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14697
              this.otgAvailable = iprot.readBool();
14698
              setOtgAvailableIsSet(true);
14699
            } else { 
14700
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14701
            }
14702
            break;
6322 amar.kumar 14703
          default:
14704
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14705
        }
14706
        iprot.readFieldEnd();
14707
      }
14708
      iprot.readStructEnd();
14709
      validate();
14710
    }
14711
 
14712
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14713
      validate();
14714
 
14715
      oprot.writeStructBegin(STRUCT_DESC);
14716
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14717
      oprot.writeI64(this.providerId);
14718
      oprot.writeFieldEnd();
14719
      if (this.pincode != null) {
14720
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14721
        oprot.writeString(this.pincode);
14722
        oprot.writeFieldEnd();
14723
      }
14724
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14725
      oprot.writeBool(this.exp);
14726
      oprot.writeFieldEnd();
14727
      oprot.writeFieldBegin(COD_FIELD_DESC);
14728
      oprot.writeBool(this.cod);
14729
      oprot.writeFieldEnd();
6524 rajveer 14730
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14731
      oprot.writeBool(this.otgAvailable);
14732
      oprot.writeFieldEnd();
6322 amar.kumar 14733
      oprot.writeFieldStop();
14734
      oprot.writeStructEnd();
14735
    }
14736
 
14737
    @Override
14738
    public String toString() {
14739
      StringBuilder sb = new StringBuilder("updatePincode_args(");
14740
      boolean first = true;
14741
 
14742
      sb.append("providerId:");
14743
      sb.append(this.providerId);
14744
      first = false;
14745
      if (!first) sb.append(", ");
14746
      sb.append("pincode:");
14747
      if (this.pincode == null) {
14748
        sb.append("null");
14749
      } else {
14750
        sb.append(this.pincode);
14751
      }
14752
      first = false;
14753
      if (!first) sb.append(", ");
14754
      sb.append("exp:");
14755
      sb.append(this.exp);
14756
      first = false;
14757
      if (!first) sb.append(", ");
14758
      sb.append("cod:");
14759
      sb.append(this.cod);
14760
      first = false;
6524 rajveer 14761
      if (!first) sb.append(", ");
14762
      sb.append("otgAvailable:");
14763
      sb.append(this.otgAvailable);
14764
      first = false;
6322 amar.kumar 14765
      sb.append(")");
14766
      return sb.toString();
14767
    }
14768
 
14769
    public void validate() throws org.apache.thrift.TException {
14770
      // check for required fields
14771
    }
14772
 
14773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14774
      try {
14775
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14776
      } catch (org.apache.thrift.TException te) {
14777
        throw new java.io.IOException(te);
14778
      }
14779
    }
14780
 
14781
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14782
      try {
14783
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14784
        __isset_bit_vector = new BitSet(1);
14785
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14786
      } catch (org.apache.thrift.TException te) {
14787
        throw new java.io.IOException(te);
14788
      }
14789
    }
14790
 
14791
  }
14792
 
14793
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
14794
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
14795
 
14796
 
14797
 
14798
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14799
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14800
;
14801
 
14802
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14803
 
14804
      static {
14805
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14806
          byName.put(field.getFieldName(), field);
14807
        }
14808
      }
14809
 
14810
      /**
14811
       * Find the _Fields constant that matches fieldId, or null if its not found.
14812
       */
14813
      public static _Fields findByThriftId(int fieldId) {
14814
        switch(fieldId) {
14815
          default:
14816
            return null;
14817
        }
14818
      }
14819
 
14820
      /**
14821
       * Find the _Fields constant that matches fieldId, throwing an exception
14822
       * if it is not found.
14823
       */
14824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14825
        _Fields fields = findByThriftId(fieldId);
14826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14827
        return fields;
14828
      }
14829
 
14830
      /**
14831
       * Find the _Fields constant that matches name, or null if its not found.
14832
       */
14833
      public static _Fields findByName(String name) {
14834
        return byName.get(name);
14835
      }
14836
 
14837
      private final short _thriftId;
14838
      private final String _fieldName;
14839
 
14840
      _Fields(short thriftId, String fieldName) {
14841
        _thriftId = thriftId;
14842
        _fieldName = fieldName;
14843
      }
14844
 
14845
      public short getThriftFieldId() {
14846
        return _thriftId;
14847
      }
14848
 
14849
      public String getFieldName() {
14850
        return _fieldName;
14851
      }
14852
    }
14853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14854
    static {
14855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14856
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14857
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
14858
    }
14859
 
14860
    public updatePincode_result() {
14861
    }
14862
 
14863
    /**
14864
     * Performs a deep copy on <i>other</i>.
14865
     */
14866
    public updatePincode_result(updatePincode_result other) {
14867
    }
14868
 
14869
    public updatePincode_result deepCopy() {
14870
      return new updatePincode_result(this);
14871
    }
14872
 
14873
    @Override
14874
    public void clear() {
14875
    }
14876
 
14877
    public void setFieldValue(_Fields field, Object value) {
14878
      switch (field) {
14879
      }
14880
    }
14881
 
14882
    public Object getFieldValue(_Fields field) {
14883
      switch (field) {
14884
      }
14885
      throw new IllegalStateException();
14886
    }
14887
 
14888
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14889
    public boolean isSet(_Fields field) {
14890
      if (field == null) {
14891
        throw new IllegalArgumentException();
14892
      }
14893
 
14894
      switch (field) {
14895
      }
14896
      throw new IllegalStateException();
14897
    }
14898
 
14899
    @Override
14900
    public boolean equals(Object that) {
14901
      if (that == null)
14902
        return false;
14903
      if (that instanceof updatePincode_result)
14904
        return this.equals((updatePincode_result)that);
14905
      return false;
14906
    }
14907
 
14908
    public boolean equals(updatePincode_result that) {
14909
      if (that == null)
14910
        return false;
14911
 
14912
      return true;
14913
    }
14914
 
14915
    @Override
14916
    public int hashCode() {
14917
      return 0;
14918
    }
14919
 
14920
    public int compareTo(updatePincode_result other) {
14921
      if (!getClass().equals(other.getClass())) {
14922
        return getClass().getName().compareTo(other.getClass().getName());
14923
      }
14924
 
14925
      int lastComparison = 0;
14926
      updatePincode_result typedOther = (updatePincode_result)other;
14927
 
14928
      return 0;
14929
    }
14930
 
14931
    public _Fields fieldForId(int fieldId) {
14932
      return _Fields.findByThriftId(fieldId);
14933
    }
14934
 
14935
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14936
      org.apache.thrift.protocol.TField field;
14937
      iprot.readStructBegin();
14938
      while (true)
14939
      {
14940
        field = iprot.readFieldBegin();
14941
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14942
          break;
14943
        }
14944
        switch (field.id) {
14945
          default:
14946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14947
        }
14948
        iprot.readFieldEnd();
14949
      }
14950
      iprot.readStructEnd();
14951
      validate();
14952
    }
14953
 
14954
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14955
      oprot.writeStructBegin(STRUCT_DESC);
14956
 
14957
      oprot.writeFieldStop();
14958
      oprot.writeStructEnd();
14959
    }
14960
 
14961
    @Override
14962
    public String toString() {
14963
      StringBuilder sb = new StringBuilder("updatePincode_result(");
14964
      boolean first = true;
14965
 
14966
      sb.append(")");
14967
      return sb.toString();
14968
    }
14969
 
14970
    public void validate() throws org.apache.thrift.TException {
14971
      // check for required fields
14972
    }
14973
 
14974
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14975
      try {
14976
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14977
      } catch (org.apache.thrift.TException te) {
14978
        throw new java.io.IOException(te);
14979
      }
14980
    }
14981
 
14982
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14983
      try {
14984
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14985
      } catch (org.apache.thrift.TException te) {
14986
        throw new java.io.IOException(te);
14987
      }
14988
    }
14989
 
14990
  }
14991
 
412 ashish 14992
}