Subversion Repositories SmartDukaan

Rev

Rev 7308 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7256 rajveer 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.model.v1.catalog;
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 StorePricing implements org.apache.thrift.TBase<StorePricing, StorePricing._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorePricing");
25
 
26
  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);
27
  private static final org.apache.thrift.protocol.TField RECOMMENDED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("recommendedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
28
  private static final org.apache.thrift.protocol.TField MIN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField MAX_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("maxPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
30
  private static final org.apache.thrift.protocol.TField MIN_ADVANCE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minAdvancePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
 
32
  private long itemId; // required
33
  private double recommendedPrice; // required
34
  private double minPrice; // required
35
  private double maxPrice; // required
36
  private double minAdvancePrice; // required
37
 
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40
    ITEM_ID((short)1, "itemId"),
41
    RECOMMENDED_PRICE((short)2, "recommendedPrice"),
42
    MIN_PRICE((short)3, "minPrice"),
43
    MAX_PRICE((short)4, "maxPrice"),
44
    MIN_ADVANCE_PRICE((short)5, "minAdvancePrice");
45
 
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
 
48
    static {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
50
        byName.put(field.getFieldName(), field);
51
      }
52
    }
53
 
54
    /**
55
     * Find the _Fields constant that matches fieldId, or null if its not found.
56
     */
57
    public static _Fields findByThriftId(int fieldId) {
58
      switch(fieldId) {
59
        case 1: // ITEM_ID
60
          return ITEM_ID;
61
        case 2: // RECOMMENDED_PRICE
62
          return RECOMMENDED_PRICE;
63
        case 3: // MIN_PRICE
64
          return MIN_PRICE;
65
        case 4: // MAX_PRICE
66
          return MAX_PRICE;
67
        case 5: // MIN_ADVANCE_PRICE
68
          return MIN_ADVANCE_PRICE;
69
        default:
70
          return null;
71
      }
72
    }
73
 
74
    /**
75
     * Find the _Fields constant that matches fieldId, throwing an exception
76
     * if it is not found.
77
     */
78
    public static _Fields findByThriftIdOrThrow(int fieldId) {
79
      _Fields fields = findByThriftId(fieldId);
80
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
81
      return fields;
82
    }
83
 
84
    /**
85
     * Find the _Fields constant that matches name, or null if its not found.
86
     */
87
    public static _Fields findByName(String name) {
88
      return byName.get(name);
89
    }
90
 
91
    private final short _thriftId;
92
    private final String _fieldName;
93
 
94
    _Fields(short thriftId, String fieldName) {
95
      _thriftId = thriftId;
96
      _fieldName = fieldName;
97
    }
98
 
99
    public short getThriftFieldId() {
100
      return _thriftId;
101
    }
102
 
103
    public String getFieldName() {
104
      return _fieldName;
105
    }
106
  }
107
 
108
  // isset id assignments
109
  private static final int __ITEMID_ISSET_ID = 0;
110
  private static final int __RECOMMENDEDPRICE_ISSET_ID = 1;
111
  private static final int __MINPRICE_ISSET_ID = 2;
112
  private static final int __MAXPRICE_ISSET_ID = 3;
113
  private static final int __MINADVANCEPRICE_ISSET_ID = 4;
114
  private BitSet __isset_bit_vector = new BitSet(5);
115
 
