Subversion Repositories SmartDukaan

Rev

Rev 7792 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7792 Rev 13146
Line 25... Line 25...
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("details", org.apache.thrift.protocol.TType.LIST, (short)3);
28
  private static final org.apache.thrift.protocol.TField DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("details", org.apache.thrift.protocol.TType.LIST, (short)3);
29
  private static final org.apache.thrift.protocol.TField PICKUP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickup", org.apache.thrift.protocol.TType.I32, (short)4);
29
  private static final org.apache.thrift.protocol.TField PICKUP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickup", org.apache.thrift.protocol.TType.I32, (short)4);
-
 
30
  private static final org.apache.thrift.protocol.TField BUNDLE_WEIGHT_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("bundleWeightLimit", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
-
 
31
  private static final org.apache.thrift.protocol.TField GROUP_SHIPMENT_ALLOWED_FIELD_DESC = new org.apache.thrift.protocol.TField("groupShipmentAllowed", org.apache.thrift.protocol.TType.BOOL, (short)6);
-
 
32
  private static final org.apache.thrift.protocol.TField MAX_COD_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("maxCodLimit", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
30
 
33
 
31
  private long id; // required
34
  private long id; // required
32
  private String name; // required
35
  private String name; // required
33
  private List<ProviderDetails> details; // required
36
  private List<ProviderDetails> details; // required
34
  private PickUpType pickup; // required
37
  private PickUpType pickup; // required
-
 
38
  private double bundleWeightLimit; // required
-
 
39
  private boolean groupShipmentAllowed; // required
-
 
40
  private double maxCodLimit; // required
35
 
41
 
36
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38
    ID((short)1, "id"),
44
    ID((short)1, "id"),
39
    NAME((short)2, "name"),
45
    NAME((short)2, "name"),
40
    DETAILS((short)3, "details"),
46
    DETAILS((short)3, "details"),
41
    /**
47
    /**
42
     * 
48
     * 
43
     * @see PickUpType
49
     * @see PickUpType
44
     */
50
     */
45
    PICKUP((short)4, "pickup");
51
    PICKUP((short)4, "pickup"),
-
 
52
    BUNDLE_WEIGHT_LIMIT((short)5, "bundleWeightLimit"),
-
 
53
    GROUP_SHIPMENT_ALLOWED((short)6, "groupShipmentAllowed"),
-
 
54
    MAX_COD_LIMIT((short)7, "maxCodLimit");
46
 
55
 
47
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48
 
57
 
49
    static {
58
    static {
50
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
59
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 63... Line 72...
63
          return NAME;
72
          return NAME;
64
        case 3: // DETAILS
73
        case 3: // DETAILS
65
          return DETAILS;
74
          return DETAILS;
66
        case 4: // PICKUP
75
        case 4: // PICKUP
67
          return PICKUP;
76
          return PICKUP;
-
 
77
        case 5: // BUNDLE_WEIGHT_LIMIT
-
 
78
          return BUNDLE_WEIGHT_LIMIT;
-
 
79
        case 6: // GROUP_SHIPMENT_ALLOWED
-
 
80
          return GROUP_SHIPMENT_ALLOWED;
-
 
81
        case 7: // MAX_COD_LIMIT
-
 
82
          return MAX_COD_LIMIT;
68
        default:
83
        default:
69
          return null;
84
          return null;
70
      }
85
      }
71
    }
86
    }
72
 
87
 
Line 104... Line 119...
104
    }
119
    }
105
  }
120
  }
106
 
121
 
107
  // isset id assignments
122
  // isset id assignments
108
  private static final int __ID_ISSET_ID = 0;
123
  private static final int __ID_ISSET_ID = 0;
-
 
124
  private static final int __BUNDLEWEIGHTLIMIT_ISSET_ID = 1;
-
 
125
  private static final int __GROUPSHIPMENTALLOWED_ISSET_ID = 2;
-
 
126
  private static final int __MAXCODLIMIT_ISSET_ID = 3;
109
  private BitSet __isset_bit_vector = new BitSet(1);
