Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
412 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
412 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.logistics;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
412 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LogisticsService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
412 ashish 26
 
648 chandransh 27
    /**
668 chandransh 28
     * Returns a provider for a given provider ID. Throws an exception if none found.
29
     * 
30
     * @param providerId
31
     */
3430 rajveer 32
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
668 chandransh 33
 
34
    /**
674 chandransh 35
     * Returns a list containing all the providers.
36
     */
3430 rajveer 37
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
674 chandransh 38
 
39
    /**
648 chandransh 40
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
41
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
42
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
43
     * 
44
     * @param itemId
45
     * @param destination_pin
4630 mandeep.dh 46
     * @param type
648 chandransh 47
     */
4630 mandeep.dh 48
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
483 rajveer 49
 
648 chandransh 50
    /**
51
     * Same as above excpet that an airway bill number is also allocated and returned.
52
     * 
53
     * @param destination_pincode
54
     * @param item_id
3044 chandransh 55
     * @param type
648 chandransh 56
     */
3430 rajveer 57
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 58
 
648 chandransh 59
    /**
60
     * Returns an unused AWB number for the given provider.
61
     * 
62
     * @param providerId
63
     */
3430 rajveer 64
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 65
 
648 chandransh 66
    /**
67
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
68
     * 
69
     * @param awb
70
     * @param providerId
71
     */
3430 rajveer 72
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 73
 
730 chandransh 74
    /**
75
     * Returns the short three letter code of a pincode for the given provider.
76
     *    Raises an exception if the pin code is not serviced by the given provider.
77
     * 
78
     * @param providerId
79
     * @param pinCode
80
     */
3430 rajveer 81
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 82
 
1139 chandransh 83
    /**
3103 chandransh 84
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 85
     * 
86
     * @param providerId
3103 chandransh 87
     * @param type
1139 chandransh 88
     */
3430 rajveer 89
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 90
 
1730 ankur.sing 91
    /**
92
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
93
     * fromDate should be passed as milliseconds corresponding to the start of the day.
94
     * If fromDate is passed as -1, fromDate is not considered for filtering
95
     * If toDate is passed as -1, toDate is not considered for filtering
96
     * 
97
     * @param fromDate
98
     * @param toDate
99
     */
3430 rajveer 100
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 101
 
4934 amit.gupta 102
    /**
103
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
104
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
105
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
106
     * 
107
     * @param catalogItemId
108
     * @param destination_pin
109
     * @param type
110
     */
111
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
112
 
412 ashish 113
  }
114
 
3430 rajveer 115
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
116
 
117
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
118
 
119
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
120
 
4630 mandeep.dh 121
    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 122
 
123
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
124
 
125
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
126
 
127
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
128
 
129
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
130
 
131
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
132
 
133
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
134
 
4934 amit.gupta 135
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
136
 
3430 rajveer 137
  }
138
 
3374 rajveer 139
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 140
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
141
      public Factory() {}
142
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
143
        return new Client(prot);
144
      }
145
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
146
        return new Client(iprot, oprot);
147
      }
148
    }
149
 
150
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 151
    {
3430 rajveer 152
      super(prot, prot);
412 ashish 153
    }
154
 
3430 rajveer 155
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 156
      super(iprot, oprot);
412 ashish 157
    }
158
 
3430 rajveer 159
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 160
    {
161
      send_getProvider(providerId);
162
      return recv_getProvider();
163
    }
164
 
3430 rajveer 165
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 166
    {
167
      getProvider_args args = new getProvider_args();
3430 rajveer 168
      args.setProviderId(providerId);
169
      sendBase("getProvider", args);
668 chandransh 170
    }
171
 
3430 rajveer 172
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 173
    {
174
      getProvider_result result = new getProvider_result();
3430 rajveer 175
      receiveBase(result, "getProvider");
668 chandransh 176
      if (result.isSetSuccess()) {
177
        return result.success;
178
      }
179
      if (result.lse != null) {
180
        throw result.lse;
181
      }
3430 rajveer 182
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 183
    }
184
 
3430 rajveer 185
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 186
    {
187
      send_getAllProviders();
188
      return recv_getAllProviders();
189
    }
190
 
3430 rajveer 191
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 192
    {
193
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 194
      sendBase("getAllProviders", args);
674 chandransh 195
    }
196
 
3430 rajveer 197
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 198
    {
199
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 200
      receiveBase(result, "getAllProviders");
674 chandransh 201
      if (result.isSetSuccess()) {
202
        return result.success;
203
      }
204
      if (result.lse != null) {
205
        throw result.lse;
206
      }
3430 rajveer 207
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 208
    }
209
 
4630 mandeep.dh 210
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 211
    {
4630 mandeep.dh 212
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 213
      return recv_getLogisticsEstimation();
214
    }
215
 
4630 mandeep.dh 216
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 217
    {
218
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 219
      args.setItemId(itemId);
220
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 221
      args.setType(type);
3430 rajveer 222
      sendBase("getLogisticsEstimation", args);
471 rajveer 223
    }
224
 
3430 rajveer 225
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 226
    {
227
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 228
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 229
      if (result.isSetSuccess()) {
230
        return result.success;
231
      }
232
      if (result.se != null) {
233
        throw result.se;
234
      }
3430 rajveer 235
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 236
    }
237
 
3430 rajveer 238
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 239
    {
3044 chandransh 240
      send_getLogisticsInfo(destination_pincode, item_id, type);
648 chandransh 241
      return recv_getLogisticsInfo();
471 rajveer 242
    }
243
 
3430 rajveer 244
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 245
    {
648 chandransh 246
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 247
      args.setDestination_pincode(destination_pincode);
248
      args.setItem_id(item_id);
249
      args.setType(type);
250
      sendBase("getLogisticsInfo", args);
471 rajveer 251
    }
252
 
3430 rajveer 253
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 254
    {
648 chandransh 255
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 256
      receiveBase(result, "getLogisticsInfo");
648 chandransh 257
      if (result.isSetSuccess()) {
258
        return result.success;
477 rajveer 259
      }
648 chandransh 260
      if (result.se != null) {
261
        throw result.se;
412 ashish 262
      }
3430 rajveer 263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 264
    }
265
 
3430 rajveer 266
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 267
    {
648 chandransh 268
      send_getEmptyAWB(providerId);
412 ashish 269
      return recv_getEmptyAWB();
270
    }
271
 
3430 rajveer 272
    public void send_getEmptyAWB(long providerId) throws org.apache.thrift.TException
412 ashish 273
    {
274
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 275
      args.setProviderId(providerId);
276
      sendBase("getEmptyAWB", args);
412 ashish 277
    }
278
 
3430 rajveer 279
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 280
    {
281
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 282
      receiveBase(result, "getEmptyAWB");
412 ashish 283
      if (result.isSetSuccess()) {
284
        return result.success;
285
      }
648 chandransh 286
      if (result.se != null) {
287
        throw result.se;
288
      }
3430 rajveer 289
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 290
    }
291
 
3430 rajveer 292
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 293
    {
648 chandransh 294
      send_getShipmentInfo(awb, providerId);
412 ashish 295
      return recv_getShipmentInfo();
296
    }
297
 
3430 rajveer 298
    public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
412 ashish 299
    {
300
      getShipmentInfo_args args = new getShipmentInfo_args();
3430 rajveer 301
      args.setAwb(awb);
302
      args.setProviderId(providerId);
303
      sendBase("getShipmentInfo", args);
412 ashish 304
    }
305
 
3430 rajveer 306
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 307
    {
308
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 309
      receiveBase(result, "getShipmentInfo");
412 ashish 310
      if (result.isSetSuccess()) {
311
        return result.success;
312
      }
648 chandransh 313
      if (result.se != null) {
314
        throw result.se;
315
      }
3430 rajveer 316
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 317
    }
318
 
3430 rajveer 319
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 320
    {
321
      send_getDestinationCode(providerId, pinCode);
322
      return recv_getDestinationCode();
323
    }
324
 
3430 rajveer 325
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 326
    {
327
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 328
      args.setProviderId(providerId);
329
      args.setPinCode(pinCode);
330
      sendBase("getDestinationCode", args);
730 chandransh 331
    }
332
 
3430 rajveer 333
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 334
    {
335
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 336
      receiveBase(result, "getDestinationCode");
730 chandransh 337
      if (result.isSetSuccess()) {
338
        return result.success;
339
      }
340
      if (result.se != null) {
341
        throw result.se;
342
      }
3430 rajveer 343
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 344
    }
345
 
3430 rajveer 346
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 347
    {
3103 chandransh 348
      send_getFreeAwbCount(providerId, type);
1139 chandransh 349
      return recv_getFreeAwbCount();
350
    }
351
 
3430 rajveer 352
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 353
    {
354
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 355
      args.setProviderId(providerId);
356
      args.setType(type);
357
      sendBase("getFreeAwbCount", args);
1139 chandransh 358
    }
359
 
3430 rajveer 360
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 361
    {
362
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 363
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 364
      if (result.isSetSuccess()) {
365
        return result.success;
366
      }
3430 rajveer 367
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 368
    }
369
 
3430 rajveer 370
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 371
    {
372
      send_getHolidays(fromDate, toDate);
373
      return recv_getHolidays();
374
    }
375
 
3430 rajveer 376
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 377
    {
378
      getHolidays_args args = new getHolidays_args();
3430 rajveer 379
      args.setFromDate(fromDate);
380
      args.setToDate(toDate);
381
      sendBase("getHolidays", args);
1730 ankur.sing 382
    }
383
 
3430 rajveer 384
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 385
    {
386
      getHolidays_result result = new getHolidays_result();
3430 rajveer 387
      receiveBase(result, "getHolidays");
1730 ankur.sing 388
      if (result.isSetSuccess()) {
389
        return result.success;
390
      }
3430 rajveer 391
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 392
    }
393
 
4934 amit.gupta 394
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
395
    {
396
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
397
      return recv_getEntityLogisticsEstimation();
398
    }
399
 
400
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
401
    {
402
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
403
      args.setCatalogItemId(catalogItemId);
404
      args.setDestination_pin(destination_pin);
405
      args.setType(type);
406
      sendBase("getEntityLogisticsEstimation", args);
407
    }
408
 
409
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
410
    {
411
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
412
      receiveBase(result, "getEntityLogisticsEstimation");
413
      if (result.isSetSuccess()) {
414
        return result.success;
415
      }
416
      if (result.se != null) {
417
        throw result.se;
418
      }
419
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
420
    }
421
 
412 ashish 422
  }
3430 rajveer 423
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
424
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
425
      private org.apache.thrift.async.TAsyncClientManager clientManager;
426
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
427
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
428
        this.clientManager = clientManager;
429
        this.protocolFactory = protocolFactory;
430
      }
431
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
432
        return new AsyncClient(protocolFactory, clientManager, transport);
433
      }
412 ashish 434
    }
435
 
3430 rajveer 436
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
437
      super(protocolFactory, clientManager, transport);
438
    }
412 ashish 439
 
3430 rajveer 440
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
441
      checkReady();
442
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
443
      this.___currentMethod = method_call;
444
      ___manager.call(method_call);
445
    }
446
 
447
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
448
      private long providerId;
449
      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 {
450
        super(client, protocolFactory, transport, resultHandler, false);
451
        this.providerId = providerId;
412 ashish 452
      }
3430 rajveer 453
 
454
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
455
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
456
        getProvider_args args = new getProvider_args();
457
        args.setProviderId(providerId);
458
        args.write(prot);
459
        prot.writeMessageEnd();
460
      }
461
 
462
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
463
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
464
          throw new IllegalStateException("Method call not finished!");
465
        }
466
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
468
        return (new Client(prot)).recv_getProvider();
469
      }
412 ashish 470
    }
471
 
3430 rajveer 472
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
473
      checkReady();
474
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
475
      this.___currentMethod = method_call;
476
      ___manager.call(method_call);
477
    }
478
 
479
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
480
      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 {
481
        super(client, protocolFactory, transport, resultHandler, false);
482
      }
483
 
484
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
485
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
486
        getAllProviders_args args = new getAllProviders_args();
487
        args.write(prot);
488
        prot.writeMessageEnd();
489
      }
490
 
491
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
492
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
493
          throw new IllegalStateException("Method call not finished!");
494
        }
495
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
496
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
497
        return (new Client(prot)).recv_getAllProviders();
498
      }
499
    }
500
 
4630 mandeep.dh 501
    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 502
      checkReady();
4630 mandeep.dh 503
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 504
      this.___currentMethod = method_call;
505
      ___manager.call(method_call);
506
    }
507
 
508
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
509
      private long itemId;
510
      private String destination_pin;
4630 mandeep.dh 511
      private DeliveryType type;
512
      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 513
        super(client, protocolFactory, transport, resultHandler, false);
514
        this.itemId = itemId;
515
        this.destination_pin = destination_pin;
4630 mandeep.dh 516
        this.type = type;
3430 rajveer 517
      }
518
 
519
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
520
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
521
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
522
        args.setItemId(itemId);
523
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 524
        args.setType(type);
3430 rajveer 525
        args.write(prot);
526
        prot.writeMessageEnd();
527
      }
528
 
529
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
530
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
531
          throw new IllegalStateException("Method call not finished!");
532
        }
533
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
534
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
535
        return (new Client(prot)).recv_getLogisticsEstimation();
536
      }
537
    }
538
 
539
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
540
      checkReady();
541
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, resultHandler, this, ___protocolFactory, ___transport);
542
      this.___currentMethod = method_call;
543
      ___manager.call(method_call);
544
    }
545
 
546
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
547
      private String destination_pincode;
548
      private long item_id;
549
      private DeliveryType type;
550
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
551
        super(client, protocolFactory, transport, resultHandler, false);
552
        this.destination_pincode = destination_pincode;
553
        this.item_id = item_id;
554
        this.type = type;
555
      }
556
 
557
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
558
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
559
        getLogisticsInfo_args args = new getLogisticsInfo_args();
560
        args.setDestination_pincode(destination_pincode);
561
        args.setItem_id(item_id);
562
        args.setType(type);
563
        args.write(prot);
564
        prot.writeMessageEnd();
565
      }
566
 
567
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
568
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
569
          throw new IllegalStateException("Method call not finished!");
570
        }
571
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
572
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
573
        return (new Client(prot)).recv_getLogisticsInfo();
574
      }
575
    }
576
 
577
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
578
      checkReady();
579
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
580
      this.___currentMethod = method_call;
581
      ___manager.call(method_call);
582
    }
583
 
584
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
585
      private long providerId;
586
      public getEmptyAWB_call(long providerId, 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 {
587
        super(client, protocolFactory, transport, resultHandler, false);
588
        this.providerId = providerId;
589
      }
590
 
591
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
592
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
593
        getEmptyAWB_args args = new getEmptyAWB_args();
594
        args.setProviderId(providerId);
595
        args.write(prot);
596
        prot.writeMessageEnd();
597
      }
598
 
599
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
600
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
601
          throw new IllegalStateException("Method call not finished!");
602
        }
603
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
604
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
605
        return (new Client(prot)).recv_getEmptyAWB();
606
      }
607
    }
608
 
609
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
610
      checkReady();
611
      getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
612
      this.___currentMethod = method_call;
613
      ___manager.call(method_call);
614
    }
615
 
616
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
617
      private String awb;
618
      private long providerId;
619
      public getShipmentInfo_call(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
620
        super(client, protocolFactory, transport, resultHandler, false);
621
        this.awb = awb;
622
        this.providerId = providerId;
623
      }
624
 
625
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
626
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
627
        getShipmentInfo_args args = new getShipmentInfo_args();
628
        args.setAwb(awb);
629
        args.setProviderId(providerId);
630
        args.write(prot);
631
        prot.writeMessageEnd();
632
      }
633
 
634
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
635
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
636
          throw new IllegalStateException("Method call not finished!");
637
        }
638
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
639
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
640
        return (new Client(prot)).recv_getShipmentInfo();
641
      }
642
    }
643
 
644
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
645
      checkReady();
646
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
647
      this.___currentMethod = method_call;
648
      ___manager.call(method_call);
649
    }
650
 
651
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
652
      private long providerId;
653
      private String pinCode;
654
      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 {
655
        super(client, protocolFactory, transport, resultHandler, false);
656
        this.providerId = providerId;
657
        this.pinCode = pinCode;
658
      }
659
 
660
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
661
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
662
        getDestinationCode_args args = new getDestinationCode_args();
663
        args.setProviderId(providerId);
664
        args.setPinCode(pinCode);
665
        args.write(prot);
666
        prot.writeMessageEnd();
667
      }
668
 
669
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
670
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
671
          throw new IllegalStateException("Method call not finished!");
672
        }
673
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
674
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
675
        return (new Client(prot)).recv_getDestinationCode();
676
      }
677
    }
678
 
679
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
680
      checkReady();
681
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
682
      this.___currentMethod = method_call;
683
      ___manager.call(method_call);
684
    }
685
 
686
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
687
      private long providerId;
688
      private String type;
689
      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 {
690
        super(client, protocolFactory, transport, resultHandler, false);
691
        this.providerId = providerId;
692
        this.type = type;
693
      }
694
 
695
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
696
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
697
        getFreeAwbCount_args args = new getFreeAwbCount_args();
698
        args.setProviderId(providerId);
699
        args.setType(type);
700
        args.write(prot);
701
        prot.writeMessageEnd();
702
      }
703
 
704
      public long getResult() throws org.apache.thrift.TException {
705
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
706
          throw new IllegalStateException("Method call not finished!");
707
        }
708
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
709
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
710
        return (new Client(prot)).recv_getFreeAwbCount();
711
      }
712
    }
713
 
714
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
715
      checkReady();
716
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
717
      this.___currentMethod = method_call;
718
      ___manager.call(method_call);
719
    }
720
 
721
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
722
      private long fromDate;
723
      private long toDate;
724
      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 {
725
        super(client, protocolFactory, transport, resultHandler, false);
726
        this.fromDate = fromDate;
727
        this.toDate = toDate;
728
      }
729
 
730
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
731
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
732
        getHolidays_args args = new getHolidays_args();
733
        args.setFromDate(fromDate);
734
        args.setToDate(toDate);
735
        args.write(prot);
736
        prot.writeMessageEnd();
737
      }
738
 
739
      public List<Long> getResult() throws org.apache.thrift.TException {
740
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
741
          throw new IllegalStateException("Method call not finished!");
742
        }
743
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
744
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
745
        return (new Client(prot)).recv_getHolidays();
746
      }
747
    }
748
 
4934 amit.gupta 749
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
750
      checkReady();
751
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
752
      this.___currentMethod = method_call;
753
      ___manager.call(method_call);
754
    }
755
 
756
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
757
      private long catalogItemId;
758
      private String destination_pin;
759
      private DeliveryType type;
760
      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 {
761
        super(client, protocolFactory, transport, resultHandler, false);
762
        this.catalogItemId = catalogItemId;
763
        this.destination_pin = destination_pin;
764
        this.type = type;
765
      }
766
 
767
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
768
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
769
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
770
        args.setCatalogItemId(catalogItemId);
771
        args.setDestination_pin(destination_pin);
772
        args.setType(type);
773
        args.write(prot);
774
        prot.writeMessageEnd();
775
      }
776
 
777
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
779
          throw new IllegalStateException("Method call not finished!");
780
        }
781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
783
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
784
      }
785
    }
786
 
3430 rajveer 787
  }
788
 
789
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
790
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
791
    public Processor(I iface) {
792
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
793
    }
794
 
795
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
796
      super(iface, getProcessMap(processMap));
797
    }
798
 
799
    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) {
800
      processMap.put("getProvider", new getProvider());
801
      processMap.put("getAllProviders", new getAllProviders());
802
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
803
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
804
      processMap.put("getEmptyAWB", new getEmptyAWB());
805
      processMap.put("getShipmentInfo", new getShipmentInfo());
806
      processMap.put("getDestinationCode", new getDestinationCode());
807
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
808
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 809
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
3430 rajveer 810
      return processMap;
811
    }
812
 
813
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
814
      public getProvider() {
815
        super("getProvider");
816
      }
817
 
818
      protected getProvider_args getEmptyArgsInstance() {
819
        return new getProvider_args();
820
      }
821
 
822
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 823
        getProvider_result result = new getProvider_result();
824
        try {
3430 rajveer 825
          result.success = iface.getProvider(args.providerId);
668 chandransh 826
        } catch (LogisticsServiceException lse) {
827
          result.lse = lse;
828
        }
3430 rajveer 829
        return result;
668 chandransh 830
      }
831
    }
832
 
3430 rajveer 833
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
834
      public getAllProviders() {
835
        super("getAllProviders");
836
      }
837
 
838
      protected getAllProviders_args getEmptyArgsInstance() {
839
        return new getAllProviders_args();
840
      }
841
 
842
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 843
        getAllProviders_result result = new getAllProviders_result();
844
        try {
3430 rajveer 845
          result.success = iface.getAllProviders();
674 chandransh 846
        } catch (LogisticsServiceException lse) {
847
          result.lse = lse;
848
        }
3430 rajveer 849
        return result;
674 chandransh 850
      }
851
    }
852
 
3430 rajveer 853
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
854
      public getLogisticsEstimation() {
855
        super("getLogisticsEstimation");
856
      }
857
 
858
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
859
        return new getLogisticsEstimation_args();
860
      }
861
 
862
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 863
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 864
        try {
4630 mandeep.dh 865
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 866
        } catch (LogisticsServiceException se) {
867
          result.se = se;
868
        }
3430 rajveer 869
        return result;
483 rajveer 870
      }
871
    }
872
 
3430 rajveer 873
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
874
      public getLogisticsInfo() {
875
        super("getLogisticsInfo");
876
      }
877
 
878
      protected getLogisticsInfo_args getEmptyArgsInstance() {
879
        return new getLogisticsInfo_args();
880
      }
881
 
882
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 883
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 884
        try {
3430 rajveer 885
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type);
471 rajveer 886
        } catch (LogisticsServiceException se) {
887
          result.se = se;
888
        }
3430 rajveer 889
        return result;
471 rajveer 890
      }
891
    }
892
 
3430 rajveer 893
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
894
      public getEmptyAWB() {
895
        super("getEmptyAWB");
896
      }
897
 
898
      protected getEmptyAWB_args getEmptyArgsInstance() {
899
        return new getEmptyAWB_args();
900
      }
901
 
902
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 903
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 904
        try {
3430 rajveer 905
          result.success = iface.getEmptyAWB(args.providerId);
648 chandransh 906
        } catch (LogisticsServiceException se) {
907
          result.se = se;
908
        }
3430 rajveer 909
        return result;
412 ashish 910
      }
911
    }
912
 
3430 rajveer 913
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
914
      public getShipmentInfo() {
915
        super("getShipmentInfo");
916
      }
917
 
918
      protected getShipmentInfo_args getEmptyArgsInstance() {
919
        return new getShipmentInfo_args();
920
      }
921
 
922
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 923
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 924
        try {
3430 rajveer 925
          result.success = iface.getShipmentInfo(args.awb, args.providerId);
648 chandransh 926
        } catch (LogisticsServiceException se) {
927
          result.se = se;
928
        }
3430 rajveer 929
        return result;
412 ashish 930
      }
931
    }
932
 
3430 rajveer 933
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
934
      public getDestinationCode() {
935
        super("getDestinationCode");
936
      }
937
 
938
      protected getDestinationCode_args getEmptyArgsInstance() {
939
        return new getDestinationCode_args();
940
      }
941
 
942
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 943
        getDestinationCode_result result = new getDestinationCode_result();
944
        try {
3430 rajveer 945
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 946
        } catch (LogisticsServiceException se) {
947
          result.se = se;
948
        }
3430 rajveer 949
        return result;
730 chandransh 950
      }
951
    }
952
 
3430 rajveer 953
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
954
      public getFreeAwbCount() {
955
        super("getFreeAwbCount");
956
      }
957
 
958
      protected getFreeAwbCount_args getEmptyArgsInstance() {
959
        return new getFreeAwbCount_args();
960
      }
961
 
962
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 963
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 964
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 965
        result.setSuccessIsSet(true);
3430 rajveer 966
        return result;
1139 chandransh 967
      }
968
    }
969
 
3430 rajveer 970
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
971
      public getHolidays() {
972
        super("getHolidays");
973
      }
974
 
975
      protected getHolidays_args getEmptyArgsInstance() {
976
        return new getHolidays_args();
977
      }
978
 
979
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 980
        getHolidays_result result = new getHolidays_result();
3430 rajveer 981
        result.success = iface.getHolidays(args.fromDate, args.toDate);
982
        return result;
1730 ankur.sing 983
      }
984
    }
985
 
4934 amit.gupta 986
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
987
      public getEntityLogisticsEstimation() {
988
        super("getEntityLogisticsEstimation");
989
      }
990
 
991
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
992
        return new getEntityLogisticsEstimation_args();
993
      }
994
 
995
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
996
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
997
        try {
998
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
999
        } catch (LogisticsServiceException se) {
1000
          result.se = se;
1001
        }
1002
        return result;
1003
      }
1004
    }
1005
 
412 ashish 1006
  }
1007
 
3430 rajveer 1008
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1009
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1010
 
3430 rajveer 1011
    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 1012
 
3430 rajveer 1013
    private long providerId; // required
668 chandransh 1014
 
1015
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1016
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1017
      PROVIDER_ID((short)1, "providerId");
1018
 
1019
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1020
 
1021
      static {
1022
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1023
          byName.put(field.getFieldName(), field);
1024
        }
1025
      }
1026
 
1027
      /**
1028
       * Find the _Fields constant that matches fieldId, or null if its not found.
1029
       */
1030
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1031
        switch(fieldId) {
1032
          case 1: // PROVIDER_ID
1033
            return PROVIDER_ID;
1034
          default:
1035
            return null;
1036
        }
668 chandransh 1037
      }
1038
 
1039
      /**
1040
       * Find the _Fields constant that matches fieldId, throwing an exception
1041
       * if it is not found.
1042
       */
1043
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1044
        _Fields fields = findByThriftId(fieldId);
1045
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1046
        return fields;
1047
      }
1048
 
1049
      /**
1050
       * Find the _Fields constant that matches name, or null if its not found.
1051
       */
1052
      public static _Fields findByName(String name) {
1053
        return byName.get(name);
1054
      }
1055
 
1056
      private final short _thriftId;
1057
      private final String _fieldName;
1058
 
1059
      _Fields(short thriftId, String fieldName) {
1060
        _thriftId = thriftId;
1061
        _fieldName = fieldName;
1062
      }
1063
 
1064
      public short getThriftFieldId() {
1065
        return _thriftId;
1066
      }
1067
 
1068
      public String getFieldName() {
1069
        return _fieldName;
1070
      }
1071
    }
1072
 
1073
    // isset id assignments
1074
    private static final int __PROVIDERID_ISSET_ID = 0;
1075
    private BitSet __isset_bit_vector = new BitSet(1);
1076
 
3430 rajveer 1077
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1078
    static {
3430 rajveer 1079
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1080
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1082
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1083
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1084
    }
1085
 
1086
    public getProvider_args() {
1087
    }
1088
 
1089
    public getProvider_args(
1090
      long providerId)
1091
    {
1092
      this();
1093
      this.providerId = providerId;
1094
      setProviderIdIsSet(true);
1095
    }
1096
 
1097
    /**
1098
     * Performs a deep copy on <i>other</i>.
1099
     */
1100
    public getProvider_args(getProvider_args other) {
1101
      __isset_bit_vector.clear();
1102
      __isset_bit_vector.or(other.__isset_bit_vector);
1103
      this.providerId = other.providerId;
1104
    }
1105
 
1106
    public getProvider_args deepCopy() {
1107
      return new getProvider_args(this);
1108
    }
1109
 
3430 rajveer 1110
    @Override
1111
    public void clear() {
1112
      setProviderIdIsSet(false);
1113
      this.providerId = 0;
668 chandransh 1114
    }
1115
 
1116
    public long getProviderId() {
1117
      return this.providerId;
1118
    }
1119
 
3430 rajveer 1120
    public void setProviderId(long providerId) {
668 chandransh 1121
      this.providerId = providerId;
1122
      setProviderIdIsSet(true);
1123
    }
1124
 
1125
    public void unsetProviderId() {
1126
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1127
    }
1128
 
3430 rajveer 1129
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1130
    public boolean isSetProviderId() {
1131
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1132
    }
1133
 
1134
    public void setProviderIdIsSet(boolean value) {
1135
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1136
    }
1137
 
1138
    public void setFieldValue(_Fields field, Object value) {
1139
      switch (field) {
1140
      case PROVIDER_ID:
1141
        if (value == null) {
1142
          unsetProviderId();
1143
        } else {
1144
          setProviderId((Long)value);
1145
        }
1146
        break;
1147
 
1148
      }
1149
    }
1150
 
1151
    public Object getFieldValue(_Fields field) {
1152
      switch (field) {
1153
      case PROVIDER_ID:
3430 rajveer 1154
        return Long.valueOf(getProviderId());
668 chandransh 1155
 
1156
      }
1157
      throw new IllegalStateException();
1158
    }
1159
 
3430 rajveer 1160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1161
    public boolean isSet(_Fields field) {
1162
      if (field == null) {
1163
        throw new IllegalArgumentException();
1164
      }
668 chandransh 1165
 
1166
      switch (field) {
1167
      case PROVIDER_ID:
1168
        return isSetProviderId();
1169
      }
1170
      throw new IllegalStateException();
1171
    }