116
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
117
  static {
118
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
119
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
121
    tmpMap.put(_Fields.RECOMMENDED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("recommendedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
123
    tmpMap.put(_Fields.MIN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
125
    tmpMap.put(_Fields.MAX_PRICE, new org.apache.thrift.meta_data.FieldMetaData("maxPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
127
    tmpMap.put(_Fields.MIN_ADVANCE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minAdvancePrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
129
    metaDataMap = Collections.unmodifiableMap(tmpMap);
130
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorePricing.class, metaDataMap);
131
  }
132
 
133
  public StorePricing() {
134
  }
135
 
136
  public StorePricing(
137
    long itemId,
138
    double recommendedPrice,
139
    double minPrice,
140
    double maxPrice,
141
    double minAdvancePrice)
142
  {
143
    this();
144
    this.itemId = itemId;
145
    setItemIdIsSet(true);
146
    this.recommendedPrice = recommendedPrice;
147
    setRecommendedPriceIsSet(true);
148
    this.minPrice = minPrice;
149
    setMinPriceIsSet(true);
150
    this.maxPrice = maxPrice;
151
    setMaxPriceIsSet(true);
152
    this.minAdvancePrice = minAdvancePrice;
153
    setMinAdvancePriceIsSet(true);
154
  }
155
 
156
  /**
157
   * Performs a deep copy on <i>other</i>.
158
   */
159
  public StorePricing(StorePricing other) {
160
    __isset_bit_vector.clear();
161
    __isset_bit_vector.or(other.__isset_bit_vector);
162
    this.itemId = other.itemId;
163
    this.recommendedPrice = other.recommendedPrice;
164
    this.minPrice = other.minPrice;
165
    this.maxPrice = other.maxPrice;
166
    this.minAdvancePrice = other.minAdvancePrice;
167
  }
168
 
169
  public StorePricing deepCopy() {
170
    return new StorePricing(this);
171
  }
172
 
173
  @Override
174
  public void clear() {
175
    setItemIdIsSet(false);
176
    this.itemId = 0;
177
    setRecommendedPriceIsSet(false);
178
    this.recommendedPrice = 0.0;
179
    setMinPriceIsSet(false);
180
    this.minPrice = 0.0;
181
    setMaxPriceIsSet(false);
182
    this.maxPrice = 0.0;
183
    setMinAdvancePriceIsSet(false);
184
    this.minAdvancePrice = 0.0;
185
  }
186
 
187
  public long getItemId() {
188
    return this.itemId;
189
  }
190
 
191
  public void setItemId(long itemId) {
192
    this.itemId = itemId;
193
    setItemIdIsSet(true);
194
  }
195
 
196
  public void unsetItemId() {
197
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
198
  }
199
 
200
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
201
  public boolean isSetItemId() {
202
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
203
  }
204
 
205
  public void setItemIdIsSet(boolean value) {
206
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
207
  }
208
 
209
  public double getRecommendedPrice() {
210
    return this.recommendedPrice;
211
  }
212
 
213
  public void setRecommendedPrice(double recommendedPrice) {
214
    this.recommendedPrice = recommendedPrice;
215
    setRecommendedPriceIsSet(true);
216
  }
217
 
218
  public void unsetRecommendedPrice() {
219
    __isset_bit_vector.clear(__RECOMMENDEDPRICE_ISSET_ID);
220
  }
221
 
222
  /** Returns true if field recommendedPrice is set (has been assigned a value) and false otherwise */
223
  public boolean isSetRecommendedPrice() {
224
    return __isset_bit_vector.get(__RECOMMENDEDPRICE_ISSET_ID);
225
  }
226
 
227
  public void setRecommendedPriceIsSet(boolean value) {
228
    __isset_bit_vector.set(__RECOMMENDEDPRICE_ISSET_ID, value);
229
  }
230
 
231
  public double getMinPrice() {
232
    return this.minPrice;
233
  }
234
 
235
  public void setMinPrice(double minPrice) {
236
    this.minPrice = minPrice;
237
    setMinPriceIsSet(true);
238
  }
239
 
240
  public void unsetMinPrice() {
241
    __isset_bit_vector.clear(__MINPRICE_ISSET_ID);
242
  }
243
 
244
  /** Returns true if field minPrice is set (has been assigned a value) and false otherwise */
245
  public boolean isSetMinPrice() {
246
    return __isset_bit_vector.get(__MINPRICE_ISSET_ID);
247
  }
248
 
249
  public void setMinPriceIsSet(boolean value) {
250
    __isset_bit_vector.set(__MINPRICE_ISSET_ID, value);
251
  }
252
 
253
  public double getMaxPrice() {
254
    return this.maxPrice;
255
  }
256
 
257
  public void setMaxPrice(double maxPrice) {
258
    this.maxPrice = maxPrice;
259
    setMaxPriceIsSet(true);
260
  }
261
 
262
  public void unsetMaxPrice() {
263
    __isset_bit_vector.clear(__MAXPRICE_ISSET_ID);
264
  }
265
 
266
  /** Returns true if field maxPrice is set (has been assigned a value) and false otherwise */
267
  public boolean isSetMaxPrice() {
268
    return __isset_bit_vector.get(__MAXPRICE_ISSET_ID);
269
  }
270
 
271
  public void setMaxPriceIsSet(boolean value) {
272
    __isset_bit_vector.set(__MAXPRICE_ISSET_ID, value);
273
  }
274
 
275
  public double getMinAdvancePrice() {
276
    return this.minAdvancePrice;
277
  }
278
 
279
  public void setMinAdvancePrice(double minAdvancePrice) {
280
    this.minAdvancePrice = minAdvancePrice;
281
    setMinAdvancePriceIsSet(true);
282
  }
283
 
284
  public void unsetMinAdvancePrice() {
285
    __isset_bit_vector.clear(__MINADVANCEPRICE_ISSET_ID);
286
  }
287
 
288
  /** Returns true if field minAdvancePrice is set (has been assigned a value) and false otherwise */
289
  public boolean isSetMinAdvancePrice() {
290
    return __isset_bit_vector.get(__MINADVANCEPRICE_ISSET_ID);
291
  }
292
 
293
  public void setMinAdvancePriceIsSet(boolean value) {
294
    __isset_bit_vector.set(__MINADVANCEPRICE_ISSET_ID, value);
295
  }
296
 
297
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
299
    case ITEM_ID:
300
      if (value == null) {
301
        unsetItemId();
302
      } else {
303
        setItemId((Long)value);
304
      }
305
      break;
306
 
307
    case RECOMMENDED_PRICE:
308
      if (value == null) {
309
        unsetRecommendedPrice();
310
      } else {
311
        setRecommendedPrice((Double)value);
312
      }
313
      break;
314
 
315
    case MIN_PRICE:
316
      if (value == null) {
317
        unsetMinPrice();
318
      } else {
319
        setMinPrice((Double)value);
320
      }
321
      break;
322
 
323
    case MAX_PRICE:
324
      if (value == null) {
325
        unsetMaxPrice();
326
      } else {
327
        setMaxPrice((Double)value);
328
      }
329
      break;
330
 
331
    case MIN_ADVANCE_PRICE:
332
      if (value == null) {
333
        unsetMinAdvancePrice();
334
      } else {
335
        setMinAdvancePrice((Double)value);
336
      }
337
      break;
338
 
339
    }
340
  }
341
 
342
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
344
    case ITEM_ID:
345
      return Long.valueOf(getItemId());
346
 
347
    case RECOMMENDED_PRICE:
348
      return Double.valueOf(getRecommendedPrice());
349
 
350
    case MIN_PRICE:
351
      return Double.valueOf(getMinPrice());
352
 
353
    case MAX_PRICE:
354
      return Double.valueOf(getMaxPrice());
355
 
356
    case MIN_ADVANCE_PRICE:
357
      return Double.valueOf(getMinAdvancePrice());
358
 
359
    }
360
    throw new IllegalStateException();
361
  }
362
 
363
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
364
  public boolean isSet(_Fields field) {
365
    if (field == null) {
366
      throw new IllegalArgumentException();
367
    }
368
 
369
    switch (field) {
370
    case ITEM_ID:
371
      return isSetItemId();
372
    case RECOMMENDED_PRICE:
373
      return isSetRecommendedPrice();
374
    case MIN_PRICE:
375
      return isSetMinPrice();
376
    case MAX_PRICE:
377
      return isSetMaxPrice();
378
    case MIN_ADVANCE_PRICE:
379
      return isSetMinAdvancePrice();
380
    }
381
    throw new IllegalStateException();
382
  }
383
 
384
  @Override
385
  public boolean equals(Object that) {
386
    if (that == null)
387
      return false;
388
    if (that instanceof StorePricing)
389
      return this.equals((StorePricing)that);
390
    return false;
391
  }
392
 
393
  public boolean equals(StorePricing that) {
394
    if (that == null)
395
      return false;
396
 
397
    boolean this_present_itemId = true;
398
    boolean that_present_itemId = true;
399
    if (this_present_itemId || that_present_itemId) {
400
      if (!(this_present_itemId && that_present_itemId))
401
        return false;
402
      if (this.itemId != that.itemId)
403
        return false;
404
    }
405
 
406
    boolean this_present_recommendedPrice = true;
407
    boolean that_present_recommendedPrice = true;
408
    if (this_present_recommendedPrice || that_present_recommendedPrice) {
409
      if (!(this_present_recommendedPrice && that_present_recommendedPrice))
410
        return false;
411
      if (this.recommendedPrice != that.recommendedPrice)
412
        return false;
413
    }
414
 
415
    boolean this_present_minPrice = true;
416
    boolean that_present_minPrice = true;
417
    if (this_present_minPrice || that_present_minPrice) {
418
      if (!(this_present_minPrice && that_present_minPrice))
419
        return false;
420
      if (this.minPrice != that.minPrice)
421
        return false;
422
    }
423
 
424
    boolean this_present_maxPrice = true;
425
    boolean that_present_maxPrice = true;
426
    if (this_present_maxPrice || that_present_maxPrice) {
427
      if (!(this_present_maxPrice && that_present_maxPrice))
428
        return false;
429
      if (this.maxPrice != that.maxPrice)
430
        return false;
431
    }
432
 
433
    boolean this_present_minAdvancePrice = true;
434
    boolean that_present_minAdvancePrice = true;
435
    if (this_present_minAdvancePrice || that_present_minAdvancePrice) {
436
      if (!(this_present_minAdvancePrice && that_present_minAdvancePrice))
437
        return false;
438
      if (this.minAdvancePrice != that.minAdvancePrice)
439
        return false;
440
    }
441
 
442
    return true;
443
  }
444
 
445
  @Override
446
  public int hashCode() {
447
    return 0;
448
  }
449
 
450
  public int compareTo(StorePricing other) {
451
    if (!getClass().equals(other.getClass())) {
452
      return getClass().getName().compareTo(other.getClass().getName());
453
    }
454
 
455
    int lastComparison = 0;
456
    StorePricing typedOther = (StorePricing)other;
457
 
458
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
459
    if (lastComparison != 0) {
460
      return lastComparison;
461
    }
462
    if (isSetItemId()) {
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
464
      if (lastComparison != 0) {
465
        return lastComparison;
466
      }
467
    }
468
    lastComparison = Boolean.valueOf(isSetRecommendedPrice()).compareTo(typedOther.isSetRecommendedPrice());
469
    if (lastComparison != 0) {
470
      return lastComparison;
471
    }
472
    if (isSetRecommendedPrice()) {
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recommendedPrice, typedOther.recommendedPrice);
474
      if (lastComparison != 0) {
475
        return lastComparison;
476
      }
477
    }
478
    lastComparison = Boolean.valueOf(isSetMinPrice()).compareTo(typedOther.isSetMinPrice());
479
    if (lastComparison != 0) {
480
      return lastComparison;
481
    }
482
    if (isSetMinPrice()) {
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minPrice, typedOther.minPrice);
484
      if (lastComparison != 0) {
485
        return lastComparison;
486
      }
487
    }
