| Line 36... |
Line 36... |
| 36 |
private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)11);
|
36 |
private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)11);
|
| 37 |
private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
37 |
private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
| 38 |
private static final org.apache.thrift.protocol.TField DATA_PROTECTION_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionInsurer", org.apache.thrift.protocol.TType.I64, (short)13);
|
38 |
private static final org.apache.thrift.protocol.TField DATA_PROTECTION_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionInsurer", org.apache.thrift.protocol.TType.I64, (short)13);
|
| 39 |
private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
39 |
private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
| 40 |
private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)15);
|
40 |
private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)15);
|
| 41 |
private static final org.apache.thrift.protocol.TField FREEBIE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieId", org.apache.thrift.protocol.TType.STRING, (short)16);
|
41 |
private static final org.apache.thrift.protocol.TField FREEBIE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieId", org.apache.thrift.protocol.TType.I64, (short)16);
|
| 42 |
|
42 |
|
| 43 |
private long cartId; // required
|
43 |
private long cartId; // required
|
| 44 |
private long itemId; // required
|
44 |
private long itemId; // required
|
| 45 |
private double quantity; // required
|
45 |
private double quantity; // required
|
| 46 |
private long createdOn; // required
|
46 |
private long createdOn; // required
|
| Line 53... |
Line 53... |
| 53 |
private long insurer; // required
|
53 |
private long insurer; // required
|
| 54 |
private double insuranceAmount; // required
|
54 |
private double insuranceAmount; // required
|
| 55 |
private long dataProtectionInsurer; // required
|
55 |
private long dataProtectionInsurer; // required
|
| 56 |
private double dataProtectionAmount; // required
|
56 |
private double dataProtectionAmount; // required
|
| 57 |
private String dealText; // required
|
57 |
private String dealText; // required
|
| 58 |
private String freebieId; // required
|
58 |
private long freebieId; // required
|
| 59 |
|
59 |
|
| 60 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
60 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 61 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
61 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 62 |
CART_ID((short)1, "cartId"),
|
62 |
CART_ID((short)1, "cartId"),
|
| 63 |
ITEM_ID((short)2, "itemId"),
|
63 |
ITEM_ID((short)2, "itemId"),
|
| Line 175... |
Line 175... |
| 175 |
private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
|
175 |
private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
|
| 176 |
private static final int __INSURER_ISSET_ID = 8;
|
176 |
private static final int __INSURER_ISSET_ID = 8;
|
| 177 |
private static final int __INSURANCEAMOUNT_ISSET_ID = 9;
|
177 |
private static final int __INSURANCEAMOUNT_ISSET_ID = 9;
|
| 178 |
private static final int __DATAPROTECTIONINSURER_ISSET_ID = 10;
|
178 |
private static final int __DATAPROTECTIONINSURER_ISSET_ID = 10;
|
| 179 |
private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 11;
|
179 |
private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 11;
|
| - |
|
180 |
private static final int __FREEBIEID_ISSET_ID = 12;
|
| 180 |
private BitSet __isset_bit_vector = new BitSet(12);
|
181 |
private BitSet __isset_bit_vector = new BitSet(13);
|
| 181 |
|
182 |
|
| 182 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
183 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 183 |
static {
|
184 |
static {
|
| 184 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
185 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 185 |
tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
186 |
tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 212... |
Line 213... |
| 212 |
tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
213 |
tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 213 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
214 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 214 |
tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
215 |
tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 215 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
216 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 216 |
tmpMap.put(_Fields.FREEBIE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
217 |
tmpMap.put(_Fields.FREEBIE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 217 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
218 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 218 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
219 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 219 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
|
220 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
|
| 220 |
}
|
221 |
}
|
| 221 |
|
222 |
|
| 222 |
public Line() {
|
223 |
public Line() {
|
| Line 236... |
Line 237... |
| 236 |
long insurer,
|
237 |
long insurer,
|
| 237 |
double insuranceAmount,
|
238 |
double insuranceAmount,
|
| 238 |
long dataProtectionInsurer,
|
239 |
long dataProtectionInsurer,
|
| 239 |
double dataProtectionAmount,
|
240 |
double dataProtectionAmount,
|
| 240 |
String dealText,
|
241 |
String dealText,
|
| 241 |
String freebieId)
|
242 |
long freebieId)
|
| 242 |
{
|
243 |
{
|
| 243 |
this();
|
244 |
this();
|
| 244 |
this.cartId = cartId;
|
245 |
this.cartId = cartId;
|
| 245 |
setCartIdIsSet(true);
|
246 |
setCartIdIsSet(true);
|
| 246 |
this.itemId = itemId;
|
247 |
this.itemId = itemId;
|
| Line 267... |
Line 268... |
| 267 |
setDataProtectionInsurerIsSet(true);
|
268 |
setDataProtectionInsurerIsSet(true);
|
| 268 |
this.dataProtectionAmount = dataProtectionAmount;
|
269 |
this.dataProtectionAmount = dataProtectionAmount;
|
| 269 |
setDataProtectionAmountIsSet(true);
|
270 |
setDataProtectionAmountIsSet(true);
|
| 270 |
this.dealText = dealText;
|
271 |
this.dealText = dealText;
|
| 271 |
this.freebieId = freebieId;
|
272 |
this.freebieId = freebieId;
|
| - |
|
273 |
setFreebieIdIsSet(true);
|
| 272 |
}
|
274 |
}
|
| 273 |
|
275 |
|
| 274 |
/**
|
276 |
/**
|
| 275 |
* Performs a deep copy on <i>other</i>.
|
277 |
* Performs a deep copy on <i>other</i>.
|
| 276 |
*/
|
278 |
*/
|
| Line 300... |
Line 302... |
| 300 |
this.dataProtectionInsurer = other.dataProtectionInsurer;
|
302 |
this.dataProtectionInsurer = other.dataProtectionInsurer;
|
| 301 |
this.dataProtectionAmount = other.dataProtectionAmount;
|
303 |
this.dataProtectionAmount = other.dataProtectionAmount;
|
| 302 |
if (other.isSetDealText()) {
|
304 |
if (other.isSetDealText()) {
|
| 303 |
this.dealText = other.dealText;
|
305 |
this.dealText = other.dealText;
|
| 304 |
}
|
306 |
}
|
| 305 |
if (other.isSetFreebieId()) {
|
- |
|
| 306 |
this.freebieId = other.freebieId;
|
307 |
this.freebieId = other.freebieId;
|
| 307 |
}
|
- |
|
| 308 |
}
|
308 |
}
|
| 309 |
|
309 |
|
| 310 |
public Line deepCopy() {
|
310 |
public Line deepCopy() {
|
| 311 |
return new Line(this);
|
311 |
return new Line(this);
|
| 312 |
}
|
312 |
}
|
| Line 338... |
Line 338... |
| 338 |
setDataProtectionInsurerIsSet(false);
|
338 |
setDataProtectionInsurerIsSet(false);
|
| 339 |
this.dataProtectionInsurer = 0;
|
339 |
this.dataProtectionInsurer = 0;
|
| 340 |
setDataProtectionAmountIsSet(false);
|
340 |
setDataProtectionAmountIsSet(false);
|
| 341 |
this.dataProtectionAmount = 0.0;
|
341 |
this.dataProtectionAmount = 0.0;
|
| 342 |
this.dealText = null;
|
342 |
this.dealText = null;
|
| - |
|
343 |
setFreebieIdIsSet(false);
|
| 343 |
this.freebieId = null;
|
344 |
this.freebieId = 0;
|
| 344 |
}
|
345 |
}
|
| 345 |
|
346 |
|
| 346 |
public long getCartId() {
|
347 |
public long getCartId() {
|
| 347 |
return this.cartId;
|
348 |
return this.cartId;
|
| 348 |
}
|
349 |
}
|
| Line 697... |
Line 698... |
| 697 |
if (!value) {
|
698 |
if (!value) {
|
| 698 |
this.dealText = null;
|
699 |
this.dealText = null;
|
| 699 |
}
|
700 |
}
|
| 700 |
}
|
701 |
}
|
| 701 |
|
702 |
|
| 702 |
public String getFreebieId() {
|
703 |
public long getFreebieId() {
|
| 703 |
return this.freebieId;
|
704 |
return this.freebieId;
|
| 704 |
}
|
705 |
}
|
| 705 |
|
706 |
|
| 706 |
public void setFreebieId(String freebieId) {
|
707 |
public void setFreebieId(long freebieId) {
|
| 707 |
this.freebieId = freebieId;
|
708 |
this.freebieId = freebieId;
|
| - |
|
709 |
setFreebieIdIsSet(true);
|
| 708 |
}
|
710 |
}
|
| 709 |
|
711 |
|
| 710 |
public void unsetFreebieId() {
|
712 |
public void unsetFreebieId() {
|
| 711 |
this.freebieId = null;
|
713 |
__isset_bit_vector.clear(__FREEBIEID_ISSET_ID);
|
| 712 |
}
|
714 |
}
|
| 713 |
|
715 |
|
| 714 |
/** Returns true if field freebieId is set (has been assigned a value) and false otherwise */
|
716 |
/** Returns true if field freebieId is set (has been assigned a value) and false otherwise */
|
| 715 |
public boolean isSetFreebieId() {
|
717 |
public boolean isSetFreebieId() {
|
| 716 |
return this.freebieId != null;
|
718 |
return __isset_bit_vector.get(__FREEBIEID_ISSET_ID);
|
| 717 |
}
|
719 |
}
|
| 718 |
|
720 |
|
| 719 |
public void setFreebieIdIsSet(boolean value) {
|
721 |
public void setFreebieIdIsSet(boolean value) {
|
| 720 |
if (!value) {
|
- |
|
| 721 |
this.freebieId = null;
|
722 |
__isset_bit_vector.set(__FREEBIEID_ISSET_ID, value);
|
| 722 |
}
|
- |
|
| 723 |
}
|
723 |
}
|
| 724 |
|
724 |
|
| 725 |
public void setFieldValue(_Fields field, Object value) {
|
725 |
public void setFieldValue(_Fields field, Object value) {
|
| 726 |
switch (field) {
|
726 |
switch (field) {
|
| 727 |
case CART_ID:
|
727 |
case CART_ID:
|
| Line 846... |
Line 846... |
| 846 |
|
846 |
|
| 847 |
case FREEBIE_ID:
|
847 |
case FREEBIE_ID:
|
| 848 |
if (value == null) {
|
848 |
if (value == null) {
|
| 849 |
unsetFreebieId();
|
849 |
unsetFreebieId();
|
| 850 |
} else {
|
850 |
} else {
|
| 851 |
setFreebieId((String)value);
|
851 |
setFreebieId((Long)value);
|
| 852 |
}
|
852 |
}
|
| 853 |
break;
|
853 |
break;
|
| 854 |
|
854 |
|
| 855 |
}
|
855 |
}
|
| 856 |
}
|
856 |
}
|
| Line 901... |
Line 901... |
| 901 |
|
901 |
|
| 902 |
case DEAL_TEXT:
|
902 |
case DEAL_TEXT:
|
| 903 |
return getDealText();
|
903 |
return getDealText();
|
| 904 |
|
904 |
|
| 905 |
case FREEBIE_ID:
|
905 |
case FREEBIE_ID:
|
| 906 |
return getFreebieId();
|
906 |
return Long.valueOf(getFreebieId());
|
| 907 |
|
907 |
|
| 908 |
}
|
908 |
}
|
| 909 |
throw new IllegalStateException();
|
909 |
throw new IllegalStateException();
|
| 910 |
}
|
910 |
}
|
| 911 |
|
911 |
|
| Line 1098... |
Line 1098... |
| 1098 |
return false;
|
1098 |
return false;
|
| 1099 |
if (!this.dealText.equals(that.dealText))
|
1099 |
if (!this.dealText.equals(that.dealText))
|
| 1100 |
return false;
|
1100 |
return false;
|
| 1101 |
}
|
1101 |
}
|
| 1102 |
|
1102 |
|
| 1103 |
boolean this_present_freebieId = true && this.isSetFreebieId();
|
1103 |
boolean this_present_freebieId = true;
|
| 1104 |
boolean that_present_freebieId = true && that.isSetFreebieId();
|
1104 |
boolean that_present_freebieId = true;
|
| 1105 |
if (this_present_freebieId || that_present_freebieId) {
|
1105 |
if (this_present_freebieId || that_present_freebieId) {
|
| 1106 |
if (!(this_present_freebieId && that_present_freebieId))
|
1106 |
if (!(this_present_freebieId && that_present_freebieId))
|
| 1107 |
return false;
|
1107 |
return false;
|
| 1108 |
if (!this.freebieId.equals(that.freebieId))
|
1108 |
if (this.freebieId != that.freebieId)
|
| 1109 |
return false;
|
1109 |
return false;
|
| 1110 |
}
|
1110 |
}
|
| 1111 |
|
1111 |
|
| 1112 |
return true;
|
1112 |
return true;
|
| 1113 |
}
|
1113 |
}
|
| Line 1429... |
Line 1429... |
| 1429 |
} else {
|
1429 |
} else {
|
| 1430 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1430 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1431 |
}
|
1431 |
}
|
| 1432 |
break;
|
1432 |
break;
|
| 1433 |
case 16: // FREEBIE_ID
|
1433 |
case 16: // FREEBIE_ID
|
| 1434 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
1434 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 1435 |
this.freebieId = iprot.readString();
|
1435 |
this.freebieId = iprot.readI64();
|
| - |
|
1436 |
setFreebieIdIsSet(true);
|
| 1436 |
} else {
|
1437 |
} else {
|
| 1437 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1438 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1438 |
}
|
1439 |
}
|
| 1439 |
break;
|
1440 |
break;
|
| 1440 |
default:
|
1441 |
default:
|
| Line 1506... |
Line 1507... |
| 1506 |
if (this.dealText != null) {
|
1507 |
if (this.dealText != null) {
|
| 1507 |
oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
|
1508 |
oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
|
| 1508 |
oprot.writeString(this.dealText);
|
1509 |
oprot.writeString(this.dealText);
|
| 1509 |
oprot.writeFieldEnd();
|
1510 |
oprot.writeFieldEnd();
|
| 1510 |
}
|
1511 |
}
|
| 1511 |
if (this.freebieId != null) {
|
- |
|
| 1512 |
oprot.writeFieldBegin(FREEBIE_ID_FIELD_DESC);
|
1512 |
oprot.writeFieldBegin(FREEBIE_ID_FIELD_DESC);
|
| 1513 |
oprot.writeString(this.freebieId);
|
1513 |
oprot.writeI64(this.freebieId);
|
| 1514 |
oprot.writeFieldEnd();
|
1514 |
oprot.writeFieldEnd();
|
| 1515 |
}
|
- |
|
| 1516 |
oprot.writeFieldStop();
|
1515 |
oprot.writeFieldStop();
|
| 1517 |
oprot.writeStructEnd();
|
1516 |
oprot.writeStructEnd();
|
| 1518 |
}
|
1517 |
}
|
| 1519 |
|
1518 |
|
| 1520 |
@Override
|
1519 |
@Override
|
| Line 1593... |
Line 1592... |
| 1593 |
sb.append(this.dealText);
|
1592 |
sb.append(this.dealText);
|
| 1594 |
}
|
1593 |
}
|
| 1595 |
first = false;
|
1594 |
first = false;
|
| 1596 |
if (!first) sb.append(", ");
|
1595 |
if (!first) sb.append(", ");
|
| 1597 |
sb.append("freebieId:");
|
1596 |
sb.append("freebieId:");
|
| 1598 |
if (this.freebieId == null) {
|
- |
|
| 1599 |
sb.append("null");
|
- |
|
| 1600 |
} else {
|
- |
|
| 1601 |
sb.append(this.freebieId);
|
1597 |
sb.append(this.freebieId);
|
| 1602 |
}
|
- |
|
| 1603 |
first = false;
|
1598 |
first = false;
|
| 1604 |
sb.append(")");
|
1599 |
sb.append(")");
|
| 1605 |
return sb.toString();
|
1600 |
return sb.toString();
|
| 1606 |
}
|
1601 |
}
|
| 1607 |
|
1602 |
|