Subversion Repositories SmartDukaan

Rev

Rev 7788 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7788 manish.sha 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
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;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LogisticsLocationInfo implements org.apache.thrift.TBase<LogisticsLocationInfo, LogisticsLocationInfo._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LogisticsLocationInfo");
25
 
26
  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);
27
  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);
28
  private static final org.apache.thrift.protocol.TField DESTINATION_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destinationCode", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField EXP_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("expAvailable", org.apache.thrift.protocol.TType.BOOL, (short)4);
30
  private static final org.apache.thrift.protocol.TField COD_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codAvailable", org.apache.thrift.protocol.TType.BOOL, (short)5);
31
  private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)6);
32
  private static final org.apache.thrift.protocol.TField COD_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("codLimit", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField PREPAID_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidLimit", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTime", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField DELIVERY_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("delivery_delay", org.apache.thrift.protocol.TType.I64, (short)11);
19421 manish.sha 37
  private static final org.apache.thrift.protocol.TField ZONE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("zoneCode", org.apache.thrift.protocol.TType.STRING, (short)12);
7788 manish.sha 38
 
39
  private long providerId; // required
40
  private String pinCode; // required
41
  private String destinationCode; // required
42
  private boolean expAvailable; // required
43
  private boolean codAvailable; // required
44
  private boolean otgAvailable; // required
45
  private long codLimit; // required
46
  private long prepaidLimit; // required
47
  private long warehouseId; // required
48
  private long deliveryTime; // required
49
  private long delivery_delay; // required
19421 manish.sha 50
  private String zoneCode; // required
7788 manish.sha 51
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54
    PROVIDER_ID((short)1, "providerId"),
55
    PIN_CODE((short)2, "pinCode"),
56
    DESTINATION_CODE((short)3, "destinationCode"),
57
    EXP_AVAILABLE((short)4, "expAvailable"),
58
    COD_AVAILABLE((short)5, "codAvailable"),
59
    OTG_AVAILABLE((short)6, "otgAvailable"),
60
    COD_LIMIT((short)7, "codLimit"),
61
    PREPAID_LIMIT((short)8, "prepaidLimit"),
62
    WAREHOUSE_ID((short)9, "warehouseId"),
63
    DELIVERY_TIME((short)10, "deliveryTime"),
19421 manish.sha 64
    DELIVERY_DELAY((short)11, "delivery_delay"),
65
    ZONE_CODE((short)12, "zoneCode");
7788 manish.sha 66
 
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
68
 
69
    static {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
71
        byName.put(field.getFieldName(), field);
72
      }
73
    }
74
 
75
    /**
76
     * Find the _Fields constant that matches fieldId, or null if its not found.
77
     */
78
    public static _Fields findByThriftId(int fieldId) {
79
      switch(fieldId) {
80
        case 1: // PROVIDER_ID
81
          return PROVIDER_ID;
82
        case 2: // PIN_CODE
83
          return PIN_CODE;
84
        case 3: // DESTINATION_CODE
85
          return DESTINATION_CODE;
86
        case 4: // EXP_AVAILABLE
87
          return EXP_AVAILABLE;
88
        case 5: // COD_AVAILABLE
89
          return COD_AVAILABLE;
90
        case 6: // OTG_AVAILABLE
91
          return OTG_AVAILABLE;
92
        case 7: // COD_LIMIT
93
          return COD_LIMIT;
94
        case 8: // PREPAID_LIMIT
95
          return PREPAID_LIMIT;
96
        case 9: // WAREHOUSE_ID
97
          return WAREHOUSE_ID;
98
        case 10: // DELIVERY_TIME
99
          return DELIVERY_TIME;
100
        case 11: // DELIVERY_DELAY
101
          return DELIVERY_DELAY;
19421 manish.sha 102
        case 12: // ZONE_CODE
103
          return ZONE_CODE;
7788 manish.sha 104
        default:
105
          return null;
106
      }
107
    }
108
 
109
    /**
110
     * Find the _Fields constant that matches fieldId, throwing an exception
111
     * if it is not found.
112
     */
113
    public static _Fields findByThriftIdOrThrow(int fieldId) {
114
      _Fields fields = findByThriftId(fieldId);
115
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
116
      return fields;
117
    }
118
 
119
    /**
120
     * Find the _Fields constant that matches name, or null if its not found.
121
     */
122
    public static _Fields findByName(String name) {
123
      return byName.get(name);
124
    }
125
 
126
    private final short _thriftId;
127
    private final String _fieldName;
128
 
129
    _Fields(short thriftId, String fieldName) {
130
      _thriftId = thriftId;
131
      _fieldName = fieldName;
132
    }
133
 
134
    public short getThriftFieldId() {
135
      return _thriftId;
136
    }
137
 
138
    public String getFieldName() {
139
      return _fieldName;
140
    }
141
  }
142
 
143
  // isset id assignments
144
  private static final int __PROVIDERID_ISSET_ID = 0;
145
  private static final int __EXPAVAILABLE_ISSET_ID = 1;
146
  private static final int __CODAVAILABLE_ISSET_ID = 2;
147
  private static final int __OTGAVAILABLE_ISSET_ID = 3;
148
  private static final int __CODLIMIT_ISSET_ID = 4;
