| Line 61... |
Line 61... |
| 61 |
private static final org.apache.thrift.protocol.TField VAT_PERCENTAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("vatPercentage", org.apache.thrift.protocol.TType.DOUBLE, (short)37);
|
61 |
private static final org.apache.thrift.protocol.TField VAT_PERCENTAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("vatPercentage", org.apache.thrift.protocol.TType.DOUBLE, (short)37);
|
| 62 |
private static final org.apache.thrift.protocol.TField SHOW_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showSellingPrice", org.apache.thrift.protocol.TType.BOOL, (short)38);
|
62 |
private static final org.apache.thrift.protocol.TField SHOW_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showSellingPrice", org.apache.thrift.protocol.TType.BOOL, (short)38);
|
| 63 |
private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsText", org.apache.thrift.protocol.TType.STRING, (short)39);
|
63 |
private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsText", org.apache.thrift.protocol.TType.STRING, (short)39);
|
| 64 |
private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsLink", org.apache.thrift.protocol.TType.STRING, (short)40);
|
64 |
private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsLink", org.apache.thrift.protocol.TType.STRING, (short)40);
|
| 65 |
private static final org.apache.thrift.protocol.TField PREFERRED_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("preferredInsurer", org.apache.thrift.protocol.TType.I64, (short)41);
|
65 |
private static final org.apache.thrift.protocol.TField PREFERRED_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("preferredInsurer", org.apache.thrift.protocol.TType.I64, (short)41);
|
| - |
|
66 |
private static final org.apache.thrift.protocol.TField ASIN_FIELD_DESC = new org.apache.thrift.protocol.TField("asin", org.apache.thrift.protocol.TType.STRING, (short)42);
|
| - |
|
67 |
private static final org.apache.thrift.protocol.TField DEFAULT_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultInventory", org.apache.thrift.protocol.TType.I64, (short)43);
|
| - |
|
68 |
private static final org.apache.thrift.protocol.TField HOLD_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdInventory", org.apache.thrift.protocol.TType.I64, (short)44);
|
| 66 |
|
69 |
|
| 67 |
private long id; // required
|
70 |
private long id; // required
|
| 68 |
private String productGroup; // required
|
71 |
private String productGroup; // required
|
| 69 |
private String brand; // required
|
72 |
private String brand; // required
|
| 70 |
private String modelNumber; // required
|
73 |
private String modelNumber; // required
|
| Line 102... |
Line 105... |
| 102 |
private double vatPercentage; // required
|
105 |
private double vatPercentage; // required
|
| 103 |
private boolean showSellingPrice; // required
|
106 |
private boolean showSellingPrice; // required
|
| 104 |
private String bestDealsDetailsText; // required
|
107 |
private String bestDealsDetailsText; // required
|
| 105 |
private String bestDealsDetailsLink; // required
|
108 |
private String bestDealsDetailsLink; // required
|
| 106 |
private long preferredInsurer; // required
|
109 |
private long preferredInsurer; // required
|
| - |
|
110 |
private String asin; // required
|
| - |
|
111 |
private long defaultInventory; // required
|
| - |
|
112 |
private long holdInventory; // required
|
| 107 |
|
113 |
|
| 108 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
114 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 109 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
115 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 110 |
ID((short)1, "id"),
|
116 |
ID((short)1, "id"),
|
| 111 |
PRODUCT_GROUP((short)2, "productGroup"),
|
117 |
PRODUCT_GROUP((short)2, "productGroup"),
|
| Line 152... |
Line 158... |
| 152 |
ACTIVE_ON_STORE((short)36, "activeOnStore"),
|
158 |
ACTIVE_ON_STORE((short)36, "activeOnStore"),
|
| 153 |
VAT_PERCENTAGE((short)37, "vatPercentage"),
|
159 |
VAT_PERCENTAGE((short)37, "vatPercentage"),
|
| 154 |
SHOW_SELLING_PRICE((short)38, "showSellingPrice"),
|
160 |
SHOW_SELLING_PRICE((short)38, "showSellingPrice"),
|
| 155 |
BEST_DEALS_DETAILS_TEXT((short)39, "bestDealsDetailsText"),
|
161 |
BEST_DEALS_DETAILS_TEXT((short)39, "bestDealsDetailsText"),
|
| 156 |
BEST_DEALS_DETAILS_LINK((short)40, "bestDealsDetailsLink"),
|
162 |
BEST_DEALS_DETAILS_LINK((short)40, "bestDealsDetailsLink"),
|
| 157 |
PREFERRED_INSURER((short)41, "preferredInsurer");
|
163 |
PREFERRED_INSURER((short)41, "preferredInsurer"),
|
| - |
|
164 |
ASIN((short)42, "asin"),
|
| - |
|
165 |
DEFAULT_INVENTORY((short)43, "defaultInventory"),
|
| - |
|
166 |
HOLD_INVENTORY((short)44, "holdInventory");
|
| 158 |
|
167 |
|
| 159 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
168 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 160 |
|
169 |
|
| 161 |
static {
|
170 |
static {
|
| 162 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
171 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 247... |
Line 256... |
| 247 |
return BEST_DEALS_DETAILS_TEXT;
|
256 |
return BEST_DEALS_DETAILS_TEXT;
|
| 248 |
case 40: // BEST_DEALS_DETAILS_LINK
|
257 |
case 40: // BEST_DEALS_DETAILS_LINK
|
| 249 |
return BEST_DEALS_DETAILS_LINK;
|
258 |
return BEST_DEALS_DETAILS_LINK;
|
| 250 |
case 41: // PREFERRED_INSURER
|
259 |
case 41: // PREFERRED_INSURER
|
| 251 |
return PREFERRED_INSURER;
|
260 |
return PREFERRED_INSURER;
|
| - |
|
261 |
case 42: // ASIN
|
| - |
|
262 |
return ASIN;
|
| - |
|
263 |
case 43: // DEFAULT_INVENTORY
|
| - |
|
264 |
return DEFAULT_INVENTORY;
|
| - |
|
265 |
case 44: // HOLD_INVENTORY
|
| - |
|
266 |
return HOLD_INVENTORY;
|
| 252 |
default:
|
267 |
default:
|
| 253 |
return null;
|
268 |
return null;
|
| 254 |
}
|
269 |
}
|
| 255 |
}
|
270 |
}
|
| 256 |
|
271 |
|
| Line 313... |
Line 328... |
| 313 |
private static final int __HASITEMNO_ISSET_ID = 21;
|
328 |
private static final int __HASITEMNO_ISSET_ID = 21;
|
| 314 |
private static final int __ACTIVEONSTORE_ISSET_ID = 22;
|
329 |
private static final int __ACTIVEONSTORE_ISSET_ID = 22;
|
| 315 |
private static final int __VATPERCENTAGE_ISSET_ID = 23;
|
330 |
private static final int __VATPERCENTAGE_ISSET_ID = 23;
|
| 316 |
private static final int __SHOWSELLINGPRICE_ISSET_ID = 24;
|
331 |
private static final int __SHOWSELLINGPRICE_ISSET_ID = 24;
|
| 317 |
private static final int __PREFERREDINSURER_ISSET_ID = 25;
|
332 |
private static final int __PREFERREDINSURER_ISSET_ID = 25;
|
| - |
|
333 |
private static final int __DEFAULTINVENTORY_ISSET_ID = 26;
|
| - |
|
334 |
private static final int __HOLDINVENTORY_ISSET_ID = 27;
|
| 318 |
private BitSet __isset_bit_vector = new BitSet(26);
|
335 |
private BitSet __isset_bit_vector = new BitSet(28);
|
| 319 |
|
336 |
|
| 320 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
337 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 321 |
static {
|
338 |
static {
|
| 322 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
339 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 323 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
340 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 400... |
Line 417... |
| 400 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
417 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 401 |
tmpMap.put(_Fields.BEST_DEALS_DETAILS_LINK, new org.apache.thrift.meta_data.FieldMetaData("bestDealsDetailsLink", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
418 |
tmpMap.put(_Fields.BEST_DEALS_DETAILS_LINK, new org.apache.thrift.meta_data.FieldMetaData("bestDealsDetailsLink", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 402 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
419 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 403 |
tmpMap.put(_Fields.PREFERRED_INSURER, new org.apache.thrift.meta_data.FieldMetaData("preferredInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
420 |
tmpMap.put(_Fields.PREFERRED_INSURER, new org.apache.thrift.meta_data.FieldMetaData("preferredInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 404 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
421 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
422 |
tmpMap.put(_Fields.ASIN, new org.apache.thrift.meta_data.FieldMetaData("asin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
423 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
424 |
tmpMap.put(_Fields.DEFAULT_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("defaultInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
425 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
426 |
tmpMap.put(_Fields.HOLD_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("holdInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
427 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 405 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
428 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 406 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
|
429 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
|
| 407 |
}
|
430 |
}
|
| 408 |
|
431 |
|
| 409 |
public Item() {
|
432 |
public Item() {
|
| Line 435... |
Line 458... |
| 435 |
boolean activeOnStore,
|
458 |
boolean activeOnStore,
|
| 436 |
double vatPercentage,
|
459 |
double vatPercentage,
|
| 437 |
boolean showSellingPrice,
|
460 |
boolean showSellingPrice,
|
| 438 |
String bestDealsDetailsText,
|
461 |
String bestDealsDetailsText,
|
| 439 |
String bestDealsDetailsLink,
|
462 |
String bestDealsDetailsLink,
|
| 440 |
long preferredInsurer)
|
463 |
long preferredInsurer,
|
| - |
|
464 |
String asin,
|
| - |
|
465 |
long defaultInventory,
|
| - |
|
466 |
long holdInventory)
|
| 441 |
{
|
467 |
{
|
| 442 |
this();
|
468 |
this();
|
| 443 |
this.id = id;
|
469 |
this.id = id;
|
| 444 |
setIdIsSet(true);
|
470 |
setIdIsSet(true);
|
| 445 |
this.productGroup = productGroup;
|
471 |
this.productGroup = productGroup;
|
| Line 480... |
Line 506... |
| 480 |
setShowSellingPriceIsSet(true);
|
506 |
setShowSellingPriceIsSet(true);
|
| 481 |
this.bestDealsDetailsText = bestDealsDetailsText;
|
507 |
this.bestDealsDetailsText = bestDealsDetailsText;
|
| 482 |
this.bestDealsDetailsLink = bestDealsDetailsLink;
|
508 |
this.bestDealsDetailsLink = bestDealsDetailsLink;
|
| 483 |
this.preferredInsurer = preferredInsurer;
|
509 |
this.preferredInsurer = preferredInsurer;
|
| 484 |
setPreferredInsurerIsSet(true);
|
510 |
setPreferredInsurerIsSet(true);
|
| - |
|
511 |
this.asin = asin;
|
| - |
|
512 |
this.defaultInventory = defaultInventory;
|
| - |
|
513 |
setDefaultInventoryIsSet(true);
|
| - |
|
514 |
this.holdInventory = holdInventory;
|
| - |
|
515 |
setHoldInventoryIsSet(true);
|
| 485 |
}
|
516 |
}
|
| 486 |
|
517 |
|
| 487 |
/**
|
518 |
/**
|
| 488 |
* Performs a deep copy on <i>other</i>.
|
519 |
* Performs a deep copy on <i>other</i>.
|
| 489 |
*/
|
520 |
*/
|
| Line 568... |
Line 599... |
| 568 |
}
|
599 |
}
|
| 569 |
if (other.isSetBestDealsDetailsLink()) {
|
600 |
if (other.isSetBestDealsDetailsLink()) {
|
| 570 |
this.bestDealsDetailsLink = other.bestDealsDetailsLink;
|
601 |
this.bestDealsDetailsLink = other.bestDealsDetailsLink;
|
| 571 |
}
|
602 |
}
|
| 572 |
this.preferredInsurer = other.preferredInsurer;
|
603 |
this.preferredInsurer = other.preferredInsurer;
|
| - |
|
604 |
if (other.isSetAsin()) {
|
| - |
|
605 |
this.asin = other.asin;
|
| - |
|
606 |
}
|
| - |
|
607 |
this.defaultInventory = other.defaultInventory;
|
| - |
|
608 |
this.holdInventory = other.holdInventory;
|
| 573 |
}
|
609 |
}
|
| 574 |
|
610 |
|
| 575 |
public Item deepCopy() {
|
611 |
public Item deepCopy() {
|
| 576 |
return new Item(this);
|
612 |
return new Item(this);
|
| 577 |
}
|
613 |
}
|
| Line 642... |
Line 678... |
| 642 |
this.showSellingPrice = false;
|
678 |
this.showSellingPrice = false;
|
| 643 |
this.bestDealsDetailsText = null;
|
679 |
this.bestDealsDetailsText = null;
|
| 644 |
this.bestDealsDetailsLink = null;
|
680 |
this.bestDealsDetailsLink = null;
|
| 645 |
setPreferredInsurerIsSet(false);
|
681 |
setPreferredInsurerIsSet(false);
|
| 646 |
this.preferredInsurer = 0;
|
682 |
this.preferredInsurer = 0;
|
| - |
|
683 |
this.asin = null;
|
| - |
|
684 |
setDefaultInventoryIsSet(false);
|
| - |
|
685 |
this.defaultInventory = 0;
|
| - |
|
686 |
setHoldInventoryIsSet(false);
|
| - |
|
687 |
this.holdInventory = 0;
|
| 647 |
}
|
688 |
}
|
| 648 |
|
689 |
|
| 649 |
public long getId() {
|
690 |
public long getId() {
|
| 650 |
return this.id;
|
691 |
return this.id;
|
| 651 |
}
|
692 |
}
|
| Line 1565... |
Line 1606... |
| 1565 |
|
1606 |
|
| 1566 |
public void setPreferredInsurerIsSet(boolean value) {
|
1607 |
public void setPreferredInsurerIsSet(boolean value) {
|
| 1567 |
__isset_bit_vector.set(__PREFERREDINSURER_ISSET_ID, value);
|
1608 |
__isset_bit_vector.set(__PREFERREDINSURER_ISSET_ID, value);
|
| 1568 |
}
|
1609 |
}
|
| 1569 |
|
1610 |
|
| - |
|
1611 |
public String getAsin() {
|
| - |
|
1612 |
return this.asin;
|
| - |
|
1613 |
}
|
| - |
|
1614 |
|
| - |
|
1615 |
public void setAsin(String asin) {
|
| - |
|
1616 |
this.asin = asin;
|
| - |
|
1617 |
}
|
| - |
|
1618 |
|
| - |
|
1619 |
public void unsetAsin() {
|
| - |
|
1620 |
this.asin = null;
|
| - |
|
1621 |
}
|
| - |
|
1622 |
|
| - |
|
1623 |
/** Returns true if field asin is set (has been assigned a value) and false otherwise */
|
| - |
|
1624 |
public boolean isSetAsin() {
|
| - |
|
1625 |
return this.asin != null;
|
| - |
|
1626 |
}
|
| - |
|
1627 |
|
| - |
|
1628 |
public void setAsinIsSet(boolean value) {
|
| - |
|
1629 |
if (!value) {
|
| - |
|
1630 |
this.asin = null;
|
| - |
|
1631 |
}
|
| - |
|
1632 |
}
|
| - |
|
1633 |
|
| - |
|
1634 |
public long getDefaultInventory() {
|
| - |
|
1635 |
return this.defaultInventory;
|
| - |
|
1636 |
}
|
| - |
|
1637 |
|
| - |
|
1638 |
public void setDefaultInventory(long defaultInventory) {
|
| - |
|
1639 |
this.defaultInventory = defaultInventory;
|
| - |
|
1640 |
setDefaultInventoryIsSet(true);
|
| - |
|
1641 |
}
|
| - |
|
1642 |
|
| - |
|
1643 |
public void unsetDefaultInventory() {
|
| - |
|
1644 |
__isset_bit_vector.clear(__DEFAULTINVENTORY_ISSET_ID);
|
| - |
|
1645 |
}
|
| - |
|
1646 |
|
| - |
|
1647 |
/** Returns true if field defaultInventory is set (has been assigned a value) and false otherwise */
|
| - |
|
1648 |
public boolean isSetDefaultInventory() {
|
| - |
|
1649 |
return __isset_bit_vector.get(__DEFAULTINVENTORY_ISSET_ID);
|
| - |
|
1650 |
}
|
| - |
|
1651 |
|
| - |
|
1652 |
public void setDefaultInventoryIsSet(boolean value) {
|
| - |
|
1653 |
__isset_bit_vector.set(__DEFAULTINVENTORY_ISSET_ID, value);
|
| - |
|
1654 |
}
|
| - |
|
1655 |
|
| - |
|
1656 |
public long getHoldInventory() {
|
| - |
|
1657 |
return this.holdInventory;
|
| - |
|
1658 |
}
|
| - |
|
1659 |
|
| - |
|
1660 |
public void setHoldInventory(long holdInventory) {
|
| - |
|
1661 |
this.holdInventory = holdInventory;
|
| - |
|
1662 |
setHoldInventoryIsSet(true);
|
| - |
|
1663 |
}
|
| - |
|
1664 |
|
| - |
|
1665 |
public void unsetHoldInventory() {
|
| - |
|
1666 |
__isset_bit_vector.clear(__HOLDINVENTORY_ISSET_ID);
|
| - |
|
1667 |
}
|
| - |
|
1668 |
|
| - |
|
1669 |
/** Returns true if field holdInventory is set (has been assigned a value) and false otherwise */
|
| - |
|
1670 |
public boolean isSetHoldInventory() {
|
| - |
|
1671 |
return __isset_bit_vector.get(__HOLDINVENTORY_ISSET_ID);
|
| - |
|
1672 |
}
|
| - |
|
1673 |
|
| - |
|
1674 |
public void setHoldInventoryIsSet(boolean value) {
|
| - |
|
1675 |
__isset_bit_vector.set(__HOLDINVENTORY_ISSET_ID, value);
|
| - |
|
1676 |
}
|
| - |
|
1677 |
|
| 1570 |
public void setFieldValue(_Fields field, Object value) {
|
1678 |
public void setFieldValue(_Fields field, Object value) {
|
| 1571 |
switch (field) {
|
1679 |
switch (field) {
|
| 1572 |
case ID:
|
1680 |
case ID:
|
| 1573 |
if (value == null) {
|
1681 |
if (value == null) {
|
| 1574 |
unsetId();
|
1682 |
unsetId();
|
| Line 1887... |
Line 1995... |
| 1887 |
} else {
|
1995 |
} else {
|
| 1888 |
setPreferredInsurer((Long)value);
|
1996 |
setPreferredInsurer((Long)value);
|
| 1889 |
}
|
1997 |
}
|
| 1890 |
break;
|
1998 |
break;
|
| 1891 |
|
1999 |
|
| - |
|
2000 |
case ASIN:
|
| - |
|
2001 |
if (value == null) {
|
| - |
|
2002 |
unsetAsin();
|
| - |
|
2003 |
} else {
|
| - |
|
2004 |
setAsin((String)value);
|
| - |
|
2005 |
}
|
| - |
|
2006 |
break;
|
| - |
|
2007 |
|
| - |
|
2008 |
case DEFAULT_INVENTORY:
|
| - |
|
2009 |
if (value == null) {
|
| - |
|
2010 |
unsetDefaultInventory();
|
| - |
|
2011 |
} else {
|
| - |
|
2012 |
setDefaultInventory((Long)value);
|
| - |
|
2013 |
}
|
| - |
|
2014 |
break;
|
| - |
|
2015 |
|
| - |
|
2016 |
case HOLD_INVENTORY:
|
| - |
|
2017 |
if (value == null) {
|
| - |
|
2018 |
unsetHoldInventory();
|
| - |
|
2019 |
} else {
|
| - |
|
2020 |
setHoldInventory((Long)value);
|
| - |
|
2021 |
}
|
| - |
|
2022 |
break;
|
| - |
|
2023 |
|
| 1892 |
}
|
2024 |
}
|
| 1893 |
}
|
2025 |
}
|
| 1894 |
|
2026 |
|
| 1895 |
public Object getFieldValue(_Fields field) {
|
2027 |
public Object getFieldValue(_Fields field) {
|
| 1896 |
switch (field) {
|
2028 |
switch (field) {
|
| Line 2012... |
Line 2144... |
| 2012 |
return getBestDealsDetailsLink();
|
2144 |
return getBestDealsDetailsLink();
|
| 2013 |
|
2145 |
|
| 2014 |
case PREFERRED_INSURER:
|
2146 |
case PREFERRED_INSURER:
|
| 2015 |
return Long.valueOf(getPreferredInsurer());
|
2147 |
return Long.valueOf(getPreferredInsurer());
|
| 2016 |
|
2148 |
|
| - |
|
2149 |
case ASIN:
|
| - |
|
2150 |
return getAsin();
|
| - |
|
2151 |
|
| - |
|
2152 |
case DEFAULT_INVENTORY:
|
| - |
|
2153 |
return Long.valueOf(getDefaultInventory());
|
| - |
|
2154 |
|
| - |
|
2155 |
case HOLD_INVENTORY:
|
| - |
|
2156 |
return Long.valueOf(getHoldInventory());
|
| - |
|
2157 |
|
| 2017 |
}
|
2158 |
}
|
| 2018 |
throw new IllegalStateException();
|
2159 |
throw new IllegalStateException();
|
| 2019 |
}
|
2160 |
}
|
| 2020 |
|
2161 |
|
| 2021 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
2162 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 2103... |
Line 2244... |
| 2103 |
return isSetBestDealsDetailsText();
|
2244 |
return isSetBestDealsDetailsText();
|
| 2104 |
case BEST_DEALS_DETAILS_LINK:
|
2245 |
case BEST_DEALS_DETAILS_LINK:
|
| 2105 |
return isSetBestDealsDetailsLink();
|
2246 |
return isSetBestDealsDetailsLink();
|
| 2106 |
case PREFERRED_INSURER:
|
2247 |
case PREFERRED_INSURER:
|
| 2107 |
return isSetPreferredInsurer();
|
2248 |
return isSetPreferredInsurer();
|
| - |
|
2249 |
case ASIN:
|
| - |
|
2250 |
return isSetAsin();
|
| - |
|
2251 |
case DEFAULT_INVENTORY:
|
| - |
|
2252 |
return isSetDefaultInventory();
|
| - |
|
2253 |
case HOLD_INVENTORY:
|
| - |
|
2254 |
return isSetHoldInventory();
|
| 2108 |
}
|
2255 |
}
|
| 2109 |
throw new IllegalStateException();
|
2256 |
throw new IllegalStateException();
|
| 2110 |
}
|
2257 |
}
|
| 2111 |
|
2258 |
|
| 2112 |
@Override
|
2259 |
@Override
|
| Line 2480... |
Line 2627... |
| 2480 |
return false;
|
2627 |
return false;
|
| 2481 |
if (this.preferredInsurer != that.preferredInsurer)
|
2628 |
if (this.preferredInsurer != that.preferredInsurer)
|
| 2482 |
return false;
|
2629 |
return false;
|
| 2483 |
}
|
2630 |
}
|
| 2484 |
|
2631 |
|
| - |
|
2632 |
boolean this_present_asin = true && this.isSetAsin();
|
| - |
|
2633 |
boolean that_present_asin = true && that.isSetAsin();
|
| - |
|
2634 |
if (this_present_asin || that_present_asin) {
|
| - |
|
2635 |
if (!(this_present_asin && that_present_asin))
|
| - |
|
2636 |
return false;
|
| - |
|
2637 |
if (!this.asin.equals(that.asin))
|
| - |
|
2638 |
return false;
|
| - |
|
2639 |
}
|
| - |
|
2640 |
|
| - |
|
2641 |
boolean this_present_defaultInventory = true;
|
| - |
|
2642 |
boolean that_present_defaultInventory = true;
|
| - |
|
2643 |
if (this_present_defaultInventory || that_present_defaultInventory) {
|
| - |
|
2644 |
if (!(this_present_defaultInventory && that_present_defaultInventory))
|
| - |
|
2645 |
return false;
|
| - |
|
2646 |
if (this.defaultInventory != that.defaultInventory)
|
| - |
|
2647 |
return false;
|
| - |
|
2648 |
}
|
| - |
|
2649 |
|
| - |
|
2650 |
boolean this_present_holdInventory = true;
|
| - |
|
2651 |
boolean that_present_holdInventory = true;
|
| - |
|
2652 |
if (this_present_holdInventory || that_present_holdInventory) {
|
| - |
|
2653 |
if (!(this_present_holdInventory && that_present_holdInventory))
|
| - |
|
2654 |
return false;
|
| - |
|
2655 |
if (this.holdInventory != that.holdInventory)
|
| - |
|
2656 |
return false;
|
| - |
|
2657 |
}
|
| - |
|
2658 |
|
| 2485 |
return true;
|
2659 |
return true;
|
| 2486 |
}
|
2660 |
}
|
| 2487 |
|
2661 |
|
| 2488 |
@Override
|
2662 |
@Override
|
| 2489 |
public int hashCode() {
|
2663 |
public int hashCode() {
|
| Line 2896... |
Line 3070... |
| 2896 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredInsurer, typedOther.preferredInsurer);
|
3070 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredInsurer, typedOther.preferredInsurer);
|
| 2897 |
if (lastComparison != 0) {
|
3071 |
if (lastComparison != 0) {
|
| 2898 |
return lastComparison;
|
3072 |
return lastComparison;
|
| 2899 |
}
|
3073 |
}
|
| 2900 |
}
|
3074 |
}
|
| - |
|
3075 |
lastComparison = Boolean.valueOf(isSetAsin()).compareTo(typedOther.isSetAsin());
|
| - |
|
3076 |
if (lastComparison != 0) {
|
| - |
|
3077 |
return lastComparison;
|
| - |
|
3078 |
}
|
| - |
|
3079 |
if (isSetAsin()) {
|
| - |
|
3080 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asin, typedOther.asin);
|
| - |
|
3081 |
if (lastComparison != 0) {
|
| - |
|
3082 |
return lastComparison;
|
| - |
|
3083 |
}
|
| - |
|
3084 |
}
|
| - |
|
3085 |
lastComparison = Boolean.valueOf(isSetDefaultInventory()).compareTo(typedOther.isSetDefaultInventory());
|
| - |
|
3086 |
if (lastComparison != 0) {
|
| - |
|
3087 |
return lastComparison;
|
| - |
|
3088 |
}
|
| - |
|
3089 |
if (isSetDefaultInventory()) {
|
| - |
|
3090 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultInventory, typedOther.defaultInventory);
|
| - |
|
3091 |
if (lastComparison != 0) {
|
| - |
|
3092 |
return lastComparison;
|
| - |
|
3093 |
}
|
| - |
|
3094 |
}
|
| - |
|
3095 |
lastComparison = Boolean.valueOf(isSetHoldInventory()).compareTo(typedOther.isSetHoldInventory());
|
| - |
|
3096 |
if (lastComparison != 0) {
|
| - |
|
3097 |
return lastComparison;
|
| - |
|
3098 |
}
|
| - |
|
3099 |
if (isSetHoldInventory()) {
|
| - |
|
3100 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdInventory, typedOther.holdInventory);
|
| - |
|
3101 |
if (lastComparison != 0) {
|
| - |
|
3102 |
return lastComparison;
|
| - |
|
3103 |
}
|
| - |
|
3104 |
}
|
| 2901 |
return 0;
|
3105 |
return 0;
|
| 2902 |
}
|
3106 |
}
|
| 2903 |
|
3107 |
|
| 2904 |
public _Fields fieldForId(int fieldId) {
|
3108 |
public _Fields fieldForId(int fieldId) {
|
| 2905 |
return _Fields.findByThriftId(fieldId);
|
3109 |
return _Fields.findByThriftId(fieldId);
|
| Line 3231... |
Line 3435... |
| 3231 |
setPreferredInsurerIsSet(true);
|
3435 |
setPreferredInsurerIsSet(true);
|
| 3232 |
} else {
|
3436 |
} else {
|
| 3233 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3437 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3234 |
}
|
3438 |
}
|
| 3235 |
break;
|
3439 |
break;
|
| - |
|
3440 |
case 42: // ASIN
|
| - |
|
3441 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
3442 |
this.asin = iprot.readString();
|
| - |
|
3443 |
} else {
|
| - |
|
3444 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3445 |
}
|
| - |
|
3446 |
break;
|
| - |
|
3447 |
case 43: // DEFAULT_INVENTORY
|
| - |
|
3448 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
3449 |
this.defaultInventory = iprot.readI64();
|
| - |
|
3450 |
setDefaultInventoryIsSet(true);
|
| - |
|
3451 |
} else {
|
| - |
|
3452 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3453 |
}
|
| - |
|
3454 |
break;
|
| - |
|
3455 |
case 44: // HOLD_INVENTORY
|
| - |
|
3456 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
3457 |
this.holdInventory = iprot.readI64();
|
| - |
|
3458 |
setHoldInventoryIsSet(true);
|
| - |
|
3459 |
} else {
|
| - |
|
3460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3461 |
}
|
| - |
|
3462 |
break;
|
| 3236 |
default:
|
3463 |
default:
|
| 3237 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3238 |
}
|
3465 |
}
|
| 3239 |
iprot.readFieldEnd();
|
3466 |
iprot.readFieldEnd();
|
| 3240 |
}
|
3467 |
}
|
| Line 3424... |
Line 3651... |
| 3424 |
oprot.writeFieldEnd();
|
3651 |
oprot.writeFieldEnd();
|
| 3425 |
}
|
3652 |
}
|
| 3426 |
oprot.writeFieldBegin(PREFERRED_INSURER_FIELD_DESC);
|
3653 |
oprot.writeFieldBegin(PREFERRED_INSURER_FIELD_DESC);
|
| 3427 |
oprot.writeI64(this.preferredInsurer);
|
3654 |
oprot.writeI64(this.preferredInsurer);
|
| 3428 |
oprot.writeFieldEnd();
|
3655 |
oprot.writeFieldEnd();
|
| - |
|
3656 |
if (this.asin != null) {
|
| - |
|
3657 |
oprot.writeFieldBegin(ASIN_FIELD_DESC);
|
| - |
|
3658 |
oprot.writeString(this.asin);
|
| - |
|
3659 |
oprot.writeFieldEnd();
|
| - |
|
3660 |
}
|
| - |
|
3661 |
oprot.writeFieldBegin(DEFAULT_INVENTORY_FIELD_DESC);
|
| - |
|
3662 |
oprot.writeI64(this.defaultInventory);
|
| - |
|
3663 |
oprot.writeFieldEnd();
|
| - |
|
3664 |
oprot.writeFieldBegin(HOLD_INVENTORY_FIELD_DESC);
|
| - |
|
3665 |
oprot.writeI64(this.holdInventory);
|
| - |
|
3666 |
oprot.writeFieldEnd();
|
| 3429 |
oprot.writeFieldStop();
|
3667 |
oprot.writeFieldStop();
|
| 3430 |
oprot.writeStructEnd();
|
3668 |
oprot.writeStructEnd();
|
| 3431 |
}
|
3669 |
}
|
| 3432 |
|
3670 |
|
| 3433 |
@Override
|
3671 |
@Override
|
| Line 3672... |
Line 3910... |
| 3672 |
first = false;
|
3910 |
first = false;
|
| 3673 |
if (!first) sb.append(", ");
|
3911 |
if (!first) sb.append(", ");
|
| 3674 |
sb.append("preferredInsurer:");
|
3912 |
sb.append("preferredInsurer:");
|
| 3675 |
sb.append(this.preferredInsurer);
|
3913 |
sb.append(this.preferredInsurer);
|
| 3676 |
first = false;
|
3914 |
first = false;
|
| - |
|
3915 |
if (!first) sb.append(", ");
|
| - |
|
3916 |
sb.append("asin:");
|
| - |
|
3917 |
if (this.asin == null) {
|
| - |
|
3918 |
sb.append("null");
|
| - |
|
3919 |
} else {
|
| - |
|
3920 |
sb.append(this.asin);
|
| - |
|
3921 |
}
|
| - |
|
3922 |
first = false;
|
| - |
|
3923 |
if (!first) sb.append(", ");
|
| - |
|
3924 |
sb.append("defaultInventory:");
|
| - |
|
3925 |
sb.append(this.defaultInventory);
|
| - |
|
3926 |
first = false;
|
| - |
|
3927 |
if (!first) sb.append(", ");
|
| - |
|
3928 |
sb.append("holdInventory:");
|
| - |
|
3929 |
sb.append(this.holdInventory);
|
| - |
|
3930 |
first = false;
|
| 3677 |
sb.append(")");
|
3931 |
sb.append(")");
|
| 3678 |
return sb.toString();
|
3932 |
return sb.toString();
|
| 3679 |
}
|
3933 |
}
|
| 3680 |
|
3934 |
|
| 3681 |
public void validate() throws org.apache.thrift.TException {
|
3935 |
public void validate() throws org.apache.thrift.TException {
|