Subversion Repositories SmartDukaan

Rev

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