149
  private static final int __PREPAIDLIMIT_ISSET_ID = 5;
150
  private static final int __WAREHOUSEID_ISSET_ID = 6;
151
  private static final int __DELIVERYTIME_ISSET_ID = 7;
152
  private static final int __DELIVERY_DELAY_ISSET_ID = 8;
153
  private BitSet __isset_bit_vector = new BitSet(9);
154
 
155
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
156
  static {
157
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
158
    tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
160
    tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
162
    tmpMap.put(_Fields.DESTINATION_CODE, new org.apache.thrift.meta_data.FieldMetaData("destinationCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
164
    tmpMap.put(_Fields.EXP_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("expAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
166
    tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
168
    tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
170
    tmpMap.put(_Fields.COD_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("codLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172
    tmpMap.put(_Fields.PREPAID_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("prepaidLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
174
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
176
    tmpMap.put(_Fields.DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("deliveryTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
178
    tmpMap.put(_Fields.DELIVERY_DELAY, new org.apache.thrift.meta_data.FieldMetaData("delivery_delay", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19421 manish.sha 180
    tmpMap.put(_Fields.ZONE_CODE, new org.apache.thrift.meta_data.FieldMetaData("zoneCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7788 manish.sha 182
    metaDataMap = Collections.unmodifiableMap(tmpMap);
183
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LogisticsLocationInfo.class, metaDataMap);
184
  }
185
 
186
  public LogisticsLocationInfo() {
187
  }
188
 
189
  public LogisticsLocationInfo(
190
    long providerId,
191
    String pinCode,
192
    String destinationCode,
193
    boolean expAvailable,
194
    boolean codAvailable,
195
    boolean otgAvailable,
196
    long codLimit,
197
    long prepaidLimit,
198
    long warehouseId,
199
    long deliveryTime,
19421 manish.sha 200
    long delivery_delay,
201
    String zoneCode)
7788 manish.sha 202
  {
203
    this();
204
    this.providerId = providerId;
205
    setProviderIdIsSet(true);
206
    this.pinCode = pinCode;
207
    this.destinationCode = destinationCode;
208
    this.expAvailable = expAvailable;
209
    setExpAvailableIsSet(true);
210
    this.codAvailable = codAvailable;
211
    setCodAvailableIsSet(true);
212
    this.otgAvailable = otgAvailable;
213
    setOtgAvailableIsSet(true);
214
    this.codLimit = codLimit;
215
    setCodLimitIsSet(true);
216
    this.prepaidLimit = prepaidLimit;
217
    setPrepaidLimitIsSet(true);
218
    this.warehouseId = warehouseId;
219
    setWarehouseIdIsSet(true);
220
    this.deliveryTime = deliveryTime;
221
    setDeliveryTimeIsSet(true);
222
    this.delivery_delay = delivery_delay;
223
    setDelivery_delayIsSet(true);
19421 manish.sha 224
    this.zoneCode = zoneCode;
7788 manish.sha 225
  }
226
 
227
  /**
228
   * Performs a deep copy on <i>other</i>.
229
   */
230
  public LogisticsLocationInfo(LogisticsLocationInfo other) {
231
    __isset_bit_vector.clear();
232
    __isset_bit_vector.or(other.__isset_bit_vector);
233
    this.providerId = other.providerId;
234
    if (other.isSetPinCode()) {
235
      this.pinCode = other.pinCode;
236
    }
237
    if (other.isSetDestinationCode()) {
238
      this.destinationCode = other.destinationCode;
239
    }
240
    this.expAvailable = other.expAvailable;
241
    this.codAvailable = other.codAvailable;
242
    this.otgAvailable = other.otgAvailable;
243
    this.codLimit = other.codLimit;
244
    this.prepaidLimit = other.prepaidLimit;
245
    this.warehouseId = other.warehouseId;
246
    this.deliveryTime = other.deliveryTime;
247
    this.delivery_delay = other.delivery_delay;
19421 manish.sha 248
    if (other.isSetZoneCode()) {
249
      this.zoneCode = other.zoneCode;
250
    }
7788 manish.sha 251
  }
252
 
253
  public LogisticsLocationInfo deepCopy() {
254
    return new LogisticsLocationInfo(this);
255
  }
256
 
257
  @Override
258
  public void clear() {
259
    setProviderIdIsSet(false);
260
    this.providerId = 0;
261
    this.pinCode = null;
262
    this.destinationCode = null;
263
    setExpAvailableIsSet(false);
264
    this.expAvailable = false;
265
    setCodAvailableIsSet(false);
266
    this.codAvailable = false;
267
    setOtgAvailableIsSet(false);
268
    this.otgAvailable = false;
269
    setCodLimitIsSet(false);
270
    this.codLimit = 0;
271
    setPrepaidLimitIsSet(false);
272
    this.prepaidLimit = 0;
273
    setWarehouseIdIsSet(false);
274
    this.warehouseId = 0;
275
    setDeliveryTimeIsSet(false);
276
    this.deliveryTime = 0;
277
    setDelivery_delayIsSet(false);
278
    this.delivery_delay = 0;
19421 manish.sha 279
    this.zoneCode = null;
7788 manish.sha 280
  }
281
 
282
  public long getProviderId() {
283
    return this.providerId;
284
  }
285
 
286
  public void setProviderId(long providerId) {
287
    this.providerId = providerId;
288
    setProviderIdIsSet(true);
289
  }
290
 
291
  public void unsetProviderId() {
292
    __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
293
  }
294
 
295
  /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
296
  public boolean isSetProviderId() {
297
    return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
298
  }
299
 
300
  public void setProviderIdIsSet(boolean value) {
301
    __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
302
  }
303
 
304
  public String getPinCode() {
305
    return this.pinCode;
306
  }
307
 
308
  public void setPinCode(String pinCode) {
309
    this.pinCode = pinCode;
310
  }
311
 
312
  public void unsetPinCode() {
313
    this.pinCode = null;
314
  }
315
 
316
  /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
317
  public boolean isSetPinCode() {
318
    return this.pinCode != null;
319
  }
320
 
321
  public void setPinCodeIsSet(boolean value) {
322
    if (!value) {
323
      this.pinCode = null;
324
    }
325
  }
326
 
327
  public String getDestinationCode() {
328
    return this.destinationCode;
329
  }
330
 
331
  public void setDestinationCode(String destinationCode) {
332
    this.destinationCode = destinationCode;
333
  }
334
 
335
  public void unsetDestinationCode() {
336
    this.destinationCode = null;
337
  }
338
 
339
  /** Returns true if field destinationCode is set (has been assigned a value) and false otherwise */
340
  public boolean isSetDestinationCode() {
341
    return this.destinationCode != null;
342
  }
343
 
344
  public void setDestinationCodeIsSet(boolean value) {
345
    if (!value) {
346
      this.destinationCode = null;
347
    }
348
  }
349
 
350
  public boolean isExpAvailable() {
351
    return this.expAvailable;
352
  }
353
 
354
  public void setExpAvailable(boolean expAvailable) {
355
    this.expAvailable = expAvailable;
356
    setExpAvailableIsSet(true);
357
  }
358
 
359
  public void unsetExpAvailable() {
360
    __isset_bit_vector.clear(__EXPAVAILABLE_ISSET_ID);
361
  }
362
 
363
  /** Returns true if field expAvailable is set (has been assigned a value) and false otherwise */
364
  public boolean isSetExpAvailable() {
365
    return __isset_bit_vector.get(__EXPAVAILABLE_ISSET_ID);
366
  }
367
 
368
  public void setExpAvailableIsSet(boolean value) {
369
    __isset_bit_vector.set(__EXPAVAILABLE_ISSET_ID, value);
370
  }
371
 
372
  public boolean isCodAvailable() {
373
    return this.codAvailable;
374
  }
375
 
376
  public void setCodAvailable(boolean codAvailable) {
377
    this.codAvailable = codAvailable;
378
    setCodAvailableIsSet(true);
379
  }
380
 
381
  public void unsetCodAvailable() {
382
    __isset_bit_vector.clear(__CODAVAILABLE_ISSET_ID);
383
  }
384
 
385
  /** Returns true if field codAvailable is set (has been assigned a value) and false otherwise */
386
  public boolean isSetCodAvailable() {
387
    return __isset_bit_vector.get(__CODAVAILABLE_ISSET_ID);
388
  }
389
 
390
  public void setCodAvailableIsSet(boolean value) {
391
    __isset_bit_vector.set(__CODAVAILABLE_ISSET_ID, value);
392
  }
393
 
394
  public boolean isOtgAvailable() {
395
    return this.otgAvailable;
396
  }
397
 
398
  public void setOtgAvailable(boolean otgAvailable) {
399
    this.otgAvailable = otgAvailable;
400
    setOtgAvailableIsSet(true);
401
  }
402
 
403
  public void unsetOtgAvailable() {
404
    __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
405
  }
406
 
407
  /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
408
  public boolean isSetOtgAvailable() {
409
    return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
410
  }
411
 
412
  public void setOtgAvailableIsSet(boolean value) {
413
    __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
414
  }
415
 
416
  public long getCodLimit() {
417
    return this.codLimit;
418
  }
419
 
420
  public void setCodLimit(long codLimit) {
421
    this.codLimit = codLimit;
422
    setCodLimitIsSet(true);
423
  }
424
 
425
  public void unsetCodLimit() {
426
    __isset_bit_vector.clear(__CODLIMIT_ISSET_ID);
427
  }
428
 
429
  /** Returns true if field codLimit is set (has been assigned a value) and false otherwise */
430
  public boolean isSetCodLimit() {
431
    return __isset_bit_vector.get(__CODLIMIT_ISSET_ID);
432
  }
433
 
434
  public void setCodLimitIsSet(boolean value) {
435
    __isset_bit_vector.set(__CODLIMIT_ISSET_ID, value);
436
  }
437
 
438
  public long getPrepaidLimit() {
439
    return this.prepaidLimit;
440
  }
441
 
442
  public void setPrepaidLimit(long prepaidLimit) {
443
    this.prepaidLimit = prepaidLimit;
444
    setPrepaidLimitIsSet(true);
445
  }
446
 
447
  public void unsetPrepaidLimit() {
448
    __isset_bit_vector.clear(__PREPAIDLIMIT_ISSET_ID);
449
  }
450
 
451
  /** Returns true if field prepaidLimit is set (has been assigned a value) and false otherwise */
452
  public boolean isSetPrepaidLimit() {
453
    return __isset_bit_vector.get(__PREPAIDLIMIT_ISSET_ID);
454
  }
455
 
456
  public void setPrepaidLimitIsSet(boolean value) {
457
    __isset_bit_vector.set(__PREPAIDLIMIT_ISSET_ID, value);
458
  }
459
 
460
  public long getWarehouseId() {
461
    return this.warehouseId;
462
  }
463
 
464
  public void setWarehouseId(long warehouseId) {
465
    this.warehouseId = warehouseId;
466
    setWarehouseIdIsSet(true);
467
  }
468
 
469
  public void unsetWarehouseId() {
470
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
471
  }
472
 
473
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
474
  public boolean isSetWarehouseId() {
475
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
476
  }
477
 
478
  public void setWarehouseIdIsSet(boolean value) {
479
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
480
  }
481
 
482
  public long getDeliveryTime() {
483
    return this.deliveryTime;
484
  }
485
 
486
  public void setDeliveryTime(long deliveryTime) {
487
    this.deliveryTime = deliveryTime;
488
    setDeliveryTimeIsSet(true);
489
  }
490
 
491
  public void unsetDeliveryTime() {
492
    __isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
493
  }
494
 
495
  /** Returns true if field deliveryTime is set (has been assigned a value) and false otherwise */
496
  public boolean isSetDeliveryTime() {
497
    return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
498
  }
499
 
500
  public void setDeliveryTimeIsSet(boolean value) {
501
    __isset_bit_vector.set(__DELIVERYTIME_ISSET_ID, value);
502
  }
503
 
504
  public long getDelivery_delay() {
505
    return this.delivery_delay;
506
  }
507
 
508
  public void setDelivery_delay(long delivery_delay) {
509
    this.delivery_delay = delivery_delay;
510
    setDelivery_delayIsSet(true);
511
  }
512
 
513
  public void unsetDelivery_delay() {
514
    __isset_bit_vector.clear(__DELIVERY_DELAY_ISSET_ID);
515
  }
516
 
517
  /** Returns true if field delivery_delay is set (has been assigned a value) and false otherwise */
518
  public boolean isSetDelivery_delay() {
519
    return __isset_bit_vector.get(__DELIVERY_DELAY_ISSET_ID);
520
  }
521
 
522
  public void setDelivery_delayIsSet(boolean value) {
523
    __isset_bit_vector.set(__DELIVERY_DELAY_ISSET_ID, value);
524
  }
525
 
19421 manish.sha 526
  public String getZoneCode() {
527
    return this.zoneCode;
528
  }
529
 
530
  public void setZoneCode(String zoneCode) {
531
    this.zoneCode = zoneCode;
532
  }
533
 
534
  public void unsetZoneCode() {
535
    this.zoneCode = null;
536
  }
537
 
538
  /** Returns true if field zoneCode is set (has been assigned a value) and false otherwise */
539
  public boolean isSetZoneCode() {
540
    return this.zoneCode != null;
541
  }
542
 
543
  public void setZoneCodeIsSet(boolean value) {
544
    if (!value) {
545
      this.zoneCode = null;
546
    }
547
  }
548
 
7788 manish.sha 549
  public void setFieldValue(_Fields field, Object value) {
550
    switch (field) {
551
    case PROVIDER_ID:
552
      if (value == null) {
553
        unsetProviderId();
554
      } else {
555
        setProviderId((Long)value);
556
      }
557
      break;
558
 
559
    case PIN_CODE:
560
      if (value == null) {
561
        unsetPinCode();
562
      } else {
563
        setPinCode((String)value);
564
      }
565
      break;
566
 
567
    case DESTINATION_CODE:
568
      if (value == null) {
569
        unsetDestinationCode();
570
      } else {
571
        setDestinationCode((String)value);
572
      }
573
      break;
574
 
575
    case EXP_AVAILABLE:
576
      if (value == null) {
577
        unsetExpAvailable();
578
      } else {
579
        setExpAvailable((Boolean)value);
580
      }
581
      break;
582
 
583
    case COD_AVAILABLE:
584
      if (value == null) {
585
        unsetCodAvailable();
586
      } else {
587
        setCodAvailable((Boolean)value);
588
      }
589
      break;
590
 
591
    case OTG_AVAILABLE:
592
      if (value == null) {
593
        unsetOtgAvailable();
594
      } else {
595
        setOtgAvailable((Boolean)value);
596
      }
597
      break;
598
 
599
    case COD_LIMIT:
600
      if (value == null) {
601
        unsetCodLimit();
602
      } else {
603
        setCodLimit((Long)value);
604
      }
605
      break;
606
 
607
    case PREPAID_LIMIT:
608
      if (value == null) {
609
        unsetPrepaidLimit();
610
      } else {
611
        setPrepaidLimit((Long)value);
612
      }
613
      break;
614
 
615
    case WAREHOUSE_ID:
616
      if (value == null) {
617
        unsetWarehouseId();
618
      } else {
619
        setWarehouseId((Long)value);
620
      }
621
      break;
622
 
623
    case DELIVERY_TIME:
624
      if (value == null) {
625
        unsetDeliveryTime();
626
      } else {
627
        setDeliveryTime((Long)value);
628
      }
629
      break;
630
 
631
    case DELIVERY_DELAY:
632
      if (value == null) {
633
        unsetDelivery_delay();
634
      } else {
635
        setDelivery_delay((Long)value);
636
      }
637
      break;
638
 
19421 manish.sha 639
    case ZONE_CODE:
640
      if (value == null) {
641
        unsetZoneCode();
642
      } else {
643
        setZoneCode((String)value);
644
      }
645
      break;
646
 
7788 manish.sha 647
    }
648
  }
649
 
650
  public Object getFieldValue(_Fields field) {
651
    switch (field) {
652
    case PROVIDER_ID:
653
      return Long.valueOf(getProviderId());
654
 
655
    case PIN_CODE:
656
      return getPinCode();
657
 
658
    case DESTINATION_CODE:
659
      return getDestinationCode();
660
 
661
    case EXP_AVAILABLE:
662
      return Boolean.valueOf(isExpAvailable());
663
 
664
    case COD_AVAILABLE:
665
      return Boolean.valueOf(isCodAvailable());
666
 
667
    case OTG_AVAILABLE:
668
      return Boolean.valueOf(isOtgAvailable());
669
 
670
    case COD_LIMIT:
671
      return Long.valueOf(getCodLimit());
672
 
673
    case PREPAID_LIMIT:
674
      return Long.valueOf(getPrepaidLimit());
675
 
676
    case WAREHOUSE_ID:
677
      return Long.valueOf(getWarehouseId());
678
 
679
    case DELIVERY_TIME:
680
      return Long.valueOf(getDeliveryTime());
681
 
682
    case DELIVERY_DELAY:
683
      return Long.valueOf(getDelivery_delay());
684
 
19421 manish.sha 685
    case ZONE_CODE:
686
      return getZoneCode();
687
 
7788 manish.sha 688
    }
689
    throw new IllegalStateException();
690
  }
691
 
692
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
693
  public boolean isSet(_Fields field) {
694
    if (field == null) {
695
      throw new IllegalArgumentException();
696
    }
697
 
698
    switch (field) {
699
    case PROVIDER_ID:
700
      return isSetProviderId();
701
    case PIN_CODE:
702
      return isSetPinCode();
703
    case DESTINATION_CODE:
704
      return isSetDestinationCode();
705
    case EXP_AVAILABLE:
706
      return isSetExpAvailable();
707
    case COD_AVAILABLE:
708
      return isSetCodAvailable();
709
    case OTG_AVAILABLE:
710
      return isSetOtgAvailable();
711
    case COD_LIMIT:
712
      return isSetCodLimit();
713
    case PREPAID_LIMIT:
714
      return isSetPrepaidLimit();
715
    case WAREHOUSE_ID:
716
      return isSetWarehouseId();
717
    case DELIVERY_TIME:
718
      return isSetDeliveryTime();
719
    case DELIVERY_DELAY:
720
      return isSetDelivery_delay();
19421 manish.sha 721
    case ZONE_CODE:
722
      return isSetZoneCode();
7788 manish.sha 723
    }
724
    throw new IllegalStateException();
725
  }
726
 
727
  @Override
728
  public boolean equals(Object that) {
729
    if (that == null)
730
      return false;
731
    if (that instanceof LogisticsLocationInfo)
732
      return this.equals((LogisticsLocationInfo)that);
733
    return false;
734
  }
735
 
736
  public boolean equals(LogisticsLocationInfo that) {
737
    if (that == null)
738
      return false;
739
 
740
    boolean this_present_providerId = true;
741
    boolean that_present_providerId = true;
742
    if (this_present_providerId || that_present_providerId) {
743
      if (!(this_present_providerId && that_present_providerId))
744
        return false;
745
      if (this.providerId != that.providerId)
746
        return false;
747
    }
748
 
749
    boolean this_present_pinCode = true && this.isSetPinCode();
750
    boolean that_present_pinCode = true && that.isSetPinCode();
751
    if (this_present_pinCode || that_present_pinCode) {
752
      if (!(this_present_pinCode && that_present_pinCode))
753
        return false;
754
      if (!this.pinCode.equals(that.pinCode))
755
        return false;
756
    }
757
 
758
    boolean this_present_destinationCode = true && this.isSetDestinationCode();
759
    boolean that_present_destinationCode = true && that.isSetDestinationCode();
760
    if (this_present_destinationCode || that_present_destinationCode) {
761
      if (!(this_present_destinationCode && that_present_destinationCode))
762
        return false;
763
      if (!this.destinationCode.equals(that.destinationCode))
764
        return false;
765
    }
766
 
767
    boolean this_present_expAvailable = true;
768
    boolean that_present_expAvailable = true;
769
    if (this_present_expAvailable || that_present_expAvailable) {
770
      if (!(this_present_expAvailable && that_present_expAvailable))
771
        return false;
772
      if (this.expAvailable != that.expAvailable)
773
        return false;
774
    }
775
 
776
    boolean this_present_codAvailable = true;
777
    boolean that_present_codAvailable = true;
778
    if (this_present_codAvailable || that_present_codAvailable) {
779
      if (!(this_present_codAvailable && that_present_codAvailable))
780
        return false;
781
      if (this.codAvailable != that.codAvailable)
782
        return false;
783
    }
784
 
785
    boolean this_present_otgAvailable = true;
786
    boolean that_present_otgAvailable = true;
787
    if (this_present_otgAvailable || that_present_otgAvailable) {
788
      if (!(this_present_otgAvailable && that_present_otgAvailable))
789
        return false;
790
      if (this.otgAvailable != that.otgAvailable)
791
        return false;
792
    }
793
 
794
    boolean this_present_codLimit = true;
795
    boolean that_present_codLimit = true;
796
    if (this_present_codLimit || that_present_codLimit) {
797
      if (!(this_present_codLimit && that_present_codLimit))
798
        return false;
799
      if (this.codLimit != that.codLimit)
800
        return false;
801
    }
802
 
803
    boolean this_present_prepaidLimit = true;
804
    boolean that_present_prepaidLimit = true;
805
    if (this_present_prepaidLimit || that_present_prepaidLimit) {
806
      if (!(this_present_prepaidLimit && that_present_prepaidLimit))
807
        return false;
808
      if (this.prepaidLimit != that.prepaidLimit)
809
        return false;
810
    }
811
 
812
    boolean this_present_warehouseId = true;
813
    boolean that_present_warehouseId = true;
814
    if (this_present_warehouseId || that_present_warehouseId) {
815
      if (!(this_present_warehouseId && that_present_warehouseId))
816
        return false;
817
      if (this.warehouseId != that.warehouseId)
818
        return false;
819
    }
820
 
821
    boolean this_present_deliveryTime = true;
822
    boolean that_present_deliveryTime = true;
823
    if (this_present_deliveryTime || that_present_deliveryTime) {
824
      if (!(this_present_deliveryTime && that_present_deliveryTime))
825
        return false;
826
      if (this.deliveryTime != that.deliveryTime)
827
        return false;
828
    }
829
 
830
    boolean this_present_delivery_delay = true;
831
    boolean that_present_delivery_delay = true;
832
    if (this_present_delivery_delay || that_present_delivery_delay) {
833
      if (!(this_present_delivery_delay && that_present_delivery_delay))
834
        return false;
835
      if (this.delivery_delay != that.delivery_delay)
836
        return false;
837
    }
838
 
19421 manish.sha 839
    boolean this_present_zoneCode = true && this.isSetZoneCode();
840
    boolean that_present_zoneCode = true && that.isSetZoneCode();
841
    if (this_present_zoneCode || that_present_zoneCode) {
842
      if (!(this_present_zoneCode && that_present_zoneCode))
843
        return false;
844
      if (!this.zoneCode.equals(that.zoneCode))
845
        return false;
846
    }
847
 
7788 manish.sha 848
    return true;
849
  }
850
 
851
  @Override
852
  public int hashCode() {
853
    return 0;
854
  }
855
 
856
  public int compareTo(LogisticsLocationInfo other) {
857
    if (!getClass().equals(other.getClass())) {
858
      return getClass().getName().compareTo(other.getClass().getName());
859
    }
860
 
861
    int lastComparison = 0;
862
    LogisticsLocationInfo typedOther = (LogisticsLocationInfo)other;
863
 
864
    lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
865
    if (lastComparison != 0) {
866
      return lastComparison;
867
    }
868
    if (isSetProviderId()) {
869
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
870
      if (lastComparison != 0) {
871
        return lastComparison;
872
      }
873
    }
874
    lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
875
    if (lastComparison != 0) {
876
      return lastComparison;
877
    }
878
    if (isSetPinCode()) {
879
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
880
      if (lastComparison != 0) {
881
        return lastComparison;
882
      }
883
    }
884
    lastComparison = Boolean.valueOf(isSetDestinationCode()).compareTo(typedOther.isSetDestinationCode());
885
    if (lastComparison != 0) {
886
      return lastComparison;
887
    }
888
    if (isSetDestinationCode()) {
889
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destinationCode, typedOther.destinationCode);
890
      if (lastComparison != 0) {
891
        return lastComparison;
892
      }
893
    }
894
    lastComparison = Boolean.valueOf(isSetExpAvailable()).compareTo(typedOther.isSetExpAvailable());
895
    if (lastComparison != 0) {
896
      return lastComparison;
897
    }
898
    if (isSetExpAvailable()) {
899
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expAvailable, typedOther.expAvailable);
900
      if (lastComparison != 0) {
901
        return lastComparison;
902
      }
903
    }
904
    lastComparison = Boolean.valueOf(isSetCodAvailable()).compareTo(typedOther.isSetCodAvailable());
905
    if (lastComparison != 0) {
906
      return lastComparison;
907
    }
908
    if (isSetCodAvailable()) {
909
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codAvailable, typedOther.codAvailable);
910
      if (lastComparison != 0) {
911
        return lastComparison;
912
      }
913
    }
914
    lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
915
    if (lastComparison != 0) {
916
      return lastComparison;
917
    }
918
    if (isSetOtgAvailable()) {
919
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
920
      if (lastComparison != 0) {
921
        return lastComparison;
922
      }
923
    }
924
    lastComparison = Boolean.valueOf(isSetCodLimit()).compareTo(typedOther.isSetCodLimit());
925
    if (lastComparison != 0) {
926
      return lastComparison;
927
    }
928
    if (isSetCodLimit()) {
929
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codLimit, typedOther.codLimit);
930
      if (lastComparison != 0) {
931
        return lastComparison;
932
      }
933
    }
934
    lastComparison = Boolean.valueOf(isSetPrepaidLimit()).compareTo(typedOther.isSetPrepaidLimit());
935
    if (lastComparison != 0) {
936
      return lastComparison;
937
    }
938
    if (isSetPrepaidLimit()) {
939
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prepaidLimit, typedOther.prepaidLimit);
940
      if (lastComparison != 0) {
941
        return lastComparison;
942
      }
943
    }
944
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
945
    if (lastComparison != 0) {
946
      return lastComparison;
947
    }
948
    if (isSetWarehouseId()) {
949
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
950
      if (lastComparison != 0) {
951
        return lastComparison;
952
      }
953
    }
954
    lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(typedOther.isSetDeliveryTime());
955
    if (lastComparison != 0) {
956
      return lastComparison;
957
    }
958
    if (isSetDeliveryTime()) {
959
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTime, typedOther.deliveryTime);
960
      if (lastComparison != 0) {
961
        return lastComparison;
962
      }
963
    }
964
    lastComparison = Boolean.valueOf(isSetDelivery_delay()).compareTo(typedOther.isSetDelivery_delay());
965
    if (lastComparison != 0) {
966
      return lastComparison;
967
    }
968
    if (isSetDelivery_delay()) {
969
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delivery_delay, typedOther.delivery_delay);
970
      if (lastComparison != 0) {
971
        return lastComparison;
972
      }
973
    }
19421 manish.sha 974
    lastComparison = Boolean.valueOf(isSetZoneCode()).compareTo(typedOther.isSetZoneCode());
975
    if (lastComparison != 0) {
976
      return lastComparison;
977
    }
978
    if (isSetZoneCode()) {
979
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.zoneCode, typedOther.zoneCode);
980
      if (lastComparison != 0) {
981
        return lastComparison;
982
      }
983
    }
7788 manish.sha 984
    return 0;
985
  }
986
 
987
  public _Fields fieldForId(int fieldId) {
988
    return _Fields.findByThriftId(fieldId);
989
  }
990
 
991
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
992
    org.apache.thrift.protocol.TField field;
993
    iprot.readStructBegin();
994
    while (true)
995
    {
996
      field = iprot.readFieldBegin();
997
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
998
        break;
999
      }
1000
      switch (field.id) {
1001
        case 1: // PROVIDER_ID
1002
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1003
            this.providerId = iprot.readI64();
1004
            setProviderIdIsSet(true);
1005
          } else { 
1006
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1007
          }
1008
          break;
1009
        case 2: // PIN_CODE
1010
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1011
            this.pinCode = iprot.readString();
1012
          } else { 
1013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1014
          }
1015
          break;
1016
        case 3: // DESTINATION_CODE
1017
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1018
            this.destinationCode = iprot.readString();
1019
          } else { 
1020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1021
          }
1022
          break;
1023
        case 4: // EXP_AVAILABLE
1024
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1025
            this.expAvailable = iprot.readBool();
1026
            setExpAvailableIsSet(true);
1027
          } else { 
1028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1029
          }
1030
          break;
1031
        case 5: // COD_AVAILABLE
1032
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1033
            this.codAvailable = iprot.readBool();
1034
            setCodAvailableIsSet(true);
1035
          } else { 
1036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1037
          }
1038
          break;
1039
        case 6: // OTG_AVAILABLE
1040
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1041
            this.otgAvailable = iprot.readBool();
1042
            setOtgAvailableIsSet(true);
1043
          } else { 
1044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1045
          }