127
  private BitSet __isset_bit_vector = new BitSet(4);
110
 
128
 
111
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
129
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
112
  static {
130
  static {
113
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
131
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
114
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
132
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 118... Line 136...
118
    tmpMap.put(_Fields.DETAILS, new org.apache.thrift.meta_data.FieldMetaData("details", org.apache.thrift.TFieldRequirementType.DEFAULT, 
136
    tmpMap.put(_Fields.DETAILS, new org.apache.thrift.meta_data.FieldMetaData("details", org.apache.thrift.TFieldRequirementType.DEFAULT, 
119
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
137
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
120
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProviderDetails.class))));
138
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProviderDetails.class))));
121
    tmpMap.put(_Fields.PICKUP, new org.apache.thrift.meta_data.FieldMetaData("pickup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
139
    tmpMap.put(_Fields.PICKUP, new org.apache.thrift.meta_data.FieldMetaData("pickup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
122
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
140
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
-
 
141
    tmpMap.put(_Fields.BUNDLE_WEIGHT_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("bundleWeightLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
143
    tmpMap.put(_Fields.GROUP_SHIPMENT_ALLOWED, new org.apache.thrift.meta_data.FieldMetaData("groupShipmentAllowed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
144
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
145
    tmpMap.put(_Fields.MAX_COD_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("maxCodLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
123
    metaDataMap = Collections.unmodifiableMap(tmpMap);
147
    metaDataMap = Collections.unmodifiableMap(tmpMap);
124
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Provider.class, metaDataMap);
148
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Provider.class, metaDataMap);
125
  }
149
  }
126
 
150
 
127
  public Provider() {
151
  public Provider() {
Line 129... Line 153...
129
 
153
 
130
  public Provider(
154
  public Provider(
131
    long id,
155
    long id,
132
    String name,
156
    String name,
133
    List<ProviderDetails> details,
157
    List<ProviderDetails> details,
134
    PickUpType pickup)
158
    PickUpType pickup,
-
 
159
    double bundleWeightLimit,
-
 
160
    boolean groupShipmentAllowed,
-
 
161
    double maxCodLimit)
135
  {
162
  {
136
    this();
163
    this();
137
    this.id = id;
164
    this.id = id;
138
    setIdIsSet(true);
165
    setIdIsSet(true);
139
    this.name = name;
166
    this.name = name;
140
    this.details = details;
167
    this.details = details;
141
    this.pickup = pickup;
168
    this.pickup = pickup;
-
 
169
    this.bundleWeightLimit = bundleWeightLimit;
-
 
170
    setBundleWeightLimitIsSet(true);
-
 
171
    this.groupShipmentAllowed = groupShipmentAllowed;
-
 
172
    setGroupShipmentAllowedIsSet(true);
-
 
173
    this.maxCodLimit = maxCodLimit;
-
 
174
    setMaxCodLimitIsSet(true);
142
  }
175
  }
143
 
176
 
144
  /**
177
  /**
145
   * Performs a deep copy on <i>other</i>.
178
   * Performs a deep copy on <i>other</i>.
146
   */
179
   */
Line 159... Line 192...
159
      this.details = __this__details;
192
      this.details = __this__details;
160
    }
193
    }
161
    if (other.isSetPickup()) {
194
    if (other.isSetPickup()) {
162
      this.pickup = other.pickup;
195
      this.pickup = other.pickup;
163
    }
196
    }
-
 
197
    this.bundleWeightLimit = other.bundleWeightLimit;
-
 
198
    this.groupShipmentAllowed = other.groupShipmentAllowed;
-
 
199
    this.maxCodLimit = other.maxCodLimit;
164
  }
200
  }
165
 
201
 
166
  public Provider deepCopy() {
202
  public Provider deepCopy() {
167
    return new Provider(this);
203
    return new Provider(this);
168
  }
204
  }
Line 172... Line 208...
172
    setIdIsSet(false);
208
    setIdIsSet(false);
173
    this.id = 0;
209
    this.id = 0;
174
    this.name = null;
210
    this.name = null;
175
    this.details = null;
211
    this.details = null;
176
    this.pickup = null;
212
    this.pickup = null;
-
 
213
    setBundleWeightLimitIsSet(false);
-
 
214
    this.bundleWeightLimit = 0.0;
-
 
215
    setGroupShipmentAllowedIsSet(false);
-
 
216
    this.groupShipmentAllowed = false;
-
 
217
    setMaxCodLimitIsSet(false);
-
 
218
    this.maxCodLimit = 0.0;
177
  }
219
  }
178
 
220
 
179
  public long getId() {
221
  public long getId() {
180
    return this.id;
222
    return this.id;
181
  }
223
  }
Line 288... Line 330...
288
    if (!value) {
330
    if (!value) {
289
      this.pickup = null;
331
      this.pickup = null;
290
    }
332
    }
291
  }
333
  }
