| Line 34... |
Line 34... |
| 34 |
private static final org.apache.thrift.protocol.TField SOURCE_PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_product_name", org.apache.thrift.protocol.TType.STRING, (short)6);
|
34 |
private static final org.apache.thrift.protocol.TField SOURCE_PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_product_name", org.apache.thrift.protocol.TType.STRING, (short)6);
|
| 35 |
private static final org.apache.thrift.protocol.TField THUMBNAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("thumbnail", org.apache.thrift.protocol.TType.STRING, (short)7);
|
35 |
private static final org.apache.thrift.protocol.TField THUMBNAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("thumbnail", org.apache.thrift.protocol.TType.STRING, (short)7);
|
| 36 |
private static final org.apache.thrift.protocol.TField CASH_BACK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back_type", org.apache.thrift.protocol.TType.I64, (short)8);
|
36 |
private static final org.apache.thrift.protocol.TField CASH_BACK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back_type", org.apache.thrift.protocol.TType.I64, (short)8);
|
| 37 |
private static final org.apache.thrift.protocol.TField CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
37 |
private static final org.apache.thrift.protocol.TField CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
| 38 |
private static final org.apache.thrift.protocol.TField COUPON_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon", org.apache.thrift.protocol.TType.STRING, (short)10);
|
38 |
private static final org.apache.thrift.protocol.TField COUPON_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon", org.apache.thrift.protocol.TType.STRING, (short)10);
|
| 39 |
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)11);
|
39 |
private static final org.apache.thrift.protocol.TField COD_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codAvailable", org.apache.thrift.protocol.TType.I64, (short)11);
|
| 40 |
|
40 |
|
| 41 |
private long _id; // required
|
41 |
private long _id; // required
|
| 42 |
private double available_price; // required
|
42 |
private double available_price; // required
|
| 43 |
private String marketPlaceUrl; // required
|
43 |
private String marketPlaceUrl; // required
|
| 44 |
private long in_stock; // required
|
44 |
private long in_stock; // required
|
| Line 46... |
Line 46... |
| 46 |
private String source_product_name; // required
|
46 |
private String source_product_name; // required
|
| 47 |
private String thumbnail; // required
|
47 |
private String thumbnail; // required
|
| 48 |
private long cash_back_type; // required
|
48 |
private long cash_back_type; // required
|
| 49 |
private double cash_back; // required
|
49 |
private double cash_back; // required
|
| 50 |
private String coupon; // required
|
50 |
private String coupon; // required
|
| 51 |
private boolean codAvailable; // required
|
51 |
private long codAvailable; // required
|
| 52 |
|
52 |
|
| 53 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
53 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 54 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
54 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 55 |
_ID((short)1, "_id"),
|
55 |
_ID((short)1, "_id"),
|
| 56 |
AVAILABLE_PRICE((short)2, "available_price"),
|
56 |
AVAILABLE_PRICE((short)2, "available_price"),
|
| Line 170... |
Line 170... |
| 170 |
tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
170 |
tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 172 |
tmpMap.put(_Fields.COUPON, new org.apache.thrift.meta_data.FieldMetaData("coupon", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
172 |
tmpMap.put(_Fields.COUPON, new org.apache.thrift.meta_data.FieldMetaData("coupon", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 174 |
tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
174 |
tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 176 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
176 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 177 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
177 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
| 178 |
}
|
178 |
}
|
| 179 |
|
179 |
|
| 180 |
public LivePricing() {
|
180 |
public LivePricing() {
|
| Line 189... |
Line 189... |
| 189 |
String source_product_name,
|
189 |
String source_product_name,
|
| 190 |
String thumbnail,
|
190 |
String thumbnail,
|
| 191 |
long cash_back_type,
|
191 |
long cash_back_type,
|
| 192 |
double cash_back,
|
192 |
double cash_back,
|
| 193 |
String coupon,
|
193 |
String coupon,
|
| 194 |
boolean codAvailable)
|
194 |
long codAvailable)
|
| 195 |
{
|
195 |
{
|
| 196 |
this();
|
196 |
this();
|
| 197 |
this._id = _id;
|
197 |
this._id = _id;
|
| 198 |
set_idIsSet(true);
|
198 |
set_idIsSet(true);
|
| 199 |
this.available_price = available_price;
|
199 |
this.available_price = available_price;
|
| Line 262... |
Line 262... |
| 262 |
this.cash_back_type = 0;
|
262 |
this.cash_back_type = 0;
|
| 263 |
setCash_backIsSet(false);
|
263 |
setCash_backIsSet(false);
|
| 264 |
this.cash_back = 0.0;
|
264 |
this.cash_back = 0.0;
|
| 265 |
this.coupon = null;
|
265 |
this.coupon = null;
|
| 266 |
setCodAvailableIsSet(false);
|
266 |
setCodAvailableIsSet(false);
|
| 267 |
this.codAvailable = false;
|
267 |
this.codAvailable = 0;
|
| 268 |
}
|
268 |
}
|
| 269 |
|
269 |
|
| 270 |
public long get_id() {
|
270 |
public long get_id() {
|
| 271 |
return this._id;
|
271 |
return this._id;
|
| 272 |
}
|
272 |
}
|
| Line 489... |
Line 489... |
| 489 |
if (!value) {
|
489 |
if (!value) {
|
| 490 |
this.coupon = null;
|
490 |
this.coupon = null;
|
| 491 |
}
|
491 |
}
|
| 492 |
}
|
492 |
}
|
| 493 |
|
493 |
|
| 494 |
public boolean isCodAvailable() {
|
494 |
public long getCodAvailable() {
|
| 495 |
return this.codAvailable;
|
495 |
return this.codAvailable;
|
| 496 |
}
|
496 |
}
|
| 497 |
|
497 |
|
| 498 |
public void setCodAvailable(boolean codAvailable) {
|
498 |
public void setCodAvailable(long codAvailable) {
|
| 499 |
this.codAvailable = codAvailable;
|
499 |
this.codAvailable = codAvailable;
|
| 500 |
setCodAvailableIsSet(true);
|
500 |
setCodAvailableIsSet(true);
|
| 501 |
}
|
501 |
}
|
| 502 |
|
502 |
|
| 503 |
public void unsetCodAvailable() {
|
503 |
public void unsetCodAvailable() {
|
| Line 597... |
Line 597... |
| 597 |
|
597 |
|
| 598 |
case COD_AVAILABLE:
|
598 |
case COD_AVAILABLE:
|
| 599 |
if (value == null) {
|
599 |
if (value == null) {
|
| 600 |
unsetCodAvailable();
|
600 |
unsetCodAvailable();
|
| 601 |
} else {
|
601 |
} else {
|
| 602 |
setCodAvailable((Boolean)value);
|
602 |
setCodAvailable((Long)value);
|
| 603 |
}
|
603 |
}
|
| 604 |
break;
|
604 |
break;
|
| 605 |
|
605 |
|
| 606 |
}
|
606 |
}
|
| 607 |
}
|
607 |
}
|
| Line 637... |
Line 637... |
| 637 |
|
637 |
|
| 638 |
case COUPON:
|
638 |
case COUPON:
|
| 639 |
return getCoupon();
|
639 |
return getCoupon();
|
| 640 |
|
640 |
|
| 641 |
case COD_AVAILABLE:
|
641 |
case COD_AVAILABLE:
|
| 642 |
return Boolean.valueOf(isCodAvailable());
|
642 |
return Long.valueOf(getCodAvailable());
|
| 643 |
|
643 |
|
| 644 |
}
|
644 |
}
|
| 645 |
throw new IllegalStateException();
|
645 |
throw new IllegalStateException();
|
| 646 |
}
|
646 |
}
|
| 647 |
|
647 |
|
| Line 1008... |
Line 1008... |
| 1008 |
} else {
|
1008 |
} else {
|
| 1009 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1009 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1010 |
}
|
1010 |
}
|
| 1011 |
break;
|
1011 |
break;
|
| 1012 |
case 11: // COD_AVAILABLE
|
1012 |
case 11: // COD_AVAILABLE
|
| 1013 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
1013 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 1014 |
this.codAvailable = iprot.readBool();
|
1014 |
this.codAvailable = iprot.readI64();
|
| 1015 |
setCodAvailableIsSet(true);
|
1015 |
setCodAvailableIsSet(true);
|
| 1016 |
} else {
|
1016 |
} else {
|
| 1017 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1017 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1018 |
}
|
1018 |
}
|
| 1019 |
break;
|
1019 |
break;
|
| Line 1067... |
Line 1067... |
| 1067 |
oprot.writeFieldBegin(COUPON_FIELD_DESC);
|
1067 |
oprot.writeFieldBegin(COUPON_FIELD_DESC);
|
| 1068 |
oprot.writeString(this.coupon);
|
1068 |
oprot.writeString(this.coupon);
|
| 1069 |
oprot.writeFieldEnd();
|
1069 |
oprot.writeFieldEnd();
|
| 1070 |
}
|
1070 |
}
|
| 1071 |
oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
|
1071 |
oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
|
| 1072 |
oprot.writeBool(this.codAvailable);
|
1072 |
oprot.writeI64(this.codAvailable);
|
| 1073 |
oprot.writeFieldEnd();
|
1073 |
oprot.writeFieldEnd();
|
| 1074 |
oprot.writeFieldStop();
|
1074 |
oprot.writeFieldStop();
|
| 1075 |
oprot.writeStructEnd();
|
1075 |
oprot.writeStructEnd();
|
| 1076 |
}
|
1076 |
}
|
| 1077 |
|
1077 |
|