1172
 
1173
    @Override
1174
    public boolean equals(Object that) {
1175
      if (that == null)
1176
        return false;
1177
      if (that instanceof getProvider_args)
1178
        return this.equals((getProvider_args)that);
1179
      return false;
1180
    }
1181
 
1182
    public boolean equals(getProvider_args that) {
1183
      if (that == null)
1184
        return false;
1185
 
1186
      boolean this_present_providerId = true;
1187
      boolean that_present_providerId = true;
1188
      if (this_present_providerId || that_present_providerId) {
1189
        if (!(this_present_providerId && that_present_providerId))
1190
          return false;
1191
        if (this.providerId != that.providerId)
1192
          return false;
1193
      }
1194
 
1195
      return true;
1196
    }
1197
 
1198
    @Override
1199
    public int hashCode() {
1200
      return 0;
1201
    }
1202
 
1203
    public int compareTo(getProvider_args other) {
1204
      if (!getClass().equals(other.getClass())) {
1205
        return getClass().getName().compareTo(other.getClass().getName());
1206
      }
1207
 
1208
      int lastComparison = 0;
1209
      getProvider_args typedOther = (getProvider_args)other;
1210
 
3430 rajveer 1211
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 1212
      if (lastComparison != 0) {
1213
        return lastComparison;
1214
      }
3430 rajveer 1215
      if (isSetProviderId()) {
1216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
1217
        if (lastComparison != 0) {
1218
          return lastComparison;
1219
        }
668 chandransh 1220
      }
1221
      return 0;
1222
    }
1223
 
3430 rajveer 1224
    public _Fields fieldForId(int fieldId) {
1225
      return _Fields.findByThriftId(fieldId);
1226
    }
1227
 
1228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1229
      org.apache.thrift.protocol.TField field;
668 chandransh 1230
      iprot.readStructBegin();
1231
      while (true)
1232
      {
1233
        field = iprot.readFieldBegin();
3430 rajveer 1234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1235
          break;
1236
        }
3430 rajveer 1237
        switch (field.id) {
1238
          case 1: // PROVIDER_ID
1239
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1240
              this.providerId = iprot.readI64();
1241
              setProviderIdIsSet(true);
1242
            } else { 
1243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1244
            }
1245
            break;
1246
          default:
1247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1248
        }
3430 rajveer 1249
        iprot.readFieldEnd();
668 chandransh 1250
      }
1251
      iprot.readStructEnd();
1252
      validate();
1253
    }
1254
 
3430 rajveer 1255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1256
      validate();
1257
 
1258
      oprot.writeStructBegin(STRUCT_DESC);
1259
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1260
      oprot.writeI64(this.providerId);
1261
      oprot.writeFieldEnd();
1262
      oprot.writeFieldStop();
1263
      oprot.writeStructEnd();
1264
    }
1265
 
1266
    @Override
1267
    public String toString() {
1268
      StringBuilder sb = new StringBuilder("getProvider_args(");
1269
      boolean first = true;
1270
 
1271
      sb.append("providerId:");
1272
      sb.append(this.providerId);
1273
      first = false;
1274
      sb.append(")");
1275
      return sb.toString();
1276
    }
1277
 
3430 rajveer 1278
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1279
      // check for required fields
1280
    }
1281
 
3430 rajveer 1282
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1283
      try {
1284
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1285
      } catch (org.apache.thrift.TException te) {
1286
        throw new java.io.IOException(te);
1287
      }
1288
    }
1289
 
1290
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1291
      try {
1292
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1293
      } catch (org.apache.thrift.TException te) {
1294
        throw new java.io.IOException(te);
1295
      }
1296
    }
1297
 
668 chandransh 1298
  }
1299
 
3430 rajveer 1300
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1301
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 1302
 
3430 rajveer 1303
    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);
1304
    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 1305
 
3430 rajveer 1306
    private Provider success; // required
1307
    private LogisticsServiceException lse; // required
668 chandransh 1308
 
1309
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1310
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1311
      SUCCESS((short)0, "success"),
1312
      LSE((short)1, "lse");
1313
 
1314
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1315
 
1316
      static {
1317
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1318
          byName.put(field.getFieldName(), field);
1319
        }
1320
      }
1321
 
1322
      /**
1323
       * Find the _Fields constant that matches fieldId, or null if its not found.
1324
       */
1325
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1326
        switch(fieldId) {
1327
          case 0: // SUCCESS
1328
            return SUCCESS;
1329
          case 1: // LSE
1330
            return LSE;
1331
          default:
1332
            return null;
1333
        }
668 chandransh 1334
      }
1335
 
1336
      /**
1337
       * Find the _Fields constant that matches fieldId, throwing an exception
1338
       * if it is not found.
1339
       */
1340
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1341
        _Fields fields = findByThriftId(fieldId);
1342
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1343
        return fields;
1344
      }
1345
 
1346
      /**
1347
       * Find the _Fields constant that matches name, or null if its not found.
1348
       */
1349
      public static _Fields findByName(String name) {
1350
        return byName.get(name);
1351
      }
1352
 
1353
      private final short _thriftId;
1354
      private final String _fieldName;
1355
 
1356
      _Fields(short thriftId, String fieldName) {
1357
        _thriftId = thriftId;
1358
        _fieldName = fieldName;
1359
      }
1360
 
1361
      public short getThriftFieldId() {
1362
        return _thriftId;
1363
      }
1364
 
1365
      public String getFieldName() {
1366
        return _fieldName;
1367
      }
1368
    }
1369
 
1370
    // isset id assignments
1371
 
3430 rajveer 1372
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1373
    static {
3430 rajveer 1374
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1375
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1376
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
1377
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 1381
    }
1382
 
1383
    public getProvider_result() {
1384
    }
1385
 
1386
    public getProvider_result(
1387
      Provider success,
1388
      LogisticsServiceException lse)
1389
    {
1390
      this();
1391
      this.success = success;
1392
      this.lse = lse;
1393
    }
1394
 
1395
    /**
1396
     * Performs a deep copy on <i>other</i>.
1397
     */
1398
    public getProvider_result(getProvider_result other) {
1399
      if (other.isSetSuccess()) {
1400
        this.success = new Provider(other.success);
1401
      }
1402
      if (other.isSetLse()) {
1403
        this.lse = new LogisticsServiceException(other.lse);
1404
      }
1405
    }
1406
 
1407
    public getProvider_result deepCopy() {
1408
      return new getProvider_result(this);
1409
    }
1410
 
3430 rajveer 1411
    @Override
1412
    public void clear() {
1413
      this.success = null;
1414
      this.lse = null;
668 chandransh 1415
    }
1416
 
1417
    public Provider getSuccess() {
1418
      return this.success;
1419
    }
1420
 
3430 rajveer 1421
    public void setSuccess(Provider success) {
668 chandransh 1422
      this.success = success;
1423
    }
1424
 
1425
    public void unsetSuccess() {
1426
      this.success = null;
1427
    }
1428
 
3430 rajveer 1429
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 1430
    public boolean isSetSuccess() {
1431
      return this.success != null;
1432
    }
1433
 
1434
    public void setSuccessIsSet(boolean value) {
1435
      if (!value) {
1436
        this.success = null;
1437
      }
1438
    }
1439
 
1440
    public LogisticsServiceException getLse() {
1441
      return this.lse;
1442
    }
1443
 
3430 rajveer 1444
    public void setLse(LogisticsServiceException lse) {
668 chandransh 1445
      this.lse = lse;
1446
    }
1447
 
1448
    public void unsetLse() {
1449
      this.lse = null;
1450
    }
1451
 
3430 rajveer 1452
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 1453
    public boolean isSetLse() {
1454
      return this.lse != null;
1455
    }
1456
 
1457
    public void setLseIsSet(boolean value) {
1458
      if (!value) {
1459
        this.lse = null;
1460
      }
1461
    }
1462
 
1463
    public void setFieldValue(_Fields field, Object value) {
1464
      switch (field) {
1465
      case SUCCESS:
1466
        if (value == null) {
1467
          unsetSuccess();
1468
        } else {
1469
          setSuccess((Provider)value);
1470
        }
1471
        break;
1472
 
1473
      case LSE:
1474
        if (value == null) {
1475
          unsetLse();
1476
        } else {
1477
          setLse((LogisticsServiceException)value);
1478
        }
1479
        break;
1480
 
1481
      }
1482
    }
1483
 
1484
    public Object getFieldValue(_Fields field) {
1485
      switch (field) {
1486
      case SUCCESS:
1487
        return getSuccess();
1488
 
1489
      case LSE:
1490
        return getLse();
1491
 
1492
      }
1493
      throw new IllegalStateException();
1494
    }
1495
 
3430 rajveer 1496
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1497
    public boolean isSet(_Fields field) {
1498
      if (field == null) {
1499
        throw new IllegalArgumentException();
1500
      }
668 chandransh 1501
 
1502
      switch (field) {
1503
      case SUCCESS:
1504
        return isSetSuccess();
1505
      case LSE:
1506
        return isSetLse();
1507
      }
1508
      throw new IllegalStateException();
1509
    }
1510
 
1511
    @Override
1512
    public boolean equals(Object that) {
1513
      if (that == null)
1514
        return false;
1515
      if (that instanceof getProvider_result)
1516
        return this.equals((getProvider_result)that);
1517
      return false;
1518
    }
1519
 
1520
    public boolean equals(getProvider_result that) {
1521
      if (that == null)
1522
        return false;
1523
 
1524
      boolean this_present_success = true && this.isSetSuccess();
1525
      boolean that_present_success = true && that.isSetSuccess();
1526
      if (this_present_success || that_present_success) {
1527
        if (!(this_present_success && that_present_success))
1528
          return false;
1529
        if (!this.success.equals(that.success))
1530
          return false;
1531
      }
1532
 
1533
      boolean this_present_lse = true && this.isSetLse();
1534
      boolean that_present_lse = true && that.isSetLse();
1535
      if (this_present_lse || that_present_lse) {
1536
        if (!(this_present_lse && that_present_lse))
1537
          return false;
1538
        if (!this.lse.equals(that.lse))
1539
          return false;
1540
      }
1541
 
1542
      return true;
1543
    }
1544
 
1545
    @Override
1546
    public int hashCode() {
1547
      return 0;
1548
    }
1549
 
3430 rajveer 1550
    public int compareTo(getProvider_result other) {
1551
      if (!getClass().equals(other.getClass())) {
1552
        return getClass().getName().compareTo(other.getClass().getName());
1553
      }
1554
 
1555
      int lastComparison = 0;
1556
      getProvider_result typedOther = (getProvider_result)other;
1557
 
1558
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1559
      if (lastComparison != 0) {
1560
        return lastComparison;
1561
      }
1562
      if (isSetSuccess()) {
1563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1564
        if (lastComparison != 0) {
1565
          return lastComparison;
1566
        }
1567
      }
1568
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
1569
      if (lastComparison != 0) {
1570
        return lastComparison;
1571
      }
1572
      if (isSetLse()) {
1573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
1574
        if (lastComparison != 0) {
1575
          return lastComparison;
1576
        }
1577
      }
1578
      return 0;
1579
    }
1580
 
1581
    public _Fields fieldForId(int fieldId) {
1582
      return _Fields.findByThriftId(fieldId);
1583
    }
1584
 
1585
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1586
      org.apache.thrift.protocol.TField field;
668 chandransh 1587
      iprot.readStructBegin();
1588
      while (true)
1589
      {
1590
        field = iprot.readFieldBegin();
3430 rajveer 1591
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1592
          break;
1593
        }
3430 rajveer 1594
        switch (field.id) {
1595
          case 0: // SUCCESS
1596
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1597
              this.success = new Provider();
1598
              this.success.read(iprot);
1599
            } else { 
1600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1601
            }
1602
            break;
1603
          case 1: // LSE
1604
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1605
              this.lse = new LogisticsServiceException();
1606
              this.lse.read(iprot);
1607
            } else { 
1608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1609
            }
1610
            break;
1611
          default:
1612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1613
        }
3430 rajveer 1614
        iprot.readFieldEnd();
668 chandransh 1615
      }
1616
      iprot.readStructEnd();
1617
      validate();
1618
    }
1619
 
3430 rajveer 1620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1621
      oprot.writeStructBegin(STRUCT_DESC);
1622
 
1623
      if (this.isSetSuccess()) {
1624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1625
        this.success.write(oprot);
1626
        oprot.writeFieldEnd();
1627
      } else if (this.isSetLse()) {
1628
        oprot.writeFieldBegin(LSE_FIELD_DESC);
1629
        this.lse.write(oprot);
1630
        oprot.writeFieldEnd();
1631
      }
1632
      oprot.writeFieldStop();
1633
      oprot.writeStructEnd();
1634
    }
1635
 
1636
    @Override
1637
    public String toString() {
1638
      StringBuilder sb = new StringBuilder("getProvider_result(");
1639
      boolean first = true;
1640
 
1641
      sb.append("success:");
1642
      if (this.success == null) {
1643
        sb.append("null");
1644
      } else {
1645
        sb.append(this.success);
1646
      }
1647
      first = false;
1648
      if (!first) sb.append(", ");
1649
      sb.append("lse:");
1650
      if (this.lse == null) {
1651
        sb.append("null");
1652
      } else {
1653
        sb.append(this.lse);
1654
      }
1655
      first = false;
1656
      sb.append(")");
1657
      return sb.toString();
1658
    }
1659
 
3430 rajveer 1660
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1661
      // check for required fields
1662
    }
1663
 
3430 rajveer 1664
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1665
      try {
1666
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1667
      } catch (org.apache.thrift.TException te) {
1668
        throw new java.io.IOException(te);
1669
      }
1670
    }
1671
 
1672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1673
      try {
1674
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1675
      } catch (org.apache.thrift.TException te) {
1676
        throw new java.io.IOException(te);
1677
      }
1678
    }
1679
 
668 chandransh 1680
  }
1681
 
3430 rajveer 1682
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
1683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 1684
 
1685
 
1686
 
1687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 1689
;
1690
 
1691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1692
 
1693
      static {
1694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1695
          byName.put(field.getFieldName(), field);
1696
        }
1697
      }
1698
 
1699
      /**
1700
       * Find the _Fields constant that matches fieldId, or null if its not found.
1701
       */
1702
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1703
        switch(fieldId) {
1704
          default:
1705
            return null;
1706
        }
674 chandransh 1707
      }
1708
 
1709
      /**
1710
       * Find the _Fields constant that matches fieldId, throwing an exception
1711
       * if it is not found.
1712
       */
1713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1714
        _Fields fields = findByThriftId(fieldId);
1715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1716
        return fields;
1717
      }
1718
 
1719
      /**
1720
       * Find the _Fields constant that matches name, or null if its not found.
1721
       */
1722
      public static _Fields findByName(String name) {
1723
        return byName.get(name);
1724
      }
1725
 
1726
      private final short _thriftId;
1727
      private final String _fieldName;
1728
 
1729
      _Fields(short thriftId, String fieldName) {
1730
        _thriftId = thriftId;
1731
        _fieldName = fieldName;
1732
      }
1733
 
1734
      public short getThriftFieldId() {
1735
        return _thriftId;
1736
      }
1737
 
1738
      public String getFieldName() {
1739
        return _fieldName;
1740
      }
1741
    }
3430 rajveer 1742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 1743
    static {
3430 rajveer 1744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 1747
    }
1748
 
1749
    public getAllProviders_args() {
1750
    }
1751
 
1752
    /**
1753
     * Performs a deep copy on <i>other</i>.
1754
     */
1755
    public getAllProviders_args(getAllProviders_args other) {
1756
    }
1757
 
1758
    public getAllProviders_args deepCopy() {
1759
      return new getAllProviders_args(this);
1760
    }
1761
 
3430 rajveer 1762
    @Override
1763
    public void clear() {
674 chandransh 1764
    }
1765
 
1766
    public void setFieldValue(_Fields field, Object value) {
1767
      switch (field) {
1768
      }
1769
    }
1770
 
1771
    public Object getFieldValue(_Fields field) {
1772
      switch (field) {
1773
      }
1774
      throw new IllegalStateException();
1775
    }
1776
 
3430 rajveer 1777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1778
    public boolean isSet(_Fields field) {
1779
      if (field == null) {
1780
        throw new IllegalArgumentException();
1781
      }
674 chandransh 1782
 
1783
      switch (field) {
1784
      }
1785
      throw new IllegalStateException();
1786
    }
1787
 
1788
    @Override
1789
    public boolean equals(Object that) {
1790
      if (that == null)
1791
        return false;
1792
      if (that instanceof getAllProviders_args)
1793
        return this.equals((getAllProviders_args)that);
1794
      return false;
1795
    }
1796
 
1797
    public boolean equals(getAllProviders_args that) {
1798
      if (that == null)
1799
        return false;
1800
 
1801
      return true;
1802
    }
1803
 
1804
    @Override
1805
    public int hashCode() {
1806
      return 0;
1807
    }
1808
 
1809
    public int compareTo(getAllProviders_args other) {
1810
      if (!getClass().equals(other.getClass())) {
1811
        return getClass().getName().compareTo(other.getClass().getName());
1812
      }
1813
 
1814
      int lastComparison = 0;
1815
      getAllProviders_args typedOther = (getAllProviders_args)other;
1816
 
1817
      return 0;
1818
    }
1819
 
3430 rajveer 1820
    public _Fields fieldForId(int fieldId) {
1821
      return _Fields.findByThriftId(fieldId);
1822
    }
1823
 
1824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1825
      org.apache.thrift.protocol.TField field;
674 chandransh 1826
      iprot.readStructBegin();
1827
      while (true)
1828
      {
1829
        field = iprot.readFieldBegin();
3430 rajveer 1830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 1831
          break;
1832
        }
3430 rajveer 1833
        switch (field.id) {
1834
          default:
1835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 1836
        }
3430 rajveer 1837
        iprot.readFieldEnd();
674 chandransh 1838
      }
1839
      iprot.readStructEnd();
1840
      validate();
1841
    }
1842
 
3430 rajveer 1843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 1844
      validate();
1845
 
1846
      oprot.writeStructBegin(STRUCT_DESC);
1847
      oprot.writeFieldStop();
1848
      oprot.writeStructEnd();
1849
    }
1850
 
1851
    @Override
1852
    public String toString() {
1853
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
1854
      boolean first = true;
1855
 
1856
      sb.append(")");
1857
      return sb.toString();
1858
    }
1859
 
3430 rajveer 1860
    public void validate() throws org.apache.thrift.TException {
674 chandransh 1861
      // check for required fields
1862
    }
1863
 
3430 rajveer 1864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1865
      try {
1866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1867
      } catch (org.apache.thrift.TException te) {
1868
        throw new java.io.IOException(te);
1869
      }
1870
    }
1871
 
1872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1873
      try {
1874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1875
      } catch (org.apache.thrift.TException te) {
1876
        throw new java.io.IOException(te);
1877
      }
1878
    }
1879
 
674 chandransh 1880
  }
1881
 
3430 rajveer 1882
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
1883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 1884
 
3430 rajveer 1885
    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);
1886
    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 1887
 
3430 rajveer 1888
    private List<Provider> success; // required
1889
    private LogisticsServiceException lse; // required
674 chandransh 1890
 
1891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 1893
      SUCCESS((short)0, "success"),
1894
      LSE((short)1, "lse");
1895
 
1896
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1897
 
1898
      static {
1899
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1900
          byName.put(field.getFieldName(), field);
1901
        }
1902
      }
1903
 
1904
      /**
1905
       * Find the _Fields constant that matches fieldId, or null if its not found.
1906
       */
1907
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1908
        switch(fieldId) {
1909
          case 0: // SUCCESS
1910
            return SUCCESS;
1911
          case 1: // LSE
1912
            return LSE;
1913
          default:
1914
            return null;
1915
        }
674 chandransh 1916
      }
1917
 
1918
      /**
1919
       * Find the _Fields constant that matches fieldId, throwing an exception
1920
       * if it is not found.
1921
       */
1922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1923
        _Fields fields = findByThriftId(fieldId);
1924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1925
        return fields;
1926
      }
1927
 
1928
      /**
1929
       * Find the _Fields constant that matches name, or null if its not found.
1930
       */
1931
      public static _Fields findByName(String name) {
1932
        return byName.get(name);
1933
      }
1934
 
1935
      private final short _thriftId;
1936
      private final String _fieldName;
1937
 
1938
      _Fields(short thriftId, String fieldName) {
1939
        _thriftId = thriftId;
1940
        _fieldName = fieldName;
1941
      }
1942
 
1943
      public short getThriftFieldId() {
1944
        return _thriftId;
1945
      }
1946
 
1947
      public String getFieldName() {
1948
        return _fieldName;
1949
      }
1950
    }
1951
 
1952
    // isset id assignments
1953
 
3430 rajveer 1954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 1955
    static {
3430 rajveer 1956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1957
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1958
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
1959
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
1960
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1962
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1963
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 1964
    }
1965
 
1966
    public getAllProviders_result() {
1967
    }
1968
 
1969
    public getAllProviders_result(
1970
      List<Provider> success,
1971
      LogisticsServiceException lse)
1972
    {
1973
      this();
1974
      this.success = success;
1975
      this.lse = lse;
1976
    }
1977
 
1978
    /**
1979
     * Performs a deep copy on <i>other</i>.
1980
     */
1981
    public getAllProviders_result(getAllProviders_result other) {
1982
      if (other.isSetSuccess()) {
1983
        List<Provider> __this__success = new ArrayList<Provider>();
1984
        for (Provider other_element : other.success) {
1985
          __this__success.add(new Provider(other_element));
1986
        }
1987
        this.success = __this__success;
1988
      }
1989
      if (other.isSetLse()) {
1990
        this.lse = new LogisticsServiceException(other.lse);
1991
      }
1992
    }
1993
 
1994
    public getAllProviders_result deepCopy() {
1995
      return new getAllProviders_result(this);
1996
    }
1997
 
3430 rajveer 1998
    @Override
1999
    public void clear() {
2000
      this.success = null;
2001
      this.lse = null;
674 chandransh 2002
    }
2003
 
2004
    public int getSuccessSize() {
2005
      return (this.success == null) ? 0 : this.success.size();
2006
    }
2007
 
2008
    public java.util.Iterator<Provider> getSuccessIterator() {
2009
      return (this.success == null) ? null : this.success.iterator();
2010
    }
2011
 
2012
    public void addToSuccess(Provider elem) {
2013
      if (this.success == null) {
2014
        this.success = new ArrayList<Provider>();
2015
      }
2016
      this.success.add(elem);
2017
    }
2018
 
2019
    public List<Provider> getSuccess() {
2020
      return this.success;
2021
    }
2022
 
3430 rajveer 2023
    public void setSuccess(List<Provider> success) {
674 chandransh 2024
      this.success = success;
2025
    }
2026
 
2027
    public void unsetSuccess() {
2028
      this.success = null;
2029
    }
2030
 
3430 rajveer 2031
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2032
    public boolean isSetSuccess() {
2033
      return this.success != null;
2034
    }
2035
 
2036
    public void setSuccessIsSet(boolean value) {
2037
      if (!value) {
2038
        this.success = null;
2039
      }
2040
    }
2041
 
2042
    public LogisticsServiceException getLse() {
2043
      return this.lse;
2044
    }
2045
 
3430 rajveer 2046
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2047
      this.lse = lse;
2048
    }
2049
 
2050
    public void unsetLse() {
2051
      this.lse = null;
2052
    }
2053
 
3430 rajveer 2054
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2055
    public boolean isSetLse() {
2056
      return this.lse != null;
2057
    }
2058
 
2059
    public void setLseIsSet(boolean value) {
2060
      if (!value) {
2061
        this.lse = null;
2062
      }
2063
    }
2064
 
2065
    public void setFieldValue(_Fields field, Object value) {
2066
      switch (field) {
2067
      case SUCCESS:
2068
        if (value == null) {
2069
          unsetSuccess();
2070
        } else {
2071
          setSuccess((List<Provider>)value);
2072
        }
2073
        break;
2074
 
2075
      case LSE:
2076
        if (value == null) {
2077
          unsetLse();
2078
        } else {
2079
          setLse((LogisticsServiceException)value);
2080
        }
2081
        break;
2082
 
2083
      }
2084
    }
2085
 
2086
    public Object getFieldValue(_Fields field) {
2087
      switch (field) {
2088
      case SUCCESS:
2089
        return getSuccess();
2090
 
2091
      case LSE:
2092
        return getLse();
2093
 
2094
      }
2095
      throw new IllegalStateException();
2096
    }
2097
 
3430 rajveer 2098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2099
    public boolean isSet(_Fields field) {
2100
      if (field == null) {
2101
        throw new IllegalArgumentException();
2102
      }
674 chandransh 2103
 
2104
      switch (field) {
2105
      case SUCCESS:
2106
        return isSetSuccess();
2107
      case LSE:
2108
        return isSetLse();
2109
      }
2110
      throw new IllegalStateException();
2111
    }
2112
 
2113
    @Override
2114
    public boolean equals(Object that) {
2115
      if (that == null)
2116
        return false;
2117
      if (that instanceof getAllProviders_result)
2118
        return this.equals((getAllProviders_result)that);
2119
      return false;
2120
    }
2121
 
2122
    public boolean equals(getAllProviders_result that) {
2123
      if (that == null)
2124
        return false;
2125
 
2126
      boolean this_present_success = true && this.isSetSuccess();
2127
      boolean that_present_success = true && that.isSetSuccess();
2128
      if (this_present_success || that_present_success) {
2129
        if (!(this_present_success && that_present_success))
2130
          return false;
2131
        if (!this.success.equals(that.success))
2132
          return false;
2133
      }
2134
 
2135
      boolean this_present_lse = true && this.isSetLse();
2136
      boolean that_present_lse = true && that.isSetLse();
2137
      if (this_present_lse || that_present_lse) {
2138
        if (!(this_present_lse && that_present_lse))
2139
          return false;
2140
        if (!this.lse.equals(that.lse))
2141
          return false;
2142
      }
2143
 
2144
      return true;
2145
    }
2146
 
2147
    @Override
2148
    public int hashCode() {
2149
      return 0;
2150
    }
2151
 
3430 rajveer 2152
    public int compareTo(getAllProviders_result other) {
2153
      if (!getClass().equals(other.getClass())) {
2154
        return getClass().getName().compareTo(other.getClass().getName());
2155
      }
2156
 
2157
      int lastComparison = 0;
2158
      getAllProviders_result typedOther = (getAllProviders_result)other;
2159
 
2160
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2161
      if (lastComparison != 0) {
2162
        return lastComparison;
2163
      }
2164
      if (isSetSuccess()) {
2165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2166
        if (lastComparison != 0) {
2167
          return lastComparison;
2168
        }
2169
      }
2170
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2171
      if (lastComparison != 0) {
2172
        return lastComparison;
2173
      }
2174
      if (isSetLse()) {
2175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2176
        if (lastComparison != 0) {
2177
          return lastComparison;
2178
        }
2179
      }
2180
      return 0;
2181
    }
2182
 
2183
    public _Fields fieldForId(int fieldId) {
2184
      return _Fields.findByThriftId(fieldId);
2185
    }
2186
 
2187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2188
      org.apache.thrift.protocol.TField field;
674 chandransh 2189
      iprot.readStructBegin();
2190
      while (true)
2191
      {
2192
        field = iprot.readFieldBegin();
3430 rajveer 2193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2194
          break;
2195
        }
3430 rajveer 2196
        switch (field.id) {
2197
          case 0: // SUCCESS
2198
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2199
              {
2200
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
2201
                this.success = new ArrayList<Provider>(_list5.size);
2202
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 2203
                {
3430 rajveer 2204
                  Provider _elem7; // required
2205
                  _elem7 = new Provider();
2206
                  _elem7.read(iprot);
2207
                  this.success.add(_elem7);
674 chandransh 2208
                }
3430 rajveer 2209
                iprot.readListEnd();
674 chandransh 2210
              }
3430 rajveer 2211
            } else { 
2212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2213
            }
2214
            break;
2215
          case 1: // LSE
2216
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2217
              this.lse = new LogisticsServiceException();
2218
              this.lse.read(iprot);
2219
            } else { 
2220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2221
            }
2222
            break;
2223
          default:
2224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2225
        }
3430 rajveer 2226
        iprot.readFieldEnd();
674 chandransh 2227
      }
2228
      iprot.readStructEnd();
2229
      validate();
2230
    }
2231
 
3430 rajveer 2232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2233
      oprot.writeStructBegin(STRUCT_DESC);
2234
 
2235
      if (this.isSetSuccess()) {
2236
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2237
        {
3430 rajveer 2238
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 2239
          for (Provider _iter8 : this.success)
674 chandransh 2240
          {
3044 chandransh 2241
            _iter8.write(oprot);
674 chandransh 2242
          }
2243
          oprot.writeListEnd();
2244
        }
2245
        oprot.writeFieldEnd();
2246
      } else if (this.isSetLse()) {
2247
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2248
        this.lse.write(oprot);
2249
        oprot.writeFieldEnd();
2250
      }
2251
      oprot.writeFieldStop();
2252
      oprot.writeStructEnd();
2253
    }
2254
 
2255
    @Override
