| 14384 |
kshitij.so |
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.dtr;
|
|
|
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 |
/**
|
|
|
24 |
* Objects
|
|
|
25 |
*/
|
|
|
26 |
public class LivePricing implements org.apache.thrift.TBase<LivePricing, LivePricing._Fields>, java.io.Serializable, Cloneable {
|
|
|
27 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LivePricing");
|
|
|
28 |
|
|
|
29 |
private static final org.apache.thrift.protocol.TField _ID_FIELD_DESC = new org.apache.thrift.protocol.TField("_id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField AVAILABLE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("available_price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField MARKET_PLACE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("marketPlaceUrl", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("in_stock", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("source_id", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
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);
|
| 14764 |
kshitij.so |
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);
|
| 15903 |
kshitij.so |
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);
|
| 15943 |
kshitij.so |
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);
|
| 16117 |
kshitij.so |
40 |
private static final org.apache.thrift.protocol.TField TAGLINE_FIELD_DESC = new org.apache.thrift.protocol.TField("tagline", org.apache.thrift.protocol.TType.STRING, (short)12);
|
|
|
41 |
private static final org.apache.thrift.protocol.TField OFFER_FIELD_DESC = new org.apache.thrift.protocol.TField("offer", org.apache.thrift.protocol.TType.STRING, (short)13);
|
| 16461 |
kshitij.so |
42 |
private static final org.apache.thrift.protocol.TField GROSS_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("gross_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
| 18728 |
kshitij.so |
43 |
private static final org.apache.thrift.protocol.TField CHEAPEST_BULK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("cheapestBulkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
|
| 18739 |
kshitij.so |
44 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
|
| 14384 |
kshitij.so |
45 |
|
|
|
46 |
private long _id; // required
|
|
|
47 |
private double available_price; // required
|
|
|
48 |
private String marketPlaceUrl; // required
|
|
|
49 |
private long in_stock; // required
|
|
|
50 |
private long source_id; // required
|
|
|
51 |
private String source_product_name; // required
|
|
|
52 |
private String thumbnail; // required
|
| 14764 |
kshitij.so |
53 |
private long cash_back_type; // required
|
|
|
54 |
private double cash_back; // required
|
| 15903 |
kshitij.so |
55 |
private String coupon; // required
|
| 15943 |
kshitij.so |
56 |
private long codAvailable; // required
|
| 16117 |
kshitij.so |
57 |
private String tagline; // required
|
|
|
58 |
private String offer; // required
|
| 16461 |
kshitij.so |
59 |
private double gross_price; // required
|
| 18728 |
kshitij.so |
60 |
private double cheapestBulkPrice; // required
|
| 18739 |
kshitij.so |
61 |
private long packQuantity; // required
|
| 14384 |
kshitij.so |
62 |
|
|
|
63 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
64 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
65 |
_ID((short)1, "_id"),
|
|
|
66 |
AVAILABLE_PRICE((short)2, "available_price"),
|
|
|
67 |
MARKET_PLACE_URL((short)3, "marketPlaceUrl"),
|
|
|
68 |
IN_STOCK((short)4, "in_stock"),
|
|
|
69 |
SOURCE_ID((short)5, "source_id"),
|
|
|
70 |
SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
|
| 14764 |
kshitij.so |
71 |
THUMBNAIL((short)7, "thumbnail"),
|
|
|
72 |
CASH_BACK_TYPE((short)8, "cash_back_type"),
|
| 15903 |
kshitij.so |
73 |
CASH_BACK((short)9, "cash_back"),
|
|
|
74 |
COUPON((short)10, "coupon"),
|
| 16117 |
kshitij.so |
75 |
COD_AVAILABLE((short)11, "codAvailable"),
|
|
|
76 |
TAGLINE((short)12, "tagline"),
|
| 16461 |
kshitij.so |
77 |
OFFER((short)13, "offer"),
|
| 18728 |
kshitij.so |
78 |
GROSS_PRICE((short)14, "gross_price"),
|
| 18739 |
kshitij.so |
79 |
CHEAPEST_BULK_PRICE((short)15, "cheapestBulkPrice"),
|
|
|
80 |
PACK_QUANTITY((short)16, "packQuantity");
|
| 14384 |
kshitij.so |
81 |
|
|
|
82 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
83 |
|
|
|
84 |
static {
|
|
|
85 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
86 |
byName.put(field.getFieldName(), field);
|
|
|
87 |
}
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
92 |
*/
|
|
|
93 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
94 |
switch(fieldId) {
|
|
|
95 |
case 1: // _ID
|
|
|
96 |
return _ID;
|
|
|
97 |
case 2: // AVAILABLE_PRICE
|
|
|
98 |
return AVAILABLE_PRICE;
|
|
|
99 |
case 3: // MARKET_PLACE_URL
|
|
|
100 |
return MARKET_PLACE_URL;
|
|
|
101 |
case 4: // IN_STOCK
|
|
|
102 |
return IN_STOCK;
|
|
|
103 |
case 5: // SOURCE_ID
|
|
|
104 |
return SOURCE_ID;
|
|
|
105 |
case 6: // SOURCE_PRODUCT_NAME
|
|
|
106 |
return SOURCE_PRODUCT_NAME;
|
|
|
107 |
case 7: // THUMBNAIL
|
|
|
108 |
return THUMBNAIL;
|
| 14764 |
kshitij.so |
109 |
case 8: // CASH_BACK_TYPE
|
|
|
110 |
return CASH_BACK_TYPE;
|
|
|
111 |
case 9: // CASH_BACK
|
|
|
112 |
return CASH_BACK;
|
| 15903 |
kshitij.so |
113 |
case 10: // COUPON
|
|
|
114 |
return COUPON;
|
|
|
115 |
case 11: // COD_AVAILABLE
|
|
|
116 |
return COD_AVAILABLE;
|
| 16117 |
kshitij.so |
117 |
case 12: // TAGLINE
|
|
|
118 |
return TAGLINE;
|
|
|
119 |
case 13: // OFFER
|
|
|
120 |
return OFFER;
|
| 16461 |
kshitij.so |
121 |
case 14: // GROSS_PRICE
|
|
|
122 |
return GROSS_PRICE;
|
| 18728 |
kshitij.so |
123 |
case 15: // CHEAPEST_BULK_PRICE
|
|
|
124 |
return CHEAPEST_BULK_PRICE;
|
| 18739 |
kshitij.so |
125 |
case 16: // PACK_QUANTITY
|
|
|
126 |
return PACK_QUANTITY;
|
| 14384 |
kshitij.so |
127 |
default:
|
|
|
128 |
return null;
|
|
|
129 |
}
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
/**
|
|
|
133 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
134 |
* if it is not found.
|
|
|
135 |
*/
|
|
|
136 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
137 |
_Fields fields = findByThriftId(fieldId);
|
|
|
138 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
139 |
return fields;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
/**
|
|
|
143 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
144 |
*/
|
|
|
145 |
public static _Fields findByName(String name) {
|
|
|
146 |
return byName.get(name);
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
private final short _thriftId;
|
|
|
150 |
private final String _fieldName;
|
|
|
151 |
|
|
|
152 |
_Fields(short thriftId, String fieldName) {
|
|
|
153 |
_thriftId = thriftId;
|
|
|
154 |
_fieldName = fieldName;
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
public short getThriftFieldId() {
|
|
|
158 |
return _thriftId;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
public String getFieldName() {
|
|
|
162 |
return _fieldName;
|
|
|
163 |
}
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
// isset id assignments
|
|
|
167 |
private static final int ___ID_ISSET_ID = 0;
|
|
|
168 |
private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
|
|
|
169 |
private static final int __IN_STOCK_ISSET_ID = 2;
|
|
|
170 |
private static final int __SOURCE_ID_ISSET_ID = 3;
|
| 14764 |
kshitij.so |
171 |
private static final int __CASH_BACK_TYPE_ISSET_ID = 4;
|
|
|
172 |
private static final int __CASH_BACK_ISSET_ID = 5;
|
| 15903 |
kshitij.so |
173 |
private static final int __CODAVAILABLE_ISSET_ID = 6;
|
| 16461 |
kshitij.so |
174 |
private static final int __GROSS_PRICE_ISSET_ID = 7;
|
| 18728 |
kshitij.so |
175 |
private static final int __CHEAPESTBULKPRICE_ISSET_ID = 8;
|
| 18739 |
kshitij.so |
176 |
private static final int __PACKQUANTITY_ISSET_ID = 9;
|
|
|
177 |
private BitSet __isset_bit_vector = new BitSet(10);
|
| 14384 |
kshitij.so |
178 |
|
|
|
179 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
180 |
static {
|
|
|
181 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
182 |
tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
184 |
tmpMap.put(_Fields.AVAILABLE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("available_price", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
186 |
tmpMap.put(_Fields.MARKET_PLACE_URL, new org.apache.thrift.meta_data.FieldMetaData("marketPlaceUrl", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
188 |
tmpMap.put(_Fields.IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("in_stock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
189 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
190 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("source_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
192 |
tmpMap.put(_Fields.SOURCE_PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_product_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
193 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
194 |
tmpMap.put(_Fields.THUMBNAIL, new org.apache.thrift.meta_data.FieldMetaData("thumbnail", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
195 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 14764 |
kshitij.so |
196 |
tmpMap.put(_Fields.CASH_BACK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("cash_back_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
197 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
198 |
tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
199 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 15903 |
kshitij.so |
200 |
tmpMap.put(_Fields.COUPON, new org.apache.thrift.meta_data.FieldMetaData("coupon", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
201 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
202 |
tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 15943 |
kshitij.so |
203 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 16117 |
kshitij.so |
204 |
tmpMap.put(_Fields.TAGLINE, new org.apache.thrift.meta_data.FieldMetaData("tagline", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
205 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
206 |
tmpMap.put(_Fields.OFFER, new org.apache.thrift.meta_data.FieldMetaData("offer", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
207 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 16461 |
kshitij.so |
208 |
tmpMap.put(_Fields.GROSS_PRICE, new org.apache.thrift.meta_data.FieldMetaData("gross_price", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
209 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 18728 |
kshitij.so |
210 |
tmpMap.put(_Fields.CHEAPEST_BULK_PRICE, new org.apache.thrift.meta_data.FieldMetaData("cheapestBulkPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
211 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 18739 |
kshitij.so |
212 |
tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
213 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 14384 |
kshitij.so |
214 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
215 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
public LivePricing() {
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
public LivePricing(
|
|
|
222 |
long _id,
|
|
|
223 |
double available_price,
|
|
|
224 |
String marketPlaceUrl,
|
|
|
225 |
long in_stock,
|
|
|
226 |
long source_id,
|
|
|
227 |
String source_product_name,
|
| 14764 |
kshitij.so |
228 |
String thumbnail,
|
|
|
229 |
long cash_back_type,
|
| 15903 |
kshitij.so |
230 |
double cash_back,
|
|
|
231 |
String coupon,
|
| 16117 |
kshitij.so |
232 |
long codAvailable,
|
|
|
233 |
String tagline,
|
| 16461 |
kshitij.so |
234 |
String offer,
|
| 18728 |
kshitij.so |
235 |
double gross_price,
|
| 18739 |
kshitij.so |
236 |
double cheapestBulkPrice,
|
|
|
237 |
long packQuantity)
|
| 14384 |
kshitij.so |
238 |
{
|
|
|
239 |
this();
|
|
|
240 |
this._id = _id;
|
|
|
241 |
set_idIsSet(true);
|
|
|
242 |
this.available_price = available_price;
|
|
|
243 |
setAvailable_priceIsSet(true);
|
|
|
244 |
this.marketPlaceUrl = marketPlaceUrl;
|
|
|
245 |
this.in_stock = in_stock;
|
|
|
246 |
setIn_stockIsSet(true);
|
|
|
247 |
this.source_id = source_id;
|
|
|
248 |
setSource_idIsSet(true);
|
|
|
249 |
this.source_product_name = source_product_name;
|
|
|
250 |
this.thumbnail = thumbnail;
|
| 14764 |
kshitij.so |
251 |
this.cash_back_type = cash_back_type;
|
|
|
252 |
setCash_back_typeIsSet(true);
|
|
|
253 |
this.cash_back = cash_back;
|
|
|
254 |
setCash_backIsSet(true);
|
| 15903 |
kshitij.so |
255 |
this.coupon = coupon;
|
|
|
256 |
this.codAvailable = codAvailable;
|
|
|
257 |
setCodAvailableIsSet(true);
|
| 16117 |
kshitij.so |
258 |
this.tagline = tagline;
|
|
|
259 |
this.offer = offer;
|
| 16461 |
kshitij.so |
260 |
this.gross_price = gross_price;
|
|
|
261 |
setGross_priceIsSet(true);
|
| 18728 |
kshitij.so |
262 |
this.cheapestBulkPrice = cheapestBulkPrice;
|
|
|
263 |
setCheapestBulkPriceIsSet(true);
|
| 18739 |
kshitij.so |
264 |
this.packQuantity = packQuantity;
|
|
|
265 |
setPackQuantityIsSet(true);
|
| 14384 |
kshitij.so |
266 |
}
|
|
|
267 |
|
|
|
268 |
/**
|
|
|
269 |
* Performs a deep copy on <i>other</i>.
|
|
|
270 |
*/
|
|
|
271 |
public LivePricing(LivePricing other) {
|
|
|
272 |
__isset_bit_vector.clear();
|
|
|
273 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
274 |
this._id = other._id;
|
|
|
275 |
this.available_price = other.available_price;
|
|
|
276 |
if (other.isSetMarketPlaceUrl()) {
|
|
|
277 |
this.marketPlaceUrl = other.marketPlaceUrl;
|
|
|
278 |
}
|
|
|
279 |
this.in_stock = other.in_stock;
|
|
|
280 |
this.source_id = other.source_id;
|
|
|
281 |
if (other.isSetSource_product_name()) {
|
|
|
282 |
this.source_product_name = other.source_product_name;
|
|
|
283 |
}
|
|
|
284 |
if (other.isSetThumbnail()) {
|
|
|
285 |
this.thumbnail = other.thumbnail;
|
|
|
286 |
}
|
| 14764 |
kshitij.so |
287 |
this.cash_back_type = other.cash_back_type;
|
|
|
288 |
this.cash_back = other.cash_back;
|
| 15903 |
kshitij.so |
289 |
if (other.isSetCoupon()) {
|
|
|
290 |
this.coupon = other.coupon;
|
|
|
291 |
}
|
|
|
292 |
this.codAvailable = other.codAvailable;
|
| 16117 |
kshitij.so |
293 |
if (other.isSetTagline()) {
|
|
|
294 |
this.tagline = other.tagline;
|
|
|
295 |
}
|
|
|
296 |
if (other.isSetOffer()) {
|
|
|
297 |
this.offer = other.offer;
|
|
|
298 |
}
|
| 16461 |
kshitij.so |
299 |
this.gross_price = other.gross_price;
|
| 18728 |
kshitij.so |
300 |
this.cheapestBulkPrice = other.cheapestBulkPrice;
|
| 18739 |
kshitij.so |
301 |
this.packQuantity = other.packQuantity;
|
| 14384 |
kshitij.so |
302 |
}
|
|
|
303 |
|
|
|
304 |
public LivePricing deepCopy() {
|
|
|
305 |
return new LivePricing(this);
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
@Override
|
|
|
309 |
public void clear() {
|
|
|
310 |
set_idIsSet(false);
|
|
|
311 |
this._id = 0;
|
|
|
312 |
setAvailable_priceIsSet(false);
|
|
|
313 |
this.available_price = 0.0;
|
|
|
314 |
this.marketPlaceUrl = null;
|
|
|
315 |
setIn_stockIsSet(false);
|
|
|
316 |
this.in_stock = 0;
|
|
|
317 |
setSource_idIsSet(false);
|
|
|
318 |
this.source_id = 0;
|
|
|
319 |
this.source_product_name = null;
|
|
|
320 |
this.thumbnail = null;
|
| 14764 |
kshitij.so |
321 |
setCash_back_typeIsSet(false);
|
|
|
322 |
this.cash_back_type = 0;
|
|
|
323 |
setCash_backIsSet(false);
|
|
|
324 |
this.cash_back = 0.0;
|
| 15903 |
kshitij.so |
325 |
this.coupon = null;
|
|
|
326 |
setCodAvailableIsSet(false);
|
| 15943 |
kshitij.so |
327 |
this.codAvailable = 0;
|
| 16117 |
kshitij.so |
328 |
this.tagline = null;
|
|
|
329 |
this.offer = null;
|
| 16461 |
kshitij.so |
330 |
setGross_priceIsSet(false);
|
|
|
331 |
this.gross_price = 0.0;
|
| 18728 |
kshitij.so |
332 |
setCheapestBulkPriceIsSet(false);
|
|
|
333 |
this.cheapestBulkPrice = 0.0;
|
| 18739 |
kshitij.so |
334 |
setPackQuantityIsSet(false);
|
|
|
335 |
this.packQuantity = 0;
|
| 14384 |
kshitij.so |
336 |
}
|
|
|
337 |
|
|
|
338 |
public long get_id() {
|
|
|
339 |
return this._id;
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public void set_id(long _id) {
|
|
|
343 |
this._id = _id;
|
|
|
344 |
set_idIsSet(true);
|
|
|
345 |
}
|
|
|
346 |
|
|
|
347 |
public void unset_id() {
|
|
|
348 |
__isset_bit_vector.clear(___ID_ISSET_ID);
|
|
|
349 |
}
|
|
|
350 |
|
|
|
351 |
/** Returns true if field _id is set (has been assigned a value) and false otherwise */
|
|
|
352 |
public boolean isSet_id() {
|
|
|
353 |
return __isset_bit_vector.get(___ID_ISSET_ID);
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
public void set_idIsSet(boolean value) {
|
|
|
357 |
__isset_bit_vector.set(___ID_ISSET_ID, value);
|
|
|
358 |
}
|
|
|
359 |
|
|
|
360 |
public double getAvailable_price() {
|
|
|
361 |
return this.available_price;
|
|
|
362 |
}
|
|
|
363 |
|
|
|
364 |
public void setAvailable_price(double available_price) {
|
|
|
365 |
this.available_price = available_price;
|
|
|
366 |
setAvailable_priceIsSet(true);
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
public void unsetAvailable_price() {
|
|
|
370 |
__isset_bit_vector.clear(__AVAILABLE_PRICE_ISSET_ID);
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
/** Returns true if field available_price is set (has been assigned a value) and false otherwise */
|
|
|
374 |
public boolean isSetAvailable_price() {
|
|
|
375 |
return __isset_bit_vector.get(__AVAILABLE_PRICE_ISSET_ID);
|
|
|
376 |
}
|
|
|
377 |
|
|
|
378 |
public void setAvailable_priceIsSet(boolean value) {
|
|
|
379 |
__isset_bit_vector.set(__AVAILABLE_PRICE_ISSET_ID, value);
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public String getMarketPlaceUrl() {
|
|
|
383 |
return this.marketPlaceUrl;
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public void setMarketPlaceUrl(String marketPlaceUrl) {
|
|
|
387 |
this.marketPlaceUrl = marketPlaceUrl;
|
|
|
388 |
}
|
|
|
389 |
|
|
|
390 |
public void unsetMarketPlaceUrl() {
|
|
|
391 |
this.marketPlaceUrl = null;
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
/** Returns true if field marketPlaceUrl is set (has been assigned a value) and false otherwise */
|
|
|
395 |
public boolean isSetMarketPlaceUrl() {
|
|
|
396 |
return this.marketPlaceUrl != null;
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
public void setMarketPlaceUrlIsSet(boolean value) {
|
|
|
400 |
if (!value) {
|
|
|
401 |
this.marketPlaceUrl = null;
|
|
|
402 |
}
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public long getIn_stock() {
|
|
|
406 |
return this.in_stock;
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public void setIn_stock(long in_stock) {
|
|
|
410 |
this.in_stock = in_stock;
|
|
|
411 |
setIn_stockIsSet(true);
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
public void unsetIn_stock() {
|
|
|
415 |
__isset_bit_vector.clear(__IN_STOCK_ISSET_ID);
|
|
|
416 |
}
|
|
|
417 |
|
|
|
418 |
/** Returns true if field in_stock is set (has been assigned a value) and false otherwise */
|
|
|
419 |
public boolean isSetIn_stock() {
|
|
|
420 |
return __isset_bit_vector.get(__IN_STOCK_ISSET_ID);
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
public void setIn_stockIsSet(boolean value) {
|
|
|
424 |
__isset_bit_vector.set(__IN_STOCK_ISSET_ID, value);
|
|
|
425 |
}
|
|
|
426 |
|
|
|
427 |
public long getSource_id() {
|
|
|
428 |
return this.source_id;
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
public void setSource_id(long source_id) {
|
|
|
432 |
this.source_id = source_id;
|
|
|
433 |
setSource_idIsSet(true);
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
public void unsetSource_id() {
|
|
|
437 |
__isset_bit_vector.clear(__SOURCE_ID_ISSET_ID);
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
/** Returns true if field source_id is set (has been assigned a value) and false otherwise */
|
|
|
441 |
public boolean isSetSource_id() {
|
|
|
442 |
return __isset_bit_vector.get(__SOURCE_ID_ISSET_ID);
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
public void setSource_idIsSet(boolean value) {
|
|
|
446 |
__isset_bit_vector.set(__SOURCE_ID_ISSET_ID, value);
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
public String getSource_product_name() {
|
|
|
450 |
return this.source_product_name;
|
|
|
451 |
}
|
|
|
452 |
|
|
|
453 |
public void setSource_product_name(String source_product_name) {
|
|
|
454 |
this.source_product_name = source_product_name;
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
public void unsetSource_product_name() {
|
|
|
458 |
this.source_product_name = null;
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
/** Returns true if field source_product_name is set (has been assigned a value) and false otherwise */
|
|
|
462 |
public boolean isSetSource_product_name() {
|
|
|
463 |
return this.source_product_name != null;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
public void setSource_product_nameIsSet(boolean value) {
|
|
|
467 |
if (!value) {
|
|
|
468 |
this.source_product_name = null;
|
|
|
469 |
}
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
public String getThumbnail() {
|
|
|
473 |
return this.thumbnail;
|
|
|
474 |
}
|
|
|
475 |
|
|
|
476 |
public void setThumbnail(String thumbnail) {
|
|
|
477 |
this.thumbnail = thumbnail;
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
public void unsetThumbnail() {
|
|
|
481 |
this.thumbnail = null;
|
|
|
482 |
}
|
|
|
483 |
|
|
|
484 |
/** Returns true if field thumbnail is set (has been assigned a value) and false otherwise */
|
|
|
485 |
public boolean isSetThumbnail() {
|
|
|
486 |
return this.thumbnail != null;
|
|
|
487 |
}
|
|
|
488 |
|
|
|
489 |
public void setThumbnailIsSet(boolean value) {
|
|
|
490 |
if (!value) {
|
|
|
491 |
this.thumbnail = null;
|
|
|
492 |
}
|
|
|
493 |
}
|
|
|
494 |
|
| 14764 |
kshitij.so |
495 |
public long getCash_back_type() {
|
|
|
496 |
return this.cash_back_type;
|
|
|
497 |
}
|
|
|
498 |
|
|
|
499 |
public void setCash_back_type(long cash_back_type) {
|
|
|
500 |
this.cash_back_type = cash_back_type;
|
|
|
501 |
setCash_back_typeIsSet(true);
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
public void unsetCash_back_type() {
|
|
|
505 |
__isset_bit_vector.clear(__CASH_BACK_TYPE_ISSET_ID);
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
/** Returns true if field cash_back_type is set (has been assigned a value) and false otherwise */
|
|
|
509 |
public boolean isSetCash_back_type() {
|
|
|
510 |
return __isset_bit_vector.get(__CASH_BACK_TYPE_ISSET_ID);
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void setCash_back_typeIsSet(boolean value) {
|
|
|
514 |
__isset_bit_vector.set(__CASH_BACK_TYPE_ISSET_ID, value);
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
public double getCash_back() {
|
|
|
518 |
return this.cash_back;
|
|
|
519 |
}
|
|
|
520 |
|
|
|
521 |
public void setCash_back(double cash_back) {
|
|
|
522 |
this.cash_back = cash_back;
|
|
|
523 |
setCash_backIsSet(true);
|
|
|
524 |
}
|
|
|
525 |
|
|
|
526 |
public void unsetCash_back() {
|
|
|
527 |
__isset_bit_vector.clear(__CASH_BACK_ISSET_ID);
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
/** Returns true if field cash_back is set (has been assigned a value) and false otherwise */
|
|
|
531 |
public boolean isSetCash_back() {
|
|
|
532 |
return __isset_bit_vector.get(__CASH_BACK_ISSET_ID);
|
|
|
533 |
}
|
|
|
534 |
|
|
|
535 |
public void setCash_backIsSet(boolean value) {
|
|
|
536 |
__isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
|
|
|
537 |
}
|
|
|
538 |
|
| 15903 |
kshitij.so |
539 |
public String getCoupon() {
|
|
|
540 |
return this.coupon;
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public void setCoupon(String coupon) {
|
|
|
544 |
this.coupon = coupon;
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
public void unsetCoupon() {
|
|
|
548 |
this.coupon = null;
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
/** Returns true if field coupon is set (has been assigned a value) and false otherwise */
|
|
|
552 |
public boolean isSetCoupon() {
|
|
|
553 |
return this.coupon != null;
|
|
|
554 |
}
|
|
|
555 |
|
|
|
556 |
public void setCouponIsSet(boolean value) {
|
|
|
557 |
if (!value) {
|
|
|
558 |
this.coupon = null;
|
|
|
559 |
}
|
|
|
560 |
}
|
|
|
561 |
|
| 15943 |
kshitij.so |
562 |
public long getCodAvailable() {
|
| 15903 |
kshitij.so |
563 |
return this.codAvailable;
|
|
|
564 |
}
|
|
|
565 |
|
| 15943 |
kshitij.so |
566 |
public void setCodAvailable(long codAvailable) {
|
| 15903 |
kshitij.so |
567 |
this.codAvailable = codAvailable;
|
|
|
568 |
setCodAvailableIsSet(true);
|
|
|
569 |
}
|
|
|
570 |
|
|
|
571 |
public void unsetCodAvailable() {
|
|
|
572 |
__isset_bit_vector.clear(__CODAVAILABLE_ISSET_ID);
|
|
|
573 |
}
|
|
|
574 |
|
|
|
575 |
/** Returns true if field codAvailable is set (has been assigned a value) and false otherwise */
|
|
|
576 |
public boolean isSetCodAvailable() {
|
|
|
577 |
return __isset_bit_vector.get(__CODAVAILABLE_ISSET_ID);
|
|
|
578 |
}
|
|
|
579 |
|
|
|
580 |
public void setCodAvailableIsSet(boolean value) {
|
|
|
581 |
__isset_bit_vector.set(__CODAVAILABLE_ISSET_ID, value);
|
|
|
582 |
}
|
|
|
583 |
|
| 16117 |
kshitij.so |
584 |
public String getTagline() {
|
|
|
585 |
return this.tagline;
|
|
|
586 |
}
|
|
|
587 |
|
|
|
588 |
public void setTagline(String tagline) {
|
|
|
589 |
this.tagline = tagline;
|
|
|
590 |
}
|
|
|
591 |
|
|
|
592 |
public void unsetTagline() {
|
|
|
593 |
this.tagline = null;
|
|
|
594 |
}
|
|
|
595 |
|
|
|
596 |
/** Returns true if field tagline is set (has been assigned a value) and false otherwise */
|
|
|
597 |
public boolean isSetTagline() {
|
|
|
598 |
return this.tagline != null;
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
public void setTaglineIsSet(boolean value) {
|
|
|
602 |
if (!value) {
|
|
|
603 |
this.tagline = null;
|
|
|
604 |
}
|
|
|
605 |
}
|
|
|
606 |
|
|
|
607 |
public String getOffer() {
|
|
|
608 |
return this.offer;
|
|
|
609 |
}
|
|
|
610 |
|
|
|
611 |
public void setOffer(String offer) {
|
|
|
612 |
this.offer = offer;
|
|
|
613 |
}
|
|
|
614 |
|
|
|
615 |
public void unsetOffer() {
|
|
|
616 |
this.offer = null;
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
/** Returns true if field offer is set (has been assigned a value) and false otherwise */
|
|
|
620 |
public boolean isSetOffer() {
|
|
|
621 |
return this.offer != null;
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public void setOfferIsSet(boolean value) {
|
|
|
625 |
if (!value) {
|
|
|
626 |
this.offer = null;
|
|
|
627 |
}
|
|
|
628 |
}
|
|
|
629 |
|
| 16461 |
kshitij.so |
630 |
public double getGross_price() {
|
|
|
631 |
return this.gross_price;
|
|
|
632 |
}
|
|
|
633 |
|
|
|
634 |
public void setGross_price(double gross_price) {
|
|
|
635 |
this.gross_price = gross_price;
|
|
|
636 |
setGross_priceIsSet(true);
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
public void unsetGross_price() {
|
|
|
640 |
__isset_bit_vector.clear(__GROSS_PRICE_ISSET_ID);
|
|
|
641 |
}
|
|
|
642 |
|
|
|
643 |
/** Returns true if field gross_price is set (has been assigned a value) and false otherwise */
|
|
|
644 |
public boolean isSetGross_price() {
|
|
|
645 |
return __isset_bit_vector.get(__GROSS_PRICE_ISSET_ID);
|
|
|
646 |
}
|
|
|
647 |
|
|
|
648 |
public void setGross_priceIsSet(boolean value) {
|
|
|
649 |
__isset_bit_vector.set(__GROSS_PRICE_ISSET_ID, value);
|
|
|
650 |
}
|
|
|
651 |
|
| 18728 |
kshitij.so |
652 |
public double getCheapestBulkPrice() {
|
|
|
653 |
return this.cheapestBulkPrice;
|
|
|
654 |
}
|
|
|
655 |
|
|
|
656 |
public void setCheapestBulkPrice(double cheapestBulkPrice) {
|
|
|
657 |
this.cheapestBulkPrice = cheapestBulkPrice;
|
|
|
658 |
setCheapestBulkPriceIsSet(true);
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public void unsetCheapestBulkPrice() {
|
|
|
662 |
__isset_bit_vector.clear(__CHEAPESTBULKPRICE_ISSET_ID);
|
|
|
663 |
}
|
|
|
664 |
|
|
|
665 |
/** Returns true if field cheapestBulkPrice is set (has been assigned a value) and false otherwise */
|
|
|
666 |
public boolean isSetCheapestBulkPrice() {
|
|
|
667 |
return __isset_bit_vector.get(__CHEAPESTBULKPRICE_ISSET_ID);
|
|
|
668 |
}
|
|
|
669 |
|
|
|
670 |
public void setCheapestBulkPriceIsSet(boolean value) {
|
|
|
671 |
__isset_bit_vector.set(__CHEAPESTBULKPRICE_ISSET_ID, value);
|
|
|
672 |
}
|
|
|
673 |
|
| 18739 |
kshitij.so |
674 |
public long getPackQuantity() {
|
|
|
675 |
return this.packQuantity;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
public void setPackQuantity(long packQuantity) {
|
|
|
679 |
this.packQuantity = packQuantity;
|
|
|
680 |
setPackQuantityIsSet(true);
|
|
|
681 |
}
|
|
|
682 |
|
|
|
683 |
public void unsetPackQuantity() {
|
|
|
684 |
__isset_bit_vector.clear(__PACKQUANTITY_ISSET_ID);
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
/** Returns true if field packQuantity is set (has been assigned a value) and false otherwise */
|
|
|
688 |
public boolean isSetPackQuantity() {
|
|
|
689 |
return __isset_bit_vector.get(__PACKQUANTITY_ISSET_ID);
|
|
|
690 |
}
|
|
|
691 |
|
|
|
692 |
public void setPackQuantityIsSet(boolean value) {
|
|
|
693 |
__isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
|
|
|
694 |
}
|
|
|
695 |
|
| 14384 |
kshitij.so |
696 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
697 |
switch (field) {
|
|
|
698 |
case _ID:
|
|
|
699 |
if (value == null) {
|
|
|
700 |
unset_id();
|
|
|
701 |
} else {
|
|
|
702 |
set_id((Long)value);
|
|
|
703 |
}
|
|
|
704 |
break;
|
|
|
705 |
|
|
|
706 |
case AVAILABLE_PRICE:
|
|
|
707 |
if (value == null) {
|
|
|
708 |
unsetAvailable_price();
|
|
|
709 |
} else {
|
|
|
710 |
setAvailable_price((Double)value);
|
|
|
711 |
}
|
|
|
712 |
break;
|
|
|
713 |
|
|
|
714 |
case MARKET_PLACE_URL:
|
|
|
715 |
if (value == null) {
|
|
|
716 |
unsetMarketPlaceUrl();
|
|
|
717 |
} else {
|
|
|
718 |
setMarketPlaceUrl((String)value);
|
|
|
719 |
}
|
|
|
720 |
break;
|
|
|
721 |
|
|
|
722 |
case IN_STOCK:
|
|
|
723 |
if (value == null) {
|
|
|
724 |
unsetIn_stock();
|
|
|
725 |
} else {
|
|
|
726 |
setIn_stock((Long)value);
|
|
|
727 |
}
|
|
|
728 |
break;
|
|
|
729 |
|
|
|
730 |
case SOURCE_ID:
|
|
|
731 |
if (value == null) {
|
|
|
732 |
unsetSource_id();
|
|
|
733 |
} else {
|
|
|
734 |
setSource_id((Long)value);
|
|
|
735 |
}
|
|
|
736 |
break;
|
|
|
737 |
|
|
|
738 |
case SOURCE_PRODUCT_NAME:
|
|
|
739 |
if (value == null) {
|
|
|
740 |
unsetSource_product_name();
|
|
|
741 |
} else {
|
|
|
742 |
setSource_product_name((String)value);
|
|
|
743 |
}
|
|
|
744 |
break;
|
|
|
745 |
|
|
|
746 |
case THUMBNAIL:
|
|
|
747 |
if (value == null) {
|
|
|
748 |
unsetThumbnail();
|
|
|
749 |
} else {
|
|
|
750 |
setThumbnail((String)value);
|
|
|
751 |
}
|
|
|
752 |
break;
|
|
|
753 |
|
| 14764 |
kshitij.so |
754 |
case CASH_BACK_TYPE:
|
|
|
755 |
if (value == null) {
|
|
|
756 |
unsetCash_back_type();
|
|
|
757 |
} else {
|
|
|
758 |
setCash_back_type((Long)value);
|
|
|
759 |
}
|
|
|
760 |
break;
|
|
|
761 |
|
|
|
762 |
case CASH_BACK:
|
|
|
763 |
if (value == null) {
|
|
|
764 |
unsetCash_back();
|
|
|
765 |
} else {
|
|
|
766 |
setCash_back((Double)value);
|
|
|
767 |
}
|
|
|
768 |
break;
|
|
|
769 |
|
| 15903 |
kshitij.so |
770 |
case COUPON:
|
|
|
771 |
if (value == null) {
|
|
|
772 |
unsetCoupon();
|
|
|
773 |
} else {
|
|
|
774 |
setCoupon((String)value);
|
|
|
775 |
}
|
|
|
776 |
break;
|
|
|
777 |
|
|
|
778 |
case COD_AVAILABLE:
|
|
|
779 |
if (value == null) {
|
|
|
780 |
unsetCodAvailable();
|
|
|
781 |
} else {
|
| 15943 |
kshitij.so |
782 |
setCodAvailable((Long)value);
|
| 15903 |
kshitij.so |
783 |
}
|
|
|
784 |
break;
|
|
|
785 |
|
| 16117 |
kshitij.so |
786 |
case TAGLINE:
|
|
|
787 |
if (value == null) {
|
|
|
788 |
unsetTagline();
|
|
|
789 |
} else {
|
|
|
790 |
setTagline((String)value);
|
|
|
791 |
}
|
|
|
792 |
break;
|
|
|
793 |
|
|
|
794 |
case OFFER:
|
|
|
795 |
if (value == null) {
|
|
|
796 |
unsetOffer();
|
|
|
797 |
} else {
|
|
|
798 |
setOffer((String)value);
|
|
|
799 |
}
|
|
|
800 |
break;
|
|
|
801 |
|
| 16461 |
kshitij.so |
802 |
case GROSS_PRICE:
|
|
|
803 |
if (value == null) {
|
|
|
804 |
unsetGross_price();
|
|
|
805 |
} else {
|
|
|
806 |
setGross_price((Double)value);
|
|
|
807 |
}
|
|
|
808 |
break;
|
|
|
809 |
|
| 18728 |
kshitij.so |
810 |
case CHEAPEST_BULK_PRICE:
|
|
|
811 |
if (value == null) {
|
|
|
812 |
unsetCheapestBulkPrice();
|
|
|
813 |
} else {
|
|
|
814 |
setCheapestBulkPrice((Double)value);
|
|
|
815 |
}
|
|
|
816 |
break;
|
|
|
817 |
|
| 18739 |
kshitij.so |
818 |
case PACK_QUANTITY:
|
|
|
819 |
if (value == null) {
|
|
|
820 |
unsetPackQuantity();
|
|
|
821 |
} else {
|
|
|
822 |
setPackQuantity((Long)value);
|
|
|
823 |
}
|
|
|
824 |
break;
|
|
|
825 |
|
| 14384 |
kshitij.so |
826 |
}
|
|
|
827 |
}
|
|
|
828 |
|
|
|
829 |
public Object getFieldValue(_Fields field) {
|
|
|
830 |
switch (field) {
|
|
|
831 |
case _ID:
|
|
|
832 |
return Long.valueOf(get_id());
|
|
|
833 |
|
|
|
834 |
case AVAILABLE_PRICE:
|
|
|
835 |
return Double.valueOf(getAvailable_price());
|
|
|
836 |
|
|
|
837 |
case MARKET_PLACE_URL:
|
|
|
838 |
return getMarketPlaceUrl();
|
|
|
839 |
|
|
|
840 |
case IN_STOCK:
|
|
|
841 |
return Long.valueOf(getIn_stock());
|
|
|
842 |
|
|
|
843 |
case SOURCE_ID:
|
|
|
844 |
return Long.valueOf(getSource_id());
|
|
|
845 |
|
|
|
846 |
case SOURCE_PRODUCT_NAME:
|
|
|
847 |
return getSource_product_name();
|
|
|
848 |
|
|
|
849 |
case THUMBNAIL:
|
|
|
850 |
return getThumbnail();
|
|
|
851 |
|
| 14764 |
kshitij.so |
852 |
case CASH_BACK_TYPE:
|
|
|
853 |
return Long.valueOf(getCash_back_type());
|
|
|
854 |
|
|
|
855 |
case CASH_BACK:
|
|
|
856 |
return Double.valueOf(getCash_back());
|
|
|
857 |
|
| 15903 |
kshitij.so |
858 |
case COUPON:
|
|
|
859 |
return getCoupon();
|
|
|
860 |
|
|
|
861 |
case COD_AVAILABLE:
|
| 15943 |
kshitij.so |
862 |
return Long.valueOf(getCodAvailable());
|
| 15903 |
kshitij.so |
863 |
|
| 16117 |
kshitij.so |
864 |
case TAGLINE:
|
|
|
865 |
return getTagline();
|
|
|
866 |
|
|
|
867 |
case OFFER:
|
|
|
868 |
return getOffer();
|
|
|
869 |
|
| 16461 |
kshitij.so |
870 |
case GROSS_PRICE:
|
|
|
871 |
return Double.valueOf(getGross_price());
|
|
|
872 |
|
| 18728 |
kshitij.so |
873 |
case CHEAPEST_BULK_PRICE:
|
|
|
874 |
return Double.valueOf(getCheapestBulkPrice());
|
|
|
875 |
|
| 18739 |
kshitij.so |
876 |
case PACK_QUANTITY:
|
|
|
877 |
return Long.valueOf(getPackQuantity());
|
|
|
878 |
|
| 14384 |
kshitij.so |
879 |
}
|
|
|
880 |
throw new IllegalStateException();
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
884 |
public boolean isSet(_Fields field) {
|
|
|
885 |
if (field == null) {
|
|
|
886 |
throw new IllegalArgumentException();
|
|
|
887 |
}
|
|
|
888 |
|
|
|
889 |
switch (field) {
|
|
|
890 |
case _ID:
|
|
|
891 |
return isSet_id();
|
|
|
892 |
case AVAILABLE_PRICE:
|
|
|
893 |
return isSetAvailable_price();
|
|
|
894 |
case MARKET_PLACE_URL:
|
|
|
895 |
return isSetMarketPlaceUrl();
|
|
|
896 |
case IN_STOCK:
|
|
|
897 |
return isSetIn_stock();
|
|
|
898 |
case SOURCE_ID:
|
|
|
899 |
return isSetSource_id();
|
|
|
900 |
case SOURCE_PRODUCT_NAME:
|
|
|
901 |
return isSetSource_product_name();
|
|
|
902 |
case THUMBNAIL:
|
|
|
903 |
return isSetThumbnail();
|
| 14764 |
kshitij.so |
904 |
case CASH_BACK_TYPE:
|
|
|
905 |
return isSetCash_back_type();
|
|
|
906 |
case CASH_BACK:
|
|
|
907 |
return isSetCash_back();
|
| 15903 |
kshitij.so |
908 |
case COUPON:
|
|
|
909 |
return isSetCoupon();
|
|
|
910 |
case COD_AVAILABLE:
|
|
|
911 |
return isSetCodAvailable();
|
| 16117 |
kshitij.so |
912 |
case TAGLINE:
|
|
|
913 |
return isSetTagline();
|
|
|
914 |
case OFFER:
|
|
|
915 |
return isSetOffer();
|
| 16461 |
kshitij.so |
916 |
case GROSS_PRICE:
|
|
|
917 |
return isSetGross_price();
|
| 18728 |
kshitij.so |
918 |
case CHEAPEST_BULK_PRICE:
|
|
|
919 |
return isSetCheapestBulkPrice();
|
| 18739 |
kshitij.so |
920 |
case PACK_QUANTITY:
|
|
|
921 |
return isSetPackQuantity();
|
| 14384 |
kshitij.so |
922 |
}
|
|
|
923 |
throw new IllegalStateException();
|
|
|
924 |
}
|
|
|
925 |
|
|
|
926 |
@Override
|
|
|
927 |
public boolean equals(Object that) {
|
|
|
928 |
if (that == null)
|
|
|
929 |
return false;
|
|
|
930 |
if (that instanceof LivePricing)
|
|
|
931 |
return this.equals((LivePricing)that);
|
|
|
932 |
return false;
|
|
|
933 |
}
|
|
|
934 |
|
|
|
935 |
public boolean equals(LivePricing that) {
|
|
|
936 |
if (that == null)
|
|
|
937 |
return false;
|
|
|
938 |
|
|
|
939 |
boolean this_present__id = true;
|
|
|
940 |
boolean that_present__id = true;
|
|
|
941 |
if (this_present__id || that_present__id) {
|
|
|
942 |
if (!(this_present__id && that_present__id))
|
|
|
943 |
return false;
|
|
|
944 |
if (this._id != that._id)
|
|
|
945 |
return false;
|
|
|
946 |
}
|
|
|
947 |
|
|
|
948 |
boolean this_present_available_price = true;
|
|
|
949 |
boolean that_present_available_price = true;
|
|
|
950 |
if (this_present_available_price || that_present_available_price) {
|
|
|
951 |
if (!(this_present_available_price && that_present_available_price))
|
|
|
952 |
return false;
|
|
|
953 |
if (this.available_price != that.available_price)
|
|
|
954 |
return false;
|
|
|
955 |
}
|
|
|
956 |
|
|
|
957 |
boolean this_present_marketPlaceUrl = true && this.isSetMarketPlaceUrl();
|
|
|
958 |
boolean that_present_marketPlaceUrl = true && that.isSetMarketPlaceUrl();
|
|
|
959 |
if (this_present_marketPlaceUrl || that_present_marketPlaceUrl) {
|
|
|
960 |
if (!(this_present_marketPlaceUrl && that_present_marketPlaceUrl))
|
|
|
961 |
return false;
|
|
|
962 |
if (!this.marketPlaceUrl.equals(that.marketPlaceUrl))
|
|
|
963 |
return false;
|
|
|
964 |
}
|
|
|
965 |
|
|
|
966 |
boolean this_present_in_stock = true;
|
|
|
967 |
boolean that_present_in_stock = true;
|
|
|
968 |
if (this_present_in_stock || that_present_in_stock) {
|
|
|
969 |
if (!(this_present_in_stock && that_present_in_stock))
|
|
|
970 |
return false;
|
|
|
971 |
if (this.in_stock != that.in_stock)
|
|
|
972 |
return false;
|
|
|
973 |
}
|
|
|
974 |
|
|
|
975 |
boolean this_present_source_id = true;
|
|
|
976 |
boolean that_present_source_id = true;
|
|
|
977 |
if (this_present_source_id || that_present_source_id) {
|
|
|
978 |
if (!(this_present_source_id && that_present_source_id))
|
|
|
979 |
return false;
|
|
|
980 |
if (this.source_id != that.source_id)
|
|
|
981 |
return false;
|
|
|
982 |
}
|
|
|
983 |
|
|
|
984 |
boolean this_present_source_product_name = true && this.isSetSource_product_name();
|
|
|
985 |
boolean that_present_source_product_name = true && that.isSetSource_product_name();
|
|
|
986 |
if (this_present_source_product_name || that_present_source_product_name) {
|
|
|
987 |
if (!(this_present_source_product_name && that_present_source_product_name))
|
|
|
988 |
return false;
|
|
|
989 |
if (!this.source_product_name.equals(that.source_product_name))
|
|
|
990 |
return false;
|
|
|
991 |
}
|
|
|
992 |
|
|
|
993 |
boolean this_present_thumbnail = true && this.isSetThumbnail();
|
|
|
994 |
boolean that_present_thumbnail = true && that.isSetThumbnail();
|
|
|
995 |
if (this_present_thumbnail || that_present_thumbnail) {
|
|
|
996 |
if (!(this_present_thumbnail && that_present_thumbnail))
|
|
|
997 |
return false;
|
|
|
998 |
if (!this.thumbnail.equals(that.thumbnail))
|
|
|
999 |
return false;
|
|
|
1000 |
}
|
|
|
1001 |
|
| 14764 |
kshitij.so |
1002 |
boolean this_present_cash_back_type = true;
|
|
|
1003 |
boolean that_present_cash_back_type = true;
|
|
|
1004 |
if (this_present_cash_back_type || that_present_cash_back_type) {
|
|
|
1005 |
if (!(this_present_cash_back_type && that_present_cash_back_type))
|
|
|
1006 |
return false;
|
|
|
1007 |
if (this.cash_back_type != that.cash_back_type)
|
|
|
1008 |
return false;
|
|
|
1009 |
}
|
|
|
1010 |
|
|
|
1011 |
boolean this_present_cash_back = true;
|
|
|
1012 |
boolean that_present_cash_back = true;
|
|
|
1013 |
if (this_present_cash_back || that_present_cash_back) {
|
|
|
1014 |
if (!(this_present_cash_back && that_present_cash_back))
|
|
|
1015 |
return false;
|
|
|
1016 |
if (this.cash_back != that.cash_back)
|
|
|
1017 |
return false;
|
|
|
1018 |
}
|
|
|
1019 |
|
| 15903 |
kshitij.so |
1020 |
boolean this_present_coupon = true && this.isSetCoupon();
|
|
|
1021 |
boolean that_present_coupon = true && that.isSetCoupon();
|
|
|
1022 |
if (this_present_coupon || that_present_coupon) {
|
|
|
1023 |
if (!(this_present_coupon && that_present_coupon))
|
|
|
1024 |
return false;
|
|
|
1025 |
if (!this.coupon.equals(that.coupon))
|
|
|
1026 |
return false;
|
|
|
1027 |
}
|
|
|
1028 |
|
|
|
1029 |
boolean this_present_codAvailable = true;
|
|
|
1030 |
boolean that_present_codAvailable = true;
|
|
|
1031 |
if (this_present_codAvailable || that_present_codAvailable) {
|
|
|
1032 |
if (!(this_present_codAvailable && that_present_codAvailable))
|
|
|
1033 |
return false;
|
|
|
1034 |
if (this.codAvailable != that.codAvailable)
|
|
|
1035 |
return false;
|
|
|
1036 |
}
|
|
|
1037 |
|
| 16117 |
kshitij.so |
1038 |
boolean this_present_tagline = true && this.isSetTagline();
|
|
|
1039 |
boolean that_present_tagline = true && that.isSetTagline();
|
|
|
1040 |
if (this_present_tagline || that_present_tagline) {
|
|
|
1041 |
if (!(this_present_tagline && that_present_tagline))
|
|
|
1042 |
return false;
|
|
|
1043 |
if (!this.tagline.equals(that.tagline))
|
|
|
1044 |
return false;
|
|
|
1045 |
}
|
|
|
1046 |
|
|
|
1047 |
boolean this_present_offer = true && this.isSetOffer();
|
|
|
1048 |
boolean that_present_offer = true && that.isSetOffer();
|
|
|
1049 |
if (this_present_offer || that_present_offer) {
|
|
|
1050 |
if (!(this_present_offer && that_present_offer))
|
|
|
1051 |
return false;
|
|
|
1052 |
if (!this.offer.equals(that.offer))
|
|
|
1053 |
return false;
|
|
|
1054 |
}
|
|
|
1055 |
|
| 16461 |
kshitij.so |
1056 |
boolean this_present_gross_price = true;
|
|
|
1057 |
boolean that_present_gross_price = true;
|
|
|
1058 |
if (this_present_gross_price || that_present_gross_price) {
|
|
|
1059 |
if (!(this_present_gross_price && that_present_gross_price))
|
|
|
1060 |
return false;
|
|
|
1061 |
if (this.gross_price != that.gross_price)
|
|
|
1062 |
return false;
|
|
|
1063 |
}
|
|
|
1064 |
|
| 18728 |
kshitij.so |
1065 |
boolean this_present_cheapestBulkPrice = true;
|
|
|
1066 |
boolean that_present_cheapestBulkPrice = true;
|
|
|
1067 |
if (this_present_cheapestBulkPrice || that_present_cheapestBulkPrice) {
|
|
|
1068 |
if (!(this_present_cheapestBulkPrice && that_present_cheapestBulkPrice))
|
|
|
1069 |
return false;
|
|
|
1070 |
if (this.cheapestBulkPrice != that.cheapestBulkPrice)
|
|
|
1071 |
return false;
|
|
|
1072 |
}
|
|
|
1073 |
|
| 18739 |
kshitij.so |
1074 |
boolean this_present_packQuantity = true;
|
|
|
1075 |
boolean that_present_packQuantity = true;
|
|
|
1076 |
if (this_present_packQuantity || that_present_packQuantity) {
|
|
|
1077 |
if (!(this_present_packQuantity && that_present_packQuantity))
|
|
|
1078 |
return false;
|
|
|
1079 |
if (this.packQuantity != that.packQuantity)
|
|
|
1080 |
return false;
|
|
|
1081 |
}
|
|
|
1082 |
|
| 14384 |
kshitij.so |
1083 |
return true;
|
|
|
1084 |
}
|
|
|
1085 |
|
|
|
1086 |
@Override
|
|
|
1087 |
public int hashCode() {
|
|
|
1088 |
return 0;
|
|
|
1089 |
}
|
|
|
1090 |
|
|
|
1091 |
public int compareTo(LivePricing other) {
|
|
|
1092 |
if (!getClass().equals(other.getClass())) {
|
|
|
1093 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1094 |
}
|
|
|
1095 |
|
|
|
1096 |
int lastComparison = 0;
|
|
|
1097 |
LivePricing typedOther = (LivePricing)other;
|
|
|
1098 |
|
|
|
1099 |
lastComparison = Boolean.valueOf(isSet_id()).compareTo(typedOther.isSet_id());
|
|
|
1100 |
if (lastComparison != 0) {
|
|
|
1101 |
return lastComparison;
|
|
|
1102 |
}
|
|
|
1103 |
if (isSet_id()) {
|
|
|
1104 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this._id, typedOther._id);
|
|
|
1105 |
if (lastComparison != 0) {
|
|
|
1106 |
return lastComparison;
|
|
|
1107 |
}
|
|
|
1108 |
}
|
|
|
1109 |
lastComparison = Boolean.valueOf(isSetAvailable_price()).compareTo(typedOther.isSetAvailable_price());
|
|
|
1110 |
if (lastComparison != 0) {
|
|
|
1111 |
return lastComparison;
|
|
|
1112 |
}
|
|
|
1113 |
if (isSetAvailable_price()) {
|
|
|
1114 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.available_price, typedOther.available_price);
|
|
|
1115 |
if (lastComparison != 0) {
|
|
|
1116 |
return lastComparison;
|
|
|
1117 |
}
|
|
|
1118 |
}
|
|
|
1119 |
lastComparison = Boolean.valueOf(isSetMarketPlaceUrl()).compareTo(typedOther.isSetMarketPlaceUrl());
|
|
|
1120 |
if (lastComparison != 0) {
|
|
|
1121 |
return lastComparison;
|
|
|
1122 |
}
|
|
|
1123 |
if (isSetMarketPlaceUrl()) {
|
|
|
1124 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketPlaceUrl, typedOther.marketPlaceUrl);
|
|
|
1125 |
if (lastComparison != 0) {
|
|
|
1126 |
return lastComparison;
|
|
|
1127 |
}
|
|
|
1128 |
}
|
|
|
1129 |
lastComparison = Boolean.valueOf(isSetIn_stock()).compareTo(typedOther.isSetIn_stock());
|
|
|
1130 |
if (lastComparison != 0) {
|
|
|
1131 |
return lastComparison;
|
|
|
1132 |
}
|
|
|
1133 |
if (isSetIn_stock()) {
|
|
|
1134 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.in_stock, typedOther.in_stock);
|
|
|
1135 |
if (lastComparison != 0) {
|
|
|
1136 |
return lastComparison;
|
|
|
1137 |
}
|
|
|
1138 |
}
|
|
|
1139 |
lastComparison = Boolean.valueOf(isSetSource_id()).compareTo(typedOther.isSetSource_id());
|
|
|
1140 |
if (lastComparison != 0) {
|
|
|
1141 |
return lastComparison;
|
|
|
1142 |
}
|
|
|
1143 |
if (isSetSource_id()) {
|
|
|
1144 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_id, typedOther.source_id);
|
|
|
1145 |
if (lastComparison != 0) {
|
|
|
1146 |
return lastComparison;
|
|
|
1147 |
}
|
|
|
1148 |
}
|
|
|
1149 |
lastComparison = Boolean.valueOf(isSetSource_product_name()).compareTo(typedOther.isSetSource_product_name());
|
|
|
1150 |
if (lastComparison != 0) {
|
|
|
1151 |
return lastComparison;
|
|
|
1152 |
}
|
|
|
1153 |
if (isSetSource_product_name()) {
|
|
|
1154 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_product_name, typedOther.source_product_name);
|
|
|
1155 |
if (lastComparison != 0) {
|
|
|
1156 |
return lastComparison;
|
|
|
1157 |
}
|
|
|
1158 |
}
|
|
|
1159 |
lastComparison = Boolean.valueOf(isSetThumbnail()).compareTo(typedOther.isSetThumbnail());
|
|
|
1160 |
if (lastComparison != 0) {
|
|
|
1161 |
return lastComparison;
|
|
|
1162 |
}
|
|
|
1163 |
if (isSetThumbnail()) {
|
|
|
1164 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thumbnail, typedOther.thumbnail);
|
|
|
1165 |
if (lastComparison != 0) {
|
|
|
1166 |
return lastComparison;
|
|
|
1167 |
}
|
|
|
1168 |
}
|
| 14764 |
kshitij.so |
1169 |
lastComparison = Boolean.valueOf(isSetCash_back_type()).compareTo(typedOther.isSetCash_back_type());
|
|
|
1170 |
if (lastComparison != 0) {
|
|
|
1171 |
return lastComparison;
|
|
|
1172 |
}
|
|
|
1173 |
if (isSetCash_back_type()) {
|
|
|
1174 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back_type, typedOther.cash_back_type);
|
|
|
1175 |
if (lastComparison != 0) {
|
|
|
1176 |
return lastComparison;
|
|
|
1177 |
}
|
|
|
1178 |
}
|
|
|
1179 |
lastComparison = Boolean.valueOf(isSetCash_back()).compareTo(typedOther.isSetCash_back());
|
|
|
1180 |
if (lastComparison != 0) {
|
|
|
1181 |
return lastComparison;
|
|
|
1182 |
}
|
|
|
1183 |
if (isSetCash_back()) {
|
|
|
1184 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
|
|
|
1185 |
if (lastComparison != 0) {
|
|
|
1186 |
return lastComparison;
|
|
|
1187 |
}
|
|
|
1188 |
}
|
| 15903 |
kshitij.so |
1189 |
lastComparison = Boolean.valueOf(isSetCoupon()).compareTo(typedOther.isSetCoupon());
|
|
|
1190 |
if (lastComparison != 0) {
|
|
|
1191 |
return lastComparison;
|
|
|
1192 |
}
|
|
|
1193 |
if (isSetCoupon()) {
|
|
|
1194 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon, typedOther.coupon);
|
|
|
1195 |
if (lastComparison != 0) {
|
|
|
1196 |
return lastComparison;
|
|
|
1197 |
}
|
|
|
1198 |
}
|
|
|
1199 |
lastComparison = Boolean.valueOf(isSetCodAvailable()).compareTo(typedOther.isSetCodAvailable());
|
|
|
1200 |
if (lastComparison != 0) {
|
|
|
1201 |
return lastComparison;
|
|
|
1202 |
}
|
|
|
1203 |
if (isSetCodAvailable()) {
|
|
|
1204 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codAvailable, typedOther.codAvailable);
|
|
|
1205 |
if (lastComparison != 0) {
|
|
|
1206 |
return lastComparison;
|
|
|
1207 |
}
|
|
|
1208 |
}
|
| 16117 |
kshitij.so |
1209 |
lastComparison = Boolean.valueOf(isSetTagline()).compareTo(typedOther.isSetTagline());
|
|
|
1210 |
if (lastComparison != 0) {
|
|
|
1211 |
return lastComparison;
|
|
|
1212 |
}
|
|
|
1213 |
if (isSetTagline()) {
|
|
|
1214 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagline, typedOther.tagline);
|
|
|
1215 |
if (lastComparison != 0) {
|
|
|
1216 |
return lastComparison;
|
|
|
1217 |
}
|
|
|
1218 |
}
|
|
|
1219 |
lastComparison = Boolean.valueOf(isSetOffer()).compareTo(typedOther.isSetOffer());
|
|
|
1220 |
if (lastComparison != 0) {
|
|
|
1221 |
return lastComparison;
|
|
|
1222 |
}
|
|
|
1223 |
if (isSetOffer()) {
|
|
|
1224 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offer, typedOther.offer);
|
|
|
1225 |
if (lastComparison != 0) {
|
|
|
1226 |
return lastComparison;
|
|
|
1227 |
}
|
|
|
1228 |
}
|
| 16461 |
kshitij.so |
1229 |
lastComparison = Boolean.valueOf(isSetGross_price()).compareTo(typedOther.isSetGross_price());
|
|
|
1230 |
if (lastComparison != 0) {
|
|
|
1231 |
return lastComparison;
|
|
|
1232 |
}
|
|
|
1233 |
if (isSetGross_price()) {
|
|
|
1234 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gross_price, typedOther.gross_price);
|
|
|
1235 |
if (lastComparison != 0) {
|
|
|
1236 |
return lastComparison;
|
|
|
1237 |
}
|
|
|
1238 |
}
|
| 18728 |
kshitij.so |
1239 |
lastComparison = Boolean.valueOf(isSetCheapestBulkPrice()).compareTo(typedOther.isSetCheapestBulkPrice());
|
|
|
1240 |
if (lastComparison != 0) {
|
|
|
1241 |
return lastComparison;
|
|
|
1242 |
}
|
|
|
1243 |
if (isSetCheapestBulkPrice()) {
|
|
|
1244 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cheapestBulkPrice, typedOther.cheapestBulkPrice);
|
|
|
1245 |
if (lastComparison != 0) {
|
|
|
1246 |
return lastComparison;
|
|
|
1247 |
}
|
|
|
1248 |
}
|
| 18739 |
kshitij.so |
1249 |
lastComparison = Boolean.valueOf(isSetPackQuantity()).compareTo(typedOther.isSetPackQuantity());
|
|
|
1250 |
if (lastComparison != 0) {
|
|
|
1251 |
return lastComparison;
|
|
|
1252 |
}
|
|
|
1253 |
if (isSetPackQuantity()) {
|
|
|
1254 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
|
|
|
1255 |
if (lastComparison != 0) {
|
|
|
1256 |
return lastComparison;
|
|
|
1257 |
}
|
|
|
1258 |
}
|
| 14384 |
kshitij.so |
1259 |
return 0;
|
|
|
1260 |
}
|
|
|
1261 |
|
|
|
1262 |
public _Fields fieldForId(int fieldId) {
|
|
|
1263 |
return _Fields.findByThriftId(fieldId);
|
|
|
1264 |
}
|
|
|
1265 |
|
|
|
1266 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1267 |
org.apache.thrift.protocol.TField field;
|
|
|
1268 |
iprot.readStructBegin();
|
|
|
1269 |
while (true)
|
|
|
1270 |
{
|
|
|
1271 |
field = iprot.readFieldBegin();
|
|
|
1272 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1273 |
break;
|
|
|
1274 |
}
|
|
|
1275 |
switch (field.id) {
|
|
|
1276 |
case 1: // _ID
|
|
|
1277 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1278 |
this._id = iprot.readI64();
|
|
|
1279 |
set_idIsSet(true);
|
|
|
1280 |
} else {
|
|
|
1281 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1282 |
}
|
|
|
1283 |
break;
|
|
|
1284 |
case 2: // AVAILABLE_PRICE
|
|
|
1285 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1286 |
this.available_price = iprot.readDouble();
|
|
|
1287 |
setAvailable_priceIsSet(true);
|
|
|
1288 |
} else {
|
|
|
1289 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1290 |
}
|
|
|
1291 |
break;
|
|
|
1292 |
case 3: // MARKET_PLACE_URL
|
|
|
1293 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1294 |
this.marketPlaceUrl = iprot.readString();
|
|
|
1295 |
} else {
|
|
|
1296 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1297 |
}
|
|
|
1298 |
break;
|
|
|
1299 |
case 4: // IN_STOCK
|
|
|
1300 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1301 |
this.in_stock = iprot.readI64();
|
|
|
1302 |
setIn_stockIsSet(true);
|
|
|
1303 |
} else {
|
|
|
1304 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1305 |
}
|
|
|
1306 |
break;
|
|
|
1307 |
case 5: // SOURCE_ID
|
|
|
1308 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1309 |
this.source_id = iprot.readI64();
|
|
|
1310 |
setSource_idIsSet(true);
|
|
|
1311 |
} else {
|
|
|
1312 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1313 |
}
|
|
|
1314 |
break;
|
|
|
1315 |
case 6: // SOURCE_PRODUCT_NAME
|
|
|
1316 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1317 |
this.source_product_name = iprot.readString();
|
|
|
1318 |
} else {
|
|
|
1319 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1320 |
}
|
|
|
1321 |
break;
|
|
|
1322 |
case 7: // THUMBNAIL
|
|
|
1323 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1324 |
this.thumbnail = iprot.readString();
|
|
|
1325 |
} else {
|
|
|
1326 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1327 |
}
|
|
|
1328 |
break;
|
| 14764 |
kshitij.so |
1329 |
case 8: // CASH_BACK_TYPE
|
|
|
1330 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1331 |
this.cash_back_type = iprot.readI64();
|
|
|
1332 |
setCash_back_typeIsSet(true);
|
|
|
1333 |
} else {
|
|
|
1334 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1335 |
}
|
|
|
1336 |
break;
|
|
|
1337 |
case 9: // CASH_BACK
|
|
|
1338 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1339 |
this.cash_back = iprot.readDouble();
|
|
|
1340 |
setCash_backIsSet(true);
|
|
|
1341 |
} else {
|
|
|
1342 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1343 |
}
|
|
|
1344 |
break;
|
| 15903 |
kshitij.so |
1345 |
case 10: // COUPON
|
|
|
1346 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1347 |
this.coupon = iprot.readString();
|
|
|
1348 |
} else {
|
|
|
1349 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1350 |
}
|
|
|
1351 |
break;
|
|
|
1352 |
case 11: // COD_AVAILABLE
|
| 15943 |
kshitij.so |
1353 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1354 |
this.codAvailable = iprot.readI64();
|
| 15903 |
kshitij.so |
1355 |
setCodAvailableIsSet(true);
|
|
|
1356 |
} else {
|
|
|
1357 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1358 |
}
|
|
|
1359 |
break;
|
| 16117 |
kshitij.so |
1360 |
case 12: // TAGLINE
|
|
|
1361 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1362 |
this.tagline = iprot.readString();
|
|
|
1363 |
} else {
|
|
|
1364 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1365 |
}
|
|
|
1366 |
break;
|
|
|
1367 |
case 13: // OFFER
|
|
|
1368 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1369 |
this.offer = iprot.readString();
|
|
|
1370 |
} else {
|
|
|
1371 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1372 |
}
|
|
|
1373 |
break;
|
| 16461 |
kshitij.so |
1374 |
case 14: // GROSS_PRICE
|
|
|
1375 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1376 |
this.gross_price = iprot.readDouble();
|
|
|
1377 |
setGross_priceIsSet(true);
|
|
|
1378 |
} else {
|
|
|
1379 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1380 |
}
|
|
|
1381 |
break;
|
| 18728 |
kshitij.so |
1382 |
case 15: // CHEAPEST_BULK_PRICE
|
|
|
1383 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1384 |
this.cheapestBulkPrice = iprot.readDouble();
|
|
|
1385 |
setCheapestBulkPriceIsSet(true);
|
|
|
1386 |
} else {
|
|
|
1387 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1388 |
}
|
|
|
1389 |
break;
|
| 18739 |
kshitij.so |
1390 |
case 16: // PACK_QUANTITY
|
|
|
1391 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1392 |
this.packQuantity = iprot.readI64();
|
|
|
1393 |
setPackQuantityIsSet(true);
|
|
|
1394 |
} else {
|
|
|
1395 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1396 |
}
|
|
|
1397 |
break;
|
| 14384 |
kshitij.so |
1398 |
default:
|
|
|
1399 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1400 |
}
|
|
|
1401 |
iprot.readFieldEnd();
|
|
|
1402 |
}
|
|
|
1403 |
iprot.readStructEnd();
|
|
|
1404 |
validate();
|
|
|
1405 |
}
|
|
|
1406 |
|
|
|
1407 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1408 |
validate();
|
|
|
1409 |
|
|
|
1410 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1411 |
oprot.writeFieldBegin(_ID_FIELD_DESC);
|
|
|
1412 |
oprot.writeI64(this._id);
|
|
|
1413 |
oprot.writeFieldEnd();
|
|
|
1414 |
oprot.writeFieldBegin(AVAILABLE_PRICE_FIELD_DESC);
|
|
|
1415 |
oprot.writeDouble(this.available_price);
|
|
|
1416 |
oprot.writeFieldEnd();
|
|
|
1417 |
if (this.marketPlaceUrl != null) {
|
|
|
1418 |
oprot.writeFieldBegin(MARKET_PLACE_URL_FIELD_DESC);
|
|
|
1419 |
oprot.writeString(this.marketPlaceUrl);
|
|
|
1420 |
oprot.writeFieldEnd();
|
|
|
1421 |
}
|
|
|
1422 |
oprot.writeFieldBegin(IN_STOCK_FIELD_DESC);
|
|
|
1423 |
oprot.writeI64(this.in_stock);
|
|
|
1424 |
oprot.writeFieldEnd();
|
|
|
1425 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
|
|
1426 |
oprot.writeI64(this.source_id);
|
|
|
1427 |
oprot.writeFieldEnd();
|
|
|
1428 |
if (this.source_product_name != null) {
|
|
|
1429 |
oprot.writeFieldBegin(SOURCE_PRODUCT_NAME_FIELD_DESC);
|
|
|
1430 |
oprot.writeString(this.source_product_name);
|
|
|
1431 |
oprot.writeFieldEnd();
|
|
|
1432 |
}
|
|
|
1433 |
if (this.thumbnail != null) {
|
|
|
1434 |
oprot.writeFieldBegin(THUMBNAIL_FIELD_DESC);
|
|
|
1435 |
oprot.writeString(this.thumbnail);
|
|
|
1436 |
oprot.writeFieldEnd();
|
|
|
1437 |
}
|
| 14764 |
kshitij.so |
1438 |
oprot.writeFieldBegin(CASH_BACK_TYPE_FIELD_DESC);
|
|
|
1439 |
oprot.writeI64(this.cash_back_type);
|
|
|
1440 |
oprot.writeFieldEnd();
|
|
|
1441 |
oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
|
|
|
1442 |
oprot.writeDouble(this.cash_back);
|
|
|
1443 |
oprot.writeFieldEnd();
|
| 15903 |
kshitij.so |
1444 |
if (this.coupon != null) {
|
|
|
1445 |
oprot.writeFieldBegin(COUPON_FIELD_DESC);
|
|
|
1446 |
oprot.writeString(this.coupon);
|
|
|
1447 |
oprot.writeFieldEnd();
|
|
|
1448 |
}
|
|
|
1449 |
oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
|
| 15943 |
kshitij.so |
1450 |
oprot.writeI64(this.codAvailable);
|
| 15903 |
kshitij.so |
1451 |
oprot.writeFieldEnd();
|
| 16117 |
kshitij.so |
1452 |
if (this.tagline != null) {
|
|
|
1453 |
oprot.writeFieldBegin(TAGLINE_FIELD_DESC);
|
|
|
1454 |
oprot.writeString(this.tagline);
|
|
|
1455 |
oprot.writeFieldEnd();
|
|
|
1456 |
}
|
|
|
1457 |
if (this.offer != null) {
|
|
|
1458 |
oprot.writeFieldBegin(OFFER_FIELD_DESC);
|
|
|
1459 |
oprot.writeString(this.offer);
|
|
|
1460 |
oprot.writeFieldEnd();
|
|
|
1461 |
}
|
| 16461 |
kshitij.so |
1462 |
oprot.writeFieldBegin(GROSS_PRICE_FIELD_DESC);
|
|
|
1463 |
oprot.writeDouble(this.gross_price);
|
|
|
1464 |
oprot.writeFieldEnd();
|
| 18728 |
kshitij.so |
1465 |
oprot.writeFieldBegin(CHEAPEST_BULK_PRICE_FIELD_DESC);
|
|
|
1466 |
oprot.writeDouble(this.cheapestBulkPrice);
|
|
|
1467 |
oprot.writeFieldEnd();
|
| 18739 |
kshitij.so |
1468 |
oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
|
|
|
1469 |
oprot.writeI64(this.packQuantity);
|
|
|
1470 |
oprot.writeFieldEnd();
|
| 14384 |
kshitij.so |
1471 |
oprot.writeFieldStop();
|
|
|
1472 |
oprot.writeStructEnd();
|
|
|
1473 |
}
|
|
|
1474 |
|
|
|
1475 |
@Override
|
|
|
1476 |
public String toString() {
|
|
|
1477 |
StringBuilder sb = new StringBuilder("LivePricing(");
|
|
|
1478 |
boolean first = true;
|
|
|
1479 |
|
|
|
1480 |
sb.append("_id:");
|
|
|
1481 |
sb.append(this._id);
|
|
|
1482 |
first = false;
|
|
|
1483 |
if (!first) sb.append(", ");
|
|
|
1484 |
sb.append("available_price:");
|
|
|
1485 |
sb.append(this.available_price);
|
|
|
1486 |
first = false;
|
|
|
1487 |
if (!first) sb.append(", ");
|
|
|
1488 |
sb.append("marketPlaceUrl:");
|
|
|
1489 |
if (this.marketPlaceUrl == null) {
|
|
|
1490 |
sb.append("null");
|
|
|
1491 |
} else {
|
|
|
1492 |
sb.append(this.marketPlaceUrl);
|
|
|
1493 |
}
|
|
|
1494 |
first = false;
|
|
|
1495 |
if (!first) sb.append(", ");
|
|
|
1496 |
sb.append("in_stock:");
|
|
|
1497 |
sb.append(this.in_stock);
|
|
|
1498 |
first = false;
|
|
|
1499 |
if (!first) sb.append(", ");
|
|
|
1500 |
sb.append("source_id:");
|
|
|
1501 |
sb.append(this.source_id);
|
|
|
1502 |
first = false;
|
|
|
1503 |
if (!first) sb.append(", ");
|
|
|
1504 |
sb.append("source_product_name:");
|
|
|
1505 |
if (this.source_product_name == null) {
|
|
|
1506 |
sb.append("null");
|
|
|
1507 |
} else {
|
|
|
1508 |
sb.append(this.source_product_name);
|
|
|
1509 |
}
|
|
|
1510 |
first = false;
|
|
|
1511 |
if (!first) sb.append(", ");
|
|
|
1512 |
sb.append("thumbnail:");
|
|
|
1513 |
if (this.thumbnail == null) {
|
|
|
1514 |
sb.append("null");
|
|
|
1515 |
} else {
|
|
|
1516 |
sb.append(this.thumbnail);
|
|
|
1517 |
}
|
|
|
1518 |
first = false;
|
| 14764 |
kshitij.so |
1519 |
if (!first) sb.append(", ");
|
|
|
1520 |
sb.append("cash_back_type:");
|
|
|
1521 |
sb.append(this.cash_back_type);
|
|
|
1522 |
first = false;
|
|
|
1523 |
if (!first) sb.append(", ");
|
|
|
1524 |
sb.append("cash_back:");
|
|
|
1525 |
sb.append(this.cash_back);
|
|
|
1526 |
first = false;
|
| 15903 |
kshitij.so |
1527 |
if (!first) sb.append(", ");
|
|
|
1528 |
sb.append("coupon:");
|
|
|
1529 |
if (this.coupon == null) {
|
|
|
1530 |
sb.append("null");
|
|
|
1531 |
} else {
|
|
|
1532 |
sb.append(this.coupon);
|
|
|
1533 |
}
|
|
|
1534 |
first = false;
|
|
|
1535 |
if (!first) sb.append(", ");
|
|
|
1536 |
sb.append("codAvailable:");
|
|
|
1537 |
sb.append(this.codAvailable);
|
|
|
1538 |
first = false;
|
| 16117 |
kshitij.so |
1539 |
if (!first) sb.append(", ");
|
|
|
1540 |
sb.append("tagline:");
|
|
|
1541 |
if (this.tagline == null) {
|
|
|
1542 |
sb.append("null");
|
|
|
1543 |
} else {
|
|
|
1544 |
sb.append(this.tagline);
|
|
|
1545 |
}
|
|
|
1546 |
first = false;
|
|
|
1547 |
if (!first) sb.append(", ");
|
|
|
1548 |
sb.append("offer:");
|
|
|
1549 |
if (this.offer == null) {
|
|
|
1550 |
sb.append("null");
|
|
|
1551 |
} else {
|
|
|
1552 |
sb.append(this.offer);
|
|
|
1553 |
}
|
|
|
1554 |
first = false;
|
| 16461 |
kshitij.so |
1555 |
if (!first) sb.append(", ");
|
|
|
1556 |
sb.append("gross_price:");
|
|
|
1557 |
sb.append(this.gross_price);
|
|
|
1558 |
first = false;
|
| 18728 |
kshitij.so |
1559 |
if (!first) sb.append(", ");
|
|
|
1560 |
sb.append("cheapestBulkPrice:");
|
|
|
1561 |
sb.append(this.cheapestBulkPrice);
|
|
|
1562 |
first = false;
|
| 18739 |
kshitij.so |
1563 |
if (!first) sb.append(", ");
|
|
|
1564 |
sb.append("packQuantity:");
|
|
|
1565 |
sb.append(this.packQuantity);
|
|
|
1566 |
first = false;
|
| 14384 |
kshitij.so |
1567 |
sb.append(")");
|
|
|
1568 |
return sb.toString();
|
|
|
1569 |
}
|
|
|
1570 |
|
|
|
1571 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1572 |
// check for required fields
|
|
|
1573 |
}
|
|
|
1574 |
|
|
|
1575 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1576 |
try {
|
|
|
1577 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1578 |
} catch (org.apache.thrift.TException te) {
|
|
|
1579 |
throw new java.io.IOException(te);
|
|
|
1580 |
}
|
|
|
1581 |
}
|
|
|
1582 |
|
|
|
1583 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1584 |
try {
|
|
|
1585 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1586 |
__isset_bit_vector = new BitSet(1);
|
|
|
1587 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1588 |
} catch (org.apache.thrift.TException te) {
|
|
|
1589 |
throw new java.io.IOException(te);
|
|
|
1590 |
}
|
|
|
1591 |
}
|
|
|
1592 |
|
|
|
1593 |
}
|
|
|
1594 |
|