488
    lastComparison = Boolean.valueOf(isSetMaxPrice()).compareTo(typedOther.isSetMaxPrice());
489
    if (lastComparison != 0) {
490
      return lastComparison;
491
    }
492
    if (isSetMaxPrice()) {
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPrice, typedOther.maxPrice);
494
      if (lastComparison != 0) {
495
        return lastComparison;
496
      }
497
    }
498
    lastComparison = Boolean.valueOf(isSetMinAdvancePrice()).compareTo(typedOther.isSetMinAdvancePrice());
499
    if (lastComparison != 0) {
500
      return lastComparison;
501
    }
502
    if (isSetMinAdvancePrice()) {
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minAdvancePrice, typedOther.minAdvancePrice);
504
      if (lastComparison != 0) {
505
        return lastComparison;
506
      }
507
    }
508
    return 0;
509
  }
510
 
511
  public _Fields fieldForId(int fieldId) {
512
    return _Fields.findByThriftId(fieldId);
513
  }
514
 
515
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
516
    org.apache.thrift.protocol.TField field;
517
    iprot.readStructBegin();
518
    while (true)
519
    {
520
      field = iprot.readFieldBegin();
521
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
522
        break;
523
      }
524
      switch (field.id) {
525
        case 1: // ITEM_ID
526
          if (field.type == org.apache.thrift.protocol.TType.I64) {
527
            this.itemId = iprot.readI64();
528
            setItemIdIsSet(true);
529
          } else { 
530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
          }
532
          break;
533
        case 2: // RECOMMENDED_PRICE
534
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
535
            this.recommendedPrice = iprot.readDouble();
536
            setRecommendedPriceIsSet(true);
537
          } else { 
538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
539
          }