2256
    public String toString() {
2257
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
2258
      boolean first = true;
2259
 
2260
      sb.append("success:");
2261
      if (this.success == null) {
2262
        sb.append("null");
2263
      } else {
2264
        sb.append(this.success);
2265
      }
2266
      first = false;
2267
      if (!first) sb.append(", ");
2268
      sb.append("lse:");
2269
      if (this.lse == null) {
2270
        sb.append("null");
2271
      } else {
2272
        sb.append(this.lse);
2273
      }
2274
      first = false;
2275
      sb.append(")");
2276
      return sb.toString();
2277
    }
2278
 
3430 rajveer 2279
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2280
      // check for required fields
2281
    }
2282
 
3430 rajveer 2283
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2284
      try {
2285
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2286
      } catch (org.apache.thrift.TException te) {
2287
        throw new java.io.IOException(te);
2288
      }
2289
    }
2290
 
2291
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2292
      try {
2293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2294
      } catch (org.apache.thrift.TException te) {
2295
        throw new java.io.IOException(te);
2296
      }
2297
    }
2298
 
674 chandransh 2299
  }
2300
 
3430 rajveer 2301
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
2302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 2303
 
3430 rajveer 2304
    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);
2305
    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 2306
    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 2307
 
3430 rajveer 2308
    private long itemId; // required
2309
    private String destination_pin; // required
4630 mandeep.dh 2310
    private DeliveryType type; // required
471 rajveer 2311
 
2312
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2313
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2314
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 2315
      DESTINATION_PIN((short)2, "destination_pin"),
2316
      /**
2317
       * 
2318
       * @see DeliveryType
2319
       */
2320
      TYPE((short)3, "type");
471 rajveer 2321
 
2322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2323
 
2324
      static {
2325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2326
          byName.put(field.getFieldName(), field);
2327
        }
2328
      }
2329
 
2330
      /**
2331
       * Find the _Fields constant that matches fieldId, or null if its not found.
2332
       */
2333
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2334
        switch(fieldId) {
2335
          case 1: // ITEM_ID
2336
            return ITEM_ID;
2337
          case 2: // DESTINATION_PIN
2338
            return DESTINATION_PIN;
4630 mandeep.dh 2339
          case 3: // TYPE
2340
            return TYPE;
3430 rajveer 2341
          default:
2342
            return null;
2343
        }
471 rajveer 2344
      }
2345
 
2346
      /**
2347
       * Find the _Fields constant that matches fieldId, throwing an exception
2348
       * if it is not found.
2349
       */
2350
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2351
        _Fields fields = findByThriftId(fieldId);
2352
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2353
        return fields;
2354
      }
2355
 
2356
      /**
2357
       * Find the _Fields constant that matches name, or null if its not found.
2358
       */
2359
      public static _Fields findByName(String name) {
2360
        return byName.get(name);
2361
      }
2362
 
2363
      private final short _thriftId;
2364
      private final String _fieldName;
2365
 
2366
      _Fields(short thriftId, String fieldName) {
2367
        _thriftId = thriftId;
2368
        _fieldName = fieldName;
2369
      }
2370
 
2371
      public short getThriftFieldId() {
2372
        return _thriftId;
2373
      }
2374
 
2375
      public String getFieldName() {
2376
        return _fieldName;
2377
      }
2378
    }
2379
 
2380
    // isset id assignments
2381
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 2382
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 2383
 
3430 rajveer 2384
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 2385
    static {
3430 rajveer 2386
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2387
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2388
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2389
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2390
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 2391
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2392
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 2393
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2394
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 2395
    }
2396
 
2397
    public getLogisticsEstimation_args() {
2398
    }
2399
 
2400
    public getLogisticsEstimation_args(
2401
      long itemId,
4630 mandeep.dh 2402
      String destination_pin,
2403
      DeliveryType type)
471 rajveer 2404
    {
2405
      this();
2406
      this.itemId = itemId;
2407
      setItemIdIsSet(true);
2408
      this.destination_pin = destination_pin;
4630 mandeep.dh 2409
      this.type = type;
471 rajveer 2410
    }
2411
 
2412
    /**
2413
     * Performs a deep copy on <i>other</i>.
2414
     */
2415
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
2416
      __isset_bit_vector.clear();
2417
      __isset_bit_vector.or(other.__isset_bit_vector);
2418
      this.itemId = other.itemId;
2419
      if (other.isSetDestination_pin()) {
2420
        this.destination_pin = other.destination_pin;
2421
      }
4630 mandeep.dh 2422
      if (other.isSetType()) {
2423
        this.type = other.type;
2424
      }
471 rajveer 2425
    }
2426
 
2427
    public getLogisticsEstimation_args deepCopy() {
2428
      return new getLogisticsEstimation_args(this);
2429
    }
2430
 
3430 rajveer 2431
    @Override
2432
    public void clear() {
2433
      setItemIdIsSet(false);
2434
      this.itemId = 0;
2435
      this.destination_pin = null;
4630 mandeep.dh 2436
      this.type = null;
471 rajveer 2437
    }
2438
 
2439
    public long getItemId() {
2440
      return this.itemId;
2441
    }
2442
 
3430 rajveer 2443
    public void setItemId(long itemId) {
471 rajveer 2444
      this.itemId = itemId;
2445
      setItemIdIsSet(true);
2446
    }
2447
 
2448
    public void unsetItemId() {
2449
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2450
    }
2451
 
3430 rajveer 2452
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 2453
    public boolean isSetItemId() {
2454
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2455
    }
2456
 
2457
    public void setItemIdIsSet(boolean value) {
2458
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2459
    }
2460
 
2461
    public String getDestination_pin() {
2462
      return this.destination_pin;
2463
    }
2464
 
3430 rajveer 2465
    public void setDestination_pin(String destination_pin) {
471 rajveer 2466
      this.destination_pin = destination_pin;
2467
    }
2468
 
2469
    public void unsetDestination_pin() {
2470
      this.destination_pin = null;
2471
    }
2472
 
3430 rajveer 2473
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 2474
    public boolean isSetDestination_pin() {
2475
      return this.destination_pin != null;
2476
    }
2477
 
2478
    public void setDestination_pinIsSet(boolean value) {
2479
      if (!value) {
2480
        this.destination_pin = null;
2481
      }
2482
    }
2483
 
4630 mandeep.dh 2484
    /**
2485
     * 
2486
     * @see DeliveryType
2487
     */
2488
    public DeliveryType getType() {
2489
      return this.type;
2490
    }
2491
 
2492
    /**
2493
     * 
2494
     * @see DeliveryType
2495
     */
2496
    public void setType(DeliveryType type) {
2497
      this.type = type;
2498
    }
2499
 
2500
    public void unsetType() {
2501
      this.type = null;
2502
    }
2503
 
2504
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2505
    public boolean isSetType() {
2506
      return this.type != null;
2507
    }
2508
 
2509
    public void setTypeIsSet(boolean value) {
2510
      if (!value) {
2511
        this.type = null;
2512
      }
2513
    }
2514
 
471 rajveer 2515
    public void setFieldValue(_Fields field, Object value) {
2516
      switch (field) {
2517
      case ITEM_ID:
2518
        if (value == null) {
2519
          unsetItemId();
2520
        } else {
2521
          setItemId((Long)value);
2522
        }
2523
        break;
2524
 
2525
      case DESTINATION_PIN:
2526
        if (value == null) {
2527
          unsetDestination_pin();
2528
        } else {
2529
          setDestination_pin((String)value);
2530
        }
2531
        break;
2532
 
4630 mandeep.dh 2533
      case TYPE:
2534
        if (value == null) {
2535
          unsetType();
2536
        } else {
2537
          setType((DeliveryType)value);
2538
        }
2539
        break;
2540
 
471 rajveer 2541
      }
2542
    }
2543
 
2544
    public Object getFieldValue(_Fields field) {
2545
      switch (field) {
2546
      case ITEM_ID:
3430 rajveer 2547
        return Long.valueOf(getItemId());
471 rajveer 2548
 
2549
      case DESTINATION_PIN:
2550
        return getDestination_pin();
2551
 
4630 mandeep.dh 2552
      case TYPE:
2553
        return getType();
2554
 
471 rajveer 2555
      }
2556
      throw new IllegalStateException();
2557
    }
2558
 
3430 rajveer 2559
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2560
    public boolean isSet(_Fields field) {
2561
      if (field == null) {
2562
        throw new IllegalArgumentException();
2563
      }
471 rajveer 2564
 
2565
      switch (field) {
2566
      case ITEM_ID:
2567
        return isSetItemId();
2568
      case DESTINATION_PIN:
2569
        return isSetDestination_pin();
4630 mandeep.dh 2570
      case TYPE:
2571
        return isSetType();
471 rajveer 2572
      }
2573
      throw new IllegalStateException();
2574
    }
2575
 
2576
    @Override
2577
    public boolean equals(Object that) {
2578
      if (that == null)
2579
        return false;
2580
      if (that instanceof getLogisticsEstimation_args)
2581
        return this.equals((getLogisticsEstimation_args)that);
2582
      return false;
2583
    }
2584
 
2585
    public boolean equals(getLogisticsEstimation_args that) {
2586
      if (that == null)
2587
        return false;
2588
 
2589
      boolean this_present_itemId = true;
2590
      boolean that_present_itemId = true;
2591
      if (this_present_itemId || that_present_itemId) {
2592
        if (!(this_present_itemId && that_present_itemId))
2593
          return false;
2594
        if (this.itemId != that.itemId)
2595
          return false;
2596
      }
2597
 
2598
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
2599
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
2600
      if (this_present_destination_pin || that_present_destination_pin) {
2601
        if (!(this_present_destination_pin && that_present_destination_pin))
2602
          return false;
2603
        if (!this.destination_pin.equals(that.destination_pin))
2604
          return false;
2605
      }
2606
 
4630 mandeep.dh 2607
      boolean this_present_type = true && this.isSetType();
2608
      boolean that_present_type = true && that.isSetType();
2609
      if (this_present_type || that_present_type) {
2610
        if (!(this_present_type && that_present_type))
2611
          return false;
2612
        if (!this.type.equals(that.type))
2613
          return false;
2614
      }
2615
 
471 rajveer 2616
      return true;
2617
    }
2618
 
2619
    @Override
2620
    public int hashCode() {
2621
      return 0;
2622
    }
2623
 
2624
    public int compareTo(getLogisticsEstimation_args other) {
2625
      if (!getClass().equals(other.getClass())) {
2626
        return getClass().getName().compareTo(other.getClass().getName());
2627
      }
2628
 
2629
      int lastComparison = 0;
2630
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
2631
 
3430 rajveer 2632
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 2633
      if (lastComparison != 0) {
2634
        return lastComparison;
2635
      }
3430 rajveer 2636
      if (isSetItemId()) {
2637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2638
        if (lastComparison != 0) {
2639
          return lastComparison;
2640
        }
471 rajveer 2641
      }
3430 rajveer 2642
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 2643
      if (lastComparison != 0) {
2644
        return lastComparison;
2645
      }
3430 rajveer 2646
      if (isSetDestination_pin()) {
2647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
2648
        if (lastComparison != 0) {
2649
          return lastComparison;
2650
        }
471 rajveer 2651
      }
4630 mandeep.dh 2652
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2653
      if (lastComparison != 0) {
2654
        return lastComparison;
2655
      }
2656
      if (isSetType()) {
2657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
2658
        if (lastComparison != 0) {
2659
          return lastComparison;
2660
        }
2661
      }
471 rajveer 2662
      return 0;
2663
    }
2664
 
3430 rajveer 2665
    public _Fields fieldForId(int fieldId) {
2666
      return _Fields.findByThriftId(fieldId);
2667
    }
2668
 
2669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2670
      org.apache.thrift.protocol.TField field;
471 rajveer 2671
      iprot.readStructBegin();
2672
      while (true)
2673
      {
2674
        field = iprot.readFieldBegin();
3430 rajveer 2675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 2676
          break;
2677
        }
3430 rajveer 2678
        switch (field.id) {
2679
          case 1: // ITEM_ID
2680
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2681
              this.itemId = iprot.readI64();
2682
              setItemIdIsSet(true);
2683
            } else { 
2684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2685
            }
2686
            break;
2687
          case 2: // DESTINATION_PIN
2688
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2689
              this.destination_pin = iprot.readString();
2690
            } else { 
2691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2692
            }
2693
            break;
4630 mandeep.dh 2694
          case 3: // TYPE
2695
            if (field.type == org.apache.thrift.protocol.TType.I32) {
2696
              this.type = DeliveryType.findByValue(iprot.readI32());
2697
            } else { 
2698
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2699
            }
2700
            break;
3430 rajveer 2701
          default:
2702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 2703
        }
3430 rajveer 2704
        iprot.readFieldEnd();
471 rajveer 2705
      }
2706
      iprot.readStructEnd();
2707
      validate();
2708
    }
2709
 
3430 rajveer 2710
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 2711
      validate();
2712
 
2713
      oprot.writeStructBegin(STRUCT_DESC);
2714
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2715
      oprot.writeI64(this.itemId);
2716
      oprot.writeFieldEnd();
2717
      if (this.destination_pin != null) {
2718
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
2719
        oprot.writeString(this.destination_pin);
2720
        oprot.writeFieldEnd();
2721
      }
4630 mandeep.dh 2722
      if (this.type != null) {
2723
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
2724
        oprot.writeI32(this.type.getValue());
2725
        oprot.writeFieldEnd();
2726
      }
471 rajveer 2727
      oprot.writeFieldStop();
2728
      oprot.writeStructEnd();
2729
    }
2730
 
2731
    @Override
2732
    public String toString() {
2733
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
2734
      boolean first = true;
2735
 
2736
      sb.append("itemId:");
2737
      sb.append(this.itemId);
2738
      first = false;
2739
      if (!first) sb.append(", ");
2740
      sb.append("destination_pin:");
2741
      if (this.destination_pin == null) {
2742
        sb.append("null");
2743
      } else {
2744
        sb.append(this.destination_pin);
2745
      }
2746
      first = false;
4630 mandeep.dh 2747
      if (!first) sb.append(", ");
2748
      sb.append("type:");
2749
      if (this.type == null) {
2750
        sb.append("null");
2751
      } else {
2752
        sb.append(this.type);
2753
      }
2754
      first = false;
471 rajveer 2755
      sb.append(")");
2756
      return sb.toString();
2757
    }
2758
 
3430 rajveer 2759
    public void validate() throws org.apache.thrift.TException {
471 rajveer 2760
      // check for required fields
2761
    }
2762
 
3430 rajveer 2763
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2764
      try {
2765
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2766
      } catch (org.apache.thrift.TException te) {
2767
        throw new java.io.IOException(te);
2768
      }
2769
    }
2770
 
2771
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2772
      try {
2773
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2774
      } catch (org.apache.thrift.TException te) {
2775
        throw new java.io.IOException(te);
2776
      }
2777
    }
2778
 
471 rajveer 2779
  }
2780
 
3430 rajveer 2781
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
2782
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 2783
 
3430 rajveer 2784
    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);
2785
    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 2786
 
3430 rajveer 2787
    private LogisticsInfo success; // required
2788
    private LogisticsServiceException se; // required
471 rajveer 2789
 
2790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2792
      SUCCESS((short)0, "success"),
2793
      SE((short)1, "se");
2794
 
2795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2796
 
2797
      static {
2798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2799
          byName.put(field.getFieldName(), field);
2800
        }
2801
      }
2802
 
2803
      /**
2804
       * Find the _Fields constant that matches fieldId, or null if its not found.
2805
       */
2806
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2807
        switch(fieldId) {
2808
          case 0: // SUCCESS
2809
            return SUCCESS;
2810
          case 1: // SE
2811
            return SE;
2812
          default:
2813
            return null;
2814
        }
471 rajveer 2815
      }
2816
 
2817
      /**
2818
       * Find the _Fields constant that matches fieldId, throwing an exception
2819
       * if it is not found.
2820
       */
2821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2822
        _Fields fields = findByThriftId(fieldId);
2823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2824
        return fields;
2825
      }
2826
 
2827
      /**
2828
       * Find the _Fields constant that matches name, or null if its not found.
2829
       */
2830
      public static _Fields findByName(String name) {
2831
        return byName.get(name);
2832
      }
2833
 
2834
      private final short _thriftId;
2835
      private final String _fieldName;
2836
 
2837
      _Fields(short thriftId, String fieldName) {
2838
        _thriftId = thriftId;
2839
        _fieldName = fieldName;
2840
      }
2841
 
2842
      public short getThriftFieldId() {
2843
        return _thriftId;
2844
      }
2845
 
2846
      public String getFieldName() {
2847
        return _fieldName;
2848
      }
2849
    }
2850
 
2851
    // isset id assignments
2852
 
3430 rajveer 2853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 2854
    static {
3430 rajveer 2855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2856
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2857
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
2858
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 2862
    }
2863
 
2864
    public getLogisticsEstimation_result() {
2865
    }
2866
 
2867
    public getLogisticsEstimation_result(
648 chandransh 2868
      LogisticsInfo success,
471 rajveer 2869
      LogisticsServiceException se)
2870
    {
2871
      this();
2872
      this.success = success;
2873
      this.se = se;
2874
    }
2875
 
2876
    /**
2877
     * Performs a deep copy on <i>other</i>.
2878
     */
2879
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
2880
      if (other.isSetSuccess()) {
648 chandransh 2881
        this.success = new LogisticsInfo(other.success);
471 rajveer 2882
      }
2883
      if (other.isSetSe()) {
2884
        this.se = new LogisticsServiceException(other.se);
2885
      }
2886
    }
2887
 
2888
    public getLogisticsEstimation_result deepCopy() {
2889
      return new getLogisticsEstimation_result(this);
2890
    }
2891
 
3430 rajveer 2892
    @Override
2893
    public void clear() {
2894
      this.success = null;
2895
      this.se = null;
471 rajveer 2896
    }
2897
 
648 chandransh 2898
    public LogisticsInfo getSuccess() {
471 rajveer 2899
      return this.success;
2900
    }
2901
 
3430 rajveer 2902
    public void setSuccess(LogisticsInfo success) {
471 rajveer 2903
      this.success = success;
2904
    }
2905
 
2906
    public void unsetSuccess() {
2907
      this.success = null;
2908
    }
2909
 
3430 rajveer 2910
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 2911
    public boolean isSetSuccess() {
2912
      return this.success != null;
2913
    }
2914
 
2915
    public void setSuccessIsSet(boolean value) {
2916
      if (!value) {
2917
        this.success = null;
2918
      }
2919
    }
2920
 
2921
    public LogisticsServiceException getSe() {
2922
      return this.se;
2923
    }
2924
 
3430 rajveer 2925
    public void setSe(LogisticsServiceException se) {
471 rajveer 2926
      this.se = se;
2927
    }
2928
 
2929
    public void unsetSe() {
2930
      this.se = null;
2931
    }
2932
 
3430 rajveer 2933
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 2934
    public boolean isSetSe() {
2935
      return this.se != null;
2936
    }
2937
 
2938
    public void setSeIsSet(boolean value) {
2939
      if (!value) {
2940
        this.se = null;
2941
      }
2942
    }
2943
 
2944
    public void setFieldValue(_Fields field, Object value) {
2945
      switch (field) {
2946
      case SUCCESS:
2947
        if (value == null) {
2948
          unsetSuccess();
2949
        } else {
648 chandransh 2950
          setSuccess((LogisticsInfo)value);
471 rajveer 2951
        }
2952
        break;
2953
 
2954
      case SE:
2955
        if (value == null) {
2956
          unsetSe();
2957
        } else {
2958
          setSe((LogisticsServiceException)value);
2959
        }
2960
        break;
2961
 
2962
      }
2963
    }
2964
 
2965
    public Object getFieldValue(_Fields field) {
2966
      switch (field) {
2967
      case SUCCESS:
2968
        return getSuccess();
2969
 
2970
      case SE:
2971
        return getSe();
2972
 
2973
      }
2974
      throw new IllegalStateException();
2975
    }
2976
 
3430 rajveer 2977
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2978
    public boolean isSet(_Fields field) {
2979
      if (field == null) {
2980
        throw new IllegalArgumentException();
2981
      }
471 rajveer 2982
 
2983
      switch (field) {
2984
      case SUCCESS:
2985
        return isSetSuccess();
2986
      case SE:
2987
        return isSetSe();
2988
      }
2989
      throw new IllegalStateException();
2990
    }
2991
 
2992
    @Override
2993
    public boolean equals(Object that) {
2994
      if (that == null)
2995
        return false;
2996
      if (that instanceof getLogisticsEstimation_result)
2997
        return this.equals((getLogisticsEstimation_result)that);
2998
      return false;
2999
    }
3000
 
3001
    public boolean equals(getLogisticsEstimation_result that) {
3002
      if (that == null)
3003
        return false;
3004
 
3005
      boolean this_present_success = true && this.isSetSuccess();
3006
      boolean that_present_success = true && that.isSetSuccess();
3007
      if (this_present_success || that_present_success) {
3008
        if (!(this_present_success && that_present_success))
3009
          return false;
3010
        if (!this.success.equals(that.success))
3011
          return false;
3012
      }
3013
 
3014
      boolean this_present_se = true && this.isSetSe();
3015
      boolean that_present_se = true && that.isSetSe();
3016
      if (this_present_se || that_present_se) {
3017
        if (!(this_present_se && that_present_se))
3018
          return false;
3019
        if (!this.se.equals(that.se))
3020
          return false;
3021
      }
3022
 
3023
      return true;
3024
    }
3025
 
3026
    @Override
3027
    public int hashCode() {
3028
      return 0;
3029
    }
3030
 
3031
    public int compareTo(getLogisticsEstimation_result other) {
3032
      if (!getClass().equals(other.getClass())) {
3033
        return getClass().getName().compareTo(other.getClass().getName());
3034
      }
3035
 
3036
      int lastComparison = 0;
3037
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3038
 
3430 rajveer 3039
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3040
      if (lastComparison != 0) {
3041
        return lastComparison;
3042
      }
3430 rajveer 3043
      if (isSetSuccess()) {
3044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3045
        if (lastComparison != 0) {
3046
          return lastComparison;
3047
        }
471 rajveer 3048
      }
3430 rajveer 3049
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3050
      if (lastComparison != 0) {
3051
        return lastComparison;
3052
      }
3430 rajveer 3053
      if (isSetSe()) {
3054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3055
        if (lastComparison != 0) {
3056
          return lastComparison;
3057
        }
471 rajveer 3058
      }
3059
      return 0;
3060
    }
3061
 
3430 rajveer 3062
    public _Fields fieldForId(int fieldId) {
3063
      return _Fields.findByThriftId(fieldId);
3064
    }
3065
 
3066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3067
      org.apache.thrift.protocol.TField field;
471 rajveer 3068
      iprot.readStructBegin();
3069
      while (true)
3070
      {
3071
        field = iprot.readFieldBegin();
3430 rajveer 3072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3073
          break;
3074
        }
3430 rajveer 3075
        switch (field.id) {
3076
          case 0: // SUCCESS
3077
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3078
              this.success = new LogisticsInfo();
3079
              this.success.read(iprot);
3080
            } else { 
3081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3082
            }
3083
            break;
3084
          case 1: // SE
3085
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3086
              this.se = new LogisticsServiceException();
3087
              this.se.read(iprot);
3088
            } else { 
3089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3090
            }
3091
            break;
3092
          default:
3093
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3094
        }
3430 rajveer 3095
        iprot.readFieldEnd();
471 rajveer 3096
      }
3097
      iprot.readStructEnd();
3098
      validate();
3099
    }
3100
 
3430 rajveer 3101
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3102
      oprot.writeStructBegin(STRUCT_DESC);
3103
 
3104
      if (this.isSetSuccess()) {
3105
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3106
        this.success.write(oprot);
3107
        oprot.writeFieldEnd();
3108
      } else if (this.isSetSe()) {
3109
        oprot.writeFieldBegin(SE_FIELD_DESC);
3110
        this.se.write(oprot);
3111
        oprot.writeFieldEnd();
3112
      }
3113
      oprot.writeFieldStop();
3114
      oprot.writeStructEnd();
3115
    }
3116
 
3117
    @Override
3118
    public String toString() {
3119
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3120
      boolean first = true;
3121
 
3122
      sb.append("success:");
3123
      if (this.success == null) {
3124
        sb.append("null");
3125
      } else {
3126
        sb.append(this.success);
3127
      }
3128
      first = false;
3129
      if (!first) sb.append(", ");
3130
      sb.append("se:");
3131
      if (this.se == null) {
3132
        sb.append("null");
3133
      } else {
3134
        sb.append(this.se);
3135
      }
3136
      first = false;
3137
      sb.append(")");
3138
      return sb.toString();
3139
    }
3140
 
3430 rajveer 3141
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3142
      // check for required fields
3143
    }
3144
 
3430 rajveer 3145
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3146
      try {
3147
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3148
      } catch (org.apache.thrift.TException te) {
3149
        throw new java.io.IOException(te);
3150
      }
3151
    }
3152
 
3153
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3154
      try {
3155
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3156
      } catch (org.apache.thrift.TException te) {
3157
        throw new java.io.IOException(te);
3158
      }
3159
    }
3160
 
471 rajveer 3161
  }
3162
 
3430 rajveer 3163
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
3164
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 3165
 
3430 rajveer 3166
    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);
3167
    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);
3168
    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 3169
 
3430 rajveer 3170
    private String destination_pincode; // required
3171
    private long item_id; // required
3172
    private DeliveryType type; // required
471 rajveer 3173
 
3174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3175
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3176
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 3177
      ITEM_ID((short)2, "item_id"),
3178
      /**
3179
       * 
3180
       * @see DeliveryType
3181
       */
3182
      TYPE((short)3, "type");
471 rajveer 3183
 
3184
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3185
 
3186
      static {
3187
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3188
          byName.put(field.getFieldName(), field);
3189
        }
3190
      }
3191
 
3192
      /**
3193
       * Find the _Fields constant that matches fieldId, or null if its not found.
3194
       */
3195
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3196
        switch(fieldId) {
3197
          case 1: // DESTINATION_PINCODE
3198
            return DESTINATION_PINCODE;
3199
          case 2: // ITEM_ID
3200
            return ITEM_ID;
3201
          case 3: // TYPE
3202
            return TYPE;
3203
          default:
3204
            return null;
3205
        }
471 rajveer 3206
      }
3207
 
3208
      /**
3209
       * Find the _Fields constant that matches fieldId, throwing an exception
3210
       * if it is not found.
3211
       */
3212
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3213
        _Fields fields = findByThriftId(fieldId);
3214
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3215
        return fields;
3216
      }
3217
 
3218
      /**
3219
       * Find the _Fields constant that matches name, or null if its not found.
3220
       */
3221
      public static _Fields findByName(String name) {
3222
        return byName.get(name);
3223
      }
3224
 
3225
      private final short _thriftId;
3226
      private final String _fieldName;
3227
 
3228
      _Fields(short thriftId, String fieldName) {
3229
        _thriftId = thriftId;
3230
        _fieldName = fieldName;
3231
      }
3232
 
3233
      public short getThriftFieldId() {
3234
        return _thriftId;
3235
      }
3236
 
3237
      public String getFieldName() {
3238
        return _fieldName;
3239
      }
3240
    }
3241
 
3242
    // isset id assignments
715 rajveer 3243
    private static final int __ITEM_ID_ISSET_ID = 0;
3244
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3245
 
3430 rajveer 3246
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 3247
    static {
3430 rajveer 3248
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3249
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3250
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3251
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3252
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3253
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3254
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 3257
    }
3258
 
648 chandransh 3259
    public getLogisticsInfo_args() {
477 rajveer 3260
    }
3261
 
648 chandransh 3262
    public getLogisticsInfo_args(
3263
      String destination_pincode,
3044 chandransh 3264
      long item_id,
3265
      DeliveryType type)
477 rajveer 3266
    {
3267
      this();
648 chandransh 3268
      this.destination_pincode = destination_pincode;
3269
      this.item_id = item_id;
715 rajveer 3270
      setItem_idIsSet(true);
3044 chandransh 3271
      this.type = type;
477 rajveer 3272
    }
3273
 
3274
    /**
3275
     * Performs a deep copy on <i>other</i>.
3276
     */
648 chandransh 3277
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 3278
      __isset_bit_vector.clear();
3279
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 3280
      if (other.isSetDestination_pincode()) {
3281
        this.destination_pincode = other.destination_pincode;
477 rajveer 3282
      }
715 rajveer 3283
      this.item_id = other.item_id;
3044 chandransh 3284
      if (other.isSetType()) {
3285
        this.type = other.type;
3286
      }
477 rajveer 3287
    }
3288
 
648 chandransh 3289
    public getLogisticsInfo_args deepCopy() {
3290
      return new getLogisticsInfo_args(this);
477 rajveer 3291
    }
3292
 
3430 rajveer 3293
    @Override
3294
    public void clear() {
3295
      this.destination_pincode = null;
3296
      setItem_idIsSet(false);
3297
      this.item_id = 0;
3298
      this.type = null;
477 rajveer 3299
    }
3300
 
648 chandransh 3301
    public String getDestination_pincode() {
3302
      return this.destination_pincode;
477 rajveer 3303
    }
3304
 
3430 rajveer 3305
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 3306
      this.destination_pincode = destination_pincode;
477 rajveer 3307
    }
3308
 
648 chandransh 3309
    public void unsetDestination_pincode() {
3310
      this.destination_pincode = null;
477 rajveer 3311
    }
3312
 