292
 
334
 
-
 
335
  public double getBundleWeightLimit() {
-
 
336
    return this.bundleWeightLimit;
-
 
337
  }
-
 
338
 
-
 
339
  public void setBundleWeightLimit(double bundleWeightLimit) {
-
 
340
    this.bundleWeightLimit = bundleWeightLimit;
-
 
341
    setBundleWeightLimitIsSet(true);
-
 
342
  }
-
 
343
 
-
 
344
  public void unsetBundleWeightLimit() {
-
 
345
    __isset_bit_vector.clear(__BUNDLEWEIGHTLIMIT_ISSET_ID);
-
 
346
  }
-
 
347
 
-
 
348
  /** Returns true if field bundleWeightLimit is set (has been assigned a value) and false otherwise */
-
 
349
  public boolean isSetBundleWeightLimit() {
-
 
350
    return __isset_bit_vector.get(__BUNDLEWEIGHTLIMIT_ISSET_ID);
-
 
351
  }
-
 
352
 
-
 
353
  public void setBundleWeightLimitIsSet(boolean value) {
-
 
354
    __isset_bit_vector.set(__BUNDLEWEIGHTLIMIT_ISSET_ID, value);
-
 
355
  }
-
 
356
 
-
 
357
  public boolean isGroupShipmentAllowed() {
-
 
358
    return this.groupShipmentAllowed;
-
 
359
  }
-
 
360
 
-
 
361
  public void setGroupShipmentAllowed(boolean groupShipmentAllowed) {
-
 
362
    this.groupShipmentAllowed = groupShipmentAllowed;
-
 
363
    setGroupShipmentAllowedIsSet(true);
-
 
364
  }
-
 
365
 
-
 
366
  public void unsetGroupShipmentAllowed() {
-
 
367
    __isset_bit_vector.clear(__GROUPSHIPMENTALLOWED_ISSET_ID);
-
 
368
  }
-
 
369
 
-
 
370
  /** Returns true if field groupShipmentAllowed is set (has been assigned a value) and false otherwise */
-
 
371
  public boolean isSetGroupShipmentAllowed() {
-
 
372
    return __isset_bit_vector.get(__GROUPSHIPMENTALLOWED_ISSET_ID);
-
 
373
  }
-
 
374
 
-
 
375
  public void setGroupShipmentAllowedIsSet(boolean value) {
-
 
376
    __isset_bit_vector.set(__GROUPSHIPMENTALLOWED_ISSET_ID, value);
-
 
377
  }
-
 
378
 
-
 
379
  public double getMaxCodLimit() {
-
 
380
    return this.maxCodLimit;
-
 
381
  }
-
 
382
 
-
 
383
  public void setMaxCodLimit(double maxCodLimit) {
-
 
384
    this.maxCodLimit = maxCodLimit;
-
 
385
    setMaxCodLimitIsSet(true);
-
 
386
  }
-
 
387
 
-
 
388
  public void unsetMaxCodLimit() {
-
 
389
    __isset_bit_vector.clear(__MAXCODLIMIT_ISSET_ID);
-
 
390
  }
-
 
391
 
-
 
392
  /** Returns true if field maxCodLimit is set (has been assigned a value) and false otherwise */