540
          break;
541
        case 3: // MIN_PRICE
542
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
543
            this.minPrice = iprot.readDouble();
544
            setMinPriceIsSet(true);
545
          } else { 
546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
547
          }
548
          break;
549
        case 4: // MAX_PRICE
550
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
551
            this.maxPrice = iprot.readDouble();
552
            setMaxPriceIsSet(true);
553
          } else { 
554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
555
          }
556
          break;
557
        case 5: // MIN_ADVANCE_PRICE
558
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
559
            this.minAdvancePrice = iprot.readDouble();
560
            setMinAdvancePriceIsSet(true);
561
          } else { 
562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
563
          }
564
          break;
565
        default:
566
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
567
      }
568
      iprot.readFieldEnd();
569
    }
570
    iprot.readStructEnd();
571
    validate();
572
  }
573
 
574
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
575
    validate();
576
 
577
    oprot.writeStructBegin(STRUCT_DESC);
578
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
579
    oprot.writeI64(this.itemId);
580
    oprot.writeFieldEnd();
581
    oprot.writeFieldBegin(RECOMMENDED_PRICE_FIELD_DESC);
582
    oprot.writeDouble(this.recommendedPrice);
583
    oprot.writeFieldEnd();
584
    oprot.writeFieldBegin(MIN_PRICE_FIELD_DESC);
