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