-
 
393
  public boolean isSetMaxCodLimit() {
-
 
394
    return __isset_bit_vector.get(__MAXCODLIMIT_ISSET_ID);
-
 
395
  }
-
 
396
 
-
 
397
  public void setMaxCodLimitIsSet(boolean value) {
-
 
398
    __isset_bit_vector.set(__MAXCODLIMIT_ISSET_ID, value);
-
 
399
  }
-
 
400
 
293
  public void setFieldValue(_Fields field, Object value) {
401
  public void setFieldValue(_Fields field, Object value) {
294
    switch (field) {
402
    switch (field) {
295
    case ID:
403
    case ID:
296
      if (value == null) {
404
      if (value == null) {
297
        unsetId();
405
        unsetId();
Line 322... Line 430...
322
      } else {
430
      } else {
323
        setPickup((PickUpType)value);
431
        setPickup((PickUpType)value);
324
      }
432
      }
325
      break;
433
      break;
326
 
434
 
-
 
435
    case BUNDLE_WEIGHT_LIMIT:
-
 
436
      if (value == null) {
-
 
437
        unsetBundleWeightLimit();
-
 
438
      } else {
-
 
439
        setBundleWeightLimit((Double)value);
-
 
440
      }
-
 
441
      break;
-
 
442
 
-
 
443
    case GROUP_SHIPMENT_ALLOWED:
-
 
444
      if (value == null) {
-
 
445
        unsetGroupShipmentAllowed();
-
 
446
      } else {
-
 
447
        setGroupShipmentAllowed((Boolean)value);
-
 
448
      }
-
 
449
      break;
-
 
450
 
-
 
451
    case MAX_COD_LIMIT:
-
 
452
      if (value == null) {
-
 
453
        unsetMaxCodLimit();
-
 
454
      } else {
-
 
455
        setMaxCodLimit((Double)value);
-
 
456
      }
-
 
457
      break;
-
 
458
 
327
    }
459
    }
328
  }
460
  }
329
 
461
 
330
  public Object getFieldValue(_Fields field) {
462
  public Object getFieldValue(_Fields field) {
331
    switch (field) {
463
    switch (field) {
Line 339... Line 471...
339
      return getDetails();
471
      return getDetails();
340
 
472
 
341
    case PICKUP:
473
    case PICKUP:
342
      return getPickup();
474
      return getPickup();
343
 
475
 
-
 
476
    case BUNDLE_WEIGHT_LIMIT:
-
 
477
      return Double.valueOf(getBundleWeightLimit());
-
 
478
 
-
 
479
    case GROUP_SHIPMENT_ALLOWED:
-
 
480
      return Boolean.valueOf(isGroupShipmentAllowed());
-
 
481
 
-
 
482
    case MAX_COD_LIMIT:
-
 
483
      return Double.valueOf(getMaxCodLimit());
-
 
484
 
344
    }
485
    }
345
    throw new IllegalStateException();
486
    throw new IllegalStateException();
346
  }
487
  }
347
 
488
 
348
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
489
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 358... Line 499...
358
      return isSetName();
499
      return isSetName();
359
    case DETAILS:
500
    case DETAILS:
360
      return isSetDetails();
501
      return isSetDetails();
361
    case PICKUP:
502
    case PICKUP:
362
      return isSetPickup();
503
      return isSetPickup();
-
 
504
    case BUNDLE_WEIGHT_LIMIT:
-
 
505
      return isSetBundleWeightLimit();
-
 
506
    case GROUP_SHIPMENT_ALLOWED:
-
 
507
      return isSetGroupShipmentAllowed();
-
 
508
    case MAX_COD_LIMIT:
-
 
509
      return isSetMaxCodLimit();
363
    }
510
    }
364
    throw new IllegalStateException();
511
    throw new IllegalStateException();
365
  }
512
  }
366
 
513
 
367
  @Override
514
  @Override
Line 411... Line 558...
411
        return false;
558
        return false;
412
      if (!this.pickup.equals(that.pickup))