3430 rajveer 3313
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 3314
    public boolean isSetDestination_pincode() {
3315
      return this.destination_pincode != null;
477 rajveer 3316
    }
3317
 
648 chandransh 3318
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 3319
      if (!value) {
648 chandransh 3320
        this.destination_pincode = null;
477 rajveer 3321
      }
3322
    }
3323
 
715 rajveer 3324
    public long getItem_id() {
648 chandransh 3325
      return this.item_id;
477 rajveer 3326
    }
3327
 
3430 rajveer 3328
    public void setItem_id(long item_id) {
648 chandransh 3329
      this.item_id = item_id;
715 rajveer 3330
      setItem_idIsSet(true);
477 rajveer 3331
    }
3332
 
648 chandransh 3333
    public void unsetItem_id() {
715 rajveer 3334
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 3335
    }
3336
 
3430 rajveer 3337
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 3338
    public boolean isSetItem_id() {
715 rajveer 3339
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 3340
    }
3341
 
648 chandransh 3342
    public void setItem_idIsSet(boolean value) {
715 rajveer 3343
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 3344
    }
3345
 
3044 chandransh 3346
    /**
3347
     * 
3348
     * @see DeliveryType
3349
     */
3350
    public DeliveryType getType() {
3351
      return this.type;
3352
    }
3353
 
3354
    /**
3355
     * 
3356
     * @see DeliveryType
3357
     */
3430 rajveer 3358
    public void setType(DeliveryType type) {
3044 chandransh 3359
      this.type = type;
3360
    }
3361
 
3362
    public void unsetType() {
3363
      this.type = null;
3364
    }
3365
 
3430 rajveer 3366
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 3367
    public boolean isSetType() {
3368
      return this.type != null;
3369
    }
3370
 
3371
    public void setTypeIsSet(boolean value) {
3372
      if (!value) {
3373
        this.type = null;
3374
      }
3375
    }
3376
 
477 rajveer 3377
    public void setFieldValue(_Fields field, Object value) {
3378
      switch (field) {
648 chandransh 3379
      case DESTINATION_PINCODE:
477 rajveer 3380
        if (value == null) {
648 chandransh 3381
          unsetDestination_pincode();
477 rajveer 3382
        } else {
648 chandransh 3383
          setDestination_pincode((String)value);
477 rajveer 3384
        }
3385
        break;
3386
 
648 chandransh 3387
      case ITEM_ID:
477 rajveer 3388
        if (value == null) {
648 chandransh 3389
          unsetItem_id();
477 rajveer 3390
        } else {
715 rajveer 3391
          setItem_id((Long)value);
477 rajveer 3392
        }
3393
        break;
3394
 
3044 chandransh 3395
      case TYPE:
3396
        if (value == null) {
3397
          unsetType();
3398
        } else {
3399
          setType((DeliveryType)value);
3400
        }
3401
        break;
3402
 
477 rajveer 3403
      }
3404
    }
3405
 
3406
    public Object getFieldValue(_Fields field) {
3407
      switch (field) {
648 chandransh 3408
      case DESTINATION_PINCODE:
3409
        return getDestination_pincode();
477 rajveer 3410
 
648 chandransh 3411
      case ITEM_ID:
3430 rajveer 3412
        return Long.valueOf(getItem_id());
477 rajveer 3413
 
3044 chandransh 3414
      case TYPE:
3415
        return getType();
3416
 
477 rajveer 3417
      }
3418
      throw new IllegalStateException();
3419
    }
3420
 
3430 rajveer 3421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3422
    public boolean isSet(_Fields field) {
3423
      if (field == null) {
3424
        throw new IllegalArgumentException();
3425
      }
477 rajveer 3426
 
3427
      switch (field) {
648 chandransh 3428
      case DESTINATION_PINCODE:
3429
        return isSetDestination_pincode();
3430
      case ITEM_ID:
3431
        return isSetItem_id();
3044 chandransh 3432
      case TYPE:
3433
        return isSetType();
477 rajveer 3434
      }
3435
      throw new IllegalStateException();
3436
    }
3437
 
3438
    @Override
3439
    public boolean equals(Object that) {
3440
      if (that == null)
3441
        return false;
648 chandransh 3442
      if (that instanceof getLogisticsInfo_args)
3443
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 3444
      return false;
3445
    }
3446
 
648 chandransh 3447
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 3448
      if (that == null)
3449
        return false;
3450
 
648 chandransh 3451
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
3452
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
3453
      if (this_present_destination_pincode || that_present_destination_pincode) {
3454
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 3455
          return false;
648 chandransh 3456
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 3457
          return false;
3458
      }
3459
 
715 rajveer 3460
      boolean this_present_item_id = true;
3461
      boolean that_present_item_id = true;
648 chandransh 3462
      if (this_present_item_id || that_present_item_id) {
3463
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 3464
          return false;
715 rajveer 3465
        if (this.item_id != that.item_id)
477 rajveer 3466
          return false;
3467
      }
3468
 
3044 chandransh 3469
      boolean this_present_type = true && this.isSetType();
3470
      boolean that_present_type = true && that.isSetType();
3471
      if (this_present_type || that_present_type) {
3472
        if (!(this_present_type && that_present_type))
3473
          return false;
3474
        if (!this.type.equals(that.type))
3475
          return false;
3476
      }
3477
 
477 rajveer 3478
      return true;
3479
    }
3480
 
3481
    @Override
3482
    public int hashCode() {
3483
      return 0;
3484
    }
3485
 
648 chandransh 3486
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 3487
      if (!getClass().equals(other.getClass())) {
3488
        return getClass().getName().compareTo(other.getClass().getName());
3489
      }
3490
 
3491
      int lastComparison = 0;
648 chandransh 3492
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 3493
 
3430 rajveer 3494
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 3495
      if (lastComparison != 0) {
3496
        return lastComparison;
3497
      }
3430 rajveer 3498
      if (isSetDestination_pincode()) {
3499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
3500
        if (lastComparison != 0) {
3501
          return lastComparison;
3502
        }
477 rajveer 3503
      }
3430 rajveer 3504
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 3505
      if (lastComparison != 0) {
3506
        return lastComparison;
3507
      }
3430 rajveer 3508
      if (isSetItem_id()) {
3509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
3510
        if (lastComparison != 0) {
3511
          return lastComparison;
3512
        }
477 rajveer 3513
      }
3430 rajveer 3514
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 3515
      if (lastComparison != 0) {
3516
        return lastComparison;
3517
      }
3430 rajveer 3518
      if (isSetType()) {
3519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3520
        if (lastComparison != 0) {
3521
          return lastComparison;
3522
        }
3044 chandransh 3523
      }
477 rajveer 3524
      return 0;
3525
    }
3526
 
3430 rajveer 3527
    public _Fields fieldForId(int fieldId) {
3528
      return _Fields.findByThriftId(fieldId);
3529
    }
3530
 
3531
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3532
      org.apache.thrift.protocol.TField field;
477 rajveer 3533
      iprot.readStructBegin();
3534
      while (true)
3535
      {
3536
        field = iprot.readFieldBegin();
3430 rajveer 3537
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 3538
          break;
3539
        }
3430 rajveer 3540
        switch (field.id) {
3541
          case 1: // DESTINATION_PINCODE
3542
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3543
              this.destination_pincode = iprot.readString();
3544
            } else { 
3545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3546
            }
3547
            break;
3548
          case 2: // ITEM_ID
3549
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3550
              this.item_id = iprot.readI64();
3551
              setItem_idIsSet(true);
3552
            } else { 
3553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3554
            }
3555
            break;
3556
          case 3: // TYPE
3557
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3558
              this.type = DeliveryType.findByValue(iprot.readI32());
3559
            } else { 
3560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3561
            }
3562
            break;
3563
          default:
3564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 3565
        }
3430 rajveer 3566
        iprot.readFieldEnd();
477 rajveer 3567
      }
3568
      iprot.readStructEnd();
3569
      validate();
3570
    }
3571
 
3430 rajveer 3572
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 3573
      validate();
3574
 
3575
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 3576
      if (this.destination_pincode != null) {
3577
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
3578
        oprot.writeString(this.destination_pincode);
477 rajveer 3579
        oprot.writeFieldEnd();
3580
      }
715 rajveer 3581
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3582
      oprot.writeI64(this.item_id);
3583
      oprot.writeFieldEnd();
3044 chandransh 3584
      if (this.type != null) {
3585
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3586
        oprot.writeI32(this.type.getValue());
3587
        oprot.writeFieldEnd();
3588
      }
477 rajveer 3589
      oprot.writeFieldStop();
3590
      oprot.writeStructEnd();
3591
    }
3592
 
3593
    @Override
3594
    public String toString() {
648 chandransh 3595
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 3596
      boolean first = true;
3597
 
648 chandransh 3598
      sb.append("destination_pincode:");
3599
      if (this.destination_pincode == null) {
477 rajveer 3600
        sb.append("null");
3601
      } else {
648 chandransh 3602
        sb.append(this.destination_pincode);
477 rajveer 3603
      }
3604
      first = false;
3605
      if (!first) sb.append(", ");
648 chandransh 3606
      sb.append("item_id:");
715 rajveer 3607
      sb.append(this.item_id);
477 rajveer 3608
      first = false;
3044 chandransh 3609
      if (!first) sb.append(", ");
3610
      sb.append("type:");
3611
      if (this.type == null) {
3612
        sb.append("null");
3613
      } else {
3614
        sb.append(this.type);
3615
      }
3616
      first = false;
477 rajveer 3617
      sb.append(")");
3618
      return sb.toString();
3619
    }
3620
 
3430 rajveer 3621
    public void validate() throws org.apache.thrift.TException {
477 rajveer 3622
      // check for required fields
3623
    }
3624
 
3430 rajveer 3625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3626
      try {
3627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3628
      } catch (org.apache.thrift.TException te) {
3629
        throw new java.io.IOException(te);
3630
      }
3631
    }
3632
 
3633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3634
      try {
3635
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3636
      } catch (org.apache.thrift.TException te) {
3637
        throw new java.io.IOException(te);
3638
      }
3639
    }
3640
 
477 rajveer 3641
  }
3642
 
3430 rajveer 3643
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
3644
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 3645
 
3430 rajveer 3646
    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);
3647
    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 3648
 
3430 rajveer 3649
    private LogisticsInfo success; // required
3650
    private LogisticsServiceException se; // required
477 rajveer 3651
 
3652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3653
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3654
      SUCCESS((short)0, "success"),
3655
      SE((short)1, "se");
477 rajveer 3656
 
3657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3658
 
3659
      static {
3660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3661
          byName.put(field.getFieldName(), field);
3662
        }
3663
      }
3664
 
3665
      /**
3666
       * Find the _Fields constant that matches fieldId, or null if its not found.
3667
       */
3668
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3669
        switch(fieldId) {
3670
          case 0: // SUCCESS
3671
            return SUCCESS;
3672
          case 1: // SE
3673
            return SE;
3674
          default:
3675
            return null;
3676
        }
477 rajveer 3677
      }
3678
 
3679
      /**
3680
       * Find the _Fields constant that matches fieldId, throwing an exception
3681
       * if it is not found.
3682
       */
3683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3684
        _Fields fields = findByThriftId(fieldId);
3685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3686
        return fields;
3687
      }
3688
 
3689
      /**
3690
       * Find the _Fields constant that matches name, or null if its not found.
3691
       */
3692
      public static _Fields findByName(String name) {
3693
        return byName.get(name);
3694
      }
3695
 
3696
      private final short _thriftId;
3697
      private final String _fieldName;
3698
 
3699
      _Fields(short thriftId, String fieldName) {
3700
        _thriftId = thriftId;
3701
        _fieldName = fieldName;
3702
      }
3703
 
3704
      public short getThriftFieldId() {
3705
        return _thriftId;
3706
      }
3707
 
3708
      public String getFieldName() {
3709
        return _fieldName;
3710
      }
3711
    }
3712
 
412 ashish 3713
    // isset id assignments
3714
 
3430 rajveer 3715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 3716
    static {
3430 rajveer 3717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3718
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3719
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3720
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3722
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3723
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 3724
    }
3725
 
648 chandransh 3726
    public getLogisticsInfo_result() {
412 ashish 3727
    }
3728
 
648 chandransh 3729
    public getLogisticsInfo_result(
3730
      LogisticsInfo success,
3731
      LogisticsServiceException se)
412 ashish 3732
    {
3733
      this();
648 chandransh 3734
      this.success = success;
3735
      this.se = se;
412 ashish 3736
    }
3737
 
3738
    /**
3739
     * Performs a deep copy on <i>other</i>.
3740
     */
648 chandransh 3741
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
3742
      if (other.isSetSuccess()) {
3743
        this.success = new LogisticsInfo(other.success);
412 ashish 3744
      }
648 chandransh 3745
      if (other.isSetSe()) {
3746
        this.se = new LogisticsServiceException(other.se);
3747
      }
412 ashish 3748
    }
3749
 
648 chandransh 3750
    public getLogisticsInfo_result deepCopy() {
3751
      return new getLogisticsInfo_result(this);
412 ashish 3752
    }
3753
 
3430 rajveer 3754
    @Override
3755
    public void clear() {
3756
      this.success = null;
3757
      this.se = null;
412 ashish 3758
    }
3759
 
648 chandransh 3760
    public LogisticsInfo getSuccess() {
3761
      return this.success;
412 ashish 3762
    }
3763
 
3430 rajveer 3764
    public void setSuccess(LogisticsInfo success) {
648 chandransh 3765
      this.success = success;
412 ashish 3766
    }
3767
 
648 chandransh 3768
    public void unsetSuccess() {
3769
      this.success = null;
412 ashish 3770
    }
3771
 
3430 rajveer 3772
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 3773
    public boolean isSetSuccess() {
3774
      return this.success != null;
412 ashish 3775
    }
3776
 
648 chandransh 3777
    public void setSuccessIsSet(boolean value) {
412 ashish 3778
      if (!value) {
648 chandransh 3779
        this.success = null;
412 ashish 3780
      }
3781
    }
3782
 
648 chandransh 3783
    public LogisticsServiceException getSe() {
3784
      return this.se;
412 ashish 3785
    }
3786
 
3430 rajveer 3787
    public void setSe(LogisticsServiceException se) {
648 chandransh 3788
      this.se = se;
412 ashish 3789
    }
3790
 
648 chandransh 3791
    public void unsetSe() {
3792
      this.se = null;
412 ashish 3793
    }
3794
 
3430 rajveer 3795
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 3796
    public boolean isSetSe() {
3797
      return this.se != null;
412 ashish 3798
    }
3799
 
648 chandransh 3800
    public void setSeIsSet(boolean value) {
3801
      if (!value) {
3802
        this.se = null;
3803
      }
412 ashish 3804
    }
3805
 
3806
    public void setFieldValue(_Fields field, Object value) {
3807
      switch (field) {
648 chandransh 3808
      case SUCCESS:
412 ashish 3809
        if (value == null) {
648 chandransh 3810
          unsetSuccess();
412 ashish 3811
        } else {
648 chandransh 3812
          setSuccess((LogisticsInfo)value);
412 ashish 3813
        }
3814
        break;
3815
 
648 chandransh 3816
      case SE:
412 ashish 3817
        if (value == null) {
648 chandransh 3818
          unsetSe();
412 ashish 3819
        } else {
648 chandransh 3820
          setSe((LogisticsServiceException)value);
412 ashish 3821
        }
3822
        break;
3823
 
3824
      }
3825
    }
3826
 
3827
    public Object getFieldValue(_Fields field) {
3828
      switch (field) {
648 chandransh 3829
      case SUCCESS:
3830
        return getSuccess();
412 ashish 3831
 
648 chandransh 3832
      case SE:
3833
        return getSe();
412 ashish 3834
 
3835
      }
3836
      throw new IllegalStateException();
3837
    }
3838
 
3430 rajveer 3839
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3840
    public boolean isSet(_Fields field) {
3841
      if (field == null) {
3842
        throw new IllegalArgumentException();
3843
      }
412 ashish 3844
 
3845
      switch (field) {
648 chandransh 3846
      case SUCCESS:
3847
        return isSetSuccess();
3848
      case SE:
3849
        return isSetSe();
412 ashish 3850
      }
3851
      throw new IllegalStateException();
3852
    }
3853
 
3854
    @Override
3855
    public boolean equals(Object that) {
3856
      if (that == null)
3857
        return false;
648 chandransh 3858
      if (that instanceof getLogisticsInfo_result)
3859
        return this.equals((getLogisticsInfo_result)that);
412 ashish 3860
      return false;
3861
    }
3862
 
648 chandransh 3863
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 3864
      if (that == null)
3865
        return false;
3866
 
648 chandransh 3867
      boolean this_present_success = true && this.isSetSuccess();
3868
      boolean that_present_success = true && that.isSetSuccess();
3869
      if (this_present_success || that_present_success) {
3870
        if (!(this_present_success && that_present_success))
412 ashish 3871
          return false;
648 chandransh 3872
        if (!this.success.equals(that.success))
412 ashish 3873
          return false;
3874
      }
3875
 
648 chandransh 3876
      boolean this_present_se = true && this.isSetSe();
3877
      boolean that_present_se = true && that.isSetSe();
3878
      if (this_present_se || that_present_se) {
3879
        if (!(this_present_se && that_present_se))
412 ashish 3880
          return false;
648 chandransh 3881
        if (!this.se.equals(that.se))
412 ashish 3882
          return false;
3883
      }
3884
 
3885
      return true;
3886
    }
3887
 
3888
    @Override
3889
    public int hashCode() {
3890
      return 0;
3891
    }
3892
 
648 chandransh 3893
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 3894
      if (!getClass().equals(other.getClass())) {
3895
        return getClass().getName().compareTo(other.getClass().getName());
3896
      }
3897
 
3898
      int lastComparison = 0;
648 chandransh 3899
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 3900
 
3430 rajveer 3901
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 3902
      if (lastComparison != 0) {
3903
        return lastComparison;
3904
      }
3430 rajveer 3905
      if (isSetSuccess()) {
3906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3907
        if (lastComparison != 0) {
3908
          return lastComparison;
3909
        }
412 ashish 3910
      }
3430 rajveer 3911
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 3912
      if (lastComparison != 0) {
3913
        return lastComparison;
3914
      }
3430 rajveer 3915
      if (isSetSe()) {
3916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3917
        if (lastComparison != 0) {
3918
          return lastComparison;
3919
        }
412 ashish 3920
      }
3921
      return 0;
3922
    }
3923
 
3430 rajveer 3924
    public _Fields fieldForId(int fieldId) {
3925
      return _Fields.findByThriftId(fieldId);
3926
    }
3927
 
3928
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3929
      org.apache.thrift.protocol.TField field;
412 ashish 3930
      iprot.readStructBegin();
3931
      while (true)
3932
      {
3933
        field = iprot.readFieldBegin();
3430 rajveer 3934
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 3935
          break;
3936
        }
3430 rajveer 3937
        switch (field.id) {
3938
          case 0: // SUCCESS
3939
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3940
              this.success = new LogisticsInfo();
3941
              this.success.read(iprot);
3942
            } else { 
3943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3944
            }
3945
            break;
3946
          case 1: // SE
3947
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3948
              this.se = new LogisticsServiceException();
3949
              this.se.read(iprot);
3950
            } else { 
3951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3952
            }
3953
            break;
3954
          default:
3955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 3956
        }
3430 rajveer 3957
        iprot.readFieldEnd();
412 ashish 3958
      }
3959
      iprot.readStructEnd();
3960
      validate();
3961
    }
3962
 
3430 rajveer 3963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 3964
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 3965
 
648 chandransh 3966
      if (this.isSetSuccess()) {
3967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3968
        this.success.write(oprot);
412 ashish 3969
        oprot.writeFieldEnd();
648 chandransh 3970
      } else if (this.isSetSe()) {
3971
        oprot.writeFieldBegin(SE_FIELD_DESC);
3972
        this.se.write(oprot);
3973
        oprot.writeFieldEnd();
412 ashish 3974
      }
3975
      oprot.writeFieldStop();
3976
      oprot.writeStructEnd();
3977
    }
3978
 
3979
    @Override
3980
    public String toString() {
648 chandransh 3981
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 3982
      boolean first = true;
3983
 
648 chandransh 3984
      sb.append("success:");
3985
      if (this.success == null) {
412 ashish 3986
        sb.append("null");
3987
      } else {
648 chandransh 3988
        sb.append(this.success);
412 ashish 3989
      }
3990
      first = false;
3991
      if (!first) sb.append(", ");
648 chandransh 3992
      sb.append("se:");
3993
      if (this.se == null) {
3994
        sb.append("null");
3995
      } else {
3996
        sb.append(this.se);
3997
      }
412 ashish 3998
      first = false;
3999
      sb.append(")");
4000
      return sb.toString();
4001
    }
4002
 
3430 rajveer 4003
    public void validate() throws org.apache.thrift.TException {
412 ashish 4004
      // check for required fields
4005
    }
4006
 
3430 rajveer 4007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4008
      try {
4009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4010
      } catch (org.apache.thrift.TException te) {
4011
        throw new java.io.IOException(te);
4012
      }
4013
    }
4014
 
4015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4016
      try {
4017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4018
      } catch (org.apache.thrift.TException te) {
4019
        throw new java.io.IOException(te);
4020
      }
4021
    }
4022
 
412 ashish 4023
  }
4024
 
3430 rajveer 4025
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
4026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 4027
 
3430 rajveer 4028
    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);
412 ashish 4029
 
3430 rajveer 4030
    private long providerId; // required
412 ashish 4031
 
4032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4034
      PROVIDER_ID((short)1, "providerId");
412 ashish 4035
 
4036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4037
 
4038
      static {
4039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4040
          byName.put(field.getFieldName(), field);
4041
        }
4042
      }
4043
 
4044
      /**
4045
       * Find the _Fields constant that matches fieldId, or null if its not found.
4046
       */
4047
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4048
        switch(fieldId) {
4049
          case 1: // PROVIDER_ID
4050
            return PROVIDER_ID;
4051
          default:
4052
            return null;
4053
        }
412 ashish 4054
      }
4055
 
4056
      /**
4057
       * Find the _Fields constant that matches fieldId, throwing an exception
4058
       * if it is not found.
4059
       */
4060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4061
        _Fields fields = findByThriftId(fieldId);
4062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4063
        return fields;
4064
      }
4065
 
4066
      /**
4067
       * Find the _Fields constant that matches name, or null if its not found.
4068
       */
4069
      public static _Fields findByName(String name) {
4070
        return byName.get(name);
4071
      }
4072
 
4073
      private final short _thriftId;
4074
      private final String _fieldName;
4075
 
4076
      _Fields(short thriftId, String fieldName) {
4077
        _thriftId = thriftId;
4078
        _fieldName = fieldName;
4079
      }
4080
 
4081
      public short getThriftFieldId() {
4082
        return _thriftId;
4083
      }
4084
 
4085
      public String getFieldName() {
4086
        return _fieldName;
4087
      }
4088
    }
4089
 
4090
    // isset id assignments
648 chandransh 4091
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 4092
    private BitSet __isset_bit_vector = new BitSet(1);
4093
 
3430 rajveer 4094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4095
    static {
3430 rajveer 4096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4097
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 4101
    }
4102
 
4103
    public getEmptyAWB_args() {
4104
    }
4105
 
4106
    public getEmptyAWB_args(
648 chandransh 4107
      long providerId)
412 ashish 4108
    {
4109
      this();
648 chandransh 4110
      this.providerId = providerId;
4111
      setProviderIdIsSet(true);
412 ashish 4112
    }
4113
 
4114
    /**
4115
     * Performs a deep copy on <i>other</i>.
4116
     */
4117
    public getEmptyAWB_args(getEmptyAWB_args other) {
4118
      __isset_bit_vector.clear();
4119
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4120
      this.providerId = other.providerId;
412 ashish 4121
    }
4122
 
4123
    public getEmptyAWB_args deepCopy() {
4124
      return new getEmptyAWB_args(this);
4125
    }
4126
 
3430 rajveer 4127
    @Override
4128
    public void clear() {
4129
      setProviderIdIsSet(false);
4130
      this.providerId = 0;
412 ashish 4131
    }
4132
 
648 chandransh 4133
    public long getProviderId() {
4134
      return this.providerId;
412 ashish 4135
    }
4136
 
3430 rajveer 4137
    public void setProviderId(long providerId) {
648 chandransh 4138
      this.providerId = providerId;
4139
      setProviderIdIsSet(true);
412 ashish 4140
    }
4141
 
648 chandransh 4142
    public void unsetProviderId() {
4143
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 4144
    }
4145
 
3430 rajveer 4146
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 4147
    public boolean isSetProviderId() {
4148
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 4149
    }
4150
 
648 chandransh 4151
    public void setProviderIdIsSet(boolean value) {
4152
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 4153
    }
4154
 
4155
    public void setFieldValue(_Fields field, Object value) {
4156
      switch (field) {
4157
      case PROVIDER_ID:
4158
        if (value == null) {
648 chandransh 4159
          unsetProviderId();
412 ashish 4160
        } else {
648 chandransh 4161
          setProviderId((Long)value);
412 ashish 4162
        }
4163
        break;
4164
 
4165
      }
4166
    }
4167
 
4168
    public Object getFieldValue(_Fields field) {
4169
      switch (field) {
4170
      case PROVIDER_ID:
3430 rajveer 4171
        return Long.valueOf(getProviderId());
412 ashish 4172
 
4173
      }
4174
      throw new IllegalStateException();
4175
    }
4176
 
3430 rajveer 4177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4178
    public boolean isSet(_Fields field) {
4179
      if (field == null) {
4180
        throw new IllegalArgumentException();
4181
      }
412 ashish 4182
 
4183
      switch (field) {
4184
      case PROVIDER_ID:
648 chandransh 4185
        return isSetProviderId();
412 ashish 4186
      }
4187
      throw new IllegalStateException();
4188
    }
4189
 
4190
    @Override
4191
    public boolean equals(Object that) {
4192
      if (that == null)
4193
        return false;
4194
      if (that instanceof getEmptyAWB_args)
4195
        return this.equals((getEmptyAWB_args)that);
4196
      return false;
4197
    }
4198
 
4199
    public boolean equals(getEmptyAWB_args that) {
4200
      if (that == null)
4201
        return false;
4202
 
648 chandransh 4203
      boolean this_present_providerId = true;
4204
      boolean that_present_providerId = true;
4205
      if (this_present_providerId || that_present_providerId) {
4206
        if (!(this_present_providerId && that_present_providerId))
412 ashish 4207
          return false;
648 chandransh 4208
        if (this.providerId != that.providerId)
412 ashish 4209
          return false;
4210
      }
4211
 
4212
      return true;
4213
    }
4214
 
4215
    @Override
4216
    public int hashCode() {
4217
      return 0;
4218
    }
4219
 
4220
    public int compareTo(getEmptyAWB_args other) {
4221
      if (!getClass().equals(other.getClass())) {
4222
        return getClass().getName().compareTo(other.getClass().getName());
4223
      }
4224
 
4225
      int lastComparison = 0;
4226
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
4227
 
3430 rajveer 4228
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 4229
      if (lastComparison != 0) {
4230
        return lastComparison;
4231
      }
3430 rajveer 4232
      if (isSetProviderId()) {
4233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4234
        if (lastComparison != 0) {
4235
          return lastComparison;
4236
        }
412 ashish 4237
      }
4238
      return 0;
4239
    }
4240
 
3430 rajveer 4241
    public _Fields fieldForId(int fieldId) {
4242
      return _Fields.findByThriftId(fieldId);
4243
    }
4244
 
4245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4246
      org.apache.thrift.protocol.TField field;
412 ashish 4247
      iprot.readStructBegin();
4248
      while (true)
4249
      {
4250
        field = iprot.readFieldBegin();
3430 rajveer 4251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4252
          break;
4253
        }
3430 rajveer 4254
        switch (field.id) {
4255
          case 1: // PROVIDER_ID
4256
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4257
              this.providerId = iprot.readI64();
4258
              setProviderIdIsSet(true);
4259
            } else { 
4260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4261
            }
4262
            break;
4263
          default:
4264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4265
        }
3430 rajveer 4266
        iprot.readFieldEnd();
412 ashish 4267
      }
4268
      iprot.readStructEnd();
4269
      validate();
4270
    }
4271
 
3430 rajveer 4272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 4273
      validate();
4274
 
4275
      oprot.writeStructBegin(STRUCT_DESC);
4276
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 4277
      oprot.writeI64(this.providerId);
412 ashish 4278
      oprot.writeFieldEnd();
4279
      oprot.writeFieldStop();
4280
      oprot.writeStructEnd();
4281
    }
4282
 
4283
    @Override
4284
    public String toString() {
4285
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
4286
      boolean first = true;
4287
 
648 chandransh 4288
      sb.append("providerId:");
4289
      sb.append(this.providerId);
412 ashish 4290
      first = false;
4291
      sb.append(")");
4292
      return sb.toString();
4293
    }
4294
 
3430 rajveer 4295
    public void validate() throws org.apache.thrift.TException {
412 ashish 4296
      // check for required fields
4297
    }
4298
 
3430 rajveer 4299
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4300
      try {
4301
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4302
      } catch (org.apache.thrift.TException te) {
4303
        throw new java.io.IOException(te);
4304
      }
4305
    }
4306
 