1046
          break;
1047
        case 7: // COD_LIMIT
1048
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1049
            this.codLimit = iprot.readI64();
1050
            setCodLimitIsSet(true);
1051
          } else { 
1052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1053
          }
1054
          break;
1055
        case 8: // PREPAID_LIMIT
1056
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1057
            this.prepaidLimit = iprot.readI64();
1058
            setPrepaidLimitIsSet(true);
1059
          } else { 
1060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1061
          }
1062
          break;
1063
        case 9: // WAREHOUSE_ID
1064
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1065
            this.warehouseId = iprot.readI64();
1066
            setWarehouseIdIsSet(true);
1067
          } else { 
1068
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1069
          }
1070
          break;
1071
        case 10: // DELIVERY_TIME
1072
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1073
            this.deliveryTime = iprot.readI64();
1074
            setDeliveryTimeIsSet(true);
1075
          } else { 
1076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1077
          }
1078
          break;
1079
        case 11: // DELIVERY_DELAY
1080
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1081
            this.delivery_delay = iprot.readI64();
1082
            setDelivery_delayIsSet(true);
1083
          } else { 
1084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1085
          }
1086
          break;
19421 manish.sha 1087
        case 12: // ZONE_CODE
1088
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1089
            this.zoneCode = iprot.readString();
