| Line 26... |
Line 26... |
| 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);
|
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);
|
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);
|
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);
|
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);
|
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 |
private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)6);
|
| - |
|
32 |
private static final org.apache.thrift.protocol.TField BEST_DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealText", org.apache.thrift.protocol.TType.STRING, (short)7);
|
| 31 |
|
33 |
|
| 32 |
private long itemId; // required
|
34 |
private long itemId; // required
|
| 33 |
private double recommendedPrice; // required
|
35 |
private double recommendedPrice; // required
|
| 34 |
private double minPrice; // required
|
36 |
private double minPrice; // required
|
| 35 |
private double maxPrice; // required
|
37 |
private double maxPrice; // required
|
| 36 |
private double minAdvancePrice; // required
|
38 |
private double minAdvancePrice; // required
|
| - |
|
39 |
private long freebieItemId; // required
|
| - |
|
40 |
private String bestDealText; // required
|
| 37 |
|
41 |
|
| 38 |
/** 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. */
|
| 39 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
43 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 40 |
ITEM_ID((short)1, "itemId"),
|
44 |
ITEM_ID((short)1, "itemId"),
|
| 41 |
RECOMMENDED_PRICE((short)2, "recommendedPrice"),
|
45 |
RECOMMENDED_PRICE((short)2, "recommendedPrice"),
|
| 42 |
MIN_PRICE((short)3, "minPrice"),
|
46 |
MIN_PRICE((short)3, "minPrice"),
|
| 43 |
MAX_PRICE((short)4, "maxPrice"),
|
47 |
MAX_PRICE((short)4, "maxPrice"),
|
| 44 |
MIN_ADVANCE_PRICE((short)5, "minAdvancePrice");
|
48 |
MIN_ADVANCE_PRICE((short)5, "minAdvancePrice"),
|
| - |
|
49 |
FREEBIE_ITEM_ID((short)6, "freebieItemId"),
|
| - |
|
50 |
BEST_DEAL_TEXT((short)7, "bestDealText");
|
| 45 |
|
51 |
|
| 46 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
52 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 47 |
|
53 |
|
| 48 |
static {
|
54 |
static {
|
| 49 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
55 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 64... |
Line 70... |
| 64 |
return MIN_PRICE;
|
70 |
return MIN_PRICE;
|
| 65 |
case 4: // MAX_PRICE
|
71 |
case 4: // MAX_PRICE
|
| 66 |
return MAX_PRICE;
|
72 |
return MAX_PRICE;
|
| 67 |
case 5: // MIN_ADVANCE_PRICE
|
73 |
case 5: // MIN_ADVANCE_PRICE
|
| 68 |
return MIN_ADVANCE_PRICE;
|
74 |
return MIN_ADVANCE_PRICE;
|
| - |
|
75 |
case 6: // FREEBIE_ITEM_ID
|
| - |
|
76 |
return FREEBIE_ITEM_ID;
|
| - |
|
77 |
case 7: // BEST_DEAL_TEXT
|
| - |
|
78 |
return BEST_DEAL_TEXT;
|
| 69 |
default:
|
79 |
default:
|
| 70 |
return null;
|
80 |
return null;
|
| 71 |
}
|
81 |
}
|
| 72 |
}
|
82 |
}
|
| 73 |
|
83 |
|
| Line 109... |
Line 119... |
| 109 |
private static final int __ITEMID_ISSET_ID = 0;
|
119 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 110 |
private static final int __RECOMMENDEDPRICE_ISSET_ID = 1;
|
120 |
private static final int __RECOMMENDEDPRICE_ISSET_ID = 1;
|
| 111 |
private static final int __MINPRICE_ISSET_ID = 2;
|
121 |
private static final int __MINPRICE_ISSET_ID = 2;
|
| 112 |
private static final int __MAXPRICE_ISSET_ID = 3;
|
122 |
private static final int __MAXPRICE_ISSET_ID = 3;
|
| 113 |
private static final int __MINADVANCEPRICE_ISSET_ID = 4;
|
123 |
private static final int __MINADVANCEPRICE_ISSET_ID = 4;
|
| - |
|
124 |
private static final int __FREEBIEITEMID_ISSET_ID = 5;
|
| 114 |
private BitSet __isset_bit_vector = new BitSet(5);
|
125 |
private BitSet __isset_bit_vector = new BitSet(6);
|
| 115 |
|
126 |
|
| 116 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
127 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 117 |
static {
|
128 |
static {
|
| 118 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
129 |
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,
|
130 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 124... |
Line 135... |
| 124 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
135 |
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,
|
136 |
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)));
|
137 |
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,
|
138 |
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)));
|
139 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| - |
|
140 |
tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
141 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
142 |
tmpMap.put(_Fields.BEST_DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 129 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
144 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 130 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorePricing.class, metaDataMap);
|
145 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorePricing.class, metaDataMap);
|
| 131 |
}
|
146 |
}
|
| 132 |
|
147 |
|
| 133 |
public StorePricing() {
|
148 |
public StorePricing() {
|
| Line 136... |
Line 151... |
| 136 |
public StorePricing(
|
151 |
public StorePricing(
|
| 137 |
long itemId,
|
152 |
long itemId,
|
| 138 |
double recommendedPrice,
|
153 |
double recommendedPrice,
|
| 139 |
double minPrice,
|
154 |
double minPrice,
|
| 140 |
double maxPrice,
|
155 |
double maxPrice,
|
| 141 |
double minAdvancePrice)
|
156 |
double minAdvancePrice,
|
| - |
|
157 |
long freebieItemId,
|
| - |
|
158 |
String bestDealText)
|
| 142 |
{
|
159 |
{
|
| 143 |
this();
|
160 |
this();
|
| 144 |
this.itemId = itemId;
|
161 |
this.itemId = itemId;
|
| 145 |
setItemIdIsSet(true);
|
162 |
setItemIdIsSet(true);
|
| 146 |
this.recommendedPrice = recommendedPrice;
|
163 |
this.recommendedPrice = recommendedPrice;
|
| Line 149... |
Line 166... |
| 149 |
setMinPriceIsSet(true);
|
166 |
setMinPriceIsSet(true);
|
| 150 |
this.maxPrice = maxPrice;
|
167 |
this.maxPrice = maxPrice;
|
| 151 |
setMaxPriceIsSet(true);
|
168 |
setMaxPriceIsSet(true);
|
| 152 |
this.minAdvancePrice = minAdvancePrice;
|
169 |
this.minAdvancePrice = minAdvancePrice;
|
| 153 |
setMinAdvancePriceIsSet(true);
|
170 |
setMinAdvancePriceIsSet(true);
|
| - |
|
171 |
this.freebieItemId = freebieItemId;
|
| - |
|
172 |
setFreebieItemIdIsSet(true);
|
| - |
|
173 |
this.bestDealText = bestDealText;
|
| 154 |
}
|
174 |
}
|
| 155 |
|
175 |
|
| 156 |
/**
|
176 |
/**
|
| 157 |
* Performs a deep copy on <i>other</i>.
|
177 |
* Performs a deep copy on <i>other</i>.
|
| 158 |
*/
|
178 |
*/
|
| Line 162... |
Line 182... |
| 162 |
this.itemId = other.itemId;
|
182 |
this.itemId = other.itemId;
|
| 163 |
this.recommendedPrice = other.recommendedPrice;
|
183 |
this.recommendedPrice = other.recommendedPrice;
|
| 164 |
this.minPrice = other.minPrice;
|
184 |
this.minPrice = other.minPrice;
|
| 165 |
this.maxPrice = other.maxPrice;
|
185 |
this.maxPrice = other.maxPrice;
|
| 166 |
this.minAdvancePrice = other.minAdvancePrice;
|
186 |
this.minAdvancePrice = other.minAdvancePrice;
|
| - |
|
187 |
this.freebieItemId = other.freebieItemId;
|
| - |
|
188 |
if (other.isSetBestDealText()) {
|
| - |
|
189 |
this.bestDealText = other.bestDealText;
|
| - |
|
190 |
}
|
| 167 |
}
|
191 |
}
|
| 168 |
|
192 |
|
| 169 |
public StorePricing deepCopy() {
|
193 |
public StorePricing deepCopy() {
|
| 170 |
return new StorePricing(this);
|
194 |
return new StorePricing(this);
|
| 171 |
}
|
195 |
}
|
| Line 180... |
Line 204... |
| 180 |
this.minPrice = 0.0;
|
204 |
this.minPrice = 0.0;
|
| 181 |
setMaxPriceIsSet(false);
|
205 |
setMaxPriceIsSet(false);
|
| 182 |
this.maxPrice = 0.0;
|
206 |
this.maxPrice = 0.0;
|
| 183 |
setMinAdvancePriceIsSet(false);
|
207 |
setMinAdvancePriceIsSet(false);
|
| 184 |
this.minAdvancePrice = 0.0;
|
208 |
this.minAdvancePrice = 0.0;
|
| - |
|
209 |
setFreebieItemIdIsSet(false);
|
| - |
|
210 |
this.freebieItemId = 0;
|
| - |
|
211 |
this.bestDealText = null;
|
| 185 |
}
|
212 |
}
|
| 186 |
|
213 |
|
| 187 |
public long getItemId() {
|
214 |
public long getItemId() {
|
| 188 |
return this.itemId;
|
215 |
return this.itemId;
|
| 189 |
}
|
216 |
}
|
| Line 292... |
Line 319... |
| 292 |
|
319 |
|
| 293 |
public void setMinAdvancePriceIsSet(boolean value) {
|
320 |
public void setMinAdvancePriceIsSet(boolean value) {
|
| 294 |
__isset_bit_vector.set(__MINADVANCEPRICE_ISSET_ID, value);
|
321 |
__isset_bit_vector.set(__MINADVANCEPRICE_ISSET_ID, value);
|
| 295 |
}
|
322 |
}
|
| 296 |
|
323 |
|
| - |
|
324 |
public long getFreebieItemId() {
|
| - |
|
325 |
return this.freebieItemId;
|
| - |
|
326 |
}
|
| - |
|
327 |
|
| - |
|
328 |
public void setFreebieItemId(long freebieItemId) {
|
| - |
|
329 |
this.freebieItemId = freebieItemId;
|
| - |
|
330 |
setFreebieItemIdIsSet(true);
|
| - |
|
331 |
}
|
| - |
|
332 |
|
| - |
|
333 |
public void unsetFreebieItemId() {
|
| - |
|
334 |
__isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
|
| - |
|
335 |
}
|
| - |
|
336 |
|
| - |
|
337 |
/** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
|
| - |
|
338 |
public boolean isSetFreebieItemId() {
|
| - |
|
339 |
return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
|
| - |
|
340 |
}
|
| - |
|
341 |
|
| - |
|
342 |
public void setFreebieItemIdIsSet(boolean value) {
|
| - |
|
343 |
__isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
|
| - |
|
344 |
}
|
| - |
|
345 |
|
| - |
|
346 |
public String getBestDealText() {
|
| - |
|
347 |
return this.bestDealText;
|
| - |
|
348 |
}
|
| - |
|
349 |
|
| - |
|
350 |
public void setBestDealText(String bestDealText) {
|
| - |
|
351 |
this.bestDealText = bestDealText;
|
| - |
|
352 |
}
|
| - |
|
353 |
|
| - |
|
354 |
public void unsetBestDealText() {
|
| - |
|
355 |
this.bestDealText = null;
|
| - |
|
356 |
}
|
| - |
|
357 |
|
| - |
|
358 |
/** Returns true if field bestDealText is set (has been assigned a value) and false otherwise */
|
| - |
|
359 |
public boolean isSetBestDealText() {
|
| - |
|
360 |
return this.bestDealText != null;
|
| - |
|
361 |
}
|
| - |
|
362 |
|
| - |
|
363 |
public void setBestDealTextIsSet(boolean value) {
|
| - |
|
364 |
if (!value) {
|
| - |
|
365 |
this.bestDealText = null;
|
| - |
|
366 |
}
|
| - |
|
367 |
}
|
| - |
|
368 |
|
| 297 |
public void setFieldValue(_Fields field, Object value) {
|
369 |
public void setFieldValue(_Fields field, Object value) {
|
| 298 |
switch (field) {
|
370 |
switch (field) {
|
| 299 |
case ITEM_ID:
|
371 |
case ITEM_ID:
|
| 300 |
if (value == null) {
|
372 |
if (value == null) {
|
| 301 |
unsetItemId();
|
373 |
unsetItemId();
|
| Line 334... |
Line 406... |
| 334 |
} else {
|
406 |
} else {
|
| 335 |
setMinAdvancePrice((Double)value);
|
407 |
setMinAdvancePrice((Double)value);
|
| 336 |
}
|
408 |
}
|
| 337 |
break;
|
409 |
break;
|
| 338 |
|
410 |
|
| - |
|
411 |
case FREEBIE_ITEM_ID:
|
| - |
|
412 |
if (value == null) {
|
| - |
|
413 |
unsetFreebieItemId();
|
| - |
|
414 |
} else {
|
| - |
|
415 |
setFreebieItemId((Long)value);
|
| - |
|
416 |
}
|
| - |
|
417 |
break;
|
| - |
|
418 |
|
| - |
|
419 |
case BEST_DEAL_TEXT:
|
| - |
|
420 |
if (value == null) {
|
| - |
|
421 |
unsetBestDealText();
|
| - |
|
422 |
} else {
|
| - |
|
423 |
setBestDealText((String)value);
|
| - |
|
424 |
}
|
| - |
|
425 |
break;
|
| - |
|
426 |
|
| 339 |
}
|
427 |
}
|
| 340 |
}
|
428 |
}
|
| 341 |
|
429 |
|
| 342 |
public Object getFieldValue(_Fields field) {
|
430 |
public Object getFieldValue(_Fields field) {
|
| 343 |
switch (field) {
|
431 |
switch (field) {
|
| Line 354... |
Line 442... |
| 354 |
return Double.valueOf(getMaxPrice());
|
442 |
return Double.valueOf(getMaxPrice());
|
| 355 |
|
443 |
|
| 356 |
case MIN_ADVANCE_PRICE:
|
444 |
case MIN_ADVANCE_PRICE:
|
| 357 |
return Double.valueOf(getMinAdvancePrice());
|
445 |
return Double.valueOf(getMinAdvancePrice());
|
| 358 |
|
446 |
|
| - |
|
447 |
case FREEBIE_ITEM_ID:
|
| - |
|
448 |
return Long.valueOf(getFreebieItemId());
|
| - |
|
449 |
|
| - |
|
450 |
case BEST_DEAL_TEXT:
|
| - |
|
451 |
return getBestDealText();
|
| - |
|
452 |
|
| 359 |
}
|
453 |
}
|
| 360 |
throw new IllegalStateException();
|
454 |
throw new IllegalStateException();
|
| 361 |
}
|
455 |
}
|
| 362 |
|
456 |
|
| 363 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
457 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 375... |
Line 469... |
| 375 |
return isSetMinPrice();
|
469 |
return isSetMinPrice();
|
| 376 |
case MAX_PRICE:
|
470 |
case MAX_PRICE:
|
| 377 |
return isSetMaxPrice();
|
471 |
return isSetMaxPrice();
|
| 378 |
case MIN_ADVANCE_PRICE:
|
472 |
case MIN_ADVANCE_PRICE:
|
| 379 |
return isSetMinAdvancePrice();
|
473 |
return isSetMinAdvancePrice();
|
| - |
|
474 |
case FREEBIE_ITEM_ID:
|
| - |
|
475 |
return isSetFreebieItemId();
|
| - |
|
476 |
case BEST_DEAL_TEXT:
|
| - |
|
477 |
return isSetBestDealText();
|
| 380 |
}
|
478 |
}
|
| 381 |
throw new IllegalStateException();
|
479 |
throw new IllegalStateException();
|
| 382 |
}
|
480 |
}
|
| 383 |
|
481 |
|
| 384 |
@Override
|
482 |
@Override
|
| Line 437... |
Line 535... |
| 437 |
return false;
|
535 |
return false;
|
| 438 |
if (this.minAdvancePrice != that.minAdvancePrice)
|
536 |
if (this.minAdvancePrice != that.minAdvancePrice)
|
| 439 |
return false;
|
537 |
return false;
|
| 440 |
}
|
538 |
}
|
| 441 |
|
539 |
|
| - |
|
540 |
boolean this_present_freebieItemId = true;
|
| - |
|
541 |
boolean that_present_freebieItemId = true;
|
| - |
|
542 |
if (this_present_freebieItemId || that_present_freebieItemId) {
|
| - |
|
543 |
if (!(this_present_freebieItemId && that_present_freebieItemId))
|
| - |
|
544 |
return false;
|
| - |
|
545 |
if (this.freebieItemId != that.freebieItemId)
|
| - |
|
546 |
return false;
|
| - |
|
547 |
}
|
| - |
|
548 |
|
| - |
|
549 |
boolean this_present_bestDealText = true && this.isSetBestDealText();
|
| - |
|
550 |
boolean that_present_bestDealText = true && that.isSetBestDealText();
|
| - |
|
551 |
if (this_present_bestDealText || that_present_bestDealText) {
|
| - |
|
552 |
if (!(this_present_bestDealText && that_present_bestDealText))
|
| - |
|
553 |
return false;
|
| - |
|
554 |
if (!this.bestDealText.equals(that.bestDealText))
|
| - |
|
555 |
return false;
|
| - |
|
556 |
}
|
| - |
|
557 |
|
| 442 |
return true;
|
558 |
return true;
|
| 443 |
}
|
559 |
}
|
| 444 |
|
560 |
|
| 445 |
@Override
|
561 |
@Override
|
| 446 |
public int hashCode() {
|
562 |
public int hashCode() {
|
| Line 503... |
Line 619... |
| 503 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minAdvancePrice, typedOther.minAdvancePrice);
|
619 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minAdvancePrice, typedOther.minAdvancePrice);
|
| 504 |
if (lastComparison != 0) {
|
620 |
if (lastComparison != 0) {
|
| 505 |
return lastComparison;
|
621 |
return lastComparison;
|
| 506 |
}
|
622 |
}
|
| 507 |
}
|
623 |
}
|
| - |
|
624 |
lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
|
| - |
|
625 |
if (lastComparison != 0) {
|
| - |
|
626 |
return lastComparison;
|
| - |
|
627 |
}
|
| - |
|
628 |
if (isSetFreebieItemId()) {
|
| - |
|
629 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
|
| - |
|
630 |
if (lastComparison != 0) {
|
| - |
|
631 |
return lastComparison;
|
| - |
|
632 |
}
|
| - |
|
633 |
}
|
| - |
|
634 |
lastComparison = Boolean.valueOf(isSetBestDealText()).compareTo(typedOther.isSetBestDealText());
|
| - |
|
635 |
if (lastComparison != 0) {
|
| - |
|
636 |
return lastComparison;
|
| - |
|
637 |
}
|
| - |
|
638 |
if (isSetBestDealText()) {
|
| - |
|
639 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealText, typedOther.bestDealText);
|
| - |
|
640 |
if (lastComparison != 0) {
|
| - |
|
641 |
return lastComparison;
|
| - |
|
642 |
}
|
| - |
|
643 |
}
|
| 508 |
return 0;
|
644 |
return 0;
|
| 509 |
}
|
645 |
}
|
| 510 |
|
646 |
|
| 511 |
public _Fields fieldForId(int fieldId) {
|
647 |
public _Fields fieldForId(int fieldId) {
|
| 512 |
return _Fields.findByThriftId(fieldId);
|
648 |
return _Fields.findByThriftId(fieldId);
|
| Line 560... |
Line 696... |
| 560 |
setMinAdvancePriceIsSet(true);
|
696 |
setMinAdvancePriceIsSet(true);
|
| 561 |
} else {
|
697 |
} else {
|
| 562 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
698 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 563 |
}
|
699 |
}
|
| 564 |
break;
|
700 |
break;
|
| - |
|
701 |
case 6: // FREEBIE_ITEM_ID
|
| - |
|
702 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
703 |
this.freebieItemId = iprot.readI64();
|
| - |
|
704 |
setFreebieItemIdIsSet(true);
|
| - |
|
705 |
} else {
|
| - |
|
706 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
707 |
}
|
| - |
|
708 |
break;
|
| - |
|
709 |
case 7: // BEST_DEAL_TEXT
|
| - |
|
710 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
711 |
this.bestDealText = iprot.readString();
|
| - |
|
712 |
} else {
|
| - |
|
713 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
714 |
}
|
| - |
|
715 |
break;
|
| 565 |
default:
|
716 |
default:
|
| 566 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
717 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 567 |
}
|
718 |
}
|
| 568 |
iprot.readFieldEnd();
|
719 |
iprot.readFieldEnd();
|
| 569 |
}
|
720 |
}
|
| Line 588... |
Line 739... |
| 588 |
oprot.writeDouble(this.maxPrice);
|
739 |
oprot.writeDouble(this.maxPrice);
|
| 589 |
oprot.writeFieldEnd();
|
740 |
oprot.writeFieldEnd();
|
| 590 |
oprot.writeFieldBegin(MIN_ADVANCE_PRICE_FIELD_DESC);
|
741 |
oprot.writeFieldBegin(MIN_ADVANCE_PRICE_FIELD_DESC);
|
| 591 |
oprot.writeDouble(this.minAdvancePrice);
|
742 |
oprot.writeDouble(this.minAdvancePrice);
|
| 592 |
oprot.writeFieldEnd();
|
743 |
oprot.writeFieldEnd();
|
| - |
|
744 |
oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
|
| - |
|
745 |
oprot.writeI64(this.freebieItemId);
|
| - |
|
746 |
oprot.writeFieldEnd();
|
| - |
|
747 |
if (this.bestDealText != null) {
|
| - |
|
748 |
oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);
|
| - |
|
749 |
oprot.writeString(this.bestDealText);
|
| - |
|
750 |
oprot.writeFieldEnd();
|
| - |
|
751 |
}
|
| 593 |
oprot.writeFieldStop();
|
752 |
oprot.writeFieldStop();
|
| 594 |
oprot.writeStructEnd();
|
753 |
oprot.writeStructEnd();
|
| 595 |
}
|
754 |
}
|
| 596 |
|
755 |
|
| 597 |
@Override
|
756 |
@Override
|
| Line 616... |
Line 775... |
| 616 |
first = false;
|
775 |
first = false;
|
| 617 |
if (!first) sb.append(", ");
|
776 |
if (!first) sb.append(", ");
|
| 618 |
sb.append("minAdvancePrice:");
|
777 |
sb.append("minAdvancePrice:");
|
| 619 |
sb.append(this.minAdvancePrice);
|
778 |
sb.append(this.minAdvancePrice);
|
| 620 |
first = false;
|
779 |
first = false;
|
| - |
|
780 |
if (!first) sb.append(", ");
|
| - |
|
781 |
sb.append("freebieItemId:");
|
| - |
|
782 |
sb.append(this.freebieItemId);
|
| - |
|
783 |
first = false;
|
| - |
|
784 |
if (!first) sb.append(", ");
|
| - |
|
785 |
sb.append("bestDealText:");
|
| - |
|
786 |
if (this.bestDealText == null) {
|
| - |
|
787 |
sb.append("null");
|
| - |
|
788 |
} else {
|
| - |
|
789 |
sb.append(this.bestDealText);
|
| - |
|
790 |
}
|
| - |
|
791 |
first = false;
|
| 621 |
sb.append(")");
|
792 |
sb.append(")");
|
| 622 |
return sb.toString();
|
793 |
return sb.toString();
|
| 623 |
}
|
794 |
}
|
| 624 |
|
795 |
|
| 625 |
public void validate() throws org.apache.thrift.TException {
|
796 |
public void validate() throws org.apache.thrift.TException {
|