4307
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4308
      try {
4309
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4310
        __isset_bit_vector = new BitSet(1);
4311
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4312
      } catch (org.apache.thrift.TException te) {
4313
        throw new java.io.IOException(te);
4314
      }
4315
    }
4316
 
412 ashish 4317
  }
4318
 
3430 rajveer 4319
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
4320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 4321
 
3430 rajveer 4322
    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);
4323
    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 4324
 
3430 rajveer 4325
    private String success; // required
4326
    private LogisticsServiceException se; // required
412 ashish 4327
 
4328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4330
      SUCCESS((short)0, "success"),
4331
      SE((short)1, "se");
412 ashish 4332
 
4333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4334
 
4335
      static {
4336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4337
          byName.put(field.getFieldName(), field);
4338
        }
4339
      }
4340
 
4341
      /**
4342
       * Find the _Fields constant that matches fieldId, or null if its not found.
4343
       */
4344
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4345
        switch(fieldId) {
4346
          case 0: // SUCCESS
4347
            return SUCCESS;
4348
          case 1: // SE
4349
            return SE;
4350
          default:
4351
            return null;
4352
        }
412 ashish 4353
      }
4354
 
4355
      /**
4356
       * Find the _Fields constant that matches fieldId, throwing an exception
4357
       * if it is not found.
4358
       */
4359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4360
        _Fields fields = findByThriftId(fieldId);
4361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4362
        return fields;
4363
      }
4364
 
4365
      /**
4366
       * Find the _Fields constant that matches name, or null if its not found.
4367
       */
4368
      public static _Fields findByName(String name) {
4369
        return byName.get(name);
4370
      }
4371
 
4372
      private final short _thriftId;
4373
      private final String _fieldName;
4374
 
4375
      _Fields(short thriftId, String fieldName) {
4376
        _thriftId = thriftId;
4377
        _fieldName = fieldName;
4378
      }
4379
 
4380
      public short getThriftFieldId() {
4381
        return _thriftId;
4382
      }
4383
 
4384
      public String getFieldName() {
4385
        return _fieldName;
4386
      }
4387
    }
4388
 
4389
    // isset id assignments
4390
 
3430 rajveer 4391
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4392
    static {
3430 rajveer 4393
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4394
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4396
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 4400
    }
4401
 
4402
    public getEmptyAWB_result() {
4403
    }
4404
 
4405
    public getEmptyAWB_result(
648 chandransh 4406
      String success,
4407
      LogisticsServiceException se)
412 ashish 4408
    {
4409
      this();
4410
      this.success = success;
648 chandransh 4411
      this.se = se;
412 ashish 4412
    }
4413
 
4414
    /**
4415
     * Performs a deep copy on <i>other</i>.
4416
     */
4417
    public getEmptyAWB_result(getEmptyAWB_result other) {
4418
      if (other.isSetSuccess()) {
4419
        this.success = other.success;
4420
      }
648 chandransh 4421
      if (other.isSetSe()) {
4422
        this.se = new LogisticsServiceException(other.se);
4423
      }
412 ashish 4424
    }
4425
 
4426
    public getEmptyAWB_result deepCopy() {
4427
      return new getEmptyAWB_result(this);
4428
    }
4429
 
3430 rajveer 4430
    @Override
4431
    public void clear() {
4432
      this.success = null;
4433
      this.se = null;
412 ashish 4434
    }
4435
 
4436
    public String getSuccess() {
4437
      return this.success;
4438
    }
4439
 
3430 rajveer 4440
    public void setSuccess(String success) {
412 ashish 4441
      this.success = success;
4442
    }
4443
 
4444
    public void unsetSuccess() {
4445
      this.success = null;
4446
    }
4447
 
3430 rajveer 4448
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 4449
    public boolean isSetSuccess() {
4450
      return this.success != null;
4451
    }
4452
 
4453
    public void setSuccessIsSet(boolean value) {
4454
      if (!value) {
4455
        this.success = null;
4456
      }
4457
    }
4458
 
648 chandransh 4459
    public LogisticsServiceException getSe() {
4460
      return this.se;
412 ashish 4461
    }
4462
 
3430 rajveer 4463
    public void setSe(LogisticsServiceException se) {
648 chandransh 4464
      this.se = se;
412 ashish 4465
    }
4466
 
648 chandransh 4467
    public void unsetSe() {
4468
      this.se = null;
412 ashish 4469
    }
4470
 
3430 rajveer 4471
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 4472
    public boolean isSetSe() {
4473
      return this.se != null;
412 ashish 4474
    }
4475
 
648 chandransh 4476
    public void setSeIsSet(boolean value) {
412 ashish 4477
      if (!value) {
648 chandransh 4478
        this.se = null;
412 ashish 4479
      }
4480
    }
4481
 
4482
    public void setFieldValue(_Fields field, Object value) {
4483
      switch (field) {
4484
      case SUCCESS:
4485
        if (value == null) {
4486
          unsetSuccess();
4487
        } else {
648 chandransh 4488
          setSuccess((String)value);
412 ashish 4489
        }
4490
        break;
4491
 
648 chandransh 4492
      case SE:
4493
        if (value == null) {
4494
          unsetSe();
4495
        } else {
4496
          setSe((LogisticsServiceException)value);
4497
        }
4498
        break;
4499
 
412 ashish 4500
      }
4501
    }
4502
 
4503
    public Object getFieldValue(_Fields field) {
4504
      switch (field) {
4505
      case SUCCESS:
4506
        return getSuccess();
4507
 
648 chandransh 4508
      case SE:
4509
        return getSe();
4510
 
412 ashish 4511
      }
4512
      throw new IllegalStateException();
4513
    }
4514
 
3430 rajveer 4515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4516
    public boolean isSet(_Fields field) {
4517
      if (field == null) {
4518
        throw new IllegalArgumentException();
4519
      }
412 ashish 4520
 
4521
      switch (field) {
4522
      case SUCCESS:
4523
        return isSetSuccess();
648 chandransh 4524
      case SE:
4525
        return isSetSe();
412 ashish 4526
      }
4527
      throw new IllegalStateException();
4528
    }
4529
 
4530
    @Override
4531
    public boolean equals(Object that) {
4532
      if (that == null)
4533
        return false;
648 chandransh 4534
      if (that instanceof getEmptyAWB_result)
4535
        return this.equals((getEmptyAWB_result)that);
412 ashish 4536
      return false;
4537
    }
4538
 
648 chandransh 4539
    public boolean equals(getEmptyAWB_result that) {
412 ashish 4540
      if (that == null)
4541
        return false;
4542
 
4543
      boolean this_present_success = true && this.isSetSuccess();
4544
      boolean that_present_success = true && that.isSetSuccess();
4545
      if (this_present_success || that_present_success) {
4546
        if (!(this_present_success && that_present_success))
4547
          return false;
4548
        if (!this.success.equals(that.success))
4549
          return false;
4550
      }
4551
 
648 chandransh 4552
      boolean this_present_se = true && this.isSetSe();
4553
      boolean that_present_se = true && that.isSetSe();
4554
      if (this_present_se || that_present_se) {
4555
        if (!(this_present_se && that_present_se))
4556
          return false;
4557
        if (!this.se.equals(that.se))
4558
          return false;
4559
      }
4560
 
412 ashish 4561
      return true;
4562
    }
4563
 
4564
    @Override
4565
    public int hashCode() {
4566
      return 0;
4567
    }
4568
 
648 chandransh 4569
    public int compareTo(getEmptyAWB_result other) {
412 ashish 4570
      if (!getClass().equals(other.getClass())) {
4571
        return getClass().getName().compareTo(other.getClass().getName());
4572
      }
4573
 
4574
      int lastComparison = 0;
648 chandransh 4575
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 4576
 
3430 rajveer 4577
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 4578
      if (lastComparison != 0) {
4579
        return lastComparison;
4580
      }
3430 rajveer 4581
      if (isSetSuccess()) {
4582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4583
        if (lastComparison != 0) {
4584
          return lastComparison;
4585
        }
412 ashish 4586
      }
3430 rajveer 4587
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 4588
      if (lastComparison != 0) {
4589
        return lastComparison;
4590
      }
3430 rajveer 4591
      if (isSetSe()) {
4592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4593
        if (lastComparison != 0) {
4594
          return lastComparison;
4595
        }
412 ashish 4596
      }
4597
      return 0;
4598
    }
4599
 
3430 rajveer 4600
    public _Fields fieldForId(int fieldId) {
4601
      return _Fields.findByThriftId(fieldId);
4602
    }
4603
 
4604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4605
      org.apache.thrift.protocol.TField field;
412 ashish 4606
      iprot.readStructBegin();
4607
      while (true)
4608
      {
4609
        field = iprot.readFieldBegin();
3430 rajveer 4610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4611
          break;
4612
        }
3430 rajveer 4613
        switch (field.id) {
4614
          case 0: // SUCCESS
4615
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4616
              this.success = iprot.readString();
4617
            } else { 
4618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4619
            }
4620
            break;
4621
          case 1: // SE
4622
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4623
              this.se = new LogisticsServiceException();
4624
              this.se.read(iprot);
4625
            } else { 
4626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4627
            }
4628
            break;
4629
          default:
4630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4631
        }
3430 rajveer 4632
        iprot.readFieldEnd();
412 ashish 4633
      }
4634
      iprot.readStructEnd();
4635
      validate();
4636
    }
4637
 
3430 rajveer 4638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 4639
      oprot.writeStructBegin(STRUCT_DESC);
4640
 
4641
      if (this.isSetSuccess()) {
4642
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 4643
        oprot.writeString(this.success);
412 ashish 4644
        oprot.writeFieldEnd();
648 chandransh 4645
      } else if (this.isSetSe()) {
4646
        oprot.writeFieldBegin(SE_FIELD_DESC);
4647
        this.se.write(oprot);
4648
        oprot.writeFieldEnd();
412 ashish 4649
      }
4650
      oprot.writeFieldStop();
4651
      oprot.writeStructEnd();
4652
    }
4653
 
4654
    @Override
4655
    public String toString() {
648 chandransh 4656
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 4657
      boolean first = true;
4658
 
4659
      sb.append("success:");
4660
      if (this.success == null) {
4661
        sb.append("null");
4662
      } else {
4663
        sb.append(this.success);
4664
      }
4665
      first = false;
648 chandransh 4666
      if (!first) sb.append(", ");
4667
      sb.append("se:");
4668
      if (this.se == null) {
442 rajveer 4669
        sb.append("null");
4670
      } else {
648 chandransh 4671
        sb.append(this.se);
442 rajveer 4672
      }
4673
      first = false;
4674
      sb.append(")");
4675
      return sb.toString();
4676
    }
4677
 
3430 rajveer 4678
    public void validate() throws org.apache.thrift.TException {
442 rajveer 4679
      // check for required fields
4680
    }
4681
 
3430 rajveer 4682
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4683
      try {
4684
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4685
      } catch (org.apache.thrift.TException te) {
4686
        throw new java.io.IOException(te);
4687
      }
4688
    }
4689
 
4690
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4691
      try {
4692
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4693
      } catch (org.apache.thrift.TException te) {
4694
        throw new java.io.IOException(te);
4695
      }
4696
    }
4697
 
442 rajveer 4698
  }
4699
 
3430 rajveer 4700
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
4701
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 4702
 
3430 rajveer 4703
    private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
4704
    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 4705
 
3430 rajveer 4706
    private String awb; // required
4707
    private long providerId; // required
442 rajveer 4708
 
4709
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4710
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
442 rajveer 4711
      AWB((short)1, "awb"),
648 chandransh 4712
      PROVIDER_ID((short)2, "providerId");
442 rajveer 4713
 
4714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4715
 
4716
      static {
4717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4718
          byName.put(field.getFieldName(), field);
4719
        }
4720
      }
4721
 
4722
      /**
4723
       * Find the _Fields constant that matches fieldId, or null if its not found.
4724
       */
4725
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4726
        switch(fieldId) {
4727
          case 1: // AWB
4728
            return AWB;
4729
          case 2: // PROVIDER_ID
4730
            return PROVIDER_ID;
4731
          default:
4732
            return null;
4733
        }
442 rajveer 4734
      }
4735
 
4736
      /**
4737
       * Find the _Fields constant that matches fieldId, throwing an exception
4738
       * if it is not found.
4739
       */
4740
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4741
        _Fields fields = findByThriftId(fieldId);
4742
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4743
        return fields;
4744
      }
4745
 
4746
      /**
4747
       * Find the _Fields constant that matches name, or null if its not found.
4748
       */
4749
      public static _Fields findByName(String name) {
4750
        return byName.get(name);
4751
      }
4752
 
4753
      private final short _thriftId;
4754
      private final String _fieldName;
4755
 
4756
      _Fields(short thriftId, String fieldName) {
4757
        _thriftId = thriftId;
4758
        _fieldName = fieldName;
4759
      }
4760
 
4761
      public short getThriftFieldId() {
4762
        return _thriftId;
4763
      }
4764
 
4765
      public String getFieldName() {
4766
        return _fieldName;
4767
      }
4768
    }
4769
 
4770
    // isset id assignments
648 chandransh 4771
    private static final int __PROVIDERID_ISSET_ID = 0;
4772
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 4773
 
3430 rajveer 4774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 4775
    static {
3430 rajveer 4776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4777
      tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4778
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4779
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 4783
    }
4784
 
648 chandransh 4785
    public getShipmentInfo_args() {
442 rajveer 4786
    }
4787
 
648 chandransh 4788
    public getShipmentInfo_args(
442 rajveer 4789
      String awb,
648 chandransh 4790
      long providerId)
442 rajveer 4791
    {
4792
      this();
4793
      this.awb = awb;
648 chandransh 4794
      this.providerId = providerId;
4795
      setProviderIdIsSet(true);
442 rajveer 4796
    }
4797
 
4798
    /**
4799
     * Performs a deep copy on <i>other</i>.
4800
     */
648 chandransh 4801
    public getShipmentInfo_args(getShipmentInfo_args other) {
4802
      __isset_bit_vector.clear();
4803
      __isset_bit_vector.or(other.__isset_bit_vector);
442 rajveer 4804
      if (other.isSetAwb()) {
4805
        this.awb = other.awb;
4806
      }
648 chandransh 4807
      this.providerId = other.providerId;
442 rajveer 4808
    }
4809
 
648 chandransh 4810
    public getShipmentInfo_args deepCopy() {
4811
      return new getShipmentInfo_args(this);
442 rajveer 4812
    }
4813
 
3430 rajveer 4814
    @Override
4815
    public void clear() {
4816
      this.awb = null;
4817
      setProviderIdIsSet(false);
4818
      this.providerId = 0;
442 rajveer 4819
    }
4820
 
4821
    public String getAwb() {
4822
      return this.awb;
4823
    }
4824
 
3430 rajveer 4825
    public void setAwb(String awb) {
442 rajveer 4826
      this.awb = awb;
4827
    }
4828
 
4829
    public void unsetAwb() {
4830
      this.awb = null;
4831
    }
4832
 
3430 rajveer 4833
    /** Returns true if field awb is set (has been assigned a value) and false otherwise */
442 rajveer 4834
    public boolean isSetAwb() {
4835
      return this.awb != null;
4836
    }
4837
 
4838
    public void setAwbIsSet(boolean value) {
4839
      if (!value) {
4840
        this.awb = null;
4841
      }
4842
    }
4843
 
648 chandransh 4844
    public long getProviderId() {
4845
      return this.providerId;
442 rajveer 4846
    }
4847
 
3430 rajveer 4848
    public void setProviderId(long providerId) {
648 chandransh 4849
      this.providerId = providerId;
4850
      setProviderIdIsSet(true);
442 rajveer 4851
    }
4852
 
648 chandransh 4853
    public void unsetProviderId() {
4854
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 4855
    }
4856
 
3430 rajveer 4857
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 4858
    public boolean isSetProviderId() {
4859
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 4860
    }
4861
 
648 chandransh 4862
    public void setProviderIdIsSet(boolean value) {
4863
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 4864
    }
4865
 
4866
    public void setFieldValue(_Fields field, Object value) {
4867
      switch (field) {
4868
      case AWB:
4869
        if (value == null) {
4870
          unsetAwb();
4871
        } else {
4872
          setAwb((String)value);
4873
        }
4874
        break;
4875
 
648 chandransh 4876
      case PROVIDER_ID:
442 rajveer 4877
        if (value == null) {
648 chandransh 4878
          unsetProviderId();
442 rajveer 4879
        } else {
648 chandransh 4880
          setProviderId((Long)value);
442 rajveer 4881
        }
4882
        break;
4883
 
4884
      }
4885
    }
4886
 
4887
    public Object getFieldValue(_Fields field) {
4888
      switch (field) {
4889
      case AWB:
4890
        return getAwb();
4891
 
648 chandransh 4892
      case PROVIDER_ID:
3430 rajveer 4893
        return Long.valueOf(getProviderId());
442 rajveer 4894
 
4895
      }
4896
      throw new IllegalStateException();
4897
    }
4898
 
3430 rajveer 4899
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4900
    public boolean isSet(_Fields field) {
4901
      if (field == null) {
4902
        throw new IllegalArgumentException();
4903
      }
442 rajveer 4904
 
4905
      switch (field) {
4906
      case AWB:
4907
        return isSetAwb();
648 chandransh 4908
      case PROVIDER_ID:
4909
        return isSetProviderId();
442 rajveer 4910
      }
4911
      throw new IllegalStateException();
4912
    }
4913
 
4914
    @Override
4915
    public boolean equals(Object that) {
4916
      if (that == null)
4917
        return false;
648 chandransh 4918
      if (that instanceof getShipmentInfo_args)
4919
        return this.equals((getShipmentInfo_args)that);
442 rajveer 4920
      return false;
4921
    }
4922
 
648 chandransh 4923
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 4924
      if (that == null)
4925
        return false;
4926
 
4927
      boolean this_present_awb = true && this.isSetAwb();
4928
      boolean that_present_awb = true && that.isSetAwb();
4929
      if (this_present_awb || that_present_awb) {
4930
        if (!(this_present_awb && that_present_awb))
4931
          return false;
4932
        if (!this.awb.equals(that.awb))
4933
          return false;
4934
      }
4935
 
648 chandransh 4936
      boolean this_present_providerId = true;
4937
      boolean that_present_providerId = true;
4938
      if (this_present_providerId || that_present_providerId) {
4939
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 4940
          return false;
648 chandransh 4941
        if (this.providerId != that.providerId)
442 rajveer 4942
          return false;
4943
      }
4944
 
4945
      return true;
4946
    }
4947
 
4948
    @Override
4949
    public int hashCode() {
4950
      return 0;
4951
    }
4952
 
648 chandransh 4953
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 4954
      if (!getClass().equals(other.getClass())) {
4955
        return getClass().getName().compareTo(other.getClass().getName());
4956
      }
4957
 
4958
      int lastComparison = 0;
648 chandransh 4959
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 4960
 
3430 rajveer 4961
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
442 rajveer 4962
      if (lastComparison != 0) {
4963
        return lastComparison;
4964
      }
3430 rajveer 4965
      if (isSetAwb()) {
4966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
4967
        if (lastComparison != 0) {
4968
          return lastComparison;
4969
        }
442 rajveer 4970
      }
3430 rajveer 4971
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 4972
      if (lastComparison != 0) {
4973
        return lastComparison;
4974
      }
3430 rajveer 4975
      if (isSetProviderId()) {
4976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4977
        if (lastComparison != 0) {
4978
          return lastComparison;
4979
        }
442 rajveer 4980
      }
4981
      return 0;
4982
    }
4983
 
3430 rajveer 4984
    public _Fields fieldForId(int fieldId) {
4985
      return _Fields.findByThriftId(fieldId);
4986
    }
4987
 
4988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4989
      org.apache.thrift.protocol.TField field;
442 rajveer 4990
      iprot.readStructBegin();
4991
      while (true)
4992
      {
4993
        field = iprot.readFieldBegin();
3430 rajveer 4994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 4995
          break;
4996
        }
3430 rajveer 4997
        switch (field.id) {
4998
          case 1: // AWB
4999
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5000
              this.awb = iprot.readString();
5001
            } else { 
5002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5003
            }
5004
            break;
5005
          case 2: // PROVIDER_ID
5006
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5007
              this.providerId = iprot.readI64();
5008
              setProviderIdIsSet(true);
5009
            } else { 
5010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5011
            }
5012
            break;
5013
          default:
5014
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 5015
        }
3430 rajveer 5016
        iprot.readFieldEnd();
442 rajveer 5017
      }
5018
      iprot.readStructEnd();
5019
      validate();
5020
    }
5021
 
3430 rajveer 5022
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 5023
      validate();
5024
 
5025
      oprot.writeStructBegin(STRUCT_DESC);
5026
      if (this.awb != null) {
5027
        oprot.writeFieldBegin(AWB_FIELD_DESC);
5028
        oprot.writeString(this.awb);
5029
        oprot.writeFieldEnd();
5030
      }
648 chandransh 5031
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5032
      oprot.writeI64(this.providerId);
5033
      oprot.writeFieldEnd();
442 rajveer 5034
      oprot.writeFieldStop();
5035
      oprot.writeStructEnd();
5036
    }
5037
 
5038
    @Override
5039
    public String toString() {
648 chandransh 5040
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 5041
      boolean first = true;
5042
 
5043
      sb.append("awb:");
5044
      if (this.awb == null) {
5045
        sb.append("null");
5046
      } else {
5047
        sb.append(this.awb);
5048
      }
5049
      first = false;
5050
      if (!first) sb.append(", ");
648 chandransh 5051
      sb.append("providerId:");
5052
      sb.append(this.providerId);
442 rajveer 5053
      first = false;
5054
      sb.append(")");
5055
      return sb.toString();
5056
    }
5057
 
3430 rajveer 5058
    public void validate() throws org.apache.thrift.TException {
442 rajveer 5059
      // check for required fields
5060
    }
5061
 
3430 rajveer 5062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5063
      try {
5064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5065
      } catch (org.apache.thrift.TException te) {
5066
        throw new java.io.IOException(te);
5067
      }
5068
    }
5069
 
5070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5071
      try {
5072
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5073
      } catch (org.apache.thrift.TException te) {
5074
        throw new java.io.IOException(te);
5075
      }
5076
    }
5077
 
442 rajveer 5078
  }
5079
 
3430 rajveer 5080
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
5081
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 5082
 
3430 rajveer 5083
    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);
5084
    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 5085
 
3430 rajveer 5086
    private List<AwbUpdate> success; // required
5087
    private LogisticsServiceException se; // required
412 ashish 5088
 
5089
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5090
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5091
      SUCCESS((short)0, "success"),
5092
      SE((short)1, "se");
412 ashish 5093
 
5094
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5095
 
5096
      static {
5097
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5098
          byName.put(field.getFieldName(), field);
5099
        }
5100
      }
5101
 
5102
      /**
5103
       * Find the _Fields constant that matches fieldId, or null if its not found.
5104
       */
5105
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5106
        switch(fieldId) {
5107
          case 0: // SUCCESS
5108
            return SUCCESS;
5109
          case 1: // SE
5110
            return SE;
5111
          default:
5112
            return null;
5113
        }
412 ashish 5114
      }
5115
 
5116
      /**
5117
       * Find the _Fields constant that matches fieldId, throwing an exception
5118
       * if it is not found.
5119
       */
5120
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5121
        _Fields fields = findByThriftId(fieldId);
5122
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5123
        return fields;
5124
      }
5125
 
5126
      /**
5127
       * Find the _Fields constant that matches name, or null if its not found.
5128
       */
5129
      public static _Fields findByName(String name) {
5130
        return byName.get(name);
5131
      }
5132
 
5133
      private final short _thriftId;
5134
      private final String _fieldName;
5135
 
5136
      _Fields(short thriftId, String fieldName) {
5137
        _thriftId = thriftId;
5138
        _fieldName = fieldName;
5139
      }
5140
 
5141
      public short getThriftFieldId() {
5142
        return _thriftId;
5143
      }
5144
 
5145
      public String getFieldName() {
5146
        return _fieldName;
5147
      }
5148
    }
5149
 
5150
    // isset id assignments
5151
 
3430 rajveer 5152
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5153
    static {
3430 rajveer 5154
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5155
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5156
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5157
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
5158
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 5162
    }
5163
 
5164
    public getShipmentInfo_result() {
5165
    }
5166
 
5167
    public getShipmentInfo_result(
648 chandransh 5168
      List<AwbUpdate> success,
5169
      LogisticsServiceException se)
412 ashish 5170
    {
5171
      this();
5172
      this.success = success;
648 chandransh 5173
      this.se = se;
412 ashish 5174
    }
5175
 
5176
    /**
5177
     * Performs a deep copy on <i>other</i>.
5178
     */
5179
    public getShipmentInfo_result(getShipmentInfo_result other) {
5180
      if (other.isSetSuccess()) {
648 chandransh 5181
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
5182
        for (AwbUpdate other_element : other.success) {
5183
          __this__success.add(new AwbUpdate(other_element));
5184
        }
5185
        this.success = __this__success;
412 ashish 5186
      }
648 chandransh 5187
      if (other.isSetSe()) {
5188
        this.se = new LogisticsServiceException(other.se);
5189
      }
412 ashish 5190
    }
5191
 
5192
    public getShipmentInfo_result deepCopy() {
5193
      return new getShipmentInfo_result(this);
5194
    }
5195
 
3430 rajveer 5196
    @Override
5197
    public void clear() {
5198
      this.success = null;
5199
      this.se = null;
412 ashish 5200
    }
5201
 
5202
    public int getSuccessSize() {
5203
      return (this.success == null) ? 0 : this.success.size();
5204
    }
5205
 
648 chandransh 5206
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 5207
      return (this.success == null) ? null : this.success.iterator();
5208
    }
5209
 
648 chandransh 5210
    public void addToSuccess(AwbUpdate elem) {
412 ashish 5211
      if (this.success == null) {
648 chandransh 5212
        this.success = new ArrayList<AwbUpdate>();
412 ashish 5213
      }
5214
      this.success.add(elem);
5215
    }
5216
 
648 chandransh 5217
    public List<AwbUpdate> getSuccess() {
412 ashish 5218
      return this.success;
5219
    }
5220
 
3430 rajveer 5221
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 5222
      this.success = success;
5223
    }
5224
 
5225
    public void unsetSuccess() {
5226
      this.success = null;
5227
    }
5228
 
3430 rajveer 5229
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 5230
    public boolean isSetSuccess() {
5231
      return this.success != null;
5232
    }
5233
 
5234
    public void setSuccessIsSet(boolean value) {
5235
      if (!value) {
5236
        this.success = null;
5237
      }
5238
    }
5239
 
648 chandransh 5240
    public LogisticsServiceException getSe() {
5241
      return this.se;
412 ashish 5242
    }
5243
 
3430 rajveer 5244
    public void setSe(LogisticsServiceException se) {
648 chandransh 5245
      this.se = se;
412 ashish 5246
    }
5247
 
648 chandransh 5248
    public void unsetSe() {
5249
      this.se = null;
412 ashish 5250
    }
5251
 
3430 rajveer 5252
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5253
    public boolean isSetSe() {
5254
      return this.se != null;
412 ashish 5255
    }
5256
 
648 chandransh 5257
    public void setSeIsSet(boolean value) {
5258
      if (!value) {
5259
        this.se = null;
412 ashish 5260
      }
5261
    }
5262
 
5263
    public void setFieldValue(_Fields field, Object value) {
5264
      switch (field) {
648 chandransh 5265
      case SUCCESS:
412 ashish 5266
        if (value == null) {
648 chandransh 5267
          unsetSuccess();
412 ashish 5268
        } else {
648 chandransh 5269
          setSuccess((List<AwbUpdate>)value);
412 ashish 5270
        }
5271
        break;
5272
 
648 chandransh 5273
      case SE:
412 ashish 5274
        if (value == null) {
648 chandransh 5275
          unsetSe();
412 ashish 5276
        } else {
648 chandransh 5277
          setSe((LogisticsServiceException)value);
412 ashish 5278
        }
5279
        break;
5280
 
5281
      }
5282
    }
5283
 
5284
    public Object getFieldValue(_Fields field) {
5285
      switch (field) {
648 chandransh 5286
      case SUCCESS:
5287
        return getSuccess();
412 ashish 5288
 
648 chandransh 5289
      case SE:
5290
        return getSe();
412 ashish 5291
 
5292
      }
5293
      throw new IllegalStateException();
5294
    }
5295
 
3430 rajveer 5296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5297
    public boolean isSet(_Fields field) {
5298
      if (field == null) {
5299
        throw new IllegalArgumentException();
5300
      }
412 ashish 5301
 
5302
      switch (field) {
648 chandransh 5303
      case SUCCESS:
5304
        return isSetSuccess();
5305
      case SE:
5306
        return isSetSe();
412 ashish 5307
      }
5308
      throw new IllegalStateException();
5309
    }
5310
 
5311
    @Override
5312
    public boolean equals(Object that) {
5313
      if (that == null)
5314
        return false;
648 chandransh 5315
      if (that instanceof getShipmentInfo_result)
5316
        return this.equals((getShipmentInfo_result)that);
412 ashish 5317
      return false;
5318
    }
5319
 