1090
          } else { 
1091
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1092
          }
1093
          break;
7788 manish.sha 1094
        default:
1095
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1096
      }
1097
      iprot.readFieldEnd();
1098
    }
1099
    iprot.readStructEnd();
1100
    validate();
1101
  }
1102
 
1103
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1104
    validate();
1105
 
1106
    oprot.writeStructBegin(STRUCT_DESC);
1107
    oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1108
    oprot.writeI64(this.providerId);
1109
    oprot.writeFieldEnd();
1110
    if (this.pinCode != null) {
1111
      oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
1112
      oprot.writeString(this.pinCode);
1113
      oprot.writeFieldEnd();
1114
    }
1115
    if (this.destinationCode != null) {
1116
      oprot.writeFieldBegin(DESTINATION_CODE_FIELD_DESC);
1117
      oprot.writeString(this.destinationCode);
1118
      oprot.writeFieldEnd();
1119
    }
1120
    oprot.writeFieldBegin(EXP_AVAILABLE_FIELD_DESC);
1121
    oprot.writeBool(this.expAvailable);
1122
    oprot.writeFieldEnd();
1123
    oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
1124
    oprot.writeBool(this.codAvailable);
1125
    oprot.writeFieldEnd();
1126
    oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
1127
    oprot.writeBool(this.otgAvailable);
