Subversion Repositories SmartDukaan

Rev

Rev 7567 | Rev 7788 | 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
 
7567 rajveer 141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException;
142
 
7737 manish.sha 143
    /**
144
     * Returns true when record exist in the Serviceablelocationdetails DB Table otherwise return false.
145
     * 
146
     * @param providerId
147
     * @param pincode
148
     */
149
    public boolean getServiceableLocationAsPerProviderIdAndPincode(long providerId, String pincode) throws org.apache.thrift.TException;
150
 
151
    public void runCompleteUpdateForPincode() throws org.apache.thrift.TException;
152
 
412 ashish 153
  }
154
 
3430 rajveer 155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
156
 
157
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
160
 
4630 mandeep.dh 161
    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 162
 
7256 rajveer 163
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
164
 
5766 rajveer 165
    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 166
 
5247 rajveer 167
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 168
 
6643 rajveer 169
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 170
 
6643 rajveer 171
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
172
 
3430 rajveer 173
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
178
 
4934 amit.gupta 179
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
180
 
5527 anupam.sin 181
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
182
 
5553 rajveer 183
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
186
 
5719 rajveer 187
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
188
 
6524 rajveer 189
    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 190
 
6524 rajveer 191
    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 192
 
7567 rajveer 193
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
194
 
7737 manish.sha 195
    public void getServiceableLocationAsPerProviderIdAndPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceableLocationAsPerProviderIdAndPincode_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void runCompleteUpdateForPincode(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runCompleteUpdateForPincode_call> resultHandler) throws org.apache.thrift.TException;
198
 
3430 rajveer 199
  }
200
 
3374 rajveer 201
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 202
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
203
      public Factory() {}
204
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
205
        return new Client(prot);
206
      }
207
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
208
        return new Client(iprot, oprot);
209
      }
210
    }
211
 
212
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 213
    {
3430 rajveer 214
      super(prot, prot);
412 ashish 215
    }
216
 
3430 rajveer 217
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 218
      super(iprot, oprot);
412 ashish 219
    }
220
 
3430 rajveer 221
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 222
    {
223
      send_getProvider(providerId);
224
      return recv_getProvider();
225
    }
226
 
3430 rajveer 227
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 228
    {
229
      getProvider_args args = new getProvider_args();
3430 rajveer 230
      args.setProviderId(providerId);
231
      sendBase("getProvider", args);
668 chandransh 232
    }
233
 
3430 rajveer 234
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 235
    {
236
      getProvider_result result = new getProvider_result();
3430 rajveer 237
      receiveBase(result, "getProvider");
668 chandransh 238
      if (result.isSetSuccess()) {
239
        return result.success;
240
      }
241
      if (result.lse != null) {
242
        throw result.lse;
243
      }
3430 rajveer 244
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 245
    }
246
 
3430 rajveer 247
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 248
    {
249
      send_getAllProviders();
250
      return recv_getAllProviders();
251
    }
252
 
3430 rajveer 253
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 254
    {
255
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 256
      sendBase("getAllProviders", args);
674 chandransh 257
    }
258
 
3430 rajveer 259
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 260
    {
261
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 262
      receiveBase(result, "getAllProviders");
674 chandransh 263
      if (result.isSetSuccess()) {
264
        return result.success;
265
      }
266
      if (result.lse != null) {
267
        throw result.lse;
268
      }
3430 rajveer 269
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 270
    }
271
 
4630 mandeep.dh 272
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 273
    {
4630 mandeep.dh 274
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 275
      return recv_getLogisticsEstimation();
276
    }
277
 
4630 mandeep.dh 278
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 279
    {
280
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 281
      args.setItemId(itemId);
282
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 283
      args.setType(type);
3430 rajveer 284
      sendBase("getLogisticsEstimation", args);
471 rajveer 285
    }
286
 
3430 rajveer 287
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 288
    {
289
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 290
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 291
      if (result.isSetSuccess()) {
292
        return result.success;
293
      }
294
      if (result.se != null) {
295
        throw result.se;
296
      }
3430 rajveer 297
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 298
    }
299
 
7256 rajveer 300
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
301
    {
302
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
303
      return recv_getLogisticsEstimationForStore();
304
    }
305
 
306
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
307
    {
308
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
309
      args.setItemId(itemId);
310
      args.setDestination_pin(destination_pin);
311
      args.setType(type);
312
      sendBase("getLogisticsEstimationForStore", args);
313
    }
314
 
315
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
316
    {
317
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
318
      receiveBase(result, "getLogisticsEstimationForStore");
319
      if (result.isSetSuccess()) {
320
        return result.success;
321
      }
322
      if (result.se != null) {
323
        throw result.se;
324
      }
325
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
326
    }
327
 
5766 rajveer 328
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 329
    {
5766 rajveer 330
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 331
      return recv_getLogisticsInfo();
471 rajveer 332
    }
333
 
5766 rajveer 334
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 335
    {
648 chandransh 336
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 337
      args.setDestination_pincode(destination_pincode);
338
      args.setItem_id(item_id);
339
      args.setType(type);
5766 rajveer 340
      args.setPickUp(pickUp);
3430 rajveer 341
      sendBase("getLogisticsInfo", args);
471 rajveer 342
    }
343
 
3430 rajveer 344
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 345
    {
648 chandransh 346
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 347
      receiveBase(result, "getLogisticsInfo");
648 chandransh 348
      if (result.isSetSuccess()) {
349
        return result.success;
477 rajveer 350
      }
648 chandransh 351
      if (result.se != null) {
352
        throw result.se;
412 ashish 353
      }
3430 rajveer 354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 355
    }
356
 
5247 rajveer 357
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 358
    {
5247 rajveer 359
      send_getEmptyAWB(providerId, type);
412 ashish 360
      return recv_getEmptyAWB();
361
    }
362
 
5247 rajveer 363
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 364
    {
365
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 366
      args.setProviderId(providerId);
5247 rajveer 367
      args.setType(type);
3430 rajveer 368
      sendBase("getEmptyAWB", args);
412 ashish 369
    }
370
 
3430 rajveer 371
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 372
    {
373
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 374
      receiveBase(result, "getEmptyAWB");
412 ashish 375
      if (result.isSetSuccess()) {
376
        return result.success;
377
      }
648 chandransh 378
      if (result.se != null) {
379
        throw result.se;
380
      }
3430 rajveer 381
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 382
    }
383
 
6643 rajveer 384
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 385
    {
6643 rajveer 386
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 387
      return recv_getShipmentInfo();
388
    }
389
 
6643 rajveer 390
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 391
    {
392
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 393
      args.setAwbNumber(awbNumber);
3430 rajveer 394
      args.setProviderId(providerId);
395
      sendBase("getShipmentInfo", args);
412 ashish 396
    }
397
 
3430 rajveer 398
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 399
    {
400
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 401
      receiveBase(result, "getShipmentInfo");
412 ashish 402
      if (result.isSetSuccess()) {
403
        return result.success;
404
      }
648 chandransh 405
      if (result.se != null) {
406
        throw result.se;
407
      }
3430 rajveer 408
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 409
    }
410
 
6643 rajveer 411
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
412
    {
413
      send_storeShipmentInfo(update);
414
      recv_storeShipmentInfo();
415
    }
416
 
417
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
418
    {
419
      storeShipmentInfo_args args = new storeShipmentInfo_args();
420
      args.setUpdate(update);
421
      sendBase("storeShipmentInfo", args);
422
    }
423
 
424
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
425
    {
426
      storeShipmentInfo_result result = new storeShipmentInfo_result();
427
      receiveBase(result, "storeShipmentInfo");
428
      if (result.se != null) {
429
        throw result.se;
430
      }
431
      return;
432
    }
433
 
3430 rajveer 434
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 435
    {
436
      send_getDestinationCode(providerId, pinCode);
437
      return recv_getDestinationCode();
438
    }
439
 
3430 rajveer 440
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 441
    {
442
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 443
      args.setProviderId(providerId);
444
      args.setPinCode(pinCode);
445
      sendBase("getDestinationCode", args);
730 chandransh 446
    }
447
 
3430 rajveer 448
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 449
    {
450
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 451
      receiveBase(result, "getDestinationCode");
730 chandransh 452
      if (result.isSetSuccess()) {
453
        return result.success;
454
      }
455
      if (result.se != null) {
456
        throw result.se;
457
      }
3430 rajveer 458
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 459
    }
460
 
3430 rajveer 461
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 462
    {
3103 chandransh 463
      send_getFreeAwbCount(providerId, type);
1139 chandransh 464
      return recv_getFreeAwbCount();
465
    }
466
 
3430 rajveer 467
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 468
    {
469
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 470
      args.setProviderId(providerId);
471
      args.setType(type);
472
      sendBase("getFreeAwbCount", args);
1139 chandransh 473
    }
474
 
3430 rajveer 475
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 476
    {
477
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 478
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 479
      if (result.isSetSuccess()) {
480
        return result.success;
481
      }
3430 rajveer 482
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 483
    }
484
 
3430 rajveer 485
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 486
    {
487
      send_getHolidays(fromDate, toDate);
488
      return recv_getHolidays();
489
    }
490
 
3430 rajveer 491
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 492
    {
493
      getHolidays_args args = new getHolidays_args();
3430 rajveer 494
      args.setFromDate(fromDate);
495
      args.setToDate(toDate);
496
      sendBase("getHolidays", args);
1730 ankur.sing 497
    }
498
 
3430 rajveer 499
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 500
    {
501
      getHolidays_result result = new getHolidays_result();
3430 rajveer 502
      receiveBase(result, "getHolidays");
1730 ankur.sing 503
      if (result.isSetSuccess()) {
504
        return result.success;
505
      }
3430 rajveer 506
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 507
    }
508
 
4934 amit.gupta 509
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
510
    {
511
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
512
      return recv_getEntityLogisticsEstimation();
513
    }
514
 
515
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
516
    {
517
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
518
      args.setCatalogItemId(catalogItemId);
519
      args.setDestination_pin(destination_pin);
520
      args.setType(type);
521
      sendBase("getEntityLogisticsEstimation", args);
522
    }
523
 
524
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
525
    {
526
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
527
      receiveBase(result, "getEntityLogisticsEstimation");
528
      if (result.isSetSuccess()) {
529
        return result.success;
530
      }
531
      if (result.se != null) {
532
        throw result.se;
533
      }
534
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
535
    }
536
 
5527 anupam.sin 537
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
538
    {
539
      send_getProviderForPickupType(pickUp);
540
      return recv_getProviderForPickupType();
541
    }
542
 
543
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
544
    {
545
      getProviderForPickupType_args args = new getProviderForPickupType_args();
546
      args.setPickUp(pickUp);
547
      sendBase("getProviderForPickupType", args);
548
    }
549
 
550
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
551
    {
552
      getProviderForPickupType_result result = new getProviderForPickupType_result();
553
      receiveBase(result, "getProviderForPickupType");
554
      if (result.isSetSuccess()) {
555
        return result.success;
556
      }
557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
558
    }
559
 
5553 rajveer 560
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
561
    {
562
      send_getAllPickupStores();
563
      return recv_getAllPickupStores();
564
    }
565
 
566
    public void send_getAllPickupStores() throws org.apache.thrift.TException
567
    {
568
      getAllPickupStores_args args = new getAllPickupStores_args();
569
      sendBase("getAllPickupStores", args);
570
    }
571
 
572
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
573
    {
574
      getAllPickupStores_result result = new getAllPickupStores_result();
575
      receiveBase(result, "getAllPickupStores");
576
      if (result.isSetSuccess()) {
577
        return result.success;
578
      }
579
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
580
    }
581
 
582
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
583
    {
584
      send_getPickupStore(storeId);
585
      return recv_getPickupStore();
586
    }
587
 
588
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
589
    {
590
      getPickupStore_args args = new getPickupStore_args();
591
      args.setStoreId(storeId);
592
      sendBase("getPickupStore", args);
593
    }
594
 
595
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
596
    {
597
      getPickupStore_result result = new getPickupStore_result();
598
      receiveBase(result, "getPickupStore");
599
      if (result.isSetSuccess()) {
600
        return result.success;
601
      }
602
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
603
    }
604
 
5719 rajveer 605
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
606
    {
607
      send_getPickupStoreByHotspotId(hotspotId);
608
      return recv_getPickupStoreByHotspotId();
609
    }
610
 
611
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
612
    {
613
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
614
      args.setHotspotId(hotspotId);
615
      sendBase("getPickupStoreByHotspotId", args);
616
    }
617
 
618
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
619
    {
620
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
621
      receiveBase(result, "getPickupStoreByHotspotId");
622
      if (result.isSetSuccess()) {
623
        return result.success;
624
      }
625
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
626
    }
627
 
6524 rajveer 628
    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 629
    {
6524 rajveer 630
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 631
      recv_addPincode();
632
    }
633
 
6524 rajveer 634
    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 635
    {
636
      addPincode_args args = new addPincode_args();
637
      args.setProviderId(providerId);
638
      args.setPincode(pincode);
639
      args.setDestCode(destCode);
640
      args.setExp(exp);
641
      args.setCod(cod);
642
      args.setStationType(stationType);
6524 rajveer 643
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 644
      sendBase("addPincode", args);
645
    }
646
 
647
    public void recv_addPincode() throws org.apache.thrift.TException
648
    {
649
      addPincode_result result = new addPincode_result();
650
      receiveBase(result, "addPincode");
651
      return;
652
    }
653
 
6524 rajveer 654
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 655
    {
6524 rajveer 656
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 657
      recv_updatePincode();
658
    }
659
 
6524 rajveer 660
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 661
    {
662
      updatePincode_args args = new updatePincode_args();
663
      args.setProviderId(providerId);
664
      args.setPincode(pincode);
665
      args.setExp(exp);
666
      args.setCod(cod);
6524 rajveer 667
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 668
      sendBase("updatePincode", args);
669
    }
670
 
671
    public void recv_updatePincode() throws org.apache.thrift.TException
672
    {
673
      updatePincode_result result = new updatePincode_result();
674
      receiveBase(result, "updatePincode");
675
      return;
676
    }
677
 
7567 rajveer 678
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
679
    {
680
      send_addNewAwbs(providerId, cod, awbs);
681
      return recv_addNewAwbs();
682
    }
683
 
684
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
685
    {
686
      addNewAwbs_args args = new addNewAwbs_args();
687
      args.setProviderId(providerId);
688
      args.setCod(cod);
689
      args.setAwbs(awbs);
690
      sendBase("addNewAwbs", args);
691
    }
692
 
693
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
694
    {
695
      addNewAwbs_result result = new addNewAwbs_result();
696
      receiveBase(result, "addNewAwbs");
697
      if (result.isSetSuccess()) {
698
        return result.success;
699
      }
700
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
701
    }
702
 
7737 manish.sha 703
    public boolean getServiceableLocationAsPerProviderIdAndPincode(long providerId, String pincode) throws org.apache.thrift.TException
704
    {
705
      send_getServiceableLocationAsPerProviderIdAndPincode(providerId, pincode);
706
      return recv_getServiceableLocationAsPerProviderIdAndPincode();
707
    }
708
 
709
    public void send_getServiceableLocationAsPerProviderIdAndPincode(long providerId, String pincode) throws org.apache.thrift.TException
710
    {
711
      getServiceableLocationAsPerProviderIdAndPincode_args args = new getServiceableLocationAsPerProviderIdAndPincode_args();
712
      args.setProviderId(providerId);
713
      args.setPincode(pincode);
714
      sendBase("getServiceableLocationAsPerProviderIdAndPincode", args);
715
    }
716
 
717
    public boolean recv_getServiceableLocationAsPerProviderIdAndPincode() throws org.apache.thrift.TException
718
    {
719
      getServiceableLocationAsPerProviderIdAndPincode_result result = new getServiceableLocationAsPerProviderIdAndPincode_result();
720
      receiveBase(result, "getServiceableLocationAsPerProviderIdAndPincode");
721
      if (result.isSetSuccess()) {
722
        return result.success;
723
      }
724
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceableLocationAsPerProviderIdAndPincode failed: unknown result");
725
    }
726
 
727
    public void runCompleteUpdateForPincode() throws org.apache.thrift.TException
728
    {
729
      send_runCompleteUpdateForPincode();
730
      recv_runCompleteUpdateForPincode();
731
    }
732
 
733
    public void send_runCompleteUpdateForPincode() throws org.apache.thrift.TException
734
    {
735
      runCompleteUpdateForPincode_args args = new runCompleteUpdateForPincode_args();
736
      sendBase("runCompleteUpdateForPincode", args);
737
    }
738
 
739
    public void recv_runCompleteUpdateForPincode() throws org.apache.thrift.TException
740
    {
741
      runCompleteUpdateForPincode_result result = new runCompleteUpdateForPincode_result();
742
      receiveBase(result, "runCompleteUpdateForPincode");
743
      return;
744
    }
745
 
412 ashish 746
  }
3430 rajveer 747
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
748
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
749
      private org.apache.thrift.async.TAsyncClientManager clientManager;
750
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
751
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
752
        this.clientManager = clientManager;
753
        this.protocolFactory = protocolFactory;
754
      }
755
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
756
        return new AsyncClient(protocolFactory, clientManager, transport);
757
      }
412 ashish 758
    }
759
 
3430 rajveer 760
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
761
      super(protocolFactory, clientManager, transport);
762
    }
412 ashish 763
 
3430 rajveer 764
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
765
      checkReady();
766
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
767
      this.___currentMethod = method_call;
768
      ___manager.call(method_call);
769
    }
770
 
771
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
772
      private long providerId;
773
      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 {
774
        super(client, protocolFactory, transport, resultHandler, false);
775
        this.providerId = providerId;
412 ashish 776
      }
3430 rajveer 777
 
778
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
779
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
780
        getProvider_args args = new getProvider_args();
781
        args.setProviderId(providerId);
782
        args.write(prot);
783
        prot.writeMessageEnd();
784
      }
785
 
786
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
787
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
788
          throw new IllegalStateException("Method call not finished!");
789
        }
790
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
791
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
792
        return (new Client(prot)).recv_getProvider();
793
      }
412 ashish 794
    }
795
 
3430 rajveer 796
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
797
      checkReady();
798
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
799
      this.___currentMethod = method_call;
800
      ___manager.call(method_call);
801
    }
802
 
803
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
804
      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 {
805
        super(client, protocolFactory, transport, resultHandler, false);
806
      }
807
 
808
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
809
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
810
        getAllProviders_args args = new getAllProviders_args();
811
        args.write(prot);
812
        prot.writeMessageEnd();
813
      }
814
 
815
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
816
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
817
          throw new IllegalStateException("Method call not finished!");
818
        }
819
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
820
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
821
        return (new Client(prot)).recv_getAllProviders();
822
      }
823
    }
824
 
4630 mandeep.dh 825
    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 826
      checkReady();
4630 mandeep.dh 827
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 828
      this.___currentMethod = method_call;
829
      ___manager.call(method_call);
830
    }
831
 
832
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
833
      private long itemId;
834
      private String destination_pin;
4630 mandeep.dh 835
      private DeliveryType type;
836
      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 837
        super(client, protocolFactory, transport, resultHandler, false);
838
        this.itemId = itemId;
839
        this.destination_pin = destination_pin;
4630 mandeep.dh 840
        this.type = type;
3430 rajveer 841
      }
842
 
843
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
844
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
845
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
846
        args.setItemId(itemId);
847
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 848
        args.setType(type);
3430 rajveer 849
        args.write(prot);
850
        prot.writeMessageEnd();
851
      }
852
 
853
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
854
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
855
          throw new IllegalStateException("Method call not finished!");
856
        }
857
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
858
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
859
        return (new Client(prot)).recv_getLogisticsEstimation();
860
      }
861
    }
862
 
7256 rajveer 863
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
864
      checkReady();
865
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
866
      this.___currentMethod = method_call;
867
      ___manager.call(method_call);
868
    }
869
 
870
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
871
      private long itemId;
872
      private String destination_pin;
873
      private DeliveryType type;
874
      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 {
875
        super(client, protocolFactory, transport, resultHandler, false);
876
        this.itemId = itemId;
877
        this.destination_pin = destination_pin;
878
        this.type = type;
879
      }
880
 
881
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
882
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
883
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
884
        args.setItemId(itemId);
885
        args.setDestination_pin(destination_pin);
886
        args.setType(type);
887
        args.write(prot);
888
        prot.writeMessageEnd();
889
      }
890
 
891
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
892
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
893
          throw new IllegalStateException("Method call not finished!");
894
        }
895
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
896
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
897
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
898
      }
899
    }
900
 
5766 rajveer 901
    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 902
      checkReady();
5766 rajveer 903
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 904
      this.___currentMethod = method_call;
905
      ___manager.call(method_call);
906
    }
907
 
908
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
909
      private String destination_pincode;
910
      private long item_id;
911
      private DeliveryType type;
5766 rajveer 912
      private PickUpType pickUp;
913
      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 914
        super(client, protocolFactory, transport, resultHandler, false);
915
        this.destination_pincode = destination_pincode;
916
        this.item_id = item_id;
917
        this.type = type;
5766 rajveer 918
        this.pickUp = pickUp;
3430 rajveer 919
      }
920
 
921
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
922
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
923
        getLogisticsInfo_args args = new getLogisticsInfo_args();
924
        args.setDestination_pincode(destination_pincode);
925
        args.setItem_id(item_id);
926
        args.setType(type);
5766 rajveer 927
        args.setPickUp(pickUp);
3430 rajveer 928
        args.write(prot);
929
        prot.writeMessageEnd();
930
      }
931
 
932
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
933
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
934
          throw new IllegalStateException("Method call not finished!");
935
        }
936
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
938
        return (new Client(prot)).recv_getLogisticsInfo();
939
      }
940
    }
941
 
5247 rajveer 942
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 943
      checkReady();
5247 rajveer 944
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 945
      this.___currentMethod = method_call;
946
      ___manager.call(method_call);
947
    }
948
 
949
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
950
      private long providerId;
5247 rajveer 951
      private DeliveryType type;
952
      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 953
        super(client, protocolFactory, transport, resultHandler, false);
954
        this.providerId = providerId;
5247 rajveer 955
        this.type = type;
3430 rajveer 956
      }
957
 
958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
960
        getEmptyAWB_args args = new getEmptyAWB_args();
961
        args.setProviderId(providerId);
5247 rajveer 962
        args.setType(type);
3430 rajveer 963
        args.write(prot);
964
        prot.writeMessageEnd();
965
      }
966
 
967
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
968
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
969
          throw new IllegalStateException("Method call not finished!");
970
        }
971
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
973
        return (new Client(prot)).recv_getEmptyAWB();
974
      }
975
    }
976
 
6643 rajveer 977
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 978
      checkReady();
6643 rajveer 979
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 980
      this.___currentMethod = method_call;
981
      ___manager.call(method_call);
982
    }
983
 
984
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 985
      private String awbNumber;
3430 rajveer 986
      private long providerId;
6643 rajveer 987
      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 988
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 989
        this.awbNumber = awbNumber;
3430 rajveer 990
        this.providerId = providerId;
991
      }
992
 
993
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
994
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
995
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 996
        args.setAwbNumber(awbNumber);
3430 rajveer 997
        args.setProviderId(providerId);
998
        args.write(prot);
999
        prot.writeMessageEnd();
1000
      }
1001
 
1002
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1004
          throw new IllegalStateException("Method call not finished!");
1005
        }
1006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1008
        return (new Client(prot)).recv_getShipmentInfo();
1009
      }
1010
    }
1011
 
6643 rajveer 1012
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1013
      checkReady();
1014
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1015
      this.___currentMethod = method_call;
1016
      ___manager.call(method_call);
1017
    }
1018
 
1019
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1020
      private AwbUpdate update;
1021
      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 {
1022
        super(client, protocolFactory, transport, resultHandler, false);
1023
        this.update = update;
1024
      }
1025
 
1026
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1027
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1028
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1029
        args.setUpdate(update);
1030
        args.write(prot);
1031
        prot.writeMessageEnd();
1032
      }
1033
 
1034
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1035
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1036
          throw new IllegalStateException("Method call not finished!");
1037
        }
1038
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1039
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1040
        (new Client(prot)).recv_storeShipmentInfo();
1041
      }
1042
    }
1043
 
3430 rajveer 1044
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1045
      checkReady();
1046
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1047
      this.___currentMethod = method_call;
1048
      ___manager.call(method_call);
1049
    }
1050
 
1051
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1052
      private long providerId;
1053
      private String pinCode;
1054
      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 {
1055
        super(client, protocolFactory, transport, resultHandler, false);
1056
        this.providerId = providerId;
1057
        this.pinCode = pinCode;
1058
      }
1059
 
1060
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1061
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1062
        getDestinationCode_args args = new getDestinationCode_args();
1063
        args.setProviderId(providerId);
1064
        args.setPinCode(pinCode);
1065
        args.write(prot);
1066
        prot.writeMessageEnd();
1067
      }
1068
 
1069
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1070
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1071
          throw new IllegalStateException("Method call not finished!");
1072
        }
1073
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1074
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1075
        return (new Client(prot)).recv_getDestinationCode();
1076
      }
1077
    }
1078
 
1079
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1080
      checkReady();
1081
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1082
      this.___currentMethod = method_call;
1083
      ___manager.call(method_call);
1084
    }
1085
 
1086
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1087
      private long providerId;
1088
      private String type;
1089
      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 {
1090
        super(client, protocolFactory, transport, resultHandler, false);
1091
        this.providerId = providerId;
1092
        this.type = type;
1093
      }
1094
 
1095
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1096
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1097
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1098
        args.setProviderId(providerId);
1099
        args.setType(type);
1100
        args.write(prot);
1101
        prot.writeMessageEnd();
1102
      }
1103
 
1104
      public long getResult() throws org.apache.thrift.TException {
1105
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1106
          throw new IllegalStateException("Method call not finished!");
1107
        }
1108
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1109
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1110
        return (new Client(prot)).recv_getFreeAwbCount();
1111
      }
1112
    }
1113
 
1114
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1115
      checkReady();
1116
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1117
      this.___currentMethod = method_call;
1118
      ___manager.call(method_call);
1119
    }
1120
 
1121
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1122
      private long fromDate;
1123
      private long toDate;
1124
      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 {
1125
        super(client, protocolFactory, transport, resultHandler, false);
1126
        this.fromDate = fromDate;
1127
        this.toDate = toDate;
1128
      }
1129
 
1130
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1131
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1132
        getHolidays_args args = new getHolidays_args();
1133
        args.setFromDate(fromDate);
1134
        args.setToDate(toDate);
1135
        args.write(prot);
1136
        prot.writeMessageEnd();
1137
      }
1138
 
1139
      public List<Long> getResult() throws org.apache.thrift.TException {
1140
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1141
          throw new IllegalStateException("Method call not finished!");
1142
        }
1143
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1144
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1145
        return (new Client(prot)).recv_getHolidays();
1146
      }
1147
    }
1148
 
4934 amit.gupta 1149
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1150
      checkReady();
1151
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1152
      this.___currentMethod = method_call;
1153
      ___manager.call(method_call);
1154
    }
1155
 
1156
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1157
      private long catalogItemId;
1158
      private String destination_pin;
1159
      private DeliveryType type;
1160
      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 {
1161
        super(client, protocolFactory, transport, resultHandler, false);
1162
        this.catalogItemId = catalogItemId;
1163
        this.destination_pin = destination_pin;
1164
        this.type = type;
1165
      }
1166
 
1167
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1168
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1169
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1170
        args.setCatalogItemId(catalogItemId);
1171
        args.setDestination_pin(destination_pin);
1172
        args.setType(type);
1173
        args.write(prot);
1174
        prot.writeMessageEnd();
1175
      }
1176
 
1177
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1178
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1179
          throw new IllegalStateException("Method call not finished!");
1180
        }
1181
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1182
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1183
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1184
      }
1185
    }
1186
 
5527 anupam.sin 1187
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1188
      checkReady();
1189
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1190
      this.___currentMethod = method_call;
1191
      ___manager.call(method_call);
1192
    }
1193
 
1194
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1195
      private long pickUp;
1196
      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 {
1197
        super(client, protocolFactory, transport, resultHandler, false);
1198
        this.pickUp = pickUp;
1199
      }
1200
 
1201
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1202
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1203
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1204
        args.setPickUp(pickUp);
1205
        args.write(prot);
1206
        prot.writeMessageEnd();
1207
      }
1208
 
1209
      public long getResult() throws org.apache.thrift.TException {
1210
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1211
          throw new IllegalStateException("Method call not finished!");
1212
        }
1213
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1214
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1215
        return (new Client(prot)).recv_getProviderForPickupType();
1216
      }
1217
    }
1218
 
5553 rajveer 1219
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1220
      checkReady();
1221
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1222
      this.___currentMethod = method_call;
1223
      ___manager.call(method_call);
1224
    }
1225
 
1226
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1227
      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 {
1228
        super(client, protocolFactory, transport, resultHandler, false);
1229
      }
1230
 
1231
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1232
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1233
        getAllPickupStores_args args = new getAllPickupStores_args();
1234
        args.write(prot);
1235
        prot.writeMessageEnd();
1236
      }
1237
 
1238
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1239
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1240
          throw new IllegalStateException("Method call not finished!");
1241
        }
1242
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1243
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1244
        return (new Client(prot)).recv_getAllPickupStores();
1245
      }
1246
    }
1247
 
1248
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1249
      checkReady();
1250
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1251
      this.___currentMethod = method_call;
1252
      ___manager.call(method_call);
1253
    }
1254
 
1255
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1256
      private long storeId;
1257
      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 {
1258
        super(client, protocolFactory, transport, resultHandler, false);
1259
        this.storeId = storeId;
1260
      }
1261
 
1262
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1263
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1264
        getPickupStore_args args = new getPickupStore_args();
1265
        args.setStoreId(storeId);
1266
        args.write(prot);
1267
        prot.writeMessageEnd();
1268
      }
1269
 
1270
      public PickupStore getResult() throws org.apache.thrift.TException {
1271
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1272
          throw new IllegalStateException("Method call not finished!");
1273
        }
1274
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1275
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1276
        return (new Client(prot)).recv_getPickupStore();
1277
      }
1278
    }
1279
 
5719 rajveer 1280
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1281
      checkReady();
1282
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1283
      this.___currentMethod = method_call;
1284
      ___manager.call(method_call);
1285
    }
1286
 
1287
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1288
      private String hotspotId;
1289
      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 {
1290
        super(client, protocolFactory, transport, resultHandler, false);
1291
        this.hotspotId = hotspotId;
1292
      }
1293
 
1294
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1295
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1296
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1297
        args.setHotspotId(hotspotId);
1298
        args.write(prot);
1299
        prot.writeMessageEnd();
1300
      }
1301
 
1302
      public PickupStore getResult() throws org.apache.thrift.TException {
1303
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1304
          throw new IllegalStateException("Method call not finished!");
1305
        }
1306
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1307
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1308
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1309
      }
1310
    }
1311
 
6524 rajveer 1312
    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 1313
      checkReady();
6524 rajveer 1314
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1315
      this.___currentMethod = method_call;
1316
      ___manager.call(method_call);
1317
    }
1318
 
1319
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1320
      private long providerId;
1321
      private String pincode;
1322
      private String destCode;
1323
      private boolean exp;
1324
      private boolean cod;
1325
      private int stationType;
6524 rajveer 1326
      private boolean otgAvailable;
1327
      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 1328
        super(client, protocolFactory, transport, resultHandler, false);
1329
        this.providerId = providerId;
1330
        this.pincode = pincode;
1331
        this.destCode = destCode;
1332
        this.exp = exp;
1333
        this.cod = cod;
1334
        this.stationType = stationType;
6524 rajveer 1335
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1336
      }
1337
 
1338
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1339
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1340
        addPincode_args args = new addPincode_args();
1341
        args.setProviderId(providerId);
1342
        args.setPincode(pincode);
1343
        args.setDestCode(destCode);
1344
        args.setExp(exp);
1345
        args.setCod(cod);
1346
        args.setStationType(stationType);
6524 rajveer 1347
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1348
        args.write(prot);
1349
        prot.writeMessageEnd();
1350
      }
1351
 
1352
      public void getResult() throws org.apache.thrift.TException {
1353
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1354
          throw new IllegalStateException("Method call not finished!");
1355
        }
1356
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1357
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1358
        (new Client(prot)).recv_addPincode();
1359
      }
1360
    }
1361
 
6524 rajveer 1362
    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 1363
      checkReady();
6524 rajveer 1364
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1365
      this.___currentMethod = method_call;
1366
      ___manager.call(method_call);
1367
    }
1368
 
1369
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1370
      private long providerId;
1371
      private String pincode;
1372
      private boolean exp;
1373
      private boolean cod;
6524 rajveer 1374
      private boolean otgAvailable;
1375
      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 1376
        super(client, protocolFactory, transport, resultHandler, false);
1377
        this.providerId = providerId;
1378
        this.pincode = pincode;
1379
        this.exp = exp;
1380
        this.cod = cod;
6524 rajveer 1381
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1382
      }
1383
 
1384
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1385
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1386
        updatePincode_args args = new updatePincode_args();
1387
        args.setProviderId(providerId);
1388
        args.setPincode(pincode);
1389
        args.setExp(exp);
1390
        args.setCod(cod);
6524 rajveer 1391
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1392
        args.write(prot);
1393
        prot.writeMessageEnd();
1394
      }
1395
 
1396
      public void getResult() throws org.apache.thrift.TException {
1397
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1398
          throw new IllegalStateException("Method call not finished!");
1399
        }
1400
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1401
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1402
        (new Client(prot)).recv_updatePincode();
1403
      }
1404
    }
1405
 
7567 rajveer 1406
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1407
      checkReady();
1408
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
1409
      this.___currentMethod = method_call;
1410
      ___manager.call(method_call);
1411
    }
1412
 
1413
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1414
      private long providerId;
1415
      private boolean cod;
1416
      private List<String> awbs;
1417
      public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_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 {
1418
        super(client, protocolFactory, transport, resultHandler, false);
1419
        this.providerId = providerId;
1420
        this.cod = cod;
1421
        this.awbs = awbs;
1422
      }
1423
 
1424
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1425
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1426
        addNewAwbs_args args = new addNewAwbs_args();
1427
        args.setProviderId(providerId);
1428
        args.setCod(cod);
1429
        args.setAwbs(awbs);
1430
        args.write(prot);
1431
        prot.writeMessageEnd();
1432
      }
1433
 
1434
      public boolean getResult() throws org.apache.thrift.TException {
1435
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1436
          throw new IllegalStateException("Method call not finished!");
1437
        }
1438
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1439
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1440
        return (new Client(prot)).recv_addNewAwbs();
1441
      }
1442
    }
1443
 
7737 manish.sha 1444
    public void getServiceableLocationAsPerProviderIdAndPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getServiceableLocationAsPerProviderIdAndPincode_call> resultHandler) throws org.apache.thrift.TException {
1445
      checkReady();
1446
      getServiceableLocationAsPerProviderIdAndPincode_call method_call = new getServiceableLocationAsPerProviderIdAndPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1447
      this.___currentMethod = method_call;
1448
      ___manager.call(method_call);
1449
    }
1450
 
1451
    public static class getServiceableLocationAsPerProviderIdAndPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1452
      private long providerId;
1453
      private String pincode;
1454
      public getServiceableLocationAsPerProviderIdAndPincode_call(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getServiceableLocationAsPerProviderIdAndPincode_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 {
1455
        super(client, protocolFactory, transport, resultHandler, false);
1456
        this.providerId = providerId;
1457
        this.pincode = pincode;
1458
      }
1459
 
1460
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1461
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceableLocationAsPerProviderIdAndPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1462
        getServiceableLocationAsPerProviderIdAndPincode_args args = new getServiceableLocationAsPerProviderIdAndPincode_args();
1463
        args.setProviderId(providerId);
1464
        args.setPincode(pincode);
1465
        args.write(prot);
1466
        prot.writeMessageEnd();
1467
      }
1468
 
1469
      public boolean getResult() throws org.apache.thrift.TException {
1470
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1471
          throw new IllegalStateException("Method call not finished!");
1472
        }
1473
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1474
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1475
        return (new Client(prot)).recv_getServiceableLocationAsPerProviderIdAndPincode();
1476
      }
1477
    }
1478
 
1479
    public void runCompleteUpdateForPincode(org.apache.thrift.async.AsyncMethodCallback<runCompleteUpdateForPincode_call> resultHandler) throws org.apache.thrift.TException {
1480
      checkReady();
1481
      runCompleteUpdateForPincode_call method_call = new runCompleteUpdateForPincode_call(resultHandler, this, ___protocolFactory, ___transport);
1482
      this.___currentMethod = method_call;
1483
      ___manager.call(method_call);
1484
    }
1485
 
1486
    public static class runCompleteUpdateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1487
      public runCompleteUpdateForPincode_call(org.apache.thrift.async.AsyncMethodCallback<runCompleteUpdateForPincode_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 {
1488
        super(client, protocolFactory, transport, resultHandler, false);
1489
      }
1490
 
1491
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1492
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runCompleteUpdateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1493
        runCompleteUpdateForPincode_args args = new runCompleteUpdateForPincode_args();
1494
        args.write(prot);
1495
        prot.writeMessageEnd();
1496
      }
1497
 
1498
      public void getResult() throws org.apache.thrift.TException {
1499
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1500
          throw new IllegalStateException("Method call not finished!");
1501
        }
1502
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1503
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1504
        (new Client(prot)).recv_runCompleteUpdateForPincode();
1505
      }
1506
    }
1507
 
3430 rajveer 1508
  }
1509
 
1510
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1511
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1512
    public Processor(I iface) {
1513
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1514
    }
1515
 
1516
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1517
      super(iface, getProcessMap(processMap));
1518
    }
1519
 
1520
    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) {
1521
      processMap.put("getProvider", new getProvider());
1522
      processMap.put("getAllProviders", new getAllProviders());
1523
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1524
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1525
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1526
      processMap.put("getEmptyAWB", new getEmptyAWB());
1527
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1528
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1529
      processMap.put("getDestinationCode", new getDestinationCode());
1530
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1531
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1532
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1533
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1534
      processMap.put("getAllPickupStores", new getAllPickupStores());
1535
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1536
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1537
      processMap.put("addPincode", new addPincode());
1538
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1539
      processMap.put("addNewAwbs", new addNewAwbs());
7737 manish.sha 1540
      processMap.put("getServiceableLocationAsPerProviderIdAndPincode", new getServiceableLocationAsPerProviderIdAndPincode());
1541
      processMap.put("runCompleteUpdateForPincode", new runCompleteUpdateForPincode());
3430 rajveer 1542
      return processMap;
1543
    }
1544
 
1545
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1546
      public getProvider() {
1547
        super("getProvider");
1548
      }
1549
 
1550
      protected getProvider_args getEmptyArgsInstance() {
1551
        return new getProvider_args();
1552
      }
1553
 
1554
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1555
        getProvider_result result = new getProvider_result();
1556
        try {
3430 rajveer 1557
          result.success = iface.getProvider(args.providerId);
668 chandransh 1558
        } catch (LogisticsServiceException lse) {
1559
          result.lse = lse;
1560
        }
3430 rajveer 1561
        return result;
668 chandransh 1562
      }
1563
    }
1564
 
3430 rajveer 1565
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1566
      public getAllProviders() {
1567
        super("getAllProviders");
1568
      }
1569
 
1570
      protected getAllProviders_args getEmptyArgsInstance() {
1571
        return new getAllProviders_args();
1572
      }
1573
 
1574
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1575
        getAllProviders_result result = new getAllProviders_result();
1576
        try {
3430 rajveer 1577
          result.success = iface.getAllProviders();
674 chandransh 1578
        } catch (LogisticsServiceException lse) {
1579
          result.lse = lse;
1580
        }
3430 rajveer 1581
        return result;
674 chandransh 1582
      }
1583
    }
1584
 
3430 rajveer 1585
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1586
      public getLogisticsEstimation() {
1587
        super("getLogisticsEstimation");
1588
      }
1589
 
1590
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1591
        return new getLogisticsEstimation_args();
1592
      }
1593
 
1594
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1595
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1596
        try {
4630 mandeep.dh 1597
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1598
        } catch (LogisticsServiceException se) {
1599
          result.se = se;
1600
        }
3430 rajveer 1601
        return result;
483 rajveer 1602
      }
1603
    }
1604
 
7256 rajveer 1605
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1606
      public getLogisticsEstimationForStore() {
1607
        super("getLogisticsEstimationForStore");
1608
      }
1609
 
1610
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1611
        return new getLogisticsEstimationForStore_args();
1612
      }
1613
 
1614
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1615
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1616
        try {
1617
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1618
        } catch (LogisticsServiceException se) {
1619
          result.se = se;
1620
        }
1621
        return result;
1622
      }
1623
    }
1624
 
3430 rajveer 1625
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1626
      public getLogisticsInfo() {
1627
        super("getLogisticsInfo");
1628
      }
1629
 
1630
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1631
        return new getLogisticsInfo_args();
1632
      }
1633
 
1634
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1635
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1636
        try {
5766 rajveer 1637
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1638
        } catch (LogisticsServiceException se) {
1639
          result.se = se;
1640
        }
3430 rajveer 1641
        return result;
471 rajveer 1642
      }
1643
    }
1644
 
3430 rajveer 1645
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1646
      public getEmptyAWB() {
1647
        super("getEmptyAWB");
1648
      }
1649
 
1650
      protected getEmptyAWB_args getEmptyArgsInstance() {
1651
        return new getEmptyAWB_args();
1652
      }
1653
 
1654
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1655
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1656
        try {
5247 rajveer 1657
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1658
        } catch (LogisticsServiceException se) {
1659
          result.se = se;
1660
        }
3430 rajveer 1661
        return result;
412 ashish 1662
      }
1663
    }
1664
 
3430 rajveer 1665
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1666
      public getShipmentInfo() {
1667
        super("getShipmentInfo");
1668
      }
1669
 
1670
      protected getShipmentInfo_args getEmptyArgsInstance() {
1671
        return new getShipmentInfo_args();
1672
      }
1673
 
1674
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1675
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1676
        try {
6643 rajveer 1677
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1678
        } catch (LogisticsServiceException se) {
1679
          result.se = se;
1680
        }
3430 rajveer 1681
        return result;
412 ashish 1682
      }
1683
    }
1684
 
6643 rajveer 1685
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1686
      public storeShipmentInfo() {
1687
        super("storeShipmentInfo");
1688
      }
1689
 
1690
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1691
        return new storeShipmentInfo_args();
1692
      }
1693
 
1694
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1695
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1696
        try {
1697
          iface.storeShipmentInfo(args.update);
1698
        } catch (LogisticsServiceException se) {
1699
          result.se = se;
1700
        }
1701
        return result;
1702
      }
1703
    }
1704
 
3430 rajveer 1705
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1706
      public getDestinationCode() {
1707
        super("getDestinationCode");
1708
      }
1709
 
1710
      protected getDestinationCode_args getEmptyArgsInstance() {
1711
        return new getDestinationCode_args();
1712
      }
1713
 
1714
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1715
        getDestinationCode_result result = new getDestinationCode_result();
1716
        try {
3430 rajveer 1717
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1718
        } catch (LogisticsServiceException se) {
1719
          result.se = se;
1720
        }
3430 rajveer 1721
        return result;
730 chandransh 1722
      }
1723
    }
1724
 
3430 rajveer 1725
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1726
      public getFreeAwbCount() {
1727
        super("getFreeAwbCount");
1728
      }
1729
 
1730
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1731
        return new getFreeAwbCount_args();
1732
      }
1733
 
1734
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1735
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1736
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1737
        result.setSuccessIsSet(true);
3430 rajveer 1738
        return result;
1139 chandransh 1739
      }
1740
    }
1741
 
3430 rajveer 1742
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1743
      public getHolidays() {
1744
        super("getHolidays");
1745
      }
1746
 
1747
      protected getHolidays_args getEmptyArgsInstance() {
1748
        return new getHolidays_args();
1749
      }
1750
 
1751
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1752
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1753
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1754
        return result;
1730 ankur.sing 1755
      }
1756
    }
1757
 
4934 amit.gupta 1758
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1759
      public getEntityLogisticsEstimation() {
1760
        super("getEntityLogisticsEstimation");
1761
      }
1762
 
1763
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1764
        return new getEntityLogisticsEstimation_args();
1765
      }
1766
 
1767
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1768
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1769
        try {
1770
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1771
        } catch (LogisticsServiceException se) {
1772
          result.se = se;
1773
        }
1774
        return result;
1775
      }
1776
    }
1777
 
5527 anupam.sin 1778
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1779
      public getProviderForPickupType() {
1780
        super("getProviderForPickupType");
1781
      }
1782
 
1783
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1784
        return new getProviderForPickupType_args();
1785
      }
1786
 
1787
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1788
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1789
        result.success = iface.getProviderForPickupType(args.pickUp);
1790
        result.setSuccessIsSet(true);
1791
        return result;
1792
      }
1793
    }
1794
 
5553 rajveer 1795
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1796
      public getAllPickupStores() {
1797
        super("getAllPickupStores");
1798
      }
1799
 
1800
      protected getAllPickupStores_args getEmptyArgsInstance() {
1801
        return new getAllPickupStores_args();
1802
      }
1803
 
1804
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1805
        getAllPickupStores_result result = new getAllPickupStores_result();
1806
        result.success = iface.getAllPickupStores();
1807
        return result;
1808
      }
1809
    }
1810
 
1811
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1812
      public getPickupStore() {
1813
        super("getPickupStore");
1814
      }
1815
 
1816
      protected getPickupStore_args getEmptyArgsInstance() {
1817
        return new getPickupStore_args();
1818
      }
1819
 
1820
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1821
        getPickupStore_result result = new getPickupStore_result();
1822
        result.success = iface.getPickupStore(args.storeId);
1823
        return result;
1824
      }
1825
    }
1826
 
5719 rajveer 1827
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1828
      public getPickupStoreByHotspotId() {
1829
        super("getPickupStoreByHotspotId");
1830
      }
1831
 
1832
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1833
        return new getPickupStoreByHotspotId_args();
1834
      }
1835
 
1836
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1837
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1838
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1839
        return result;
1840
      }
1841
    }
1842
 
6322 amar.kumar 1843
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1844
      public addPincode() {
1845
        super("addPincode");
1846
      }
1847
 
1848
      protected addPincode_args getEmptyArgsInstance() {
1849
        return new addPincode_args();
1850
      }
1851
 
1852
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1853
        addPincode_result result = new addPincode_result();
6524 rajveer 1854
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1855
        return result;
1856
      }
1857
    }
1858
 
1859
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1860
      public updatePincode() {
1861
        super("updatePincode");
1862
      }
1863
 
1864
      protected updatePincode_args getEmptyArgsInstance() {
1865
        return new updatePincode_args();
1866
      }
1867
 
1868
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1869
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1870
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1871
        return result;
1872
      }
1873
    }
1874
 
7567 rajveer 1875
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
1876
      public addNewAwbs() {
1877
        super("addNewAwbs");
1878
      }
1879
 
1880
      protected addNewAwbs_args getEmptyArgsInstance() {
1881
        return new addNewAwbs_args();
1882
      }
1883
 
1884
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
1885
        addNewAwbs_result result = new addNewAwbs_result();
1886
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
1887
        result.setSuccessIsSet(true);
1888
        return result;
1889
      }
1890
    }
1891
 
7737 manish.sha 1892
    private static class getServiceableLocationAsPerProviderIdAndPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServiceableLocationAsPerProviderIdAndPincode_args> {
1893
      public getServiceableLocationAsPerProviderIdAndPincode() {
1894
        super("getServiceableLocationAsPerProviderIdAndPincode");
1895
      }
1896
 
1897
      protected getServiceableLocationAsPerProviderIdAndPincode_args getEmptyArgsInstance() {
1898
        return new getServiceableLocationAsPerProviderIdAndPincode_args();
1899
      }
1900
 
1901
      protected getServiceableLocationAsPerProviderIdAndPincode_result getResult(I iface, getServiceableLocationAsPerProviderIdAndPincode_args args) throws org.apache.thrift.TException {
1902
        getServiceableLocationAsPerProviderIdAndPincode_result result = new getServiceableLocationAsPerProviderIdAndPincode_result();
1903
        result.success = iface.getServiceableLocationAsPerProviderIdAndPincode(args.providerId, args.pincode);
1904
        result.setSuccessIsSet(true);
1905
        return result;
1906
      }
1907
    }
1908
 
1909
    private static class runCompleteUpdateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runCompleteUpdateForPincode_args> {
1910
      public runCompleteUpdateForPincode() {
1911
        super("runCompleteUpdateForPincode");
1912
      }
1913
 
1914
      protected runCompleteUpdateForPincode_args getEmptyArgsInstance() {
1915
        return new runCompleteUpdateForPincode_args();
1916
      }
1917
 
1918
      protected runCompleteUpdateForPincode_result getResult(I iface, runCompleteUpdateForPincode_args args) throws org.apache.thrift.TException {
1919
        runCompleteUpdateForPincode_result result = new runCompleteUpdateForPincode_result();
1920
        iface.runCompleteUpdateForPincode();
1921
        return result;
1922
      }
1923
    }
1924
 
412 ashish 1925
  }
1926
 
3430 rajveer 1927
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1929
 
3430 rajveer 1930
    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 1931
 
3430 rajveer 1932
    private long providerId; // required
668 chandransh 1933
 
1934
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1935
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1936
      PROVIDER_ID((short)1, "providerId");
1937
 
1938
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1939
 
1940
      static {
1941
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1942
          byName.put(field.getFieldName(), field);
1943
        }
1944
      }
1945
 
1946
      /**
1947
       * Find the _Fields constant that matches fieldId, or null if its not found.
1948
       */
1949
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1950
        switch(fieldId) {
1951
          case 1: // PROVIDER_ID
1952
            return PROVIDER_ID;
1953
          default:
1954
            return null;
1955
        }
668 chandransh 1956
      }
1957
 
1958
      /**
1959
       * Find the _Fields constant that matches fieldId, throwing an exception
1960
       * if it is not found.
1961
       */
1962
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1963
        _Fields fields = findByThriftId(fieldId);
1964
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1965
        return fields;
1966
      }
1967
 
1968
      /**
1969
       * Find the _Fields constant that matches name, or null if its not found.
1970
       */
1971
      public static _Fields findByName(String name) {
1972
        return byName.get(name);
1973
      }
1974
 
1975
      private final short _thriftId;
1976
      private final String _fieldName;
1977
 
1978
      _Fields(short thriftId, String fieldName) {
1979
        _thriftId = thriftId;
1980
        _fieldName = fieldName;
1981
      }
1982
 
1983
      public short getThriftFieldId() {
1984
        return _thriftId;
1985
      }
1986
 
1987
      public String getFieldName() {
1988
        return _fieldName;
1989
      }
1990
    }
1991
 
1992
    // isset id assignments
1993
    private static final int __PROVIDERID_ISSET_ID = 0;
1994
    private BitSet __isset_bit_vector = new BitSet(1);
1995
 
3430 rajveer 1996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1997
    static {
3430 rajveer 1998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1999
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2003
    }
2004
 
2005
    public getProvider_args() {
2006
    }
2007
 
2008
    public getProvider_args(
2009
      long providerId)
2010
    {
2011
      this();
2012
      this.providerId = providerId;
2013
      setProviderIdIsSet(true);
2014
    }
2015
 
2016
    /**
2017
     * Performs a deep copy on <i>other</i>.
2018
     */
2019
    public getProvider_args(getProvider_args other) {
2020
      __isset_bit_vector.clear();
2021
      __isset_bit_vector.or(other.__isset_bit_vector);
2022
      this.providerId = other.providerId;
2023
    }
2024
 
2025
    public getProvider_args deepCopy() {
2026
      return new getProvider_args(this);
2027
    }
2028
 
3430 rajveer 2029
    @Override
2030
    public void clear() {
2031
      setProviderIdIsSet(false);
2032
      this.providerId = 0;
668 chandransh 2033
    }
2034
 
2035
    public long getProviderId() {
2036
      return this.providerId;
2037
    }
2038
 
3430 rajveer 2039
    public void setProviderId(long providerId) {
668 chandransh 2040
      this.providerId = providerId;
2041
      setProviderIdIsSet(true);
2042
    }
2043
 
2044
    public void unsetProviderId() {
2045
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2046
    }
2047
 
3430 rajveer 2048
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2049
    public boolean isSetProviderId() {
2050
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2051
    }
2052
 
2053
    public void setProviderIdIsSet(boolean value) {
2054
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2055
    }
2056
 
2057
    public void setFieldValue(_Fields field, Object value) {
2058
      switch (field) {
2059
      case PROVIDER_ID:
2060
        if (value == null) {
2061
          unsetProviderId();
2062
        } else {
2063
          setProviderId((Long)value);
2064
        }
2065
        break;
2066
 
2067
      }
2068
    }
2069
 
2070
    public Object getFieldValue(_Fields field) {
2071
      switch (field) {
2072
      case PROVIDER_ID:
3430 rajveer 2073
        return Long.valueOf(getProviderId());
668 chandransh 2074
 
2075
      }
2076
      throw new IllegalStateException();
2077
    }
2078
 
3430 rajveer 2079
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2080
    public boolean isSet(_Fields field) {
2081
      if (field == null) {
2082
        throw new IllegalArgumentException();
2083
      }
668 chandransh 2084
 
2085
      switch (field) {
2086
      case PROVIDER_ID:
2087
        return isSetProviderId();
2088
      }
2089
      throw new IllegalStateException();
2090
    }
2091
 
2092
    @Override
2093
    public boolean equals(Object that) {
2094
      if (that == null)
2095
        return false;
2096
      if (that instanceof getProvider_args)
2097
        return this.equals((getProvider_args)that);
2098
      return false;
2099
    }
2100
 
2101
    public boolean equals(getProvider_args that) {
2102
      if (that == null)
2103
        return false;
2104
 
2105
      boolean this_present_providerId = true;
2106
      boolean that_present_providerId = true;
2107
      if (this_present_providerId || that_present_providerId) {
2108
        if (!(this_present_providerId && that_present_providerId))
2109
          return false;
2110
        if (this.providerId != that.providerId)
2111
          return false;
2112
      }
2113
 
2114
      return true;
2115
    }
2116
 
2117
    @Override
2118
    public int hashCode() {
2119
      return 0;
2120
    }
2121
 
2122
    public int compareTo(getProvider_args other) {
2123
      if (!getClass().equals(other.getClass())) {
2124
        return getClass().getName().compareTo(other.getClass().getName());
2125
      }
2126
 
2127
      int lastComparison = 0;
2128
      getProvider_args typedOther = (getProvider_args)other;
2129
 
3430 rajveer 2130
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2131
      if (lastComparison != 0) {
2132
        return lastComparison;
2133
      }
3430 rajveer 2134
      if (isSetProviderId()) {
2135
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2136
        if (lastComparison != 0) {
2137
          return lastComparison;
2138
        }
668 chandransh 2139
      }
2140
      return 0;
2141
    }
2142
 
3430 rajveer 2143
    public _Fields fieldForId(int fieldId) {
2144
      return _Fields.findByThriftId(fieldId);
2145
    }
2146
 
2147
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2148
      org.apache.thrift.protocol.TField field;
668 chandransh 2149
      iprot.readStructBegin();
2150
      while (true)
2151
      {
2152
        field = iprot.readFieldBegin();
3430 rajveer 2153
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2154
          break;
2155
        }
3430 rajveer 2156
        switch (field.id) {
2157
          case 1: // PROVIDER_ID
2158
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2159
              this.providerId = iprot.readI64();
2160
              setProviderIdIsSet(true);
2161
            } else { 
2162
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2163
            }
2164
            break;
2165
          default:
2166
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2167
        }
3430 rajveer 2168
        iprot.readFieldEnd();
668 chandransh 2169
      }
2170
      iprot.readStructEnd();
2171
      validate();
2172
    }
2173
 
3430 rajveer 2174
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2175
      validate();
2176
 
2177
      oprot.writeStructBegin(STRUCT_DESC);
2178
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2179
      oprot.writeI64(this.providerId);
2180
      oprot.writeFieldEnd();
2181
      oprot.writeFieldStop();
2182
      oprot.writeStructEnd();
2183
    }
2184
 
2185
    @Override
2186
    public String toString() {
2187
      StringBuilder sb = new StringBuilder("getProvider_args(");
2188
      boolean first = true;
2189
 
2190
      sb.append("providerId:");
2191
      sb.append(this.providerId);
2192
      first = false;
2193
      sb.append(")");
2194
      return sb.toString();
2195
    }
2196
 
3430 rajveer 2197
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2198
      // check for required fields
2199
    }
2200
 
3430 rajveer 2201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2202
      try {
2203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2204
      } catch (org.apache.thrift.TException te) {
2205
        throw new java.io.IOException(te);
2206
      }
2207
    }
2208
 
2209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2210
      try {
2211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2212
      } catch (org.apache.thrift.TException te) {
2213
        throw new java.io.IOException(te);
2214
      }
2215
    }
2216
 
668 chandransh 2217
  }
2218
 
3430 rajveer 2219
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2221
 
3430 rajveer 2222
    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);
2223
    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 2224
 
3430 rajveer 2225
    private Provider success; // required
2226
    private LogisticsServiceException lse; // required
668 chandransh 2227
 
2228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2230
      SUCCESS((short)0, "success"),
2231
      LSE((short)1, "lse");
2232
 
2233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2234
 
2235
      static {
2236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2237
          byName.put(field.getFieldName(), field);
2238
        }
2239
      }
2240
 
2241
      /**
2242
       * Find the _Fields constant that matches fieldId, or null if its not found.
2243
       */
2244
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2245
        switch(fieldId) {
2246
          case 0: // SUCCESS
2247
            return SUCCESS;
2248
          case 1: // LSE
2249
            return LSE;
2250
          default:
2251
            return null;
2252
        }
668 chandransh 2253
      }
2254
 
2255
      /**
2256
       * Find the _Fields constant that matches fieldId, throwing an exception
2257
       * if it is not found.
2258
       */
2259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2260
        _Fields fields = findByThriftId(fieldId);
2261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2262
        return fields;
2263
      }
2264
 
2265
      /**
2266
       * Find the _Fields constant that matches name, or null if its not found.
2267
       */
2268
      public static _Fields findByName(String name) {
2269
        return byName.get(name);
2270
      }
2271
 
2272
      private final short _thriftId;
2273
      private final String _fieldName;
2274
 
2275
      _Fields(short thriftId, String fieldName) {
2276
        _thriftId = thriftId;
2277
        _fieldName = fieldName;
2278
      }
2279
 
2280
      public short getThriftFieldId() {
2281
        return _thriftId;
2282
      }
2283
 
2284
      public String getFieldName() {
2285
        return _fieldName;
2286
      }
2287
    }
2288
 
2289
    // isset id assignments
2290
 
3430 rajveer 2291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2292
    static {
3430 rajveer 2293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2294
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2295
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2296
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2297
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2298
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2299
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2300
    }
2301
 
2302
    public getProvider_result() {
2303
    }
2304
 
2305
    public getProvider_result(
2306
      Provider success,
2307
      LogisticsServiceException lse)
2308
    {
2309
      this();
2310
      this.success = success;
2311
      this.lse = lse;
2312
    }
2313
 
2314
    /**
2315
     * Performs a deep copy on <i>other</i>.
2316
     */
2317
    public getProvider_result(getProvider_result other) {
2318
      if (other.isSetSuccess()) {
2319
        this.success = new Provider(other.success);
2320
      }
2321
      if (other.isSetLse()) {
2322
        this.lse = new LogisticsServiceException(other.lse);
2323
      }
2324
    }
2325
 
2326
    public getProvider_result deepCopy() {
2327
      return new getProvider_result(this);
2328
    }
2329
 
3430 rajveer 2330
    @Override
2331
    public void clear() {
2332
      this.success = null;
2333
      this.lse = null;
668 chandransh 2334
    }
2335
 
2336
    public Provider getSuccess() {
2337
      return this.success;
2338
    }
2339
 
3430 rajveer 2340
    public void setSuccess(Provider success) {
668 chandransh 2341
      this.success = success;
2342
    }
2343
 
2344
    public void unsetSuccess() {
2345
      this.success = null;
2346
    }
2347
 
3430 rajveer 2348
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2349
    public boolean isSetSuccess() {
2350
      return this.success != null;
2351
    }
2352
 
2353
    public void setSuccessIsSet(boolean value) {
2354
      if (!value) {
2355
        this.success = null;
2356
      }
2357
    }
2358
 
2359
    public LogisticsServiceException getLse() {
2360
      return this.lse;
2361
    }
2362
 
3430 rajveer 2363
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2364
      this.lse = lse;
2365
    }
2366
 
2367
    public void unsetLse() {
2368
      this.lse = null;
2369
    }
2370
 
3430 rajveer 2371
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2372
    public boolean isSetLse() {
2373
      return this.lse != null;
2374
    }
2375
 
2376
    public void setLseIsSet(boolean value) {
2377
      if (!value) {
2378
        this.lse = null;
2379
      }
2380
    }
2381
 
2382
    public void setFieldValue(_Fields field, Object value) {
2383
      switch (field) {
2384
      case SUCCESS:
2385
        if (value == null) {
2386
          unsetSuccess();
2387
        } else {
2388
          setSuccess((Provider)value);
2389
        }
2390
        break;
2391
 
2392
      case LSE:
2393
        if (value == null) {
2394
          unsetLse();
2395
        } else {
2396
          setLse((LogisticsServiceException)value);
2397
        }
2398
        break;
2399
 
2400
      }
2401
    }
2402
 
2403
    public Object getFieldValue(_Fields field) {
2404
      switch (field) {
2405
      case SUCCESS:
2406
        return getSuccess();
2407
 
2408
      case LSE:
2409
        return getLse();
2410
 
2411
      }
2412
      throw new IllegalStateException();
2413
    }
2414
 
3430 rajveer 2415
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2416
    public boolean isSet(_Fields field) {
2417
      if (field == null) {
2418
        throw new IllegalArgumentException();
2419
      }
668 chandransh 2420
 
2421
      switch (field) {
2422
      case SUCCESS:
2423
        return isSetSuccess();
2424
      case LSE:
2425
        return isSetLse();
2426
      }
2427
      throw new IllegalStateException();
2428
    }
2429
 
2430
    @Override
2431
    public boolean equals(Object that) {
2432
      if (that == null)
2433
        return false;
2434
      if (that instanceof getProvider_result)
2435
        return this.equals((getProvider_result)that);
2436
      return false;
2437
    }
2438
 
2439
    public boolean equals(getProvider_result that) {
2440
      if (that == null)
2441
        return false;
2442
 
2443
      boolean this_present_success = true && this.isSetSuccess();
2444
      boolean that_present_success = true && that.isSetSuccess();
2445
      if (this_present_success || that_present_success) {
2446
        if (!(this_present_success && that_present_success))
2447
          return false;
2448
        if (!this.success.equals(that.success))
2449
          return false;
2450
      }
2451
 
2452
      boolean this_present_lse = true && this.isSetLse();
2453
      boolean that_present_lse = true && that.isSetLse();
2454
      if (this_present_lse || that_present_lse) {
2455
        if (!(this_present_lse && that_present_lse))
2456
          return false;
2457
        if (!this.lse.equals(that.lse))
2458
          return false;
2459
      }
2460
 
2461
      return true;
2462
    }
2463
 
2464
    @Override
2465
    public int hashCode() {
2466
      return 0;
2467
    }
2468
 
3430 rajveer 2469
    public int compareTo(getProvider_result other) {
2470
      if (!getClass().equals(other.getClass())) {
2471
        return getClass().getName().compareTo(other.getClass().getName());
2472
      }
2473
 
2474
      int lastComparison = 0;
2475
      getProvider_result typedOther = (getProvider_result)other;
2476
 
2477
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2478
      if (lastComparison != 0) {
2479
        return lastComparison;
2480
      }
2481
      if (isSetSuccess()) {
2482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2483
        if (lastComparison != 0) {
2484
          return lastComparison;
2485
        }
2486
      }
2487
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2488
      if (lastComparison != 0) {
2489
        return lastComparison;
2490
      }
2491
      if (isSetLse()) {
2492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2493
        if (lastComparison != 0) {
2494
          return lastComparison;
2495
        }
2496
      }
2497
      return 0;
2498
    }
2499
 
2500
    public _Fields fieldForId(int fieldId) {
2501
      return _Fields.findByThriftId(fieldId);
2502
    }
2503
 
2504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2505
      org.apache.thrift.protocol.TField field;
668 chandransh 2506
      iprot.readStructBegin();
2507
      while (true)
2508
      {
2509
        field = iprot.readFieldBegin();
3430 rajveer 2510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2511
          break;
2512
        }
3430 rajveer 2513
        switch (field.id) {
2514
          case 0: // SUCCESS
2515
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2516
              this.success = new Provider();
2517
              this.success.read(iprot);
2518
            } else { 
2519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2520
            }
2521
            break;
2522
          case 1: // LSE
2523
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2524
              this.lse = new LogisticsServiceException();
2525
              this.lse.read(iprot);
2526
            } else { 
2527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2528
            }
2529
            break;
2530
          default:
2531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2532
        }
3430 rajveer 2533
        iprot.readFieldEnd();
668 chandransh 2534
      }
2535
      iprot.readStructEnd();
2536
      validate();
2537
    }
2538
 
3430 rajveer 2539
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2540
      oprot.writeStructBegin(STRUCT_DESC);
2541
 
2542
      if (this.isSetSuccess()) {
2543
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2544
        this.success.write(oprot);
2545
        oprot.writeFieldEnd();
2546
      } else if (this.isSetLse()) {
2547
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2548
        this.lse.write(oprot);
2549
        oprot.writeFieldEnd();
2550
      }
2551
      oprot.writeFieldStop();
2552
      oprot.writeStructEnd();
2553
    }
2554
 
2555
    @Override
2556
    public String toString() {
2557
      StringBuilder sb = new StringBuilder("getProvider_result(");
2558
      boolean first = true;
2559
 
2560
      sb.append("success:");
2561
      if (this.success == null) {
2562
        sb.append("null");
2563
      } else {
2564
        sb.append(this.success);
2565
      }
2566
      first = false;
2567
      if (!first) sb.append(", ");
2568
      sb.append("lse:");
2569
      if (this.lse == null) {
2570
        sb.append("null");
2571
      } else {
2572
        sb.append(this.lse);
2573
      }
2574
      first = false;
2575
      sb.append(")");
2576
      return sb.toString();
2577
    }
2578
 
3430 rajveer 2579
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2580
      // check for required fields
2581
    }
2582
 
3430 rajveer 2583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2584
      try {
2585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2586
      } catch (org.apache.thrift.TException te) {
2587
        throw new java.io.IOException(te);
2588
      }
2589
    }
2590
 
2591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2592
      try {
2593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2594
      } catch (org.apache.thrift.TException te) {
2595
        throw new java.io.IOException(te);
2596
      }
2597
    }
2598
 
668 chandransh 2599
  }
2600
 
3430 rajveer 2601
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2603
 
2604
 
2605
 
2606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2608
;
2609
 
2610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2611
 
2612
      static {
2613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2614
          byName.put(field.getFieldName(), field);
2615
        }
2616
      }
2617
 
2618
      /**
2619
       * Find the _Fields constant that matches fieldId, or null if its not found.
2620
       */
2621
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2622
        switch(fieldId) {
2623
          default:
2624
            return null;
2625
        }
674 chandransh 2626
      }
2627
 
2628
      /**
2629
       * Find the _Fields constant that matches fieldId, throwing an exception
2630
       * if it is not found.
2631
       */
2632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2633
        _Fields fields = findByThriftId(fieldId);
2634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2635
        return fields;
2636
      }
2637
 
2638
      /**
2639
       * Find the _Fields constant that matches name, or null if its not found.
2640
       */
2641
      public static _Fields findByName(String name) {
2642
        return byName.get(name);
2643
      }
2644
 
2645
      private final short _thriftId;
2646
      private final String _fieldName;
2647
 
2648
      _Fields(short thriftId, String fieldName) {
2649
        _thriftId = thriftId;
2650
        _fieldName = fieldName;
2651
      }
2652
 
2653
      public short getThriftFieldId() {
2654
        return _thriftId;
2655
      }
2656
 
2657
      public String getFieldName() {
2658
        return _fieldName;
2659
      }
2660
    }
3430 rajveer 2661
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2662
    static {
3430 rajveer 2663
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2666
    }
2667
 
2668
    public getAllProviders_args() {
2669
    }
2670
 
2671
    /**
2672
     * Performs a deep copy on <i>other</i>.
2673
     */
2674
    public getAllProviders_args(getAllProviders_args other) {
2675
    }
2676
 
2677
    public getAllProviders_args deepCopy() {
2678
      return new getAllProviders_args(this);
2679
    }
2680
 
3430 rajveer 2681
    @Override
2682
    public void clear() {
674 chandransh 2683
    }
2684
 
2685
    public void setFieldValue(_Fields field, Object value) {
2686
      switch (field) {
2687
      }
2688
    }
2689
 
2690
    public Object getFieldValue(_Fields field) {
2691
      switch (field) {
2692
      }
2693
      throw new IllegalStateException();
2694
    }
2695
 
3430 rajveer 2696
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2697
    public boolean isSet(_Fields field) {
2698
      if (field == null) {
2699
        throw new IllegalArgumentException();
2700
      }
674 chandransh 2701
 
2702
      switch (field) {
2703
      }
2704
      throw new IllegalStateException();
2705
    }
2706
 
2707
    @Override
2708
    public boolean equals(Object that) {
2709
      if (that == null)
2710
        return false;
2711
      if (that instanceof getAllProviders_args)
2712
        return this.equals((getAllProviders_args)that);
2713
      return false;
2714
    }
2715
 
2716
    public boolean equals(getAllProviders_args that) {
2717
      if (that == null)
2718
        return false;
2719
 
2720
      return true;
2721
    }
2722
 
2723
    @Override
2724
    public int hashCode() {
2725
      return 0;
2726
    }
2727
 
2728
    public int compareTo(getAllProviders_args other) {
2729
      if (!getClass().equals(other.getClass())) {
2730
        return getClass().getName().compareTo(other.getClass().getName());
2731
      }
2732
 
2733
      int lastComparison = 0;
2734
      getAllProviders_args typedOther = (getAllProviders_args)other;
2735
 
2736
      return 0;
2737
    }
2738
 
3430 rajveer 2739
    public _Fields fieldForId(int fieldId) {
2740
      return _Fields.findByThriftId(fieldId);
2741
    }
2742
 
2743
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2744
      org.apache.thrift.protocol.TField field;
674 chandransh 2745
      iprot.readStructBegin();
2746
      while (true)
2747
      {
2748
        field = iprot.readFieldBegin();
3430 rajveer 2749
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2750
          break;
2751
        }
3430 rajveer 2752
        switch (field.id) {
2753
          default:
2754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2755
        }
3430 rajveer 2756
        iprot.readFieldEnd();
674 chandransh 2757
      }
2758
      iprot.readStructEnd();
2759
      validate();
2760
    }
2761
 
3430 rajveer 2762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2763
      validate();
2764
 
2765
      oprot.writeStructBegin(STRUCT_DESC);
2766
      oprot.writeFieldStop();
2767
      oprot.writeStructEnd();
2768
    }
2769
 
2770
    @Override
2771
    public String toString() {
2772
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2773
      boolean first = true;
2774
 
2775
      sb.append(")");
2776
      return sb.toString();
2777
    }
2778
 
3430 rajveer 2779
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2780
      // check for required fields
2781
    }
2782
 
3430 rajveer 2783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2784
      try {
2785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2786
      } catch (org.apache.thrift.TException te) {
2787
        throw new java.io.IOException(te);
2788
      }
2789
    }
2790
 
2791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2792
      try {
2793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2794
      } catch (org.apache.thrift.TException te) {
2795
        throw new java.io.IOException(te);
2796
      }
2797
    }
2798
 
674 chandransh 2799
  }
2800
 
3430 rajveer 2801
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2803
 
3430 rajveer 2804
    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);
2805
    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 2806
 
3430 rajveer 2807
    private List<Provider> success; // required
2808
    private LogisticsServiceException lse; // required
674 chandransh 2809
 
2810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2812
      SUCCESS((short)0, "success"),
2813
      LSE((short)1, "lse");
2814
 
2815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2816
 
2817
      static {
2818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2819
          byName.put(field.getFieldName(), field);
2820
        }
2821
      }
2822
 
2823
      /**
2824
       * Find the _Fields constant that matches fieldId, or null if its not found.
2825
       */
2826
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2827
        switch(fieldId) {
2828
          case 0: // SUCCESS
2829
            return SUCCESS;
2830
          case 1: // LSE
2831
            return LSE;
2832
          default:
2833
            return null;
2834
        }
674 chandransh 2835
      }
2836
 
2837
      /**
2838
       * Find the _Fields constant that matches fieldId, throwing an exception
2839
       * if it is not found.
2840
       */
2841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2842
        _Fields fields = findByThriftId(fieldId);
2843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2844
        return fields;
2845
      }
2846
 
2847
      /**
2848
       * Find the _Fields constant that matches name, or null if its not found.
2849
       */
2850
      public static _Fields findByName(String name) {
2851
        return byName.get(name);
2852
      }
2853
 
2854
      private final short _thriftId;
2855
      private final String _fieldName;
2856
 
2857
      _Fields(short thriftId, String fieldName) {
2858
        _thriftId = thriftId;
2859
        _fieldName = fieldName;
2860
      }
2861
 
2862
      public short getThriftFieldId() {
2863
        return _thriftId;
2864
      }
2865
 
2866
      public String getFieldName() {
2867
        return _fieldName;
2868
      }
2869
    }
2870
 
2871
    // isset id assignments
2872
 
3430 rajveer 2873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2874
    static {
3430 rajveer 2875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2876
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2877
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2878
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2879
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2883
    }
2884
 
2885
    public getAllProviders_result() {
2886
    }
2887
 
2888
    public getAllProviders_result(
2889
      List<Provider> success,
2890
      LogisticsServiceException lse)
2891
    {
2892
      this();
2893
      this.success = success;
2894
      this.lse = lse;
2895
    }
2896
 
2897
    /**
2898
     * Performs a deep copy on <i>other</i>.
2899
     */
2900
    public getAllProviders_result(getAllProviders_result other) {
2901
      if (other.isSetSuccess()) {
2902
        List<Provider> __this__success = new ArrayList<Provider>();
2903
        for (Provider other_element : other.success) {
2904
          __this__success.add(new Provider(other_element));
2905
        }
2906
        this.success = __this__success;
2907
      }
2908
      if (other.isSetLse()) {
2909
        this.lse = new LogisticsServiceException(other.lse);
2910
      }
2911
    }
2912
 
2913
    public getAllProviders_result deepCopy() {
2914
      return new getAllProviders_result(this);
2915
    }
2916
 
3430 rajveer 2917
    @Override
2918
    public void clear() {
2919
      this.success = null;
2920
      this.lse = null;
674 chandransh 2921
    }
2922
 
2923
    public int getSuccessSize() {
2924
      return (this.success == null) ? 0 : this.success.size();
2925
    }
2926
 
2927
    public java.util.Iterator<Provider> getSuccessIterator() {
2928
      return (this.success == null) ? null : this.success.iterator();
2929
    }
2930
 
2931
    public void addToSuccess(Provider elem) {
2932
      if (this.success == null) {
2933
        this.success = new ArrayList<Provider>();
2934
      }
2935
      this.success.add(elem);
2936
    }
2937
 
2938
    public List<Provider> getSuccess() {
2939
      return this.success;
2940
    }
2941
 
3430 rajveer 2942
    public void setSuccess(List<Provider> success) {
674 chandransh 2943
      this.success = success;
2944
    }
2945
 
2946
    public void unsetSuccess() {
2947
      this.success = null;
2948
    }
2949
 
3430 rajveer 2950
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2951
    public boolean isSetSuccess() {
2952
      return this.success != null;
2953
    }
2954
 
2955
    public void setSuccessIsSet(boolean value) {
2956
      if (!value) {
2957
        this.success = null;
2958
      }
2959
    }
2960
 
2961
    public LogisticsServiceException getLse() {
2962
      return this.lse;
2963
    }
2964
 
3430 rajveer 2965
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2966
      this.lse = lse;
2967
    }
2968
 
2969
    public void unsetLse() {
2970
      this.lse = null;
2971
    }
2972
 
3430 rajveer 2973
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2974
    public boolean isSetLse() {
2975
      return this.lse != null;
2976
    }
2977
 
2978
    public void setLseIsSet(boolean value) {
2979
      if (!value) {
2980
        this.lse = null;
2981
      }
2982
    }
2983
 
2984
    public void setFieldValue(_Fields field, Object value) {
2985
      switch (field) {
2986
      case SUCCESS:
2987
        if (value == null) {
2988
          unsetSuccess();
2989
        } else {
2990
          setSuccess((List<Provider>)value);
2991
        }
2992
        break;
2993
 
2994
      case LSE:
2995
        if (value == null) {
2996
          unsetLse();
2997
        } else {
2998
          setLse((LogisticsServiceException)value);
2999
        }
3000
        break;
3001
 
3002
      }
3003
    }
3004
 
3005
    public Object getFieldValue(_Fields field) {
3006
      switch (field) {
3007
      case SUCCESS:
3008
        return getSuccess();
3009
 
3010
      case LSE:
3011
        return getLse();
3012
 
3013
      }
3014
      throw new IllegalStateException();
3015
    }
3016
 
3430 rajveer 3017
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3018
    public boolean isSet(_Fields field) {
3019
      if (field == null) {
3020
        throw new IllegalArgumentException();
3021
      }
674 chandransh 3022
 
3023
      switch (field) {
3024
      case SUCCESS:
3025
        return isSetSuccess();
3026
      case LSE:
3027
        return isSetLse();
3028
      }
3029
      throw new IllegalStateException();
3030
    }
3031
 
3032
    @Override
3033
    public boolean equals(Object that) {
3034
      if (that == null)
3035
        return false;
3036
      if (that instanceof getAllProviders_result)
3037
        return this.equals((getAllProviders_result)that);
3038
      return false;
3039
    }
3040
 
3041
    public boolean equals(getAllProviders_result that) {
3042
      if (that == null)
3043
        return false;
3044
 
3045
      boolean this_present_success = true && this.isSetSuccess();
3046
      boolean that_present_success = true && that.isSetSuccess();
3047
      if (this_present_success || that_present_success) {
3048
        if (!(this_present_success && that_present_success))
3049
          return false;
3050
        if (!this.success.equals(that.success))
3051
          return false;
3052
      }
3053
 
3054
      boolean this_present_lse = true && this.isSetLse();
3055
      boolean that_present_lse = true && that.isSetLse();
3056
      if (this_present_lse || that_present_lse) {
3057
        if (!(this_present_lse && that_present_lse))
3058
          return false;
3059
        if (!this.lse.equals(that.lse))
3060
          return false;
3061
      }
3062
 
3063
      return true;
3064
    }
3065
 
3066
    @Override
3067
    public int hashCode() {
3068
      return 0;
3069
    }
3070
 
3430 rajveer 3071
    public int compareTo(getAllProviders_result other) {
3072
      if (!getClass().equals(other.getClass())) {
3073
        return getClass().getName().compareTo(other.getClass().getName());
3074
      }
3075
 
3076
      int lastComparison = 0;
3077
      getAllProviders_result typedOther = (getAllProviders_result)other;
3078
 
3079
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3080
      if (lastComparison != 0) {
3081
        return lastComparison;
3082
      }
3083
      if (isSetSuccess()) {
3084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3085
        if (lastComparison != 0) {
3086
          return lastComparison;
3087
        }
3088
      }
3089
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3090
      if (lastComparison != 0) {
3091
        return lastComparison;
3092
      }
3093
      if (isSetLse()) {
3094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3095
        if (lastComparison != 0) {
3096
          return lastComparison;
3097
        }
3098
      }
3099
      return 0;
3100
    }
3101
 
3102
    public _Fields fieldForId(int fieldId) {
3103
      return _Fields.findByThriftId(fieldId);
3104
    }
3105
 
3106
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3107
      org.apache.thrift.protocol.TField field;
674 chandransh 3108
      iprot.readStructBegin();
3109
      while (true)
3110
      {
3111
        field = iprot.readFieldBegin();
3430 rajveer 3112
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3113
          break;
3114
        }
3430 rajveer 3115
        switch (field.id) {
3116
          case 0: // SUCCESS
3117
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3118
              {
3119
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
3120
                this.success = new ArrayList<Provider>(_list5.size);
3121
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 3122
                {
3430 rajveer 3123
                  Provider _elem7; // required
3124
                  _elem7 = new Provider();
3125
                  _elem7.read(iprot);
3126
                  this.success.add(_elem7);
674 chandransh 3127
                }
3430 rajveer 3128
                iprot.readListEnd();
674 chandransh 3129
              }
3430 rajveer 3130
            } else { 
3131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3132
            }
3133
            break;
3134
          case 1: // LSE
3135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3136
              this.lse = new LogisticsServiceException();
3137
              this.lse.read(iprot);
3138
            } else { 
3139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3140
            }
3141
            break;
3142
          default:
3143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3144
        }
3430 rajveer 3145
        iprot.readFieldEnd();
674 chandransh 3146
      }
3147
      iprot.readStructEnd();
3148
      validate();
3149
    }
3150
 
3430 rajveer 3151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3152
      oprot.writeStructBegin(STRUCT_DESC);
3153
 
3154
      if (this.isSetSuccess()) {
3155
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3156
        {
3430 rajveer 3157
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 3158
          for (Provider _iter8 : this.success)
674 chandransh 3159
          {
3044 chandransh 3160
            _iter8.write(oprot);
674 chandransh 3161
          }
3162
          oprot.writeListEnd();
3163
        }
3164
        oprot.writeFieldEnd();
3165
      } else if (this.isSetLse()) {
3166
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3167
        this.lse.write(oprot);
3168
        oprot.writeFieldEnd();
3169
      }
3170
      oprot.writeFieldStop();
3171
      oprot.writeStructEnd();
3172
    }
3173
 
3174
    @Override
3175
    public String toString() {
3176
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3177
      boolean first = true;
3178
 
3179
      sb.append("success:");
3180
      if (this.success == null) {
3181
        sb.append("null");
3182
      } else {
3183
        sb.append(this.success);
3184
      }
3185
      first = false;
3186
      if (!first) sb.append(", ");
3187
      sb.append("lse:");
3188
      if (this.lse == null) {
3189
        sb.append("null");
3190
      } else {
3191
        sb.append(this.lse);
3192
      }
3193
      first = false;
3194
      sb.append(")");
3195
      return sb.toString();
3196
    }
3197
 
3430 rajveer 3198
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3199
      // check for required fields
3200
    }
3201
 
3430 rajveer 3202
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3203
      try {
3204
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3205
      } catch (org.apache.thrift.TException te) {
3206
        throw new java.io.IOException(te);
3207
      }
3208
    }
3209
 
3210
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3211
      try {
3212
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3213
      } catch (org.apache.thrift.TException te) {
3214
        throw new java.io.IOException(te);
3215
      }
3216
    }
3217
 
674 chandransh 3218
  }
3219
 
3430 rajveer 3220
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3221
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3222
 
3430 rajveer 3223
    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);
3224
    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 3225
    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 3226
 
3430 rajveer 3227
    private long itemId; // required
3228
    private String destination_pin; // required
4630 mandeep.dh 3229
    private DeliveryType type; // required
471 rajveer 3230
 
3231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3233
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3234
      DESTINATION_PIN((short)2, "destination_pin"),
3235
      /**
3236
       * 
3237
       * @see DeliveryType
3238
       */
3239
      TYPE((short)3, "type");
471 rajveer 3240
 
3241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3242
 
3243
      static {
3244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3245
          byName.put(field.getFieldName(), field);
3246
        }
3247
      }
3248
 
3249
      /**
3250
       * Find the _Fields constant that matches fieldId, or null if its not found.
3251
       */
3252
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3253
        switch(fieldId) {
3254
          case 1: // ITEM_ID
3255
            return ITEM_ID;
3256
          case 2: // DESTINATION_PIN
3257
            return DESTINATION_PIN;
4630 mandeep.dh 3258
          case 3: // TYPE
3259
            return TYPE;
3430 rajveer 3260
          default:
3261
            return null;
3262
        }
471 rajveer 3263
      }
3264
 
3265
      /**
3266
       * Find the _Fields constant that matches fieldId, throwing an exception
3267
       * if it is not found.
3268
       */
3269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3270
        _Fields fields = findByThriftId(fieldId);
3271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3272
        return fields;
3273
      }
3274
 
3275
      /**
3276
       * Find the _Fields constant that matches name, or null if its not found.
3277
       */
3278
      public static _Fields findByName(String name) {
3279
        return byName.get(name);
3280
      }
3281
 
3282
      private final short _thriftId;
3283
      private final String _fieldName;
3284
 
3285
      _Fields(short thriftId, String fieldName) {
3286
        _thriftId = thriftId;
3287
        _fieldName = fieldName;
3288
      }
3289
 
3290
      public short getThriftFieldId() {
3291
        return _thriftId;
3292
      }
3293
 
3294
      public String getFieldName() {
3295
        return _fieldName;
3296
      }
3297
    }
3298
 
3299
    // isset id assignments
3300
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3301
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3302
 
3430 rajveer 3303
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3304
    static {
3430 rajveer 3305
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3306
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3308
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3310
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3311
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3314
    }
3315
 
3316
    public getLogisticsEstimation_args() {
3317
    }
3318
 
3319
    public getLogisticsEstimation_args(
3320
      long itemId,
4630 mandeep.dh 3321
      String destination_pin,
3322
      DeliveryType type)
471 rajveer 3323
    {
3324
      this();
3325
      this.itemId = itemId;
3326
      setItemIdIsSet(true);
3327
      this.destination_pin = destination_pin;
4630 mandeep.dh 3328
      this.type = type;
471 rajveer 3329
    }
3330
 
3331
    /**
3332
     * Performs a deep copy on <i>other</i>.
3333
     */
3334
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3335
      __isset_bit_vector.clear();
3336
      __isset_bit_vector.or(other.__isset_bit_vector);
3337
      this.itemId = other.itemId;
3338
      if (other.isSetDestination_pin()) {
3339
        this.destination_pin = other.destination_pin;
3340
      }
4630 mandeep.dh 3341
      if (other.isSetType()) {
3342
        this.type = other.type;
3343
      }
471 rajveer 3344
    }
3345
 
3346
    public getLogisticsEstimation_args deepCopy() {
3347
      return new getLogisticsEstimation_args(this);
3348
    }
3349
 
3430 rajveer 3350
    @Override
3351
    public void clear() {
3352
      setItemIdIsSet(false);
3353
      this.itemId = 0;
3354
      this.destination_pin = null;
4630 mandeep.dh 3355
      this.type = null;
471 rajveer 3356
    }
3357
 
3358
    public long getItemId() {
3359
      return this.itemId;
3360
    }
3361
 
3430 rajveer 3362
    public void setItemId(long itemId) {
471 rajveer 3363
      this.itemId = itemId;
3364
      setItemIdIsSet(true);
3365
    }
3366
 
3367
    public void unsetItemId() {
3368
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3369
    }
3370
 
3430 rajveer 3371
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3372
    public boolean isSetItemId() {
3373
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3374
    }
3375
 
3376
    public void setItemIdIsSet(boolean value) {
3377
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3378
    }
3379
 
3380
    public String getDestination_pin() {
3381
      return this.destination_pin;
3382
    }
3383
 
3430 rajveer 3384
    public void setDestination_pin(String destination_pin) {
471 rajveer 3385
      this.destination_pin = destination_pin;
3386
    }
3387
 
3388
    public void unsetDestination_pin() {
3389
      this.destination_pin = null;
3390
    }
3391
 
3430 rajveer 3392
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3393
    public boolean isSetDestination_pin() {
3394
      return this.destination_pin != null;
3395
    }
3396
 
3397
    public void setDestination_pinIsSet(boolean value) {
3398
      if (!value) {
3399
        this.destination_pin = null;
3400
      }
3401
    }
3402
 
4630 mandeep.dh 3403
    /**
3404
     * 
3405
     * @see DeliveryType
3406
     */
3407
    public DeliveryType getType() {
3408
      return this.type;
3409
    }
3410
 
3411
    /**
3412
     * 
3413
     * @see DeliveryType
3414
     */
3415
    public void setType(DeliveryType type) {
3416
      this.type = type;
3417
    }
3418
 
3419
    public void unsetType() {
3420
      this.type = null;
3421
    }
3422
 
3423
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3424
    public boolean isSetType() {
3425
      return this.type != null;
3426
    }
3427
 
3428
    public void setTypeIsSet(boolean value) {
3429
      if (!value) {
3430
        this.type = null;
3431
      }
3432
    }
3433
 
471 rajveer 3434
    public void setFieldValue(_Fields field, Object value) {
3435
      switch (field) {
3436
      case ITEM_ID:
3437
        if (value == null) {
3438
          unsetItemId();
3439
        } else {
3440
          setItemId((Long)value);
3441
        }
3442
        break;
3443
 
3444
      case DESTINATION_PIN:
3445
        if (value == null) {
3446
          unsetDestination_pin();
3447
        } else {
3448
          setDestination_pin((String)value);
3449
        }
3450
        break;
3451
 
4630 mandeep.dh 3452
      case TYPE:
3453
        if (value == null) {
3454
          unsetType();
3455
        } else {
3456
          setType((DeliveryType)value);
3457
        }
3458
        break;
3459
 
471 rajveer 3460
      }
3461
    }
3462
 
3463
    public Object getFieldValue(_Fields field) {
3464
      switch (field) {
3465
      case ITEM_ID:
3430 rajveer 3466
        return Long.valueOf(getItemId());
471 rajveer 3467
 
3468
      case DESTINATION_PIN:
3469
        return getDestination_pin();
3470
 
4630 mandeep.dh 3471
      case TYPE:
3472
        return getType();
3473
 
471 rajveer 3474
      }
3475
      throw new IllegalStateException();
3476
    }
3477
 
3430 rajveer 3478
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3479
    public boolean isSet(_Fields field) {
3480
      if (field == null) {
3481
        throw new IllegalArgumentException();
3482
      }
471 rajveer 3483
 
3484
      switch (field) {
3485
      case ITEM_ID:
3486
        return isSetItemId();
3487
      case DESTINATION_PIN:
3488
        return isSetDestination_pin();
4630 mandeep.dh 3489
      case TYPE:
3490
        return isSetType();
471 rajveer 3491
      }
3492
      throw new IllegalStateException();
3493
    }
3494
 
3495
    @Override
3496
    public boolean equals(Object that) {
3497
      if (that == null)
3498
        return false;
3499
      if (that instanceof getLogisticsEstimation_args)
3500
        return this.equals((getLogisticsEstimation_args)that);
3501
      return false;
3502
    }
3503
 
3504
    public boolean equals(getLogisticsEstimation_args that) {
3505
      if (that == null)
3506
        return false;
3507
 
3508
      boolean this_present_itemId = true;
3509
      boolean that_present_itemId = true;
3510
      if (this_present_itemId || that_present_itemId) {
3511
        if (!(this_present_itemId && that_present_itemId))
3512
          return false;
3513
        if (this.itemId != that.itemId)
3514
          return false;
3515
      }
3516
 
3517
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3518
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3519
      if (this_present_destination_pin || that_present_destination_pin) {
3520
        if (!(this_present_destination_pin && that_present_destination_pin))
3521
          return false;
3522
        if (!this.destination_pin.equals(that.destination_pin))
3523
          return false;
3524
      }
3525
 
4630 mandeep.dh 3526
      boolean this_present_type = true && this.isSetType();
3527
      boolean that_present_type = true && that.isSetType();
3528
      if (this_present_type || that_present_type) {
3529
        if (!(this_present_type && that_present_type))
3530
          return false;
3531
        if (!this.type.equals(that.type))
3532
          return false;
3533
      }
3534
 
471 rajveer 3535
      return true;
3536
    }
3537
 
3538
    @Override
3539
    public int hashCode() {
3540
      return 0;
3541
    }
3542
 
3543
    public int compareTo(getLogisticsEstimation_args other) {
3544
      if (!getClass().equals(other.getClass())) {
3545
        return getClass().getName().compareTo(other.getClass().getName());
3546
      }
3547
 
3548
      int lastComparison = 0;
3549
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3550
 
3430 rajveer 3551
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3552
      if (lastComparison != 0) {
3553
        return lastComparison;
3554
      }
3430 rajveer 3555
      if (isSetItemId()) {
3556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3557
        if (lastComparison != 0) {
3558
          return lastComparison;
3559
        }
471 rajveer 3560
      }
3430 rajveer 3561
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3562
      if (lastComparison != 0) {
3563
        return lastComparison;
3564
      }
3430 rajveer 3565
      if (isSetDestination_pin()) {
3566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3567
        if (lastComparison != 0) {
3568
          return lastComparison;
3569
        }
471 rajveer 3570
      }
4630 mandeep.dh 3571
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3572
      if (lastComparison != 0) {
3573
        return lastComparison;
3574
      }
3575
      if (isSetType()) {
3576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3577
        if (lastComparison != 0) {
3578
          return lastComparison;
3579
        }
3580
      }
471 rajveer 3581
      return 0;
3582
    }
3583
 
3430 rajveer 3584
    public _Fields fieldForId(int fieldId) {
3585
      return _Fields.findByThriftId(fieldId);
3586
    }
3587
 
3588
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3589
      org.apache.thrift.protocol.TField field;
471 rajveer 3590
      iprot.readStructBegin();
3591
      while (true)
3592
      {
3593
        field = iprot.readFieldBegin();
3430 rajveer 3594
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3595
          break;
3596
        }
3430 rajveer 3597
        switch (field.id) {
3598
          case 1: // ITEM_ID
3599
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3600
              this.itemId = iprot.readI64();
3601
              setItemIdIsSet(true);
3602
            } else { 
3603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3604
            }
3605
            break;
3606
          case 2: // DESTINATION_PIN
3607
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3608
              this.destination_pin = iprot.readString();
3609
            } else { 
3610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3611
            }
3612
            break;
4630 mandeep.dh 3613
          case 3: // TYPE
3614
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3615
              this.type = DeliveryType.findByValue(iprot.readI32());
3616
            } else { 
3617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3618
            }
3619
            break;
3430 rajveer 3620
          default:
3621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3622
        }
3430 rajveer 3623
        iprot.readFieldEnd();
471 rajveer 3624
      }
3625
      iprot.readStructEnd();
3626
      validate();
3627
    }
3628
 
3430 rajveer 3629
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3630
      validate();
3631
 
3632
      oprot.writeStructBegin(STRUCT_DESC);
3633
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3634
      oprot.writeI64(this.itemId);
3635
      oprot.writeFieldEnd();
3636
      if (this.destination_pin != null) {
3637
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3638
        oprot.writeString(this.destination_pin);
3639
        oprot.writeFieldEnd();
3640
      }
4630 mandeep.dh 3641
      if (this.type != null) {
3642
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3643
        oprot.writeI32(this.type.getValue());
3644
        oprot.writeFieldEnd();
3645
      }
471 rajveer 3646
      oprot.writeFieldStop();
3647
      oprot.writeStructEnd();
3648
    }
3649
 
3650
    @Override
3651
    public String toString() {
3652
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3653
      boolean first = true;
3654
 
3655
      sb.append("itemId:");
3656
      sb.append(this.itemId);
3657
      first = false;
3658
      if (!first) sb.append(", ");
3659
      sb.append("destination_pin:");
3660
      if (this.destination_pin == null) {
3661
        sb.append("null");
3662
      } else {
3663
        sb.append(this.destination_pin);
3664
      }
3665
      first = false;
4630 mandeep.dh 3666
      if (!first) sb.append(", ");
3667
      sb.append("type:");
3668
      if (this.type == null) {
3669
        sb.append("null");
3670
      } else {
3671
        sb.append(this.type);
3672
      }
3673
      first = false;
471 rajveer 3674
      sb.append(")");
3675
      return sb.toString();
3676
    }
3677
 
3430 rajveer 3678
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3679
      // check for required fields
3680
    }
3681
 
3430 rajveer 3682
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3683
      try {
3684
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3685
      } catch (org.apache.thrift.TException te) {
3686
        throw new java.io.IOException(te);
3687
      }
3688
    }
3689
 
3690
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3691
      try {
3692
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3693
      } catch (org.apache.thrift.TException te) {
3694
        throw new java.io.IOException(te);
3695
      }
3696
    }
3697
 
471 rajveer 3698
  }
3699
 
3430 rajveer 3700
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3701
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3702
 
3430 rajveer 3703
    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);
3704
    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 3705
 
3430 rajveer 3706
    private LogisticsInfo success; // required
3707
    private LogisticsServiceException se; // required
471 rajveer 3708
 
3709
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3710
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3711
      SUCCESS((short)0, "success"),
3712
      SE((short)1, "se");
3713
 
3714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3715
 
3716
      static {
3717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3718
          byName.put(field.getFieldName(), field);
3719
        }
3720
      }
3721
 
3722
      /**
3723
       * Find the _Fields constant that matches fieldId, or null if its not found.
3724
       */
3725
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3726
        switch(fieldId) {
3727
          case 0: // SUCCESS
3728
            return SUCCESS;
3729
          case 1: // SE
3730
            return SE;
3731
          default:
3732
            return null;
3733
        }
471 rajveer 3734
      }
3735
 
3736
      /**
3737
       * Find the _Fields constant that matches fieldId, throwing an exception
3738
       * if it is not found.
3739
       */
3740
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3741
        _Fields fields = findByThriftId(fieldId);
3742
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3743
        return fields;
3744
      }
3745
 
3746
      /**
3747
       * Find the _Fields constant that matches name, or null if its not found.
3748
       */
3749
      public static _Fields findByName(String name) {
3750
        return byName.get(name);
3751
      }
3752
 
3753
      private final short _thriftId;
3754
      private final String _fieldName;
3755
 
3756
      _Fields(short thriftId, String fieldName) {
3757
        _thriftId = thriftId;
3758
        _fieldName = fieldName;
3759
      }
3760
 
3761
      public short getThriftFieldId() {
3762
        return _thriftId;
3763
      }
3764
 
3765
      public String getFieldName() {
3766
        return _fieldName;
3767
      }
3768
    }
3769
 
3770
    // isset id assignments
3771
 
3430 rajveer 3772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3773
    static {
3430 rajveer 3774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3775
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3776
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3777
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3778
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3779
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3780
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3781
    }
3782
 
3783
    public getLogisticsEstimation_result() {
3784
    }
3785
 
3786
    public getLogisticsEstimation_result(
648 chandransh 3787
      LogisticsInfo success,
471 rajveer 3788
      LogisticsServiceException se)
3789
    {
3790
      this();
3791
      this.success = success;
3792
      this.se = se;
3793
    }
3794
 
3795
    /**
3796
     * Performs a deep copy on <i>other</i>.
3797
     */
3798
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3799
      if (other.isSetSuccess()) {
648 chandransh 3800
        this.success = new LogisticsInfo(other.success);
471 rajveer 3801
      }
3802
      if (other.isSetSe()) {
3803
        this.se = new LogisticsServiceException(other.se);
3804
      }
3805
    }
3806
 
3807
    public getLogisticsEstimation_result deepCopy() {
3808
      return new getLogisticsEstimation_result(this);
3809
    }
3810
 
3430 rajveer 3811
    @Override
3812
    public void clear() {
3813
      this.success = null;
3814
      this.se = null;
471 rajveer 3815
    }
3816
 
648 chandransh 3817
    public LogisticsInfo getSuccess() {
471 rajveer 3818
      return this.success;
3819
    }
3820
 
3430 rajveer 3821
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3822
      this.success = success;
3823
    }
3824
 
3825
    public void unsetSuccess() {
3826
      this.success = null;
3827
    }
3828
 
3430 rajveer 3829
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3830
    public boolean isSetSuccess() {
3831
      return this.success != null;
3832
    }
3833
 
3834
    public void setSuccessIsSet(boolean value) {
3835
      if (!value) {
3836
        this.success = null;
3837
      }
3838
    }
3839
 
3840
    public LogisticsServiceException getSe() {
3841
      return this.se;
3842
    }
3843
 
3430 rajveer 3844
    public void setSe(LogisticsServiceException se) {
471 rajveer 3845
      this.se = se;
3846
    }
3847
 
3848
    public void unsetSe() {
3849
      this.se = null;
3850
    }
3851
 
3430 rajveer 3852
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3853
    public boolean isSetSe() {
3854
      return this.se != null;
3855
    }
3856
 
3857
    public void setSeIsSet(boolean value) {
3858
      if (!value) {
3859
        this.se = null;
3860
      }
3861
    }
3862
 
3863
    public void setFieldValue(_Fields field, Object value) {
3864
      switch (field) {
3865
      case SUCCESS:
3866
        if (value == null) {
3867
          unsetSuccess();
3868
        } else {
648 chandransh 3869
          setSuccess((LogisticsInfo)value);
471 rajveer 3870
        }
3871
        break;
3872
 
3873
      case SE:
3874
        if (value == null) {
3875
          unsetSe();
3876
        } else {
3877
          setSe((LogisticsServiceException)value);
3878
        }
3879
        break;
3880
 
3881
      }
3882
    }
3883
 
3884
    public Object getFieldValue(_Fields field) {
3885
      switch (field) {
3886
      case SUCCESS:
3887
        return getSuccess();
3888
 
3889
      case SE:
3890
        return getSe();
3891
 
3892
      }
3893
      throw new IllegalStateException();
3894
    }
3895
 
3430 rajveer 3896
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3897
    public boolean isSet(_Fields field) {
3898
      if (field == null) {
3899
        throw new IllegalArgumentException();
3900
      }
471 rajveer 3901
 
3902
      switch (field) {
3903
      case SUCCESS:
3904
        return isSetSuccess();
3905
      case SE:
3906
        return isSetSe();
3907
      }
3908
      throw new IllegalStateException();
3909
    }
3910
 
3911
    @Override
3912
    public boolean equals(Object that) {
3913
      if (that == null)
3914
        return false;
3915
      if (that instanceof getLogisticsEstimation_result)
3916
        return this.equals((getLogisticsEstimation_result)that);
3917
      return false;
3918
    }
3919
 
3920
    public boolean equals(getLogisticsEstimation_result that) {
3921
      if (that == null)
3922
        return false;
3923
 
3924
      boolean this_present_success = true && this.isSetSuccess();
3925
      boolean that_present_success = true && that.isSetSuccess();
3926
      if (this_present_success || that_present_success) {
3927
        if (!(this_present_success && that_present_success))
3928
          return false;
3929
        if (!this.success.equals(that.success))
3930
          return false;
3931
      }
3932
 
3933
      boolean this_present_se = true && this.isSetSe();
3934
      boolean that_present_se = true && that.isSetSe();
3935
      if (this_present_se || that_present_se) {
3936
        if (!(this_present_se && that_present_se))
3937
          return false;
3938
        if (!this.se.equals(that.se))
3939
          return false;
3940
      }
3941
 
3942
      return true;
3943
    }
3944
 
3945
    @Override
3946
    public int hashCode() {
3947
      return 0;
3948
    }
3949
 
3950
    public int compareTo(getLogisticsEstimation_result other) {
3951
      if (!getClass().equals(other.getClass())) {
3952
        return getClass().getName().compareTo(other.getClass().getName());
3953
      }
3954
 
3955
      int lastComparison = 0;
3956
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3957
 
3430 rajveer 3958
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3959
      if (lastComparison != 0) {
3960
        return lastComparison;
3961
      }
3430 rajveer 3962
      if (isSetSuccess()) {
3963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3964
        if (lastComparison != 0) {
3965
          return lastComparison;
3966
        }
471 rajveer 3967
      }
3430 rajveer 3968
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3969
      if (lastComparison != 0) {
3970
        return lastComparison;
3971
      }
3430 rajveer 3972
      if (isSetSe()) {
3973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3974
        if (lastComparison != 0) {
3975
          return lastComparison;
3976
        }
471 rajveer 3977
      }
3978
      return 0;
3979
    }
3980
 
3430 rajveer 3981
    public _Fields fieldForId(int fieldId) {
3982
      return _Fields.findByThriftId(fieldId);
3983
    }
3984
 
3985
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3986
      org.apache.thrift.protocol.TField field;
471 rajveer 3987
      iprot.readStructBegin();
3988
      while (true)
3989
      {
3990
        field = iprot.readFieldBegin();
3430 rajveer 3991
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3992
          break;
3993
        }
3430 rajveer 3994
        switch (field.id) {
3995
          case 0: // SUCCESS
3996
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3997
              this.success = new LogisticsInfo();
3998
              this.success.read(iprot);
3999
            } else { 
4000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4001
            }
4002
            break;
4003
          case 1: // SE
4004
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4005
              this.se = new LogisticsServiceException();
4006
              this.se.read(iprot);
4007
            } else { 
4008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4009
            }
4010
            break;
4011
          default:
4012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4013
        }
3430 rajveer 4014
        iprot.readFieldEnd();
471 rajveer 4015
      }
4016
      iprot.readStructEnd();
4017
      validate();
4018
    }
4019
 
3430 rajveer 4020
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4021
      oprot.writeStructBegin(STRUCT_DESC);
4022
 
4023
      if (this.isSetSuccess()) {
4024
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4025
        this.success.write(oprot);
4026
        oprot.writeFieldEnd();
4027
      } else if (this.isSetSe()) {
4028
        oprot.writeFieldBegin(SE_FIELD_DESC);
4029
        this.se.write(oprot);
4030
        oprot.writeFieldEnd();
4031
      }
4032
      oprot.writeFieldStop();
4033
      oprot.writeStructEnd();
4034
    }
4035
 
4036
    @Override
4037
    public String toString() {
4038
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4039
      boolean first = true;
4040
 
4041
      sb.append("success:");
4042
      if (this.success == null) {
4043
        sb.append("null");
4044
      } else {
4045
        sb.append(this.success);
4046
      }
4047
      first = false;
4048
      if (!first) sb.append(", ");
4049
      sb.append("se:");
4050
      if (this.se == null) {
4051
        sb.append("null");
4052
      } else {
4053
        sb.append(this.se);
4054
      }
4055
      first = false;
4056
      sb.append(")");
4057
      return sb.toString();
4058
    }
4059
 
3430 rajveer 4060
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4061
      // check for required fields
4062
    }
4063
 
3430 rajveer 4064
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4065
      try {
4066
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4067
      } catch (org.apache.thrift.TException te) {
4068
        throw new java.io.IOException(te);
4069
      }
4070
    }
4071
 
4072
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4073
      try {
4074
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4075
      } catch (org.apache.thrift.TException te) {
4076
        throw new java.io.IOException(te);
4077
      }
4078
    }
4079
 
471 rajveer 4080
  }
4081
 
7256 rajveer 4082
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4083
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4084
 
4085
    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);
4086
    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);
4087
    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);
4088
 
4089
    private long itemId; // required
4090
    private String destination_pin; // required
4091
    private DeliveryType type; // required
4092
 
4093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4095
      ITEM_ID((short)1, "itemId"),
4096
      DESTINATION_PIN((short)2, "destination_pin"),
4097
      /**
4098
       * 
4099
       * @see DeliveryType
4100
       */
4101
      TYPE((short)3, "type");
4102
 
4103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4104
 
4105
      static {
4106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4107
          byName.put(field.getFieldName(), field);
4108
        }
4109
      }
4110
 
4111
      /**
4112
       * Find the _Fields constant that matches fieldId, or null if its not found.
4113
       */
4114
      public static _Fields findByThriftId(int fieldId) {
4115
        switch(fieldId) {
4116
          case 1: // ITEM_ID
4117
            return ITEM_ID;
4118
          case 2: // DESTINATION_PIN
4119
            return DESTINATION_PIN;
4120
          case 3: // TYPE
4121
            return TYPE;
4122
          default:
4123
            return null;
4124
        }
4125
      }
4126
 
4127
      /**
4128
       * Find the _Fields constant that matches fieldId, throwing an exception
4129
       * if it is not found.
4130
       */
4131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4132
        _Fields fields = findByThriftId(fieldId);
4133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4134
        return fields;
4135
      }
4136
 
4137
      /**
4138
       * Find the _Fields constant that matches name, or null if its not found.
4139
       */
4140
      public static _Fields findByName(String name) {
4141
        return byName.get(name);
4142
      }
4143
 
4144
      private final short _thriftId;
4145
      private final String _fieldName;
4146
 
4147
      _Fields(short thriftId, String fieldName) {
4148
        _thriftId = thriftId;
4149
        _fieldName = fieldName;
4150
      }
4151
 
4152
      public short getThriftFieldId() {
4153
        return _thriftId;
4154
      }
4155
 
4156
      public String getFieldName() {
4157
        return _fieldName;
4158
      }
4159
    }
4160
 
4161
    // isset id assignments
4162
    private static final int __ITEMID_ISSET_ID = 0;
4163
    private BitSet __isset_bit_vector = new BitSet(1);
4164
 
4165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4166
    static {
4167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4168
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4170
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4172
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4173
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4174
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4175
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4176
    }
4177
 
4178
    public getLogisticsEstimationForStore_args() {
4179
    }
4180
 
4181
    public getLogisticsEstimationForStore_args(
4182
      long itemId,
4183
      String destination_pin,
4184
      DeliveryType type)
4185
    {
4186
      this();
4187
      this.itemId = itemId;
4188
      setItemIdIsSet(true);
4189
      this.destination_pin = destination_pin;
4190
      this.type = type;
4191
    }
4192
 
4193
    /**
4194
     * Performs a deep copy on <i>other</i>.
4195
     */
4196
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4197
      __isset_bit_vector.clear();
4198
      __isset_bit_vector.or(other.__isset_bit_vector);
4199
      this.itemId = other.itemId;
4200
      if (other.isSetDestination_pin()) {
4201
        this.destination_pin = other.destination_pin;
4202
      }
4203
      if (other.isSetType()) {
4204
        this.type = other.type;
4205
      }
4206
    }
4207
 
4208
    public getLogisticsEstimationForStore_args deepCopy() {
4209
      return new getLogisticsEstimationForStore_args(this);
4210
    }
4211
 
4212
    @Override
4213
    public void clear() {
4214
      setItemIdIsSet(false);
4215
      this.itemId = 0;
4216
      this.destination_pin = null;
4217
      this.type = null;
4218
    }
4219
 
4220
    public long getItemId() {
4221
      return this.itemId;
4222
    }
4223
 
4224
    public void setItemId(long itemId) {
4225
      this.itemId = itemId;
4226
      setItemIdIsSet(true);
4227
    }
4228
 
4229
    public void unsetItemId() {
4230
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4231
    }
4232
 
4233
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4234
    public boolean isSetItemId() {
4235
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4236
    }
4237
 
4238
    public void setItemIdIsSet(boolean value) {
4239
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4240
    }
4241
 
4242
    public String getDestination_pin() {
4243
      return this.destination_pin;
4244
    }
4245
 
4246
    public void setDestination_pin(String destination_pin) {
4247
      this.destination_pin = destination_pin;
4248
    }
4249
 
4250
    public void unsetDestination_pin() {
4251
      this.destination_pin = null;
4252
    }
4253
 
4254
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4255
    public boolean isSetDestination_pin() {
4256
      return this.destination_pin != null;
4257
    }
4258
 
4259
    public void setDestination_pinIsSet(boolean value) {
4260
      if (!value) {
4261
        this.destination_pin = null;
4262
      }
4263
    }
4264
 
4265
    /**
4266
     * 
4267
     * @see DeliveryType
4268
     */
4269
    public DeliveryType getType() {
4270
      return this.type;
4271
    }
4272
 
4273
    /**
4274
     * 
4275
     * @see DeliveryType
4276
     */
4277
    public void setType(DeliveryType type) {
4278
      this.type = type;
4279
    }
4280
 
4281
    public void unsetType() {
4282
      this.type = null;
4283
    }
4284
 
4285
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4286
    public boolean isSetType() {
4287
      return this.type != null;
4288
    }
4289
 
4290
    public void setTypeIsSet(boolean value) {
4291
      if (!value) {
4292
        this.type = null;
4293
      }
4294
    }
4295
 
4296
    public void setFieldValue(_Fields field, Object value) {
4297
      switch (field) {
4298
      case ITEM_ID:
4299
        if (value == null) {
4300
          unsetItemId();
4301
        } else {
4302
          setItemId((Long)value);
4303
        }
4304
        break;
4305
 
4306
      case DESTINATION_PIN:
4307
        if (value == null) {
4308
          unsetDestination_pin();
4309
        } else {
4310
          setDestination_pin((String)value);
4311
        }
4312
        break;
4313
 
4314
      case TYPE:
4315
        if (value == null) {
4316
          unsetType();
4317
        } else {
4318
          setType((DeliveryType)value);
4319
        }
4320
        break;
4321
 
4322
      }
4323
    }
4324
 
4325
    public Object getFieldValue(_Fields field) {
4326
      switch (field) {
4327
      case ITEM_ID:
4328
        return Long.valueOf(getItemId());
4329
 
4330
      case DESTINATION_PIN:
4331
        return getDestination_pin();
4332
 
4333
      case TYPE:
4334
        return getType();
4335
 
4336
      }
4337
      throw new IllegalStateException();
4338
    }
4339
 
4340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4341
    public boolean isSet(_Fields field) {
4342
      if (field == null) {
4343
        throw new IllegalArgumentException();
4344
      }
4345
 
4346
      switch (field) {
4347
      case ITEM_ID:
4348
        return isSetItemId();
4349
      case DESTINATION_PIN:
4350
        return isSetDestination_pin();
4351
      case TYPE:
4352
        return isSetType();
4353
      }
4354
      throw new IllegalStateException();
4355
    }
4356
 
4357
    @Override
4358
    public boolean equals(Object that) {
4359
      if (that == null)
4360
        return false;
4361
      if (that instanceof getLogisticsEstimationForStore_args)
4362
        return this.equals((getLogisticsEstimationForStore_args)that);
4363
      return false;
4364
    }
4365
 
4366
    public boolean equals(getLogisticsEstimationForStore_args that) {
4367
      if (that == null)
4368
        return false;
4369
 
4370
      boolean this_present_itemId = true;
4371
      boolean that_present_itemId = true;
4372
      if (this_present_itemId || that_present_itemId) {
4373
        if (!(this_present_itemId && that_present_itemId))
4374
          return false;
4375
        if (this.itemId != that.itemId)
4376
          return false;
4377
      }
4378
 
4379
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4380
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4381
      if (this_present_destination_pin || that_present_destination_pin) {
4382
        if (!(this_present_destination_pin && that_present_destination_pin))
4383
          return false;
4384
        if (!this.destination_pin.equals(that.destination_pin))
4385
          return false;
4386
      }
4387
 
4388
      boolean this_present_type = true && this.isSetType();
4389
      boolean that_present_type = true && that.isSetType();
4390
      if (this_present_type || that_present_type) {
4391
        if (!(this_present_type && that_present_type))
4392
          return false;
4393
        if (!this.type.equals(that.type))
4394
          return false;
4395
      }
4396
 
4397
      return true;
4398
    }
4399
 
4400
    @Override
4401
    public int hashCode() {
4402
      return 0;
4403
    }
4404
 
4405
    public int compareTo(getLogisticsEstimationForStore_args other) {
4406
      if (!getClass().equals(other.getClass())) {
4407
        return getClass().getName().compareTo(other.getClass().getName());
4408
      }
4409
 
4410
      int lastComparison = 0;
4411
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4412
 
4413
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4414
      if (lastComparison != 0) {
4415
        return lastComparison;
4416
      }
4417
      if (isSetItemId()) {
4418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4419
        if (lastComparison != 0) {
4420
          return lastComparison;
4421
        }
4422
      }
4423
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4424
      if (lastComparison != 0) {
4425
        return lastComparison;
4426
      }
4427
      if (isSetDestination_pin()) {
4428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4429
        if (lastComparison != 0) {
4430
          return lastComparison;
4431
        }
4432
      }
4433
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4434
      if (lastComparison != 0) {
4435
        return lastComparison;
4436
      }
4437
      if (isSetType()) {
4438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4439
        if (lastComparison != 0) {
4440
          return lastComparison;
4441
        }
4442
      }
4443
      return 0;
4444
    }
4445
 
4446
    public _Fields fieldForId(int fieldId) {
4447
      return _Fields.findByThriftId(fieldId);
4448
    }
4449
 
4450
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4451
      org.apache.thrift.protocol.TField field;
4452
      iprot.readStructBegin();
4453
      while (true)
4454
      {
4455
        field = iprot.readFieldBegin();
4456
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4457
          break;
4458
        }
4459
        switch (field.id) {
4460
          case 1: // ITEM_ID
4461
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4462
              this.itemId = iprot.readI64();
4463
              setItemIdIsSet(true);
4464
            } else { 
4465
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4466
            }
4467
            break;
4468
          case 2: // DESTINATION_PIN
4469
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4470
              this.destination_pin = iprot.readString();
4471
            } else { 
4472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4473
            }
4474
            break;
4475
          case 3: // TYPE
4476
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4477
              this.type = DeliveryType.findByValue(iprot.readI32());
4478
            } else { 
4479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4480
            }
4481
            break;
4482
          default:
4483
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4484
        }
4485
        iprot.readFieldEnd();
4486
      }
4487
      iprot.readStructEnd();
4488
      validate();
4489
    }
4490
 
4491
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4492
      validate();
4493
 
4494
      oprot.writeStructBegin(STRUCT_DESC);
4495
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4496
      oprot.writeI64(this.itemId);
4497
      oprot.writeFieldEnd();
4498
      if (this.destination_pin != null) {
4499
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4500
        oprot.writeString(this.destination_pin);
4501
        oprot.writeFieldEnd();
4502
      }
4503
      if (this.type != null) {
4504
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4505
        oprot.writeI32(this.type.getValue());
4506
        oprot.writeFieldEnd();
4507
      }
4508
      oprot.writeFieldStop();
4509
      oprot.writeStructEnd();
4510
    }
4511
 
4512
    @Override
4513
    public String toString() {
4514
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4515
      boolean first = true;
4516
 
4517
      sb.append("itemId:");
4518
      sb.append(this.itemId);
4519
      first = false;
4520
      if (!first) sb.append(", ");
4521
      sb.append("destination_pin:");
4522
      if (this.destination_pin == null) {
4523
        sb.append("null");
4524
      } else {
4525
        sb.append(this.destination_pin);
4526
      }
4527
      first = false;
4528
      if (!first) sb.append(", ");
4529
      sb.append("type:");
4530
      if (this.type == null) {
4531
        sb.append("null");
4532
      } else {
4533
        sb.append(this.type);
4534
      }
4535
      first = false;
4536
      sb.append(")");
4537
      return sb.toString();
4538
    }
4539
 
4540
    public void validate() throws org.apache.thrift.TException {
4541
      // check for required fields
4542
    }
4543
 
4544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4545
      try {
4546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4547
      } catch (org.apache.thrift.TException te) {
4548
        throw new java.io.IOException(te);
4549
      }
4550
    }
4551
 
4552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4553
      try {
4554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4555
        __isset_bit_vector = new BitSet(1);
4556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4557
      } catch (org.apache.thrift.TException te) {
4558
        throw new java.io.IOException(te);
4559
      }
4560
    }
4561
 
4562
  }
4563
 
4564
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4566
 
4567
    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);
4568
    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);
4569
 
4570
    private LogisticsInfo success; // required
4571
    private LogisticsServiceException se; // required
4572
 
4573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4575
      SUCCESS((short)0, "success"),
4576
      SE((short)1, "se");
4577
 
4578
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4579
 
4580
      static {
4581
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4582
          byName.put(field.getFieldName(), field);
4583
        }
4584
      }
4585
 
4586
      /**
4587
       * Find the _Fields constant that matches fieldId, or null if its not found.
4588
       */
4589
      public static _Fields findByThriftId(int fieldId) {
4590
        switch(fieldId) {
4591
          case 0: // SUCCESS
4592
            return SUCCESS;
4593
          case 1: // SE
4594
            return SE;
4595
          default:
4596
            return null;
4597
        }
4598
      }
4599
 
4600
      /**
4601
       * Find the _Fields constant that matches fieldId, throwing an exception
4602
       * if it is not found.
4603
       */
4604
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4605
        _Fields fields = findByThriftId(fieldId);
4606
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4607
        return fields;
4608
      }
4609
 
4610
      /**
4611
       * Find the _Fields constant that matches name, or null if its not found.
4612
       */
4613
      public static _Fields findByName(String name) {
4614
        return byName.get(name);
4615
      }
4616
 
4617
      private final short _thriftId;
4618
      private final String _fieldName;
4619
 
4620
      _Fields(short thriftId, String fieldName) {
4621
        _thriftId = thriftId;
4622
        _fieldName = fieldName;
4623
      }
4624
 
4625
      public short getThriftFieldId() {
4626
        return _thriftId;
4627
      }
4628
 
4629
      public String getFieldName() {
4630
        return _fieldName;
4631
      }
4632
    }
4633
 
4634
    // isset id assignments
4635
 
4636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4637
    static {
4638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4639
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4640
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4641
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4643
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4644
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4645
    }
4646
 
4647
    public getLogisticsEstimationForStore_result() {
4648
    }
4649
 
4650
    public getLogisticsEstimationForStore_result(
4651
      LogisticsInfo success,
4652
      LogisticsServiceException se)
4653
    {
4654
      this();
4655
      this.success = success;
4656
      this.se = se;
4657
    }
4658
 
4659
    /**
4660
     * Performs a deep copy on <i>other</i>.
4661
     */
4662
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4663
      if (other.isSetSuccess()) {
4664
        this.success = new LogisticsInfo(other.success);
4665
      }
4666
      if (other.isSetSe()) {
4667
        this.se = new LogisticsServiceException(other.se);
4668
      }
4669
    }
4670
 
4671
    public getLogisticsEstimationForStore_result deepCopy() {
4672
      return new getLogisticsEstimationForStore_result(this);
4673
    }
4674
 
4675
    @Override
4676
    public void clear() {
4677
      this.success = null;
4678
      this.se = null;
4679
    }
4680
 
4681
    public LogisticsInfo getSuccess() {
4682
      return this.success;
4683
    }
4684
 
4685
    public void setSuccess(LogisticsInfo success) {
4686
      this.success = success;
4687
    }
4688
 
4689
    public void unsetSuccess() {
4690
      this.success = null;
4691
    }
4692
 
4693
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4694
    public boolean isSetSuccess() {
4695
      return this.success != null;
4696
    }
4697
 
4698
    public void setSuccessIsSet(boolean value) {
4699
      if (!value) {
4700
        this.success = null;
4701
      }
4702
    }
4703
 
4704
    public LogisticsServiceException getSe() {
4705
      return this.se;
4706
    }
4707
 
4708
    public void setSe(LogisticsServiceException se) {
4709
      this.se = se;
4710
    }
4711
 
4712
    public void unsetSe() {
4713
      this.se = null;
4714
    }
4715
 
4716
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4717
    public boolean isSetSe() {
4718
      return this.se != null;
4719
    }
4720
 
4721
    public void setSeIsSet(boolean value) {
4722
      if (!value) {
4723
        this.se = null;
4724
      }
4725
    }
4726
 
4727
    public void setFieldValue(_Fields field, Object value) {
4728
      switch (field) {
4729
      case SUCCESS:
4730
        if (value == null) {
4731
          unsetSuccess();
4732
        } else {
4733
          setSuccess((LogisticsInfo)value);
4734
        }
4735
        break;
4736
 
4737
      case SE:
4738
        if (value == null) {
4739
          unsetSe();
4740
        } else {
4741
          setSe((LogisticsServiceException)value);
4742
        }
4743
        break;
4744
 
4745
      }
4746
    }
4747
 
4748
    public Object getFieldValue(_Fields field) {
4749
      switch (field) {
4750
      case SUCCESS:
4751
        return getSuccess();
4752
 
4753
      case SE:
4754
        return getSe();
4755
 
4756
      }
4757
      throw new IllegalStateException();
4758
    }
4759
 
4760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4761
    public boolean isSet(_Fields field) {
4762
      if (field == null) {
4763
        throw new IllegalArgumentException();
4764
      }
4765
 
4766
      switch (field) {
4767
      case SUCCESS:
4768
        return isSetSuccess();
4769
      case SE:
4770
        return isSetSe();
4771
      }
4772
      throw new IllegalStateException();
4773
    }
4774
 
4775
    @Override
4776
    public boolean equals(Object that) {
4777
      if (that == null)
4778
        return false;
4779
      if (that instanceof getLogisticsEstimationForStore_result)
4780
        return this.equals((getLogisticsEstimationForStore_result)that);
4781
      return false;
4782
    }
4783
 
4784
    public boolean equals(getLogisticsEstimationForStore_result that) {
4785
      if (that == null)
4786
        return false;
4787
 
4788
      boolean this_present_success = true && this.isSetSuccess();
4789
      boolean that_present_success = true && that.isSetSuccess();
4790
      if (this_present_success || that_present_success) {
4791
        if (!(this_present_success && that_present_success))
4792
          return false;
4793
        if (!this.success.equals(that.success))
4794
          return false;
4795
      }
4796
 
4797
      boolean this_present_se = true && this.isSetSe();
4798
      boolean that_present_se = true && that.isSetSe();
4799
      if (this_present_se || that_present_se) {
4800
        if (!(this_present_se && that_present_se))
4801
          return false;
4802
        if (!this.se.equals(that.se))
4803
          return false;
4804
      }
4805
 
4806
      return true;
4807
    }
4808
 
4809
    @Override
4810
    public int hashCode() {
4811
      return 0;
4812
    }
4813
 
4814
    public int compareTo(getLogisticsEstimationForStore_result other) {
4815
      if (!getClass().equals(other.getClass())) {
4816
        return getClass().getName().compareTo(other.getClass().getName());
4817
      }
4818
 
4819
      int lastComparison = 0;
4820
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
4821
 
4822
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4823
      if (lastComparison != 0) {
4824
        return lastComparison;
4825
      }
4826
      if (isSetSuccess()) {
4827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4828
        if (lastComparison != 0) {
4829
          return lastComparison;
4830
        }
4831
      }
4832
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4833
      if (lastComparison != 0) {
4834
        return lastComparison;
4835
      }
4836
      if (isSetSe()) {
4837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4838
        if (lastComparison != 0) {
4839
          return lastComparison;
4840
        }
4841
      }
4842
      return 0;
4843
    }
4844
 
4845
    public _Fields fieldForId(int fieldId) {
4846
      return _Fields.findByThriftId(fieldId);
4847
    }
4848
 
4849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4850
      org.apache.thrift.protocol.TField field;
4851
      iprot.readStructBegin();
4852
      while (true)
4853
      {
4854
        field = iprot.readFieldBegin();
4855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4856
          break;
4857
        }
4858
        switch (field.id) {
4859
          case 0: // SUCCESS
4860
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4861
              this.success = new LogisticsInfo();
4862
              this.success.read(iprot);
4863
            } else { 
4864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4865
            }
4866
            break;
4867
          case 1: // SE
4868
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4869
              this.se = new LogisticsServiceException();
4870
              this.se.read(iprot);
4871
            } else { 
4872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4873
            }
4874
            break;
4875
          default:
4876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4877
        }
4878
        iprot.readFieldEnd();
4879
      }
4880
      iprot.readStructEnd();
4881
      validate();
4882
    }
4883
 
4884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4885
      oprot.writeStructBegin(STRUCT_DESC);
4886
 
4887
      if (this.isSetSuccess()) {
4888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4889
        this.success.write(oprot);
4890
        oprot.writeFieldEnd();
4891
      } else if (this.isSetSe()) {
4892
        oprot.writeFieldBegin(SE_FIELD_DESC);
4893
        this.se.write(oprot);
4894
        oprot.writeFieldEnd();
4895
      }
4896
      oprot.writeFieldStop();
4897
      oprot.writeStructEnd();
4898
    }
4899
 
4900
    @Override
4901
    public String toString() {
4902
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
4903
      boolean first = true;
4904
 
4905
      sb.append("success:");
4906
      if (this.success == null) {
4907
        sb.append("null");
4908
      } else {
4909
        sb.append(this.success);
4910
      }
4911
      first = false;
4912
      if (!first) sb.append(", ");
4913
      sb.append("se:");
4914
      if (this.se == null) {
4915
        sb.append("null");
4916
      } else {
4917
        sb.append(this.se);
4918
      }
4919
      first = false;
4920
      sb.append(")");
4921
      return sb.toString();
4922
    }
4923
 
4924
    public void validate() throws org.apache.thrift.TException {
4925
      // check for required fields
4926
    }
4927
 
4928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4929
      try {
4930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4931
      } catch (org.apache.thrift.TException te) {
4932
        throw new java.io.IOException(te);
4933
      }
4934
    }
4935
 
4936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4937
      try {
4938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4939
      } catch (org.apache.thrift.TException te) {
4940
        throw new java.io.IOException(te);
4941
      }
4942
    }
4943
 
4944
  }
4945
 
3430 rajveer 4946
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
4947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 4948
 
3430 rajveer 4949
    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);
4950
    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);
4951
    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 4952
    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 4953
 
3430 rajveer 4954
    private String destination_pincode; // required
4955
    private long item_id; // required
4956
    private DeliveryType type; // required
5766 rajveer 4957
    private PickUpType pickUp; // required
471 rajveer 4958
 
4959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4961
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 4962
      ITEM_ID((short)2, "item_id"),
4963
      /**
4964
       * 
4965
       * @see DeliveryType
4966
       */
5766 rajveer 4967
      TYPE((short)3, "type"),
4968
      /**
4969
       * 
4970
       * @see PickUpType
4971
       */
4972
      PICK_UP((short)4, "pickUp");
471 rajveer 4973
 
4974
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4975
 
4976
      static {
4977
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4978
          byName.put(field.getFieldName(), field);
4979
        }
4980
      }
4981
 
4982
      /**
4983
       * Find the _Fields constant that matches fieldId, or null if its not found.
4984
       */
4985
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4986
        switch(fieldId) {
4987
          case 1: // DESTINATION_PINCODE
4988
            return DESTINATION_PINCODE;
4989
          case 2: // ITEM_ID
4990
            return ITEM_ID;
4991
          case 3: // TYPE
4992
            return TYPE;
5766 rajveer 4993
          case 4: // PICK_UP
4994
            return PICK_UP;
3430 rajveer 4995
          default:
4996
            return null;
4997
        }
471 rajveer 4998
      }
4999
 
5000
      /**
5001
       * Find the _Fields constant that matches fieldId, throwing an exception
5002
       * if it is not found.
5003
       */
5004
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5005
        _Fields fields = findByThriftId(fieldId);
5006
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5007
        return fields;
5008
      }
5009
 
5010
      /**
5011
       * Find the _Fields constant that matches name, or null if its not found.
5012
       */
5013
      public static _Fields findByName(String name) {
5014
        return byName.get(name);
5015
      }
5016
 
5017
      private final short _thriftId;
5018
      private final String _fieldName;
5019
 
5020
      _Fields(short thriftId, String fieldName) {
5021
        _thriftId = thriftId;
5022
        _fieldName = fieldName;
5023
      }
5024
 
5025
      public short getThriftFieldId() {
5026
        return _thriftId;
5027
      }
5028
 
5029
      public String getFieldName() {
5030
        return _fieldName;
5031
      }
5032
    }
5033
 
5034
    // isset id assignments
715 rajveer 5035
    private static final int __ITEM_ID_ISSET_ID = 0;
5036
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5037
 
3430 rajveer 5038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5039
    static {
3430 rajveer 5040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5041
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5042
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5043
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5044
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5045
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5046
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5047
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5048
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5049
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5050
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5051
    }
5052
 
648 chandransh 5053
    public getLogisticsInfo_args() {
477 rajveer 5054
    }
5055
 
648 chandransh 5056
    public getLogisticsInfo_args(
5057
      String destination_pincode,
3044 chandransh 5058
      long item_id,
5766 rajveer 5059
      DeliveryType type,
5060
      PickUpType pickUp)
477 rajveer 5061
    {
5062
      this();
648 chandransh 5063
      this.destination_pincode = destination_pincode;
5064
      this.item_id = item_id;
715 rajveer 5065
      setItem_idIsSet(true);
3044 chandransh 5066
      this.type = type;
5766 rajveer 5067
      this.pickUp = pickUp;
477 rajveer 5068
    }
5069
 
5070
    /**
5071
     * Performs a deep copy on <i>other</i>.
5072
     */
648 chandransh 5073
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5074
      __isset_bit_vector.clear();
5075
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5076
      if (other.isSetDestination_pincode()) {
5077
        this.destination_pincode = other.destination_pincode;
477 rajveer 5078
      }
715 rajveer 5079
      this.item_id = other.item_id;
3044 chandransh 5080
      if (other.isSetType()) {
5081
        this.type = other.type;
5082
      }
5766 rajveer 5083
      if (other.isSetPickUp()) {
5084
        this.pickUp = other.pickUp;
5085
      }
477 rajveer 5086
    }
5087
 
648 chandransh 5088
    public getLogisticsInfo_args deepCopy() {
5089
      return new getLogisticsInfo_args(this);
477 rajveer 5090
    }
5091
 
3430 rajveer 5092
    @Override
5093
    public void clear() {
5094
      this.destination_pincode = null;
5095
      setItem_idIsSet(false);
5096
      this.item_id = 0;
5097
      this.type = null;
5766 rajveer 5098
      this.pickUp = null;
477 rajveer 5099
    }
5100
 
648 chandransh 5101
    public String getDestination_pincode() {
5102
      return this.destination_pincode;
477 rajveer 5103
    }
5104
 
3430 rajveer 5105
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5106
      this.destination_pincode = destination_pincode;
477 rajveer 5107
    }
5108
 
648 chandransh 5109
    public void unsetDestination_pincode() {
5110
      this.destination_pincode = null;
477 rajveer 5111
    }
5112
 
3430 rajveer 5113
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5114
    public boolean isSetDestination_pincode() {
5115
      return this.destination_pincode != null;
477 rajveer 5116
    }
5117
 
648 chandransh 5118
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5119
      if (!value) {
648 chandransh 5120
        this.destination_pincode = null;
477 rajveer 5121
      }
5122
    }
5123
 
715 rajveer 5124
    public long getItem_id() {
648 chandransh 5125
      return this.item_id;
477 rajveer 5126
    }
5127
 
3430 rajveer 5128
    public void setItem_id(long item_id) {
648 chandransh 5129
      this.item_id = item_id;
715 rajveer 5130
      setItem_idIsSet(true);
477 rajveer 5131
    }
5132
 
648 chandransh 5133
    public void unsetItem_id() {
715 rajveer 5134
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5135
    }
5136
 
3430 rajveer 5137
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5138
    public boolean isSetItem_id() {
715 rajveer 5139
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5140
    }
5141
 
648 chandransh 5142
    public void setItem_idIsSet(boolean value) {
715 rajveer 5143
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5144
    }
5145
 
3044 chandransh 5146
    /**
5147
     * 
5148
     * @see DeliveryType
5149
     */
5150
    public DeliveryType getType() {
5151
      return this.type;
5152
    }
5153
 
5154
    /**
5155
     * 
5156
     * @see DeliveryType
5157
     */
3430 rajveer 5158
    public void setType(DeliveryType type) {
3044 chandransh 5159
      this.type = type;
5160
    }
5161
 
5162
    public void unsetType() {
5163
      this.type = null;
5164
    }
5165
 
3430 rajveer 5166
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5167
    public boolean isSetType() {
5168
      return this.type != null;
5169
    }
5170
 
5171
    public void setTypeIsSet(boolean value) {
5172
      if (!value) {
5173
        this.type = null;
5174
      }
5175
    }
5176
 
5766 rajveer 5177
    /**
5178
     * 
5179
     * @see PickUpType
5180
     */
5181
    public PickUpType getPickUp() {
5182
      return this.pickUp;
5183
    }
5184
 
5185
    /**
5186
     * 
5187
     * @see PickUpType
5188
     */
5189
    public void setPickUp(PickUpType pickUp) {
5190
      this.pickUp = pickUp;
5191
    }
5192
 
5193
    public void unsetPickUp() {
5194
      this.pickUp = null;
5195
    }
5196
 
5197
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5198
    public boolean isSetPickUp() {
5199
      return this.pickUp != null;
5200
    }
5201
 
5202
    public void setPickUpIsSet(boolean value) {
5203
      if (!value) {
5204
        this.pickUp = null;
5205
      }
5206
    }
5207
 
477 rajveer 5208
    public void setFieldValue(_Fields field, Object value) {
5209
      switch (field) {
648 chandransh 5210
      case DESTINATION_PINCODE:
477 rajveer 5211
        if (value == null) {
648 chandransh 5212
          unsetDestination_pincode();
477 rajveer 5213
        } else {
648 chandransh 5214
          setDestination_pincode((String)value);
477 rajveer 5215
        }
5216
        break;
5217
 
648 chandransh 5218
      case ITEM_ID:
477 rajveer 5219
        if (value == null) {
648 chandransh 5220
          unsetItem_id();
477 rajveer 5221
        } else {
715 rajveer 5222
          setItem_id((Long)value);
477 rajveer 5223
        }
5224
        break;
5225
 
3044 chandransh 5226
      case TYPE:
5227
        if (value == null) {
5228
          unsetType();
5229
        } else {
5230
          setType((DeliveryType)value);
5231
        }
5232
        break;
5233
 
5766 rajveer 5234
      case PICK_UP:
5235
        if (value == null) {
5236
          unsetPickUp();
5237
        } else {
5238
          setPickUp((PickUpType)value);
5239
        }
5240
        break;
5241
 
477 rajveer 5242
      }
5243
    }
5244
 
5245
    public Object getFieldValue(_Fields field) {
5246
      switch (field) {
648 chandransh 5247
      case DESTINATION_PINCODE:
5248
        return getDestination_pincode();
477 rajveer 5249
 
648 chandransh 5250
      case ITEM_ID:
3430 rajveer 5251
        return Long.valueOf(getItem_id());
477 rajveer 5252
 
3044 chandransh 5253
      case TYPE:
5254
        return getType();
5255
 
5766 rajveer 5256
      case PICK_UP:
5257
        return getPickUp();
5258
 
477 rajveer 5259
      }
5260
      throw new IllegalStateException();
5261
    }
5262
 
3430 rajveer 5263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5264
    public boolean isSet(_Fields field) {
5265
      if (field == null) {
5266
        throw new IllegalArgumentException();
5267
      }
477 rajveer 5268
 
5269
      switch (field) {
648 chandransh 5270
      case DESTINATION_PINCODE:
5271
        return isSetDestination_pincode();
5272
      case ITEM_ID:
5273
        return isSetItem_id();
3044 chandransh 5274
      case TYPE:
5275
        return isSetType();
5766 rajveer 5276
      case PICK_UP:
5277
        return isSetPickUp();
477 rajveer 5278
      }
5279
      throw new IllegalStateException();
5280
    }
5281
 
5282
    @Override
5283
    public boolean equals(Object that) {
5284
      if (that == null)
5285
        return false;
648 chandransh 5286
      if (that instanceof getLogisticsInfo_args)
5287
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5288
      return false;
5289
    }
5290
 
648 chandransh 5291
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5292
      if (that == null)
5293
        return false;
5294
 
648 chandransh 5295
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5296
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5297
      if (this_present_destination_pincode || that_present_destination_pincode) {
5298
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5299
          return false;
648 chandransh 5300
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5301
          return false;
5302
      }
5303
 
715 rajveer 5304
      boolean this_present_item_id = true;
5305
      boolean that_present_item_id = true;
648 chandransh 5306
      if (this_present_item_id || that_present_item_id) {
5307
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5308
          return false;
715 rajveer 5309
        if (this.item_id != that.item_id)
477 rajveer 5310
          return false;
5311
      }
5312
 
3044 chandransh 5313
      boolean this_present_type = true && this.isSetType();
5314
      boolean that_present_type = true && that.isSetType();
5315
      if (this_present_type || that_present_type) {
5316
        if (!(this_present_type && that_present_type))
5317
          return false;
5318
        if (!this.type.equals(that.type))
5319
          return false;
5320
      }
5321
 
5766 rajveer 5322
      boolean this_present_pickUp = true && this.isSetPickUp();
5323
      boolean that_present_pickUp = true && that.isSetPickUp();
5324
      if (this_present_pickUp || that_present_pickUp) {
5325
        if (!(this_present_pickUp && that_present_pickUp))
5326
          return false;
5327
        if (!this.pickUp.equals(that.pickUp))
5328
          return false;
5329
      }
5330
 
477 rajveer 5331
      return true;
5332
    }
5333
 
5334
    @Override
5335
    public int hashCode() {
5336
      return 0;
5337
    }
5338
 
648 chandransh 5339
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5340
      if (!getClass().equals(other.getClass())) {
5341
        return getClass().getName().compareTo(other.getClass().getName());
5342
      }
5343
 
5344
      int lastComparison = 0;
648 chandransh 5345
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5346
 
3430 rajveer 5347
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5348
      if (lastComparison != 0) {
5349
        return lastComparison;
5350
      }
3430 rajveer 5351
      if (isSetDestination_pincode()) {
5352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5353
        if (lastComparison != 0) {
5354
          return lastComparison;
5355
        }
477 rajveer 5356
      }
3430 rajveer 5357
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5358
      if (lastComparison != 0) {
5359
        return lastComparison;
5360
      }
3430 rajveer 5361
      if (isSetItem_id()) {
5362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5363
        if (lastComparison != 0) {
5364
          return lastComparison;
5365
        }
477 rajveer 5366
      }
3430 rajveer 5367
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5368
      if (lastComparison != 0) {
5369
        return lastComparison;
5370
      }
3430 rajveer 5371
      if (isSetType()) {
5372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5373
        if (lastComparison != 0) {
5374
          return lastComparison;
5375
        }
3044 chandransh 5376
      }
5766 rajveer 5377
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5378
      if (lastComparison != 0) {
5379
        return lastComparison;
5380
      }
5381
      if (isSetPickUp()) {
5382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5383
        if (lastComparison != 0) {
5384
          return lastComparison;
5385
        }
5386
      }
477 rajveer 5387
      return 0;
5388
    }
5389
 
3430 rajveer 5390
    public _Fields fieldForId(int fieldId) {
5391
      return _Fields.findByThriftId(fieldId);
5392
    }
5393
 
5394
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5395
      org.apache.thrift.protocol.TField field;
477 rajveer 5396
      iprot.readStructBegin();
5397
      while (true)
5398
      {
5399
        field = iprot.readFieldBegin();
3430 rajveer 5400
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5401
          break;
5402
        }
3430 rajveer 5403
        switch (field.id) {
5404
          case 1: // DESTINATION_PINCODE
5405
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5406
              this.destination_pincode = iprot.readString();
5407
            } else { 
5408
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5409
            }
5410
            break;
5411
          case 2: // ITEM_ID
5412
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5413
              this.item_id = iprot.readI64();
5414
              setItem_idIsSet(true);
5415
            } else { 
5416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5417
            }
5418
            break;
5419
          case 3: // TYPE
5420
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5421
              this.type = DeliveryType.findByValue(iprot.readI32());
5422
            } else { 
5423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5424
            }
5425
            break;
5766 rajveer 5426
          case 4: // PICK_UP
5427
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5428
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5429
            } else { 
5430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5431
            }
5432
            break;
3430 rajveer 5433
          default:
5434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5435
        }
3430 rajveer 5436
        iprot.readFieldEnd();
477 rajveer 5437
      }
5438
      iprot.readStructEnd();
5439
      validate();
5440
    }
5441
 
3430 rajveer 5442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5443
      validate();
5444
 
5445
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5446
      if (this.destination_pincode != null) {
5447
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5448
        oprot.writeString(this.destination_pincode);
477 rajveer 5449
        oprot.writeFieldEnd();
5450
      }
715 rajveer 5451
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5452
      oprot.writeI64(this.item_id);
5453
      oprot.writeFieldEnd();
3044 chandransh 5454
      if (this.type != null) {
5455
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5456
        oprot.writeI32(this.type.getValue());
5457
        oprot.writeFieldEnd();
5458
      }
5766 rajveer 5459
      if (this.pickUp != null) {
5460
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5461
        oprot.writeI32(this.pickUp.getValue());
5462
        oprot.writeFieldEnd();
5463
      }
477 rajveer 5464
      oprot.writeFieldStop();
5465
      oprot.writeStructEnd();
5466
    }
5467
 
5468
    @Override
5469
    public String toString() {
648 chandransh 5470
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5471
      boolean first = true;
5472
 
648 chandransh 5473
      sb.append("destination_pincode:");
5474
      if (this.destination_pincode == null) {
477 rajveer 5475
        sb.append("null");
5476
      } else {
648 chandransh 5477
        sb.append(this.destination_pincode);
477 rajveer 5478
      }
5479
      first = false;
5480
      if (!first) sb.append(", ");
648 chandransh 5481
      sb.append("item_id:");
715 rajveer 5482
      sb.append(this.item_id);
477 rajveer 5483
      first = false;
3044 chandransh 5484
      if (!first) sb.append(", ");
5485
      sb.append("type:");
5486
      if (this.type == null) {
5487
        sb.append("null");
5488
      } else {
5489
        sb.append(this.type);
5490
      }
5491
      first = false;
5766 rajveer 5492
      if (!first) sb.append(", ");
5493
      sb.append("pickUp:");
5494
      if (this.pickUp == null) {
5495
        sb.append("null");
5496
      } else {
5497
        sb.append(this.pickUp);
5498
      }
5499
      first = false;
477 rajveer 5500
      sb.append(")");
5501
      return sb.toString();
5502
    }
5503
 
3430 rajveer 5504
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5505
      // check for required fields
5506
    }
5507
 
3430 rajveer 5508
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5509
      try {
5510
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5511
      } catch (org.apache.thrift.TException te) {
5512
        throw new java.io.IOException(te);
5513
      }
5514
    }
5515
 
5516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5517
      try {
5518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5519
      } catch (org.apache.thrift.TException te) {
5520
        throw new java.io.IOException(te);
5521
      }
5522
    }
5523
 
477 rajveer 5524
  }
5525
 
3430 rajveer 5526
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5527
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5528
 
3430 rajveer 5529
    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);
5530
    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 5531
 
3430 rajveer 5532
    private LogisticsInfo success; // required
5533
    private LogisticsServiceException se; // required
477 rajveer 5534
 
5535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5537
      SUCCESS((short)0, "success"),
5538
      SE((short)1, "se");
477 rajveer 5539
 
5540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5541
 
5542
      static {
5543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5544
          byName.put(field.getFieldName(), field);
5545
        }
5546
      }
5547
 
5548
      /**
5549
       * Find the _Fields constant that matches fieldId, or null if its not found.
5550
       */
5551
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5552
        switch(fieldId) {
5553
          case 0: // SUCCESS
5554
            return SUCCESS;
5555
          case 1: // SE
5556
            return SE;
5557
          default:
5558
            return null;
5559
        }
477 rajveer 5560
      }
5561
 
5562
      /**
5563
       * Find the _Fields constant that matches fieldId, throwing an exception
5564
       * if it is not found.
5565
       */
5566
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5567
        _Fields fields = findByThriftId(fieldId);
5568
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5569
        return fields;
5570
      }
5571
 
5572
      /**
5573
       * Find the _Fields constant that matches name, or null if its not found.
5574
       */
5575
      public static _Fields findByName(String name) {
5576
        return byName.get(name);
5577
      }
5578
 
5579
      private final short _thriftId;
5580
      private final String _fieldName;
5581
 
5582
      _Fields(short thriftId, String fieldName) {
5583
        _thriftId = thriftId;
5584
        _fieldName = fieldName;
5585
      }
5586
 
5587
      public short getThriftFieldId() {
5588
        return _thriftId;
5589
      }
5590
 
5591
      public String getFieldName() {
5592
        return _fieldName;
5593
      }
5594
    }
5595
 
412 ashish 5596
    // isset id assignments
5597
 
3430 rajveer 5598
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5599
    static {
3430 rajveer 5600
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5601
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5602
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5603
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5607
    }
5608
 
648 chandransh 5609
    public getLogisticsInfo_result() {
412 ashish 5610
    }
5611
 
648 chandransh 5612
    public getLogisticsInfo_result(
5613
      LogisticsInfo success,
5614
      LogisticsServiceException se)
412 ashish 5615
    {
5616
      this();
648 chandransh 5617
      this.success = success;
5618
      this.se = se;
412 ashish 5619
    }
5620
 
5621
    /**
5622
     * Performs a deep copy on <i>other</i>.
5623
     */
648 chandransh 5624
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5625
      if (other.isSetSuccess()) {
5626
        this.success = new LogisticsInfo(other.success);
412 ashish 5627
      }
648 chandransh 5628
      if (other.isSetSe()) {
5629
        this.se = new LogisticsServiceException(other.se);
5630
      }
412 ashish 5631
    }
5632
 
648 chandransh 5633
    public getLogisticsInfo_result deepCopy() {
5634
      return new getLogisticsInfo_result(this);
412 ashish 5635
    }
5636
 
3430 rajveer 5637
    @Override
5638
    public void clear() {
5639
      this.success = null;
5640
      this.se = null;
412 ashish 5641
    }
5642
 
648 chandransh 5643
    public LogisticsInfo getSuccess() {
5644
      return this.success;
412 ashish 5645
    }
5646
 
3430 rajveer 5647
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5648
      this.success = success;
412 ashish 5649
    }
5650
 
648 chandransh 5651
    public void unsetSuccess() {
5652
      this.success = null;
412 ashish 5653
    }
5654
 
3430 rajveer 5655
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5656
    public boolean isSetSuccess() {
5657
      return this.success != null;
412 ashish 5658
    }
5659
 
648 chandransh 5660
    public void setSuccessIsSet(boolean value) {
412 ashish 5661
      if (!value) {
648 chandransh 5662
        this.success = null;
412 ashish 5663
      }
5664
    }
5665
 
648 chandransh 5666
    public LogisticsServiceException getSe() {
5667
      return this.se;
412 ashish 5668
    }
5669
 
3430 rajveer 5670
    public void setSe(LogisticsServiceException se) {
648 chandransh 5671
      this.se = se;
412 ashish 5672
    }
5673
 
648 chandransh 5674
    public void unsetSe() {
5675
      this.se = null;
412 ashish 5676
    }
5677
 
3430 rajveer 5678
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5679
    public boolean isSetSe() {
5680
      return this.se != null;
412 ashish 5681
    }
5682
 
648 chandransh 5683
    public void setSeIsSet(boolean value) {
5684
      if (!value) {
5685
        this.se = null;
5686
      }
412 ashish 5687
    }
5688
 
5689
    public void setFieldValue(_Fields field, Object value) {
5690
      switch (field) {
648 chandransh 5691
      case SUCCESS:
412 ashish 5692
        if (value == null) {
648 chandransh 5693
          unsetSuccess();
412 ashish 5694
        } else {
648 chandransh 5695
          setSuccess((LogisticsInfo)value);
412 ashish 5696
        }
5697
        break;
5698
 
648 chandransh 5699
      case SE:
412 ashish 5700
        if (value == null) {
648 chandransh 5701
          unsetSe();
412 ashish 5702
        } else {
648 chandransh 5703
          setSe((LogisticsServiceException)value);
412 ashish 5704
        }
5705
        break;
5706
 
5707
      }
5708
    }
5709
 
5710
    public Object getFieldValue(_Fields field) {
5711
      switch (field) {
648 chandransh 5712
      case SUCCESS:
5713
        return getSuccess();
412 ashish 5714
 
648 chandransh 5715
      case SE:
5716
        return getSe();
412 ashish 5717
 
5718
      }
5719
      throw new IllegalStateException();
5720
    }
5721
 
3430 rajveer 5722
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5723
    public boolean isSet(_Fields field) {
5724
      if (field == null) {
5725
        throw new IllegalArgumentException();
5726
      }
412 ashish 5727
 
5728
      switch (field) {
648 chandransh 5729
      case SUCCESS:
5730
        return isSetSuccess();
5731
      case SE:
5732
        return isSetSe();
412 ashish 5733
      }
5734
      throw new IllegalStateException();
5735
    }
5736
 
5737
    @Override
5738
    public boolean equals(Object that) {
5739
      if (that == null)
5740
        return false;
648 chandransh 5741
      if (that instanceof getLogisticsInfo_result)
5742
        return this.equals((getLogisticsInfo_result)that);
412 ashish 5743
      return false;
5744
    }
5745
 
648 chandransh 5746
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 5747
      if (that == null)
5748
        return false;
5749
 
648 chandransh 5750
      boolean this_present_success = true && this.isSetSuccess();
5751
      boolean that_present_success = true && that.isSetSuccess();
5752
      if (this_present_success || that_present_success) {
5753
        if (!(this_present_success && that_present_success))
412 ashish 5754
          return false;
648 chandransh 5755
        if (!this.success.equals(that.success))
412 ashish 5756
          return false;
5757
      }
5758
 
648 chandransh 5759
      boolean this_present_se = true && this.isSetSe();
5760
      boolean that_present_se = true && that.isSetSe();
5761
      if (this_present_se || that_present_se) {
5762
        if (!(this_present_se && that_present_se))
412 ashish 5763
          return false;
648 chandransh 5764
        if (!this.se.equals(that.se))
412 ashish 5765
          return false;
5766
      }
5767
 
5768
      return true;
5769
    }
5770
 
5771
    @Override
5772
    public int hashCode() {
5773
      return 0;
5774
    }
5775
 
648 chandransh 5776
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 5777
      if (!getClass().equals(other.getClass())) {
5778
        return getClass().getName().compareTo(other.getClass().getName());
5779
      }
5780
 
5781
      int lastComparison = 0;
648 chandransh 5782
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 5783
 
3430 rajveer 5784
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5785
      if (lastComparison != 0) {
5786
        return lastComparison;
5787
      }
3430 rajveer 5788
      if (isSetSuccess()) {
5789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5790
        if (lastComparison != 0) {
5791
          return lastComparison;
5792
        }
412 ashish 5793
      }
3430 rajveer 5794
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5795
      if (lastComparison != 0) {
5796
        return lastComparison;
5797
      }
3430 rajveer 5798
      if (isSetSe()) {
5799
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5800
        if (lastComparison != 0) {
5801
          return lastComparison;
5802
        }
412 ashish 5803
      }
5804
      return 0;
5805
    }
5806
 
3430 rajveer 5807
    public _Fields fieldForId(int fieldId) {
5808
      return _Fields.findByThriftId(fieldId);
5809
    }
5810
 
5811
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5812
      org.apache.thrift.protocol.TField field;
412 ashish 5813
      iprot.readStructBegin();
5814
      while (true)
5815
      {
5816
        field = iprot.readFieldBegin();
3430 rajveer 5817
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5818
          break;
5819
        }
3430 rajveer 5820
        switch (field.id) {
5821
          case 0: // SUCCESS
5822
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5823
              this.success = new LogisticsInfo();
5824
              this.success.read(iprot);
5825
            } else { 
5826
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5827
            }
5828
            break;
5829
          case 1: // SE
5830
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5831
              this.se = new LogisticsServiceException();
5832
              this.se.read(iprot);
5833
            } else { 
5834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5835
            }
5836
            break;
5837
          default:
5838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5839
        }
3430 rajveer 5840
        iprot.readFieldEnd();
412 ashish 5841
      }
5842
      iprot.readStructEnd();
5843
      validate();
5844
    }
5845
 
3430 rajveer 5846
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 5847
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 5848
 
648 chandransh 5849
      if (this.isSetSuccess()) {
5850
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5851
        this.success.write(oprot);
412 ashish 5852
        oprot.writeFieldEnd();
648 chandransh 5853
      } else if (this.isSetSe()) {
5854
        oprot.writeFieldBegin(SE_FIELD_DESC);
5855
        this.se.write(oprot);
5856
        oprot.writeFieldEnd();
412 ashish 5857
      }
5858
      oprot.writeFieldStop();
5859
      oprot.writeStructEnd();
5860
    }
5861
 
5862
    @Override
5863
    public String toString() {
648 chandransh 5864
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 5865
      boolean first = true;
5866
 
648 chandransh 5867
      sb.append("success:");
5868
      if (this.success == null) {
412 ashish 5869
        sb.append("null");
5870
      } else {
648 chandransh 5871
        sb.append(this.success);
412 ashish 5872
      }
5873
      first = false;
5874
      if (!first) sb.append(", ");
648 chandransh 5875
      sb.append("se:");
5876
      if (this.se == null) {
5877
        sb.append("null");
5878
      } else {
5879
        sb.append(this.se);
5880
      }
412 ashish 5881
      first = false;
5882
      sb.append(")");
5883
      return sb.toString();
5884
    }
5885
 
3430 rajveer 5886
    public void validate() throws org.apache.thrift.TException {
412 ashish 5887
      // check for required fields
5888
    }
5889
 
3430 rajveer 5890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5891
      try {
5892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5893
      } catch (org.apache.thrift.TException te) {
5894
        throw new java.io.IOException(te);
5895
      }
5896
    }
5897
 
5898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5899
      try {
5900
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5901
      } catch (org.apache.thrift.TException te) {
5902
        throw new java.io.IOException(te);
5903
      }
5904
    }
5905
 
412 ashish 5906
  }
5907
 
3430 rajveer 5908
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
5909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 5910
 
3430 rajveer 5911
    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 5912
    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 5913
 
3430 rajveer 5914
    private long providerId; // required
5247 rajveer 5915
    private DeliveryType type; // required
412 ashish 5916
 
5917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 5919
      PROVIDER_ID((short)1, "providerId"),
5920
      /**
5921
       * 
5922
       * @see DeliveryType
5923
       */
5924
      TYPE((short)-1, "type");
412 ashish 5925
 
5926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5927
 
5928
      static {
5929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5930
          byName.put(field.getFieldName(), field);
5931
        }
5932
      }
5933
 
5934
      /**
5935
       * Find the _Fields constant that matches fieldId, or null if its not found.
5936
       */
5937
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5938
        switch(fieldId) {
5939
          case 1: // PROVIDER_ID
5940
            return PROVIDER_ID;
5247 rajveer 5941
          case -1: // TYPE
5942
            return TYPE;
3430 rajveer 5943
          default:
5944
            return null;
5945
        }
412 ashish 5946
      }
5947
 
5948
      /**
5949
       * Find the _Fields constant that matches fieldId, throwing an exception
5950
       * if it is not found.
5951
       */
5952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5953
        _Fields fields = findByThriftId(fieldId);
5954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5955
        return fields;
5956
      }
5957
 
5958
      /**
5959
       * Find the _Fields constant that matches name, or null if its not found.
5960
       */
5961
      public static _Fields findByName(String name) {
5962
        return byName.get(name);
5963
      }
5964
 
5965
      private final short _thriftId;
5966
      private final String _fieldName;
5967
 
5968
      _Fields(short thriftId, String fieldName) {
5969
        _thriftId = thriftId;
5970
        _fieldName = fieldName;
5971
      }
5972
 
5973
      public short getThriftFieldId() {
5974
        return _thriftId;
5975
      }
5976
 
5977
      public String getFieldName() {
5978
        return _fieldName;
5979
      }
5980
    }
5981
 
5982
    // isset id assignments
648 chandransh 5983
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 5984
    private BitSet __isset_bit_vector = new BitSet(1);
5985
 
3430 rajveer 5986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5987
    static {
3430 rajveer 5988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5989
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 5991
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5992
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 5993
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5994
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 5995
    }
5996
 
5997
    public getEmptyAWB_args() {
5998
    }
5999
 
6000
    public getEmptyAWB_args(
5247 rajveer 6001
      long providerId,
6002
      DeliveryType type)
412 ashish 6003
    {
6004
      this();
648 chandransh 6005
      this.providerId = providerId;
6006
      setProviderIdIsSet(true);
5247 rajveer 6007
      this.type = type;
412 ashish 6008
    }
6009
 
6010
    /**
6011
     * Performs a deep copy on <i>other</i>.
6012
     */
6013
    public getEmptyAWB_args(getEmptyAWB_args other) {
6014
      __isset_bit_vector.clear();
6015
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6016
      this.providerId = other.providerId;
5247 rajveer 6017
      if (other.isSetType()) {
6018
        this.type = other.type;
6019
      }
412 ashish 6020
    }
6021
 
6022
    public getEmptyAWB_args deepCopy() {
6023
      return new getEmptyAWB_args(this);
6024
    }
6025
 
3430 rajveer 6026
    @Override
6027
    public void clear() {
6028
      setProviderIdIsSet(false);
6029
      this.providerId = 0;
5247 rajveer 6030
      this.type = null;
412 ashish 6031
    }
6032
 
648 chandransh 6033
    public long getProviderId() {
6034
      return this.providerId;
412 ashish 6035
    }
6036
 
3430 rajveer 6037
    public void setProviderId(long providerId) {
648 chandransh 6038
      this.providerId = providerId;
6039
      setProviderIdIsSet(true);
412 ashish 6040
    }
6041
 
648 chandransh 6042
    public void unsetProviderId() {
6043
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6044
    }
6045
 
3430 rajveer 6046
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6047
    public boolean isSetProviderId() {
6048
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6049
    }
6050
 
648 chandransh 6051
    public void setProviderIdIsSet(boolean value) {
6052
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6053
    }
6054
 
5247 rajveer 6055
    /**
6056
     * 
6057
     * @see DeliveryType
6058
     */
6059
    public DeliveryType getType() {
6060
      return this.type;
6061
    }
6062
 
6063
    /**
6064
     * 
6065
     * @see DeliveryType
6066
     */
6067
    public void setType(DeliveryType type) {
6068
      this.type = type;
6069
    }
6070
 
6071
    public void unsetType() {
6072
      this.type = null;
6073
    }
6074
 
6075
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6076
    public boolean isSetType() {
6077
      return this.type != null;
6078
    }
6079
 
6080
    public void setTypeIsSet(boolean value) {
6081
      if (!value) {
6082
        this.type = null;
6083
      }
6084
    }
6085
 
412 ashish 6086
    public void setFieldValue(_Fields field, Object value) {
6087
      switch (field) {
6088
      case PROVIDER_ID:
6089
        if (value == null) {
648 chandransh 6090
          unsetProviderId();
412 ashish 6091
        } else {
648 chandransh 6092
          setProviderId((Long)value);
412 ashish 6093
        }
6094
        break;
6095
 
5247 rajveer 6096
      case TYPE:
6097
        if (value == null) {
6098
          unsetType();
6099
        } else {
6100
          setType((DeliveryType)value);
6101
        }
6102
        break;
6103
 
412 ashish 6104
      }
6105
    }
6106
 
6107
    public Object getFieldValue(_Fields field) {
6108
      switch (field) {
6109
      case PROVIDER_ID:
3430 rajveer 6110
        return Long.valueOf(getProviderId());
412 ashish 6111
 
5247 rajveer 6112
      case TYPE:
6113
        return getType();
6114
 
412 ashish 6115
      }
6116
      throw new IllegalStateException();
6117
    }
6118
 
3430 rajveer 6119
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6120
    public boolean isSet(_Fields field) {
6121
      if (field == null) {
6122
        throw new IllegalArgumentException();
6123
      }
412 ashish 6124
 
6125
      switch (field) {
6126
      case PROVIDER_ID:
648 chandransh 6127
        return isSetProviderId();
5247 rajveer 6128
      case TYPE:
6129
        return isSetType();
412 ashish 6130
      }
6131
      throw new IllegalStateException();
6132
    }
6133
 
6134
    @Override
6135
    public boolean equals(Object that) {
6136
      if (that == null)
6137
        return false;
6138
      if (that instanceof getEmptyAWB_args)
6139
        return this.equals((getEmptyAWB_args)that);
6140
      return false;
6141
    }
6142
 
6143
    public boolean equals(getEmptyAWB_args that) {
6144
      if (that == null)
6145
        return false;
6146
 
648 chandransh 6147
      boolean this_present_providerId = true;
6148
      boolean that_present_providerId = true;
6149
      if (this_present_providerId || that_present_providerId) {
6150
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6151
          return false;
648 chandransh 6152
        if (this.providerId != that.providerId)
412 ashish 6153
          return false;
6154
      }
6155
 
5247 rajveer 6156
      boolean this_present_type = true && this.isSetType();
6157
      boolean that_present_type = true && that.isSetType();
6158
      if (this_present_type || that_present_type) {
6159
        if (!(this_present_type && that_present_type))
6160
          return false;
6161
        if (!this.type.equals(that.type))
6162
          return false;
6163
      }
6164
 
412 ashish 6165
      return true;
6166
    }
6167
 
6168
    @Override
6169
    public int hashCode() {
6170
      return 0;
6171
    }
6172
 
6173
    public int compareTo(getEmptyAWB_args other) {
6174
      if (!getClass().equals(other.getClass())) {
6175
        return getClass().getName().compareTo(other.getClass().getName());
6176
      }
6177
 
6178
      int lastComparison = 0;
6179
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6180
 
3430 rajveer 6181
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6182
      if (lastComparison != 0) {
6183
        return lastComparison;
6184
      }
3430 rajveer 6185
      if (isSetProviderId()) {
6186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6187
        if (lastComparison != 0) {
6188
          return lastComparison;
6189
        }
412 ashish 6190
      }
5247 rajveer 6191
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6192
      if (lastComparison != 0) {
6193
        return lastComparison;
6194
      }
6195
      if (isSetType()) {
6196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6197
        if (lastComparison != 0) {
6198
          return lastComparison;
6199
        }
6200
      }
412 ashish 6201
      return 0;
6202
    }
6203
 
3430 rajveer 6204
    public _Fields fieldForId(int fieldId) {
6205
      return _Fields.findByThriftId(fieldId);
6206
    }
6207
 
6208
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6209
      org.apache.thrift.protocol.TField field;
412 ashish 6210
      iprot.readStructBegin();
6211
      while (true)
6212
      {
6213
        field = iprot.readFieldBegin();
3430 rajveer 6214
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6215
          break;
6216
        }
3430 rajveer 6217
        switch (field.id) {
6218
          case 1: // PROVIDER_ID
6219
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6220
              this.providerId = iprot.readI64();
6221
              setProviderIdIsSet(true);
6222
            } else { 
6223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6224
            }
6225
            break;
5247 rajveer 6226
          case -1: // TYPE
6227
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6228
              this.type = DeliveryType.findByValue(iprot.readI32());
6229
            } else { 
6230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6231
            }
6232
            break;
3430 rajveer 6233
          default:
6234
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6235
        }
3430 rajveer 6236
        iprot.readFieldEnd();
412 ashish 6237
      }
6238
      iprot.readStructEnd();
6239
      validate();
6240
    }
6241
 
3430 rajveer 6242
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6243
      validate();
6244
 
6245
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6246
      if (this.type != null) {
6247
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6248
        oprot.writeI32(this.type.getValue());
6249
        oprot.writeFieldEnd();
6250
      }
412 ashish 6251
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6252
      oprot.writeI64(this.providerId);
412 ashish 6253
      oprot.writeFieldEnd();
6254
      oprot.writeFieldStop();
6255
      oprot.writeStructEnd();
6256
    }
6257
 
6258
    @Override
6259
    public String toString() {
6260
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6261
      boolean first = true;
6262
 
648 chandransh 6263
      sb.append("providerId:");
6264
      sb.append(this.providerId);
412 ashish 6265
      first = false;
5247 rajveer 6266
      if (!first) sb.append(", ");
6267
      sb.append("type:");
6268
      if (this.type == null) {
6269
        sb.append("null");
6270
      } else {
6271
        sb.append(this.type);
6272
      }
6273
      first = false;
412 ashish 6274
      sb.append(")");
6275
      return sb.toString();
6276
    }
6277
 
3430 rajveer 6278
    public void validate() throws org.apache.thrift.TException {
412 ashish 6279
      // check for required fields
6280
    }
6281
 
3430 rajveer 6282
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6283
      try {
6284
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6285
      } catch (org.apache.thrift.TException te) {
6286
        throw new java.io.IOException(te);
6287
      }
6288
    }
6289
 
6290
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6291
      try {
6292
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6293
        __isset_bit_vector = new BitSet(1);
6294
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6295
      } catch (org.apache.thrift.TException te) {
6296
        throw new java.io.IOException(te);
6297
      }
6298
    }
6299
 
412 ashish 6300
  }
6301
 
3430 rajveer 6302
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6303
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6304
 
3430 rajveer 6305
    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);
6306
    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 6307
 
3430 rajveer 6308
    private String success; // required
6309
    private LogisticsServiceException se; // required
412 ashish 6310
 
6311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6312
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6313
      SUCCESS((short)0, "success"),
6314
      SE((short)1, "se");
412 ashish 6315
 
6316
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6317
 
6318
      static {
6319
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6320
          byName.put(field.getFieldName(), field);
6321
        }
6322
      }
6323
 
6324
      /**
6325
       * Find the _Fields constant that matches fieldId, or null if its not found.
6326
       */
6327
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6328
        switch(fieldId) {
6329
          case 0: // SUCCESS
6330
            return SUCCESS;
6331
          case 1: // SE
6332
            return SE;
6333
          default:
6334
            return null;
6335
        }
412 ashish 6336
      }
6337
 
6338
      /**
6339
       * Find the _Fields constant that matches fieldId, throwing an exception
6340
       * if it is not found.
6341
       */
6342
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6343
        _Fields fields = findByThriftId(fieldId);
6344
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6345
        return fields;
6346
      }
6347
 
6348
      /**
6349
       * Find the _Fields constant that matches name, or null if its not found.
6350
       */
6351
      public static _Fields findByName(String name) {
6352
        return byName.get(name);
6353
      }
6354
 
6355
      private final short _thriftId;
6356
      private final String _fieldName;
6357
 
6358
      _Fields(short thriftId, String fieldName) {
6359
        _thriftId = thriftId;
6360
        _fieldName = fieldName;
6361
      }
6362
 
6363
      public short getThriftFieldId() {
6364
        return _thriftId;
6365
      }
6366
 
6367
      public String getFieldName() {
6368
        return _fieldName;
6369
      }
6370
    }
6371
 
6372
    // isset id assignments
6373
 
3430 rajveer 6374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6375
    static {
3430 rajveer 6376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6377
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6379
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6383
    }
6384
 
6385
    public getEmptyAWB_result() {
6386
    }
6387
 
6388
    public getEmptyAWB_result(
648 chandransh 6389
      String success,
6390
      LogisticsServiceException se)
412 ashish 6391
    {
6392
      this();
6393
      this.success = success;
648 chandransh 6394
      this.se = se;
412 ashish 6395
    }
6396
 
6397
    /**
6398
     * Performs a deep copy on <i>other</i>.
6399
     */
6400
    public getEmptyAWB_result(getEmptyAWB_result other) {
6401
      if (other.isSetSuccess()) {
6402
        this.success = other.success;
6403
      }
648 chandransh 6404
      if (other.isSetSe()) {
6405
        this.se = new LogisticsServiceException(other.se);
6406
      }
412 ashish 6407
    }
6408
 
6409
    public getEmptyAWB_result deepCopy() {
6410
      return new getEmptyAWB_result(this);
6411
    }
6412
 
3430 rajveer 6413
    @Override
6414
    public void clear() {
6415
      this.success = null;
6416
      this.se = null;
412 ashish 6417
    }
6418
 
6419
    public String getSuccess() {
6420
      return this.success;
6421
    }
6422
 
3430 rajveer 6423
    public void setSuccess(String success) {
412 ashish 6424
      this.success = success;
6425
    }
6426
 
6427
    public void unsetSuccess() {
6428
      this.success = null;
6429
    }
6430
 
3430 rajveer 6431
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6432
    public boolean isSetSuccess() {
6433
      return this.success != null;
6434
    }
6435
 
6436
    public void setSuccessIsSet(boolean value) {
6437
      if (!value) {
6438
        this.success = null;
6439
      }
6440
    }
6441
 
648 chandransh 6442
    public LogisticsServiceException getSe() {
6443
      return this.se;
412 ashish 6444
    }
6445
 
3430 rajveer 6446
    public void setSe(LogisticsServiceException se) {
648 chandransh 6447
      this.se = se;
412 ashish 6448
    }
6449
 
648 chandransh 6450
    public void unsetSe() {
6451
      this.se = null;
412 ashish 6452
    }
6453
 
3430 rajveer 6454
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6455
    public boolean isSetSe() {
6456
      return this.se != null;
412 ashish 6457
    }
6458
 
648 chandransh 6459
    public void setSeIsSet(boolean value) {
412 ashish 6460
      if (!value) {
648 chandransh 6461
        this.se = null;
412 ashish 6462
      }
6463
    }
6464
 
6465
    public void setFieldValue(_Fields field, Object value) {
6466
      switch (field) {
6467
      case SUCCESS:
6468
        if (value == null) {
6469
          unsetSuccess();
6470
        } else {
648 chandransh 6471
          setSuccess((String)value);
412 ashish 6472
        }
6473
        break;
6474
 
648 chandransh 6475
      case SE:
6476
        if (value == null) {
6477
          unsetSe();
6478
        } else {
6479
          setSe((LogisticsServiceException)value);
6480
        }
6481
        break;
6482
 
412 ashish 6483
      }
6484
    }
6485
 
6486
    public Object getFieldValue(_Fields field) {
6487
      switch (field) {
6488
      case SUCCESS:
6489
        return getSuccess();
6490
 
648 chandransh 6491
      case SE:
6492
        return getSe();
6493
 
412 ashish 6494
      }
6495
      throw new IllegalStateException();
6496
    }
6497
 
3430 rajveer 6498
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6499
    public boolean isSet(_Fields field) {
6500
      if (field == null) {
6501
        throw new IllegalArgumentException();
6502
      }
412 ashish 6503
 
6504
      switch (field) {
6505
      case SUCCESS:
6506
        return isSetSuccess();
648 chandransh 6507
      case SE:
6508
        return isSetSe();
412 ashish 6509
      }
6510
      throw new IllegalStateException();
6511
    }
6512
 
6513
    @Override
6514
    public boolean equals(Object that) {
6515
      if (that == null)
6516
        return false;
648 chandransh 6517
      if (that instanceof getEmptyAWB_result)
6518
        return this.equals((getEmptyAWB_result)that);
412 ashish 6519
      return false;
6520
    }
6521
 
648 chandransh 6522
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6523
      if (that == null)
6524
        return false;
6525
 
6526
      boolean this_present_success = true && this.isSetSuccess();
6527
      boolean that_present_success = true && that.isSetSuccess();
6528
      if (this_present_success || that_present_success) {
6529
        if (!(this_present_success && that_present_success))
6530
          return false;
6531
        if (!this.success.equals(that.success))
6532
          return false;
6533
      }
6534
 
648 chandransh 6535
      boolean this_present_se = true && this.isSetSe();
6536
      boolean that_present_se = true && that.isSetSe();
6537
      if (this_present_se || that_present_se) {
6538
        if (!(this_present_se && that_present_se))
6539
          return false;
6540
        if (!this.se.equals(that.se))
6541
          return false;
6542
      }
6543
 
412 ashish 6544
      return true;
6545
    }
6546
 
6547
    @Override
6548
    public int hashCode() {
6549
      return 0;
6550
    }
6551
 
648 chandransh 6552
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6553
      if (!getClass().equals(other.getClass())) {
6554
        return getClass().getName().compareTo(other.getClass().getName());
6555
      }
6556
 
6557
      int lastComparison = 0;
648 chandransh 6558
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6559
 
3430 rajveer 6560
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6561
      if (lastComparison != 0) {
6562
        return lastComparison;
6563
      }
3430 rajveer 6564
      if (isSetSuccess()) {
6565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6566
        if (lastComparison != 0) {
6567
          return lastComparison;
6568
        }
412 ashish 6569
      }
3430 rajveer 6570
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6571
      if (lastComparison != 0) {
6572
        return lastComparison;
6573
      }
3430 rajveer 6574
      if (isSetSe()) {
6575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6576
        if (lastComparison != 0) {
6577
          return lastComparison;
6578
        }
412 ashish 6579
      }
6580
      return 0;
6581
    }
6582
 
3430 rajveer 6583
    public _Fields fieldForId(int fieldId) {
6584
      return _Fields.findByThriftId(fieldId);
6585
    }
6586
 
6587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6588
      org.apache.thrift.protocol.TField field;
412 ashish 6589
      iprot.readStructBegin();
6590
      while (true)
6591
      {
6592
        field = iprot.readFieldBegin();
3430 rajveer 6593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6594
          break;
6595
        }
3430 rajveer 6596
        switch (field.id) {
6597
          case 0: // SUCCESS
6598
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6599
              this.success = iprot.readString();
6600
            } else { 
6601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6602
            }
6603
            break;
6604
          case 1: // SE
6605
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6606
              this.se = new LogisticsServiceException();
6607
              this.se.read(iprot);
6608
            } else { 
6609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6610
            }
6611
            break;
6612
          default:
6613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6614
        }
3430 rajveer 6615
        iprot.readFieldEnd();
412 ashish 6616
      }
6617
      iprot.readStructEnd();
6618
      validate();
6619
    }
6620
 
3430 rajveer 6621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6622
      oprot.writeStructBegin(STRUCT_DESC);
6623
 
6624
      if (this.isSetSuccess()) {
6625
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6626
        oprot.writeString(this.success);
412 ashish 6627
        oprot.writeFieldEnd();
648 chandransh 6628
      } else if (this.isSetSe()) {
6629
        oprot.writeFieldBegin(SE_FIELD_DESC);
6630
        this.se.write(oprot);
6631
        oprot.writeFieldEnd();
412 ashish 6632
      }
6633
      oprot.writeFieldStop();
6634
      oprot.writeStructEnd();
6635
    }
6636
 
6637
    @Override
6638
    public String toString() {
648 chandransh 6639
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6640
      boolean first = true;
6641
 
6642
      sb.append("success:");
6643
      if (this.success == null) {
6644
        sb.append("null");
6645
      } else {
6646
        sb.append(this.success);
6647
      }
6648
      first = false;
648 chandransh 6649
      if (!first) sb.append(", ");
6650
      sb.append("se:");
6651
      if (this.se == null) {
442 rajveer 6652
        sb.append("null");
6653
      } else {
648 chandransh 6654
        sb.append(this.se);
442 rajveer 6655
      }
6656
      first = false;
6657
      sb.append(")");
6658
      return sb.toString();
6659
    }
6660
 
3430 rajveer 6661
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6662
      // check for required fields
6663
    }
6664
 
3430 rajveer 6665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6666
      try {
6667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6668
      } catch (org.apache.thrift.TException te) {
6669
        throw new java.io.IOException(te);
6670
      }
6671
    }
6672
 
6673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6674
      try {
6675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6676
      } catch (org.apache.thrift.TException te) {
6677
        throw new java.io.IOException(te);
6678
      }
6679
    }
6680
 
442 rajveer 6681
  }
6682
 
3430 rajveer 6683
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6685
 
6643 rajveer 6686
    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 6687
    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 6688
 
6643 rajveer 6689
    private String awbNumber; // required
3430 rajveer 6690
    private long providerId; // required
442 rajveer 6691
 
6692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6694
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6695
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6696
 
6697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6698
 
6699
      static {
6700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6701
          byName.put(field.getFieldName(), field);
6702
        }
6703
      }
6704
 
6705
      /**
6706
       * Find the _Fields constant that matches fieldId, or null if its not found.
6707
       */
6708
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6709
        switch(fieldId) {
6643 rajveer 6710
          case 1: // AWB_NUMBER
6711
            return AWB_NUMBER;
3430 rajveer 6712
          case 2: // PROVIDER_ID
6713
            return PROVIDER_ID;
6714
          default:
6715
            return null;
6716
        }
442 rajveer 6717
      }
6718
 
6719
      /**
6720
       * Find the _Fields constant that matches fieldId, throwing an exception
6721
       * if it is not found.
6722
       */
6723
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6724
        _Fields fields = findByThriftId(fieldId);
6725
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6726
        return fields;
6727
      }
6728
 
6729
      /**
6730
       * Find the _Fields constant that matches name, or null if its not found.
6731
       */
6732
      public static _Fields findByName(String name) {
6733
        return byName.get(name);
6734
      }
6735
 
6736
      private final short _thriftId;
6737
      private final String _fieldName;
6738
 
6739
      _Fields(short thriftId, String fieldName) {
6740
        _thriftId = thriftId;
6741
        _fieldName = fieldName;
6742
      }
6743
 
6744
      public short getThriftFieldId() {
6745
        return _thriftId;
6746
      }
6747
 
6748
      public String getFieldName() {
6749
        return _fieldName;
6750
      }
6751
    }
6752
 
6753
    // isset id assignments
648 chandransh 6754
    private static final int __PROVIDERID_ISSET_ID = 0;
6755
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 6756
 
3430 rajveer 6757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 6758
    static {
3430 rajveer 6759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 6760
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 6761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6762
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 6766
    }
6767
 
648 chandransh 6768
    public getShipmentInfo_args() {
442 rajveer 6769
    }
6770
 
648 chandransh 6771
    public getShipmentInfo_args(
6643 rajveer 6772
      String awbNumber,
648 chandransh 6773
      long providerId)
442 rajveer 6774
    {
6775
      this();
6643 rajveer 6776
      this.awbNumber = awbNumber;
648 chandransh 6777
      this.providerId = providerId;
6778
      setProviderIdIsSet(true);
442 rajveer 6779
    }
6780
 
6781
    /**
6782
     * Performs a deep copy on <i>other</i>.
6783
     */
648 chandransh 6784
    public getShipmentInfo_args(getShipmentInfo_args other) {
6785
      __isset_bit_vector.clear();
6786
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 6787
      if (other.isSetAwbNumber()) {
6788
        this.awbNumber = other.awbNumber;
442 rajveer 6789
      }
648 chandransh 6790
      this.providerId = other.providerId;
442 rajveer 6791
    }
6792
 
648 chandransh 6793
    public getShipmentInfo_args deepCopy() {
6794
      return new getShipmentInfo_args(this);
442 rajveer 6795
    }
6796
 
3430 rajveer 6797
    @Override
6798
    public void clear() {
6643 rajveer 6799
      this.awbNumber = null;
3430 rajveer 6800
      setProviderIdIsSet(false);
6801
      this.providerId = 0;
442 rajveer 6802
    }
6803
 
6643 rajveer 6804
    public String getAwbNumber() {
6805
      return this.awbNumber;
442 rajveer 6806
    }
6807
 
6643 rajveer 6808
    public void setAwbNumber(String awbNumber) {
6809
      this.awbNumber = awbNumber;
442 rajveer 6810
    }
6811
 
6643 rajveer 6812
    public void unsetAwbNumber() {
6813
      this.awbNumber = null;
442 rajveer 6814
    }
6815
 
6643 rajveer 6816
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
6817
    public boolean isSetAwbNumber() {
6818
      return this.awbNumber != null;
442 rajveer 6819
    }
6820
 
6643 rajveer 6821
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 6822
      if (!value) {
6643 rajveer 6823
        this.awbNumber = null;
442 rajveer 6824
      }
6825
    }
6826
 
648 chandransh 6827
    public long getProviderId() {
6828
      return this.providerId;
442 rajveer 6829
    }
6830
 
3430 rajveer 6831
    public void setProviderId(long providerId) {
648 chandransh 6832
      this.providerId = providerId;
6833
      setProviderIdIsSet(true);
442 rajveer 6834
    }
6835
 
648 chandransh 6836
    public void unsetProviderId() {
6837
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 6838
    }
6839
 
3430 rajveer 6840
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6841
    public boolean isSetProviderId() {
6842
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 6843
    }
6844
 
648 chandransh 6845
    public void setProviderIdIsSet(boolean value) {
6846
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 6847
    }
6848
 
6849
    public void setFieldValue(_Fields field, Object value) {
6850
      switch (field) {
6643 rajveer 6851
      case AWB_NUMBER:
442 rajveer 6852
        if (value == null) {
6643 rajveer 6853
          unsetAwbNumber();
442 rajveer 6854
        } else {
6643 rajveer 6855
          setAwbNumber((String)value);
442 rajveer 6856
        }
6857
        break;
6858
 
648 chandransh 6859
      case PROVIDER_ID:
442 rajveer 6860
        if (value == null) {
648 chandransh 6861
          unsetProviderId();
442 rajveer 6862
        } else {
648 chandransh 6863
          setProviderId((Long)value);
442 rajveer 6864
        }
6865
        break;
6866
 
6867
      }
6868
    }
6869
 
6870
    public Object getFieldValue(_Fields field) {
6871
      switch (field) {
6643 rajveer 6872
      case AWB_NUMBER:
6873
        return getAwbNumber();
442 rajveer 6874
 
648 chandransh 6875
      case PROVIDER_ID:
3430 rajveer 6876
        return Long.valueOf(getProviderId());
442 rajveer 6877
 
6878
      }
6879
      throw new IllegalStateException();
6880
    }
6881
 
3430 rajveer 6882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6883
    public boolean isSet(_Fields field) {
6884
      if (field == null) {
6885
        throw new IllegalArgumentException();
6886
      }
442 rajveer 6887
 
6888
      switch (field) {
6643 rajveer 6889
      case AWB_NUMBER:
6890
        return isSetAwbNumber();
648 chandransh 6891
      case PROVIDER_ID:
6892
        return isSetProviderId();
442 rajveer 6893
      }
6894
      throw new IllegalStateException();
6895
    }
6896
 
6897
    @Override
6898
    public boolean equals(Object that) {
6899
      if (that == null)
6900
        return false;
648 chandransh 6901
      if (that instanceof getShipmentInfo_args)
6902
        return this.equals((getShipmentInfo_args)that);
442 rajveer 6903
      return false;
6904
    }
6905
 
648 chandransh 6906
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 6907
      if (that == null)
6908
        return false;
6909
 
6643 rajveer 6910
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
6911
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
6912
      if (this_present_awbNumber || that_present_awbNumber) {
6913
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 6914
          return false;
6643 rajveer 6915
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 6916
          return false;
6917
      }
6918
 
648 chandransh 6919
      boolean this_present_providerId = true;
6920
      boolean that_present_providerId = true;
6921
      if (this_present_providerId || that_present_providerId) {
6922
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 6923
          return false;
648 chandransh 6924
        if (this.providerId != that.providerId)
442 rajveer 6925
          return false;
6926
      }
6927
 
6928
      return true;
6929
    }
6930
 
6931
    @Override
6932
    public int hashCode() {
6933
      return 0;
6934
    }
6935
 
648 chandransh 6936
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 6937
      if (!getClass().equals(other.getClass())) {
6938
        return getClass().getName().compareTo(other.getClass().getName());
6939
      }
6940
 
6941
      int lastComparison = 0;
648 chandransh 6942
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 6943
 
6643 rajveer 6944
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 6945
      if (lastComparison != 0) {
6946
        return lastComparison;
6947
      }
6643 rajveer 6948
      if (isSetAwbNumber()) {
6949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 6950
        if (lastComparison != 0) {
6951
          return lastComparison;
6952
        }
442 rajveer 6953
      }
3430 rajveer 6954
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 6955
      if (lastComparison != 0) {
6956
        return lastComparison;
6957
      }
3430 rajveer 6958
      if (isSetProviderId()) {
6959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6960
        if (lastComparison != 0) {
6961
          return lastComparison;
6962
        }
442 rajveer 6963
      }
6964
      return 0;
6965
    }
6966
 
3430 rajveer 6967
    public _Fields fieldForId(int fieldId) {
6968
      return _Fields.findByThriftId(fieldId);
6969
    }
6970
 
6971
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6972
      org.apache.thrift.protocol.TField field;
442 rajveer 6973
      iprot.readStructBegin();
6974
      while (true)
6975
      {
6976
        field = iprot.readFieldBegin();
3430 rajveer 6977
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 6978
          break;
6979
        }
3430 rajveer 6980
        switch (field.id) {
6643 rajveer 6981
          case 1: // AWB_NUMBER
3430 rajveer 6982
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 6983
              this.awbNumber = iprot.readString();
3430 rajveer 6984
            } else { 
6985
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6986
            }
6987
            break;
6988
          case 2: // PROVIDER_ID
6989
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6990
              this.providerId = iprot.readI64();
6991
              setProviderIdIsSet(true);
6992
            } else { 
6993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6994
            }
6995
            break;
6996
          default:
6997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 6998
        }
3430 rajveer 6999
        iprot.readFieldEnd();
442 rajveer 7000
      }
7001
      iprot.readStructEnd();
7002
      validate();
7003
    }
7004
 
3430 rajveer 7005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7006
      validate();
7007
 
7008
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7009
      if (this.awbNumber != null) {
7010
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7011
        oprot.writeString(this.awbNumber);
442 rajveer 7012
        oprot.writeFieldEnd();
7013
      }
648 chandransh 7014
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7015
      oprot.writeI64(this.providerId);
7016
      oprot.writeFieldEnd();
442 rajveer 7017
      oprot.writeFieldStop();
7018
      oprot.writeStructEnd();
7019
    }
7020
 
7021
    @Override
7022
    public String toString() {
648 chandransh 7023
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7024
      boolean first = true;
7025
 
6643 rajveer 7026
      sb.append("awbNumber:");
7027
      if (this.awbNumber == null) {
442 rajveer 7028
        sb.append("null");
7029
      } else {
6643 rajveer 7030
        sb.append(this.awbNumber);
442 rajveer 7031
      }
7032
      first = false;
7033
      if (!first) sb.append(", ");
648 chandransh 7034
      sb.append("providerId:");
7035
      sb.append(this.providerId);
442 rajveer 7036
      first = false;
7037
      sb.append(")");
7038
      return sb.toString();
7039
    }
7040
 
3430 rajveer 7041
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7042
      // check for required fields
7043
    }
7044
 
3430 rajveer 7045
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7046
      try {
7047
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7048
      } catch (org.apache.thrift.TException te) {
7049
        throw new java.io.IOException(te);
7050
      }
7051
    }
7052
 
7053
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7054
      try {
7055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7056
      } catch (org.apache.thrift.TException te) {
7057
        throw new java.io.IOException(te);
7058
      }
7059
    }
7060
 
442 rajveer 7061
  }
7062
 
3430 rajveer 7063
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7064
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7065
 
3430 rajveer 7066
    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);
7067
    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 7068
 
3430 rajveer 7069
    private List<AwbUpdate> success; // required
7070
    private LogisticsServiceException se; // required
412 ashish 7071
 
7072
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7073
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7074
      SUCCESS((short)0, "success"),
7075
      SE((short)1, "se");
412 ashish 7076
 
7077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7078
 
7079
      static {
7080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7081
          byName.put(field.getFieldName(), field);
7082
        }
7083
      }
7084
 
7085
      /**
7086
       * Find the _Fields constant that matches fieldId, or null if its not found.
7087
       */
7088
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7089
        switch(fieldId) {
7090
          case 0: // SUCCESS
7091
            return SUCCESS;
7092
          case 1: // SE
7093
            return SE;
7094
          default:
7095
            return null;
7096
        }
412 ashish 7097
      }
7098
 
7099
      /**
7100
       * Find the _Fields constant that matches fieldId, throwing an exception
7101
       * if it is not found.
7102
       */
7103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7104
        _Fields fields = findByThriftId(fieldId);
7105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7106
        return fields;
7107
      }
7108
 
7109
      /**
7110
       * Find the _Fields constant that matches name, or null if its not found.
7111
       */
7112
      public static _Fields findByName(String name) {
7113
        return byName.get(name);
7114
      }
7115
 
7116
      private final short _thriftId;
7117
      private final String _fieldName;
7118
 
7119
      _Fields(short thriftId, String fieldName) {
7120
        _thriftId = thriftId;
7121
        _fieldName = fieldName;
7122
      }
7123
 
7124
      public short getThriftFieldId() {
7125
        return _thriftId;
7126
      }
7127
 
7128
      public String getFieldName() {
7129
        return _fieldName;
7130
      }
7131
    }
7132
 
7133
    // isset id assignments
7134
 
3430 rajveer 7135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7136
    static {
3430 rajveer 7137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7138
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7139
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7140
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7141
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7143
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7144
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7145
    }
7146
 
7147
    public getShipmentInfo_result() {
7148
    }
7149
 
7150
    public getShipmentInfo_result(
648 chandransh 7151
      List<AwbUpdate> success,
7152
      LogisticsServiceException se)
412 ashish 7153
    {
7154
      this();
7155
      this.success = success;
648 chandransh 7156
      this.se = se;
412 ashish 7157
    }
7158
 
7159
    /**
7160
     * Performs a deep copy on <i>other</i>.
7161
     */
7162
    public getShipmentInfo_result(getShipmentInfo_result other) {
7163
      if (other.isSetSuccess()) {
648 chandransh 7164
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7165
        for (AwbUpdate other_element : other.success) {
7166
          __this__success.add(new AwbUpdate(other_element));
7167
        }
7168
        this.success = __this__success;
412 ashish 7169
      }
648 chandransh 7170
      if (other.isSetSe()) {
7171
        this.se = new LogisticsServiceException(other.se);
7172
      }
412 ashish 7173
    }
7174
 
7175
    public getShipmentInfo_result deepCopy() {
7176
      return new getShipmentInfo_result(this);
7177
    }
7178
 
3430 rajveer 7179
    @Override
7180
    public void clear() {
7181
      this.success = null;
7182
      this.se = null;
412 ashish 7183
    }
7184
 
7185
    public int getSuccessSize() {
7186
      return (this.success == null) ? 0 : this.success.size();
7187
    }
7188
 
648 chandransh 7189
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7190
      return (this.success == null) ? null : this.success.iterator();
7191
    }
7192
 
648 chandransh 7193
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7194
      if (this.success == null) {
648 chandransh 7195
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7196
      }
7197
      this.success.add(elem);
7198
    }
7199
 
648 chandransh 7200
    public List<AwbUpdate> getSuccess() {
412 ashish 7201
      return this.success;
7202
    }
7203
 
3430 rajveer 7204
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7205
      this.success = success;
7206
    }
7207
 
7208
    public void unsetSuccess() {
7209
      this.success = null;
7210
    }
7211
 
3430 rajveer 7212
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7213
    public boolean isSetSuccess() {
7214
      return this.success != null;
7215
    }
7216
 
7217
    public void setSuccessIsSet(boolean value) {
7218
      if (!value) {
7219
        this.success = null;
7220
      }
7221
    }
7222
 
648 chandransh 7223
    public LogisticsServiceException getSe() {
7224
      return this.se;
412 ashish 7225
    }
7226
 
3430 rajveer 7227
    public void setSe(LogisticsServiceException se) {
648 chandransh 7228
      this.se = se;
412 ashish 7229
    }
7230
 
648 chandransh 7231
    public void unsetSe() {
7232
      this.se = null;
412 ashish 7233
    }
7234
 
3430 rajveer 7235
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7236
    public boolean isSetSe() {
7237
      return this.se != null;
412 ashish 7238
    }
7239
 
648 chandransh 7240
    public void setSeIsSet(boolean value) {
7241
      if (!value) {
7242
        this.se = null;
412 ashish 7243
      }
7244
    }
7245
 
7246
    public void setFieldValue(_Fields field, Object value) {
7247
      switch (field) {
648 chandransh 7248
      case SUCCESS:
412 ashish 7249
        if (value == null) {
648 chandransh 7250
          unsetSuccess();
412 ashish 7251
        } else {
648 chandransh 7252
          setSuccess((List<AwbUpdate>)value);
412 ashish 7253
        }
7254
        break;
7255
 
648 chandransh 7256
      case SE:
412 ashish 7257
        if (value == null) {
648 chandransh 7258
          unsetSe();
412 ashish 7259
        } else {
648 chandransh 7260
          setSe((LogisticsServiceException)value);
412 ashish 7261
        }
7262
        break;
7263
 
7264
      }
7265
    }
7266
 
7267
    public Object getFieldValue(_Fields field) {
7268
      switch (field) {
648 chandransh 7269
      case SUCCESS:
7270
        return getSuccess();
412 ashish 7271
 
648 chandransh 7272
      case SE:
7273
        return getSe();
412 ashish 7274
 
7275
      }
7276
      throw new IllegalStateException();
7277
    }
7278
 
3430 rajveer 7279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7280
    public boolean isSet(_Fields field) {
7281
      if (field == null) {
7282
        throw new IllegalArgumentException();
7283
      }
412 ashish 7284
 
7285
      switch (field) {
648 chandransh 7286
      case SUCCESS:
7287
        return isSetSuccess();
7288
      case SE:
7289
        return isSetSe();
412 ashish 7290
      }
7291
      throw new IllegalStateException();
7292
    }
7293
 
7294
    @Override
7295
    public boolean equals(Object that) {
7296
      if (that == null)
7297
        return false;
648 chandransh 7298
      if (that instanceof getShipmentInfo_result)
7299
        return this.equals((getShipmentInfo_result)that);
412 ashish 7300
      return false;
7301
    }
7302
 
648 chandransh 7303
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7304
      if (that == null)
7305
        return false;
7306
 
648 chandransh 7307
      boolean this_present_success = true && this.isSetSuccess();
7308
      boolean that_present_success = true && that.isSetSuccess();
7309
      if (this_present_success || that_present_success) {
7310
        if (!(this_present_success && that_present_success))
412 ashish 7311
          return false;
648 chandransh 7312
        if (!this.success.equals(that.success))
412 ashish 7313
          return false;
7314
      }
7315
 
648 chandransh 7316
      boolean this_present_se = true && this.isSetSe();
7317
      boolean that_present_se = true && that.isSetSe();
7318
      if (this_present_se || that_present_se) {
7319
        if (!(this_present_se && that_present_se))
412 ashish 7320
          return false;
648 chandransh 7321
        if (!this.se.equals(that.se))
412 ashish 7322
          return false;
7323
      }
7324
 
7325
      return true;
7326
    }
7327
 
7328
    @Override
7329
    public int hashCode() {
7330
      return 0;
7331
    }
7332
 
648 chandransh 7333
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7334
      if (!getClass().equals(other.getClass())) {
7335
        return getClass().getName().compareTo(other.getClass().getName());
7336
      }
7337
 
7338
      int lastComparison = 0;
648 chandransh 7339
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7340
 
3430 rajveer 7341
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7342
      if (lastComparison != 0) {
7343
        return lastComparison;
7344
      }
3430 rajveer 7345
      if (isSetSuccess()) {
7346
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7347
        if (lastComparison != 0) {
7348
          return lastComparison;
7349
        }
412 ashish 7350
      }
3430 rajveer 7351
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7352
      if (lastComparison != 0) {
7353
        return lastComparison;
7354
      }
3430 rajveer 7355
      if (isSetSe()) {
7356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7357
        if (lastComparison != 0) {
7358
          return lastComparison;
7359
        }
412 ashish 7360
      }
7361
      return 0;
7362
    }
7363
 
3430 rajveer 7364
    public _Fields fieldForId(int fieldId) {
7365
      return _Fields.findByThriftId(fieldId);
7366
    }
7367
 
7368
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7369
      org.apache.thrift.protocol.TField field;
412 ashish 7370
      iprot.readStructBegin();
7371
      while (true)
7372
      {
7373
        field = iprot.readFieldBegin();
3430 rajveer 7374
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7375
          break;
7376
        }
3430 rajveer 7377
        switch (field.id) {
7378
          case 0: // SUCCESS
7379
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7380
              {
7381
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
7382
                this.success = new ArrayList<AwbUpdate>(_list9.size);
7383
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 7384
                {
3430 rajveer 7385
                  AwbUpdate _elem11; // required
7386
                  _elem11 = new AwbUpdate();
7387
                  _elem11.read(iprot);
7388
                  this.success.add(_elem11);
412 ashish 7389
                }
3430 rajveer 7390
                iprot.readListEnd();
412 ashish 7391
              }
3430 rajveer 7392
            } else { 
7393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7394
            }
7395
            break;
7396
          case 1: // SE
7397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7398
              this.se = new LogisticsServiceException();
7399
              this.se.read(iprot);
7400
            } else { 
7401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7402
            }
7403
            break;
7404
          default:
7405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7406
        }
3430 rajveer 7407
        iprot.readFieldEnd();
412 ashish 7408
      }
7409
      iprot.readStructEnd();
7410
      validate();
7411
    }
7412
 
3430 rajveer 7413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7414
      oprot.writeStructBegin(STRUCT_DESC);
7415
 
7416
      if (this.isSetSuccess()) {
7417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7418
        {
3430 rajveer 7419
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 7420
          for (AwbUpdate _iter12 : this.success)
412 ashish 7421
          {
3044 chandransh 7422
            _iter12.write(oprot);
412 ashish 7423
          }
7424
          oprot.writeListEnd();
7425
        }
7426
        oprot.writeFieldEnd();
648 chandransh 7427
      } else if (this.isSetSe()) {
7428
        oprot.writeFieldBegin(SE_FIELD_DESC);
7429
        this.se.write(oprot);
7430
        oprot.writeFieldEnd();
412 ashish 7431
      }
7432
      oprot.writeFieldStop();
7433
      oprot.writeStructEnd();
7434
    }
7435
 
7436
    @Override
7437
    public String toString() {
648 chandransh 7438
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7439
      boolean first = true;
7440
 
7441
      sb.append("success:");
7442
      if (this.success == null) {
7443
        sb.append("null");
7444
      } else {
7445
        sb.append(this.success);
7446
      }
7447
      first = false;
648 chandransh 7448
      if (!first) sb.append(", ");
7449
      sb.append("se:");
7450
      if (this.se == null) {
7451
        sb.append("null");
7452
      } else {
7453
        sb.append(this.se);
7454
      }
7455
      first = false;
412 ashish 7456
      sb.append(")");
7457
      return sb.toString();
7458
    }
7459
 
3430 rajveer 7460
    public void validate() throws org.apache.thrift.TException {
412 ashish 7461
      // check for required fields
7462
    }
7463
 
3430 rajveer 7464
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7465
      try {
7466
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7467
      } catch (org.apache.thrift.TException te) {
7468
        throw new java.io.IOException(te);
7469
      }
7470
    }
7471
 
7472
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7473
      try {
7474
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7475
      } catch (org.apache.thrift.TException te) {
7476
        throw new java.io.IOException(te);
7477
      }
7478
    }
7479
 
412 ashish 7480
  }
7481
 
6643 rajveer 7482
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7483
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7484
 
7485
    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);
7486
 
7487
    private AwbUpdate update; // required
7488
 
7489
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7490
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7491
      UPDATE((short)1, "update");
7492
 
7493
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7494
 
7495
      static {
7496
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7497
          byName.put(field.getFieldName(), field);
7498
        }
7499
      }
7500
 
7501
      /**
7502
       * Find the _Fields constant that matches fieldId, or null if its not found.
7503
       */
7504
      public static _Fields findByThriftId(int fieldId) {
7505
        switch(fieldId) {
7506
          case 1: // UPDATE
7507
            return UPDATE;
7508
          default:
7509
            return null;
7510
        }
7511
      }
7512
 
7513
      /**
7514
       * Find the _Fields constant that matches fieldId, throwing an exception
7515
       * if it is not found.
7516
       */
7517
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7518
        _Fields fields = findByThriftId(fieldId);
7519
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7520
        return fields;
7521
      }
7522
 
7523
      /**
7524
       * Find the _Fields constant that matches name, or null if its not found.
7525
       */
7526
      public static _Fields findByName(String name) {
7527
        return byName.get(name);
7528
      }
7529
 
7530
      private final short _thriftId;
7531
      private final String _fieldName;
7532
 
7533
      _Fields(short thriftId, String fieldName) {
7534
        _thriftId = thriftId;
7535
        _fieldName = fieldName;
7536
      }
7537
 
7538
      public short getThriftFieldId() {
7539
        return _thriftId;
7540
      }
7541
 
7542
      public String getFieldName() {
7543
        return _fieldName;
7544
      }
7545
    }
7546
 
7547
    // isset id assignments
7548
 
7549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7550
    static {
7551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7552
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7553
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7554
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7555
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7556
    }
7557
 
7558
    public storeShipmentInfo_args() {
7559
    }
7560
 
7561
    public storeShipmentInfo_args(
7562
      AwbUpdate update)
7563
    {
7564
      this();
7565
      this.update = update;
7566
    }
7567
 
7568
    /**
7569
     * Performs a deep copy on <i>other</i>.
7570
     */
7571
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7572
      if (other.isSetUpdate()) {
7573
        this.update = new AwbUpdate(other.update);
7574
      }
7575
    }
7576
 
7577
    public storeShipmentInfo_args deepCopy() {
7578
      return new storeShipmentInfo_args(this);
7579
    }
7580
 
7581
    @Override
7582
    public void clear() {
7583
      this.update = null;
7584
    }
7585
 
7586
    public AwbUpdate getUpdate() {
7587
      return this.update;
7588
    }
7589
 
7590
    public void setUpdate(AwbUpdate update) {
7591
      this.update = update;
7592
    }
7593
 
7594
    public void unsetUpdate() {
7595
      this.update = null;
7596
    }
7597
 
7598
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7599
    public boolean isSetUpdate() {
7600
      return this.update != null;
7601
    }
7602
 
7603
    public void setUpdateIsSet(boolean value) {
7604
      if (!value) {
7605
        this.update = null;
7606
      }
7607
    }
7608
 
7609
    public void setFieldValue(_Fields field, Object value) {
7610
      switch (field) {
7611
      case UPDATE:
7612
        if (value == null) {
7613
          unsetUpdate();
7614
        } else {
7615
          setUpdate((AwbUpdate)value);
7616
        }
7617
        break;
7618
 
7619
      }
7620
    }
7621
 
7622
    public Object getFieldValue(_Fields field) {
7623
      switch (field) {
7624
      case UPDATE:
7625
        return getUpdate();
7626
 
7627
      }
7628
      throw new IllegalStateException();
7629
    }
7630
 
7631
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7632
    public boolean isSet(_Fields field) {
7633
      if (field == null) {
7634
        throw new IllegalArgumentException();
7635
      }
7636
 
7637
      switch (field) {
7638
      case UPDATE:
7639
        return isSetUpdate();
7640
      }
7641
      throw new IllegalStateException();
7642
    }
7643
 
7644
    @Override
7645
    public boolean equals(Object that) {
7646
      if (that == null)
7647
        return false;
7648
      if (that instanceof storeShipmentInfo_args)
7649
        return this.equals((storeShipmentInfo_args)that);
7650
      return false;
7651
    }
7652
 
7653
    public boolean equals(storeShipmentInfo_args that) {
7654
      if (that == null)
7655
        return false;
7656
 
7657
      boolean this_present_update = true && this.isSetUpdate();
7658
      boolean that_present_update = true && that.isSetUpdate();
7659
      if (this_present_update || that_present_update) {
7660
        if (!(this_present_update && that_present_update))
7661
          return false;
7662
        if (!this.update.equals(that.update))
7663
          return false;
7664
      }
7665
 
7666
      return true;
7667
    }
7668
 
7669
    @Override
7670
    public int hashCode() {
7671
      return 0;
7672
    }
7673
 
7674
    public int compareTo(storeShipmentInfo_args other) {
7675
      if (!getClass().equals(other.getClass())) {
7676
        return getClass().getName().compareTo(other.getClass().getName());
7677
      }
7678
 
7679
      int lastComparison = 0;
7680
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7681
 
7682
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7683
      if (lastComparison != 0) {
7684
        return lastComparison;
7685
      }
7686
      if (isSetUpdate()) {
7687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7688
        if (lastComparison != 0) {
7689
          return lastComparison;
7690
        }
7691
      }
7692
      return 0;
7693
    }
7694
 
7695
    public _Fields fieldForId(int fieldId) {
7696
      return _Fields.findByThriftId(fieldId);
7697
    }
7698
 
7699
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7700
      org.apache.thrift.protocol.TField field;
7701
      iprot.readStructBegin();
7702
      while (true)
7703
      {
7704
        field = iprot.readFieldBegin();
7705
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7706
          break;
7707
        }
7708
        switch (field.id) {
7709
          case 1: // UPDATE
7710
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7711
              this.update = new AwbUpdate();
7712
              this.update.read(iprot);
7713
            } else { 
7714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7715
            }
7716
            break;
7717
          default:
7718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7719
        }
7720
        iprot.readFieldEnd();
7721
      }
7722
      iprot.readStructEnd();
7723
      validate();
7724
    }
7725
 
7726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7727
      validate();
7728
 
7729
      oprot.writeStructBegin(STRUCT_DESC);
7730
      if (this.update != null) {
7731
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7732
        this.update.write(oprot);
7733
        oprot.writeFieldEnd();
7734
      }
7735
      oprot.writeFieldStop();
7736
      oprot.writeStructEnd();
7737
    }
7738
 
7739
    @Override
7740
    public String toString() {
7741
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
7742
      boolean first = true;
7743
 
7744
      sb.append("update:");
7745
      if (this.update == null) {
7746
        sb.append("null");
7747
      } else {
7748
        sb.append(this.update);
7749
      }
7750
      first = false;
7751
      sb.append(")");
7752
      return sb.toString();
7753
    }
7754
 
7755
    public void validate() throws org.apache.thrift.TException {
7756
      // check for required fields
7757
    }
7758
 
7759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7760
      try {
7761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7762
      } catch (org.apache.thrift.TException te) {
7763
        throw new java.io.IOException(te);
7764
      }
7765
    }
7766
 
7767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7768
      try {
7769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7770
      } catch (org.apache.thrift.TException te) {
7771
        throw new java.io.IOException(te);
7772
      }
7773
    }
7774
 
7775
  }
7776
 
7777
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
7779
 
7780
    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);
7781
 
7782
    private LogisticsServiceException se; // required
7783
 
7784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7786
      SE((short)1, "se");
7787
 
7788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7789
 
7790
      static {
7791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7792
          byName.put(field.getFieldName(), field);
7793
        }
7794
      }
7795
 
7796
      /**
7797
       * Find the _Fields constant that matches fieldId, or null if its not found.
7798
       */
7799
      public static _Fields findByThriftId(int fieldId) {
7800
        switch(fieldId) {
7801
          case 1: // SE
7802
            return SE;
7803
          default:
7804
            return null;
7805
        }
7806
      }
7807
 
7808
      /**
7809
       * Find the _Fields constant that matches fieldId, throwing an exception
7810
       * if it is not found.
7811
       */
7812
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7813
        _Fields fields = findByThriftId(fieldId);
7814
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7815
        return fields;
7816
      }
7817
 
7818
      /**
7819
       * Find the _Fields constant that matches name, or null if its not found.
7820
       */
7821
      public static _Fields findByName(String name) {
7822
        return byName.get(name);
7823
      }
7824
 
7825
      private final short _thriftId;
7826
      private final String _fieldName;
7827
 
7828
      _Fields(short thriftId, String fieldName) {
7829
        _thriftId = thriftId;
7830
        _fieldName = fieldName;
7831
      }
7832
 
7833
      public short getThriftFieldId() {
7834
        return _thriftId;
7835
      }
7836
 
7837
      public String getFieldName() {
7838
        return _fieldName;
7839
      }
7840
    }
7841
 
7842
    // isset id assignments
7843
 
7844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7845
    static {
7846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7847
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7849
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7850
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
7851
    }
7852
 
7853
    public storeShipmentInfo_result() {
7854
    }
7855
 
7856
    public storeShipmentInfo_result(
7857
      LogisticsServiceException se)
7858
    {
7859
      this();
7860
      this.se = se;
7861
    }
7862
 
7863
    /**
7864
     * Performs a deep copy on <i>other</i>.
7865
     */
7866
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
7867
      if (other.isSetSe()) {
7868
        this.se = new LogisticsServiceException(other.se);
7869
      }
7870
    }
7871
 
7872
    public storeShipmentInfo_result deepCopy() {
7873
      return new storeShipmentInfo_result(this);
7874
    }
7875
 
7876
    @Override
7877
    public void clear() {
7878
      this.se = null;
7879
    }
7880
 
7881
    public LogisticsServiceException getSe() {
7882
      return this.se;
7883
    }
7884
 
7885
    public void setSe(LogisticsServiceException se) {
7886
      this.se = se;
7887
    }
7888
 
7889
    public void unsetSe() {
7890
      this.se = null;
7891
    }
7892
 
7893
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7894
    public boolean isSetSe() {
7895
      return this.se != null;
7896
    }
7897
 
7898
    public void setSeIsSet(boolean value) {
7899
      if (!value) {
7900
        this.se = null;
7901
      }
7902
    }
7903
 
7904
    public void setFieldValue(_Fields field, Object value) {
7905
      switch (field) {
7906
      case SE:
7907
        if (value == null) {
7908
          unsetSe();
7909
        } else {
7910
          setSe((LogisticsServiceException)value);
7911
        }
7912
        break;
7913
 
7914
      }
7915
    }
7916
 
7917
    public Object getFieldValue(_Fields field) {
7918
      switch (field) {
7919
      case SE:
7920
        return getSe();
7921
 
7922
      }
7923
      throw new IllegalStateException();
7924
    }
7925
 
7926
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7927
    public boolean isSet(_Fields field) {
7928
      if (field == null) {
7929
        throw new IllegalArgumentException();
7930
      }
7931
 
7932
      switch (field) {
7933
      case SE:
7934
        return isSetSe();
7935
      }
7936
      throw new IllegalStateException();
7937
    }
7938
 
7939
    @Override
7940
    public boolean equals(Object that) {
7941
      if (that == null)
7942
        return false;
7943
      if (that instanceof storeShipmentInfo_result)
7944
        return this.equals((storeShipmentInfo_result)that);
7945
      return false;
7946
    }
7947
 
7948
    public boolean equals(storeShipmentInfo_result that) {
7949
      if (that == null)
7950
        return false;
7951
 
7952
      boolean this_present_se = true && this.isSetSe();
7953
      boolean that_present_se = true && that.isSetSe();
7954
      if (this_present_se || that_present_se) {
7955
        if (!(this_present_se && that_present_se))
7956
          return false;
7957
        if (!this.se.equals(that.se))
7958
          return false;
7959
      }
7960
 
7961
      return true;
7962
    }
7963
 
7964
    @Override
7965
    public int hashCode() {
7966
      return 0;
7967
    }
7968
 
7969
    public int compareTo(storeShipmentInfo_result other) {
7970
      if (!getClass().equals(other.getClass())) {
7971
        return getClass().getName().compareTo(other.getClass().getName());
7972
      }
7973
 
7974
      int lastComparison = 0;
7975
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
7976
 
7977
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7978
      if (lastComparison != 0) {
7979
        return lastComparison;
7980
      }
7981
      if (isSetSe()) {
7982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7983
        if (lastComparison != 0) {
7984
          return lastComparison;
7985
        }
7986
      }
7987
      return 0;
7988
    }
7989
 
7990
    public _Fields fieldForId(int fieldId) {
7991
      return _Fields.findByThriftId(fieldId);
7992
    }
7993
 
7994
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7995
      org.apache.thrift.protocol.TField field;
7996
      iprot.readStructBegin();
7997
      while (true)
7998
      {
7999
        field = iprot.readFieldBegin();
8000
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8001
          break;
8002
        }
8003
        switch (field.id) {
8004
          case 1: // SE
8005
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8006
              this.se = new LogisticsServiceException();
8007
              this.se.read(iprot);
8008
            } else { 
8009
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8010
            }
8011
            break;
8012
          default:
8013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8014
        }
8015
        iprot.readFieldEnd();
8016
      }
8017
      iprot.readStructEnd();
8018
      validate();
8019
    }
8020
 
8021
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8022
      oprot.writeStructBegin(STRUCT_DESC);
8023
 
8024
      if (this.isSetSe()) {
8025
        oprot.writeFieldBegin(SE_FIELD_DESC);
8026
        this.se.write(oprot);
8027
        oprot.writeFieldEnd();
8028
      }
8029
      oprot.writeFieldStop();
8030
      oprot.writeStructEnd();
8031
    }
8032
 
8033
    @Override
8034
    public String toString() {
8035
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8036
      boolean first = true;
8037
 
8038
      sb.append("se:");
8039
      if (this.se == null) {
8040
        sb.append("null");
8041
      } else {
8042
        sb.append(this.se);
8043
      }
8044
      first = false;
8045
      sb.append(")");
8046
      return sb.toString();
8047
    }
8048
 
8049
    public void validate() throws org.apache.thrift.TException {
8050
      // check for required fields
8051
    }
8052
 
8053
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8054
      try {
8055
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8056
      } catch (org.apache.thrift.TException te) {
8057
        throw new java.io.IOException(te);
8058
      }
8059
    }
8060
 
8061
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8062
      try {
8063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8064
      } catch (org.apache.thrift.TException te) {
8065
        throw new java.io.IOException(te);
8066
      }
8067
    }
8068
 
8069
  }
8070
 
3430 rajveer 8071
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8072
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8073
 
3430 rajveer 8074
    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);
8075
    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 8076
 
3430 rajveer 8077
    private long providerId; // required
8078
    private String pinCode; // required
730 chandransh 8079
 
8080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8081
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8082
      PROVIDER_ID((short)1, "providerId"),
8083
      PIN_CODE((short)2, "pinCode");
8084
 
8085
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8086
 
8087
      static {
8088
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8089
          byName.put(field.getFieldName(), field);
8090
        }
8091
      }
8092
 
8093
      /**
8094
       * Find the _Fields constant that matches fieldId, or null if its not found.
8095
       */
8096
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8097
        switch(fieldId) {
8098
          case 1: // PROVIDER_ID
8099
            return PROVIDER_ID;
8100
          case 2: // PIN_CODE
8101
            return PIN_CODE;
8102
          default:
8103
            return null;
8104
        }
730 chandransh 8105
      }
8106
 
8107
      /**
8108
       * Find the _Fields constant that matches fieldId, throwing an exception
8109
       * if it is not found.
8110
       */
8111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8112
        _Fields fields = findByThriftId(fieldId);
8113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8114
        return fields;
8115
      }
8116
 
8117
      /**
8118
       * Find the _Fields constant that matches name, or null if its not found.
8119
       */
8120
      public static _Fields findByName(String name) {
8121
        return byName.get(name);
8122
      }
8123
 
8124
      private final short _thriftId;
8125
      private final String _fieldName;
8126
 
8127
      _Fields(short thriftId, String fieldName) {
8128
        _thriftId = thriftId;
8129
        _fieldName = fieldName;
8130
      }
8131
 
8132
      public short getThriftFieldId() {
8133
        return _thriftId;
8134
      }
8135
 
8136
      public String getFieldName() {
8137
        return _fieldName;
8138
      }
8139
    }
8140
 
8141
    // isset id assignments
8142
    private static final int __PROVIDERID_ISSET_ID = 0;
8143
    private BitSet __isset_bit_vector = new BitSet(1);
8144
 
3430 rajveer 8145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8146
    static {
3430 rajveer 8147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8148
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8149
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8150
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8152
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8153
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8154
    }
8155
 
8156
    public getDestinationCode_args() {
8157
    }
8158
 
8159
    public getDestinationCode_args(
8160
      long providerId,
8161
      String pinCode)
8162
    {
8163
      this();
8164
      this.providerId = providerId;
8165
      setProviderIdIsSet(true);
8166
      this.pinCode = pinCode;
8167
    }
8168
 
8169
    /**
8170
     * Performs a deep copy on <i>other</i>.
8171
     */
8172
    public getDestinationCode_args(getDestinationCode_args other) {
8173
      __isset_bit_vector.clear();
8174
      __isset_bit_vector.or(other.__isset_bit_vector);
8175
      this.providerId = other.providerId;
8176
      if (other.isSetPinCode()) {
8177
        this.pinCode = other.pinCode;
8178
      }
8179
    }
8180
 
8181
    public getDestinationCode_args deepCopy() {
8182
      return new getDestinationCode_args(this);
8183
    }
8184
 
3430 rajveer 8185
    @Override
8186
    public void clear() {
8187
      setProviderIdIsSet(false);
8188
      this.providerId = 0;
8189
      this.pinCode = null;
730 chandransh 8190
    }
8191
 
8192
    public long getProviderId() {
8193
      return this.providerId;
8194
    }
8195
 
3430 rajveer 8196
    public void setProviderId(long providerId) {
730 chandransh 8197
      this.providerId = providerId;
8198
      setProviderIdIsSet(true);
8199
    }
8200
 
8201
    public void unsetProviderId() {
8202
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8203
    }
8204
 
3430 rajveer 8205
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8206
    public boolean isSetProviderId() {
8207
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8208
    }
8209
 
8210
    public void setProviderIdIsSet(boolean value) {
8211
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8212
    }
8213
 
8214
    public String getPinCode() {
8215
      return this.pinCode;
8216
    }
8217
 
3430 rajveer 8218
    public void setPinCode(String pinCode) {
730 chandransh 8219
      this.pinCode = pinCode;
8220
    }
8221
 
8222
    public void unsetPinCode() {
8223
      this.pinCode = null;
8224
    }
8225
 
3430 rajveer 8226
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8227
    public boolean isSetPinCode() {
8228
      return this.pinCode != null;
8229
    }
8230
 
8231
    public void setPinCodeIsSet(boolean value) {
8232
      if (!value) {
8233
        this.pinCode = null;
8234
      }
8235
    }
8236
 
8237
    public void setFieldValue(_Fields field, Object value) {
8238
      switch (field) {
8239
      case PROVIDER_ID:
8240
        if (value == null) {
8241
          unsetProviderId();
8242
        } else {
8243
          setProviderId((Long)value);
8244
        }
8245
        break;
8246
 
8247
      case PIN_CODE:
8248
        if (value == null) {
8249
          unsetPinCode();
8250
        } else {
8251
          setPinCode((String)value);
8252
        }
8253
        break;
8254
 
8255
      }
8256
    }
8257
 
8258
    public Object getFieldValue(_Fields field) {
8259
      switch (field) {
8260
      case PROVIDER_ID:
3430 rajveer 8261
        return Long.valueOf(getProviderId());
730 chandransh 8262
 
8263
      case PIN_CODE:
8264
        return getPinCode();
8265
 
8266
      }
8267
      throw new IllegalStateException();
8268
    }
8269
 
3430 rajveer 8270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8271
    public boolean isSet(_Fields field) {
8272
      if (field == null) {
8273
        throw new IllegalArgumentException();
8274
      }
730 chandransh 8275
 
8276
      switch (field) {
8277
      case PROVIDER_ID:
8278
        return isSetProviderId();
8279
      case PIN_CODE:
8280
        return isSetPinCode();
8281
      }
8282
      throw new IllegalStateException();
8283
    }
8284
 
8285
    @Override
8286
    public boolean equals(Object that) {
8287
      if (that == null)
8288
        return false;
8289
      if (that instanceof getDestinationCode_args)
8290
        return this.equals((getDestinationCode_args)that);
8291
      return false;
8292
    }
8293
 
8294
    public boolean equals(getDestinationCode_args that) {
8295
      if (that == null)
8296
        return false;
8297
 
8298
      boolean this_present_providerId = true;
8299
      boolean that_present_providerId = true;
8300
      if (this_present_providerId || that_present_providerId) {
8301
        if (!(this_present_providerId && that_present_providerId))
8302
          return false;
8303
        if (this.providerId != that.providerId)
8304
          return false;
8305
      }
8306
 
8307
      boolean this_present_pinCode = true && this.isSetPinCode();
8308
      boolean that_present_pinCode = true && that.isSetPinCode();
8309
      if (this_present_pinCode || that_present_pinCode) {
8310
        if (!(this_present_pinCode && that_present_pinCode))
8311
          return false;
8312
        if (!this.pinCode.equals(that.pinCode))
8313
          return false;
8314
      }
8315
 
8316
      return true;
8317
    }
8318
 
8319
    @Override
8320
    public int hashCode() {
8321
      return 0;
8322
    }
8323
 
8324
    public int compareTo(getDestinationCode_args other) {
8325
      if (!getClass().equals(other.getClass())) {
8326
        return getClass().getName().compareTo(other.getClass().getName());
8327
      }
8328
 
8329
      int lastComparison = 0;
8330
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8331
 
3430 rajveer 8332
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8333
      if (lastComparison != 0) {
8334
        return lastComparison;
8335
      }
3430 rajveer 8336
      if (isSetProviderId()) {
8337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8338
        if (lastComparison != 0) {
8339
          return lastComparison;
8340
        }
730 chandransh 8341
      }
3430 rajveer 8342
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8343
      if (lastComparison != 0) {
8344
        return lastComparison;
8345
      }
3430 rajveer 8346
      if (isSetPinCode()) {
8347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8348
        if (lastComparison != 0) {
8349
          return lastComparison;
8350
        }
730 chandransh 8351
      }
8352
      return 0;
8353
    }
8354
 
3430 rajveer 8355
    public _Fields fieldForId(int fieldId) {
8356
      return _Fields.findByThriftId(fieldId);
8357
    }
8358
 
8359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8360
      org.apache.thrift.protocol.TField field;
730 chandransh 8361
      iprot.readStructBegin();
8362
      while (true)
8363
      {
8364
        field = iprot.readFieldBegin();
3430 rajveer 8365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8366
          break;
8367
        }
3430 rajveer 8368
        switch (field.id) {
8369
          case 1: // PROVIDER_ID
8370
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8371
              this.providerId = iprot.readI64();
8372
              setProviderIdIsSet(true);
8373
            } else { 
8374
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8375
            }
8376
            break;
8377
          case 2: // PIN_CODE
8378
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8379
              this.pinCode = iprot.readString();
8380
            } else { 
8381
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8382
            }
8383
            break;
8384
          default:
8385
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8386
        }
3430 rajveer 8387
        iprot.readFieldEnd();
730 chandransh 8388
      }
8389
      iprot.readStructEnd();
8390
      validate();
8391
    }
8392
 
3430 rajveer 8393
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8394
      validate();
8395
 
8396
      oprot.writeStructBegin(STRUCT_DESC);
8397
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8398
      oprot.writeI64(this.providerId);
8399
      oprot.writeFieldEnd();
8400
      if (this.pinCode != null) {
8401
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8402
        oprot.writeString(this.pinCode);
8403
        oprot.writeFieldEnd();
8404
      }
8405
      oprot.writeFieldStop();
8406
      oprot.writeStructEnd();
8407
    }
8408
 
8409
    @Override
8410
    public String toString() {
8411
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8412
      boolean first = true;
8413
 
8414
      sb.append("providerId:");
8415
      sb.append(this.providerId);
8416
      first = false;
8417
      if (!first) sb.append(", ");
8418
      sb.append("pinCode:");
8419
      if (this.pinCode == null) {
8420
        sb.append("null");
8421
      } else {
8422
        sb.append(this.pinCode);
8423
      }
8424
      first = false;
8425
      sb.append(")");
8426
      return sb.toString();
8427
    }
8428
 
3430 rajveer 8429
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8430
      // check for required fields
8431
    }
8432
 
3430 rajveer 8433
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8434
      try {
8435
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8436
      } catch (org.apache.thrift.TException te) {
8437
        throw new java.io.IOException(te);
8438
      }
8439
    }
8440
 
8441
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8442
      try {
8443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8444
      } catch (org.apache.thrift.TException te) {
8445
        throw new java.io.IOException(te);
8446
      }
8447
    }
8448
 
730 chandransh 8449
  }
8450
 
3430 rajveer 8451
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8453
 
3430 rajveer 8454
    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);
8455
    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 8456
 
3430 rajveer 8457
    private String success; // required
8458
    private LogisticsServiceException se; // required
730 chandransh 8459
 
8460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8461
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8462
      SUCCESS((short)0, "success"),
8463
      SE((short)1, "se");
8464
 
8465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8466
 
8467
      static {
8468
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8469
          byName.put(field.getFieldName(), field);
8470
        }
8471
      }
8472
 
8473
      /**
8474
       * Find the _Fields constant that matches fieldId, or null if its not found.
8475
       */
8476
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8477
        switch(fieldId) {
8478
          case 0: // SUCCESS
8479
            return SUCCESS;
8480
          case 1: // SE
8481
            return SE;
8482
          default:
8483
            return null;
8484
        }
730 chandransh 8485
      }
8486
 
8487
      /**
8488
       * Find the _Fields constant that matches fieldId, throwing an exception
8489
       * if it is not found.
8490
       */
8491
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8492
        _Fields fields = findByThriftId(fieldId);
8493
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8494
        return fields;
8495
      }
8496
 
8497
      /**
8498
       * Find the _Fields constant that matches name, or null if its not found.
8499
       */
8500
      public static _Fields findByName(String name) {
8501
        return byName.get(name);
8502
      }
8503
 
8504
      private final short _thriftId;
8505
      private final String _fieldName;
8506
 
8507
      _Fields(short thriftId, String fieldName) {
8508
        _thriftId = thriftId;
8509
        _fieldName = fieldName;
8510
      }
8511
 
8512
      public short getThriftFieldId() {
8513
        return _thriftId;
8514
      }
8515
 
8516
      public String getFieldName() {
8517
        return _fieldName;
8518
      }
8519
    }
8520
 
8521
    // isset id assignments
8522
 
3430 rajveer 8523
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8524
    static {
3430 rajveer 8525
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8526
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8528
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8530
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8531
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8532
    }
8533
 
8534
    public getDestinationCode_result() {
8535
    }
8536
 
8537
    public getDestinationCode_result(
8538
      String success,
8539
      LogisticsServiceException se)
8540
    {
8541
      this();
8542
      this.success = success;
8543
      this.se = se;
8544
    }
8545
 
8546
    /**
8547
     * Performs a deep copy on <i>other</i>.
8548
     */
8549
    public getDestinationCode_result(getDestinationCode_result other) {
8550
      if (other.isSetSuccess()) {
8551
        this.success = other.success;
8552
      }
8553
      if (other.isSetSe()) {
8554
        this.se = new LogisticsServiceException(other.se);
8555
      }
8556
    }
8557
 
8558
    public getDestinationCode_result deepCopy() {
8559
      return new getDestinationCode_result(this);
8560
    }
8561
 
3430 rajveer 8562
    @Override
8563
    public void clear() {
8564
      this.success = null;
8565
      this.se = null;
730 chandransh 8566
    }
8567
 
8568
    public String getSuccess() {
8569
      return this.success;
8570
    }
8571
 
3430 rajveer 8572
    public void setSuccess(String success) {
730 chandransh 8573
      this.success = success;
8574
    }
8575
 
8576
    public void unsetSuccess() {
8577
      this.success = null;
8578
    }
8579
 
3430 rajveer 8580
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8581
    public boolean isSetSuccess() {
8582
      return this.success != null;
8583
    }
8584
 
8585
    public void setSuccessIsSet(boolean value) {
8586
      if (!value) {
8587
        this.success = null;
8588
      }
8589
    }
8590
 
8591
    public LogisticsServiceException getSe() {
8592
      return this.se;
8593
    }
8594
 
3430 rajveer 8595
    public void setSe(LogisticsServiceException se) {
730 chandransh 8596
      this.se = se;
8597
    }
8598
 
8599
    public void unsetSe() {
8600
      this.se = null;
8601
    }
8602
 
3430 rajveer 8603
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8604
    public boolean isSetSe() {
8605
      return this.se != null;
8606
    }
8607
 
8608
    public void setSeIsSet(boolean value) {
8609
      if (!value) {
8610
        this.se = null;
8611
      }
8612
    }
8613
 
8614
    public void setFieldValue(_Fields field, Object value) {
8615
      switch (field) {
8616
      case SUCCESS:
8617
        if (value == null) {
8618
          unsetSuccess();
8619
        } else {
8620
          setSuccess((String)value);
8621
        }
8622
        break;
8623
 
8624
      case SE:
8625
        if (value == null) {
8626
          unsetSe();
8627
        } else {
8628
          setSe((LogisticsServiceException)value);
8629
        }
8630
        break;
8631
 
8632
      }
8633
    }
8634
 
8635
    public Object getFieldValue(_Fields field) {
8636
      switch (field) {
8637
      case SUCCESS:
8638
        return getSuccess();
8639
 
8640
      case SE:
8641
        return getSe();
8642
 
8643
      }
8644
      throw new IllegalStateException();
8645
    }
8646
 
3430 rajveer 8647
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8648
    public boolean isSet(_Fields field) {
8649
      if (field == null) {
8650
        throw new IllegalArgumentException();
8651
      }
730 chandransh 8652
 
8653
      switch (field) {
8654
      case SUCCESS:
8655
        return isSetSuccess();
8656
      case SE:
8657
        return isSetSe();
8658
      }
8659
      throw new IllegalStateException();
8660
    }
8661
 
8662
    @Override
8663
    public boolean equals(Object that) {
8664
      if (that == null)
8665
        return false;
8666
      if (that instanceof getDestinationCode_result)
8667
        return this.equals((getDestinationCode_result)that);
8668
      return false;
8669
    }
8670
 
8671
    public boolean equals(getDestinationCode_result that) {
8672
      if (that == null)
8673
        return false;
8674
 
8675
      boolean this_present_success = true && this.isSetSuccess();
8676
      boolean that_present_success = true && that.isSetSuccess();
8677
      if (this_present_success || that_present_success) {
8678
        if (!(this_present_success && that_present_success))
8679
          return false;
8680
        if (!this.success.equals(that.success))
8681
          return false;
8682
      }
8683
 
8684
      boolean this_present_se = true && this.isSetSe();
8685
      boolean that_present_se = true && that.isSetSe();
8686
      if (this_present_se || that_present_se) {
8687
        if (!(this_present_se && that_present_se))
8688
          return false;
8689
        if (!this.se.equals(that.se))
8690
          return false;
8691
      }
8692
 
8693
      return true;
8694
    }
8695
 
8696
    @Override
8697
    public int hashCode() {
8698
      return 0;
8699
    }
8700
 
8701
    public int compareTo(getDestinationCode_result other) {
8702
      if (!getClass().equals(other.getClass())) {
8703
        return getClass().getName().compareTo(other.getClass().getName());
8704
      }
8705
 
8706
      int lastComparison = 0;
8707
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8708
 
3430 rajveer 8709
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8710
      if (lastComparison != 0) {
8711
        return lastComparison;
8712
      }
3430 rajveer 8713
      if (isSetSuccess()) {
8714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8715
        if (lastComparison != 0) {
8716
          return lastComparison;
8717
        }
730 chandransh 8718
      }
3430 rajveer 8719
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8720
      if (lastComparison != 0) {
8721
        return lastComparison;
8722
      }
3430 rajveer 8723
      if (isSetSe()) {
8724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8725
        if (lastComparison != 0) {
8726
          return lastComparison;
8727
        }
730 chandransh 8728
      }
8729
      return 0;
8730
    }
8731
 
3430 rajveer 8732
    public _Fields fieldForId(int fieldId) {
8733
      return _Fields.findByThriftId(fieldId);
8734
    }
8735
 
8736
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8737
      org.apache.thrift.protocol.TField field;
730 chandransh 8738
      iprot.readStructBegin();
8739
      while (true)
8740
      {
8741
        field = iprot.readFieldBegin();
3430 rajveer 8742
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8743
          break;
8744
        }
3430 rajveer 8745
        switch (field.id) {
8746
          case 0: // SUCCESS
8747
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8748
              this.success = iprot.readString();
8749
            } else { 
8750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8751
            }
8752
            break;
8753
          case 1: // SE
8754
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8755
              this.se = new LogisticsServiceException();
8756
              this.se.read(iprot);
8757
            } else { 
8758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8759
            }
8760
            break;
8761
          default:
8762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8763
        }
3430 rajveer 8764
        iprot.readFieldEnd();
730 chandransh 8765
      }
8766
      iprot.readStructEnd();
8767
      validate();
8768
    }
8769
 
3430 rajveer 8770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8771
      oprot.writeStructBegin(STRUCT_DESC);
8772
 
8773
      if (this.isSetSuccess()) {
8774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8775
        oprot.writeString(this.success);
8776
        oprot.writeFieldEnd();
8777
      } else if (this.isSetSe()) {
8778
        oprot.writeFieldBegin(SE_FIELD_DESC);
8779
        this.se.write(oprot);
8780
        oprot.writeFieldEnd();
8781
      }
8782
      oprot.writeFieldStop();
8783
      oprot.writeStructEnd();
8784
    }
8785
 
8786
    @Override
8787
    public String toString() {
8788
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
8789
      boolean first = true;
8790
 
8791
      sb.append("success:");
8792
      if (this.success == null) {
8793
        sb.append("null");
8794
      } else {
8795
        sb.append(this.success);
8796
      }
8797
      first = false;
8798
      if (!first) sb.append(", ");
8799
      sb.append("se:");
8800
      if (this.se == null) {
8801
        sb.append("null");
8802
      } else {
8803
        sb.append(this.se);
8804
      }
8805
      first = false;
8806
      sb.append(")");
8807
      return sb.toString();
8808
    }
8809
 
3430 rajveer 8810
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8811
      // check for required fields
8812
    }
8813
 
3430 rajveer 8814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8815
      try {
8816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8817
      } catch (org.apache.thrift.TException te) {
8818
        throw new java.io.IOException(te);
8819
      }
8820
    }
8821
 
8822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8823
      try {
8824
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8825
      } catch (org.apache.thrift.TException te) {
8826
        throw new java.io.IOException(te);
8827
      }
8828
    }
8829
 
730 chandransh 8830
  }
8831
 
3430 rajveer 8832
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
8833
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 8834
 
3430 rajveer 8835
    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);
8836
    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 8837
 
3430 rajveer 8838
    private long providerId; // required
8839
    private String type; // required
1139 chandransh 8840
 
8841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8842
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 8843
      PROVIDER_ID((short)1, "providerId"),
8844
      TYPE((short)2, "type");
1139 chandransh 8845
 
8846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8847
 
8848
      static {
8849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8850
          byName.put(field.getFieldName(), field);
8851
        }
8852
      }
8853
 
8854
      /**
8855
       * Find the _Fields constant that matches fieldId, or null if its not found.
8856
       */
8857
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8858
        switch(fieldId) {
8859
          case 1: // PROVIDER_ID
8860
            return PROVIDER_ID;
8861
          case 2: // TYPE
8862
            return TYPE;
8863
          default:
8864
            return null;
8865
        }
1139 chandransh 8866
      }
8867
 
8868
      /**
8869
       * Find the _Fields constant that matches fieldId, throwing an exception
8870
       * if it is not found.
8871
       */
8872
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8873
        _Fields fields = findByThriftId(fieldId);
8874
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8875
        return fields;
8876
      }
8877
 
8878
      /**
8879
       * Find the _Fields constant that matches name, or null if its not found.
8880
       */
8881
      public static _Fields findByName(String name) {
8882
        return byName.get(name);
8883
      }
8884
 
8885
      private final short _thriftId;
8886
      private final String _fieldName;
8887
 
8888
      _Fields(short thriftId, String fieldName) {
8889
        _thriftId = thriftId;
8890
        _fieldName = fieldName;
8891
      }
8892
 
8893
      public short getThriftFieldId() {
8894
        return _thriftId;
8895
      }
8896
 
8897
      public String getFieldName() {
8898
        return _fieldName;
8899
      }
8900
    }
8901
 
8902
    // isset id assignments
8903
    private static final int __PROVIDERID_ISSET_ID = 0;
8904
    private BitSet __isset_bit_vector = new BitSet(1);
8905
 
3430 rajveer 8906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8907
    static {
3430 rajveer 8908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8909
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8911
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8913
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8914
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 8915
    }
8916
 
8917
    public getFreeAwbCount_args() {
8918
    }
8919
 
8920
    public getFreeAwbCount_args(
3103 chandransh 8921
      long providerId,
8922
      String type)
1139 chandransh 8923
    {
8924
      this();
8925
      this.providerId = providerId;
8926
      setProviderIdIsSet(true);
3103 chandransh 8927
      this.type = type;
1139 chandransh 8928
    }
8929
 
8930
    /**
8931
     * Performs a deep copy on <i>other</i>.
8932
     */
8933
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
8934
      __isset_bit_vector.clear();
8935
      __isset_bit_vector.or(other.__isset_bit_vector);
8936
      this.providerId = other.providerId;
3103 chandransh 8937
      if (other.isSetType()) {
8938
        this.type = other.type;
8939
      }
1139 chandransh 8940
    }
8941
 
8942
    public getFreeAwbCount_args deepCopy() {
8943
      return new getFreeAwbCount_args(this);
8944
    }
8945
 
3430 rajveer 8946
    @Override
8947
    public void clear() {
8948
      setProviderIdIsSet(false);
8949
      this.providerId = 0;
8950
      this.type = null;
1139 chandransh 8951
    }
8952
 
8953
    public long getProviderId() {
8954
      return this.providerId;
8955
    }
8956
 
3430 rajveer 8957
    public void setProviderId(long providerId) {
1139 chandransh 8958
      this.providerId = providerId;
8959
      setProviderIdIsSet(true);
8960
    }
8961
 
8962
    public void unsetProviderId() {
8963
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8964
    }
8965
 
3430 rajveer 8966
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 8967
    public boolean isSetProviderId() {
8968
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8969
    }
8970
 
8971
    public void setProviderIdIsSet(boolean value) {
8972
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8973
    }
8974
 
3103 chandransh 8975
    public String getType() {
8976
      return this.type;
8977
    }
8978
 
3430 rajveer 8979
    public void setType(String type) {
3103 chandransh 8980
      this.type = type;
8981
    }
8982
 
8983
    public void unsetType() {
8984
      this.type = null;
8985
    }
8986
 
3430 rajveer 8987
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 8988
    public boolean isSetType() {
8989
      return this.type != null;
8990
    }
8991
 
8992
    public void setTypeIsSet(boolean value) {
8993
      if (!value) {
8994
        this.type = null;
8995
      }
8996
    }
8997
 
1139 chandransh 8998
    public void setFieldValue(_Fields field, Object value) {
8999
      switch (field) {
9000
      case PROVIDER_ID:
9001
        if (value == null) {
9002
          unsetProviderId();
9003
        } else {
9004
          setProviderId((Long)value);
9005
        }
9006
        break;
9007
 
3103 chandransh 9008
      case TYPE:
9009
        if (value == null) {
9010
          unsetType();
9011
        } else {
9012
          setType((String)value);
9013
        }
9014
        break;
9015
 
1139 chandransh 9016
      }
9017
    }
9018
 
9019
    public Object getFieldValue(_Fields field) {
9020
      switch (field) {
9021
      case PROVIDER_ID:
3430 rajveer 9022
        return Long.valueOf(getProviderId());
1139 chandransh 9023
 
3103 chandransh 9024
      case TYPE:
9025
        return getType();
9026
 
1139 chandransh 9027
      }
9028
      throw new IllegalStateException();
9029
    }
9030
 
3430 rajveer 9031
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9032
    public boolean isSet(_Fields field) {
9033
      if (field == null) {
9034
        throw new IllegalArgumentException();
9035
      }
1139 chandransh 9036
 
9037
      switch (field) {
9038
      case PROVIDER_ID:
9039
        return isSetProviderId();
3103 chandransh 9040
      case TYPE:
9041
        return isSetType();
1139 chandransh 9042
      }
9043
      throw new IllegalStateException();
9044
    }
9045
 
9046
    @Override
9047
    public boolean equals(Object that) {
9048
      if (that == null)
9049
        return false;
9050
      if (that instanceof getFreeAwbCount_args)
9051
        return this.equals((getFreeAwbCount_args)that);
9052
      return false;
9053
    }
9054
 
9055
    public boolean equals(getFreeAwbCount_args that) {
9056
      if (that == null)
9057
        return false;
9058
 
9059
      boolean this_present_providerId = true;
9060
      boolean that_present_providerId = true;
9061
      if (this_present_providerId || that_present_providerId) {
9062
        if (!(this_present_providerId && that_present_providerId))
9063
          return false;
9064
        if (this.providerId != that.providerId)
9065
          return false;
9066
      }
9067
 
3103 chandransh 9068
      boolean this_present_type = true && this.isSetType();
9069
      boolean that_present_type = true && that.isSetType();
9070
      if (this_present_type || that_present_type) {
9071
        if (!(this_present_type && that_present_type))
9072
          return false;
9073
        if (!this.type.equals(that.type))
9074
          return false;
9075
      }
9076
 
1139 chandransh 9077
      return true;
9078
    }
9079
 
9080
    @Override
9081
    public int hashCode() {
9082
      return 0;
9083
    }
9084
 
9085
    public int compareTo(getFreeAwbCount_args other) {
9086
      if (!getClass().equals(other.getClass())) {
9087
        return getClass().getName().compareTo(other.getClass().getName());
9088
      }
9089
 
9090
      int lastComparison = 0;
9091
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9092
 
3430 rajveer 9093
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9094
      if (lastComparison != 0) {
9095
        return lastComparison;
9096
      }
3430 rajveer 9097
      if (isSetProviderId()) {
9098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9099
        if (lastComparison != 0) {
9100
          return lastComparison;
9101
        }
1139 chandransh 9102
      }
3430 rajveer 9103
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9104
      if (lastComparison != 0) {
9105
        return lastComparison;
9106
      }
3430 rajveer 9107
      if (isSetType()) {
9108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9109
        if (lastComparison != 0) {
9110
          return lastComparison;
9111
        }
3103 chandransh 9112
      }
1139 chandransh 9113
      return 0;
9114
    }
9115
 
3430 rajveer 9116
    public _Fields fieldForId(int fieldId) {
9117
      return _Fields.findByThriftId(fieldId);
9118
    }
9119
 
9120
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9121
      org.apache.thrift.protocol.TField field;
1139 chandransh 9122
      iprot.readStructBegin();
9123
      while (true)
9124
      {
9125
        field = iprot.readFieldBegin();
3430 rajveer 9126
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9127
          break;
9128
        }
3430 rajveer 9129
        switch (field.id) {
9130
          case 1: // PROVIDER_ID
9131
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9132
              this.providerId = iprot.readI64();
9133
              setProviderIdIsSet(true);
9134
            } else { 
9135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9136
            }
9137
            break;
9138
          case 2: // TYPE
9139
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9140
              this.type = iprot.readString();
9141
            } else { 
9142
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9143
            }
9144
            break;
9145
          default:
9146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9147
        }
3430 rajveer 9148
        iprot.readFieldEnd();
1139 chandransh 9149
      }
9150
      iprot.readStructEnd();
9151
      validate();
9152
    }
9153
 
3430 rajveer 9154
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9155
      validate();
9156
 
9157
      oprot.writeStructBegin(STRUCT_DESC);
9158
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9159
      oprot.writeI64(this.providerId);
9160
      oprot.writeFieldEnd();
3103 chandransh 9161
      if (this.type != null) {
9162
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9163
        oprot.writeString(this.type);
9164
        oprot.writeFieldEnd();
9165
      }
1139 chandransh 9166
      oprot.writeFieldStop();
9167
      oprot.writeStructEnd();
9168
    }
9169
 
9170
    @Override
9171
    public String toString() {
9172
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9173
      boolean first = true;
9174
 
9175
      sb.append("providerId:");
9176
      sb.append(this.providerId);
9177
      first = false;
3103 chandransh 9178
      if (!first) sb.append(", ");
9179
      sb.append("type:");
9180
      if (this.type == null) {
9181
        sb.append("null");
9182
      } else {
9183
        sb.append(this.type);
9184
      }
9185
      first = false;
1139 chandransh 9186
      sb.append(")");
9187
      return sb.toString();
9188
    }
9189
 
3430 rajveer 9190
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9191
      // check for required fields
9192
    }
9193
 
3430 rajveer 9194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9195
      try {
9196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9197
      } catch (org.apache.thrift.TException te) {
9198
        throw new java.io.IOException(te);
9199
      }
9200
    }
9201
 
9202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9203
      try {
9204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9205
      } catch (org.apache.thrift.TException te) {
9206
        throw new java.io.IOException(te);
9207
      }
9208
    }
9209
 
1139 chandransh 9210
  }
9211
 
3430 rajveer 9212
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9214
 
3430 rajveer 9215
    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 9216
 
3430 rajveer 9217
    private long success; // required
1139 chandransh 9218
 
9219
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9220
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9221
      SUCCESS((short)0, "success");
9222
 
9223
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9224
 
9225
      static {
9226
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9227
          byName.put(field.getFieldName(), field);
9228
        }
9229
      }
9230
 
9231
      /**
9232
       * Find the _Fields constant that matches fieldId, or null if its not found.
9233
       */
9234
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9235
        switch(fieldId) {
9236
          case 0: // SUCCESS
9237
            return SUCCESS;
9238
          default:
9239
            return null;
9240
        }
1139 chandransh 9241
      }
9242
 
9243
      /**
9244
       * Find the _Fields constant that matches fieldId, throwing an exception
9245
       * if it is not found.
9246
       */
9247
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9248
        _Fields fields = findByThriftId(fieldId);
9249
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9250
        return fields;
9251
      }
9252
 
9253
      /**
9254
       * Find the _Fields constant that matches name, or null if its not found.
9255
       */
9256
      public static _Fields findByName(String name) {
9257
        return byName.get(name);
9258
      }
9259
 
9260
      private final short _thriftId;
9261
      private final String _fieldName;
9262
 
9263
      _Fields(short thriftId, String fieldName) {
9264
        _thriftId = thriftId;
9265
        _fieldName = fieldName;
9266
      }
9267
 
9268
      public short getThriftFieldId() {
9269
        return _thriftId;
9270
      }
9271
 
9272
      public String getFieldName() {
9273
        return _fieldName;
9274
      }
9275
    }
9276
 
9277
    // isset id assignments
9278
    private static final int __SUCCESS_ISSET_ID = 0;
9279
    private BitSet __isset_bit_vector = new BitSet(1);
9280
 
3430 rajveer 9281
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9282
    static {
3430 rajveer 9283
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9284
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9288
    }
9289
 
9290
    public getFreeAwbCount_result() {
9291
    }
9292
 
9293
    public getFreeAwbCount_result(
9294
      long success)
9295
    {
9296
      this();
9297
      this.success = success;
9298
      setSuccessIsSet(true);
9299
    }
9300
 
9301
    /**
9302
     * Performs a deep copy on <i>other</i>.
9303
     */
9304
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9305
      __isset_bit_vector.clear();
9306
      __isset_bit_vector.or(other.__isset_bit_vector);
9307
      this.success = other.success;
9308
    }
9309
 
9310
    public getFreeAwbCount_result deepCopy() {
9311
      return new getFreeAwbCount_result(this);
9312
    }
9313
 
3430 rajveer 9314
    @Override
9315
    public void clear() {
9316
      setSuccessIsSet(false);
9317
      this.success = 0;
1139 chandransh 9318
    }
9319
 
9320
    public long getSuccess() {
9321
      return this.success;
9322
    }
9323
 
3430 rajveer 9324
    public void setSuccess(long success) {
1139 chandransh 9325
      this.success = success;
9326
      setSuccessIsSet(true);
9327
    }
9328
 
9329
    public void unsetSuccess() {
9330
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9331
    }
9332
 
3430 rajveer 9333
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9334
    public boolean isSetSuccess() {
9335
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9336
    }
9337
 
9338
    public void setSuccessIsSet(boolean value) {
9339
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9340
    }
9341
 
9342
    public void setFieldValue(_Fields field, Object value) {
9343
      switch (field) {
9344
      case SUCCESS:
9345
        if (value == null) {
9346
          unsetSuccess();
9347
        } else {
9348
          setSuccess((Long)value);
9349
        }
9350
        break;
9351
 
9352
      }
9353
    }
9354
 
9355
    public Object getFieldValue(_Fields field) {
9356
      switch (field) {
9357
      case SUCCESS:
3430 rajveer 9358
        return Long.valueOf(getSuccess());
1139 chandransh 9359
 
9360
      }
9361
      throw new IllegalStateException();
9362
    }
9363
 
3430 rajveer 9364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9365
    public boolean isSet(_Fields field) {
9366
      if (field == null) {
9367
        throw new IllegalArgumentException();
9368
      }
1139 chandransh 9369
 
9370
      switch (field) {
9371
      case SUCCESS:
9372
        return isSetSuccess();
9373
      }
9374
      throw new IllegalStateException();
9375
    }
9376
 
9377
    @Override
9378
    public boolean equals(Object that) {
9379
      if (that == null)
9380
        return false;
9381
      if (that instanceof getFreeAwbCount_result)
9382
        return this.equals((getFreeAwbCount_result)that);
9383
      return false;
9384
    }
9385
 
9386
    public boolean equals(getFreeAwbCount_result that) {
9387
      if (that == null)
9388
        return false;
9389
 
9390
      boolean this_present_success = true;
9391
      boolean that_present_success = true;
9392
      if (this_present_success || that_present_success) {
9393
        if (!(this_present_success && that_present_success))
9394
          return false;
9395
        if (this.success != that.success)
9396
          return false;
9397
      }
9398
 
9399
      return true;
9400
    }
9401
 
9402
    @Override
9403
    public int hashCode() {
9404
      return 0;
9405
    }
9406
 
9407
    public int compareTo(getFreeAwbCount_result other) {
9408
      if (!getClass().equals(other.getClass())) {
9409
        return getClass().getName().compareTo(other.getClass().getName());
9410
      }
9411
 
9412
      int lastComparison = 0;
9413
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9414
 
3430 rajveer 9415
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9416
      if (lastComparison != 0) {
9417
        return lastComparison;
9418
      }
3430 rajveer 9419
      if (isSetSuccess()) {
9420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9421
        if (lastComparison != 0) {
9422
          return lastComparison;
9423
        }
1139 chandransh 9424
      }
9425
      return 0;
9426
    }
9427
 
3430 rajveer 9428
    public _Fields fieldForId(int fieldId) {
9429
      return _Fields.findByThriftId(fieldId);
9430
    }
9431
 
9432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9433
      org.apache.thrift.protocol.TField field;
1139 chandransh 9434
      iprot.readStructBegin();
9435
      while (true)
9436
      {
9437
        field = iprot.readFieldBegin();
3430 rajveer 9438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9439
          break;
9440
        }
3430 rajveer 9441
        switch (field.id) {
9442
          case 0: // SUCCESS
9443
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9444
              this.success = iprot.readI64();
9445
              setSuccessIsSet(true);
9446
            } else { 
9447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9448
            }
9449
            break;
9450
          default:
9451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9452
        }
3430 rajveer 9453
        iprot.readFieldEnd();
1139 chandransh 9454
      }
9455
      iprot.readStructEnd();
9456
      validate();
9457
    }
9458
 
3430 rajveer 9459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9460
      oprot.writeStructBegin(STRUCT_DESC);
9461
 
9462
      if (this.isSetSuccess()) {
9463
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9464
        oprot.writeI64(this.success);
9465
        oprot.writeFieldEnd();
9466
      }
9467
      oprot.writeFieldStop();
9468
      oprot.writeStructEnd();
9469
    }
9470
 
9471
    @Override
9472
    public String toString() {
9473
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9474
      boolean first = true;
9475
 
9476
      sb.append("success:");
9477
      sb.append(this.success);
9478
      first = false;
9479
      sb.append(")");
9480
      return sb.toString();
9481
    }
9482
 
3430 rajveer 9483
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9484
      // check for required fields
9485
    }
9486
 
3430 rajveer 9487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9488
      try {
9489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9490
      } catch (org.apache.thrift.TException te) {
9491
        throw new java.io.IOException(te);
9492
      }
9493
    }
9494
 
9495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9496
      try {
9497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9498
      } catch (org.apache.thrift.TException te) {
9499
        throw new java.io.IOException(te);
9500
      }
9501
    }
9502
 
1139 chandransh 9503
  }
9504
 
3430 rajveer 9505
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9507
 
3430 rajveer 9508
    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);
9509
    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 9510
 
3430 rajveer 9511
    private long fromDate; // required
9512
    private long toDate; // required
1730 ankur.sing 9513
 
9514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9516
      FROM_DATE((short)1, "fromDate"),
9517
      TO_DATE((short)2, "toDate");
9518
 
9519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9520
 
9521
      static {
9522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9523
          byName.put(field.getFieldName(), field);
9524
        }
9525
      }
9526
 
9527
      /**
9528
       * Find the _Fields constant that matches fieldId, or null if its not found.
9529
       */
9530
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9531
        switch(fieldId) {
9532
          case 1: // FROM_DATE
9533
            return FROM_DATE;
9534
          case 2: // TO_DATE
9535
            return TO_DATE;
9536
          default:
9537
            return null;
9538
        }
1730 ankur.sing 9539
      }
9540
 
9541
      /**
9542
       * Find the _Fields constant that matches fieldId, throwing an exception
9543
       * if it is not found.
9544
       */
9545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9546
        _Fields fields = findByThriftId(fieldId);
9547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9548
        return fields;
9549
      }
9550
 
9551
      /**
9552
       * Find the _Fields constant that matches name, or null if its not found.
9553
       */
9554
      public static _Fields findByName(String name) {
9555
        return byName.get(name);
9556
      }
9557
 
9558
      private final short _thriftId;
9559
      private final String _fieldName;
9560
 
9561
      _Fields(short thriftId, String fieldName) {
9562
        _thriftId = thriftId;
9563
        _fieldName = fieldName;
9564
      }
9565
 
9566
      public short getThriftFieldId() {
9567
        return _thriftId;
9568
      }
9569
 
9570
      public String getFieldName() {
9571
        return _fieldName;
9572
      }
9573
    }
9574
 
9575
    // isset id assignments
9576
    private static final int __FROMDATE_ISSET_ID = 0;
9577
    private static final int __TODATE_ISSET_ID = 1;
9578
    private BitSet __isset_bit_vector = new BitSet(2);
9579
 
3430 rajveer 9580
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9581
    static {
3430 rajveer 9582
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9583
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9585
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9586
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9587
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9588
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9589
    }
9590
 
9591
    public getHolidays_args() {
9592
    }
9593
 
9594
    public getHolidays_args(
9595
      long fromDate,
9596
      long toDate)
9597
    {
9598
      this();
9599
      this.fromDate = fromDate;
9600
      setFromDateIsSet(true);
9601
      this.toDate = toDate;
9602
      setToDateIsSet(true);
9603
    }
9604
 
9605
    /**
9606
     * Performs a deep copy on <i>other</i>.
9607
     */
9608
    public getHolidays_args(getHolidays_args other) {
9609
      __isset_bit_vector.clear();
9610
      __isset_bit_vector.or(other.__isset_bit_vector);
9611
      this.fromDate = other.fromDate;
9612
      this.toDate = other.toDate;
9613
    }
9614
 
9615
    public getHolidays_args deepCopy() {
9616
      return new getHolidays_args(this);
9617
    }
9618
 
3430 rajveer 9619
    @Override
9620
    public void clear() {
9621
      setFromDateIsSet(false);
9622
      this.fromDate = 0;
9623
      setToDateIsSet(false);
9624
      this.toDate = 0;
1730 ankur.sing 9625
    }
9626
 
9627
    public long getFromDate() {
9628
      return this.fromDate;
9629
    }
9630
 
3430 rajveer 9631
    public void setFromDate(long fromDate) {
1730 ankur.sing 9632
      this.fromDate = fromDate;
9633
      setFromDateIsSet(true);
9634
    }
9635
 
9636
    public void unsetFromDate() {
9637
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9638
    }
9639
 
3430 rajveer 9640
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9641
    public boolean isSetFromDate() {
9642
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9643
    }
9644
 
9645
    public void setFromDateIsSet(boolean value) {
9646
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9647
    }
9648
 
9649
    public long getToDate() {
9650
      return this.toDate;
9651
    }
9652
 
3430 rajveer 9653
    public void setToDate(long toDate) {
1730 ankur.sing 9654
      this.toDate = toDate;
9655
      setToDateIsSet(true);
9656
    }
9657
 
9658
    public void unsetToDate() {
9659
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9660
    }
9661
 
3430 rajveer 9662
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9663
    public boolean isSetToDate() {
9664
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9665
    }
9666
 
9667
    public void setToDateIsSet(boolean value) {
9668
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9669
    }
9670
 
9671
    public void setFieldValue(_Fields field, Object value) {
9672
      switch (field) {
9673
      case FROM_DATE:
9674
        if (value == null) {
9675
          unsetFromDate();
9676
        } else {
9677
          setFromDate((Long)value);
9678
        }
9679
        break;
9680
 
9681
      case TO_DATE:
9682
        if (value == null) {
9683
          unsetToDate();
9684
        } else {
9685
          setToDate((Long)value);
9686
        }
9687
        break;
9688
 
9689
      }
9690
    }
9691
 
9692
    public Object getFieldValue(_Fields field) {
9693
      switch (field) {
9694
      case FROM_DATE:
3430 rajveer 9695
        return Long.valueOf(getFromDate());
1730 ankur.sing 9696
 
9697
      case TO_DATE:
3430 rajveer 9698
        return Long.valueOf(getToDate());
1730 ankur.sing 9699
 
9700
      }
9701
      throw new IllegalStateException();
9702
    }
9703
 
3430 rajveer 9704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9705
    public boolean isSet(_Fields field) {
9706
      if (field == null) {
9707
        throw new IllegalArgumentException();
9708
      }
1730 ankur.sing 9709
 
9710
      switch (field) {
9711
      case FROM_DATE:
9712
        return isSetFromDate();
9713
      case TO_DATE:
9714
        return isSetToDate();
9715
      }
9716
      throw new IllegalStateException();
9717
    }
9718
 
9719
    @Override
9720
    public boolean equals(Object that) {
9721
      if (that == null)
9722
        return false;
9723
      if (that instanceof getHolidays_args)
9724
        return this.equals((getHolidays_args)that);
9725
      return false;
9726
    }
9727
 
9728
    public boolean equals(getHolidays_args that) {
9729
      if (that == null)
9730
        return false;
9731
 
9732
      boolean this_present_fromDate = true;
9733
      boolean that_present_fromDate = true;
9734
      if (this_present_fromDate || that_present_fromDate) {
9735
        if (!(this_present_fromDate && that_present_fromDate))
9736
          return false;
9737
        if (this.fromDate != that.fromDate)
9738
          return false;
9739
      }
9740
 
9741
      boolean this_present_toDate = true;
9742
      boolean that_present_toDate = true;
9743
      if (this_present_toDate || that_present_toDate) {
9744
        if (!(this_present_toDate && that_present_toDate))
9745
          return false;
9746
        if (this.toDate != that.toDate)
9747
          return false;
9748
      }
9749
 
9750
      return true;
9751
    }
9752
 
9753
    @Override
9754
    public int hashCode() {
9755
      return 0;
9756
    }
9757
 
9758
    public int compareTo(getHolidays_args other) {
9759
      if (!getClass().equals(other.getClass())) {
9760
        return getClass().getName().compareTo(other.getClass().getName());
9761
      }
9762
 
9763
      int lastComparison = 0;
9764
      getHolidays_args typedOther = (getHolidays_args)other;
9765
 
3430 rajveer 9766
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 9767
      if (lastComparison != 0) {
9768
        return lastComparison;
9769
      }
3430 rajveer 9770
      if (isSetFromDate()) {
9771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
9772
        if (lastComparison != 0) {
9773
          return lastComparison;
9774
        }
1730 ankur.sing 9775
      }
3430 rajveer 9776
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 9777
      if (lastComparison != 0) {
9778
        return lastComparison;
9779
      }
3430 rajveer 9780
      if (isSetToDate()) {
9781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
9782
        if (lastComparison != 0) {
9783
          return lastComparison;
9784
        }
1730 ankur.sing 9785
      }
9786
      return 0;
9787
    }
9788
 
3430 rajveer 9789
    public _Fields fieldForId(int fieldId) {
9790
      return _Fields.findByThriftId(fieldId);
9791
    }
9792
 
9793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9794
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9795
      iprot.readStructBegin();
9796
      while (true)
9797
      {
9798
        field = iprot.readFieldBegin();
3430 rajveer 9799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9800
          break;
9801
        }
3430 rajveer 9802
        switch (field.id) {
9803
          case 1: // FROM_DATE
9804
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9805
              this.fromDate = iprot.readI64();
9806
              setFromDateIsSet(true);
9807
            } else { 
9808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9809
            }
9810
            break;
9811
          case 2: // TO_DATE
9812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9813
              this.toDate = iprot.readI64();
9814
              setToDateIsSet(true);
9815
            } else { 
9816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9817
            }
9818
            break;
9819
          default:
9820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9821
        }
3430 rajveer 9822
        iprot.readFieldEnd();
1730 ankur.sing 9823
      }
9824
      iprot.readStructEnd();
9825
      validate();
9826
    }
9827
 
3430 rajveer 9828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9829
      validate();
9830
 
9831
      oprot.writeStructBegin(STRUCT_DESC);
9832
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
9833
      oprot.writeI64(this.fromDate);
9834
      oprot.writeFieldEnd();
9835
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
9836
      oprot.writeI64(this.toDate);
9837
      oprot.writeFieldEnd();
9838
      oprot.writeFieldStop();
9839
      oprot.writeStructEnd();
9840
    }
9841
 
9842
    @Override
9843
    public String toString() {
9844
      StringBuilder sb = new StringBuilder("getHolidays_args(");
9845
      boolean first = true;
9846
 
9847
      sb.append("fromDate:");
9848
      sb.append(this.fromDate);
9849
      first = false;
9850
      if (!first) sb.append(", ");
9851
      sb.append("toDate:");
9852
      sb.append(this.toDate);
9853
      first = false;
9854
      sb.append(")");
9855
      return sb.toString();
9856
    }
9857
 
3430 rajveer 9858
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9859
      // check for required fields
9860
    }
9861
 
3430 rajveer 9862
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9863
      try {
9864
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9865
      } catch (org.apache.thrift.TException te) {
9866
        throw new java.io.IOException(te);
9867
      }
9868
    }
9869
 
9870
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9871
      try {
9872
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9873
      } catch (org.apache.thrift.TException te) {
9874
        throw new java.io.IOException(te);
9875
      }
9876
    }
9877
 
1730 ankur.sing 9878
  }
9879
 
3430 rajveer 9880
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
9881
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 9882
 
3430 rajveer 9883
    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 9884
 
3430 rajveer 9885
    private List<Long> success; // required
1730 ankur.sing 9886
 
9887
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9888
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9889
      SUCCESS((short)0, "success");
9890
 
9891
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9892
 
9893
      static {
9894
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9895
          byName.put(field.getFieldName(), field);
9896
        }
9897
      }
9898
 
9899
      /**
9900
       * Find the _Fields constant that matches fieldId, or null if its not found.
9901
       */
9902
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9903
        switch(fieldId) {
9904
          case 0: // SUCCESS
9905
            return SUCCESS;
9906
          default:
9907
            return null;
9908
        }
1730 ankur.sing 9909
      }
9910
 
9911
      /**
9912
       * Find the _Fields constant that matches fieldId, throwing an exception
9913
       * if it is not found.
9914
       */
9915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9916
        _Fields fields = findByThriftId(fieldId);
9917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9918
        return fields;
9919
      }
9920
 
9921
      /**
9922
       * Find the _Fields constant that matches name, or null if its not found.
9923
       */
9924
      public static _Fields findByName(String name) {
9925
        return byName.get(name);
9926
      }
9927
 
9928
      private final short _thriftId;
9929
      private final String _fieldName;
9930
 
9931
      _Fields(short thriftId, String fieldName) {
9932
        _thriftId = thriftId;
9933
        _fieldName = fieldName;
9934
      }
9935
 
9936
      public short getThriftFieldId() {
9937
        return _thriftId;
9938
      }
9939
 
9940
      public String getFieldName() {
9941
        return _fieldName;
9942
      }
9943
    }
9944
 
9945
    // isset id assignments
9946
 
3430 rajveer 9947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9948
    static {
3430 rajveer 9949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9950
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9951
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9952
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 9955
    }
9956
 
9957
    public getHolidays_result() {
9958
    }
9959
 
9960
    public getHolidays_result(
9961
      List<Long> success)
9962
    {
9963
      this();
9964
      this.success = success;
9965
    }
9966
 
9967
    /**
9968
     * Performs a deep copy on <i>other</i>.
9969
     */
9970
    public getHolidays_result(getHolidays_result other) {
9971
      if (other.isSetSuccess()) {
9972
        List<Long> __this__success = new ArrayList<Long>();
9973
        for (Long other_element : other.success) {
9974
          __this__success.add(other_element);
9975
        }
9976
        this.success = __this__success;
9977
      }
9978
    }
9979
 
9980
    public getHolidays_result deepCopy() {
9981
      return new getHolidays_result(this);
9982
    }
9983
 
3430 rajveer 9984
    @Override
9985
    public void clear() {
9986
      this.success = null;
1730 ankur.sing 9987
    }
9988
 
9989
    public int getSuccessSize() {
9990
      return (this.success == null) ? 0 : this.success.size();
9991
    }
9992
 
9993
    public java.util.Iterator<Long> getSuccessIterator() {
9994
      return (this.success == null) ? null : this.success.iterator();
9995
    }
9996
 
9997
    public void addToSuccess(long elem) {
9998
      if (this.success == null) {
9999
        this.success = new ArrayList<Long>();
10000
      }
10001
      this.success.add(elem);
10002
    }
10003
 
10004
    public List<Long> getSuccess() {
10005
      return this.success;
10006
    }
10007
 
3430 rajveer 10008
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10009
      this.success = success;
10010
    }
10011
 
10012
    public void unsetSuccess() {
10013
      this.success = null;
10014
    }
10015
 
3430 rajveer 10016
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10017
    public boolean isSetSuccess() {
10018
      return this.success != null;
10019
    }
10020
 
10021
    public void setSuccessIsSet(boolean value) {
10022
      if (!value) {
10023
        this.success = null;
10024
      }
10025
    }
10026
 
10027
    public void setFieldValue(_Fields field, Object value) {
10028
      switch (field) {
10029
      case SUCCESS:
10030
        if (value == null) {
10031
          unsetSuccess();
10032
        } else {
10033
          setSuccess((List<Long>)value);
10034
        }
10035
        break;
10036
 
10037
      }
10038
    }
10039
 
10040
    public Object getFieldValue(_Fields field) {
10041
      switch (field) {
10042
      case SUCCESS:
10043
        return getSuccess();
10044
 
10045
      }
10046
      throw new IllegalStateException();
10047
    }
10048
 
3430 rajveer 10049
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10050
    public boolean isSet(_Fields field) {
10051
      if (field == null) {
10052
        throw new IllegalArgumentException();
10053
      }
1730 ankur.sing 10054
 
10055
      switch (field) {
10056
      case SUCCESS:
10057
        return isSetSuccess();
10058
      }
10059
      throw new IllegalStateException();
10060
    }
10061
 
10062
    @Override
10063
    public boolean equals(Object that) {
10064
      if (that == null)
10065
        return false;
10066
      if (that instanceof getHolidays_result)
10067
        return this.equals((getHolidays_result)that);
10068
      return false;
10069
    }
10070
 
10071
    public boolean equals(getHolidays_result that) {
10072
      if (that == null)
10073
        return false;
10074
 
10075
      boolean this_present_success = true && this.isSetSuccess();
10076
      boolean that_present_success = true && that.isSetSuccess();
10077
      if (this_present_success || that_present_success) {
10078
        if (!(this_present_success && that_present_success))
10079
          return false;
10080
        if (!this.success.equals(that.success))
10081
          return false;
10082
      }
10083
 
10084
      return true;
10085
    }
10086
 
10087
    @Override
10088
    public int hashCode() {
10089
      return 0;
10090
    }
10091
 
10092
    public int compareTo(getHolidays_result other) {
10093
      if (!getClass().equals(other.getClass())) {
10094
        return getClass().getName().compareTo(other.getClass().getName());
10095
      }
10096
 
10097
      int lastComparison = 0;
10098
      getHolidays_result typedOther = (getHolidays_result)other;
10099
 
3430 rajveer 10100
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10101
      if (lastComparison != 0) {
10102
        return lastComparison;
10103
      }
3430 rajveer 10104
      if (isSetSuccess()) {
10105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10106
        if (lastComparison != 0) {
10107
          return lastComparison;
10108
        }
1730 ankur.sing 10109
      }
10110
      return 0;
10111
    }
10112
 
3430 rajveer 10113
    public _Fields fieldForId(int fieldId) {
10114
      return _Fields.findByThriftId(fieldId);
10115
    }
10116
 
10117
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10118
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10119
      iprot.readStructBegin();
10120
      while (true)
10121
      {
10122
        field = iprot.readFieldBegin();
3430 rajveer 10123
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10124
          break;
10125
        }
3430 rajveer 10126
        switch (field.id) {
10127
          case 0: // SUCCESS
10128
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10129
              {
10130
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
10131
                this.success = new ArrayList<Long>(_list13.size);
10132
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 10133
                {
3430 rajveer 10134
                  long _elem15; // required
10135
                  _elem15 = iprot.readI64();
10136
                  this.success.add(_elem15);
1730 ankur.sing 10137
                }
3430 rajveer 10138
                iprot.readListEnd();
1730 ankur.sing 10139
              }
3430 rajveer 10140
            } else { 
10141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10142
            }
10143
            break;
10144
          default:
10145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10146
        }
3430 rajveer 10147
        iprot.readFieldEnd();
1730 ankur.sing 10148
      }
10149
      iprot.readStructEnd();
10150
      validate();
10151
    }
10152
 
3430 rajveer 10153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10154
      oprot.writeStructBegin(STRUCT_DESC);
10155
 
10156
      if (this.isSetSuccess()) {
10157
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10158
        {
3430 rajveer 10159
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 10160
          for (long _iter16 : this.success)
1730 ankur.sing 10161
          {
3044 chandransh 10162
            oprot.writeI64(_iter16);
1730 ankur.sing 10163
          }
10164
          oprot.writeListEnd();
10165
        }
10166
        oprot.writeFieldEnd();
10167
      }
10168
      oprot.writeFieldStop();
10169
      oprot.writeStructEnd();
10170
    }
10171
 
10172
    @Override
10173
    public String toString() {
10174
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10175
      boolean first = true;
10176
 
10177
      sb.append("success:");
10178
      if (this.success == null) {
10179
        sb.append("null");
10180
      } else {
10181
        sb.append(this.success);
10182
      }
10183
      first = false;
10184
      sb.append(")");
10185
      return sb.toString();
10186
    }
10187
 
3430 rajveer 10188
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10189
      // check for required fields
10190
    }
10191
 
3430 rajveer 10192
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10193
      try {
10194
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10195
      } catch (org.apache.thrift.TException te) {
10196
        throw new java.io.IOException(te);
10197
      }
10198
    }
10199
 
10200
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10201
      try {
10202
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10203
      } catch (org.apache.thrift.TException te) {
10204
        throw new java.io.IOException(te);
10205
      }
10206
    }
10207
 
1730 ankur.sing 10208
  }
10209
 
4934 amit.gupta 10210
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10211
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10212
 
10213
    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);
10214
    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);
10215
    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);
10216
 
10217
    private long catalogItemId; // required
10218
    private String destination_pin; // required
10219
    private DeliveryType type; // required
10220
 
10221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10223
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10224
      DESTINATION_PIN((short)2, "destination_pin"),
10225
      /**
10226
       * 
10227
       * @see DeliveryType
10228
       */
10229
      TYPE((short)3, "type");
10230
 
10231
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10232
 
10233
      static {
10234
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10235
          byName.put(field.getFieldName(), field);
10236
        }
10237
      }
10238
 
10239
      /**
10240
       * Find the _Fields constant that matches fieldId, or null if its not found.
10241
       */
10242
      public static _Fields findByThriftId(int fieldId) {
10243
        switch(fieldId) {
10244
          case 1: // CATALOG_ITEM_ID
10245
            return CATALOG_ITEM_ID;
10246
          case 2: // DESTINATION_PIN
10247
            return DESTINATION_PIN;
10248
          case 3: // TYPE
10249
            return TYPE;
10250
          default:
10251
            return null;
10252
        }
10253
      }
10254
 
10255
      /**
10256
       * Find the _Fields constant that matches fieldId, throwing an exception
10257
       * if it is not found.
10258
       */
10259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10260
        _Fields fields = findByThriftId(fieldId);
10261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10262
        return fields;
10263
      }
10264
 
10265
      /**
10266
       * Find the _Fields constant that matches name, or null if its not found.
10267
       */
10268
      public static _Fields findByName(String name) {
10269
        return byName.get(name);
10270
      }
10271
 
10272
      private final short _thriftId;
10273
      private final String _fieldName;
10274
 
10275
      _Fields(short thriftId, String fieldName) {
10276
        _thriftId = thriftId;
10277
        _fieldName = fieldName;
10278
      }
10279
 
10280
      public short getThriftFieldId() {
10281
        return _thriftId;
10282
      }
10283
 
10284
      public String getFieldName() {
10285
        return _fieldName;
10286
      }
10287
    }
10288
 
10289
    // isset id assignments
10290
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10291
    private BitSet __isset_bit_vector = new BitSet(1);
10292
 
10293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10294
    static {
10295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10296
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10297
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10298
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10300
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10301
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10304
    }
10305
 
10306
    public getEntityLogisticsEstimation_args() {
10307
    }
10308
 
10309
    public getEntityLogisticsEstimation_args(
10310
      long catalogItemId,
10311
      String destination_pin,
10312
      DeliveryType type)
10313
    {
10314
      this();
10315
      this.catalogItemId = catalogItemId;
10316
      setCatalogItemIdIsSet(true);
10317
      this.destination_pin = destination_pin;
10318
      this.type = type;
10319
    }
10320
 
10321
    /**
10322
     * Performs a deep copy on <i>other</i>.
10323
     */
10324
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10325
      __isset_bit_vector.clear();
10326
      __isset_bit_vector.or(other.__isset_bit_vector);
10327
      this.catalogItemId = other.catalogItemId;
10328
      if (other.isSetDestination_pin()) {
10329
        this.destination_pin = other.destination_pin;
10330
      }
10331
      if (other.isSetType()) {
10332
        this.type = other.type;
10333
      }
10334
    }
10335
 
10336
    public getEntityLogisticsEstimation_args deepCopy() {
10337
      return new getEntityLogisticsEstimation_args(this);
10338
    }
10339
 
10340
    @Override
10341
    public void clear() {
10342
      setCatalogItemIdIsSet(false);
10343
      this.catalogItemId = 0;
10344
      this.destination_pin = null;
10345
      this.type = null;
10346
    }
10347
 
10348
    public long getCatalogItemId() {
10349
      return this.catalogItemId;
10350
    }
10351
 
10352
    public void setCatalogItemId(long catalogItemId) {
10353
      this.catalogItemId = catalogItemId;
10354
      setCatalogItemIdIsSet(true);
10355
    }
10356
 
10357
    public void unsetCatalogItemId() {
10358
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10359
    }
10360
 
10361
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10362
    public boolean isSetCatalogItemId() {
10363
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10364
    }
10365
 
10366
    public void setCatalogItemIdIsSet(boolean value) {
10367
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10368
    }
10369
 
10370
    public String getDestination_pin() {
10371
      return this.destination_pin;
10372
    }
10373
 
10374
    public void setDestination_pin(String destination_pin) {
10375
      this.destination_pin = destination_pin;
10376
    }
10377
 
10378
    public void unsetDestination_pin() {
10379
      this.destination_pin = null;
10380
    }
10381
 
10382
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10383
    public boolean isSetDestination_pin() {
10384
      return this.destination_pin != null;
10385
    }
10386
 
10387
    public void setDestination_pinIsSet(boolean value) {
10388
      if (!value) {
10389
        this.destination_pin = null;
10390
      }
10391
    }
10392
 
10393
    /**
10394
     * 
10395
     * @see DeliveryType
10396
     */
10397
    public DeliveryType getType() {
10398
      return this.type;
10399
    }
10400
 
10401
    /**
10402
     * 
10403
     * @see DeliveryType
10404
     */
10405
    public void setType(DeliveryType type) {
10406
      this.type = type;
10407
    }
10408
 
10409
    public void unsetType() {
10410
      this.type = null;
10411
    }
10412
 
10413
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10414
    public boolean isSetType() {
10415
      return this.type != null;
10416
    }
10417
 
10418
    public void setTypeIsSet(boolean value) {
10419
      if (!value) {
10420
        this.type = null;
10421
      }
10422
    }
10423
 
10424
    public void setFieldValue(_Fields field, Object value) {
10425
      switch (field) {
10426
      case CATALOG_ITEM_ID:
10427
        if (value == null) {
10428
          unsetCatalogItemId();
10429
        } else {
10430
          setCatalogItemId((Long)value);
10431
        }
10432
        break;
10433
 
10434
      case DESTINATION_PIN:
10435
        if (value == null) {
10436
          unsetDestination_pin();
10437
        } else {
10438
          setDestination_pin((String)value);
10439
        }
10440
        break;
10441
 
10442
      case TYPE:
10443
        if (value == null) {
10444
          unsetType();
10445
        } else {
10446
          setType((DeliveryType)value);
10447
        }
10448
        break;
10449
 
10450
      }
10451
    }
10452
 
10453
    public Object getFieldValue(_Fields field) {
10454
      switch (field) {
10455
      case CATALOG_ITEM_ID:
10456
        return Long.valueOf(getCatalogItemId());
10457
 
10458
      case DESTINATION_PIN:
10459
        return getDestination_pin();
10460
 
10461
      case TYPE:
10462
        return getType();
10463
 
10464
      }
10465
      throw new IllegalStateException();
10466
    }
10467
 
10468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10469
    public boolean isSet(_Fields field) {
10470
      if (field == null) {
10471
        throw new IllegalArgumentException();
10472
      }
10473
 
10474
      switch (field) {
10475
      case CATALOG_ITEM_ID:
10476
        return isSetCatalogItemId();
10477
      case DESTINATION_PIN:
10478
        return isSetDestination_pin();
10479
      case TYPE:
10480
        return isSetType();
10481
      }
10482
      throw new IllegalStateException();
10483
    }
10484
 
10485
    @Override
10486
    public boolean equals(Object that) {
10487
      if (that == null)
10488
        return false;
10489
      if (that instanceof getEntityLogisticsEstimation_args)
10490
        return this.equals((getEntityLogisticsEstimation_args)that);
10491
      return false;
10492
    }
10493
 
10494
    public boolean equals(getEntityLogisticsEstimation_args that) {
10495
      if (that == null)
10496
        return false;
10497
 
10498
      boolean this_present_catalogItemId = true;
10499
      boolean that_present_catalogItemId = true;
10500
      if (this_present_catalogItemId || that_present_catalogItemId) {
10501
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10502
          return false;
10503
        if (this.catalogItemId != that.catalogItemId)
10504
          return false;
10505
      }
10506
 
10507
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10508
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10509
      if (this_present_destination_pin || that_present_destination_pin) {
10510
        if (!(this_present_destination_pin && that_present_destination_pin))
10511
          return false;
10512
        if (!this.destination_pin.equals(that.destination_pin))
10513
          return false;
10514
      }
10515
 
10516
      boolean this_present_type = true && this.isSetType();
10517
      boolean that_present_type = true && that.isSetType();
10518
      if (this_present_type || that_present_type) {
10519
        if (!(this_present_type && that_present_type))
10520
          return false;
10521
        if (!this.type.equals(that.type))
10522
          return false;
10523
      }
10524
 
10525
      return true;
10526
    }
10527
 
10528
    @Override
10529
    public int hashCode() {
10530
      return 0;
10531
    }
10532
 
10533
    public int compareTo(getEntityLogisticsEstimation_args other) {
10534
      if (!getClass().equals(other.getClass())) {
10535
        return getClass().getName().compareTo(other.getClass().getName());
10536
      }
10537
 
10538
      int lastComparison = 0;
10539
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10540
 
10541
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10542
      if (lastComparison != 0) {
10543
        return lastComparison;
10544
      }
10545
      if (isSetCatalogItemId()) {
10546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10547
        if (lastComparison != 0) {
10548
          return lastComparison;
10549
        }
10550
      }
10551
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10552
      if (lastComparison != 0) {
10553
        return lastComparison;
10554
      }
10555
      if (isSetDestination_pin()) {
10556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10557
        if (lastComparison != 0) {
10558
          return lastComparison;
10559
        }
10560
      }
10561
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10562
      if (lastComparison != 0) {
10563
        return lastComparison;
10564
      }
10565
      if (isSetType()) {
10566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10567
        if (lastComparison != 0) {
10568
          return lastComparison;
10569
        }
10570
      }
10571
      return 0;
10572
    }
10573
 
10574
    public _Fields fieldForId(int fieldId) {
10575
      return _Fields.findByThriftId(fieldId);
10576
    }
10577
 
10578
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10579
      org.apache.thrift.protocol.TField field;
10580
      iprot.readStructBegin();
10581
      while (true)
10582
      {
10583
        field = iprot.readFieldBegin();
10584
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10585
          break;
10586
        }
10587
        switch (field.id) {
10588
          case 1: // CATALOG_ITEM_ID
10589
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10590
              this.catalogItemId = iprot.readI64();
10591
              setCatalogItemIdIsSet(true);
10592
            } else { 
10593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10594
            }
10595
            break;
10596
          case 2: // DESTINATION_PIN
10597
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10598
              this.destination_pin = iprot.readString();
10599
            } else { 
10600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10601
            }
10602
            break;
10603
          case 3: // TYPE
10604
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10605
              this.type = DeliveryType.findByValue(iprot.readI32());
10606
            } else { 
10607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10608
            }
10609
            break;
10610
          default:
10611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10612
        }
10613
        iprot.readFieldEnd();
10614
      }
10615
      iprot.readStructEnd();
10616
      validate();
10617
    }
10618
 
10619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10620
      validate();
10621
 
10622
      oprot.writeStructBegin(STRUCT_DESC);
10623
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10624
      oprot.writeI64(this.catalogItemId);
10625
      oprot.writeFieldEnd();
10626
      if (this.destination_pin != null) {
10627
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10628
        oprot.writeString(this.destination_pin);
10629
        oprot.writeFieldEnd();
10630
      }
10631
      if (this.type != null) {
10632
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10633
        oprot.writeI32(this.type.getValue());
10634
        oprot.writeFieldEnd();
10635
      }
10636
      oprot.writeFieldStop();
10637
      oprot.writeStructEnd();
10638
    }
10639
 
10640
    @Override
10641
    public String toString() {
10642
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10643
      boolean first = true;
10644
 
10645
      sb.append("catalogItemId:");
10646
      sb.append(this.catalogItemId);
10647
      first = false;
10648
      if (!first) sb.append(", ");
10649
      sb.append("destination_pin:");
10650
      if (this.destination_pin == null) {
10651
        sb.append("null");
10652
      } else {
10653
        sb.append(this.destination_pin);
10654
      }
10655
      first = false;
10656
      if (!first) sb.append(", ");
10657
      sb.append("type:");
10658
      if (this.type == null) {
10659
        sb.append("null");
10660
      } else {
10661
        sb.append(this.type);
10662
      }
10663
      first = false;
10664
      sb.append(")");
10665
      return sb.toString();
10666
    }
10667
 
10668
    public void validate() throws org.apache.thrift.TException {
10669
      // check for required fields
10670
    }
10671
 
10672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10673
      try {
10674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10675
      } catch (org.apache.thrift.TException te) {
10676
        throw new java.io.IOException(te);
10677
      }
10678
    }
10679
 
10680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10681
      try {
10682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10683
      } catch (org.apache.thrift.TException te) {
10684
        throw new java.io.IOException(te);
10685
      }
10686
    }
10687
 
10688
  }
10689
 
10690
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10692
 
10693
    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);
10694
    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);
10695
 
10696
    private List<Long> success; // required
10697
    private LogisticsServiceException se; // required
10698
 
10699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10701
      SUCCESS((short)0, "success"),
10702
      SE((short)1, "se");
10703
 
10704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10705
 
10706
      static {
10707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10708
          byName.put(field.getFieldName(), field);
10709
        }
10710
      }
10711
 
10712
      /**
10713
       * Find the _Fields constant that matches fieldId, or null if its not found.
10714
       */
10715
      public static _Fields findByThriftId(int fieldId) {
10716
        switch(fieldId) {
10717
          case 0: // SUCCESS
10718
            return SUCCESS;
10719
          case 1: // SE
10720
            return SE;
10721
          default:
10722
            return null;
10723
        }
10724
      }
10725
 
10726
      /**
10727
       * Find the _Fields constant that matches fieldId, throwing an exception
10728
       * if it is not found.
10729
       */
10730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10731
        _Fields fields = findByThriftId(fieldId);
10732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10733
        return fields;
10734
      }
10735
 
10736
      /**
10737
       * Find the _Fields constant that matches name, or null if its not found.
10738
       */
10739
      public static _Fields findByName(String name) {
10740
        return byName.get(name);
10741
      }
10742
 
10743
      private final short _thriftId;
10744
      private final String _fieldName;
10745
 
10746
      _Fields(short thriftId, String fieldName) {
10747
        _thriftId = thriftId;
10748
        _fieldName = fieldName;
10749
      }
10750
 
10751
      public short getThriftFieldId() {
10752
        return _thriftId;
10753
      }
10754
 
10755
      public String getFieldName() {
10756
        return _fieldName;
10757
      }
10758
    }
10759
 
10760
    // isset id assignments
10761
 
10762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10763
    static {
10764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10765
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10766
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10767
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10768
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
10772
    }
10773
 
10774
    public getEntityLogisticsEstimation_result() {
10775
    }
10776
 
10777
    public getEntityLogisticsEstimation_result(
10778
      List<Long> success,
10779
      LogisticsServiceException se)
10780
    {
10781
      this();
10782
      this.success = success;
10783
      this.se = se;
10784
    }
10785
 
10786
    /**
10787
     * Performs a deep copy on <i>other</i>.
10788
     */
10789
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
10790
      if (other.isSetSuccess()) {
10791
        List<Long> __this__success = new ArrayList<Long>();
10792
        for (Long other_element : other.success) {
10793
          __this__success.add(other_element);
10794
        }
10795
        this.success = __this__success;
10796
      }
10797
      if (other.isSetSe()) {
10798
        this.se = new LogisticsServiceException(other.se);
10799
      }
10800
    }
10801
 
10802
    public getEntityLogisticsEstimation_result deepCopy() {
10803
      return new getEntityLogisticsEstimation_result(this);
10804
    }
10805
 
10806
    @Override
10807
    public void clear() {
10808
      this.success = null;
10809
      this.se = null;
10810
    }
10811
 
10812
    public int getSuccessSize() {
10813
      return (this.success == null) ? 0 : this.success.size();
10814
    }
10815
 
10816
    public java.util.Iterator<Long> getSuccessIterator() {
10817
      return (this.success == null) ? null : this.success.iterator();
10818
    }
10819
 
10820
    public void addToSuccess(long elem) {
10821
      if (this.success == null) {
10822
        this.success = new ArrayList<Long>();
10823
      }
10824
      this.success.add(elem);
10825
    }
10826
 
10827
    public List<Long> getSuccess() {
10828
      return this.success;
10829
    }
10830
 
10831
    public void setSuccess(List<Long> success) {
10832
      this.success = success;
10833
    }
10834
 
10835
    public void unsetSuccess() {
10836
      this.success = null;
10837
    }
10838
 
10839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10840
    public boolean isSetSuccess() {
10841
      return this.success != null;
10842
    }
10843
 
10844
    public void setSuccessIsSet(boolean value) {
10845
      if (!value) {
10846
        this.success = null;
10847
      }
10848
    }
10849
 
10850
    public LogisticsServiceException getSe() {
10851
      return this.se;
10852
    }
10853
 
10854
    public void setSe(LogisticsServiceException se) {
10855
      this.se = se;
10856
    }
10857
 
10858
    public void unsetSe() {
10859
      this.se = null;
10860
    }
10861
 
10862
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10863
    public boolean isSetSe() {
10864
      return this.se != null;
10865
    }
10866
 
10867
    public void setSeIsSet(boolean value) {
10868
      if (!value) {
10869
        this.se = null;
10870
      }
10871
    }
10872
 
10873
    public void setFieldValue(_Fields field, Object value) {
10874
      switch (field) {
10875
      case SUCCESS:
10876
        if (value == null) {
10877
          unsetSuccess();
10878
        } else {
10879
          setSuccess((List<Long>)value);
10880
        }
10881
        break;
10882
 
10883
      case SE:
10884
        if (value == null) {
10885
          unsetSe();
10886
        } else {
10887
          setSe((LogisticsServiceException)value);
10888
        }
10889
        break;
10890
 
10891
      }
10892
    }
10893
 
10894
    public Object getFieldValue(_Fields field) {
10895
      switch (field) {
10896
      case SUCCESS:
10897
        return getSuccess();
10898
 
10899
      case SE:
10900
        return getSe();
10901
 
10902
      }
10903
      throw new IllegalStateException();
10904
    }
10905
 
10906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10907
    public boolean isSet(_Fields field) {
10908
      if (field == null) {
10909
        throw new IllegalArgumentException();
10910
      }
10911
 
10912
      switch (field) {
10913
      case SUCCESS:
10914
        return isSetSuccess();
10915
      case SE:
10916
        return isSetSe();
10917
      }
10918
      throw new IllegalStateException();
10919
    }
10920
 
10921
    @Override
10922
    public boolean equals(Object that) {
10923
      if (that == null)
10924
        return false;
10925
      if (that instanceof getEntityLogisticsEstimation_result)
10926
        return this.equals((getEntityLogisticsEstimation_result)that);
10927
      return false;
10928
    }
10929
 
10930
    public boolean equals(getEntityLogisticsEstimation_result that) {
10931
      if (that == null)
10932
        return false;
10933
 
10934
      boolean this_present_success = true && this.isSetSuccess();
10935
      boolean that_present_success = true && that.isSetSuccess();
10936
      if (this_present_success || that_present_success) {
10937
        if (!(this_present_success && that_present_success))
10938
          return false;
10939
        if (!this.success.equals(that.success))
10940
          return false;
10941
      }
10942
 
10943
      boolean this_present_se = true && this.isSetSe();
10944
      boolean that_present_se = true && that.isSetSe();
10945
      if (this_present_se || that_present_se) {
10946
        if (!(this_present_se && that_present_se))
10947
          return false;
10948
        if (!this.se.equals(that.se))
10949
          return false;
10950
      }
10951
 
10952
      return true;
10953
    }
10954
 
10955
    @Override
10956
    public int hashCode() {
10957
      return 0;
10958
    }
10959
 
10960
    public int compareTo(getEntityLogisticsEstimation_result other) {
10961
      if (!getClass().equals(other.getClass())) {
10962
        return getClass().getName().compareTo(other.getClass().getName());
10963
      }
10964
 
10965
      int lastComparison = 0;
10966
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
10967
 
10968
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10969
      if (lastComparison != 0) {
10970
        return lastComparison;
10971
      }
10972
      if (isSetSuccess()) {
10973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10974
        if (lastComparison != 0) {
10975
          return lastComparison;
10976
        }
10977
      }
10978
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10979
      if (lastComparison != 0) {
10980
        return lastComparison;
10981
      }
10982
      if (isSetSe()) {
10983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10984
        if (lastComparison != 0) {
10985
          return lastComparison;
10986
        }
10987
      }
10988
      return 0;
10989
    }
10990
 
10991
    public _Fields fieldForId(int fieldId) {
10992
      return _Fields.findByThriftId(fieldId);
10993
    }
10994
 
10995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10996
      org.apache.thrift.protocol.TField field;
10997
      iprot.readStructBegin();
10998
      while (true)
10999
      {
11000
        field = iprot.readFieldBegin();
11001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11002
          break;
11003
        }
11004
        switch (field.id) {
11005
          case 0: // SUCCESS
11006
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11007
              {
11008
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
11009
                this.success = new ArrayList<Long>(_list17.size);
11010
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
11011
                {
11012
                  long _elem19; // required
11013
                  _elem19 = iprot.readI64();
11014
                  this.success.add(_elem19);
11015
                }
11016
                iprot.readListEnd();
11017
              }
11018
            } else { 
11019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11020
            }
11021
            break;
11022
          case 1: // SE
11023
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11024
              this.se = new LogisticsServiceException();
11025
              this.se.read(iprot);
11026
            } else { 
11027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11028
            }
11029
            break;
11030
          default:
11031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11032
        }
11033
        iprot.readFieldEnd();
11034
      }
11035
      iprot.readStructEnd();
11036
      validate();
11037
    }
11038
 
11039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11040
      oprot.writeStructBegin(STRUCT_DESC);
11041
 
11042
      if (this.isSetSuccess()) {
11043
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11044
        {
11045
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11046
          for (long _iter20 : this.success)
11047
          {
11048
            oprot.writeI64(_iter20);
11049
          }
11050
          oprot.writeListEnd();
11051
        }
11052
        oprot.writeFieldEnd();
11053
      } else if (this.isSetSe()) {
11054
        oprot.writeFieldBegin(SE_FIELD_DESC);
11055
        this.se.write(oprot);
11056
        oprot.writeFieldEnd();
11057
      }
11058
      oprot.writeFieldStop();
11059
      oprot.writeStructEnd();
11060
    }
11061
 
11062
    @Override
11063
    public String toString() {
11064
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11065
      boolean first = true;
11066
 
11067
      sb.append("success:");
11068
      if (this.success == null) {
11069
        sb.append("null");
11070
      } else {
11071
        sb.append(this.success);
11072
      }
11073
      first = false;
11074
      if (!first) sb.append(", ");
11075
      sb.append("se:");
11076
      if (this.se == null) {
11077
        sb.append("null");
11078
      } else {
11079
        sb.append(this.se);
11080
      }
11081
      first = false;
11082
      sb.append(")");
11083
      return sb.toString();
11084
    }
11085
 
11086
    public void validate() throws org.apache.thrift.TException {
11087
      // check for required fields
11088
    }
11089
 
11090
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11091
      try {
11092
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11093
      } catch (org.apache.thrift.TException te) {
11094
        throw new java.io.IOException(te);
11095
      }
11096
    }
11097
 
11098
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11099
      try {
11100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11101
      } catch (org.apache.thrift.TException te) {
11102
        throw new java.io.IOException(te);
11103
      }
11104
    }
11105
 
11106
  }
11107
 
5527 anupam.sin 11108
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11110
 
11111
    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);
11112
 
11113
    private long pickUp; // required
11114
 
11115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11117
      PICK_UP((short)1, "pickUp");
11118
 
11119
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11120
 
11121
      static {
11122
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11123
          byName.put(field.getFieldName(), field);
11124
        }
11125
      }
11126
 
11127
      /**
11128
       * Find the _Fields constant that matches fieldId, or null if its not found.
11129
       */
11130
      public static _Fields findByThriftId(int fieldId) {
11131
        switch(fieldId) {
11132
          case 1: // PICK_UP
11133
            return PICK_UP;
11134
          default:
11135
            return null;
11136
        }
11137
      }
11138
 
11139
      /**
11140
       * Find the _Fields constant that matches fieldId, throwing an exception
11141
       * if it is not found.
11142
       */
11143
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11144
        _Fields fields = findByThriftId(fieldId);
11145
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11146
        return fields;
11147
      }
11148
 
11149
      /**
11150
       * Find the _Fields constant that matches name, or null if its not found.
11151
       */
11152
      public static _Fields findByName(String name) {
11153
        return byName.get(name);
11154
      }
11155
 
11156
      private final short _thriftId;
11157
      private final String _fieldName;
11158
 
11159
      _Fields(short thriftId, String fieldName) {
11160
        _thriftId = thriftId;
11161
        _fieldName = fieldName;
11162
      }
11163
 
11164
      public short getThriftFieldId() {
11165
        return _thriftId;
11166
      }
11167
 
11168
      public String getFieldName() {
11169
        return _fieldName;
11170
      }
11171
    }
11172
 
11173
    // isset id assignments
11174
    private static final int __PICKUP_ISSET_ID = 0;
11175
    private BitSet __isset_bit_vector = new BitSet(1);
11176
 
11177
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11178
    static {
11179
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11180
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11181
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11184
    }
11185
 
11186
    public getProviderForPickupType_args() {
11187
    }
11188
 
11189
    public getProviderForPickupType_args(
11190
      long pickUp)
11191
    {
11192
      this();
11193
      this.pickUp = pickUp;
11194
      setPickUpIsSet(true);
11195
    }
11196
 
11197
    /**
11198
     * Performs a deep copy on <i>other</i>.
11199
     */
11200
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11201
      __isset_bit_vector.clear();
11202
      __isset_bit_vector.or(other.__isset_bit_vector);
11203
      this.pickUp = other.pickUp;
11204
    }
11205
 
11206
    public getProviderForPickupType_args deepCopy() {
11207
      return new getProviderForPickupType_args(this);
11208
    }
11209
 
11210
    @Override
11211
    public void clear() {
11212
      setPickUpIsSet(false);
11213
      this.pickUp = 0;
11214
    }
11215
 
11216
    public long getPickUp() {
11217
      return this.pickUp;
11218
    }
11219
 
11220
    public void setPickUp(long pickUp) {
11221
      this.pickUp = pickUp;
11222
      setPickUpIsSet(true);
11223
    }
11224
 
11225
    public void unsetPickUp() {
11226
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11227
    }
11228
 
11229
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11230
    public boolean isSetPickUp() {
11231
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11232
    }
11233
 
11234
    public void setPickUpIsSet(boolean value) {
11235
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11236
    }
11237
 
11238
    public void setFieldValue(_Fields field, Object value) {
11239
      switch (field) {
11240
      case PICK_UP:
11241
        if (value == null) {
11242
          unsetPickUp();
11243
        } else {
11244
          setPickUp((Long)value);
11245
        }
11246
        break;
11247
 
11248
      }
11249
    }
11250
 
11251
    public Object getFieldValue(_Fields field) {
11252
      switch (field) {
11253
      case PICK_UP:
11254
        return Long.valueOf(getPickUp());
11255
 
11256
      }
11257
      throw new IllegalStateException();
11258
    }
11259
 
11260
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11261
    public boolean isSet(_Fields field) {
11262
      if (field == null) {
11263
        throw new IllegalArgumentException();
11264
      }
11265
 
11266
      switch (field) {
11267
      case PICK_UP:
11268
        return isSetPickUp();
11269
      }
11270
      throw new IllegalStateException();
11271
    }
11272
 
11273
    @Override
11274
    public boolean equals(Object that) {
11275
      if (that == null)
11276
        return false;
11277
      if (that instanceof getProviderForPickupType_args)
11278
        return this.equals((getProviderForPickupType_args)that);
11279
      return false;
11280
    }
11281
 
11282
    public boolean equals(getProviderForPickupType_args that) {
11283
      if (that == null)
11284
        return false;
11285
 
11286
      boolean this_present_pickUp = true;
11287
      boolean that_present_pickUp = true;
11288
      if (this_present_pickUp || that_present_pickUp) {
11289
        if (!(this_present_pickUp && that_present_pickUp))
11290
          return false;
11291
        if (this.pickUp != that.pickUp)
11292
          return false;
11293
      }
11294
 
11295
      return true;
11296
    }
11297
 
11298
    @Override
11299
    public int hashCode() {
11300
      return 0;
11301
    }
11302
 
11303
    public int compareTo(getProviderForPickupType_args other) {
11304
      if (!getClass().equals(other.getClass())) {
11305
        return getClass().getName().compareTo(other.getClass().getName());
11306
      }
11307
 
11308
      int lastComparison = 0;
11309
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11310
 
11311
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11312
      if (lastComparison != 0) {
11313
        return lastComparison;
11314
      }
11315
      if (isSetPickUp()) {
11316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11317
        if (lastComparison != 0) {
11318
          return lastComparison;
11319
        }
11320
      }
11321
      return 0;
11322
    }
11323
 
11324
    public _Fields fieldForId(int fieldId) {
11325
      return _Fields.findByThriftId(fieldId);
11326
    }
11327
 
11328
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11329
      org.apache.thrift.protocol.TField field;
11330
      iprot.readStructBegin();
11331
      while (true)
11332
      {
11333
        field = iprot.readFieldBegin();
11334
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11335
          break;
11336
        }
11337
        switch (field.id) {
11338
          case 1: // PICK_UP
11339
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11340
              this.pickUp = iprot.readI64();
11341
              setPickUpIsSet(true);
11342
            } else { 
11343
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11344
            }
11345
            break;
11346
          default:
11347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11348
        }
11349
        iprot.readFieldEnd();
11350
      }
11351
      iprot.readStructEnd();
11352
      validate();
11353
    }
11354
 
11355
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11356
      validate();
11357
 
11358
      oprot.writeStructBegin(STRUCT_DESC);
11359
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11360
      oprot.writeI64(this.pickUp);
11361
      oprot.writeFieldEnd();
11362
      oprot.writeFieldStop();
11363
      oprot.writeStructEnd();
11364
    }
11365
 
11366
    @Override
11367
    public String toString() {
11368
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11369
      boolean first = true;
11370
 
11371
      sb.append("pickUp:");
11372
      sb.append(this.pickUp);
11373
      first = false;
11374
      sb.append(")");
11375
      return sb.toString();
11376
    }
11377
 
11378
    public void validate() throws org.apache.thrift.TException {
11379
      // check for required fields
11380
    }
11381
 
11382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11383
      try {
11384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11385
      } catch (org.apache.thrift.TException te) {
11386
        throw new java.io.IOException(te);
11387
      }
11388
    }
11389
 
11390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11391
      try {
11392
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11393
        __isset_bit_vector = new BitSet(1);
11394
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11395
      } catch (org.apache.thrift.TException te) {
11396
        throw new java.io.IOException(te);
11397
      }
11398
    }
11399
 
11400
  }
11401
 
11402
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11403
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11404
 
11405
    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);
11406
 
11407
    private long success; // required
11408
 
11409
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11410
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11411
      SUCCESS((short)0, "success");
11412
 
11413
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11414
 
11415
      static {
11416
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11417
          byName.put(field.getFieldName(), field);
11418
        }
11419
      }
11420
 
11421
      /**
11422
       * Find the _Fields constant that matches fieldId, or null if its not found.
11423
       */
11424
      public static _Fields findByThriftId(int fieldId) {
11425
        switch(fieldId) {
11426
          case 0: // SUCCESS
11427
            return SUCCESS;
11428
          default:
11429
            return null;
11430
        }
11431
      }
11432
 
11433
      /**
11434
       * Find the _Fields constant that matches fieldId, throwing an exception
11435
       * if it is not found.
11436
       */
11437
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11438
        _Fields fields = findByThriftId(fieldId);
11439
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11440
        return fields;
11441
      }
11442
 
11443
      /**
11444
       * Find the _Fields constant that matches name, or null if its not found.
11445
       */
11446
      public static _Fields findByName(String name) {
11447
        return byName.get(name);
11448
      }
11449
 
11450
      private final short _thriftId;
11451
      private final String _fieldName;
11452
 
11453
      _Fields(short thriftId, String fieldName) {
11454
        _thriftId = thriftId;
11455
        _fieldName = fieldName;
11456
      }
11457
 
11458
      public short getThriftFieldId() {
11459
        return _thriftId;
11460
      }
11461
 
11462
      public String getFieldName() {
11463
        return _fieldName;
11464
      }
11465
    }
11466
 
11467
    // isset id assignments
11468
    private static final int __SUCCESS_ISSET_ID = 0;
11469
    private BitSet __isset_bit_vector = new BitSet(1);
11470
 
11471
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11472
    static {
11473
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11474
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11475
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11476
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11477
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11478
    }
11479
 
11480
    public getProviderForPickupType_result() {
11481
    }
11482
 
11483
    public getProviderForPickupType_result(
11484
      long success)
11485
    {
11486
      this();
11487
      this.success = success;
11488
      setSuccessIsSet(true);
11489
    }
11490
 
11491
    /**
11492
     * Performs a deep copy on <i>other</i>.
11493
     */
11494
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11495
      __isset_bit_vector.clear();
11496
      __isset_bit_vector.or(other.__isset_bit_vector);
11497
      this.success = other.success;
11498
    }
11499
 
11500
    public getProviderForPickupType_result deepCopy() {
11501
      return new getProviderForPickupType_result(this);
11502
    }
11503
 
11504
    @Override
11505
    public void clear() {
11506
      setSuccessIsSet(false);
11507
      this.success = 0;
11508
    }
11509
 
11510
    public long getSuccess() {
11511
      return this.success;
11512
    }
11513
 
11514
    public void setSuccess(long success) {
11515
      this.success = success;
11516
      setSuccessIsSet(true);
11517
    }
11518
 
11519
    public void unsetSuccess() {
11520
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11521
    }
11522
 
11523
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11524
    public boolean isSetSuccess() {
11525
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11526
    }
11527
 
11528
    public void setSuccessIsSet(boolean value) {
11529
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11530
    }
11531
 
11532
    public void setFieldValue(_Fields field, Object value) {
11533
      switch (field) {
11534
      case SUCCESS:
11535
        if (value == null) {
11536
          unsetSuccess();
11537
        } else {
11538
          setSuccess((Long)value);
11539
        }
11540
        break;
11541
 
11542
      }
11543
    }
11544
 
11545
    public Object getFieldValue(_Fields field) {
11546
      switch (field) {
11547
      case SUCCESS:
11548
        return Long.valueOf(getSuccess());
11549
 
11550
      }
11551
      throw new IllegalStateException();
11552
    }
11553
 
11554
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11555
    public boolean isSet(_Fields field) {
11556
      if (field == null) {
11557
        throw new IllegalArgumentException();
11558
      }
11559
 
11560
      switch (field) {
11561
      case SUCCESS:
11562
        return isSetSuccess();
11563
      }
11564
      throw new IllegalStateException();
11565
    }
11566
 
11567
    @Override
11568
    public boolean equals(Object that) {
11569
      if (that == null)
11570
        return false;
11571
      if (that instanceof getProviderForPickupType_result)
11572
        return this.equals((getProviderForPickupType_result)that);
11573
      return false;
11574
    }
11575
 
11576
    public boolean equals(getProviderForPickupType_result that) {
11577
      if (that == null)
11578
        return false;
11579
 
11580
      boolean this_present_success = true;
11581
      boolean that_present_success = true;
11582
      if (this_present_success || that_present_success) {
11583
        if (!(this_present_success && that_present_success))
11584
          return false;
11585
        if (this.success != that.success)
11586
          return false;
11587
      }
11588
 
11589
      return true;
11590
    }
11591
 
11592
    @Override
11593
    public int hashCode() {
11594
      return 0;
11595
    }
11596
 
11597
    public int compareTo(getProviderForPickupType_result other) {
11598
      if (!getClass().equals(other.getClass())) {
11599
        return getClass().getName().compareTo(other.getClass().getName());
11600
      }
11601
 
11602
      int lastComparison = 0;
11603
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11604
 
11605
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11606
      if (lastComparison != 0) {
11607
        return lastComparison;
11608
      }
11609
      if (isSetSuccess()) {
11610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11611
        if (lastComparison != 0) {
11612
          return lastComparison;
11613
        }
11614
      }
11615
      return 0;
11616
    }
11617
 
11618
    public _Fields fieldForId(int fieldId) {
11619
      return _Fields.findByThriftId(fieldId);
11620
    }
11621
 
11622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11623
      org.apache.thrift.protocol.TField field;
11624
      iprot.readStructBegin();
11625
      while (true)
11626
      {
11627
        field = iprot.readFieldBegin();
11628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11629
          break;
11630
        }
11631
        switch (field.id) {
11632
          case 0: // SUCCESS
11633
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11634
              this.success = iprot.readI64();
11635
              setSuccessIsSet(true);
11636
            } else { 
11637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11638
            }
11639
            break;
11640
          default:
11641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11642
        }
11643
        iprot.readFieldEnd();
11644
      }
11645
      iprot.readStructEnd();
11646
      validate();
11647
    }
11648
 
11649
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11650
      oprot.writeStructBegin(STRUCT_DESC);
11651
 
11652
      if (this.isSetSuccess()) {
11653
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11654
        oprot.writeI64(this.success);
11655
        oprot.writeFieldEnd();
11656
      }
11657
      oprot.writeFieldStop();
11658
      oprot.writeStructEnd();
11659
    }
11660
 
11661
    @Override
11662
    public String toString() {
11663
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11664
      boolean first = true;
11665
 
11666
      sb.append("success:");
11667
      sb.append(this.success);
11668
      first = false;
11669
      sb.append(")");
11670
      return sb.toString();
11671
    }
11672
 
11673
    public void validate() throws org.apache.thrift.TException {
11674
      // check for required fields
11675
    }
11676
 
11677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11678
      try {
11679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11680
      } catch (org.apache.thrift.TException te) {
11681
        throw new java.io.IOException(te);
11682
      }
11683
    }
11684
 
11685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11686
      try {
11687
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11688
      } catch (org.apache.thrift.TException te) {
11689
        throw new java.io.IOException(te);
11690
      }
11691
    }
11692
 
11693
  }
11694
 
5553 rajveer 11695
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11697
 
11698
 
11699
 
11700
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11701
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11702
;
11703
 
11704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11705
 
11706
      static {
11707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11708
          byName.put(field.getFieldName(), field);
11709
        }
11710
      }
11711
 
11712
      /**
11713
       * Find the _Fields constant that matches fieldId, or null if its not found.
11714
       */
11715
      public static _Fields findByThriftId(int fieldId) {
11716
        switch(fieldId) {
11717
          default:
11718
            return null;
11719
        }
11720
      }
11721
 
11722
      /**
11723
       * Find the _Fields constant that matches fieldId, throwing an exception
11724
       * if it is not found.
11725
       */
11726
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11727
        _Fields fields = findByThriftId(fieldId);
11728
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11729
        return fields;
11730
      }
11731
 
11732
      /**
11733
       * Find the _Fields constant that matches name, or null if its not found.
11734
       */
11735
      public static _Fields findByName(String name) {
11736
        return byName.get(name);
11737
      }
11738
 
11739
      private final short _thriftId;
11740
      private final String _fieldName;
11741
 
11742
      _Fields(short thriftId, String fieldName) {
11743
        _thriftId = thriftId;
11744
        _fieldName = fieldName;
11745
      }
11746
 
11747
      public short getThriftFieldId() {
11748
        return _thriftId;
11749
      }
11750
 
11751
      public String getFieldName() {
11752
        return _fieldName;
11753
      }
11754
    }
11755
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11756
    static {
11757
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11758
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11759
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
11760
    }
11761
 
11762
    public getAllPickupStores_args() {
11763
    }
11764
 
11765
    /**
11766
     * Performs a deep copy on <i>other</i>.
11767
     */
11768
    public getAllPickupStores_args(getAllPickupStores_args other) {
11769
    }
11770
 
11771
    public getAllPickupStores_args deepCopy() {
11772
      return new getAllPickupStores_args(this);
11773
    }
11774
 
11775
    @Override
11776
    public void clear() {
11777
    }
11778
 
11779
    public void setFieldValue(_Fields field, Object value) {
11780
      switch (field) {
11781
      }
11782
    }
11783
 
11784
    public Object getFieldValue(_Fields field) {
11785
      switch (field) {
11786
      }
11787
      throw new IllegalStateException();
11788
    }
11789
 
11790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11791
    public boolean isSet(_Fields field) {
11792
      if (field == null) {
11793
        throw new IllegalArgumentException();
11794
      }
11795
 
11796
      switch (field) {
11797
      }
11798
      throw new IllegalStateException();
11799
    }
11800
 
11801
    @Override
11802
    public boolean equals(Object that) {
11803
      if (that == null)
11804
        return false;
11805
      if (that instanceof getAllPickupStores_args)
11806
        return this.equals((getAllPickupStores_args)that);
11807
      return false;
11808
    }
11809
 
11810
    public boolean equals(getAllPickupStores_args that) {
11811
      if (that == null)
11812
        return false;
11813
 
11814
      return true;
11815
    }
11816
 
11817
    @Override
11818
    public int hashCode() {
11819
      return 0;
11820
    }
11821
 
11822
    public int compareTo(getAllPickupStores_args other) {
11823
      if (!getClass().equals(other.getClass())) {
11824
        return getClass().getName().compareTo(other.getClass().getName());
11825
      }
11826
 
11827
      int lastComparison = 0;
11828
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
11829
 
11830
      return 0;
11831
    }
11832
 
11833
    public _Fields fieldForId(int fieldId) {
11834
      return _Fields.findByThriftId(fieldId);
11835
    }
11836
 
11837
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11838
      org.apache.thrift.protocol.TField field;
11839
      iprot.readStructBegin();
11840
      while (true)
11841
      {
11842
        field = iprot.readFieldBegin();
11843
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11844
          break;
11845
        }
11846
        switch (field.id) {
11847
          default:
11848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11849
        }
11850
        iprot.readFieldEnd();
11851
      }
11852
      iprot.readStructEnd();
11853
      validate();
11854
    }
11855
 
11856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11857
      validate();
11858
 
11859
      oprot.writeStructBegin(STRUCT_DESC);
11860
      oprot.writeFieldStop();
11861
      oprot.writeStructEnd();
11862
    }
11863
 
11864
    @Override
11865
    public String toString() {
11866
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
11867
      boolean first = true;
11868
 
11869
      sb.append(")");
11870
      return sb.toString();
11871
    }
11872
 
11873
    public void validate() throws org.apache.thrift.TException {
11874
      // check for required fields
11875
    }
11876
 
11877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11878
      try {
11879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11880
      } catch (org.apache.thrift.TException te) {
11881
        throw new java.io.IOException(te);
11882
      }
11883
    }
11884
 
11885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11886
      try {
11887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11888
      } catch (org.apache.thrift.TException te) {
11889
        throw new java.io.IOException(te);
11890
      }
11891
    }
11892
 
11893
  }
11894
 
11895
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
11896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
11897
 
11898
    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);
11899
 
11900
    private List<PickupStore> success; // required
11901
 
11902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11904
      SUCCESS((short)0, "success");
11905
 
11906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11907
 
11908
      static {
11909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11910
          byName.put(field.getFieldName(), field);
11911
        }
11912
      }
11913
 
11914
      /**
11915
       * Find the _Fields constant that matches fieldId, or null if its not found.
11916
       */
11917
      public static _Fields findByThriftId(int fieldId) {
11918
        switch(fieldId) {
11919
          case 0: // SUCCESS
11920
            return SUCCESS;
11921
          default:
11922
            return null;
11923
        }
11924
      }
11925
 
11926
      /**
11927
       * Find the _Fields constant that matches fieldId, throwing an exception
11928
       * if it is not found.
11929
       */
11930
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11931
        _Fields fields = findByThriftId(fieldId);
11932
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11933
        return fields;
11934
      }
11935
 
11936
      /**
11937
       * Find the _Fields constant that matches name, or null if its not found.
11938
       */
11939
      public static _Fields findByName(String name) {
11940
        return byName.get(name);
11941
      }
11942
 
11943
      private final short _thriftId;
11944
      private final String _fieldName;
11945
 
11946
      _Fields(short thriftId, String fieldName) {
11947
        _thriftId = thriftId;
11948
        _fieldName = fieldName;
11949
      }
11950
 
11951
      public short getThriftFieldId() {
11952
        return _thriftId;
11953
      }
11954
 
11955
      public String getFieldName() {
11956
        return _fieldName;
11957
      }
11958
    }
11959
 
11960
    // isset id assignments
11961
 
11962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11963
    static {
11964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11965
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11966
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11967
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
11968
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11969
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
11970
    }
11971
 
11972
    public getAllPickupStores_result() {
11973
    }
11974
 
11975
    public getAllPickupStores_result(
11976
      List<PickupStore> success)
11977
    {
11978
      this();
11979
      this.success = success;
11980
    }
11981
 
11982
    /**
11983
     * Performs a deep copy on <i>other</i>.
11984
     */
11985
    public getAllPickupStores_result(getAllPickupStores_result other) {
11986
      if (other.isSetSuccess()) {
11987
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
11988
        for (PickupStore other_element : other.success) {
11989
          __this__success.add(new PickupStore(other_element));
11990
        }
11991
        this.success = __this__success;
11992
      }
11993
    }
11994
 
11995
    public getAllPickupStores_result deepCopy() {
11996
      return new getAllPickupStores_result(this);
11997
    }
11998
 
11999
    @Override
12000
    public void clear() {
12001
      this.success = null;
12002
    }
12003
 
12004
    public int getSuccessSize() {
12005
      return (this.success == null) ? 0 : this.success.size();
12006
    }
12007
 
12008
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12009
      return (this.success == null) ? null : this.success.iterator();
12010
    }
12011
 
12012
    public void addToSuccess(PickupStore elem) {
12013
      if (this.success == null) {
12014
        this.success = new ArrayList<PickupStore>();
12015
      }
12016
      this.success.add(elem);
12017
    }
12018
 
12019
    public List<PickupStore> getSuccess() {
12020
      return this.success;
12021
    }
12022
 
12023
    public void setSuccess(List<PickupStore> success) {
12024
      this.success = success;
12025
    }
12026
 
12027
    public void unsetSuccess() {
12028
      this.success = null;
12029
    }
12030
 
12031
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12032
    public boolean isSetSuccess() {
12033
      return this.success != null;
12034
    }
12035
 
12036
    public void setSuccessIsSet(boolean value) {
12037
      if (!value) {
12038
        this.success = null;
12039
      }
12040
    }
12041
 
12042
    public void setFieldValue(_Fields field, Object value) {
12043
      switch (field) {
12044
      case SUCCESS:
12045
        if (value == null) {
12046
          unsetSuccess();
12047
        } else {
12048
          setSuccess((List<PickupStore>)value);
12049
        }
12050
        break;
12051
 
12052
      }
12053
    }
12054
 
12055
    public Object getFieldValue(_Fields field) {
12056
      switch (field) {
12057
      case SUCCESS:
12058
        return getSuccess();
12059
 
12060
      }
12061
      throw new IllegalStateException();
12062
    }
12063
 
12064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12065
    public boolean isSet(_Fields field) {
12066
      if (field == null) {
12067
        throw new IllegalArgumentException();
12068
      }
12069
 
12070
      switch (field) {
12071
      case SUCCESS:
12072
        return isSetSuccess();
12073
      }
12074
      throw new IllegalStateException();
12075
    }
12076
 
12077
    @Override
12078
    public boolean equals(Object that) {
12079
      if (that == null)
12080
        return false;
12081
      if (that instanceof getAllPickupStores_result)
12082
        return this.equals((getAllPickupStores_result)that);
12083
      return false;
12084
    }
12085
 
12086
    public boolean equals(getAllPickupStores_result that) {
12087
      if (that == null)
12088
        return false;
12089
 
12090
      boolean this_present_success = true && this.isSetSuccess();
12091
      boolean that_present_success = true && that.isSetSuccess();
12092
      if (this_present_success || that_present_success) {
12093
        if (!(this_present_success && that_present_success))
12094
          return false;
12095
        if (!this.success.equals(that.success))
12096
          return false;
12097
      }
12098
 
12099
      return true;
12100
    }
12101
 
12102
    @Override
12103
    public int hashCode() {
12104
      return 0;
12105
    }
12106
 
12107
    public int compareTo(getAllPickupStores_result other) {
12108
      if (!getClass().equals(other.getClass())) {
12109
        return getClass().getName().compareTo(other.getClass().getName());
12110
      }
12111
 
12112
      int lastComparison = 0;
12113
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12114
 
12115
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12116
      if (lastComparison != 0) {
12117
        return lastComparison;
12118
      }
12119
      if (isSetSuccess()) {
12120
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12121
        if (lastComparison != 0) {
12122
          return lastComparison;
12123
        }
12124
      }
12125
      return 0;
12126
    }
12127
 
12128
    public _Fields fieldForId(int fieldId) {
12129
      return _Fields.findByThriftId(fieldId);
12130
    }
12131
 
12132
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12133
      org.apache.thrift.protocol.TField field;
12134
      iprot.readStructBegin();
12135
      while (true)
12136
      {
12137
        field = iprot.readFieldBegin();
12138
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12139
          break;
12140
        }
12141
        switch (field.id) {
12142
          case 0: // SUCCESS
12143
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12144
              {
12145
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
12146
                this.success = new ArrayList<PickupStore>(_list21.size);
12147
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
12148
                {
12149
                  PickupStore _elem23; // required
12150
                  _elem23 = new PickupStore();
12151
                  _elem23.read(iprot);
12152
                  this.success.add(_elem23);
12153
                }
12154
                iprot.readListEnd();
12155
              }
12156
            } else { 
12157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12158
            }
12159
            break;
12160
          default:
12161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12162
        }
12163
        iprot.readFieldEnd();
12164
      }
12165
      iprot.readStructEnd();
12166
      validate();
12167
    }
12168
 
12169
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12170
      oprot.writeStructBegin(STRUCT_DESC);
12171
 
12172
      if (this.isSetSuccess()) {
12173
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12174
        {
12175
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12176
          for (PickupStore _iter24 : this.success)
12177
          {
12178
            _iter24.write(oprot);
12179
          }
12180
          oprot.writeListEnd();
12181
        }
12182
        oprot.writeFieldEnd();
12183
      }
12184
      oprot.writeFieldStop();
12185
      oprot.writeStructEnd();
12186
    }
12187
 
12188
    @Override
12189
    public String toString() {
12190
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12191
      boolean first = true;
12192
 
12193
      sb.append("success:");
12194
      if (this.success == null) {
12195
        sb.append("null");
12196
      } else {
12197
        sb.append(this.success);
12198
      }
12199
      first = false;
12200
      sb.append(")");
12201
      return sb.toString();
12202
    }
12203
 
12204
    public void validate() throws org.apache.thrift.TException {
12205
      // check for required fields
12206
    }
12207
 
12208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12209
      try {
12210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12211
      } catch (org.apache.thrift.TException te) {
12212
        throw new java.io.IOException(te);
12213
      }
12214
    }
12215
 
12216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12217
      try {
12218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12219
      } catch (org.apache.thrift.TException te) {
12220
        throw new java.io.IOException(te);
12221
      }
12222
    }
12223
 
12224
  }
12225
 
12226
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12228
 
12229
    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);
12230
 
12231
    private long storeId; // required
12232
 
12233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12235
      STORE_ID((short)1, "storeId");
12236
 
12237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12238
 
12239
      static {
12240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12241
          byName.put(field.getFieldName(), field);
12242
        }
12243
      }
12244
 
12245
      /**
12246
       * Find the _Fields constant that matches fieldId, or null if its not found.
12247
       */
12248
      public static _Fields findByThriftId(int fieldId) {
12249
        switch(fieldId) {
12250
          case 1: // STORE_ID
12251
            return STORE_ID;
12252
          default:
12253
            return null;
12254
        }
12255
      }
12256
 
12257
      /**
12258
       * Find the _Fields constant that matches fieldId, throwing an exception
12259
       * if it is not found.
12260
       */
12261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12262
        _Fields fields = findByThriftId(fieldId);
12263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12264
        return fields;
12265
      }
12266
 
12267
      /**
12268
       * Find the _Fields constant that matches name, or null if its not found.
12269
       */
12270
      public static _Fields findByName(String name) {
12271
        return byName.get(name);
12272
      }
12273
 
12274
      private final short _thriftId;
12275
      private final String _fieldName;
12276
 
12277
      _Fields(short thriftId, String fieldName) {
12278
        _thriftId = thriftId;
12279
        _fieldName = fieldName;
12280
      }
12281
 
12282
      public short getThriftFieldId() {
12283
        return _thriftId;
12284
      }
12285
 
12286
      public String getFieldName() {
12287
        return _fieldName;
12288
      }
12289
    }
12290
 
12291
    // isset id assignments
12292
    private static final int __STOREID_ISSET_ID = 0;
12293
    private BitSet __isset_bit_vector = new BitSet(1);
12294
 
12295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12296
    static {
12297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12298
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12302
    }
12303
 
12304
    public getPickupStore_args() {
12305
    }
12306
 
12307
    public getPickupStore_args(
12308
      long storeId)
12309
    {
12310
      this();
12311
      this.storeId = storeId;
12312
      setStoreIdIsSet(true);
12313
    }
12314
 
12315
    /**
12316
     * Performs a deep copy on <i>other</i>.
12317
     */
12318
    public getPickupStore_args(getPickupStore_args other) {
12319
      __isset_bit_vector.clear();
12320
      __isset_bit_vector.or(other.__isset_bit_vector);
12321
      this.storeId = other.storeId;
12322
    }
12323
 
12324
    public getPickupStore_args deepCopy() {
12325
      return new getPickupStore_args(this);
12326
    }
12327
 
12328
    @Override
12329
    public void clear() {
12330
      setStoreIdIsSet(false);
12331
      this.storeId = 0;
12332
    }
12333
 
12334
    public long getStoreId() {
12335
      return this.storeId;
12336
    }
12337
 
12338
    public void setStoreId(long storeId) {
12339
      this.storeId = storeId;
12340
      setStoreIdIsSet(true);
12341
    }
12342
 
12343
    public void unsetStoreId() {
12344
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12345
    }
12346
 
12347
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12348
    public boolean isSetStoreId() {
12349
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12350
    }
12351
 
12352
    public void setStoreIdIsSet(boolean value) {
12353
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12354
    }
12355
 
12356
    public void setFieldValue(_Fields field, Object value) {
12357
      switch (field) {
12358
      case STORE_ID:
12359
        if (value == null) {
12360
          unsetStoreId();
12361
        } else {
12362
          setStoreId((Long)value);
12363
        }
12364
        break;
12365
 
12366
      }
12367
    }
12368
 
12369
    public Object getFieldValue(_Fields field) {
12370
      switch (field) {
12371
      case STORE_ID:
12372
        return Long.valueOf(getStoreId());
12373
 
12374
      }
12375
      throw new IllegalStateException();
12376
    }
12377
 
12378
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12379
    public boolean isSet(_Fields field) {
12380
      if (field == null) {
12381
        throw new IllegalArgumentException();
12382
      }
12383
 
12384
      switch (field) {
12385
      case STORE_ID:
12386
        return isSetStoreId();
12387
      }
12388
      throw new IllegalStateException();
12389
    }
12390
 
12391
    @Override
12392
    public boolean equals(Object that) {
12393
      if (that == null)
12394
        return false;
12395
      if (that instanceof getPickupStore_args)
12396
        return this.equals((getPickupStore_args)that);
12397
      return false;
12398
    }
12399
 
12400
    public boolean equals(getPickupStore_args that) {
12401
      if (that == null)
12402
        return false;
12403
 
12404
      boolean this_present_storeId = true;
12405
      boolean that_present_storeId = true;
12406
      if (this_present_storeId || that_present_storeId) {
12407
        if (!(this_present_storeId && that_present_storeId))
12408
          return false;
12409
        if (this.storeId != that.storeId)
12410
          return false;
12411
      }
12412
 
12413
      return true;
12414
    }
12415
 
12416
    @Override
12417
    public int hashCode() {
12418
      return 0;
12419
    }
12420
 
12421
    public int compareTo(getPickupStore_args other) {
12422
      if (!getClass().equals(other.getClass())) {
12423
        return getClass().getName().compareTo(other.getClass().getName());
12424
      }
12425
 
12426
      int lastComparison = 0;
12427
      getPickupStore_args typedOther = (getPickupStore_args)other;
12428
 
12429
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12430
      if (lastComparison != 0) {
12431
        return lastComparison;
12432
      }
12433
      if (isSetStoreId()) {
12434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12435
        if (lastComparison != 0) {
12436
          return lastComparison;
12437
        }
12438
      }
12439
      return 0;
12440
    }
12441
 
12442
    public _Fields fieldForId(int fieldId) {
12443
      return _Fields.findByThriftId(fieldId);
12444
    }
12445
 
12446
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12447
      org.apache.thrift.protocol.TField field;
12448
      iprot.readStructBegin();
12449
      while (true)
12450
      {
12451
        field = iprot.readFieldBegin();
12452
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12453
          break;
12454
        }
12455
        switch (field.id) {
12456
          case 1: // STORE_ID
12457
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12458
              this.storeId = iprot.readI64();
12459
              setStoreIdIsSet(true);
12460
            } else { 
12461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12462
            }
12463
            break;
12464
          default:
12465
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12466
        }
12467
        iprot.readFieldEnd();
12468
      }
12469
      iprot.readStructEnd();
12470
      validate();
12471
    }
12472
 
12473
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12474
      validate();
12475
 
12476
      oprot.writeStructBegin(STRUCT_DESC);
12477
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12478
      oprot.writeI64(this.storeId);
12479
      oprot.writeFieldEnd();
12480
      oprot.writeFieldStop();
12481
      oprot.writeStructEnd();
12482
    }
12483
 
12484
    @Override
12485
    public String toString() {
12486
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12487
      boolean first = true;
12488
 
12489
      sb.append("storeId:");
12490
      sb.append(this.storeId);
12491
      first = false;
12492
      sb.append(")");
12493
      return sb.toString();
12494
    }
12495
 
12496
    public void validate() throws org.apache.thrift.TException {
12497
      // check for required fields
12498
    }
12499
 
12500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12501
      try {
12502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12503
      } catch (org.apache.thrift.TException te) {
12504
        throw new java.io.IOException(te);
12505
      }
12506
    }
12507
 
12508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12509
      try {
12510
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12511
        __isset_bit_vector = new BitSet(1);
12512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12513
      } catch (org.apache.thrift.TException te) {
12514
        throw new java.io.IOException(te);
12515
      }
12516
    }
12517
 
12518
  }
12519
 
12520
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12522
 
12523
    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);
12524
 
12525
    private PickupStore success; // required
12526
 
12527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12529
      SUCCESS((short)0, "success");
12530
 
12531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12532
 
12533
      static {
12534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12535
          byName.put(field.getFieldName(), field);
12536
        }
12537
      }
12538
 
12539
      /**
12540
       * Find the _Fields constant that matches fieldId, or null if its not found.
12541
       */
12542
      public static _Fields findByThriftId(int fieldId) {
12543
        switch(fieldId) {
12544
          case 0: // SUCCESS
12545
            return SUCCESS;
12546
          default:
12547
            return null;
12548
        }
12549
      }
12550
 
12551
      /**
12552
       * Find the _Fields constant that matches fieldId, throwing an exception
12553
       * if it is not found.
12554
       */
12555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12556
        _Fields fields = findByThriftId(fieldId);
12557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12558
        return fields;
12559
      }
12560
 
12561
      /**
12562
       * Find the _Fields constant that matches name, or null if its not found.
12563
       */
12564
      public static _Fields findByName(String name) {
12565
        return byName.get(name);
12566
      }
12567
 
12568
      private final short _thriftId;
12569
      private final String _fieldName;
12570
 
12571
      _Fields(short thriftId, String fieldName) {
12572
        _thriftId = thriftId;
12573
        _fieldName = fieldName;
12574
      }
12575
 
12576
      public short getThriftFieldId() {
12577
        return _thriftId;
12578
      }
12579
 
12580
      public String getFieldName() {
12581
        return _fieldName;
12582
      }
12583
    }
12584
 
12585
    // isset id assignments
12586
 
12587
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12588
    static {
12589
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12590
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12591
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12592
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12593
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12594
    }
12595
 
12596
    public getPickupStore_result() {
12597
    }
12598
 
12599
    public getPickupStore_result(
12600
      PickupStore success)
12601
    {
12602
      this();
12603
      this.success = success;
12604
    }
12605
 
12606
    /**
12607
     * Performs a deep copy on <i>other</i>.
12608
     */
12609
    public getPickupStore_result(getPickupStore_result other) {
12610
      if (other.isSetSuccess()) {
12611
        this.success = new PickupStore(other.success);
12612
      }
12613
    }
12614
 
12615
    public getPickupStore_result deepCopy() {
12616
      return new getPickupStore_result(this);
12617
    }
12618
 
12619
    @Override
12620
    public void clear() {
12621
      this.success = null;
12622
    }
12623
 
12624
    public PickupStore getSuccess() {
12625
      return this.success;
12626
    }
12627
 
12628
    public void setSuccess(PickupStore success) {
12629
      this.success = success;
12630
    }
12631
 
12632
    public void unsetSuccess() {
12633
      this.success = null;
12634
    }
12635
 
12636
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12637
    public boolean isSetSuccess() {
12638
      return this.success != null;
12639
    }
12640
 
12641
    public void setSuccessIsSet(boolean value) {
12642
      if (!value) {
12643
        this.success = null;
12644
      }
12645
    }
12646
 
12647
    public void setFieldValue(_Fields field, Object value) {
12648
      switch (field) {
12649
      case SUCCESS:
12650
        if (value == null) {
12651
          unsetSuccess();
12652
        } else {
12653
          setSuccess((PickupStore)value);
12654
        }
12655
        break;
12656
 
12657
      }
12658
    }
12659
 
12660
    public Object getFieldValue(_Fields field) {
12661
      switch (field) {
12662
      case SUCCESS:
12663
        return getSuccess();
12664
 
12665
      }
12666
      throw new IllegalStateException();
12667
    }
12668
 
12669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12670
    public boolean isSet(_Fields field) {
12671
      if (field == null) {
12672
        throw new IllegalArgumentException();
12673
      }
12674
 
12675
      switch (field) {
12676
      case SUCCESS:
12677
        return isSetSuccess();
12678
      }
12679
      throw new IllegalStateException();
12680
    }
12681
 
12682
    @Override
12683
    public boolean equals(Object that) {
12684
      if (that == null)
12685
        return false;
12686
      if (that instanceof getPickupStore_result)
12687
        return this.equals((getPickupStore_result)that);
12688
      return false;
12689
    }
12690
 
12691
    public boolean equals(getPickupStore_result that) {
12692
      if (that == null)
12693
        return false;
12694
 
12695
      boolean this_present_success = true && this.isSetSuccess();
12696
      boolean that_present_success = true && that.isSetSuccess();
12697
      if (this_present_success || that_present_success) {
12698
        if (!(this_present_success && that_present_success))
12699
          return false;
12700
        if (!this.success.equals(that.success))
12701
          return false;
12702
      }
12703
 
12704
      return true;
12705
    }
12706
 
12707
    @Override
12708
    public int hashCode() {
12709
      return 0;
12710
    }
12711
 
12712
    public int compareTo(getPickupStore_result other) {
12713
      if (!getClass().equals(other.getClass())) {
12714
        return getClass().getName().compareTo(other.getClass().getName());
12715
      }
12716
 
12717
      int lastComparison = 0;
12718
      getPickupStore_result typedOther = (getPickupStore_result)other;
12719
 
12720
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12721
      if (lastComparison != 0) {
12722
        return lastComparison;
12723
      }
12724
      if (isSetSuccess()) {
12725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12726
        if (lastComparison != 0) {
12727
          return lastComparison;
12728
        }
12729
      }
12730
      return 0;
12731
    }
12732
 
12733
    public _Fields fieldForId(int fieldId) {
12734
      return _Fields.findByThriftId(fieldId);
12735
    }
12736
 
12737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12738
      org.apache.thrift.protocol.TField field;
12739
      iprot.readStructBegin();
12740
      while (true)
12741
      {
12742
        field = iprot.readFieldBegin();
12743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12744
          break;
12745
        }
12746
        switch (field.id) {
12747
          case 0: // SUCCESS
12748
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12749
              this.success = new PickupStore();
12750
              this.success.read(iprot);
12751
            } else { 
12752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12753
            }
12754
            break;
12755
          default:
12756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12757
        }
12758
        iprot.readFieldEnd();
12759
      }
12760
      iprot.readStructEnd();
12761
      validate();
12762
    }
12763
 
12764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12765
      oprot.writeStructBegin(STRUCT_DESC);
12766
 
12767
      if (this.isSetSuccess()) {
12768
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12769
        this.success.write(oprot);
12770
        oprot.writeFieldEnd();
12771
      }
12772
      oprot.writeFieldStop();
12773
      oprot.writeStructEnd();
12774
    }
12775
 
12776
    @Override
12777
    public String toString() {
12778
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
12779
      boolean first = true;
12780
 
12781
      sb.append("success:");
12782
      if (this.success == null) {
12783
        sb.append("null");
12784
      } else {
12785
        sb.append(this.success);
12786
      }
12787
      first = false;
12788
      sb.append(")");
12789
      return sb.toString();
12790
    }
12791
 
12792
    public void validate() throws org.apache.thrift.TException {
12793
      // check for required fields
12794
    }
12795
 
12796
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12797
      try {
12798
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12799
      } catch (org.apache.thrift.TException te) {
12800
        throw new java.io.IOException(te);
12801
      }
12802
    }
12803
 
12804
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12805
      try {
12806
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12807
      } catch (org.apache.thrift.TException te) {
12808
        throw new java.io.IOException(te);
12809
      }
12810
    }
12811
 
12812
  }
12813
 
5719 rajveer 12814
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
12815
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
12816
 
12817
    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);
12818
 
12819
    private String hotspotId; // required
12820
 
12821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12823
      HOTSPOT_ID((short)1, "hotspotId");
12824
 
12825
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12826
 
12827
      static {
12828
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12829
          byName.put(field.getFieldName(), field);
12830
        }
12831
      }
12832
 
12833
      /**
12834
       * Find the _Fields constant that matches fieldId, or null if its not found.
12835
       */
12836
      public static _Fields findByThriftId(int fieldId) {
12837
        switch(fieldId) {
12838
          case 1: // HOTSPOT_ID
12839
            return HOTSPOT_ID;
12840
          default:
12841
            return null;
12842
        }
12843
      }
12844
 
12845
      /**
12846
       * Find the _Fields constant that matches fieldId, throwing an exception
12847
       * if it is not found.
12848
       */
12849
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12850
        _Fields fields = findByThriftId(fieldId);
12851
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12852
        return fields;
12853
      }
12854
 
12855
      /**
12856
       * Find the _Fields constant that matches name, or null if its not found.
12857
       */
12858
      public static _Fields findByName(String name) {
12859
        return byName.get(name);
12860
      }
12861
 
12862
      private final short _thriftId;
12863
      private final String _fieldName;
12864
 
12865
      _Fields(short thriftId, String fieldName) {
12866
        _thriftId = thriftId;
12867
        _fieldName = fieldName;
12868
      }
12869
 
12870
      public short getThriftFieldId() {
12871
        return _thriftId;
12872
      }
12873
 
12874
      public String getFieldName() {
12875
        return _fieldName;
12876
      }
12877
    }
12878
 
12879
    // isset id assignments
12880
 
12881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12882
    static {
12883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12884
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12885
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12886
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12887
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
12888
    }
12889
 
12890
    public getPickupStoreByHotspotId_args() {
12891
    }
12892
 
12893
    public getPickupStoreByHotspotId_args(
12894
      String hotspotId)
12895
    {
12896
      this();
12897
      this.hotspotId = hotspotId;
12898
    }
12899
 
12900
    /**
12901
     * Performs a deep copy on <i>other</i>.
12902
     */
12903
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
12904
      if (other.isSetHotspotId()) {
12905
        this.hotspotId = other.hotspotId;
12906
      }
12907
    }
12908
 
12909
    public getPickupStoreByHotspotId_args deepCopy() {
12910
      return new getPickupStoreByHotspotId_args(this);
12911
    }
12912
 
12913
    @Override
12914
    public void clear() {
12915
      this.hotspotId = null;
12916
    }
12917
 
12918
    public String getHotspotId() {
12919
      return this.hotspotId;
12920
    }
12921
 
12922
    public void setHotspotId(String hotspotId) {
12923
      this.hotspotId = hotspotId;
12924
    }
12925
 
12926
    public void unsetHotspotId() {
12927
      this.hotspotId = null;
12928
    }
12929
 
12930
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
12931
    public boolean isSetHotspotId() {
12932
      return this.hotspotId != null;
12933
    }
12934
 
12935
    public void setHotspotIdIsSet(boolean value) {
12936
      if (!value) {
12937
        this.hotspotId = null;
12938
      }
12939
    }
12940
 
12941
    public void setFieldValue(_Fields field, Object value) {
12942
      switch (field) {
12943
      case HOTSPOT_ID:
12944
        if (value == null) {
12945
          unsetHotspotId();
12946
        } else {
12947
          setHotspotId((String)value);
12948
        }
12949
        break;
12950
 
12951
      }
12952
    }
12953
 
12954
    public Object getFieldValue(_Fields field) {
12955
      switch (field) {
12956
      case HOTSPOT_ID:
12957
        return getHotspotId();
12958
 
12959
      }
12960
      throw new IllegalStateException();
12961
    }
12962
 
12963
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12964
    public boolean isSet(_Fields field) {
12965
      if (field == null) {
12966
        throw new IllegalArgumentException();
12967
      }
12968
 
12969
      switch (field) {
12970
      case HOTSPOT_ID:
12971
        return isSetHotspotId();
12972
      }
12973
      throw new IllegalStateException();
12974
    }
12975
 
12976
    @Override
12977
    public boolean equals(Object that) {
12978
      if (that == null)
12979
        return false;
12980
      if (that instanceof getPickupStoreByHotspotId_args)
12981
        return this.equals((getPickupStoreByHotspotId_args)that);
12982
      return false;
12983
    }
12984
 
12985
    public boolean equals(getPickupStoreByHotspotId_args that) {
12986
      if (that == null)
12987
        return false;
12988
 
12989
      boolean this_present_hotspotId = true && this.isSetHotspotId();
12990
      boolean that_present_hotspotId = true && that.isSetHotspotId();
12991
      if (this_present_hotspotId || that_present_hotspotId) {
12992
        if (!(this_present_hotspotId && that_present_hotspotId))
12993
          return false;
12994
        if (!this.hotspotId.equals(that.hotspotId))
12995
          return false;
12996
      }
12997
 
12998
      return true;
12999
    }
13000
 
13001
    @Override
13002
    public int hashCode() {
13003
      return 0;
13004
    }
13005
 
13006
    public int compareTo(getPickupStoreByHotspotId_args other) {
13007
      if (!getClass().equals(other.getClass())) {
13008
        return getClass().getName().compareTo(other.getClass().getName());
13009
      }
13010
 
13011
      int lastComparison = 0;
13012
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13013
 
13014
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13015
      if (lastComparison != 0) {
13016
        return lastComparison;
13017
      }
13018
      if (isSetHotspotId()) {
13019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13020
        if (lastComparison != 0) {
13021
          return lastComparison;
13022
        }
13023
      }
13024
      return 0;
13025
    }
13026
 
13027
    public _Fields fieldForId(int fieldId) {
13028
      return _Fields.findByThriftId(fieldId);
13029
    }
13030
 
13031
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13032
      org.apache.thrift.protocol.TField field;
13033
      iprot.readStructBegin();
13034
      while (true)
13035
      {
13036
        field = iprot.readFieldBegin();
13037
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13038
          break;
13039
        }
13040
        switch (field.id) {
13041
          case 1: // HOTSPOT_ID
13042
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13043
              this.hotspotId = iprot.readString();
13044
            } else { 
13045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13046
            }
13047
            break;
13048
          default:
13049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13050
        }
13051
        iprot.readFieldEnd();
13052
      }
13053
      iprot.readStructEnd();
13054
      validate();
13055
    }
13056
 
13057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13058
      validate();
13059
 
13060
      oprot.writeStructBegin(STRUCT_DESC);
13061
      if (this.hotspotId != null) {
13062
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13063
        oprot.writeString(this.hotspotId);
13064
        oprot.writeFieldEnd();
13065
      }
13066
      oprot.writeFieldStop();
13067
      oprot.writeStructEnd();
13068
    }
13069
 
13070
    @Override
13071
    public String toString() {
13072
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13073
      boolean first = true;
13074
 
13075
      sb.append("hotspotId:");
13076
      if (this.hotspotId == null) {
13077
        sb.append("null");
13078
      } else {
13079
        sb.append(this.hotspotId);
13080
      }
13081
      first = false;
13082
      sb.append(")");
13083
      return sb.toString();
13084
    }
13085
 
13086
    public void validate() throws org.apache.thrift.TException {
13087
      // check for required fields
13088
    }
13089
 
13090
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13091
      try {
13092
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13093
      } catch (org.apache.thrift.TException te) {
13094
        throw new java.io.IOException(te);
13095
      }
13096
    }
13097
 
13098
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13099
      try {
13100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13101
      } catch (org.apache.thrift.TException te) {
13102
        throw new java.io.IOException(te);
13103
      }
13104
    }
13105
 
13106
  }
13107
 
13108
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13110
 
13111
    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);
13112
 
13113
    private PickupStore success; // required
13114
 
13115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13117
      SUCCESS((short)0, "success");
13118
 
13119
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13120
 
13121
      static {
13122
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13123
          byName.put(field.getFieldName(), field);
13124
        }
13125
      }
13126
 
13127
      /**
13128
       * Find the _Fields constant that matches fieldId, or null if its not found.
13129
       */
13130
      public static _Fields findByThriftId(int fieldId) {
13131
        switch(fieldId) {
13132
          case 0: // SUCCESS
13133
            return SUCCESS;
13134
          default:
13135
            return null;
13136
        }
13137
      }
13138
 
13139
      /**
13140
       * Find the _Fields constant that matches fieldId, throwing an exception
13141
       * if it is not found.
13142
       */
13143
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13144
        _Fields fields = findByThriftId(fieldId);
13145
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13146
        return fields;
13147
      }
13148
 
13149
      /**
13150
       * Find the _Fields constant that matches name, or null if its not found.
13151
       */
13152
      public static _Fields findByName(String name) {
13153
        return byName.get(name);
13154
      }
13155
 
13156
      private final short _thriftId;
13157
      private final String _fieldName;
13158
 
13159
      _Fields(short thriftId, String fieldName) {
13160
        _thriftId = thriftId;
13161
        _fieldName = fieldName;
13162
      }
13163
 
13164
      public short getThriftFieldId() {
13165
        return _thriftId;
13166
      }
13167
 
13168
      public String getFieldName() {
13169
        return _fieldName;
13170
      }
13171
    }
13172
 
13173
    // isset id assignments
13174
 
13175
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13176
    static {
13177
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13178
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13179
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13182
    }
13183
 
13184
    public getPickupStoreByHotspotId_result() {
13185
    }
13186
 
13187
    public getPickupStoreByHotspotId_result(
13188
      PickupStore success)
13189
    {
13190
      this();
13191
      this.success = success;
13192
    }
13193
 
13194
    /**
13195
     * Performs a deep copy on <i>other</i>.
13196
     */
13197
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13198
      if (other.isSetSuccess()) {
13199
        this.success = new PickupStore(other.success);
13200
      }
13201
    }
13202
 
13203
    public getPickupStoreByHotspotId_result deepCopy() {
13204
      return new getPickupStoreByHotspotId_result(this);
13205
    }
13206
 
13207
    @Override
13208
    public void clear() {
13209
      this.success = null;
13210
    }
13211
 
13212
    public PickupStore getSuccess() {
13213
      return this.success;
13214
    }
13215
 
13216
    public void setSuccess(PickupStore success) {
13217
      this.success = success;
13218
    }
13219
 
13220
    public void unsetSuccess() {
13221
      this.success = null;
13222
    }
13223
 
13224
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13225
    public boolean isSetSuccess() {
13226
      return this.success != null;
13227
    }
13228
 
13229
    public void setSuccessIsSet(boolean value) {
13230
      if (!value) {
13231
        this.success = null;
13232
      }
13233
    }
13234
 
13235
    public void setFieldValue(_Fields field, Object value) {
13236
      switch (field) {
13237
      case SUCCESS:
13238
        if (value == null) {
13239
          unsetSuccess();
13240
        } else {
13241
          setSuccess((PickupStore)value);
13242
        }
13243
        break;
13244
 
13245
      }
13246
    }
13247
 
13248
    public Object getFieldValue(_Fields field) {
13249
      switch (field) {
13250
      case SUCCESS:
13251
        return getSuccess();
13252
 
13253
      }
13254
      throw new IllegalStateException();
13255
    }
13256
 
13257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13258
    public boolean isSet(_Fields field) {
13259
      if (field == null) {
13260
        throw new IllegalArgumentException();
13261
      }
13262
 
13263
      switch (field) {
13264
      case SUCCESS:
13265
        return isSetSuccess();
13266
      }
13267
      throw new IllegalStateException();
13268
    }
13269
 
13270
    @Override
13271
    public boolean equals(Object that) {
13272
      if (that == null)
13273
        return false;
13274
      if (that instanceof getPickupStoreByHotspotId_result)
13275
        return this.equals((getPickupStoreByHotspotId_result)that);
13276
      return false;
13277
    }
13278
 
13279
    public boolean equals(getPickupStoreByHotspotId_result that) {
13280
      if (that == null)
13281
        return false;
13282
 
13283
      boolean this_present_success = true && this.isSetSuccess();
13284
      boolean that_present_success = true && that.isSetSuccess();
13285
      if (this_present_success || that_present_success) {
13286
        if (!(this_present_success && that_present_success))
13287
          return false;
13288
        if (!this.success.equals(that.success))
13289
          return false;
13290
      }
13291
 
13292
      return true;
13293
    }
13294
 
13295
    @Override
13296
    public int hashCode() {
13297
      return 0;
13298
    }
13299
 
13300
    public int compareTo(getPickupStoreByHotspotId_result other) {
13301
      if (!getClass().equals(other.getClass())) {
13302
        return getClass().getName().compareTo(other.getClass().getName());
13303
      }
13304
 
13305
      int lastComparison = 0;
13306
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13307
 
13308
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13309
      if (lastComparison != 0) {
13310
        return lastComparison;
13311
      }
13312
      if (isSetSuccess()) {
13313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13314
        if (lastComparison != 0) {
13315
          return lastComparison;
13316
        }
13317
      }
13318
      return 0;
13319
    }
13320
 
13321
    public _Fields fieldForId(int fieldId) {
13322
      return _Fields.findByThriftId(fieldId);
13323
    }
13324
 
13325
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13326
      org.apache.thrift.protocol.TField field;
13327
      iprot.readStructBegin();
13328
      while (true)
13329
      {
13330
        field = iprot.readFieldBegin();
13331
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13332
          break;
13333
        }
13334
        switch (field.id) {
13335
          case 0: // SUCCESS
13336
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13337
              this.success = new PickupStore();
13338
              this.success.read(iprot);
13339
            } else { 
13340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13341
            }
13342
            break;
13343
          default:
13344
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13345
        }
13346
        iprot.readFieldEnd();
13347
      }
13348
      iprot.readStructEnd();
13349
      validate();
13350
    }
13351
 
13352
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13353
      oprot.writeStructBegin(STRUCT_DESC);
13354
 
13355
      if (this.isSetSuccess()) {
13356
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13357
        this.success.write(oprot);
13358
        oprot.writeFieldEnd();
13359
      }
13360
      oprot.writeFieldStop();
13361
      oprot.writeStructEnd();
13362
    }
13363
 
13364
    @Override
13365
    public String toString() {
13366
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13367
      boolean first = true;
13368
 
13369
      sb.append("success:");
13370
      if (this.success == null) {
13371
        sb.append("null");
13372
      } else {
13373
        sb.append(this.success);
13374
      }
13375
      first = false;
13376
      sb.append(")");
13377
      return sb.toString();
13378
    }
13379
 
13380
    public void validate() throws org.apache.thrift.TException {
13381
      // check for required fields
13382
    }
13383
 
13384
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13385
      try {
13386
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13387
      } catch (org.apache.thrift.TException te) {
13388
        throw new java.io.IOException(te);
13389
      }
13390
    }
13391
 
13392
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13393
      try {
13394
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13395
      } catch (org.apache.thrift.TException te) {
13396
        throw new java.io.IOException(te);
13397
      }
13398
    }
13399
 
13400
  }
13401
 
6322 amar.kumar 13402
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13403
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13404
 
13405
    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);
13406
    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);
13407
    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);
13408
    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);
13409
    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);
13410
    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 13411
    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 13412
 
13413
    private long providerId; // required
13414
    private String pincode; // required
13415
    private String destCode; // required
13416
    private boolean exp; // required
13417
    private boolean cod; // required
13418
    private int stationType; // required
6524 rajveer 13419
    private boolean otgAvailable; // required
6322 amar.kumar 13420
 
13421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13423
      PROVIDER_ID((short)1, "providerId"),
13424
      PINCODE((short)2, "pincode"),
13425
      DEST_CODE((short)3, "destCode"),
13426
      EXP((short)4, "exp"),
13427
      COD((short)5, "cod"),
6524 rajveer 13428
      STATION_TYPE((short)6, "stationType"),
13429
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13430
 
13431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13432
 
13433
      static {
13434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13435
          byName.put(field.getFieldName(), field);
13436
        }
13437
      }
13438
 
13439
      /**
13440
       * Find the _Fields constant that matches fieldId, or null if its not found.
13441
       */
13442
      public static _Fields findByThriftId(int fieldId) {
13443
        switch(fieldId) {
13444
          case 1: // PROVIDER_ID
13445
            return PROVIDER_ID;
13446
          case 2: // PINCODE
13447
            return PINCODE;
13448
          case 3: // DEST_CODE
13449
            return DEST_CODE;
13450
          case 4: // EXP
13451
            return EXP;
13452
          case 5: // COD
13453
            return COD;
13454
          case 6: // STATION_TYPE
13455
            return STATION_TYPE;
6524 rajveer 13456
          case 7: // OTG_AVAILABLE
13457
            return OTG_AVAILABLE;
6322 amar.kumar 13458
          default:
13459
            return null;
13460
        }
13461
      }
13462
 
13463
      /**
13464
       * Find the _Fields constant that matches fieldId, throwing an exception
13465
       * if it is not found.
13466
       */
13467
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13468
        _Fields fields = findByThriftId(fieldId);
13469
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13470
        return fields;
13471
      }
13472
 
13473
      /**
13474
       * Find the _Fields constant that matches name, or null if its not found.
13475
       */
13476
      public static _Fields findByName(String name) {
13477
        return byName.get(name);
13478
      }
13479
 
13480
      private final short _thriftId;
13481
      private final String _fieldName;
13482
 
13483
      _Fields(short thriftId, String fieldName) {
13484
        _thriftId = thriftId;
13485
        _fieldName = fieldName;
13486
      }
13487
 
13488
      public short getThriftFieldId() {
13489
        return _thriftId;
13490
      }
13491
 
13492
      public String getFieldName() {
13493
        return _fieldName;
13494
      }
13495
    }
13496
 
13497
    // isset id assignments
13498
    private static final int __PROVIDERID_ISSET_ID = 0;
13499
    private static final int __EXP_ISSET_ID = 1;
13500
    private static final int __COD_ISSET_ID = 2;
13501
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13502
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13503
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13504
 
13505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13506
    static {
13507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13508
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13510
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13511
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13512
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13514
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13516
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13518
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13519
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13520
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13521
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13522
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13523
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13524
    }
13525
 
13526
    public addPincode_args() {
13527
    }
13528
 
13529
    public addPincode_args(
13530
      long providerId,
13531
      String pincode,
13532
      String destCode,
13533
      boolean exp,
13534
      boolean cod,
6524 rajveer 13535
      int stationType,
13536
      boolean otgAvailable)
6322 amar.kumar 13537
    {
13538
      this();
13539
      this.providerId = providerId;
13540
      setProviderIdIsSet(true);
13541
      this.pincode = pincode;
13542
      this.destCode = destCode;
13543
      this.exp = exp;
13544
      setExpIsSet(true);
13545
      this.cod = cod;
13546
      setCodIsSet(true);
13547
      this.stationType = stationType;
13548
      setStationTypeIsSet(true);
6524 rajveer 13549
      this.otgAvailable = otgAvailable;
13550
      setOtgAvailableIsSet(true);
6322 amar.kumar 13551
    }
13552
 
13553
    /**
13554
     * Performs a deep copy on <i>other</i>.
13555
     */
13556
    public addPincode_args(addPincode_args other) {
13557
      __isset_bit_vector.clear();
13558
      __isset_bit_vector.or(other.__isset_bit_vector);
13559
      this.providerId = other.providerId;
13560
      if (other.isSetPincode()) {
13561
        this.pincode = other.pincode;
13562
      }
13563
      if (other.isSetDestCode()) {
13564
        this.destCode = other.destCode;
13565
      }
13566
      this.exp = other.exp;
13567
      this.cod = other.cod;
13568
      this.stationType = other.stationType;
6524 rajveer 13569
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13570
    }
13571
 
13572
    public addPincode_args deepCopy() {
13573
      return new addPincode_args(this);
13574
    }
13575
 
13576
    @Override
13577
    public void clear() {
13578
      setProviderIdIsSet(false);
13579
      this.providerId = 0;
13580
      this.pincode = null;
13581
      this.destCode = null;
13582
      setExpIsSet(false);
13583
      this.exp = false;
13584
      setCodIsSet(false);
13585
      this.cod = false;
13586
      setStationTypeIsSet(false);
13587
      this.stationType = 0;
6524 rajveer 13588
      setOtgAvailableIsSet(false);
13589
      this.otgAvailable = false;
6322 amar.kumar 13590
    }
13591
 
13592
    public long getProviderId() {
13593
      return this.providerId;
13594
    }
13595
 
13596
    public void setProviderId(long providerId) {
13597
      this.providerId = providerId;
13598
      setProviderIdIsSet(true);
13599
    }
13600
 
13601
    public void unsetProviderId() {
13602
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13603
    }
13604
 
13605
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13606
    public boolean isSetProviderId() {
13607
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13608
    }
13609
 
13610
    public void setProviderIdIsSet(boolean value) {
13611
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13612
    }
13613
 
13614
    public String getPincode() {
13615
      return this.pincode;
13616
    }
13617
 
13618
    public void setPincode(String pincode) {
13619
      this.pincode = pincode;
13620
    }
13621
 
13622
    public void unsetPincode() {
13623
      this.pincode = null;
13624
    }
13625
 
13626
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13627
    public boolean isSetPincode() {
13628
      return this.pincode != null;
13629
    }
13630
 
13631
    public void setPincodeIsSet(boolean value) {
13632
      if (!value) {
13633
        this.pincode = null;
13634
      }
13635
    }
13636
 
13637
    public String getDestCode() {
13638
      return this.destCode;
13639
    }
13640
 
13641
    public void setDestCode(String destCode) {
13642
      this.destCode = destCode;
13643
    }
13644
 
13645
    public void unsetDestCode() {
13646
      this.destCode = null;
13647
    }
13648
 
13649
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13650
    public boolean isSetDestCode() {
13651
      return this.destCode != null;
13652
    }
13653
 
13654
    public void setDestCodeIsSet(boolean value) {
13655
      if (!value) {
13656
        this.destCode = null;
13657
      }
13658
    }
13659
 
13660
    public boolean isExp() {
13661
      return this.exp;
13662
    }
13663
 
13664
    public void setExp(boolean exp) {
13665
      this.exp = exp;
13666
      setExpIsSet(true);
13667
    }
13668
 
13669
    public void unsetExp() {
13670
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13671
    }
13672
 
13673
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13674
    public boolean isSetExp() {
13675
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13676
    }
13677
 
13678
    public void setExpIsSet(boolean value) {
13679
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13680
    }
13681
 
13682
    public boolean isCod() {
13683
      return this.cod;
13684
    }
13685
 
13686
    public void setCod(boolean cod) {
13687
      this.cod = cod;
13688
      setCodIsSet(true);
13689
    }
13690
 
13691
    public void unsetCod() {
13692
      __isset_bit_vector.clear(__COD_ISSET_ID);
13693
    }
13694
 
13695
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13696
    public boolean isSetCod() {
13697
      return __isset_bit_vector.get(__COD_ISSET_ID);
13698
    }
13699
 
13700
    public void setCodIsSet(boolean value) {
13701
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13702
    }
13703
 
13704
    public int getStationType() {
13705
      return this.stationType;
13706
    }
13707
 
13708
    public void setStationType(int stationType) {
13709
      this.stationType = stationType;
13710
      setStationTypeIsSet(true);
13711
    }
13712
 
13713
    public void unsetStationType() {
13714
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13715
    }
13716
 
13717
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13718
    public boolean isSetStationType() {
13719
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13720
    }
13721
 
13722
    public void setStationTypeIsSet(boolean value) {
13723
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13724
    }
13725
 
6524 rajveer 13726
    public boolean isOtgAvailable() {
13727
      return this.otgAvailable;
13728
    }
13729
 
13730
    public void setOtgAvailable(boolean otgAvailable) {
13731
      this.otgAvailable = otgAvailable;
13732
      setOtgAvailableIsSet(true);
13733
    }
13734
 
13735
    public void unsetOtgAvailable() {
13736
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13737
    }
13738
 
13739
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13740
    public boolean isSetOtgAvailable() {
13741
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13742
    }
13743
 
13744
    public void setOtgAvailableIsSet(boolean value) {
13745
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13746
    }
13747
 
6322 amar.kumar 13748
    public void setFieldValue(_Fields field, Object value) {
13749
      switch (field) {
13750
      case PROVIDER_ID:
13751
        if (value == null) {
13752
          unsetProviderId();
13753
        } else {
13754
          setProviderId((Long)value);
13755
        }
13756
        break;
13757
 
13758
      case PINCODE:
13759
        if (value == null) {
13760
          unsetPincode();
13761
        } else {
13762
          setPincode((String)value);
13763
        }
13764
        break;
13765
 
13766
      case DEST_CODE:
13767
        if (value == null) {
13768
          unsetDestCode();
13769
        } else {
13770
          setDestCode((String)value);
13771
        }
13772
        break;
13773
 
13774
      case EXP:
13775
        if (value == null) {
13776
          unsetExp();
13777
        } else {
13778
          setExp((Boolean)value);
13779
        }
13780
        break;
13781
 
13782
      case COD:
13783
        if (value == null) {
13784
          unsetCod();
13785
        } else {
13786
          setCod((Boolean)value);
13787
        }
13788
        break;
13789
 
13790
      case STATION_TYPE:
13791
        if (value == null) {
13792
          unsetStationType();
13793
        } else {
13794
          setStationType((Integer)value);
13795
        }
13796
        break;
13797
 
6524 rajveer 13798
      case OTG_AVAILABLE:
13799
        if (value == null) {
13800
          unsetOtgAvailable();
13801
        } else {
13802
          setOtgAvailable((Boolean)value);
13803
        }
13804
        break;
13805
 
6322 amar.kumar 13806
      }
13807
    }
13808
 
13809
    public Object getFieldValue(_Fields field) {
13810
      switch (field) {
13811
      case PROVIDER_ID:
13812
        return Long.valueOf(getProviderId());
13813
 
13814
      case PINCODE:
13815
        return getPincode();
13816
 
13817
      case DEST_CODE:
13818
        return getDestCode();
13819
 
13820
      case EXP:
13821
        return Boolean.valueOf(isExp());
13822
 
13823
      case COD:
13824
        return Boolean.valueOf(isCod());
13825
 
13826
      case STATION_TYPE:
13827
        return Integer.valueOf(getStationType());
13828
 
6524 rajveer 13829
      case OTG_AVAILABLE:
13830
        return Boolean.valueOf(isOtgAvailable());
13831
 
6322 amar.kumar 13832
      }
13833
      throw new IllegalStateException();
13834
    }
13835
 
13836
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13837
    public boolean isSet(_Fields field) {
13838
      if (field == null) {
13839
        throw new IllegalArgumentException();
13840
      }
13841
 
13842
      switch (field) {
13843
      case PROVIDER_ID:
13844
        return isSetProviderId();
13845
      case PINCODE:
13846
        return isSetPincode();
13847
      case DEST_CODE:
13848
        return isSetDestCode();
13849
      case EXP:
13850
        return isSetExp();
13851
      case COD:
13852
        return isSetCod();
13853
      case STATION_TYPE:
13854
        return isSetStationType();
6524 rajveer 13855
      case OTG_AVAILABLE:
13856
        return isSetOtgAvailable();
6322 amar.kumar 13857
      }
13858
      throw new IllegalStateException();
13859
    }
13860
 
13861
    @Override
13862
    public boolean equals(Object that) {
13863
      if (that == null)
13864
        return false;
13865
      if (that instanceof addPincode_args)
13866
        return this.equals((addPincode_args)that);
13867
      return false;
13868
    }
13869
 
13870
    public boolean equals(addPincode_args that) {
13871
      if (that == null)
13872
        return false;
13873
 
13874
      boolean this_present_providerId = true;
13875
      boolean that_present_providerId = true;
13876
      if (this_present_providerId || that_present_providerId) {
13877
        if (!(this_present_providerId && that_present_providerId))
13878
          return false;
13879
        if (this.providerId != that.providerId)
13880
          return false;
13881
      }
13882
 
13883
      boolean this_present_pincode = true && this.isSetPincode();
13884
      boolean that_present_pincode = true && that.isSetPincode();
13885
      if (this_present_pincode || that_present_pincode) {
13886
        if (!(this_present_pincode && that_present_pincode))
13887
          return false;
13888
        if (!this.pincode.equals(that.pincode))
13889
          return false;
13890
      }
13891
 
13892
      boolean this_present_destCode = true && this.isSetDestCode();
13893
      boolean that_present_destCode = true && that.isSetDestCode();
13894
      if (this_present_destCode || that_present_destCode) {
13895
        if (!(this_present_destCode && that_present_destCode))
13896
          return false;
13897
        if (!this.destCode.equals(that.destCode))
13898
          return false;
13899
      }
13900
 
13901
      boolean this_present_exp = true;
13902
      boolean that_present_exp = true;
13903
      if (this_present_exp || that_present_exp) {
13904
        if (!(this_present_exp && that_present_exp))
13905
          return false;
13906
        if (this.exp != that.exp)
13907
          return false;
13908
      }
13909
 
13910
      boolean this_present_cod = true;
13911
      boolean that_present_cod = true;
13912
      if (this_present_cod || that_present_cod) {
13913
        if (!(this_present_cod && that_present_cod))
13914
          return false;
13915
        if (this.cod != that.cod)
13916
          return false;
13917
      }
13918
 
13919
      boolean this_present_stationType = true;
13920
      boolean that_present_stationType = true;
13921
      if (this_present_stationType || that_present_stationType) {
13922
        if (!(this_present_stationType && that_present_stationType))
13923
          return false;
13924
        if (this.stationType != that.stationType)
13925
          return false;
13926
      }
13927
 
6524 rajveer 13928
      boolean this_present_otgAvailable = true;
13929
      boolean that_present_otgAvailable = true;
13930
      if (this_present_otgAvailable || that_present_otgAvailable) {
13931
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13932
          return false;
13933
        if (this.otgAvailable != that.otgAvailable)
13934
          return false;
13935
      }
13936
 
6322 amar.kumar 13937
      return true;
13938
    }
13939
 
13940
    @Override
13941
    public int hashCode() {
13942
      return 0;
13943
    }
13944
 
13945
    public int compareTo(addPincode_args other) {
13946
      if (!getClass().equals(other.getClass())) {
13947
        return getClass().getName().compareTo(other.getClass().getName());
13948
      }
13949
 
13950
      int lastComparison = 0;
13951
      addPincode_args typedOther = (addPincode_args)other;
13952
 
13953
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13954
      if (lastComparison != 0) {
13955
        return lastComparison;
13956
      }
13957
      if (isSetProviderId()) {
13958
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13959
        if (lastComparison != 0) {
13960
          return lastComparison;
13961
        }
13962
      }
13963
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13964
      if (lastComparison != 0) {
13965
        return lastComparison;
13966
      }
13967
      if (isSetPincode()) {
13968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13969
        if (lastComparison != 0) {
13970
          return lastComparison;
13971
        }
13972
      }
13973
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
13974
      if (lastComparison != 0) {
13975
        return lastComparison;
13976
      }
13977
      if (isSetDestCode()) {
13978
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
13979
        if (lastComparison != 0) {
13980
          return lastComparison;
13981
        }
13982
      }
13983
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13984
      if (lastComparison != 0) {
13985
        return lastComparison;
13986
      }
13987
      if (isSetExp()) {
13988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13989
        if (lastComparison != 0) {
13990
          return lastComparison;
13991
        }
13992
      }
13993
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13994
      if (lastComparison != 0) {
13995
        return lastComparison;
13996
      }
13997
      if (isSetCod()) {
13998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
13999
        if (lastComparison != 0) {
14000
          return lastComparison;
14001
        }
14002
      }
14003
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14004
      if (lastComparison != 0) {
14005
        return lastComparison;
14006
      }
14007
      if (isSetStationType()) {
14008
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14009
        if (lastComparison != 0) {
14010
          return lastComparison;
14011
        }
14012
      }
6524 rajveer 14013
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14014
      if (lastComparison != 0) {
14015
        return lastComparison;
14016
      }
14017
      if (isSetOtgAvailable()) {
14018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14019
        if (lastComparison != 0) {
14020
          return lastComparison;
14021
        }
14022
      }
6322 amar.kumar 14023
      return 0;
14024
    }
14025
 
14026
    public _Fields fieldForId(int fieldId) {
14027
      return _Fields.findByThriftId(fieldId);
14028
    }
14029
 
14030
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14031
      org.apache.thrift.protocol.TField field;
14032
      iprot.readStructBegin();
14033
      while (true)
14034
      {
14035
        field = iprot.readFieldBegin();
14036
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14037
          break;
14038
        }
14039
        switch (field.id) {
14040
          case 1: // PROVIDER_ID
14041
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14042
              this.providerId = iprot.readI64();
14043
              setProviderIdIsSet(true);
14044
            } else { 
14045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14046
            }
14047
            break;
14048
          case 2: // PINCODE
14049
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14050
              this.pincode = iprot.readString();
14051
            } else { 
14052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14053
            }
14054
            break;
14055
          case 3: // DEST_CODE
14056
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14057
              this.destCode = iprot.readString();
14058
            } else { 
14059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14060
            }
14061
            break;
14062
          case 4: // EXP
14063
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14064
              this.exp = iprot.readBool();
14065
              setExpIsSet(true);
14066
            } else { 
14067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14068
            }
14069
            break;
14070
          case 5: // COD
14071
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14072
              this.cod = iprot.readBool();
14073
              setCodIsSet(true);
14074
            } else { 
14075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14076
            }
14077
            break;
14078
          case 6: // STATION_TYPE
14079
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14080
              this.stationType = iprot.readI32();
14081
              setStationTypeIsSet(true);
14082
            } else { 
14083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14084
            }
14085
            break;
6524 rajveer 14086
          case 7: // OTG_AVAILABLE
14087
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14088
              this.otgAvailable = iprot.readBool();
14089
              setOtgAvailableIsSet(true);
14090
            } else { 
14091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14092
            }
14093
            break;
6322 amar.kumar 14094
          default:
14095
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14096
        }
14097
        iprot.readFieldEnd();
14098
      }
14099
      iprot.readStructEnd();
14100
      validate();
14101
    }
14102
 
14103
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14104
      validate();
14105
 
14106
      oprot.writeStructBegin(STRUCT_DESC);
14107
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14108
      oprot.writeI64(this.providerId);
14109
      oprot.writeFieldEnd();
14110
      if (this.pincode != null) {
14111
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14112
        oprot.writeString(this.pincode);
14113
        oprot.writeFieldEnd();
14114
      }
14115
      if (this.destCode != null) {
14116
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14117
        oprot.writeString(this.destCode);
14118
        oprot.writeFieldEnd();
14119
      }
14120
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14121
      oprot.writeBool(this.exp);
14122
      oprot.writeFieldEnd();
14123
      oprot.writeFieldBegin(COD_FIELD_DESC);
14124
      oprot.writeBool(this.cod);
14125
      oprot.writeFieldEnd();
14126
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14127
      oprot.writeI32(this.stationType);
14128
      oprot.writeFieldEnd();
6524 rajveer 14129
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14130
      oprot.writeBool(this.otgAvailable);
14131
      oprot.writeFieldEnd();
6322 amar.kumar 14132
      oprot.writeFieldStop();
14133
      oprot.writeStructEnd();
14134
    }
14135
 
14136
    @Override
14137
    public String toString() {
14138
      StringBuilder sb = new StringBuilder("addPincode_args(");
14139
      boolean first = true;
14140
 
14141
      sb.append("providerId:");
14142
      sb.append(this.providerId);
14143
      first = false;
14144
      if (!first) sb.append(", ");
14145
      sb.append("pincode:");
14146
      if (this.pincode == null) {
14147
        sb.append("null");
14148
      } else {
14149
        sb.append(this.pincode);
14150
      }
14151
      first = false;
14152
      if (!first) sb.append(", ");
14153
      sb.append("destCode:");
14154
      if (this.destCode == null) {
14155
        sb.append("null");
14156
      } else {
14157
        sb.append(this.destCode);
14158
      }
14159
      first = false;
14160
      if (!first) sb.append(", ");
14161
      sb.append("exp:");
14162
      sb.append(this.exp);
14163
      first = false;
14164
      if (!first) sb.append(", ");
14165
      sb.append("cod:");
14166
      sb.append(this.cod);
14167
      first = false;
14168
      if (!first) sb.append(", ");
14169
      sb.append("stationType:");
14170
      sb.append(this.stationType);
14171
      first = false;
6524 rajveer 14172
      if (!first) sb.append(", ");
14173
      sb.append("otgAvailable:");
14174
      sb.append(this.otgAvailable);
14175
      first = false;
6322 amar.kumar 14176
      sb.append(")");
14177
      return sb.toString();
14178
    }
14179
 
14180
    public void validate() throws org.apache.thrift.TException {
14181
      // check for required fields
14182
    }
14183
 
14184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14185
      try {
14186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14187
      } catch (org.apache.thrift.TException te) {
14188
        throw new java.io.IOException(te);
14189
      }
14190
    }
14191
 
14192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14193
      try {
14194
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14195
        __isset_bit_vector = new BitSet(1);
14196
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14197
      } catch (org.apache.thrift.TException te) {
14198
        throw new java.io.IOException(te);
14199
      }
14200
    }
14201
 
14202
  }
14203
 
14204
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14205
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14206
 
14207
 
14208
 
14209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14211
;
14212
 
14213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14214
 
14215
      static {
14216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14217
          byName.put(field.getFieldName(), field);
14218
        }
14219
      }
14220
 
14221
      /**
14222
       * Find the _Fields constant that matches fieldId, or null if its not found.
14223
       */
14224
      public static _Fields findByThriftId(int fieldId) {
14225
        switch(fieldId) {
14226
          default:
14227
            return null;
14228
        }
14229
      }
14230
 
14231
      /**
14232
       * Find the _Fields constant that matches fieldId, throwing an exception
14233
       * if it is not found.
14234
       */
14235
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14236
        _Fields fields = findByThriftId(fieldId);
14237
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14238
        return fields;
14239
      }
14240
 
14241
      /**
14242
       * Find the _Fields constant that matches name, or null if its not found.
14243
       */
14244
      public static _Fields findByName(String name) {
14245
        return byName.get(name);
14246
      }
14247
 
14248
      private final short _thriftId;
14249
      private final String _fieldName;
14250
 
14251
      _Fields(short thriftId, String fieldName) {
14252
        _thriftId = thriftId;
14253
        _fieldName = fieldName;
14254
      }
14255
 
14256
      public short getThriftFieldId() {
14257
        return _thriftId;
14258
      }
14259
 
14260
      public String getFieldName() {
14261
        return _fieldName;
14262
      }
14263
    }
14264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14265
    static {
14266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14269
    }
14270
 
14271
    public addPincode_result() {
14272
    }
14273
 
14274
    /**
14275
     * Performs a deep copy on <i>other</i>.
14276
     */
14277
    public addPincode_result(addPincode_result other) {
14278
    }
14279
 
14280
    public addPincode_result deepCopy() {
14281
      return new addPincode_result(this);
14282
    }
14283
 
14284
    @Override
14285
    public void clear() {
14286
    }
14287
 
14288
    public void setFieldValue(_Fields field, Object value) {
14289
      switch (field) {
14290
      }
14291
    }
14292
 
14293
    public Object getFieldValue(_Fields field) {
14294
      switch (field) {
14295
      }
14296
      throw new IllegalStateException();
14297
    }
14298
 
14299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14300
    public boolean isSet(_Fields field) {
14301
      if (field == null) {
14302
        throw new IllegalArgumentException();
14303
      }
14304
 
14305
      switch (field) {
14306
      }
14307
      throw new IllegalStateException();
14308
    }
14309
 
14310
    @Override
14311
    public boolean equals(Object that) {
14312
      if (that == null)
14313
        return false;
14314
      if (that instanceof addPincode_result)
14315
        return this.equals((addPincode_result)that);
14316
      return false;
14317
    }
14318
 
14319
    public boolean equals(addPincode_result that) {
14320
      if (that == null)
14321
        return false;
14322
 
14323
      return true;
14324
    }
14325
 
14326
    @Override
14327
    public int hashCode() {
14328
      return 0;
14329
    }
14330
 
14331
    public int compareTo(addPincode_result other) {
14332
      if (!getClass().equals(other.getClass())) {
14333
        return getClass().getName().compareTo(other.getClass().getName());
14334
      }
14335
 
14336
      int lastComparison = 0;
14337
      addPincode_result typedOther = (addPincode_result)other;
14338
 
14339
      return 0;
14340
    }
14341
 
14342
    public _Fields fieldForId(int fieldId) {
14343
      return _Fields.findByThriftId(fieldId);
14344
    }
14345
 
14346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14347
      org.apache.thrift.protocol.TField field;
14348
      iprot.readStructBegin();
14349
      while (true)
14350
      {
14351
        field = iprot.readFieldBegin();
14352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14353
          break;
14354
        }
14355
        switch (field.id) {
14356
          default:
14357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14358
        }
14359
        iprot.readFieldEnd();
14360
      }
14361
      iprot.readStructEnd();
14362
      validate();
14363
    }
14364
 
14365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14366
      oprot.writeStructBegin(STRUCT_DESC);
14367
 
14368
      oprot.writeFieldStop();
14369
      oprot.writeStructEnd();
14370
    }
14371
 
14372
    @Override
14373
    public String toString() {
14374
      StringBuilder sb = new StringBuilder("addPincode_result(");
14375
      boolean first = true;
14376
 
14377
      sb.append(")");
14378
      return sb.toString();
14379
    }
14380
 
14381
    public void validate() throws org.apache.thrift.TException {
14382
      // check for required fields
14383
    }
14384
 
14385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14386
      try {
14387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14388
      } catch (org.apache.thrift.TException te) {
14389
        throw new java.io.IOException(te);
14390
      }
14391
    }
14392
 
14393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14394
      try {
14395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14396
      } catch (org.apache.thrift.TException te) {
14397
        throw new java.io.IOException(te);
14398
      }
14399
    }
14400
 
14401
  }
14402
 
14403
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14405
 
14406
    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);
14407
    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);
14408
    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);
14409
    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 14410
    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 14411
 
14412
    private long providerId; // required
14413
    private String pincode; // required
14414
    private boolean exp; // required
14415
    private boolean cod; // required
6524 rajveer 14416
    private boolean otgAvailable; // required
6322 amar.kumar 14417
 
14418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14420
      PROVIDER_ID((short)1, "providerId"),
14421
      PINCODE((short)2, "pincode"),
14422
      EXP((short)3, "exp"),
6524 rajveer 14423
      COD((short)4, "cod"),
14424
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14425
 
14426
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14427
 
14428
      static {
14429
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14430
          byName.put(field.getFieldName(), field);
14431
        }
14432
      }
14433
 
14434
      /**
14435
       * Find the _Fields constant that matches fieldId, or null if its not found.
14436
       */
14437
      public static _Fields findByThriftId(int fieldId) {
14438
        switch(fieldId) {
14439
          case 1: // PROVIDER_ID
14440
            return PROVIDER_ID;
14441
          case 2: // PINCODE
14442
            return PINCODE;
14443
          case 3: // EXP
14444
            return EXP;
14445
          case 4: // COD
14446
            return COD;
6524 rajveer 14447
          case 5: // OTG_AVAILABLE
14448
            return OTG_AVAILABLE;
6322 amar.kumar 14449
          default:
14450
            return null;
14451
        }
14452
      }
14453
 
14454
      /**
14455
       * Find the _Fields constant that matches fieldId, throwing an exception
14456
       * if it is not found.
14457
       */
14458
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14459
        _Fields fields = findByThriftId(fieldId);
14460
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14461
        return fields;
14462
      }
14463
 
14464
      /**
14465
       * Find the _Fields constant that matches name, or null if its not found.
14466
       */
14467
      public static _Fields findByName(String name) {
14468
        return byName.get(name);
14469
      }
14470
 
14471
      private final short _thriftId;
14472
      private final String _fieldName;
14473
 
14474
      _Fields(short thriftId, String fieldName) {
14475
        _thriftId = thriftId;
14476
        _fieldName = fieldName;
14477
      }
14478
 
14479
      public short getThriftFieldId() {
14480
        return _thriftId;
14481
      }
14482
 
14483
      public String getFieldName() {
14484
        return _fieldName;
14485
      }
14486
    }
14487
 
14488
    // isset id assignments
14489
    private static final int __PROVIDERID_ISSET_ID = 0;
14490
    private static final int __EXP_ISSET_ID = 1;
14491
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14492
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14493
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14494
 
14495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14496
    static {
14497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14498
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14500
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14501
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14502
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14503
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14504
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14506
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14510
    }
14511
 
14512
    public updatePincode_args() {
14513
    }
14514
 
14515
    public updatePincode_args(
14516
      long providerId,
14517
      String pincode,
14518
      boolean exp,
6524 rajveer 14519
      boolean cod,
14520
      boolean otgAvailable)
6322 amar.kumar 14521
    {
14522
      this();
14523
      this.providerId = providerId;
14524
      setProviderIdIsSet(true);
14525
      this.pincode = pincode;
14526
      this.exp = exp;
14527
      setExpIsSet(true);
14528
      this.cod = cod;
14529
      setCodIsSet(true);
6524 rajveer 14530
      this.otgAvailable = otgAvailable;
14531
      setOtgAvailableIsSet(true);
6322 amar.kumar 14532
    }
14533
 
14534
    /**
14535
     * Performs a deep copy on <i>other</i>.
14536
     */
14537
    public updatePincode_args(updatePincode_args other) {
14538
      __isset_bit_vector.clear();
14539
      __isset_bit_vector.or(other.__isset_bit_vector);
14540
      this.providerId = other.providerId;
14541
      if (other.isSetPincode()) {
14542
        this.pincode = other.pincode;
14543
      }
14544
      this.exp = other.exp;
14545
      this.cod = other.cod;
6524 rajveer 14546
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14547
    }
14548
 
14549
    public updatePincode_args deepCopy() {
14550
      return new updatePincode_args(this);
14551
    }
14552
 
14553
    @Override
14554
    public void clear() {
14555
      setProviderIdIsSet(false);
14556
      this.providerId = 0;
14557
      this.pincode = null;
14558
      setExpIsSet(false);
14559
      this.exp = false;
14560
      setCodIsSet(false);
14561
      this.cod = false;
6524 rajveer 14562
      setOtgAvailableIsSet(false);
14563
      this.otgAvailable = false;
6322 amar.kumar 14564
    }
14565
 
14566
    public long getProviderId() {
14567
      return this.providerId;
14568
    }
14569
 
14570
    public void setProviderId(long providerId) {
14571
      this.providerId = providerId;
14572
      setProviderIdIsSet(true);
14573
    }
14574
 
14575
    public void unsetProviderId() {
14576
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14577
    }
14578
 
14579
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14580
    public boolean isSetProviderId() {
14581
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14582
    }
14583
 
14584
    public void setProviderIdIsSet(boolean value) {
14585
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14586
    }
14587
 
14588
    public String getPincode() {
14589
      return this.pincode;
14590
    }
14591
 
14592
    public void setPincode(String pincode) {
14593
      this.pincode = pincode;
14594
    }
14595
 
14596
    public void unsetPincode() {
14597
      this.pincode = null;
14598
    }
14599
 
14600
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14601
    public boolean isSetPincode() {
14602
      return this.pincode != null;
14603
    }
14604
 
14605
    public void setPincodeIsSet(boolean value) {
14606
      if (!value) {
14607
        this.pincode = null;
14608
      }
14609
    }
14610
 
14611
    public boolean isExp() {
14612
      return this.exp;
14613
    }
14614
 
14615
    public void setExp(boolean exp) {
14616
      this.exp = exp;
14617
      setExpIsSet(true);
14618
    }
14619
 
14620
    public void unsetExp() {
14621
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14622
    }
14623
 
14624
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14625
    public boolean isSetExp() {
14626
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14627
    }
14628
 
14629
    public void setExpIsSet(boolean value) {
14630
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14631
    }
14632
 
14633
    public boolean isCod() {
14634
      return this.cod;
14635
    }
14636
 
14637
    public void setCod(boolean cod) {
14638
      this.cod = cod;
14639
      setCodIsSet(true);
14640
    }
14641
 
14642
    public void unsetCod() {
14643
      __isset_bit_vector.clear(__COD_ISSET_ID);
14644
    }
14645
 
14646
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14647
    public boolean isSetCod() {
14648
      return __isset_bit_vector.get(__COD_ISSET_ID);
14649
    }
14650
 
14651
    public void setCodIsSet(boolean value) {
14652
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14653
    }
14654
 
6524 rajveer 14655
    public boolean isOtgAvailable() {
14656
      return this.otgAvailable;
14657
    }
14658
 
14659
    public void setOtgAvailable(boolean otgAvailable) {
14660
      this.otgAvailable = otgAvailable;
14661
      setOtgAvailableIsSet(true);
14662
    }
14663
 
14664
    public void unsetOtgAvailable() {
14665
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14666
    }
14667
 
14668
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14669
    public boolean isSetOtgAvailable() {
14670
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14671
    }
14672
 
14673
    public void setOtgAvailableIsSet(boolean value) {
14674
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14675
    }
14676
 
6322 amar.kumar 14677
    public void setFieldValue(_Fields field, Object value) {
14678
      switch (field) {
14679
      case PROVIDER_ID:
14680
        if (value == null) {
14681
          unsetProviderId();
14682
        } else {
14683
          setProviderId((Long)value);
14684
        }
14685
        break;
14686
 
14687
      case PINCODE:
14688
        if (value == null) {
14689
          unsetPincode();
14690
        } else {
14691
          setPincode((String)value);
14692
        }
14693
        break;
14694
 
14695
      case EXP:
14696
        if (value == null) {
14697
          unsetExp();
14698
        } else {
14699
          setExp((Boolean)value);
14700
        }
14701
        break;
14702
 
14703
      case COD:
14704
        if (value == null) {
14705
          unsetCod();
14706
        } else {
14707
          setCod((Boolean)value);
14708
        }
14709
        break;
14710
 
6524 rajveer 14711
      case OTG_AVAILABLE:
14712
        if (value == null) {
14713
          unsetOtgAvailable();
14714
        } else {
14715
          setOtgAvailable((Boolean)value);
14716
        }
14717
        break;
14718
 
6322 amar.kumar 14719
      }
14720
    }
14721
 
14722
    public Object getFieldValue(_Fields field) {
14723
      switch (field) {
14724
      case PROVIDER_ID:
14725
        return Long.valueOf(getProviderId());
14726
 
14727
      case PINCODE:
14728
        return getPincode();
14729
 
14730
      case EXP:
14731
        return Boolean.valueOf(isExp());
14732
 
14733
      case COD:
14734
        return Boolean.valueOf(isCod());
14735
 
6524 rajveer 14736
      case OTG_AVAILABLE:
14737
        return Boolean.valueOf(isOtgAvailable());
14738
 
6322 amar.kumar 14739
      }
14740
      throw new IllegalStateException();
14741
    }
14742
 
14743
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14744
    public boolean isSet(_Fields field) {
14745
      if (field == null) {
14746
        throw new IllegalArgumentException();
14747
      }
14748
 
14749
      switch (field) {
14750
      case PROVIDER_ID:
14751
        return isSetProviderId();
14752
      case PINCODE:
14753
        return isSetPincode();
14754
      case EXP:
14755
        return isSetExp();
14756
      case COD:
14757
        return isSetCod();
6524 rajveer 14758
      case OTG_AVAILABLE:
14759
        return isSetOtgAvailable();
6322 amar.kumar 14760
      }
14761
      throw new IllegalStateException();
14762
    }
14763
 
14764
    @Override
14765
    public boolean equals(Object that) {
14766
      if (that == null)
14767
        return false;
14768
      if (that instanceof updatePincode_args)
14769
        return this.equals((updatePincode_args)that);
14770
      return false;
14771
    }
14772
 
14773
    public boolean equals(updatePincode_args that) {
14774
      if (that == null)
14775
        return false;
14776
 
14777
      boolean this_present_providerId = true;
14778
      boolean that_present_providerId = true;
14779
      if (this_present_providerId || that_present_providerId) {
14780
        if (!(this_present_providerId && that_present_providerId))
14781
          return false;
14782
        if (this.providerId != that.providerId)
14783
          return false;
14784
      }
14785
 
14786
      boolean this_present_pincode = true && this.isSetPincode();
14787
      boolean that_present_pincode = true && that.isSetPincode();
14788
      if (this_present_pincode || that_present_pincode) {
14789
        if (!(this_present_pincode && that_present_pincode))
14790
          return false;
14791
        if (!this.pincode.equals(that.pincode))
14792
          return false;
14793
      }
14794
 
14795
      boolean this_present_exp = true;
14796
      boolean that_present_exp = true;
14797
      if (this_present_exp || that_present_exp) {
14798
        if (!(this_present_exp && that_present_exp))
14799
          return false;
14800
        if (this.exp != that.exp)
14801
          return false;
14802
      }
14803
 
14804
      boolean this_present_cod = true;
14805
      boolean that_present_cod = true;
14806
      if (this_present_cod || that_present_cod) {
14807
        if (!(this_present_cod && that_present_cod))
14808
          return false;
14809
        if (this.cod != that.cod)
14810
          return false;
14811
      }
14812
 
6524 rajveer 14813
      boolean this_present_otgAvailable = true;
14814
      boolean that_present_otgAvailable = true;
14815
      if (this_present_otgAvailable || that_present_otgAvailable) {
14816
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14817
          return false;
14818
        if (this.otgAvailable != that.otgAvailable)
14819
          return false;
14820
      }
14821
 
6322 amar.kumar 14822
      return true;
14823
    }
14824
 
14825
    @Override
14826
    public int hashCode() {
14827
      return 0;
14828
    }
14829
 
14830
    public int compareTo(updatePincode_args other) {
14831
      if (!getClass().equals(other.getClass())) {
14832
        return getClass().getName().compareTo(other.getClass().getName());
14833
      }
14834
 
14835
      int lastComparison = 0;
14836
      updatePincode_args typedOther = (updatePincode_args)other;
14837
 
14838
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14839
      if (lastComparison != 0) {
14840
        return lastComparison;
14841
      }
14842
      if (isSetProviderId()) {
14843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14844
        if (lastComparison != 0) {
14845
          return lastComparison;
14846
        }
14847
      }
14848
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14849
      if (lastComparison != 0) {
14850
        return lastComparison;
14851
      }
14852
      if (isSetPincode()) {
14853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14854
        if (lastComparison != 0) {
14855
          return lastComparison;
14856
        }
14857
      }
14858
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14859
      if (lastComparison != 0) {
14860
        return lastComparison;
14861
      }
14862
      if (isSetExp()) {
14863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14864
        if (lastComparison != 0) {
14865
          return lastComparison;
14866
        }
14867
      }
14868
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14869
      if (lastComparison != 0) {
14870
        return lastComparison;
14871
      }
14872
      if (isSetCod()) {
14873
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14874
        if (lastComparison != 0) {
14875
          return lastComparison;
14876
        }
14877
      }
6524 rajveer 14878
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14879
      if (lastComparison != 0) {
14880
        return lastComparison;
14881
      }
14882
      if (isSetOtgAvailable()) {
14883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14884
        if (lastComparison != 0) {
14885
          return lastComparison;
14886
        }
14887
      }
6322 amar.kumar 14888
      return 0;
14889
    }
14890
 
14891
    public _Fields fieldForId(int fieldId) {
14892
      return _Fields.findByThriftId(fieldId);
14893
    }
14894
 
14895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14896
      org.apache.thrift.protocol.TField field;
14897
      iprot.readStructBegin();
14898
      while (true)
14899
      {
14900
        field = iprot.readFieldBegin();
14901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14902
          break;
14903
        }
14904
        switch (field.id) {
14905
          case 1: // PROVIDER_ID
14906
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14907
              this.providerId = iprot.readI64();
14908
              setProviderIdIsSet(true);
14909
            } else { 
14910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14911
            }
14912
            break;
14913
          case 2: // PINCODE
14914
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14915
              this.pincode = iprot.readString();
14916
            } else { 
14917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14918
            }
14919
            break;
14920
          case 3: // EXP
14921
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14922
              this.exp = iprot.readBool();
14923
              setExpIsSet(true);
14924
            } else { 
14925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14926
            }
14927
            break;
14928
          case 4: // COD
14929
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14930
              this.cod = iprot.readBool();
14931
              setCodIsSet(true);
14932
            } else { 
14933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14934
            }
14935
            break;
6524 rajveer 14936
          case 5: // OTG_AVAILABLE
14937
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14938
              this.otgAvailable = iprot.readBool();
14939
              setOtgAvailableIsSet(true);
14940
            } else { 
14941
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14942
            }
14943
            break;
6322 amar.kumar 14944
          default:
14945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14946
        }
14947
        iprot.readFieldEnd();
14948
      }
14949
      iprot.readStructEnd();
14950
      validate();
14951
    }
14952
 
14953
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14954
      validate();
14955
 
14956
      oprot.writeStructBegin(STRUCT_DESC);
14957
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14958
      oprot.writeI64(this.providerId);
14959
      oprot.writeFieldEnd();
14960
      if (this.pincode != null) {
14961
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14962
        oprot.writeString(this.pincode);
14963
        oprot.writeFieldEnd();
14964
      }
14965
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14966
      oprot.writeBool(this.exp);
14967
      oprot.writeFieldEnd();
14968
      oprot.writeFieldBegin(COD_FIELD_DESC);
14969
      oprot.writeBool(this.cod);
14970
      oprot.writeFieldEnd();
6524 rajveer 14971
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14972
      oprot.writeBool(this.otgAvailable);
14973
      oprot.writeFieldEnd();
6322 amar.kumar 14974
      oprot.writeFieldStop();
14975
      oprot.writeStructEnd();
14976
    }
14977
 
14978
    @Override
14979
    public String toString() {
14980
      StringBuilder sb = new StringBuilder("updatePincode_args(");
14981
      boolean first = true;
14982
 
14983
      sb.append("providerId:");
14984
      sb.append(this.providerId);
14985
      first = false;
14986
      if (!first) sb.append(", ");
14987
      sb.append("pincode:");
14988
      if (this.pincode == null) {
14989
        sb.append("null");
14990
      } else {
14991
        sb.append(this.pincode);
14992
      }
14993
      first = false;
14994
      if (!first) sb.append(", ");
14995
      sb.append("exp:");
14996
      sb.append(this.exp);
14997
      first = false;
14998
      if (!first) sb.append(", ");
14999
      sb.append("cod:");
15000
      sb.append(this.cod);
15001
      first = false;
6524 rajveer 15002
      if (!first) sb.append(", ");
15003
      sb.append("otgAvailable:");
15004
      sb.append(this.otgAvailable);
15005
      first = false;
6322 amar.kumar 15006
      sb.append(")");
15007
      return sb.toString();
15008
    }
15009
 
15010
    public void validate() throws org.apache.thrift.TException {
15011
      // check for required fields
15012
    }
15013
 
15014
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15015
      try {
15016
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15017
      } catch (org.apache.thrift.TException te) {
15018
        throw new java.io.IOException(te);
15019
      }
15020
    }
15021
 
15022
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15023
      try {
15024
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15025
        __isset_bit_vector = new BitSet(1);
15026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15027
      } catch (org.apache.thrift.TException te) {
15028
        throw new java.io.IOException(te);
15029
      }
15030
    }
15031
 
15032
  }
15033
 
15034
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15036
 
15037
 
15038
 
15039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15041
;
15042
 
15043
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15044
 
15045
      static {
15046
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15047
          byName.put(field.getFieldName(), field);
15048
        }
15049
      }
15050
 
15051
      /**
15052
       * Find the _Fields constant that matches fieldId, or null if its not found.
15053
       */
15054
      public static _Fields findByThriftId(int fieldId) {
15055
        switch(fieldId) {
15056
          default:
15057
            return null;
15058
        }
15059
      }
15060
 
15061
      /**
15062
       * Find the _Fields constant that matches fieldId, throwing an exception
15063
       * if it is not found.
15064
       */
15065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15066
        _Fields fields = findByThriftId(fieldId);
15067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15068
        return fields;
15069
      }
15070
 
15071
      /**
15072
       * Find the _Fields constant that matches name, or null if its not found.
15073
       */
15074
      public static _Fields findByName(String name) {
15075
        return byName.get(name);
15076
      }
15077
 
15078
      private final short _thriftId;
15079
      private final String _fieldName;
15080
 
15081
      _Fields(short thriftId, String fieldName) {
15082
        _thriftId = thriftId;
15083
        _fieldName = fieldName;
15084
      }
15085
 
15086
      public short getThriftFieldId() {
15087
        return _thriftId;
15088
      }
15089
 
15090
      public String getFieldName() {
15091
        return _fieldName;
15092
      }
15093
    }
15094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15095
    static {
15096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15097
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15098
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15099
    }
15100
 
15101
    public updatePincode_result() {
15102
    }
15103
 
15104
    /**
15105
     * Performs a deep copy on <i>other</i>.
15106
     */
15107
    public updatePincode_result(updatePincode_result other) {
15108
    }
15109
 
15110
    public updatePincode_result deepCopy() {
15111
      return new updatePincode_result(this);
15112
    }
15113
 
15114
    @Override
15115
    public void clear() {
15116
    }
15117
 
15118
    public void setFieldValue(_Fields field, Object value) {
15119
      switch (field) {
15120
      }
15121
    }
15122
 
15123
    public Object getFieldValue(_Fields field) {
15124
      switch (field) {
15125
      }
15126
      throw new IllegalStateException();
15127
    }
15128
 
15129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15130
    public boolean isSet(_Fields field) {
15131
      if (field == null) {
15132
        throw new IllegalArgumentException();
15133
      }
15134
 
15135
      switch (field) {
15136
      }
15137
      throw new IllegalStateException();
15138
    }
15139
 
15140
    @Override
15141
    public boolean equals(Object that) {
15142
      if (that == null)
15143
        return false;
15144
      if (that instanceof updatePincode_result)
15145
        return this.equals((updatePincode_result)that);
15146
      return false;
15147
    }
15148
 
15149
    public boolean equals(updatePincode_result that) {
15150
      if (that == null)
15151
        return false;
15152
 
15153
      return true;
15154
    }
15155
 
15156
    @Override
15157
    public int hashCode() {
15158
      return 0;
15159
    }
15160
 
15161
    public int compareTo(updatePincode_result other) {
15162
      if (!getClass().equals(other.getClass())) {
15163
        return getClass().getName().compareTo(other.getClass().getName());
15164
      }
15165
 
15166
      int lastComparison = 0;
15167
      updatePincode_result typedOther = (updatePincode_result)other;
15168
 
15169
      return 0;
15170
    }
15171
 
15172
    public _Fields fieldForId(int fieldId) {
15173
      return _Fields.findByThriftId(fieldId);
15174
    }
15175
 
15176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15177
      org.apache.thrift.protocol.TField field;
15178
      iprot.readStructBegin();
15179
      while (true)
15180
      {
15181
        field = iprot.readFieldBegin();
15182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15183
          break;
15184
        }
15185
        switch (field.id) {
15186
          default:
15187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15188
        }
15189
        iprot.readFieldEnd();
15190
      }
15191
      iprot.readStructEnd();
15192
      validate();
15193
    }
15194
 
15195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15196
      oprot.writeStructBegin(STRUCT_DESC);
15197
 
15198
      oprot.writeFieldStop();
15199
      oprot.writeStructEnd();
15200
    }
15201
 
15202
    @Override
15203
    public String toString() {
15204
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15205
      boolean first = true;
15206
 
15207
      sb.append(")");
15208
      return sb.toString();
15209
    }
15210
 
15211
    public void validate() throws org.apache.thrift.TException {
15212
      // check for required fields
15213
    }
15214
 
15215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15216
      try {
15217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15218
      } catch (org.apache.thrift.TException te) {
15219
        throw new java.io.IOException(te);
15220
      }
15221
    }
15222
 
15223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15224
      try {
15225
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15226
      } catch (org.apache.thrift.TException te) {
15227
        throw new java.io.IOException(te);
15228
      }
15229
    }
15230
 
15231
  }
15232
 
7567 rajveer 15233
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15234
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15235
 
15236
    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);
15237
    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)2);
15238
    private static final org.apache.thrift.protocol.TField AWBS_FIELD_DESC = new org.apache.thrift.protocol.TField("awbs", org.apache.thrift.protocol.TType.LIST, (short)3);
15239
 
15240
    private long providerId; // required
15241
    private boolean cod; // required
15242
    private List<String> awbs; // required
15243
 
15244
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15245
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15246
      PROVIDER_ID((short)1, "providerId"),
15247
      COD((short)2, "cod"),
15248
      AWBS((short)3, "awbs");
15249
 
15250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15251
 
15252
      static {
15253
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15254
          byName.put(field.getFieldName(), field);
15255
        }
15256
      }
15257
 
15258
      /**
15259
       * Find the _Fields constant that matches fieldId, or null if its not found.
15260
       */
15261
      public static _Fields findByThriftId(int fieldId) {
15262
        switch(fieldId) {
15263
          case 1: // PROVIDER_ID
15264
            return PROVIDER_ID;
15265
          case 2: // COD
15266
            return COD;
15267
          case 3: // AWBS
15268
            return AWBS;
15269
          default:
15270
            return null;
15271
        }
15272
      }
15273
 
15274
      /**
15275
       * Find the _Fields constant that matches fieldId, throwing an exception
15276
       * if it is not found.
15277
       */
15278
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15279
        _Fields fields = findByThriftId(fieldId);
15280
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15281
        return fields;
15282
      }
15283
 
15284
      /**
15285
       * Find the _Fields constant that matches name, or null if its not found.
15286
       */
15287
      public static _Fields findByName(String name) {
15288
        return byName.get(name);
15289
      }
15290
 
15291
      private final short _thriftId;
15292
      private final String _fieldName;
15293
 
15294
      _Fields(short thriftId, String fieldName) {
15295
        _thriftId = thriftId;
15296
        _fieldName = fieldName;
15297
      }
15298
 
15299
      public short getThriftFieldId() {
15300
        return _thriftId;
15301
      }
15302
 
15303
      public String getFieldName() {
15304
        return _fieldName;
15305
      }
15306
    }
15307
 
15308
    // isset id assignments
15309
    private static final int __PROVIDERID_ISSET_ID = 0;
15310
    private static final int __COD_ISSET_ID = 1;
15311
    private BitSet __isset_bit_vector = new BitSet(2);
15312
 
15313
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15314
    static {
15315
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15316
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15317
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15318
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15320
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15321
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15322
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15323
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15324
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15325
    }
15326
 
15327
    public addNewAwbs_args() {
15328
    }
15329
 
15330
    public addNewAwbs_args(
15331
      long providerId,
15332
      boolean cod,
15333
      List<String> awbs)
15334
    {
15335
      this();
15336
      this.providerId = providerId;
15337
      setProviderIdIsSet(true);
15338
      this.cod = cod;
15339
      setCodIsSet(true);
15340
      this.awbs = awbs;
15341
    }
15342
 
15343
    /**
15344
     * Performs a deep copy on <i>other</i>.
15345
     */
15346
    public addNewAwbs_args(addNewAwbs_args other) {
15347
      __isset_bit_vector.clear();
15348
      __isset_bit_vector.or(other.__isset_bit_vector);
15349
      this.providerId = other.providerId;
15350
      this.cod = other.cod;
15351
      if (other.isSetAwbs()) {
15352
        List<String> __this__awbs = new ArrayList<String>();
15353
        for (String other_element : other.awbs) {
15354
          __this__awbs.add(other_element);
15355
        }
15356
        this.awbs = __this__awbs;
15357
      }
15358
    }
15359
 
15360
    public addNewAwbs_args deepCopy() {
15361
      return new addNewAwbs_args(this);
15362
    }
15363
 
15364
    @Override
15365
    public void clear() {
15366
      setProviderIdIsSet(false);
15367
      this.providerId = 0;
15368
      setCodIsSet(false);
15369
      this.cod = false;
15370
      this.awbs = null;
15371
    }
15372
 
15373
    public long getProviderId() {
15374
      return this.providerId;
15375
    }
15376
 
15377
    public void setProviderId(long providerId) {
15378
      this.providerId = providerId;
15379
      setProviderIdIsSet(true);
15380
    }
15381
 
15382
    public void unsetProviderId() {
15383
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15384
    }
15385
 
15386
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15387
    public boolean isSetProviderId() {
15388
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15389
    }
15390
 
15391
    public void setProviderIdIsSet(boolean value) {
15392
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15393
    }
15394
 
15395
    public boolean isCod() {
15396
      return this.cod;
15397
    }
15398
 
15399
    public void setCod(boolean cod) {
15400
      this.cod = cod;
15401
      setCodIsSet(true);
15402
    }
15403
 
15404
    public void unsetCod() {
15405
      __isset_bit_vector.clear(__COD_ISSET_ID);
15406
    }
15407
 
15408
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15409
    public boolean isSetCod() {
15410
      return __isset_bit_vector.get(__COD_ISSET_ID);
15411
    }
15412
 
15413
    public void setCodIsSet(boolean value) {
15414
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15415
    }
15416
 
15417
    public int getAwbsSize() {
15418
      return (this.awbs == null) ? 0 : this.awbs.size();
15419
    }
15420
 
15421
    public java.util.Iterator<String> getAwbsIterator() {
15422
      return (this.awbs == null) ? null : this.awbs.iterator();
15423
    }
15424
 
15425
    public void addToAwbs(String elem) {
15426
      if (this.awbs == null) {
15427
        this.awbs = new ArrayList<String>();
15428
      }
15429
      this.awbs.add(elem);
15430
    }
15431
 
15432
    public List<String> getAwbs() {
15433
      return this.awbs;
15434
    }
15435
 
15436
    public void setAwbs(List<String> awbs) {
15437
      this.awbs = awbs;
15438
    }
15439
 
15440
    public void unsetAwbs() {
15441
      this.awbs = null;
15442
    }
15443
 
15444
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15445
    public boolean isSetAwbs() {
15446
      return this.awbs != null;
15447
    }
15448
 
15449
    public void setAwbsIsSet(boolean value) {
15450
      if (!value) {
15451
        this.awbs = null;
15452
      }
15453
    }
15454
 
15455
    public void setFieldValue(_Fields field, Object value) {
15456
      switch (field) {
15457
      case PROVIDER_ID:
15458
        if (value == null) {
15459
          unsetProviderId();
15460
        } else {
15461
          setProviderId((Long)value);
15462
        }
15463
        break;
15464
 
15465
      case COD:
15466
        if (value == null) {
15467
          unsetCod();
15468
        } else {
15469
          setCod((Boolean)value);
15470
        }
15471
        break;
15472
 
15473
      case AWBS:
15474
        if (value == null) {
15475
          unsetAwbs();
15476
        } else {
15477
          setAwbs((List<String>)value);
15478
        }
15479
        break;
15480
 
15481
      }
15482
    }
15483
 
15484
    public Object getFieldValue(_Fields field) {
15485
      switch (field) {
15486
      case PROVIDER_ID:
15487
        return Long.valueOf(getProviderId());
15488
 
15489
      case COD:
15490
        return Boolean.valueOf(isCod());
15491
 
15492
      case AWBS:
15493
        return getAwbs();
15494
 
15495
      }
15496
      throw new IllegalStateException();
15497
    }
15498
 
15499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15500
    public boolean isSet(_Fields field) {
15501
      if (field == null) {
15502
        throw new IllegalArgumentException();
15503
      }
15504
 
15505
      switch (field) {
15506
      case PROVIDER_ID:
15507
        return isSetProviderId();
15508
      case COD:
15509
        return isSetCod();
15510
      case AWBS:
15511
        return isSetAwbs();
15512
      }
15513
      throw new IllegalStateException();
15514
    }
15515
 
15516
    @Override
15517
    public boolean equals(Object that) {
15518
      if (that == null)
15519
        return false;
15520
      if (that instanceof addNewAwbs_args)
15521
        return this.equals((addNewAwbs_args)that);
15522
      return false;
15523
    }
15524
 
15525
    public boolean equals(addNewAwbs_args that) {
15526
      if (that == null)
15527
        return false;
15528
 
15529
      boolean this_present_providerId = true;
15530
      boolean that_present_providerId = true;
15531
      if (this_present_providerId || that_present_providerId) {
15532
        if (!(this_present_providerId && that_present_providerId))
15533
          return false;
15534
        if (this.providerId != that.providerId)
15535
          return false;
15536
      }
15537
 
15538
      boolean this_present_cod = true;
15539
      boolean that_present_cod = true;
15540
      if (this_present_cod || that_present_cod) {
15541
        if (!(this_present_cod && that_present_cod))
15542
          return false;
15543
        if (this.cod != that.cod)
15544
          return false;
15545
      }
15546
 
15547
      boolean this_present_awbs = true && this.isSetAwbs();
15548
      boolean that_present_awbs = true && that.isSetAwbs();
15549
      if (this_present_awbs || that_present_awbs) {
15550
        if (!(this_present_awbs && that_present_awbs))
15551
          return false;
15552
        if (!this.awbs.equals(that.awbs))
15553
          return false;
15554
      }
15555
 
15556
      return true;
15557
    }
15558
 
15559
    @Override
15560
    public int hashCode() {
15561
      return 0;
15562
    }
15563
 
15564
    public int compareTo(addNewAwbs_args other) {
15565
      if (!getClass().equals(other.getClass())) {
15566
        return getClass().getName().compareTo(other.getClass().getName());
15567
      }
15568
 
15569
      int lastComparison = 0;
15570
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15571
 
15572
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15573
      if (lastComparison != 0) {
15574
        return lastComparison;
15575
      }
15576
      if (isSetProviderId()) {
15577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15578
        if (lastComparison != 0) {
15579
          return lastComparison;
15580
        }
15581
      }
15582
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15583
      if (lastComparison != 0) {
15584
        return lastComparison;
15585
      }
15586
      if (isSetCod()) {
15587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15588
        if (lastComparison != 0) {
15589
          return lastComparison;
15590
        }
15591
      }
15592
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
15593
      if (lastComparison != 0) {
15594
        return lastComparison;
15595
      }
15596
      if (isSetAwbs()) {
15597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15598
        if (lastComparison != 0) {
15599
          return lastComparison;
15600
        }
15601
      }
15602
      return 0;
15603
    }
15604
 
15605
    public _Fields fieldForId(int fieldId) {
15606
      return _Fields.findByThriftId(fieldId);
15607
    }
15608
 
15609
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15610
      org.apache.thrift.protocol.TField field;
15611
      iprot.readStructBegin();
15612
      while (true)
15613
      {
15614
        field = iprot.readFieldBegin();
15615
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15616
          break;
15617
        }
15618
        switch (field.id) {
15619
          case 1: // PROVIDER_ID
15620
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15621
              this.providerId = iprot.readI64();
15622
              setProviderIdIsSet(true);
15623
            } else { 
15624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15625
            }
15626
            break;
15627
          case 2: // COD
15628
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15629
              this.cod = iprot.readBool();
15630
              setCodIsSet(true);
15631
            } else { 
15632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15633
            }
15634
            break;
15635
          case 3: // AWBS
15636
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15637
              {
15638
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
15639
                this.awbs = new ArrayList<String>(_list25.size);
15640
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
15641
                {
15642
                  String _elem27; // required
15643
                  _elem27 = iprot.readString();
15644
                  this.awbs.add(_elem27);
15645
                }
15646
                iprot.readListEnd();
15647
              }
15648
            } else { 
15649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15650
            }
15651
            break;
15652
          default:
15653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15654
        }
15655
        iprot.readFieldEnd();
15656
      }
15657
      iprot.readStructEnd();
15658
      validate();
15659
    }
15660
 
15661
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15662
      validate();
15663
 
15664
      oprot.writeStructBegin(STRUCT_DESC);
15665
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15666
      oprot.writeI64(this.providerId);
15667
      oprot.writeFieldEnd();
15668
      oprot.writeFieldBegin(COD_FIELD_DESC);
15669
      oprot.writeBool(this.cod);
15670
      oprot.writeFieldEnd();
15671
      if (this.awbs != null) {
15672
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
15673
        {
15674
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
15675
          for (String _iter28 : this.awbs)
15676
          {
15677
            oprot.writeString(_iter28);
15678
          }
15679
          oprot.writeListEnd();
15680
        }
15681
        oprot.writeFieldEnd();
15682
      }
15683
      oprot.writeFieldStop();
15684
      oprot.writeStructEnd();
15685
    }
15686
 
15687
    @Override
15688
    public String toString() {
15689
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
15690
      boolean first = true;
15691
 
15692
      sb.append("providerId:");
15693
      sb.append(this.providerId);
15694
      first = false;
15695
      if (!first) sb.append(", ");
15696
      sb.append("cod:");
15697
      sb.append(this.cod);
15698
      first = false;
15699
      if (!first) sb.append(", ");
15700
      sb.append("awbs:");
15701
      if (this.awbs == null) {
15702
        sb.append("null");
15703
      } else {
15704
        sb.append(this.awbs);
15705
      }
15706
      first = false;
15707
      sb.append(")");
15708
      return sb.toString();
15709
    }
15710
 
15711
    public void validate() throws org.apache.thrift.TException {
15712
      // check for required fields
15713
    }
15714
 
15715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15716
      try {
15717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15718
      } catch (org.apache.thrift.TException te) {
15719
        throw new java.io.IOException(te);
15720
      }
15721
    }
15722
 
15723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15724
      try {
15725
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15726
        __isset_bit_vector = new BitSet(1);
15727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15728
      } catch (org.apache.thrift.TException te) {
15729
        throw new java.io.IOException(te);
15730
      }
15731
    }
15732
 
15733
  }
15734
 
15735
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
15736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
15737
 
15738
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
15739
 
15740
    private boolean success; // required
15741
 
15742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15744
      SUCCESS((short)0, "success");
15745
 
15746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15747
 
15748
      static {
15749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15750
          byName.put(field.getFieldName(), field);
15751
        }
15752
      }
15753
 
15754
      /**
15755
       * Find the _Fields constant that matches fieldId, or null if its not found.
15756
       */
15757
      public static _Fields findByThriftId(int fieldId) {
15758
        switch(fieldId) {
15759
          case 0: // SUCCESS
15760
            return SUCCESS;
15761
          default:
15762
            return null;
15763
        }
15764
      }
15765
 
15766
      /**
15767
       * Find the _Fields constant that matches fieldId, throwing an exception
15768
       * if it is not found.
15769
       */
15770
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15771
        _Fields fields = findByThriftId(fieldId);
15772
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15773
        return fields;
15774
      }
15775
 
15776
      /**
15777
       * Find the _Fields constant that matches name, or null if its not found.
15778
       */
15779
      public static _Fields findByName(String name) {
15780
        return byName.get(name);
15781
      }
15782
 
15783
      private final short _thriftId;
15784
      private final String _fieldName;
15785
 
15786
      _Fields(short thriftId, String fieldName) {
15787
        _thriftId = thriftId;
15788
        _fieldName = fieldName;
15789
      }
15790
 
15791
      public short getThriftFieldId() {
15792
        return _thriftId;
15793
      }
15794
 
15795
      public String getFieldName() {
15796
        return _fieldName;
15797
      }
15798
    }
15799
 
15800
    // isset id assignments
15801
    private static final int __SUCCESS_ISSET_ID = 0;
15802
    private BitSet __isset_bit_vector = new BitSet(1);
15803
 
15804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15805
    static {
15806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15807
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15809
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15810
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
15811
    }
15812
 
15813
    public addNewAwbs_result() {
15814
    }
15815
 
15816
    public addNewAwbs_result(
15817
      boolean success)
15818
    {
15819
      this();
15820
      this.success = success;
15821
      setSuccessIsSet(true);
15822
    }
15823
 
15824
    /**
15825
     * Performs a deep copy on <i>other</i>.
15826
     */
15827
    public addNewAwbs_result(addNewAwbs_result other) {
15828
      __isset_bit_vector.clear();
15829
      __isset_bit_vector.or(other.__isset_bit_vector);
15830
      this.success = other.success;
15831
    }
15832
 
15833
    public addNewAwbs_result deepCopy() {
15834
      return new addNewAwbs_result(this);
15835
    }
15836
 
15837
    @Override
15838
    public void clear() {
15839
      setSuccessIsSet(false);
15840
      this.success = false;
15841
    }
15842
 
15843
    public boolean isSuccess() {
15844
      return this.success;
15845
    }
15846
 
15847
    public void setSuccess(boolean success) {
15848
      this.success = success;
15849
      setSuccessIsSet(true);
15850
    }
15851
 
15852
    public void unsetSuccess() {
15853
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15854
    }
15855
 
15856
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15857
    public boolean isSetSuccess() {
15858
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15859
    }
15860
 
15861
    public void setSuccessIsSet(boolean value) {
15862
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15863
    }
15864
 
15865
    public void setFieldValue(_Fields field, Object value) {
15866
      switch (field) {
15867
      case SUCCESS:
15868
        if (value == null) {
15869
          unsetSuccess();
15870
        } else {
15871
          setSuccess((Boolean)value);
15872
        }
15873
        break;
15874
 
15875
      }
15876
    }
15877
 
15878
    public Object getFieldValue(_Fields field) {
15879
      switch (field) {
15880
      case SUCCESS:
15881
        return Boolean.valueOf(isSuccess());
15882
 
15883
      }
15884
      throw new IllegalStateException();
15885
    }
15886
 
15887
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15888
    public boolean isSet(_Fields field) {
15889
      if (field == null) {
15890
        throw new IllegalArgumentException();
15891
      }
15892
 
15893
      switch (field) {
15894
      case SUCCESS:
15895
        return isSetSuccess();
15896
      }
15897
      throw new IllegalStateException();
15898
    }
15899
 
15900
    @Override
15901
    public boolean equals(Object that) {
15902
      if (that == null)
15903
        return false;
15904
      if (that instanceof addNewAwbs_result)
15905
        return this.equals((addNewAwbs_result)that);
15906
      return false;
15907
    }
15908
 
15909
    public boolean equals(addNewAwbs_result that) {
15910
      if (that == null)
15911
        return false;
15912
 
15913
      boolean this_present_success = true;
15914
      boolean that_present_success = true;
15915
      if (this_present_success || that_present_success) {
15916
        if (!(this_present_success && that_present_success))
15917
          return false;
15918
        if (this.success != that.success)
15919
          return false;
15920
      }
15921
 
15922
      return true;
15923
    }
15924
 
15925
    @Override
15926
    public int hashCode() {
15927
      return 0;
15928
    }
15929
 
15930
    public int compareTo(addNewAwbs_result other) {
15931
      if (!getClass().equals(other.getClass())) {
15932
        return getClass().getName().compareTo(other.getClass().getName());
15933
      }
15934
 
15935
      int lastComparison = 0;
15936
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
15937
 
15938
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15939
      if (lastComparison != 0) {
15940
        return lastComparison;
15941
      }
15942
      if (isSetSuccess()) {
15943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15944
        if (lastComparison != 0) {
15945
          return lastComparison;
15946
        }
15947
      }
15948
      return 0;
15949
    }
15950
 
15951
    public _Fields fieldForId(int fieldId) {
15952
      return _Fields.findByThriftId(fieldId);
15953
    }
15954
 
15955
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15956
      org.apache.thrift.protocol.TField field;
15957
      iprot.readStructBegin();
15958
      while (true)
15959
      {
15960
        field = iprot.readFieldBegin();
15961
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15962
          break;
15963
        }
15964
        switch (field.id) {
15965
          case 0: // SUCCESS
15966
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15967
              this.success = iprot.readBool();
15968
              setSuccessIsSet(true);
15969
            } else { 
15970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15971
            }
15972
            break;
15973
          default:
15974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15975
        }
15976
        iprot.readFieldEnd();
15977
      }
15978
      iprot.readStructEnd();
15979
      validate();
15980
    }
15981
 
15982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15983
      oprot.writeStructBegin(STRUCT_DESC);
15984
 
15985
      if (this.isSetSuccess()) {
15986
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15987
        oprot.writeBool(this.success);
15988
        oprot.writeFieldEnd();
15989
      }
15990
      oprot.writeFieldStop();
15991
      oprot.writeStructEnd();
15992
    }
15993
 
15994
    @Override
15995
    public String toString() {
15996
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
15997
      boolean first = true;
15998
 
15999
      sb.append("success:");
16000
      sb.append(this.success);
16001
      first = false;
16002
      sb.append(")");
16003
      return sb.toString();
16004
    }
16005
 
16006
    public void validate() throws org.apache.thrift.TException {
16007
      // check for required fields
16008
    }
16009
 
16010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16011
      try {
16012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16013
      } catch (org.apache.thrift.TException te) {
16014
        throw new java.io.IOException(te);
16015
      }
16016
    }
16017
 
16018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16019
      try {
16020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16021
      } catch (org.apache.thrift.TException te) {
16022
        throw new java.io.IOException(te);
16023
      }
16024
    }
16025
 
16026
  }
16027
 
7737 manish.sha 16028
  public static class getServiceableLocationAsPerProviderIdAndPincode_args implements org.apache.thrift.TBase<getServiceableLocationAsPerProviderIdAndPincode_args, getServiceableLocationAsPerProviderIdAndPincode_args._Fields>, java.io.Serializable, Cloneable   {
16029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceableLocationAsPerProviderIdAndPincode_args");
16030
 
16031
    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);
16032
    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);
16033
 
16034
    private long providerId; // required
16035
    private String pincode; // required
16036
 
16037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16039
      PROVIDER_ID((short)1, "providerId"),
16040
      PINCODE((short)2, "pincode");
16041
 
16042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16043
 
16044
      static {
16045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16046
          byName.put(field.getFieldName(), field);
16047
        }
16048
      }
16049
 
16050
      /**
16051
       * Find the _Fields constant that matches fieldId, or null if its not found.
16052
       */
16053
      public static _Fields findByThriftId(int fieldId) {
16054
        switch(fieldId) {
16055
          case 1: // PROVIDER_ID
16056
            return PROVIDER_ID;
16057
          case 2: // PINCODE
16058
            return PINCODE;
16059
          default:
16060
            return null;
16061
        }
16062
      }
16063
 
16064
      /**
16065
       * Find the _Fields constant that matches fieldId, throwing an exception
16066
       * if it is not found.
16067
       */
16068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16069
        _Fields fields = findByThriftId(fieldId);
16070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16071
        return fields;
16072
      }
16073
 
16074
      /**
16075
       * Find the _Fields constant that matches name, or null if its not found.
16076
       */
16077
      public static _Fields findByName(String name) {
16078
        return byName.get(name);
16079
      }
16080
 
16081
      private final short _thriftId;
16082
      private final String _fieldName;
16083
 
16084
      _Fields(short thriftId, String fieldName) {
16085
        _thriftId = thriftId;
16086
        _fieldName = fieldName;
16087
      }
16088
 
16089
      public short getThriftFieldId() {
16090
        return _thriftId;
16091
      }
16092
 
16093
      public String getFieldName() {
16094
        return _fieldName;
16095
      }
16096
    }
16097
 
16098
    // isset id assignments
16099
    private static final int __PROVIDERID_ISSET_ID = 0;
16100
    private BitSet __isset_bit_vector = new BitSet(1);
16101
 
16102
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16103
    static {
16104
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16105
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16107
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16108
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16109
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16110
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceableLocationAsPerProviderIdAndPincode_args.class, metaDataMap);
16111
    }
16112
 
16113
    public getServiceableLocationAsPerProviderIdAndPincode_args() {
16114
    }
16115
 
16116
    public getServiceableLocationAsPerProviderIdAndPincode_args(
16117
      long providerId,
16118
      String pincode)
16119
    {
16120
      this();
16121
      this.providerId = providerId;
16122
      setProviderIdIsSet(true);
16123
      this.pincode = pincode;
16124
    }
16125
 
16126
    /**
16127
     * Performs a deep copy on <i>other</i>.
16128
     */
16129
    public getServiceableLocationAsPerProviderIdAndPincode_args(getServiceableLocationAsPerProviderIdAndPincode_args other) {
16130
      __isset_bit_vector.clear();
16131
      __isset_bit_vector.or(other.__isset_bit_vector);
16132
      this.providerId = other.providerId;
16133
      if (other.isSetPincode()) {
16134
        this.pincode = other.pincode;
16135
      }
16136
    }
16137
 
16138
    public getServiceableLocationAsPerProviderIdAndPincode_args deepCopy() {
16139
      return new getServiceableLocationAsPerProviderIdAndPincode_args(this);
16140
    }
16141
 
16142
    @Override
16143
    public void clear() {
16144
      setProviderIdIsSet(false);
16145
      this.providerId = 0;
16146
      this.pincode = null;
16147
    }
16148
 
16149
    public long getProviderId() {
16150
      return this.providerId;
16151
    }
16152
 
16153
    public void setProviderId(long providerId) {
16154
      this.providerId = providerId;
16155
      setProviderIdIsSet(true);
16156
    }
16157
 
16158
    public void unsetProviderId() {
16159
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
16160
    }
16161
 
16162
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
16163
    public boolean isSetProviderId() {
16164
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
16165
    }
16166
 
16167
    public void setProviderIdIsSet(boolean value) {
16168
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
16169
    }
16170
 
16171
    public String getPincode() {
16172
      return this.pincode;
16173
    }
16174
 
16175
    public void setPincode(String pincode) {
16176
      this.pincode = pincode;
16177
    }
16178
 
16179
    public void unsetPincode() {
16180
      this.pincode = null;
16181
    }
16182
 
16183
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
16184
    public boolean isSetPincode() {
16185
      return this.pincode != null;
16186
    }
16187
 
16188
    public void setPincodeIsSet(boolean value) {
16189
      if (!value) {
16190
        this.pincode = null;
16191
      }
16192
    }
16193
 
16194
    public void setFieldValue(_Fields field, Object value) {
16195
      switch (field) {
16196
      case PROVIDER_ID:
16197
        if (value == null) {
16198
          unsetProviderId();
16199
        } else {
16200
          setProviderId((Long)value);
16201
        }
16202
        break;
16203
 
16204
      case PINCODE:
16205
        if (value == null) {
16206
          unsetPincode();
16207
        } else {
16208
          setPincode((String)value);
16209
        }
16210
        break;
16211
 
16212
      }
16213
    }
16214
 
16215
    public Object getFieldValue(_Fields field) {
16216
      switch (field) {
16217
      case PROVIDER_ID:
16218
        return Long.valueOf(getProviderId());
16219
 
16220
      case PINCODE:
16221
        return getPincode();
16222
 
16223
      }
16224
      throw new IllegalStateException();
16225
    }
16226
 
16227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16228
    public boolean isSet(_Fields field) {
16229
      if (field == null) {
16230
        throw new IllegalArgumentException();
16231
      }
16232
 
16233
      switch (field) {
16234
      case PROVIDER_ID:
16235
        return isSetProviderId();
16236
      case PINCODE:
16237
        return isSetPincode();
16238
      }
16239
      throw new IllegalStateException();
16240
    }
16241
 
16242
    @Override
16243
    public boolean equals(Object that) {
16244
      if (that == null)
16245
        return false;
16246
      if (that instanceof getServiceableLocationAsPerProviderIdAndPincode_args)
16247
        return this.equals((getServiceableLocationAsPerProviderIdAndPincode_args)that);
16248
      return false;
16249
    }
16250
 
16251
    public boolean equals(getServiceableLocationAsPerProviderIdAndPincode_args that) {
16252
      if (that == null)
16253
        return false;
16254
 
16255
      boolean this_present_providerId = true;
16256
      boolean that_present_providerId = true;
16257
      if (this_present_providerId || that_present_providerId) {
16258
        if (!(this_present_providerId && that_present_providerId))
16259
          return false;
16260
        if (this.providerId != that.providerId)
16261
          return false;
16262
      }
16263
 
16264
      boolean this_present_pincode = true && this.isSetPincode();
16265
      boolean that_present_pincode = true && that.isSetPincode();
16266
      if (this_present_pincode || that_present_pincode) {
16267
        if (!(this_present_pincode && that_present_pincode))
16268
          return false;
16269
        if (!this.pincode.equals(that.pincode))
16270
          return false;
16271
      }
16272
 
16273
      return true;
16274
    }
16275
 
16276
    @Override
16277
    public int hashCode() {
16278
      return 0;
16279
    }
16280
 
16281
    public int compareTo(getServiceableLocationAsPerProviderIdAndPincode_args other) {
16282
      if (!getClass().equals(other.getClass())) {
16283
        return getClass().getName().compareTo(other.getClass().getName());
16284
      }
16285
 
16286
      int lastComparison = 0;
16287
      getServiceableLocationAsPerProviderIdAndPincode_args typedOther = (getServiceableLocationAsPerProviderIdAndPincode_args)other;
16288
 
16289
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16290
      if (lastComparison != 0) {
16291
        return lastComparison;
16292
      }
16293
      if (isSetProviderId()) {
16294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16295
        if (lastComparison != 0) {
16296
          return lastComparison;
16297
        }
16298
      }
16299
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
16300
      if (lastComparison != 0) {
16301
        return lastComparison;
16302
      }
16303
      if (isSetPincode()) {
16304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
16305
        if (lastComparison != 0) {
16306
          return lastComparison;
16307
        }
16308
      }
16309
      return 0;
16310
    }
16311
 
16312
    public _Fields fieldForId(int fieldId) {
16313
      return _Fields.findByThriftId(fieldId);
16314
    }
16315
 
16316
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16317
      org.apache.thrift.protocol.TField field;
16318
      iprot.readStructBegin();
16319
      while (true)
16320
      {
16321
        field = iprot.readFieldBegin();
16322
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16323
          break;
16324
        }
16325
        switch (field.id) {
16326
          case 1: // PROVIDER_ID
16327
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16328
              this.providerId = iprot.readI64();
16329
              setProviderIdIsSet(true);
16330
            } else { 
16331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16332
            }
16333
            break;
16334
          case 2: // PINCODE
16335
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16336
              this.pincode = iprot.readString();
16337
            } else { 
16338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16339
            }
16340
            break;
16341
          default:
16342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16343
        }
16344
        iprot.readFieldEnd();
16345
      }
16346
      iprot.readStructEnd();
16347
      validate();
16348
    }
16349
 
16350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16351
      validate();
16352
 
16353
      oprot.writeStructBegin(STRUCT_DESC);
16354
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16355
      oprot.writeI64(this.providerId);
16356
      oprot.writeFieldEnd();
16357
      if (this.pincode != null) {
16358
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
16359
        oprot.writeString(this.pincode);
16360
        oprot.writeFieldEnd();
16361
      }
16362
      oprot.writeFieldStop();
16363
      oprot.writeStructEnd();
16364
    }
16365
 
16366
    @Override
16367
    public String toString() {
16368
      StringBuilder sb = new StringBuilder("getServiceableLocationAsPerProviderIdAndPincode_args(");
16369
      boolean first = true;
16370
 
16371
      sb.append("providerId:");
16372
      sb.append(this.providerId);
16373
      first = false;
16374
      if (!first) sb.append(", ");
16375
      sb.append("pincode:");
16376
      if (this.pincode == null) {
16377
        sb.append("null");
16378
      } else {
16379
        sb.append(this.pincode);
16380
      }
16381
      first = false;
16382
      sb.append(")");
16383
      return sb.toString();
16384
    }
16385
 
16386
    public void validate() throws org.apache.thrift.TException {
16387
      // check for required fields
16388
    }
16389
 
16390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16391
      try {
16392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16393
      } catch (org.apache.thrift.TException te) {
16394
        throw new java.io.IOException(te);
16395
      }
16396
    }
16397
 
16398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16399
      try {
16400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16401
      } catch (org.apache.thrift.TException te) {
16402
        throw new java.io.IOException(te);
16403
      }
16404
    }
16405
 
16406
  }
16407
 
16408
  public static class getServiceableLocationAsPerProviderIdAndPincode_result implements org.apache.thrift.TBase<getServiceableLocationAsPerProviderIdAndPincode_result, getServiceableLocationAsPerProviderIdAndPincode_result._Fields>, java.io.Serializable, Cloneable   {
16409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceableLocationAsPerProviderIdAndPincode_result");
16410
 
16411
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
16412
 
16413
    private boolean success; // required
16414
 
16415
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16416
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16417
      SUCCESS((short)0, "success");
16418
 
16419
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16420
 
16421
      static {
16422
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16423
          byName.put(field.getFieldName(), field);
16424
        }
16425
      }
16426
 
16427
      /**
16428
       * Find the _Fields constant that matches fieldId, or null if its not found.
16429
       */
16430
      public static _Fields findByThriftId(int fieldId) {
16431
        switch(fieldId) {
16432
          case 0: // SUCCESS
16433
            return SUCCESS;
16434
          default:
16435
            return null;
16436
        }
16437
      }
16438
 
16439
      /**
16440
       * Find the _Fields constant that matches fieldId, throwing an exception
16441
       * if it is not found.
16442
       */
16443
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16444
        _Fields fields = findByThriftId(fieldId);
16445
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16446
        return fields;
16447
      }
16448
 
16449
      /**
16450
       * Find the _Fields constant that matches name, or null if its not found.
16451
       */
16452
      public static _Fields findByName(String name) {
16453
        return byName.get(name);
16454
      }
16455
 
16456
      private final short _thriftId;
16457
      private final String _fieldName;
16458
 
16459
      _Fields(short thriftId, String fieldName) {
16460
        _thriftId = thriftId;
16461
        _fieldName = fieldName;
16462
      }
16463
 
16464
      public short getThriftFieldId() {
16465
        return _thriftId;
16466
      }
16467
 
16468
      public String getFieldName() {
16469
        return _fieldName;
16470
      }
16471
    }
16472
 
16473
    // isset id assignments
16474
    private static final int __SUCCESS_ISSET_ID = 0;
16475
    private BitSet __isset_bit_vector = new BitSet(1);
16476
 
16477
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16478
    static {
16479
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16480
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceableLocationAsPerProviderIdAndPincode_result.class, metaDataMap);
16484
    }
16485
 
16486
    public getServiceableLocationAsPerProviderIdAndPincode_result() {
16487
    }
16488
 
16489
    public getServiceableLocationAsPerProviderIdAndPincode_result(
16490
      boolean success)
16491
    {
16492
      this();
16493
      this.success = success;
16494
      setSuccessIsSet(true);
16495
    }
16496
 
16497
    /**
16498
     * Performs a deep copy on <i>other</i>.
16499
     */
16500
    public getServiceableLocationAsPerProviderIdAndPincode_result(getServiceableLocationAsPerProviderIdAndPincode_result other) {
16501
      __isset_bit_vector.clear();
16502
      __isset_bit_vector.or(other.__isset_bit_vector);
16503
      this.success = other.success;
16504
    }
16505
 
16506
    public getServiceableLocationAsPerProviderIdAndPincode_result deepCopy() {
16507
      return new getServiceableLocationAsPerProviderIdAndPincode_result(this);
16508
    }
16509
 
16510
    @Override
16511
    public void clear() {
16512
      setSuccessIsSet(false);
16513
      this.success = false;
16514
    }
16515
 
16516
    public boolean isSuccess() {
16517
      return this.success;
16518
    }
16519
 
16520
    public void setSuccess(boolean success) {
16521
      this.success = success;
16522
      setSuccessIsSet(true);
16523
    }
16524
 
16525
    public void unsetSuccess() {
16526
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16527
    }
16528
 
16529
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16530
    public boolean isSetSuccess() {
16531
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16532
    }
16533
 
16534
    public void setSuccessIsSet(boolean value) {
16535
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16536
    }
16537
 
16538
    public void setFieldValue(_Fields field, Object value) {
16539
      switch (field) {
16540
      case SUCCESS:
16541
        if (value == null) {
16542
          unsetSuccess();
16543
        } else {
16544
          setSuccess((Boolean)value);
16545
        }
16546
        break;
16547
 
16548
      }
16549
    }
16550
 
16551
    public Object getFieldValue(_Fields field) {
16552
      switch (field) {
16553
      case SUCCESS:
16554
        return Boolean.valueOf(isSuccess());
16555
 
16556
      }
16557
      throw new IllegalStateException();
16558
    }
16559
 
16560
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16561
    public boolean isSet(_Fields field) {
16562
      if (field == null) {
16563
        throw new IllegalArgumentException();
16564
      }
16565
 
16566
      switch (field) {
16567
      case SUCCESS:
16568
        return isSetSuccess();
16569
      }
16570
      throw new IllegalStateException();
16571
    }
16572
 
16573
    @Override
16574
    public boolean equals(Object that) {
16575
      if (that == null)
16576
        return false;
16577
      if (that instanceof getServiceableLocationAsPerProviderIdAndPincode_result)
16578
        return this.equals((getServiceableLocationAsPerProviderIdAndPincode_result)that);
16579
      return false;
16580
    }
16581
 
16582
    public boolean equals(getServiceableLocationAsPerProviderIdAndPincode_result that) {
16583
      if (that == null)
16584
        return false;
16585
 
16586
      boolean this_present_success = true;
16587
      boolean that_present_success = true;
16588
      if (this_present_success || that_present_success) {
16589
        if (!(this_present_success && that_present_success))
16590
          return false;
16591
        if (this.success != that.success)
16592
          return false;
16593
      }
16594
 
16595
      return true;
16596
    }
16597
 
16598
    @Override
16599
    public int hashCode() {
16600
      return 0;
16601
    }
16602
 
16603
    public int compareTo(getServiceableLocationAsPerProviderIdAndPincode_result other) {
16604
      if (!getClass().equals(other.getClass())) {
16605
        return getClass().getName().compareTo(other.getClass().getName());
16606
      }
16607
 
16608
      int lastComparison = 0;
16609
      getServiceableLocationAsPerProviderIdAndPincode_result typedOther = (getServiceableLocationAsPerProviderIdAndPincode_result)other;
16610
 
16611
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16612
      if (lastComparison != 0) {
16613
        return lastComparison;
16614
      }
16615
      if (isSetSuccess()) {
16616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16617
        if (lastComparison != 0) {
16618
          return lastComparison;
16619
        }
16620
      }
16621
      return 0;
16622
    }
16623
 
16624
    public _Fields fieldForId(int fieldId) {
16625
      return _Fields.findByThriftId(fieldId);
16626
    }
16627
 
16628
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16629
      org.apache.thrift.protocol.TField field;
16630
      iprot.readStructBegin();
16631
      while (true)
16632
      {
16633
        field = iprot.readFieldBegin();
16634
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16635
          break;
16636
        }
16637
        switch (field.id) {
16638
          case 0: // SUCCESS
16639
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16640
              this.success = iprot.readBool();
16641
              setSuccessIsSet(true);
16642
            } else { 
16643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16644
            }
16645
            break;
16646
          default:
16647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16648
        }
16649
        iprot.readFieldEnd();
16650
      }
16651
      iprot.readStructEnd();
16652
      validate();
16653
    }
16654
 
16655
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16656
      oprot.writeStructBegin(STRUCT_DESC);
16657
 
16658
      if (this.isSetSuccess()) {
16659
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16660
        oprot.writeBool(this.success);
16661
        oprot.writeFieldEnd();
16662
      }
16663
      oprot.writeFieldStop();
16664
      oprot.writeStructEnd();
16665
    }
16666
 
16667
    @Override
16668
    public String toString() {
16669
      StringBuilder sb = new StringBuilder("getServiceableLocationAsPerProviderIdAndPincode_result(");
16670
      boolean first = true;
16671
 
16672
      sb.append("success:");
16673
      sb.append(this.success);
16674
      first = false;
16675
      sb.append(")");
16676
      return sb.toString();
16677
    }
16678
 
16679
    public void validate() throws org.apache.thrift.TException {
16680
      // check for required fields
16681
    }
16682
 
16683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16684
      try {
16685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16686
      } catch (org.apache.thrift.TException te) {
16687
        throw new java.io.IOException(te);
16688
      }
16689
    }
16690
 
16691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16692
      try {
16693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16694
      } catch (org.apache.thrift.TException te) {
16695
        throw new java.io.IOException(te);
16696
      }
16697
    }
16698
 
16699
  }
16700
 
16701
  public static class runCompleteUpdateForPincode_args implements org.apache.thrift.TBase<runCompleteUpdateForPincode_args, runCompleteUpdateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
16702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runCompleteUpdateForPincode_args");
16703
 
16704
 
16705
 
16706
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16707
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16708
;
16709
 
16710
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16711
 
16712
      static {
16713
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16714
          byName.put(field.getFieldName(), field);
16715
        }
16716
      }
16717
 
16718
      /**
16719
       * Find the _Fields constant that matches fieldId, or null if its not found.
16720
       */
16721
      public static _Fields findByThriftId(int fieldId) {
16722
        switch(fieldId) {
16723
          default:
16724
            return null;
16725
        }
16726
      }
16727
 
16728
      /**
16729
       * Find the _Fields constant that matches fieldId, throwing an exception
16730
       * if it is not found.
16731
       */
16732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16733
        _Fields fields = findByThriftId(fieldId);
16734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16735
        return fields;
16736
      }
16737
 
16738
      /**
16739
       * Find the _Fields constant that matches name, or null if its not found.
16740
       */
16741
      public static _Fields findByName(String name) {
16742
        return byName.get(name);
16743
      }
16744
 
16745
      private final short _thriftId;
16746
      private final String _fieldName;
16747
 
16748
      _Fields(short thriftId, String fieldName) {
16749
        _thriftId = thriftId;
16750
        _fieldName = fieldName;
16751
      }
16752
 
16753
      public short getThriftFieldId() {
16754
        return _thriftId;
16755
      }
16756
 
16757
      public String getFieldName() {
16758
        return _fieldName;
16759
      }
16760
    }
16761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16762
    static {
16763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runCompleteUpdateForPincode_args.class, metaDataMap);
16766
    }
16767
 
16768
    public runCompleteUpdateForPincode_args() {
16769
    }
16770
 
16771
    /**
16772
     * Performs a deep copy on <i>other</i>.
16773
     */
16774
    public runCompleteUpdateForPincode_args(runCompleteUpdateForPincode_args other) {
16775
    }
16776
 
16777
    public runCompleteUpdateForPincode_args deepCopy() {
16778
      return new runCompleteUpdateForPincode_args(this);
16779
    }
16780
 
16781
    @Override
16782
    public void clear() {
16783
    }
16784
 
16785
    public void setFieldValue(_Fields field, Object value) {
16786
      switch (field) {
16787
      }
16788
    }
16789
 
16790
    public Object getFieldValue(_Fields field) {
16791
      switch (field) {
16792
      }
16793
      throw new IllegalStateException();
16794
    }
16795
 
16796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16797
    public boolean isSet(_Fields field) {
16798
      if (field == null) {
16799
        throw new IllegalArgumentException();
16800
      }
16801
 
16802
      switch (field) {
16803
      }
16804
      throw new IllegalStateException();
16805
    }
16806
 
16807
    @Override
16808
    public boolean equals(Object that) {
16809
      if (that == null)
16810
        return false;
16811
      if (that instanceof runCompleteUpdateForPincode_args)
16812
        return this.equals((runCompleteUpdateForPincode_args)that);
16813
      return false;
16814
    }
16815
 
16816
    public boolean equals(runCompleteUpdateForPincode_args that) {
16817
      if (that == null)
16818
        return false;
16819
 
16820
      return true;
16821
    }
16822
 
16823
    @Override
16824
    public int hashCode() {
16825
      return 0;
16826
    }
16827
 
16828
    public int compareTo(runCompleteUpdateForPincode_args other) {
16829
      if (!getClass().equals(other.getClass())) {
16830
        return getClass().getName().compareTo(other.getClass().getName());
16831
      }
16832
 
16833
      int lastComparison = 0;
16834
      runCompleteUpdateForPincode_args typedOther = (runCompleteUpdateForPincode_args)other;
16835
 
16836
      return 0;
16837
    }
16838
 
16839
    public _Fields fieldForId(int fieldId) {
16840
      return _Fields.findByThriftId(fieldId);
16841
    }
16842
 
16843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16844
      org.apache.thrift.protocol.TField field;
16845
      iprot.readStructBegin();
16846
      while (true)
16847
      {
16848
        field = iprot.readFieldBegin();
16849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16850
          break;
16851
        }
16852
        switch (field.id) {
16853
          default:
16854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16855
        }
16856
        iprot.readFieldEnd();
16857
      }
16858
      iprot.readStructEnd();
16859
      validate();
16860
    }
16861
 
16862
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16863
      validate();
16864
 
16865
      oprot.writeStructBegin(STRUCT_DESC);
16866
      oprot.writeFieldStop();
16867
      oprot.writeStructEnd();
16868
    }
16869
 
16870
    @Override
16871
    public String toString() {
16872
      StringBuilder sb = new StringBuilder("runCompleteUpdateForPincode_args(");
16873
      boolean first = true;
16874
 
16875
      sb.append(")");
16876
      return sb.toString();
16877
    }
16878
 
16879
    public void validate() throws org.apache.thrift.TException {
16880
      // check for required fields
16881
    }
16882
 
16883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16884
      try {
16885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16886
      } catch (org.apache.thrift.TException te) {
16887
        throw new java.io.IOException(te);
16888
      }
16889
    }
16890
 
16891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16892
      try {
16893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16894
      } catch (org.apache.thrift.TException te) {
16895
        throw new java.io.IOException(te);
16896
      }
16897
    }
16898
 
16899
  }
16900
 
16901
  public static class runCompleteUpdateForPincode_result implements org.apache.thrift.TBase<runCompleteUpdateForPincode_result, runCompleteUpdateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
16902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runCompleteUpdateForPincode_result");
16903
 
16904
 
16905
 
16906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16908
;
16909
 
16910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16911
 
16912
      static {
16913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16914
          byName.put(field.getFieldName(), field);
16915
        }
16916
      }
16917
 
16918
      /**
16919
       * Find the _Fields constant that matches fieldId, or null if its not found.
16920
       */
16921
      public static _Fields findByThriftId(int fieldId) {
16922
        switch(fieldId) {
16923
          default:
16924
            return null;
16925
        }
16926
      }
16927
 
16928
      /**
16929
       * Find the _Fields constant that matches fieldId, throwing an exception
16930
       * if it is not found.
16931
       */
16932
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16933
        _Fields fields = findByThriftId(fieldId);
16934
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16935
        return fields;
16936
      }
16937
 
16938
      /**
16939
       * Find the _Fields constant that matches name, or null if its not found.
16940
       */
16941
      public static _Fields findByName(String name) {
16942
        return byName.get(name);
16943
      }
16944
 
16945
      private final short _thriftId;
16946
      private final String _fieldName;
16947
 
16948
      _Fields(short thriftId, String fieldName) {
16949
        _thriftId = thriftId;
16950
        _fieldName = fieldName;
16951
      }
16952
 
16953
      public short getThriftFieldId() {
16954
        return _thriftId;
16955
      }
16956
 
16957
      public String getFieldName() {
16958
        return _fieldName;
16959
      }
16960
    }
16961
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16962
    static {
16963
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16964
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16965
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runCompleteUpdateForPincode_result.class, metaDataMap);
16966
    }
16967
 
16968
    public runCompleteUpdateForPincode_result() {
16969
    }
16970
 
16971
    /**
16972
     * Performs a deep copy on <i>other</i>.
16973
     */
16974
    public runCompleteUpdateForPincode_result(runCompleteUpdateForPincode_result other) {
16975
    }
16976
 
16977
    public runCompleteUpdateForPincode_result deepCopy() {
16978
      return new runCompleteUpdateForPincode_result(this);
16979
    }
16980
 
16981
    @Override
16982
    public void clear() {
16983
    }
16984
 
16985
    public void setFieldValue(_Fields field, Object value) {
16986
      switch (field) {
16987
      }
16988
    }
16989
 
16990
    public Object getFieldValue(_Fields field) {
16991
      switch (field) {
16992
      }
16993
      throw new IllegalStateException();
16994
    }
16995
 
16996
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16997
    public boolean isSet(_Fields field) {
16998
      if (field == null) {
16999
        throw new IllegalArgumentException();
17000
      }
17001
 
17002
      switch (field) {
17003
      }
17004
      throw new IllegalStateException();
17005
    }
17006
 
17007
    @Override
17008
    public boolean equals(Object that) {
17009
      if (that == null)
17010
        return false;
17011
      if (that instanceof runCompleteUpdateForPincode_result)
17012
        return this.equals((runCompleteUpdateForPincode_result)that);
17013
      return false;
17014
    }
17015
 
17016
    public boolean equals(runCompleteUpdateForPincode_result that) {
17017
      if (that == null)
17018
        return false;
17019
 
17020
      return true;
17021
    }
17022
 
17023
    @Override
17024
    public int hashCode() {
17025
      return 0;
17026
    }
17027
 
17028
    public int compareTo(runCompleteUpdateForPincode_result other) {
17029
      if (!getClass().equals(other.getClass())) {
17030
        return getClass().getName().compareTo(other.getClass().getName());
17031
      }
17032
 
17033
      int lastComparison = 0;
17034
      runCompleteUpdateForPincode_result typedOther = (runCompleteUpdateForPincode_result)other;
17035
 
17036
      return 0;
17037
    }
17038
 
17039
    public _Fields fieldForId(int fieldId) {
17040
      return _Fields.findByThriftId(fieldId);
17041
    }
17042
 
17043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17044
      org.apache.thrift.protocol.TField field;
17045
      iprot.readStructBegin();
17046
      while (true)
17047
      {
17048
        field = iprot.readFieldBegin();
17049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17050
          break;
17051
        }
17052
        switch (field.id) {
17053
          default:
17054
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17055
        }
17056
        iprot.readFieldEnd();
17057
      }
17058
      iprot.readStructEnd();
17059
      validate();
17060
    }
17061
 
17062
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17063
      oprot.writeStructBegin(STRUCT_DESC);
17064
 
17065
      oprot.writeFieldStop();
17066
      oprot.writeStructEnd();
17067
    }
17068
 
17069
    @Override
17070
    public String toString() {
17071
      StringBuilder sb = new StringBuilder("runCompleteUpdateForPincode_result(");
17072
      boolean first = true;
17073
 
17074
      sb.append(")");
17075
      return sb.toString();
17076
    }
17077
 
17078
    public void validate() throws org.apache.thrift.TException {
17079
      // check for required fields
17080
    }
17081
 
17082
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17083
      try {
17084
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17085
      } catch (org.apache.thrift.TException te) {
17086
        throw new java.io.IOException(te);
17087
      }
17088
    }
17089
 
17090
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17091
      try {
17092
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17093
      } catch (org.apache.thrift.TException te) {
17094
        throw new java.io.IOException(te);
17095
      }
17096
    }
17097
 
17098
  }
17099
 
412 ashish 17100
}