648 chandransh 5320
    public boolean equals(getShipmentInfo_result that) {
412 ashish 5321
      if (that == null)
5322
        return false;
5323
 
648 chandransh 5324
      boolean this_present_success = true && this.isSetSuccess();
5325
      boolean that_present_success = true && that.isSetSuccess();
5326
      if (this_present_success || that_present_success) {
5327
        if (!(this_present_success && that_present_success))
412 ashish 5328
          return false;
648 chandransh 5329
        if (!this.success.equals(that.success))
412 ashish 5330
          return false;
5331
      }
5332
 
648 chandransh 5333
      boolean this_present_se = true && this.isSetSe();
5334
      boolean that_present_se = true && that.isSetSe();
5335
      if (this_present_se || that_present_se) {
5336
        if (!(this_present_se && that_present_se))
412 ashish 5337
          return false;
648 chandransh 5338
        if (!this.se.equals(that.se))
412 ashish 5339
          return false;
5340
      }
5341
 
5342
      return true;
5343
    }
5344
 
5345
    @Override
5346
    public int hashCode() {
5347
      return 0;
5348
    }
5349
 
648 chandransh 5350
    public int compareTo(getShipmentInfo_result other) {
412 ashish 5351
      if (!getClass().equals(other.getClass())) {
5352
        return getClass().getName().compareTo(other.getClass().getName());
5353
      }
5354
 
5355
      int lastComparison = 0;
648 chandransh 5356
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 5357
 
3430 rajveer 5358
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5359
      if (lastComparison != 0) {
5360
        return lastComparison;
5361
      }
3430 rajveer 5362
      if (isSetSuccess()) {
5363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5364
        if (lastComparison != 0) {
5365
          return lastComparison;
5366
        }
412 ashish 5367
      }
3430 rajveer 5368
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5369
      if (lastComparison != 0) {
5370
        return lastComparison;
5371
      }
3430 rajveer 5372
      if (isSetSe()) {
5373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5374
        if (lastComparison != 0) {
5375
          return lastComparison;
5376
        }
412 ashish 5377
      }
5378
      return 0;
5379
    }
5380
 
3430 rajveer 5381
    public _Fields fieldForId(int fieldId) {
5382
      return _Fields.findByThriftId(fieldId);
5383
    }
5384
 
5385
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5386
      org.apache.thrift.protocol.TField field;
412 ashish 5387
      iprot.readStructBegin();
5388
      while (true)
5389
      {
5390
        field = iprot.readFieldBegin();
3430 rajveer 5391
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5392
          break;
5393
        }
3430 rajveer 5394
        switch (field.id) {
5395
          case 0: // SUCCESS
5396
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5397
              {
5398
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
5399
                this.success = new ArrayList<AwbUpdate>(_list9.size);
5400
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 5401
                {
3430 rajveer 5402
                  AwbUpdate _elem11; // required
5403
                  _elem11 = new AwbUpdate();
5404
                  _elem11.read(iprot);
5405
                  this.success.add(_elem11);
412 ashish 5406
                }
3430 rajveer 5407
                iprot.readListEnd();
412 ashish 5408
              }
3430 rajveer 5409
            } else { 
5410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5411
            }
5412
            break;
5413
          case 1: // SE
5414
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5415
              this.se = new LogisticsServiceException();
5416
              this.se.read(iprot);
5417
            } else { 
5418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5419
            }
5420
            break;
5421
          default:
5422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5423
        }
3430 rajveer 5424
        iprot.readFieldEnd();
412 ashish 5425
      }
5426
      iprot.readStructEnd();
5427
      validate();
5428
    }
5429
 
3430 rajveer 5430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 5431
      oprot.writeStructBegin(STRUCT_DESC);
5432
 
5433
      if (this.isSetSuccess()) {
5434
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5435
        {
3430 rajveer 5436
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 5437
          for (AwbUpdate _iter12 : this.success)
412 ashish 5438
          {
3044 chandransh 5439
            _iter12.write(oprot);
412 ashish 5440
          }
5441
          oprot.writeListEnd();
5442
        }
5443
        oprot.writeFieldEnd();
648 chandransh 5444
      } else if (this.isSetSe()) {
5445
        oprot.writeFieldBegin(SE_FIELD_DESC);
5446
        this.se.write(oprot);
5447
        oprot.writeFieldEnd();
412 ashish 5448
      }
5449
      oprot.writeFieldStop();
5450
      oprot.writeStructEnd();
5451
    }
5452
 
5453
    @Override
5454
    public String toString() {
648 chandransh 5455
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 5456
      boolean first = true;
5457
 
5458
      sb.append("success:");
5459
      if (this.success == null) {
5460
        sb.append("null");
5461
      } else {
5462
        sb.append(this.success);
5463
      }
5464
      first = false;
648 chandransh 5465
      if (!first) sb.append(", ");
5466
      sb.append("se:");
5467
      if (this.se == null) {
5468
        sb.append("null");
5469
      } else {
5470
        sb.append(this.se);
5471
      }
5472
      first = false;
412 ashish 5473
      sb.append(")");
5474
      return sb.toString();
5475
    }
5476
 
3430 rajveer 5477
    public void validate() throws org.apache.thrift.TException {
412 ashish 5478
      // check for required fields
5479
    }
5480
 
3430 rajveer 5481
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5482
      try {
5483
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5484
      } catch (org.apache.thrift.TException te) {
5485
        throw new java.io.IOException(te);
5486
      }
5487
    }
5488
 
5489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5490
      try {
5491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5492
      } catch (org.apache.thrift.TException te) {
5493
        throw new java.io.IOException(te);
5494
      }
5495
    }
5496
 
412 ashish 5497
  }
5498
 
3430 rajveer 5499
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
5500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 5501
 
3430 rajveer 5502
    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);
5503
    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 5504
 
3430 rajveer 5505
    private long providerId; // required
5506
    private String pinCode; // required
730 chandransh 5507
 
5508
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5509
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 5510
      PROVIDER_ID((short)1, "providerId"),
5511
      PIN_CODE((short)2, "pinCode");
5512
 
5513
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5514
 
5515
      static {
5516
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5517
          byName.put(field.getFieldName(), field);
5518
        }
5519
      }
5520
 
5521
      /**
5522
       * Find the _Fields constant that matches fieldId, or null if its not found.
5523
       */
5524
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5525
        switch(fieldId) {
5526
          case 1: // PROVIDER_ID
5527
            return PROVIDER_ID;
5528
          case 2: // PIN_CODE
5529
            return PIN_CODE;
5530
          default:
5531
            return null;
5532
        }
730 chandransh 5533
      }
5534
 
5535
      /**
5536
       * Find the _Fields constant that matches fieldId, throwing an exception
5537
       * if it is not found.
5538
       */
5539
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5540
        _Fields fields = findByThriftId(fieldId);
5541
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5542
        return fields;
5543
      }
5544
 
5545
      /**
5546
       * Find the _Fields constant that matches name, or null if its not found.
5547
       */
5548
      public static _Fields findByName(String name) {
5549
        return byName.get(name);
5550
      }
5551
 
5552
      private final short _thriftId;
5553
      private final String _fieldName;
5554
 
5555
      _Fields(short thriftId, String fieldName) {
5556
        _thriftId = thriftId;
5557
        _fieldName = fieldName;
5558
      }
5559
 
5560
      public short getThriftFieldId() {
5561
        return _thriftId;
5562
      }
5563
 
5564
      public String getFieldName() {
5565
        return _fieldName;
5566
      }
5567
    }
5568
 
5569
    // isset id assignments
5570
    private static final int __PROVIDERID_ISSET_ID = 0;
5571
    private BitSet __isset_bit_vector = new BitSet(1);
5572
 
3430 rajveer 5573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 5574
    static {
3430 rajveer 5575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5576
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5578
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5579
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5580
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5581
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 5582
    }
5583
 
5584
    public getDestinationCode_args() {
5585
    }
5586
 
5587
    public getDestinationCode_args(
5588
      long providerId,
5589
      String pinCode)
5590
    {
5591
      this();
5592
      this.providerId = providerId;
5593
      setProviderIdIsSet(true);
5594
      this.pinCode = pinCode;
5595
    }
5596
 
5597
    /**
5598
     * Performs a deep copy on <i>other</i>.
5599
     */
5600
    public getDestinationCode_args(getDestinationCode_args other) {
5601
      __isset_bit_vector.clear();
5602
      __isset_bit_vector.or(other.__isset_bit_vector);
5603
      this.providerId = other.providerId;
5604
      if (other.isSetPinCode()) {
5605
        this.pinCode = other.pinCode;
5606
      }
5607
    }
5608
 
5609
    public getDestinationCode_args deepCopy() {
5610
      return new getDestinationCode_args(this);
5611
    }
5612
 
3430 rajveer 5613
    @Override
5614
    public void clear() {
5615
      setProviderIdIsSet(false);
5616
      this.providerId = 0;
5617
      this.pinCode = null;
730 chandransh 5618
    }
5619
 
5620
    public long getProviderId() {
5621
      return this.providerId;
5622
    }
5623
 
3430 rajveer 5624
    public void setProviderId(long providerId) {
730 chandransh 5625
      this.providerId = providerId;
5626
      setProviderIdIsSet(true);
5627
    }
5628
 
5629
    public void unsetProviderId() {
5630
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
5631
    }
5632
 
3430 rajveer 5633
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 5634
    public boolean isSetProviderId() {
5635
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
5636
    }
5637
 
5638
    public void setProviderIdIsSet(boolean value) {
5639
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
5640
    }
5641
 
5642
    public String getPinCode() {
5643
      return this.pinCode;
5644
    }
5645
 
3430 rajveer 5646
    public void setPinCode(String pinCode) {
730 chandransh 5647
      this.pinCode = pinCode;
5648
    }
5649
 
5650
    public void unsetPinCode() {
5651
      this.pinCode = null;
5652
    }
5653
 
3430 rajveer 5654
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 5655
    public boolean isSetPinCode() {
5656
      return this.pinCode != null;
5657
    }
5658
 
5659
    public void setPinCodeIsSet(boolean value) {
5660
      if (!value) {
5661
        this.pinCode = null;
5662
      }
5663
    }
5664
 
5665
    public void setFieldValue(_Fields field, Object value) {
5666
      switch (field) {
5667
      case PROVIDER_ID:
5668
        if (value == null) {
5669
          unsetProviderId();
5670
        } else {
5671
          setProviderId((Long)value);
5672
        }
5673
        break;
5674
 
5675
      case PIN_CODE:
5676
        if (value == null) {
5677
          unsetPinCode();
5678
        } else {
5679
          setPinCode((String)value);
5680
        }
5681
        break;
5682
 
5683
      }
5684
    }
5685
 
5686
    public Object getFieldValue(_Fields field) {
5687
      switch (field) {
5688
      case PROVIDER_ID:
3430 rajveer 5689
        return Long.valueOf(getProviderId());
730 chandransh 5690
 
5691
      case PIN_CODE:
5692
        return getPinCode();
5693
 
5694
      }
5695
      throw new IllegalStateException();
5696
    }
5697
 
3430 rajveer 5698
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5699
    public boolean isSet(_Fields field) {
5700
      if (field == null) {
5701
        throw new IllegalArgumentException();
5702
      }
730 chandransh 5703
 
5704
      switch (field) {
5705
      case PROVIDER_ID:
5706
        return isSetProviderId();
5707
      case PIN_CODE:
5708
        return isSetPinCode();
5709
      }
5710
      throw new IllegalStateException();
5711
    }
5712
 
5713
    @Override
5714
    public boolean equals(Object that) {
5715
      if (that == null)
5716
        return false;
5717
      if (that instanceof getDestinationCode_args)
5718
        return this.equals((getDestinationCode_args)that);
5719
      return false;
5720
    }
5721
 
5722
    public boolean equals(getDestinationCode_args that) {
5723
      if (that == null)
5724
        return false;
5725
 
5726
      boolean this_present_providerId = true;
5727
      boolean that_present_providerId = true;
5728
      if (this_present_providerId || that_present_providerId) {
5729
        if (!(this_present_providerId && that_present_providerId))
5730
          return false;
5731
        if (this.providerId != that.providerId)
5732
          return false;
5733
      }
5734
 
5735
      boolean this_present_pinCode = true && this.isSetPinCode();
5736
      boolean that_present_pinCode = true && that.isSetPinCode();
5737
      if (this_present_pinCode || that_present_pinCode) {
5738
        if (!(this_present_pinCode && that_present_pinCode))
5739
          return false;
5740
        if (!this.pinCode.equals(that.pinCode))
5741
          return false;
5742
      }
5743
 
5744
      return true;
5745
    }
5746
 
5747
    @Override
5748
    public int hashCode() {
5749
      return 0;
5750
    }
5751
 
5752
    public int compareTo(getDestinationCode_args other) {
5753
      if (!getClass().equals(other.getClass())) {
5754
        return getClass().getName().compareTo(other.getClass().getName());
5755
      }
5756
 
5757
      int lastComparison = 0;
5758
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
5759
 
3430 rajveer 5760
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 5761
      if (lastComparison != 0) {
5762
        return lastComparison;
5763
      }
3430 rajveer 5764
      if (isSetProviderId()) {
5765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5766
        if (lastComparison != 0) {
5767
          return lastComparison;
5768
        }
730 chandransh 5769
      }
3430 rajveer 5770
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 5771
      if (lastComparison != 0) {
5772
        return lastComparison;
5773
      }
3430 rajveer 5774
      if (isSetPinCode()) {
5775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
5776
        if (lastComparison != 0) {
5777
          return lastComparison;
5778
        }
730 chandransh 5779
      }
5780
      return 0;
5781
    }
5782
 
3430 rajveer 5783
    public _Fields fieldForId(int fieldId) {
5784
      return _Fields.findByThriftId(fieldId);
5785
    }
5786
 
5787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5788
      org.apache.thrift.protocol.TField field;
730 chandransh 5789
      iprot.readStructBegin();
5790
      while (true)
5791
      {
5792
        field = iprot.readFieldBegin();
3430 rajveer 5793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 5794
          break;
5795
        }
3430 rajveer 5796
        switch (field.id) {
5797
          case 1: // PROVIDER_ID
5798
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5799
              this.providerId = iprot.readI64();
5800
              setProviderIdIsSet(true);
5801
            } else { 
5802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5803
            }
5804
            break;
5805
          case 2: // PIN_CODE
5806
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5807
              this.pinCode = iprot.readString();
5808
            } else { 
5809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5810
            }
5811
            break;
5812
          default:
5813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 5814
        }
3430 rajveer 5815
        iprot.readFieldEnd();
730 chandransh 5816
      }
5817
      iprot.readStructEnd();
5818
      validate();
5819
    }
5820
 
3430 rajveer 5821
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 5822
      validate();
5823
 
5824
      oprot.writeStructBegin(STRUCT_DESC);
5825
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5826
      oprot.writeI64(this.providerId);
5827
      oprot.writeFieldEnd();
5828
      if (this.pinCode != null) {
5829
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
5830
        oprot.writeString(this.pinCode);
5831
        oprot.writeFieldEnd();
5832
      }
5833
      oprot.writeFieldStop();
5834
      oprot.writeStructEnd();
5835
    }
5836
 
5837
    @Override
5838
    public String toString() {
5839
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
5840
      boolean first = true;
5841
 
5842
      sb.append("providerId:");
5843
      sb.append(this.providerId);
5844
      first = false;
5845
      if (!first) sb.append(", ");
5846
      sb.append("pinCode:");
5847
      if (this.pinCode == null) {
5848
        sb.append("null");
5849
      } else {
5850
        sb.append(this.pinCode);
5851
      }
5852
      first = false;
5853
      sb.append(")");
5854
      return sb.toString();
5855
    }
5856
 
3430 rajveer 5857
    public void validate() throws org.apache.thrift.TException {
730 chandransh 5858
      // check for required fields
5859
    }
5860
 
3430 rajveer 5861
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5862
      try {
5863
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5864
      } catch (org.apache.thrift.TException te) {
5865
        throw new java.io.IOException(te);
5866
      }
5867
    }
5868
 
5869
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5870
      try {
5871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5872
      } catch (org.apache.thrift.TException te) {
5873
        throw new java.io.IOException(te);
5874
      }
5875
    }
5876
 
730 chandransh 5877
  }
5878
 
3430 rajveer 5879
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
5880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 5881
 
3430 rajveer 5882
    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);
5883
    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 5884
 
3430 rajveer 5885
    private String success; // required
5886
    private LogisticsServiceException se; // required
730 chandransh 5887
 
5888
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5889
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 5890
      SUCCESS((short)0, "success"),
5891
      SE((short)1, "se");
5892
 
5893
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5894
 
5895
      static {
5896
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5897
          byName.put(field.getFieldName(), field);
5898
        }
5899
      }
5900
 
5901
      /**
5902
       * Find the _Fields constant that matches fieldId, or null if its not found.
5903
       */
5904
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5905
        switch(fieldId) {
5906
          case 0: // SUCCESS
5907
            return SUCCESS;
5908
          case 1: // SE
5909
            return SE;
5910
          default:
5911
            return null;
5912
        }
730 chandransh 5913
      }
5914
 
5915
      /**
5916
       * Find the _Fields constant that matches fieldId, throwing an exception
5917
       * if it is not found.
5918
       */
5919
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5920
        _Fields fields = findByThriftId(fieldId);
5921
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5922
        return fields;
5923
      }
5924
 
5925
      /**
5926
       * Find the _Fields constant that matches name, or null if its not found.
5927
       */
5928
      public static _Fields findByName(String name) {
5929
        return byName.get(name);
5930
      }
5931
 
5932
      private final short _thriftId;
5933
      private final String _fieldName;
5934
 
5935
      _Fields(short thriftId, String fieldName) {
5936
        _thriftId = thriftId;
5937
        _fieldName = fieldName;
5938
      }
5939
 
5940
      public short getThriftFieldId() {
5941
        return _thriftId;
5942
      }
5943
 
5944
      public String getFieldName() {
5945
        return _fieldName;
5946
      }
5947
    }
5948
 
5949
    // isset id assignments
5950
 
3430 rajveer 5951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 5952
    static {
3430 rajveer 5953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5954
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5956
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5957
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5958
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5959
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 5960
    }
5961
 
5962
    public getDestinationCode_result() {
5963
    }
5964
 
5965
    public getDestinationCode_result(
5966
      String success,
5967
      LogisticsServiceException se)
5968
    {
5969
      this();
5970
      this.success = success;
5971
      this.se = se;
5972
    }
5973
 
5974
    /**
5975
     * Performs a deep copy on <i>other</i>.
5976
     */
5977
    public getDestinationCode_result(getDestinationCode_result other) {
5978
      if (other.isSetSuccess()) {
5979
        this.success = other.success;
5980
      }
5981
      if (other.isSetSe()) {
5982
        this.se = new LogisticsServiceException(other.se);
5983
      }
5984
    }
5985
 
5986
    public getDestinationCode_result deepCopy() {
5987
      return new getDestinationCode_result(this);
5988
    }
5989
 
3430 rajveer 5990
    @Override
5991
    public void clear() {
5992
      this.success = null;
5993
      this.se = null;
730 chandransh 5994
    }
5995
 
5996
    public String getSuccess() {
5997
      return this.success;
5998
    }
5999
 
3430 rajveer 6000
    public void setSuccess(String success) {
730 chandransh 6001
      this.success = success;
6002
    }
6003
 
6004
    public void unsetSuccess() {
6005
      this.success = null;
6006
    }
6007
 
3430 rajveer 6008
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 6009
    public boolean isSetSuccess() {
6010
      return this.success != null;
6011
    }
6012
 
6013
    public void setSuccessIsSet(boolean value) {
6014
      if (!value) {
6015
        this.success = null;
6016
      }
6017
    }
6018
 
6019
    public LogisticsServiceException getSe() {
6020
      return this.se;
6021
    }
6022
 
3430 rajveer 6023
    public void setSe(LogisticsServiceException se) {
730 chandransh 6024
      this.se = se;
6025
    }
6026
 
6027
    public void unsetSe() {
6028
      this.se = null;
6029
    }
6030
 
3430 rajveer 6031
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 6032
    public boolean isSetSe() {
6033
      return this.se != null;
6034
    }
6035
 
6036
    public void setSeIsSet(boolean value) {
6037
      if (!value) {
6038
        this.se = null;
6039
      }
6040
    }
6041
 
6042
    public void setFieldValue(_Fields field, Object value) {
6043
      switch (field) {
6044
      case SUCCESS:
6045
        if (value == null) {
6046
          unsetSuccess();
6047
        } else {
6048
          setSuccess((String)value);
6049
        }
6050
        break;
6051
 
6052
      case SE:
6053
        if (value == null) {
6054
          unsetSe();
6055
        } else {
6056
          setSe((LogisticsServiceException)value);
6057
        }
6058
        break;
6059
 
6060
      }
6061
    }
6062
 
6063
    public Object getFieldValue(_Fields field) {
6064
      switch (field) {
6065
      case SUCCESS:
6066
        return getSuccess();
6067
 
6068
      case SE:
6069
        return getSe();
6070
 
6071
      }
6072
      throw new IllegalStateException();
6073
    }
6074
 
3430 rajveer 6075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6076
    public boolean isSet(_Fields field) {
6077
      if (field == null) {
6078
        throw new IllegalArgumentException();
6079
      }
730 chandransh 6080
 
6081
      switch (field) {
6082
      case SUCCESS:
6083
        return isSetSuccess();
6084
      case SE:
6085
        return isSetSe();
6086
      }
6087
      throw new IllegalStateException();
6088
    }
6089
 
6090
    @Override
6091
    public boolean equals(Object that) {
6092
      if (that == null)
6093
        return false;
6094
      if (that instanceof getDestinationCode_result)
6095
        return this.equals((getDestinationCode_result)that);
6096
      return false;
6097
    }
6098
 
6099
    public boolean equals(getDestinationCode_result that) {
6100
      if (that == null)
6101
        return false;
6102
 
6103
      boolean this_present_success = true && this.isSetSuccess();
6104
      boolean that_present_success = true && that.isSetSuccess();
6105
      if (this_present_success || that_present_success) {
6106
        if (!(this_present_success && that_present_success))
6107
          return false;
6108
        if (!this.success.equals(that.success))
6109
          return false;
6110
      }
6111
 
6112
      boolean this_present_se = true && this.isSetSe();
6113
      boolean that_present_se = true && that.isSetSe();
6114
      if (this_present_se || that_present_se) {
6115
        if (!(this_present_se && that_present_se))
6116
          return false;
6117
        if (!this.se.equals(that.se))
6118
          return false;
6119
      }
6120
 
6121
      return true;
6122
    }
6123
 
6124
    @Override
6125
    public int hashCode() {
6126
      return 0;
6127
    }
6128
 
6129
    public int compareTo(getDestinationCode_result other) {
6130
      if (!getClass().equals(other.getClass())) {
6131
        return getClass().getName().compareTo(other.getClass().getName());
6132
      }
6133
 
6134
      int lastComparison = 0;
6135
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
6136
 
3430 rajveer 6137
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 6138
      if (lastComparison != 0) {
6139
        return lastComparison;
6140
      }
3430 rajveer 6141
      if (isSetSuccess()) {
6142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6143
        if (lastComparison != 0) {
6144
          return lastComparison;
6145
        }
730 chandransh 6146
      }
3430 rajveer 6147
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 6148
      if (lastComparison != 0) {
6149
        return lastComparison;
6150
      }
3430 rajveer 6151
      if (isSetSe()) {
6152
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6153
        if (lastComparison != 0) {
6154
          return lastComparison;
6155
        }
730 chandransh 6156
      }
6157
      return 0;
6158
    }
6159
 
3430 rajveer 6160
    public _Fields fieldForId(int fieldId) {
6161
      return _Fields.findByThriftId(fieldId);
6162
    }
6163
 
6164
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6165
      org.apache.thrift.protocol.TField field;
730 chandransh 6166
      iprot.readStructBegin();
6167
      while (true)
6168
      {
6169
        field = iprot.readFieldBegin();
3430 rajveer 6170
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 6171
          break;
6172
        }
3430 rajveer 6173
        switch (field.id) {
6174
          case 0: // SUCCESS
6175
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6176
              this.success = iprot.readString();
6177
            } else { 
6178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6179
            }
6180
            break;
6181
          case 1: // SE
6182
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6183
              this.se = new LogisticsServiceException();
6184
              this.se.read(iprot);
6185
            } else { 
6186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6187
            }
6188
            break;
6189
          default:
6190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 6191
        }
3430 rajveer 6192
        iprot.readFieldEnd();
730 chandransh 6193
      }
6194
      iprot.readStructEnd();
6195
      validate();
6196
    }
6197
 
3430 rajveer 6198
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 6199
      oprot.writeStructBegin(STRUCT_DESC);
6200
 
6201
      if (this.isSetSuccess()) {
6202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6203
        oprot.writeString(this.success);
6204
        oprot.writeFieldEnd();
6205
      } else if (this.isSetSe()) {
6206
        oprot.writeFieldBegin(SE_FIELD_DESC);
6207
        this.se.write(oprot);
6208
        oprot.writeFieldEnd();
6209
      }
6210
      oprot.writeFieldStop();
6211
      oprot.writeStructEnd();
6212
    }
6213
 
6214
    @Override
6215
    public String toString() {
6216
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
6217
      boolean first = true;
6218
 
6219
      sb.append("success:");
6220
      if (this.success == null) {
6221
        sb.append("null");
6222
      } else {
6223
        sb.append(this.success);
6224
      }
6225
      first = false;
6226
      if (!first) sb.append(", ");
6227
      sb.append("se:");
6228
      if (this.se == null) {
6229
        sb.append("null");
6230
      } else {
6231
        sb.append(this.se);
6232
      }
6233
      first = false;
6234
      sb.append(")");
6235
      return sb.toString();
6236
    }
6237
 
3430 rajveer 6238
    public void validate() throws org.apache.thrift.TException {
730 chandransh 6239
      // check for required fields
6240
    }
6241
 
3430 rajveer 6242
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6243
      try {
6244
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6245
      } catch (org.apache.thrift.TException te) {
6246
        throw new java.io.IOException(te);
6247
      }
6248
    }
6249
 
6250
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6251
      try {
6252
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6253
      } catch (org.apache.thrift.TException te) {
6254
        throw new java.io.IOException(te);
6255
      }
6256
    }
6257
 
730 chandransh 6258
  }
6259
 
3430 rajveer 6260
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
6261
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 6262
 
3430 rajveer 6263
    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);
6264
    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 6265
 
3430 rajveer 6266
    private long providerId; // required
6267
    private String type; // required
1139 chandransh 6268
 
6269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 6271
      PROVIDER_ID((short)1, "providerId"),
6272
      TYPE((short)2, "type");
1139 chandransh 6273
 
6274
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6275
 
6276
      static {
6277
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6278
          byName.put(field.getFieldName(), field);
6279
        }
6280
      }
6281
 
6282
      /**
6283
       * Find the _Fields constant that matches fieldId, or null if its not found.
6284
       */
6285
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6286
        switch(fieldId) {
6287
          case 1: // PROVIDER_ID
6288
            return PROVIDER_ID;
6289
          case 2: // TYPE
6290
            return TYPE;
6291
          default:
6292
            return null;
6293
        }
1139 chandransh 6294
      }
6295
 
6296
      /**
6297
       * Find the _Fields constant that matches fieldId, throwing an exception
6298
       * if it is not found.
6299
       */
6300
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6301
        _Fields fields = findByThriftId(fieldId);
6302
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6303
        return fields;
6304
      }
6305
 
6306
      /**
6307
       * Find the _Fields constant that matches name, or null if its not found.
6308
       */
6309
      public static _Fields findByName(String name) {
6310
        return byName.get(name);
6311
      }
6312
 
6313
      private final short _thriftId;
6314
      private final String _fieldName;
6315
 
6316
      _Fields(short thriftId, String fieldName) {
6317
        _thriftId = thriftId;
6318
        _fieldName = fieldName;
6319
      }
6320
 
6321
      public short getThriftFieldId() {
6322
        return _thriftId;
6323
      }
6324
 
6325
      public String getFieldName() {
6326
        return _fieldName;
6327
      }
6328
    }
6329
 
6330
    // isset id assignments
6331
    private static final int __PROVIDERID_ISSET_ID = 0;
6332
    private BitSet __isset_bit_vector = new BitSet(1);
6333
 
3430 rajveer 6334
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 6335
    static {
3430 rajveer 6336
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6337
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6338
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6339
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6340
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6341
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6342
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 6343
    }
6344
 
6345
    public getFreeAwbCount_args() {
6346
    }
6347
 
6348
    public getFreeAwbCount_args(
3103 chandransh 6349
      long providerId,
6350
      String type)
1139 chandransh 6351
    {
6352
      this();
6353
      this.providerId = providerId;
6354
      setProviderIdIsSet(true);
3103 chandransh 6355
      this.type = type;
1139 chandransh 6356
    }
6357
 
6358
    /**
6359
     * Performs a deep copy on <i>other</i>.
6360
     */
6361
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
6362
      __isset_bit_vector.clear();
6363
      __isset_bit_vector.or(other.__isset_bit_vector);
6364
      this.providerId = other.providerId;
3103 chandransh 6365
      if (other.isSetType()) {
6366
        this.type = other.type;
6367
      }
1139 chandransh 6368
    }
6369
 
6370
    public getFreeAwbCount_args deepCopy() {
6371
      return new getFreeAwbCount_args(this);
6372
    }
6373
 
3430 rajveer 6374
    @Override