1128
    oprot.writeFieldEnd();
1129
    oprot.writeFieldBegin(COD_LIMIT_FIELD_DESC);
1130
    oprot.writeI64(this.codLimit);
1131
    oprot.writeFieldEnd();
1132
    oprot.writeFieldBegin(PREPAID_LIMIT_FIELD_DESC);
1133
    oprot.writeI64(this.prepaidLimit);
1134
    oprot.writeFieldEnd();
1135
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1136
    oprot.writeI64(this.warehouseId);
1137
    oprot.writeFieldEnd();
1138
    oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
1139
    oprot.writeI64(this.deliveryTime);
1140
    oprot.writeFieldEnd();
1141
    oprot.writeFieldBegin(DELIVERY_DELAY_FIELD_DESC);
1142
    oprot.writeI64(this.delivery_delay);
1143
    oprot.writeFieldEnd();
19421 manish.sha 1144
    if (this.zoneCode != null) {
1145
      oprot.writeFieldBegin(ZONE_CODE_FIELD_DESC);
1146
      oprot.writeString(this.zoneCode);
1147
      oprot.writeFieldEnd();
1148
    }
7788 manish.sha 1149
    oprot.writeFieldStop();
1150
    oprot.writeStructEnd();
1151
  }
1152
 
1153
  @Override