559
      if (!this.pickup.equals(that.pickup))
413
        return false;
560
        return false;
414
    }
561
    }
415
 
562
 
-
 
563
    boolean this_present_bundleWeightLimit = true;
-
 
564
    boolean that_present_bundleWeightLimit = true;
-
 
565
    if (this_present_bundleWeightLimit || that_present_bundleWeightLimit) {
-
 
566
      if (!(this_present_bundleWeightLimit && that_present_bundleWeightLimit))
-
 
567
        return false;
-
 
568
      if (this.bundleWeightLimit != that.bundleWeightLimit)
-
 
569
        return false;
-
 
570
    }
-
 
571
 
-
 
572
    boolean this_present_groupShipmentAllowed = true;
-
 
573
    boolean that_present_groupShipmentAllowed = true;
-
 
574
    if (this_present_groupShipmentAllowed || that_present_groupShipmentAllowed) {
-
 
575
      if (!(this_present_groupShipmentAllowed && that_present_groupShipmentAllowed))
-
 
576
        return false;
-
 
577
      if (this.groupShipmentAllowed != that.groupShipmentAllowed)
-
 
578
        return false;
-
 
579
    }
-
 
580
 
-
 
581
    boolean this_present_maxCodLimit = true;
-
 
582
    boolean that_present_maxCodLimit = true;
-
 
583
    if (this_present_maxCodLimit || that_present_maxCodLimit) {
-
 
584
      if (!(this_present_maxCodLimit && that_present_maxCodLimit))
-
 
585
        return false;
-
 
586
      if (this.maxCodLimit != that.maxCodLimit)
-
 
587
        return false;
-
 
588
    }
-
 
589
 
416
    return true;
590
    return true;
417
  }
591
  }
418
 
592
 
419
  @Override
593
  @Override
420
  public int hashCode() {
594
  public int hashCode() {
Line 467... Line 641...
467
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickup, typedOther.pickup);
641
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickup, typedOther.pickup);
468
      if (lastComparison != 0) {
642
      if (lastComparison != 0) {
469
        return lastComparison;
643
        return lastComparison;
470
      }
644
      }
471
    }
645
    }
-
 
646
    lastComparison = Boolean.valueOf(isSetBundleWeightLimit()).compareTo(typedOther.isSetBundleWeightLimit());
-
 
647
    if (lastComparison != 0) {
-
 
648
      return lastComparison;
-
 
649
    }
-
 
650
    if (isSetBundleWeightLimit()) {
-
 
651
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bundleWeightLimit, typedOther.bundleWeightLimit);
-
 
652
      if (lastComparison != 0) {
-
 
653
        return lastComparison;
-
 
654
      }
-
 
655
    }
-
 
656
    lastComparison = Boolean.valueOf(isSetGroupShipmentAllowed()).compareTo(typedOther.isSetGroupShipmentAllowed());
-
 
657
    if (lastComparison != 0) {
-
 
658
      return lastComparison;
-
 
659
    }
-
 
660
    if (isSetGroupShipmentAllowed()) {
-
 
661
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupShipmentAllowed, typedOther.groupShipmentAllowed);
-
 
662
      if (lastComparison != 0) {
-
 
663
        return lastComparison;
-
 
664
      }
-
 
665
    }
-
 
666
    lastComparison = Boolean.valueOf(isSetMaxCodLimit()).compareTo(typedOther.isSetMaxCodLimit());
-
 
667
    if (lastComparison != 0) {
-
 
668
      return lastComparison;
-
 
669
    }
-
 
670
    if (isSetMaxCodLimit()) {
-
 
671
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxCodLimit, typedOther.maxCodLimit);
-
 
672
      if (lastComparison != 0) {
-
 
673
        return lastComparison;
-
 
674
      }
-
 
675
    }
472
    return 0;
676
    return 0;
473
  }
677
  }
474
 
678
 