6375
    public void clear() {
6376
      setProviderIdIsSet(false);
6377
      this.providerId = 0;
6378
      this.type = null;
1139 chandransh 6379
    }
6380
 
6381
    public long getProviderId() {
6382
      return this.providerId;
6383
    }
6384
 
3430 rajveer 6385
    public void setProviderId(long providerId) {
1139 chandransh 6386
      this.providerId = providerId;
6387
      setProviderIdIsSet(true);
6388
    }
6389
 
6390
    public void unsetProviderId() {
6391
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
6392
    }
6393
 
3430 rajveer 6394
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 6395
    public boolean isSetProviderId() {
6396
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
6397
    }
6398
 
6399
    public void setProviderIdIsSet(boolean value) {
6400
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
6401
    }
6402
 
3103 chandransh 6403
    public String getType() {
6404
      return this.type;
6405
    }
6406
 
3430 rajveer 6407
    public void setType(String type) {
3103 chandransh 6408
      this.type = type;
6409
    }
6410
 
6411
    public void unsetType() {
6412
      this.type = null;
6413
    }
6414
 
3430 rajveer 6415
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 6416
    public boolean isSetType() {
6417
      return this.type != null;
6418
    }
6419
 
6420
    public void setTypeIsSet(boolean value) {
6421
      if (!value) {
6422
        this.type = null;
6423
      }
6424
    }
6425
 
1139 chandransh 6426
    public void setFieldValue(_Fields field, Object value) {
6427
      switch (field) {
6428
      case PROVIDER_ID:
6429
        if (value == null) {
6430
          unsetProviderId();
6431
        } else {
6432
          setProviderId((Long)value);
6433
        }
6434
        break;
6435
 
3103 chandransh 6436
      case TYPE:
6437
        if (value == null) {
6438
          unsetType();
6439
        } else {
6440
          setType((String)value);
6441
        }
6442
        break;
6443
 
1139 chandransh 6444
      }
6445
    }
6446
 
6447
    public Object getFieldValue(_Fields field) {
6448
      switch (field) {
6449
      case PROVIDER_ID:
3430 rajveer 6450
        return Long.valueOf(getProviderId());
1139 chandransh 6451
 
3103 chandransh 6452
      case TYPE:
6453
        return getType();
6454
 
1139 chandransh 6455
      }
6456
      throw new IllegalStateException();
6457
    }
6458
 
3430 rajveer 6459
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6460
    public boolean isSet(_Fields field) {
6461
      if (field == null) {
6462
        throw new IllegalArgumentException();
6463
      }
1139 chandransh 6464
 
6465
      switch (field) {
6466
      case PROVIDER_ID:
6467
        return isSetProviderId();
3103 chandransh 6468
      case TYPE:
6469
        return isSetType();
1139 chandransh 6470
      }
6471
      throw new IllegalStateException();
6472
    }
6473
 
6474
    @Override
6475
    public boolean equals(Object that) {
6476
      if (that == null)
6477
        return false;
6478
      if (that instanceof getFreeAwbCount_args)
6479
        return this.equals((getFreeAwbCount_args)that);
6480
      return false;
6481
    }
6482
 
6483
    public boolean equals(getFreeAwbCount_args that) {
6484
      if (that == null)
6485
        return false;
6486
 
6487
      boolean this_present_providerId = true;
6488
      boolean that_present_providerId = true;
6489
      if (this_present_providerId || that_present_providerId) {
6490
        if (!(this_present_providerId && that_present_providerId))
6491
          return false;
6492
        if (this.providerId != that.providerId)
6493
          return false;
6494
      }
6495
 
3103 chandransh 6496
      boolean this_present_type = true && this.isSetType();
6497
      boolean that_present_type = true && that.isSetType();
6498
      if (this_present_type || that_present_type) {
6499
        if (!(this_present_type && that_present_type))
6500
          return false;
6501
        if (!this.type.equals(that.type))
6502
          return false;
6503
      }
6504
 
1139 chandransh 6505
      return true;
6506
    }
6507
 
6508
    @Override
6509
    public int hashCode() {
6510
      return 0;
6511
    }
6512
 
6513
    public int compareTo(getFreeAwbCount_args other) {
6514
      if (!getClass().equals(other.getClass())) {
6515
        return getClass().getName().compareTo(other.getClass().getName());
6516
      }
6517
 
6518
      int lastComparison = 0;
6519
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
6520
 
3430 rajveer 6521
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 6522
      if (lastComparison != 0) {
6523
        return lastComparison;
6524
      }
3430 rajveer 6525
      if (isSetProviderId()) {
6526
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6527
        if (lastComparison != 0) {
6528
          return lastComparison;
6529
        }
1139 chandransh 6530
      }
3430 rajveer 6531
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 6532
      if (lastComparison != 0) {
6533
        return lastComparison;
6534
      }
3430 rajveer 6535
      if (isSetType()) {
6536
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6537
        if (lastComparison != 0) {
6538
          return lastComparison;
6539
        }
3103 chandransh 6540
      }
1139 chandransh 6541
      return 0;
6542
    }
6543
 
3430 rajveer 6544
    public _Fields fieldForId(int fieldId) {
6545
      return _Fields.findByThriftId(fieldId);
6546
    }
6547
 
6548
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6549
      org.apache.thrift.protocol.TField field;
1139 chandransh 6550
      iprot.readStructBegin();
6551
      while (true)
6552
      {
6553
        field = iprot.readFieldBegin();
3430 rajveer 6554
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 6555
          break;
6556
        }
3430 rajveer 6557
        switch (field.id) {
6558
          case 1: // PROVIDER_ID
6559
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6560
              this.providerId = iprot.readI64();
6561
              setProviderIdIsSet(true);
6562
            } else { 
6563
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6564
            }
6565
            break;
6566
          case 2: // TYPE
6567
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6568
              this.type = iprot.readString();
6569
            } else { 
6570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6571
            }
6572
            break;
6573
          default:
6574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 6575
        }
3430 rajveer 6576
        iprot.readFieldEnd();
1139 chandransh 6577
      }
6578
      iprot.readStructEnd();
6579
      validate();
6580
    }
6581
 
3430 rajveer 6582
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 6583
      validate();
6584
 
6585
      oprot.writeStructBegin(STRUCT_DESC);
6586
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6587
      oprot.writeI64(this.providerId);
6588
      oprot.writeFieldEnd();
3103 chandransh 6589
      if (this.type != null) {
6590
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6591
        oprot.writeString(this.type);
6592
        oprot.writeFieldEnd();
6593
      }
1139 chandransh 6594
      oprot.writeFieldStop();
6595
      oprot.writeStructEnd();
6596
    }
6597
 
6598
    @Override
6599
    public String toString() {
6600
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
6601
      boolean first = true;
6602
 
6603
      sb.append("providerId:");
6604
      sb.append(this.providerId);
6605
      first = false;
3103 chandransh 6606
      if (!first) sb.append(", ");
6607
      sb.append("type:");
6608
      if (this.type == null) {
6609
        sb.append("null");
6610
      } else {
6611
        sb.append(this.type);
6612
      }
6613
      first = false;
1139 chandransh 6614
      sb.append(")");
6615
      return sb.toString();
6616
    }
6617
 
3430 rajveer 6618
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 6619
      // check for required fields
6620
    }
6621
 
3430 rajveer 6622
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6623
      try {
6624
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6625
      } catch (org.apache.thrift.TException te) {
6626
        throw new java.io.IOException(te);
6627
      }
6628
    }
6629
 
6630
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6631
      try {
6632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6633
      } catch (org.apache.thrift.TException te) {
6634
        throw new java.io.IOException(te);
6635
      }
6636
    }
6637
 
1139 chandransh 6638
  }
6639
 
3430 rajveer 6640
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
6641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 6642
 
3430 rajveer 6643
    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 6644
 
3430 rajveer 6645
    private long success; // required
1139 chandransh 6646
 
6647
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6648
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 6649
      SUCCESS((short)0, "success");
6650
 
6651
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6652
 
6653
      static {
6654
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6655
          byName.put(field.getFieldName(), field);
6656
        }
6657
      }
6658
 
6659
      /**
6660
       * Find the _Fields constant that matches fieldId, or null if its not found.
6661
       */
6662
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6663
        switch(fieldId) {
6664
          case 0: // SUCCESS
6665
            return SUCCESS;
6666
          default:
6667
            return null;
6668
        }
1139 chandransh 6669
      }
6670
 
6671
      /**
6672
       * Find the _Fields constant that matches fieldId, throwing an exception
6673
       * if it is not found.
6674
       */
6675
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6676
        _Fields fields = findByThriftId(fieldId);
6677
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6678
        return fields;
6679
      }
6680
 
6681
      /**
6682
       * Find the _Fields constant that matches name, or null if its not found.
6683
       */
6684
      public static _Fields findByName(String name) {
6685
        return byName.get(name);
6686
      }
6687
 
6688
      private final short _thriftId;
6689
      private final String _fieldName;
6690
 
6691
      _Fields(short thriftId, String fieldName) {
6692
        _thriftId = thriftId;
6693
        _fieldName = fieldName;
6694
      }
6695
 
6696
      public short getThriftFieldId() {
6697
        return _thriftId;
6698
      }
6699
 
6700
      public String getFieldName() {
6701
        return _fieldName;
6702
      }
6703
    }
6704
 
6705
    // isset id assignments
6706
    private static final int __SUCCESS_ISSET_ID = 0;
6707
    private BitSet __isset_bit_vector = new BitSet(1);
6708
 
3430 rajveer 6709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 6710
    static {
3430 rajveer 6711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6712
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 6716
    }
6717
 
6718
    public getFreeAwbCount_result() {
6719
    }
6720
 
6721
    public getFreeAwbCount_result(
6722
      long success)
6723
    {
6724
      this();
6725
      this.success = success;
6726
      setSuccessIsSet(true);
6727
    }
6728
 
6729
    /**
6730
     * Performs a deep copy on <i>other</i>.
6731
     */
6732
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
6733
      __isset_bit_vector.clear();
6734
      __isset_bit_vector.or(other.__isset_bit_vector);
6735
      this.success = other.success;
6736
    }
6737
 
6738
    public getFreeAwbCount_result deepCopy() {
6739
      return new getFreeAwbCount_result(this);
6740
    }
6741
 
3430 rajveer 6742
    @Override
6743
    public void clear() {
6744
      setSuccessIsSet(false);
6745
      this.success = 0;
1139 chandransh 6746
    }
6747
 
6748
    public long getSuccess() {
6749
      return this.success;
6750
    }
6751
 
3430 rajveer 6752
    public void setSuccess(long success) {
1139 chandransh 6753
      this.success = success;
6754
      setSuccessIsSet(true);
6755
    }
6756
 
6757
    public void unsetSuccess() {
6758
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6759
    }
6760
 
3430 rajveer 6761
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 6762
    public boolean isSetSuccess() {
6763
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6764
    }
6765
 
6766
    public void setSuccessIsSet(boolean value) {
6767
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
6768
    }
6769
 
6770
    public void setFieldValue(_Fields field, Object value) {
6771
      switch (field) {
6772
      case SUCCESS:
6773
        if (value == null) {
6774
          unsetSuccess();
6775
        } else {
6776
          setSuccess((Long)value);
6777
        }
6778
        break;
6779
 
6780
      }
6781
    }
6782
 
6783
    public Object getFieldValue(_Fields field) {
6784
      switch (field) {
6785
      case SUCCESS:
3430 rajveer 6786
        return Long.valueOf(getSuccess());
1139 chandransh 6787
 
6788
      }
6789
      throw new IllegalStateException();
6790
    }
6791
 
3430 rajveer 6792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6793
    public boolean isSet(_Fields field) {
6794
      if (field == null) {
6795
        throw new IllegalArgumentException();
6796
      }
1139 chandransh 6797
 
6798
      switch (field) {
6799
      case SUCCESS:
6800
        return isSetSuccess();
6801
      }
6802
      throw new IllegalStateException();
6803
    }
6804
 
6805
    @Override
6806
    public boolean equals(Object that) {
6807
      if (that == null)
6808
        return false;
6809
      if (that instanceof getFreeAwbCount_result)
6810
        return this.equals((getFreeAwbCount_result)that);
6811
      return false;
6812
    }
6813
 
6814
    public boolean equals(getFreeAwbCount_result that) {
6815
      if (that == null)
6816
        return false;
6817
 
6818
      boolean this_present_success = true;
6819
      boolean that_present_success = true;
6820
      if (this_present_success || that_present_success) {
6821
        if (!(this_present_success && that_present_success))
6822
          return false;
6823
        if (this.success != that.success)
6824
          return false;
6825
      }
6826
 
6827
      return true;
6828
    }
6829
 
6830
    @Override
6831
    public int hashCode() {
6832
      return 0;
6833
    }
6834
 
6835
    public int compareTo(getFreeAwbCount_result other) {
6836
      if (!getClass().equals(other.getClass())) {
6837
        return getClass().getName().compareTo(other.getClass().getName());
6838
      }
6839
 
6840
      int lastComparison = 0;
6841
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
6842
 
3430 rajveer 6843
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 6844
      if (lastComparison != 0) {
6845
        return lastComparison;
6846
      }
3430 rajveer 6847
      if (isSetSuccess()) {
6848
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6849
        if (lastComparison != 0) {
6850
          return lastComparison;
6851
        }
1139 chandransh 6852
      }
6853
      return 0;
6854
    }
6855
 
3430 rajveer 6856
    public _Fields fieldForId(int fieldId) {
6857
      return _Fields.findByThriftId(fieldId);
6858
    }
6859
 
6860
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6861
      org.apache.thrift.protocol.TField field;
1139 chandransh 6862
      iprot.readStructBegin();
6863
      while (true)
6864
      {
6865
        field = iprot.readFieldBegin();
3430 rajveer 6866
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 6867
          break;
6868
        }
3430 rajveer 6869
        switch (field.id) {
6870
          case 0: // SUCCESS
6871
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6872
              this.success = iprot.readI64();
6873
              setSuccessIsSet(true);
6874
            } else { 
6875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6876
            }
6877
            break;
6878
          default:
6879
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 6880
        }
3430 rajveer 6881
        iprot.readFieldEnd();
1139 chandransh 6882
      }
6883
      iprot.readStructEnd();
6884
      validate();
6885
    }
6886
 
3430 rajveer 6887
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 6888
      oprot.writeStructBegin(STRUCT_DESC);
6889
 
6890
      if (this.isSetSuccess()) {
6891
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6892
        oprot.writeI64(this.success);
6893
        oprot.writeFieldEnd();
6894
      }
6895
      oprot.writeFieldStop();
6896
      oprot.writeStructEnd();
6897
    }
6898
 
6899
    @Override
6900
    public String toString() {
6901
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
6902
      boolean first = true;
6903
 
6904
      sb.append("success:");
6905
      sb.append(this.success);
6906
      first = false;
6907
      sb.append(")");
6908
      return sb.toString();
6909
    }
6910
 
3430 rajveer 6911
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 6912
      // check for required fields
6913
    }
6914
 
3430 rajveer 6915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6916
      try {
6917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6918
      } catch (org.apache.thrift.TException te) {
6919
        throw new java.io.IOException(te);
6920
      }
6921
    }
6922
 
6923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6924
      try {
6925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6926
      } catch (org.apache.thrift.TException te) {
6927
        throw new java.io.IOException(te);
6928
      }
6929
    }
6930
 
1139 chandransh 6931
  }
6932
 
3430 rajveer 6933
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
6934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 6935
 
3430 rajveer 6936
    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);
6937
    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 6938
 
3430 rajveer 6939
    private long fromDate; // required
6940
    private long toDate; // required
1730 ankur.sing 6941
 
6942
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6943
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 6944
      FROM_DATE((short)1, "fromDate"),
6945
      TO_DATE((short)2, "toDate");
6946
 
6947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6948
 
6949
      static {
6950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6951
          byName.put(field.getFieldName(), field);
6952
        }
6953
      }
6954
 
6955
      /**
6956
       * Find the _Fields constant that matches fieldId, or null if its not found.
6957
       */
6958
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6959
        switch(fieldId) {
6960
          case 1: // FROM_DATE
6961
            return FROM_DATE;
6962
          case 2: // TO_DATE
6963
            return TO_DATE;
6964
          default:
6965
            return null;
6966
        }
1730 ankur.sing 6967
      }
6968
 
6969
      /**
6970
       * Find the _Fields constant that matches fieldId, throwing an exception
6971
       * if it is not found.
6972
       */
6973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6974
        _Fields fields = findByThriftId(fieldId);
6975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6976
        return fields;
6977
      }
6978
 
6979
      /**
6980
       * Find the _Fields constant that matches name, or null if its not found.
6981
       */
6982
      public static _Fields findByName(String name) {
6983
        return byName.get(name);
6984
      }
6985
 
6986
      private final short _thriftId;
6987
      private final String _fieldName;
6988
 
6989
      _Fields(short thriftId, String fieldName) {
6990
        _thriftId = thriftId;
6991
        _fieldName = fieldName;
6992
      }
6993
 
6994
      public short getThriftFieldId() {
6995
        return _thriftId;
6996
      }
6997
 
6998
      public String getFieldName() {
6999
        return _fieldName;
7000
      }
7001
    }
7002
 
7003
    // isset id assignments
7004
    private static final int __FROMDATE_ISSET_ID = 0;
7005
    private static final int __TODATE_ISSET_ID = 1;
7006
    private BitSet __isset_bit_vector = new BitSet(2);
7007
 
3430 rajveer 7008
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 7009
    static {
3430 rajveer 7010
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7011
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7012
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7013
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7014
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7015
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7016
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 7017
    }
7018
 
7019
    public getHolidays_args() {
7020
    }
7021
 
7022
    public getHolidays_args(
7023
      long fromDate,
7024
      long toDate)
7025
    {
7026
      this();
7027
      this.fromDate = fromDate;
7028
      setFromDateIsSet(true);
7029
      this.toDate = toDate;
7030
      setToDateIsSet(true);
7031
    }
7032
 
7033
    /**
7034
     * Performs a deep copy on <i>other</i>.
7035
     */
7036
    public getHolidays_args(getHolidays_args other) {
7037
      __isset_bit_vector.clear();
7038
      __isset_bit_vector.or(other.__isset_bit_vector);
7039
      this.fromDate = other.fromDate;
7040
      this.toDate = other.toDate;
7041
    }
7042
 
7043
    public getHolidays_args deepCopy() {
7044
      return new getHolidays_args(this);
7045
    }
7046
 
3430 rajveer 7047
    @Override
7048
    public void clear() {
7049
      setFromDateIsSet(false);
7050
      this.fromDate = 0;
7051
      setToDateIsSet(false);
7052
      this.toDate = 0;
1730 ankur.sing 7053
    }
7054
 
7055
    public long getFromDate() {
7056
      return this.fromDate;
7057
    }
7058
 
3430 rajveer 7059
    public void setFromDate(long fromDate) {
1730 ankur.sing 7060
      this.fromDate = fromDate;
7061
      setFromDateIsSet(true);
7062
    }
7063
 
7064
    public void unsetFromDate() {
7065
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
7066
    }
7067
 
3430 rajveer 7068
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7069
    public boolean isSetFromDate() {
7070
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
7071
    }
7072
 
7073
    public void setFromDateIsSet(boolean value) {
7074
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
7075
    }
7076
 
7077
    public long getToDate() {
7078
      return this.toDate;
7079
    }
7080
 
3430 rajveer 7081
    public void setToDate(long toDate) {
1730 ankur.sing 7082
      this.toDate = toDate;
7083
      setToDateIsSet(true);
7084
    }
7085
 
7086
    public void unsetToDate() {
7087
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
7088
    }
7089
 
3430 rajveer 7090
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7091
    public boolean isSetToDate() {
7092
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
7093
    }
7094
 
7095
    public void setToDateIsSet(boolean value) {
7096
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
7097
    }
7098
 
7099
    public void setFieldValue(_Fields field, Object value) {
7100
      switch (field) {
7101
      case FROM_DATE:
7102
        if (value == null) {
7103
          unsetFromDate();
7104
        } else {
7105
          setFromDate((Long)value);
7106
        }
7107
        break;
7108
 
7109
      case TO_DATE:
7110
        if (value == null) {
7111
          unsetToDate();
7112
        } else {
7113
          setToDate((Long)value);
7114
        }
7115
        break;
7116
 
7117
      }
7118
    }
7119
 
7120
    public Object getFieldValue(_Fields field) {
7121
      switch (field) {
7122
      case FROM_DATE:
3430 rajveer 7123
        return Long.valueOf(getFromDate());
1730 ankur.sing 7124
 
7125
      case TO_DATE:
3430 rajveer 7126
        return Long.valueOf(getToDate());
1730 ankur.sing 7127
 
7128
      }
7129
      throw new IllegalStateException();
7130
    }
7131
 
3430 rajveer 7132
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7133
    public boolean isSet(_Fields field) {
7134
      if (field == null) {
7135
        throw new IllegalArgumentException();
7136
      }
1730 ankur.sing 7137
 
7138
      switch (field) {
7139
      case FROM_DATE:
7140
        return isSetFromDate();
7141
      case TO_DATE:
7142
        return isSetToDate();
7143
      }
7144
      throw new IllegalStateException();
7145
    }
7146
 
7147
    @Override
7148
    public boolean equals(Object that) {
7149
      if (that == null)
7150
        return false;
7151
      if (that instanceof getHolidays_args)
7152
        return this.equals((getHolidays_args)that);
7153
      return false;
7154
    }
7155
 
7156
    public boolean equals(getHolidays_args that) {
7157
      if (that == null)
7158
        return false;
7159
 
7160
      boolean this_present_fromDate = true;
7161
      boolean that_present_fromDate = true;
7162
      if (this_present_fromDate || that_present_fromDate) {
7163
        if (!(this_present_fromDate && that_present_fromDate))
7164
          return false;
7165
        if (this.fromDate != that.fromDate)
7166
          return false;
7167
      }
7168
 
7169
      boolean this_present_toDate = true;
7170
      boolean that_present_toDate = true;
7171
      if (this_present_toDate || that_present_toDate) {
7172
        if (!(this_present_toDate && that_present_toDate))
7173
          return false;
7174
        if (this.toDate != that.toDate)
7175
          return false;
7176
      }
7177
 
7178
      return true;
7179
    }
7180
 
7181
    @Override
7182
    public int hashCode() {
7183
      return 0;
7184
    }
7185
 
7186
    public int compareTo(getHolidays_args other) {
7187
      if (!getClass().equals(other.getClass())) {
7188
        return getClass().getName().compareTo(other.getClass().getName());
7189
      }
7190
 
7191
      int lastComparison = 0;
7192
      getHolidays_args typedOther = (getHolidays_args)other;
7193
 
3430 rajveer 7194
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 7195
      if (lastComparison != 0) {
7196
        return lastComparison;
7197
      }
3430 rajveer 7198
      if (isSetFromDate()) {
7199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
7200
        if (lastComparison != 0) {
7201
          return lastComparison;
7202
        }
1730 ankur.sing 7203
      }
3430 rajveer 7204
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 7205
      if (lastComparison != 0) {
7206
        return lastComparison;
7207
      }
3430 rajveer 7208
      if (isSetToDate()) {
7209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
7210
        if (lastComparison != 0) {
7211
          return lastComparison;
7212
        }
1730 ankur.sing 7213
      }
7214
      return 0;
7215
    }
7216
 
3430 rajveer 7217
    public _Fields fieldForId(int fieldId) {
7218
      return _Fields.findByThriftId(fieldId);
7219
    }
7220
 
7221
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7222
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 7223
      iprot.readStructBegin();
7224
      while (true)
7225
      {
7226
        field = iprot.readFieldBegin();
3430 rajveer 7227
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 7228
          break;
7229
        }
3430 rajveer 7230
        switch (field.id) {
7231
          case 1: // FROM_DATE
7232
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7233
              this.fromDate = iprot.readI64();
7234
              setFromDateIsSet(true);
7235
            } else { 
7236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7237
            }
7238
            break;
7239
          case 2: // TO_DATE
7240
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7241
              this.toDate = iprot.readI64();
7242
              setToDateIsSet(true);
7243
            } else { 
7244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7245
            }
7246
            break;
7247
          default:
7248
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 7249
        }
3430 rajveer 7250
        iprot.readFieldEnd();
1730 ankur.sing 7251
      }
7252
      iprot.readStructEnd();
7253
      validate();
7254
    }
7255
 
3430 rajveer 7256
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 7257
      validate();
7258
 
7259
      oprot.writeStructBegin(STRUCT_DESC);
7260
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
7261
      oprot.writeI64(this.fromDate);
7262
      oprot.writeFieldEnd();
7263
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
7264
      oprot.writeI64(this.toDate);
7265
      oprot.writeFieldEnd();
7266
      oprot.writeFieldStop();
7267
      oprot.writeStructEnd();
7268
    }
7269
 
7270
    @Override
7271
    public String toString() {
7272
      StringBuilder sb = new StringBuilder("getHolidays_args(");
7273
      boolean first = true;
7274
 
7275
      sb.append("fromDate:");
7276
      sb.append(this.fromDate);
7277
      first = false;
7278
      if (!first) sb.append(", ");
7279
      sb.append("toDate:");
7280
      sb.append(this.toDate);
7281
      first = false;
7282
      sb.append(")");
7283
      return sb.toString();
7284
    }
7285
 
3430 rajveer 7286
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 7287
      // check for required fields
7288
    }
7289
 
3430 rajveer 7290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7291
      try {
7292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7293
      } catch (org.apache.thrift.TException te) {
7294
        throw new java.io.IOException(te);
7295
      }
7296
    }
7297
 
7298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7299
      try {
7300
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7301
        __isset_bit_vector = new BitSet(1);
7302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7303
      } catch (org.apache.thrift.TException te) {
7304
        throw new java.io.IOException(te);
7305
      }
7306
    }
7307
 
1730 ankur.sing 7308
  }
7309
 
3430 rajveer 7310
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
7311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 7312
 
3430 rajveer 7313
    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 7314
 
3430 rajveer 7315
    private List<Long> success; // required
1730 ankur.sing 7316
 
7317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 7319
      SUCCESS((short)0, "success");
7320
 
7321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7322
 
7323
      static {
7324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7325
          byName.put(field.getFieldName(), field);
7326
        }
7327
      }
7328
 
7329
      /**
7330
       * Find the _Fields constant that matches fieldId, or null if its not found.
7331
       */
7332
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7333
        switch(fieldId) {
7334
          case 0: // SUCCESS
7335
            return SUCCESS;
7336
          default:
7337
            return null;
7338
        }
1730 ankur.sing 7339
      }
7340
 
7341
      /**
7342
       * Find the _Fields constant that matches fieldId, throwing an exception
7343
       * if it is not found.
7344
       */
7345
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7346
        _Fields fields = findByThriftId(fieldId);
7347
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7348
        return fields;
7349
      }
7350
 
7351
      /**
7352
       * Find the _Fields constant that matches name, or null if its not found.
7353
       */
7354
      public static _Fields findByName(String name) {
7355
        return byName.get(name);
7356
      }
7357
 
7358
      private final short _thriftId;
7359
      private final String _fieldName;
7360
 
7361
      _Fields(short thriftId, String fieldName) {
7362
        _thriftId = thriftId;
7363
        _fieldName = fieldName;
7364
      }
7365
 
7366
      public short getThriftFieldId() {
7367
        return _thriftId;
7368
      }
7369
 
7370
      public String getFieldName() {
7371
        return _fieldName;
7372
      }
7373
    }
7374
 
7375
    // isset id assignments
7376
 
3430 rajveer 7377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 7378
    static {
3430 rajveer 7379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7380
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7381
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7382
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
7383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 7385
    }
7386
 
7387
    public getHolidays_result() {
7388
    }
7389
 
7390
    public getHolidays_result(
7391
      List<Long> success)
7392
    {
7393
      this();
7394
      this.success = success;
7395
    }
7396
 
7397
    /**
7398
     * Performs a deep copy on <i>other</i>.
7399
     */
7400
    public getHolidays_result(getHolidays_result other) {
7401
      if (other.isSetSuccess()) {
7402
        List<Long> __this__success = new ArrayList<Long>();
7403
        for (Long other_element : other.success) {
7404
          __this__success.add(other_element);
7405
        }
7406
        this.success = __this__success;
7407
      }
7408
    }
7409
 
7410
    public getHolidays_result deepCopy() {
7411
      return new getHolidays_result(this);
7412
    }
7413
 
3430 rajveer 7414
    @Override
7415
    public void clear() {
7416
      this.success = null;
1730 ankur.sing 7417
    }
7418
 
7419
    public int getSuccessSize() {
7420
      return (this.success == null) ? 0 : this.success.size();
7421
    }
7422
 
7423
    public java.util.Iterator<Long> getSuccessIterator() {
7424
      return (this.success == null) ? null : this.success.iterator();
7425
    }
7426
 
7427
    public void addToSuccess(long elem) {
7428
      if (this.success == null) {
7429
        this.success = new ArrayList<Long>();
7430
      }
7431
      this.success.add(elem);
7432
    }
7433
 
7434
    public List<Long> getSuccess() {
7435
      return this.success;
7436
    }
7437
 
3430 rajveer 7438
    public void setSuccess(List<Long> success) {
1730 ankur.sing 7439
      this.success = success;
7440
    }
7441
 
7442
    public void unsetSuccess() {
7443
      this.success = null;
7444
    }