1154
  public String toString() {
1155
    StringBuilder sb = new StringBuilder("LogisticsLocationInfo(");
1156
    boolean first = true;
1157
 
1158
    sb.append("providerId:");
1159
    sb.append(this.providerId);
1160
    first = false;
1161
    if (!first) sb.append(", ");
1162
    sb.append("pinCode:");
1163
    if (this.pinCode == null) {
1164
      sb.append("null");
1165
    } else {
1166
      sb.append(this.pinCode);
1167
    }
1168
    first = false;
1169
    if (!first) sb.append(", ");
1170
    sb.append("destinationCode:");
1171
    if (this.destinationCode == null) {
1172
      sb.append("null");
1173
    } else {
1174
      sb.append(this.destinationCode);
1175
    }
1176
    first = false;
1177
    if (!first) sb.append(", ");
1178
    sb.append("expAvailable:");
1179
    sb.append(this.expAvailable);
1180
    first = false;
1181
    if (!first) sb.append(", ");
1182
    sb.append("codAvailable:");
1183
    sb.append(this.codAvailable);
1184
    first = false;
1185
    if (!first) sb.append(", ");
1186
    sb.append("otgAvailable:");
1187
    sb.append(this.otgAvailable);
1188
    first = false;
1189
    if (!first) sb.append(", ");
1190
    sb.append("codLimit:");
1191
    sb.append(this.codLimit);
1192
    first = false;
1193
    if (!first) sb.append(", ");
1194
    sb.append("prepaidLimit:");
1195
    sb.append(this.prepaidLimit);
1196
    first = false;
1197
    if (!first) sb.append(", ");
1198
    sb.append("warehouseId:");
1199
    sb.append(this.warehouseId);
1200
    first = false;
1201
    if (!first) sb.append(", ");
1202
    sb.append("deliveryTime:");
1203
    sb.append(this.deliveryTime);
1204
    first = false;
1205
    if (!first) sb.append(", ");
1206
    sb.append("delivery_delay:");
1207
    sb.append(this.delivery_delay);
1208
    first = false;
19421 manish.sha 1209
    if (!first) sb.append(", ");
1210
    sb.append("zoneCode:");
1211
    if (this.zoneCode == null) {
1212
      sb.append("null");
1213
    } else {
1214
      sb.append(this.zoneCode);
1215
    }
1216
    first = false;
7788 manish.sha 1217
    sb.append(")");
1218
    return sb.toString();
1219
  }
1220
 
1221
  public void validate() throws org.apache.thrift.TException {
1222
    // check for required fields
1223
  }
1224
 
1225
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1226
    try {
1227
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1228
    } catch (org.apache.thrift.TException te) {
1229
      throw new java.io.IOException(te);
1230
    }
1231
  }
1232
 
1233
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1234
    try {
1235
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1236
      __isset_bit_vector = new BitSet(1);
1237
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1238
    } catch (org.apache.thrift.TException te) {
1239
      throw new java.io.IOException(te);
1240
    }
1241
  }
1242
 
1243
}
1244