475
  public _Fields fieldForId(int fieldId) {
679
  public _Fields fieldForId(int fieldId) {
476
    return _Fields.findByThriftId(fieldId);
680
    return _Fields.findByThriftId(fieldId);
Line 524... Line 728...
524
            this.pickup = PickUpType.findByValue(iprot.readI32());
728
            this.pickup = PickUpType.findByValue(iprot.readI32());
525
          } else { 
729
          } else { 
526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
527
          }
731
          }
528
          break;
732
          break;
-
 
733
        case 5: // BUNDLE_WEIGHT_LIMIT
-
 
734
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
735
            this.bundleWeightLimit = iprot.readDouble();
-
 
736
            setBundleWeightLimitIsSet(true);
-
 
737
          } else { 
-
 
738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
739
          }
-
 
740
          break;
-
 
741
        case 6: // GROUP_SHIPMENT_ALLOWED
-
 
742
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
743
            this.groupShipmentAllowed = iprot.readBool();
-
 
744
            setGroupShipmentAllowedIsSet(true);
-
 
745
          } else { 
-
 
746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
747
          }
-
 
748
          break;
-
 
749
        case 7: // MAX_COD_LIMIT
-
 
750
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
751
            this.maxCodLimit = iprot.readDouble();
-
 
752
            setMaxCodLimitIsSet(true);
-
 
753
          } else { 
-
 
754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
755
          }
-
 
756
          break;
529
        default:
757
        default:
530
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
      }
759
      }
532
      iprot.readFieldEnd();
760
      iprot.readFieldEnd();
533
    }
761
    }
Line 562... Line 790...
562
    if (this.pickup != null) {
790
    if (this.pickup != null) {
563
      oprot.writeFieldBegin(PICKUP_FIELD_DESC);
791
      oprot.writeFieldBegin(PICKUP_FIELD_DESC);
564
      oprot.writeI32(this.pickup.getValue());
792
      oprot.writeI32(this.pickup.getValue());
565
      oprot.writeFieldEnd();
793
      oprot.writeFieldEnd();
566
    }
794
    }
-
 
795
    oprot.writeFieldBegin(BUNDLE_WEIGHT_LIMIT_FIELD_DESC);
-
 
796
    oprot.writeDouble(this.bundleWeightLimit);
-
 
797
    oprot.writeFieldEnd();
-
 
798
    oprot.writeFieldBegin(GROUP_SHIPMENT_ALLOWED_FIELD_DESC);
-
 
799
    oprot.writeBool(this.groupShipmentAllowed);
-
 
800
    oprot.writeFieldEnd();
-
 
801
    oprot.writeFieldBegin(MAX_COD_LIMIT_FIELD_DESC);
-
 
802
    oprot.writeDouble(this.maxCodLimit);
-
 
803
    oprot.writeFieldEnd();
567
    oprot.writeFieldStop();
804
    oprot.writeFieldStop();
568
    oprot.writeStructEnd();
805
    oprot.writeStructEnd();
569
  }
806
  }
570
 
807
 
571
  @Override
808
  @Override
Line 598... Line 835...
598
      sb.append("null");
835
      sb.append("null");
599
    } else {
836
    } else {
600
      sb.append(this.pickup);
837
      sb.append(this.pickup);
601
    }
838
    }
602
    first = false;
839
    first = false;
-
 
840
    if (!first) sb.append(", ");
-
 
841
    sb.append("bundleWeightLimit:");
-
 
842
    sb.append(this.bundleWeightLimit);
-
 
843
    first = false;
-
 
844
    if (!first) sb.append(", ");
-
 
845
    sb.append("groupShipmentAllowed:");
-
 
846
    sb.append(this.groupShipmentAllowed);
-
 
847
    first = false;
-
 
848
    if (!first) sb.append(", ");
-
 
849
    sb.append("maxCodLimit:");
-
 
850
    sb.append(this.maxCodLimit);
-
 
851
    first = false;
603
    sb.append(")");
852
    sb.append(")");
604
    return sb.toString();
853
    return sb.toString();
605
  }
854
  }
606
 
855
 
607
  public void validate() throws org.apache.thrift.TException {
856
  public void validate() throws org.apache.thrift.TException {