7445
 
3430 rajveer 7446
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7447
    public boolean isSetSuccess() {
7448
      return this.success != null;
7449
    }
7450
 
7451
    public void setSuccessIsSet(boolean value) {
7452
      if (!value) {
7453
        this.success = null;
7454
      }
7455
    }
7456
 
7457
    public void setFieldValue(_Fields field, Object value) {
7458
      switch (field) {
7459
      case SUCCESS:
7460
        if (value == null) {
7461
          unsetSuccess();
7462
        } else {
7463
          setSuccess((List<Long>)value);
7464
        }
7465
        break;
7466
 
7467
      }
7468
    }
7469
 
7470
    public Object getFieldValue(_Fields field) {
7471
      switch (field) {
7472
      case SUCCESS:
7473
        return getSuccess();
7474
 
7475
      }
7476
      throw new IllegalStateException();
7477
    }
7478
 
3430 rajveer 7479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7480
    public boolean isSet(_Fields field) {
7481
      if (field == null) {
7482
        throw new IllegalArgumentException();
7483
      }
1730 ankur.sing 7484
 
7485
      switch (field) {
7486
      case SUCCESS:
7487
        return isSetSuccess();
7488
      }
7489
      throw new IllegalStateException();
7490
    }
7491
 
7492
    @Override
7493
    public boolean equals(Object that) {
7494
      if (that == null)
7495
        return false;
7496
      if (that instanceof getHolidays_result)
7497
        return this.equals((getHolidays_result)that);
7498
      return false;
7499
    }
7500
 
7501
    public boolean equals(getHolidays_result that) {
7502
      if (that == null)
7503
        return false;
7504
 
7505
      boolean this_present_success = true && this.isSetSuccess();
7506
      boolean that_present_success = true && that.isSetSuccess();
7507
      if (this_present_success || that_present_success) {
7508
        if (!(this_present_success && that_present_success))
7509
          return false;
7510
        if (!this.success.equals(that.success))
7511
          return false;
7512
      }
7513
 
7514
      return true;
7515
    }
7516
 
7517
    @Override
7518
    public int hashCode() {
7519
      return 0;
7520
    }
7521
 
7522
    public int compareTo(getHolidays_result other) {
7523
      if (!getClass().equals(other.getClass())) {
7524
        return getClass().getName().compareTo(other.getClass().getName());
7525
      }
7526
 
7527
      int lastComparison = 0;
7528
      getHolidays_result typedOther = (getHolidays_result)other;
7529
 
3430 rajveer 7530
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 7531
      if (lastComparison != 0) {
7532
        return lastComparison;
7533
      }
3430 rajveer 7534
      if (isSetSuccess()) {
7535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7536
        if (lastComparison != 0) {
7537
          return lastComparison;
7538
        }
1730 ankur.sing 7539
      }
7540
      return 0;
7541
    }
7542
 
3430 rajveer 7543
    public _Fields fieldForId(int fieldId) {
7544
      return _Fields.findByThriftId(fieldId);
7545
    }
7546
 
7547
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7548
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 7549
      iprot.readStructBegin();
7550
      while (true)
7551
      {
7552
        field = iprot.readFieldBegin();
3430 rajveer 7553
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 7554
          break;
7555
        }
3430 rajveer 7556
        switch (field.id) {
7557
          case 0: // SUCCESS
7558
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7559
              {
7560
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
7561
                this.success = new ArrayList<Long>(_list13.size);
7562
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 7563
                {
3430 rajveer 7564
                  long _elem15; // required
7565
                  _elem15 = iprot.readI64();
7566
                  this.success.add(_elem15);
1730 ankur.sing 7567
                }
3430 rajveer 7568
                iprot.readListEnd();
1730 ankur.sing 7569
              }
3430 rajveer 7570
            } else { 
7571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7572
            }
7573
            break;
7574
          default:
7575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 7576
        }
3430 rajveer 7577
        iprot.readFieldEnd();
1730 ankur.sing 7578
      }
7579
      iprot.readStructEnd();
7580
      validate();
7581
    }
7582
 
3430 rajveer 7583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 7584
      oprot.writeStructBegin(STRUCT_DESC);
7585
 
7586
      if (this.isSetSuccess()) {
7587
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7588
        {
3430 rajveer 7589
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 7590
          for (long _iter16 : this.success)
1730 ankur.sing 7591
          {
3044 chandransh 7592
            oprot.writeI64(_iter16);
1730 ankur.sing 7593
          }
7594
          oprot.writeListEnd();
7595
        }
7596
        oprot.writeFieldEnd();
7597
      }
7598
      oprot.writeFieldStop();
7599
      oprot.writeStructEnd();
7600
    }
7601
 
7602
    @Override
7603
    public String toString() {
7604
      StringBuilder sb = new StringBuilder("getHolidays_result(");
7605
      boolean first = true;
7606
 
7607
      sb.append("success:");
7608
      if (this.success == null) {
7609
        sb.append("null");
7610
      } else {
7611
        sb.append(this.success);
7612
      }
7613
      first = false;
7614
      sb.append(")");
7615
      return sb.toString();
7616
    }
7617
 
3430 rajveer 7618
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 7619
      // check for required fields
7620
    }
7621
 
3430 rajveer 7622
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7623
      try {
7624
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7625
      } catch (org.apache.thrift.TException te) {
7626
        throw new java.io.IOException(te);
7627
      }
7628
    }
7629
 
7630
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7631
      try {
7632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7633
      } catch (org.apache.thrift.TException te) {
7634
        throw new java.io.IOException(te);
7635
      }
7636
    }
7637
 
1730 ankur.sing 7638
  }
7639
 
4934 amit.gupta 7640
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
7641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
7642
 
7643
    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);
7644
    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);
7645
    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);
7646
 
7647
    private long catalogItemId; // required
7648
    private String destination_pin; // required
7649
    private DeliveryType type; // required
7650
 
7651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7652
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7653
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
7654
      DESTINATION_PIN((short)2, "destination_pin"),
7655
      /**
7656
       * 
7657
       * @see DeliveryType
7658
       */
7659
      TYPE((short)3, "type");
7660
 
7661
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7662
 
7663
      static {
7664
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7665
          byName.put(field.getFieldName(), field);
7666
        }
7667
      }
7668
 
7669
      /**
7670
       * Find the _Fields constant that matches fieldId, or null if its not found.
7671
       */
7672
      public static _Fields findByThriftId(int fieldId) {
7673
        switch(fieldId) {
7674
          case 1: // CATALOG_ITEM_ID
7675
            return CATALOG_ITEM_ID;
7676
          case 2: // DESTINATION_PIN
7677
            return DESTINATION_PIN;
7678
          case 3: // TYPE
7679
            return TYPE;
7680
          default:
7681
            return null;
7682
        }
7683
      }
7684
 
7685
      /**
7686
       * Find the _Fields constant that matches fieldId, throwing an exception
7687
       * if it is not found.
7688
       */
7689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7690
        _Fields fields = findByThriftId(fieldId);
7691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7692
        return fields;
7693
      }
7694
 
7695
      /**
7696
       * Find the _Fields constant that matches name, or null if its not found.
7697
       */
7698
      public static _Fields findByName(String name) {
7699
        return byName.get(name);
7700
      }
7701
 
7702
      private final short _thriftId;
7703
      private final String _fieldName;
7704
 
7705
      _Fields(short thriftId, String fieldName) {
7706
        _thriftId = thriftId;
7707
        _fieldName = fieldName;
7708
      }
7709
 
7710
      public short getThriftFieldId() {
7711
        return _thriftId;
7712
      }
7713
 
7714
      public String getFieldName() {
7715
        return _fieldName;
7716
      }
7717
    }
7718
 
7719
    // isset id assignments
7720
    private static final int __CATALOGITEMID_ISSET_ID = 0;
7721
    private BitSet __isset_bit_vector = new BitSet(1);
7722
 
7723
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7724
    static {
7725
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7726
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7728
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7730
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7731
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
7732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
7734
    }
7735
 
7736
    public getEntityLogisticsEstimation_args() {
7737
    }
7738
 
7739
    public getEntityLogisticsEstimation_args(
7740
      long catalogItemId,
7741
      String destination_pin,
7742
      DeliveryType type)
7743
    {
7744
      this();
7745
      this.catalogItemId = catalogItemId;
7746
      setCatalogItemIdIsSet(true);
7747
      this.destination_pin = destination_pin;
7748
      this.type = type;
7749
    }
7750
 
7751
    /**
7752
     * Performs a deep copy on <i>other</i>.
7753
     */
7754
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
7755
      __isset_bit_vector.clear();
7756
      __isset_bit_vector.or(other.__isset_bit_vector);
7757
      this.catalogItemId = other.catalogItemId;
7758
      if (other.isSetDestination_pin()) {
7759
        this.destination_pin = other.destination_pin;
7760
      }
7761
      if (other.isSetType()) {
7762
        this.type = other.type;
7763
      }
7764
    }
7765
 
7766
    public getEntityLogisticsEstimation_args deepCopy() {
7767
      return new getEntityLogisticsEstimation_args(this);
7768
    }
7769
 
7770
    @Override
7771
    public void clear() {
7772
      setCatalogItemIdIsSet(false);
7773
      this.catalogItemId = 0;
7774
      this.destination_pin = null;
7775
      this.type = null;
7776
    }
7777
 
7778
    public long getCatalogItemId() {
7779
      return this.catalogItemId;
7780
    }
7781
 
7782
    public void setCatalogItemId(long catalogItemId) {
7783
      this.catalogItemId = catalogItemId;
7784
      setCatalogItemIdIsSet(true);
7785
    }
7786
 
7787
    public void unsetCatalogItemId() {
7788
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
7789
    }
7790
 
7791
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
7792
    public boolean isSetCatalogItemId() {
7793
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
7794
    }
7795
 
7796
    public void setCatalogItemIdIsSet(boolean value) {
7797
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
7798
    }
7799
 
7800
    public String getDestination_pin() {
7801
      return this.destination_pin;
7802
    }
7803
 
7804
    public void setDestination_pin(String destination_pin) {
7805
      this.destination_pin = destination_pin;
7806
    }
7807
 
7808
    public void unsetDestination_pin() {
7809
      this.destination_pin = null;
7810
    }
7811
 
7812
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
7813
    public boolean isSetDestination_pin() {
7814
      return this.destination_pin != null;
7815
    }
7816
 
7817
    public void setDestination_pinIsSet(boolean value) {
7818
      if (!value) {
7819
        this.destination_pin = null;
7820
      }
7821
    }
7822
 
7823
    /**
7824
     * 
7825
     * @see DeliveryType
7826
     */
7827
    public DeliveryType getType() {
7828
      return this.type;
7829
    }
7830
 
7831
    /**
7832
     * 
7833
     * @see DeliveryType
7834
     */
7835
    public void setType(DeliveryType type) {
7836
      this.type = type;
7837
    }
7838
 
7839
    public void unsetType() {
7840
      this.type = null;
7841
    }
7842
 
7843
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
7844
    public boolean isSetType() {
7845
      return this.type != null;
7846
    }
7847
 
7848
    public void setTypeIsSet(boolean value) {
7849
      if (!value) {
7850
        this.type = null;
7851
      }
7852
    }
7853
 
7854
    public void setFieldValue(_Fields field, Object value) {
7855
      switch (field) {
7856
      case CATALOG_ITEM_ID:
7857
        if (value == null) {
7858
          unsetCatalogItemId();
7859
        } else {
7860
          setCatalogItemId((Long)value);
7861
        }
7862
        break;
7863
 
7864
      case DESTINATION_PIN:
7865
        if (value == null) {
7866
          unsetDestination_pin();
7867
        } else {
7868
          setDestination_pin((String)value);
7869
        }
7870
        break;
7871
 
7872
      case TYPE:
7873
        if (value == null) {
7874
          unsetType();
7875
        } else {
7876
          setType((DeliveryType)value);
7877
        }
7878
        break;
7879
 
7880
      }
7881
    }
7882
 
7883
    public Object getFieldValue(_Fields field) {
7884
      switch (field) {
7885
      case CATALOG_ITEM_ID:
7886
        return Long.valueOf(getCatalogItemId());
7887
 
7888
      case DESTINATION_PIN:
7889
        return getDestination_pin();
7890
 
7891
      case TYPE:
7892
        return getType();
7893
 
7894
      }
7895
      throw new IllegalStateException();
7896
    }
7897
 
7898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7899
    public boolean isSet(_Fields field) {
7900
      if (field == null) {
7901
        throw new IllegalArgumentException();
7902
      }
7903
 
7904
      switch (field) {
7905
      case CATALOG_ITEM_ID:
7906
        return isSetCatalogItemId();
7907
      case DESTINATION_PIN:
7908
        return isSetDestination_pin();
7909
      case TYPE:
7910
        return isSetType();
7911
      }
7912
      throw new IllegalStateException();
7913
    }
7914
 
7915
    @Override
7916
    public boolean equals(Object that) {
7917
      if (that == null)
7918
        return false;
7919
      if (that instanceof getEntityLogisticsEstimation_args)
7920
        return this.equals((getEntityLogisticsEstimation_args)that);
7921
      return false;
7922
    }
7923
 
7924
    public boolean equals(getEntityLogisticsEstimation_args that) {
7925
      if (that == null)
7926
        return false;
7927
 
7928
      boolean this_present_catalogItemId = true;
7929
      boolean that_present_catalogItemId = true;
7930
      if (this_present_catalogItemId || that_present_catalogItemId) {
7931
        if (!(this_present_catalogItemId && that_present_catalogItemId))
7932
          return false;
7933
        if (this.catalogItemId != that.catalogItemId)
7934
          return false;
7935
      }
7936
 
7937
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
7938
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
7939
      if (this_present_destination_pin || that_present_destination_pin) {
7940
        if (!(this_present_destination_pin && that_present_destination_pin))
7941
          return false;
7942
        if (!this.destination_pin.equals(that.destination_pin))
7943
          return false;
7944
      }
7945
 
7946
      boolean this_present_type = true && this.isSetType();
7947
      boolean that_present_type = true && that.isSetType();
7948
      if (this_present_type || that_present_type) {
7949
        if (!(this_present_type && that_present_type))
7950
          return false;
7951
        if (!this.type.equals(that.type))
7952
          return false;
7953
      }
7954
 
7955
      return true;
7956
    }
7957
 
7958
    @Override
7959
    public int hashCode() {
7960
      return 0;
7961
    }
7962
 
7963
    public int compareTo(getEntityLogisticsEstimation_args other) {
7964
      if (!getClass().equals(other.getClass())) {
7965
        return getClass().getName().compareTo(other.getClass().getName());
7966
      }
7967
 
7968
      int lastComparison = 0;
7969
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
7970
 
7971
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
7972
      if (lastComparison != 0) {
7973
        return lastComparison;
7974
      }
7975
      if (isSetCatalogItemId()) {
7976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
7977
        if (lastComparison != 0) {
7978
          return lastComparison;
7979
        }
7980
      }
7981
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
7982
      if (lastComparison != 0) {
7983
        return lastComparison;
7984
      }
7985
      if (isSetDestination_pin()) {
7986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
7987
        if (lastComparison != 0) {
7988
          return lastComparison;
7989
        }
7990
      }
7991
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
7992
      if (lastComparison != 0) {
7993
        return lastComparison;
7994
      }
7995
      if (isSetType()) {
7996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
7997
        if (lastComparison != 0) {
7998
          return lastComparison;
7999
        }
8000
      }
8001
      return 0;
8002
    }
8003
 
8004
    public _Fields fieldForId(int fieldId) {
8005
      return _Fields.findByThriftId(fieldId);
8006
    }
8007
 
8008
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8009
      org.apache.thrift.protocol.TField field;
8010
      iprot.readStructBegin();
8011
      while (true)
8012
      {
8013
        field = iprot.readFieldBegin();
8014
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8015
          break;
8016
        }
8017
        switch (field.id) {
8018
          case 1: // CATALOG_ITEM_ID
8019
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8020
              this.catalogItemId = iprot.readI64();
8021
              setCatalogItemIdIsSet(true);
8022
            } else { 
8023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8024
            }
8025
            break;
8026
          case 2: // DESTINATION_PIN
8027
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8028
              this.destination_pin = iprot.readString();
8029
            } else { 
8030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8031
            }
8032
            break;
8033
          case 3: // TYPE
8034
            if (field.type == org.apache.thrift.protocol.TType.I32) {
8035
              this.type = DeliveryType.findByValue(iprot.readI32());
8036
            } else { 
8037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8038
            }
8039
            break;
8040
          default:
8041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8042
        }
8043
        iprot.readFieldEnd();
8044
      }
8045
      iprot.readStructEnd();
8046
      validate();
8047
    }
8048
 
8049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8050
      validate();
8051
 
8052
      oprot.writeStructBegin(STRUCT_DESC);
8053
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
8054
      oprot.writeI64(this.catalogItemId);
8055
      oprot.writeFieldEnd();
8056
      if (this.destination_pin != null) {
8057
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
8058
        oprot.writeString(this.destination_pin);
8059
        oprot.writeFieldEnd();
8060
      }
8061
      if (this.type != null) {
8062
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8063
        oprot.writeI32(this.type.getValue());
8064
        oprot.writeFieldEnd();
8065
      }
8066
      oprot.writeFieldStop();
8067
      oprot.writeStructEnd();
8068
    }
8069
 
8070
    @Override
8071
    public String toString() {
8072
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
8073
      boolean first = true;
8074
 
8075
      sb.append("catalogItemId:");
8076
      sb.append(this.catalogItemId);
8077
      first = false;
8078
      if (!first) sb.append(", ");
8079
      sb.append("destination_pin:");
8080
      if (this.destination_pin == null) {
8081
        sb.append("null");
8082
      } else {
8083
        sb.append(this.destination_pin);
8084
      }
8085
      first = false;
8086
      if (!first) sb.append(", ");
8087
      sb.append("type:");
8088
      if (this.type == null) {
8089
        sb.append("null");
8090
      } else {
8091
        sb.append(this.type);
8092
      }
8093
      first = false;
8094
      sb.append(")");
8095
      return sb.toString();
8096
    }
8097
 
8098
    public void validate() throws org.apache.thrift.TException {
8099
      // check for required fields
8100
    }
8101
 
8102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8103
      try {
8104
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8105
      } catch (org.apache.thrift.TException te) {
8106
        throw new java.io.IOException(te);
8107
      }
8108
    }
8109
 
8110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8111
      try {
8112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8113
      } catch (org.apache.thrift.TException te) {
8114
        throw new java.io.IOException(te);
8115
      }
8116
    }
8117
 
8118
  }
8119
 
8120
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
8121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
8122
 
8123
    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);
8124
    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);
8125
 
8126
    private List<Long> success; // required
8127
    private LogisticsServiceException se; // required
8128
 
8129
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8130
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8131
      SUCCESS((short)0, "success"),
8132
      SE((short)1, "se");
8133
 
8134
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8135
 
8136
      static {
8137
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8138
          byName.put(field.getFieldName(), field);
8139
        }
8140
      }
8141
 
8142
      /**
8143
       * Find the _Fields constant that matches fieldId, or null if its not found.
8144
       */
8145
      public static _Fields findByThriftId(int fieldId) {
8146
        switch(fieldId) {
8147
          case 0: // SUCCESS
8148
            return SUCCESS;
8149
          case 1: // SE
8150
            return SE;
8151
          default:
8152
            return null;
8153
        }
8154
      }
8155
 
8156
      /**
8157
       * Find the _Fields constant that matches fieldId, throwing an exception
8158
       * if it is not found.
8159
       */
8160
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8161
        _Fields fields = findByThriftId(fieldId);
8162
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8163
        return fields;
8164
      }
8165
 
8166
      /**
8167
       * Find the _Fields constant that matches name, or null if its not found.
8168
       */
8169
      public static _Fields findByName(String name) {
8170
        return byName.get(name);
8171
      }
8172
 
8173
      private final short _thriftId;
8174
      private final String _fieldName;
8175
 
8176
      _Fields(short thriftId, String fieldName) {
8177
        _thriftId = thriftId;
8178
        _fieldName = fieldName;
8179
      }
8180
 
8181
      public short getThriftFieldId() {
8182
        return _thriftId;
8183
      }
8184
 
8185
      public String getFieldName() {
8186
        return _fieldName;
8187
      }
8188
    }
8189
 
8190
    // isset id assignments
8191
 
8192
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8193
    static {
8194
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8195
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8196
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8197
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
8198
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8199
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
8202
    }
8203
 
8204
    public getEntityLogisticsEstimation_result() {
8205
    }
8206
 
8207
    public getEntityLogisticsEstimation_result(
8208
      List<Long> success,
8209
      LogisticsServiceException se)
8210
    {
8211
      this();
8212
      this.success = success;
8213
      this.se = se;
8214
    }
8215
 
8216
    /**
8217
     * Performs a deep copy on <i>other</i>.
8218
     */
8219
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
8220
      if (other.isSetSuccess()) {
8221
        List<Long> __this__success = new ArrayList<Long>();
8222
        for (Long other_element : other.success) {
8223
          __this__success.add(other_element);
8224
        }
8225
        this.success = __this__success;
8226
      }
8227
      if (other.isSetSe()) {
8228
        this.se = new LogisticsServiceException(other.se);
8229
      }
8230
    }
8231
 
8232
    public getEntityLogisticsEstimation_result deepCopy() {
8233
      return new getEntityLogisticsEstimation_result(this);
8234
    }
8235
 
8236
    @Override
8237
    public void clear() {
8238
      this.success = null;
8239
      this.se = null;
8240
    }
8241
 
8242
    public int getSuccessSize() {
8243
      return (this.success == null) ? 0 : this.success.size();
8244
    }
8245
 
8246
    public java.util.Iterator<Long> getSuccessIterator() {
8247
      return (this.success == null) ? null : this.success.iterator();
8248
    }
8249
 
8250
    public void addToSuccess(long elem) {
8251
      if (this.success == null) {
8252
        this.success = new ArrayList<Long>();
8253
      }
8254
      this.success.add(elem);
8255
    }
8256
 
8257
    public List<Long> getSuccess() {
8258
      return this.success;
8259
    }
8260
 
8261
    public void setSuccess(List<Long> success) {
8262
      this.success = success;
8263
    }
8264
 
8265
    public void unsetSuccess() {
8266
      this.success = null;
8267
    }
8268
 
8269
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8270
    public boolean isSetSuccess() {
8271
      return this.success != null;
8272
    }
8273
 
8274
    public void setSuccessIsSet(boolean value) {
8275
      if (!value) {
8276
        this.success = null;
8277
      }
8278
    }
8279
 
8280
    public LogisticsServiceException getSe() {
8281
      return this.se;
8282
    }
8283
 
8284
    public void setSe(LogisticsServiceException se) {
8285
      this.se = se;
8286
    }
8287
 
8288
    public void unsetSe() {
8289
      this.se = null;
8290
    }
8291
 
8292
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8293
    public boolean isSetSe() {
8294
      return this.se != null;
8295
    }
8296
 
8297
    public void setSeIsSet(boolean value) {
8298
      if (!value) {
8299
        this.se = null;
8300
      }
8301
    }
8302
 
8303
    public void setFieldValue(_Fields field, Object value) {
8304
      switch (field) {
8305
      case SUCCESS:
8306
        if (value == null) {
8307
          unsetSuccess();
8308
        } else {
8309
          setSuccess((List<Long>)value);
8310
        }
8311
        break;
8312
 
8313
      case SE:
8314
        if (value == null) {
8315
          unsetSe();
8316
        } else {
8317
          setSe((LogisticsServiceException)value);
8318
        }
8319
        break;
8320
 
8321
      }
8322
    }
8323
 
8324
    public Object getFieldValue(_Fields field) {
8325
      switch (field) {
8326
      case SUCCESS:
8327
        return getSuccess();
8328
 
8329
      case SE:
8330
        return getSe();
8331
 
8332
      }
8333
      throw new IllegalStateException();
8334
    }
8335
 
8336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8337
    public boolean isSet(_Fields field) {
8338
      if (field == null) {
8339
        throw new IllegalArgumentException();
8340
      }
8341
 
8342
      switch (field) {
8343
      case SUCCESS:
8344
        return isSetSuccess();
8345
      case SE:
8346
        return isSetSe();
8347
      }
8348
      throw new IllegalStateException();
8349
    }
8350
 
8351
    @Override
8352
    public boolean equals(Object that) {
8353
      if (that == null)
8354
        return false;
8355
      if (that instanceof getEntityLogisticsEstimation_result)
8356
        return this.equals((getEntityLogisticsEstimation_result)that);
8357
      return false;
8358
    }
8359
 
8360
    public boolean equals(getEntityLogisticsEstimation_result that) {
8361
      if (that == null)
8362
        return false;
8363
 
8364
      boolean this_present_success = true && this.isSetSuccess();
8365
      boolean that_present_success = true && that.isSetSuccess();
8366
      if (this_present_success || that_present_success) {
8367
        if (!(this_present_success && that_present_success))
8368
          return false;
8369
        if (!this.success.equals(that.success))
8370
          return false;
8371
      }
8372
 
8373
      boolean this_present_se = true && this.isSetSe();
8374
      boolean that_present_se = true && that.isSetSe();
8375
      if (this_present_se || that_present_se) {
8376
        if (!(this_present_se && that_present_se))
8377
          return false;
8378
        if (!this.se.equals(that.se))
8379
          return false;
8380
      }
8381
 
8382
      return true;
8383
    }
8384
 
8385
    @Override
8386
    public int hashCode() {
8387
      return 0;
8388
    }
8389
 
8390
    public int compareTo(getEntityLogisticsEstimation_result other) {
8391
      if (!getClass().equals(other.getClass())) {
8392
        return getClass().getName().compareTo(other.getClass().getName());
8393
      }
8394
 
8395
      int lastComparison = 0;
8396
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
8397
 
8398
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8399
      if (lastComparison != 0) {
8400
        return lastComparison;
8401
      }
8402
      if (isSetSuccess()) {
8403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8404
        if (lastComparison != 0) {
8405
          return lastComparison;
8406
        }
8407
      }
8408
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8409
      if (lastComparison != 0) {
8410
        return lastComparison;
8411
      }
8412
      if (isSetSe()) {
8413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8414
        if (lastComparison != 0) {
8415
          return lastComparison;
8416
        }
8417
      }
8418
      return 0;
8419
    }
8420
 
8421
    public _Fields fieldForId(int fieldId) {
8422
      return _Fields.findByThriftId(fieldId);
8423
    }
8424
 
8425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8426
      org.apache.thrift.protocol.TField field;
8427
      iprot.readStructBegin();
8428
      while (true)
8429
      {
8430
        field = iprot.readFieldBegin();
8431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8432
          break;
8433
        }
8434
        switch (field.id) {
8435
          case 0: // SUCCESS
8436
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8437
              {
8438
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
8439
                this.success = new ArrayList<Long>(_list17.size);
8440
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
8441
                {
8442
                  long _elem19; // required
8443
                  _elem19 = iprot.readI64();
8444
                  this.success.add(_elem19);
8445
                }
8446
                iprot.readListEnd();
8447
              }
8448
            } else { 
8449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8450
            }
8451
            break;
8452
          case 1: // SE
8453
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8454
              this.se = new LogisticsServiceException();
8455
              this.se.read(iprot);
8456
            } else { 
8457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8458
            }
8459
            break;
8460
          default:
8461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8462
        }
8463
        iprot.readFieldEnd();
8464
      }
8465
      iprot.readStructEnd();
8466
      validate();
8467
    }
8468
 
8469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8470
      oprot.writeStructBegin(STRUCT_DESC);
8471
 
8472
      if (this.isSetSuccess()) {
8473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8474
        {
8475
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8476
          for (long _iter20 : this.success)
8477
          {
8478
            oprot.writeI64(_iter20);
8479
          }
8480
          oprot.writeListEnd();
8481
        }
8482
        oprot.writeFieldEnd();
8483
      } else if (this.isSetSe()) {
8484
        oprot.writeFieldBegin(SE_FIELD_DESC);
8485
        this.se.write(oprot);
8486
        oprot.writeFieldEnd();
8487
      }
8488
      oprot.writeFieldStop();
8489
      oprot.writeStructEnd();
8490
    }
8491
 
8492
    @Override
8493
    public String toString() {
8494
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
8495
      boolean first = true;
8496
 
8497
      sb.append("success:");
8498
      if (this.success == null) {
8499
        sb.append("null");
8500
      } else {
8501
        sb.append(this.success);
8502
      }
8503
      first = false;
8504
      if (!first) sb.append(", ");
8505
      sb.append("se:");
8506
      if (this.se == null) {
8507
        sb.append("null");
8508
      } else {
8509
        sb.append(this.se);
8510
      }
8511
      first = false;
8512
      sb.append(")");
8513
      return sb.toString();
8514
    }
8515
 
8516
    public void validate() throws org.apache.thrift.TException {
8517
      // check for required fields
8518
    }
8519
 
8520
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8521
      try {
8522
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8523
      } catch (org.apache.thrift.TException te) {
8524
        throw new java.io.IOException(te);
8525
      }
8526
    }
8527
 
8528
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8529
      try {
8530
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8531
      } catch (org.apache.thrift.TException te) {
8532
        throw new java.io.IOException(te);
8533
      }
8534
    }
8535
 
8536
  }
8537
 
412 ashish 8538
}