585
    oprot.writeDouble(this.minPrice);
586
    oprot.writeFieldEnd();
587
    oprot.writeFieldBegin(MAX_PRICE_FIELD_DESC);
588
    oprot.writeDouble(this.maxPrice);
589
    oprot.writeFieldEnd();
590
    oprot.writeFieldBegin(MIN_ADVANCE_PRICE_FIELD_DESC);
591
    oprot.writeDouble(this.minAdvancePrice);
592
    oprot.writeFieldEnd();
593
    oprot.writeFieldStop();
594
    oprot.writeStructEnd();
595
  }
596
 
597
  @Override
598
  public String toString() {
599
    StringBuilder sb = new StringBuilder("StorePricing(");
600
    boolean first = true;
601
 
602
    sb.append("itemId:");
603
    sb.append(this.itemId);
604
    first = false;
605
    if (!first) sb.append(", ");
606
    sb.append("recommendedPrice:");
607
    sb.append(this.recommendedPrice);
608
    first = false;
609
    if (!first) sb.append(", ");
610
    sb.append("minPrice:");
611
    sb.append(this.minPrice);
612
    first = false;
613
    if (!first) sb.append(", ");
614
    sb.append("maxPrice:");
615
    sb.append(this.maxPrice);
616
    first = false;
617
    if (!first) sb.append(", ");
618
    sb.append("minAdvancePrice:");
619
    sb.append(this.minAdvancePrice);
620
    first = false;
621
    sb.append(")");
622
    return sb.toString();
623
  }
624
 
625
  public void validate() throws org.apache.thrift.TException {
626
    // check for required fields
627
  }
628
 
629
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
630
    try {
631
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
632
    } catch (org.apache.thrift.TException te) {
633
      throw new java.io.IOException(te);
634
    }
635
  }
636
 
637
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
638
    try {
639
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
640
      __isset_bit_vector = new BitSet(1);
641
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
642
    } catch (org.apache.thrift.TException te) {
643
      throw new java.io.IOException(te);
644
    }
645
  }
646
 
647
}
648