| 10689 |
manish.sha |
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.warehouse;
|
|
|
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 |
public class AmazonTransferredSkuDetail implements org.apache.thrift.TBase<AmazonTransferredSkuDetail, AmazonTransferredSkuDetail._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonTransferredSkuDetail");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField PURCHASE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseDate", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
| 12357 |
manish.sha |
31 |
private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.STRING, (short)12);
|
| 10689 |
manish.sha |
38 |
|
|
|
39 |
private long itemId; // required
|
|
|
40 |
private long purchaseId; // required
|
|
|
41 |
private long purchaseDate; // required
|
|
|
42 |
private long quantity; // required
|
|
|
43 |
private double unitPrice; // required
|
| 12357 |
manish.sha |
44 |
private double nlc; // required
|
| 10689 |
manish.sha |
45 |
private String brand; // required
|
|
|
46 |
private String modelName; // required
|
|
|
47 |
private String modelNumber; // required
|
|
|
48 |
private String category; // required
|
|
|
49 |
private String color; // required
|
| 12357 |
manish.sha |
50 |
private String taxType; // required
|
| 10689 |
manish.sha |
51 |
|
|
|
52 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
53 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
54 |
ITEM_ID((short)1, "itemId"),
|
|
|
55 |
PURCHASE_ID((short)2, "purchaseId"),
|
|
|
56 |
PURCHASE_DATE((short)3, "purchaseDate"),
|
|
|
57 |
QUANTITY((short)4, "quantity"),
|
|
|
58 |
UNIT_PRICE((short)5, "unitPrice"),
|
| 12357 |
manish.sha |
59 |
NLC((short)6, "nlc"),
|
|
|
60 |
BRAND((short)7, "brand"),
|
|
|
61 |
MODEL_NAME((short)8, "modelName"),
|
|
|
62 |
MODEL_NUMBER((short)9, "modelNumber"),
|
|
|
63 |
CATEGORY((short)10, "category"),
|
|
|
64 |
COLOR((short)11, "color"),
|
|
|
65 |
TAX_TYPE((short)12, "taxType");
|
| 10689 |
manish.sha |
66 |
|
|
|
67 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
68 |
|
|
|
69 |
static {
|
|
|
70 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
71 |
byName.put(field.getFieldName(), field);
|
|
|
72 |
}
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
77 |
*/
|
|
|
78 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
79 |
switch(fieldId) {
|
|
|
80 |
case 1: // ITEM_ID
|
|
|
81 |
return ITEM_ID;
|
|
|
82 |
case 2: // PURCHASE_ID
|
|
|
83 |
return PURCHASE_ID;
|
|
|
84 |
case 3: // PURCHASE_DATE
|
|
|
85 |
return PURCHASE_DATE;
|
|
|
86 |
case 4: // QUANTITY
|
|
|
87 |
return QUANTITY;
|
|
|
88 |
case 5: // UNIT_PRICE
|
|
|
89 |
return UNIT_PRICE;
|
| 12357 |
manish.sha |
90 |
case 6: // NLC
|
|
|
91 |
return NLC;
|
|
|
92 |
case 7: // BRAND
|
| 10689 |
manish.sha |
93 |
return BRAND;
|
| 12357 |
manish.sha |
94 |
case 8: // MODEL_NAME
|
| 10689 |
manish.sha |
95 |
return MODEL_NAME;
|
| 12357 |
manish.sha |
96 |
case 9: // MODEL_NUMBER
|
| 10689 |
manish.sha |
97 |
return MODEL_NUMBER;
|
| 12357 |
manish.sha |
98 |
case 10: // CATEGORY
|
| 10689 |
manish.sha |
99 |
return CATEGORY;
|
| 12357 |
manish.sha |
100 |
case 11: // COLOR
|
| 10689 |
manish.sha |
101 |
return COLOR;
|
| 12357 |
manish.sha |
102 |
case 12: // TAX_TYPE
|
|
|
103 |
return TAX_TYPE;
|
| 10689 |
manish.sha |
104 |
default:
|
|
|
105 |
return null;
|
|
|
106 |
}
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
111 |
* if it is not found.
|
|
|
112 |
*/
|
|
|
113 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
114 |
_Fields fields = findByThriftId(fieldId);
|
|
|
115 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
116 |
return fields;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
/**
|
|
|
120 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
121 |
*/
|
|
|
122 |
public static _Fields findByName(String name) {
|
|
|
123 |
return byName.get(name);
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
private final short _thriftId;
|
|
|
127 |
private final String _fieldName;
|
|
|
128 |
|
|
|
129 |
_Fields(short thriftId, String fieldName) {
|
|
|
130 |
_thriftId = thriftId;
|
|
|
131 |
_fieldName = fieldName;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public short getThriftFieldId() {
|
|
|
135 |
return _thriftId;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public String getFieldName() {
|
|
|
139 |
return _fieldName;
|
|
|
140 |
}
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
// isset id assignments
|
|
|
144 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
145 |
private static final int __PURCHASEID_ISSET_ID = 1;
|
|
|
146 |
private static final int __PURCHASEDATE_ISSET_ID = 2;
|
|
|
147 |
private static final int __QUANTITY_ISSET_ID = 3;
|
|
|
148 |
private static final int __UNITPRICE_ISSET_ID = 4;
|
| 12357 |
manish.sha |
149 |
private static final int __NLC_ISSET_ID = 5;
|
|
|
150 |
private BitSet __isset_bit_vector = new BitSet(6);
|
| 10689 |
manish.sha |
151 |
|
|
|
152 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
153 |
static {
|
|
|
154 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
155 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
156 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
157 |
tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
158 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
159 |
tmpMap.put(_Fields.PURCHASE_DATE, new org.apache.thrift.meta_data.FieldMetaData("purchaseDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
160 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
161 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
162 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
163 |
tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
164 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 12357 |
manish.sha |
165 |
tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
166 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 10689 |
manish.sha |
167 |
tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
168 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
169 |
tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
170 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
171 |
tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
172 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
173 |
tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
174 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
175 |
tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
176 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 12357 |
manish.sha |
177 |
tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
178 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 10689 |
manish.sha |
179 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
180 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonTransferredSkuDetail.class, metaDataMap);
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
public AmazonTransferredSkuDetail() {
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
public AmazonTransferredSkuDetail(
|
|
|
187 |
long itemId,
|
|
|
188 |
long purchaseId,
|
|
|
189 |
long purchaseDate,
|
|
|
190 |
long quantity,
|
|
|
191 |
double unitPrice,
|
| 12357 |
manish.sha |
192 |
double nlc,
|
| 10689 |
manish.sha |
193 |
String brand,
|
|
|
194 |
String modelName,
|
|
|
195 |
String modelNumber,
|
|
|
196 |
String category,
|
| 12357 |
manish.sha |
197 |
String color,
|
|
|
198 |
String taxType)
|
| 10689 |
manish.sha |
199 |
{
|
|
|
200 |
this();
|
|
|
201 |
this.itemId = itemId;
|
|
|
202 |
setItemIdIsSet(true);
|
|
|
203 |
this.purchaseId = purchaseId;
|
|
|
204 |
setPurchaseIdIsSet(true);
|
|
|
205 |
this.purchaseDate = purchaseDate;
|
|
|
206 |
setPurchaseDateIsSet(true);
|
|
|
207 |
this.quantity = quantity;
|
|
|
208 |
setQuantityIsSet(true);
|
|
|
209 |
this.unitPrice = unitPrice;
|
|
|
210 |
setUnitPriceIsSet(true);
|
| 12357 |
manish.sha |
211 |
this.nlc = nlc;
|
|
|
212 |
setNlcIsSet(true);
|
| 10689 |
manish.sha |
213 |
this.brand = brand;
|
|
|
214 |
this.modelName = modelName;
|
|
|
215 |
this.modelNumber = modelNumber;
|
|
|
216 |
this.category = category;
|
|
|
217 |
this.color = color;
|
| 12357 |
manish.sha |
218 |
this.taxType = taxType;
|
| 10689 |
manish.sha |
219 |
}
|
|
|
220 |
|
|
|
221 |
/**
|
|
|
222 |
* Performs a deep copy on <i>other</i>.
|
|
|
223 |
*/
|
|
|
224 |
public AmazonTransferredSkuDetail(AmazonTransferredSkuDetail other) {
|
|
|
225 |
__isset_bit_vector.clear();
|
|
|
226 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
227 |
this.itemId = other.itemId;
|
|
|
228 |
this.purchaseId = other.purchaseId;
|
|
|
229 |
this.purchaseDate = other.purchaseDate;
|
|
|
230 |
this.quantity = other.quantity;
|
|
|
231 |
this.unitPrice = other.unitPrice;
|
| 12357 |
manish.sha |
232 |
this.nlc = other.nlc;
|
| 10689 |
manish.sha |
233 |
if (other.isSetBrand()) {
|
|
|
234 |
this.brand = other.brand;
|
|
|
235 |
}
|
|
|
236 |
if (other.isSetModelName()) {
|
|
|
237 |
this.modelName = other.modelName;
|
|
|
238 |
}
|
|
|
239 |
if (other.isSetModelNumber()) {
|
|
|
240 |
this.modelNumber = other.modelNumber;
|
|
|
241 |
}
|
|
|
242 |
if (other.isSetCategory()) {
|
|
|
243 |
this.category = other.category;
|
|
|
244 |
}
|
|
|
245 |
if (other.isSetColor()) {
|
|
|
246 |
this.color = other.color;
|
|
|
247 |
}
|
| 12357 |
manish.sha |
248 |
if (other.isSetTaxType()) {
|
|
|
249 |
this.taxType = other.taxType;
|
|
|
250 |
}
|
| 10689 |
manish.sha |
251 |
}
|
|
|
252 |
|
|
|
253 |
public AmazonTransferredSkuDetail deepCopy() {
|
|
|
254 |
return new AmazonTransferredSkuDetail(this);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
@Override
|
|
|
258 |
public void clear() {
|
|
|
259 |
setItemIdIsSet(false);
|
|
|
260 |
this.itemId = 0;
|
|
|
261 |
setPurchaseIdIsSet(false);
|
|
|
262 |
this.purchaseId = 0;
|
|
|
263 |
setPurchaseDateIsSet(false);
|
|
|
264 |
this.purchaseDate = 0;
|
|
|
265 |
setQuantityIsSet(false);
|
|
|
266 |
this.quantity = 0;
|
|
|
267 |
setUnitPriceIsSet(false);
|
|
|
268 |
this.unitPrice = 0.0;
|
| 12357 |
manish.sha |
269 |
setNlcIsSet(false);
|
|
|
270 |
this.nlc = 0.0;
|
| 10689 |
manish.sha |
271 |
this.brand = null;
|
|
|
272 |
this.modelName = null;
|
|
|
273 |
this.modelNumber = null;
|
|
|
274 |
this.category = null;
|
|
|
275 |
this.color = null;
|
| 12357 |
manish.sha |
276 |
this.taxType = null;
|
| 10689 |
manish.sha |
277 |
}
|
|
|
278 |
|
|
|
279 |
public long getItemId() {
|
|
|
280 |
return this.itemId;
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
public void setItemId(long itemId) {
|
|
|
284 |
this.itemId = itemId;
|
|
|
285 |
setItemIdIsSet(true);
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
public void unsetItemId() {
|
|
|
289 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
293 |
public boolean isSetItemId() {
|
|
|
294 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
public void setItemIdIsSet(boolean value) {
|
|
|
298 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
299 |
}
|
|
|
300 |
|
|
|
301 |
public long getPurchaseId() {
|
|
|
302 |
return this.purchaseId;
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
public void setPurchaseId(long purchaseId) {
|
|
|
306 |
this.purchaseId = purchaseId;
|
|
|
307 |
setPurchaseIdIsSet(true);
|
|
|
308 |
}
|
|
|
309 |
|
|
|
310 |
public void unsetPurchaseId() {
|
|
|
311 |
__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
|
|
|
315 |
public boolean isSetPurchaseId() {
|
|
|
316 |
return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
|
|
|
317 |
}
|
|
|
318 |
|
|
|
319 |
public void setPurchaseIdIsSet(boolean value) {
|
|
|
320 |
__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public long getPurchaseDate() {
|
|
|
324 |
return this.purchaseDate;
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public void setPurchaseDate(long purchaseDate) {
|
|
|
328 |
this.purchaseDate = purchaseDate;
|
|
|
329 |
setPurchaseDateIsSet(true);
|
|
|
330 |
}
|
|
|
331 |
|
|
|
332 |
public void unsetPurchaseDate() {
|
|
|
333 |
__isset_bit_vector.clear(__PURCHASEDATE_ISSET_ID);
|
|
|
334 |
}
|
|
|
335 |
|
|
|
336 |
/** Returns true if field purchaseDate is set (has been assigned a value) and false otherwise */
|
|
|
337 |
public boolean isSetPurchaseDate() {
|
|
|
338 |
return __isset_bit_vector.get(__PURCHASEDATE_ISSET_ID);
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
public void setPurchaseDateIsSet(boolean value) {
|
|
|
342 |
__isset_bit_vector.set(__PURCHASEDATE_ISSET_ID, value);
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public long getQuantity() {
|
|
|
346 |
return this.quantity;
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public void setQuantity(long quantity) {
|
|
|
350 |
this.quantity = quantity;
|
|
|
351 |
setQuantityIsSet(true);
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void unsetQuantity() {
|
|
|
355 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
359 |
public boolean isSetQuantity() {
|
|
|
360 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public void setQuantityIsSet(boolean value) {
|
|
|
364 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public double getUnitPrice() {
|
|
|
368 |
return this.unitPrice;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void setUnitPrice(double unitPrice) {
|
|
|
372 |
this.unitPrice = unitPrice;
|
|
|
373 |
setUnitPriceIsSet(true);
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void unsetUnitPrice() {
|
|
|
377 |
__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
|
|
|
381 |
public boolean isSetUnitPrice() {
|
|
|
382 |
return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
public void setUnitPriceIsSet(boolean value) {
|
|
|
386 |
__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
|
|
|
387 |
}
|
|
|
388 |
|
| 12357 |
manish.sha |
389 |
public double getNlc() {
|
|
|
390 |
return this.nlc;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public void setNlc(double nlc) {
|
|
|
394 |
this.nlc = nlc;
|
|
|
395 |
setNlcIsSet(true);
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
public void unsetNlc() {
|
|
|
399 |
__isset_bit_vector.clear(__NLC_ISSET_ID);
|
|
|
400 |
}
|
|
|
401 |
|
|
|
402 |
/** Returns true if field nlc is set (has been assigned a value) and false otherwise */
|
|
|
403 |
public boolean isSetNlc() {
|
|
|
404 |
return __isset_bit_vector.get(__NLC_ISSET_ID);
|
|
|
405 |
}
|
|
|
406 |
|
|
|
407 |
public void setNlcIsSet(boolean value) {
|
|
|
408 |
__isset_bit_vector.set(__NLC_ISSET_ID, value);
|
|
|
409 |
}
|
|
|
410 |
|
| 10689 |
manish.sha |
411 |
public String getBrand() {
|
|
|
412 |
return this.brand;
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public void setBrand(String brand) {
|
|
|
416 |
this.brand = brand;
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
public void unsetBrand() {
|
|
|
420 |
this.brand = null;
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
/** Returns true if field brand is set (has been assigned a value) and false otherwise */
|
|
|
424 |
public boolean isSetBrand() {
|
|
|
425 |
return this.brand != null;
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void setBrandIsSet(boolean value) {
|
|
|
429 |
if (!value) {
|
|
|
430 |
this.brand = null;
|
|
|
431 |
}
|
|
|
432 |
}
|
|
|
433 |
|
|
|
434 |
public String getModelName() {
|
|
|
435 |
return this.modelName;
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
public void setModelName(String modelName) {
|
|
|
439 |
this.modelName = modelName;
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public void unsetModelName() {
|
|
|
443 |
this.modelName = null;
|
|
|
444 |
}
|
|
|
445 |
|
|
|
446 |
/** Returns true if field modelName is set (has been assigned a value) and false otherwise */
|
|
|
447 |
public boolean isSetModelName() {
|
|
|
448 |
return this.modelName != null;
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
public void setModelNameIsSet(boolean value) {
|
|
|
452 |
if (!value) {
|
|
|
453 |
this.modelName = null;
|
|
|
454 |
}
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
public String getModelNumber() {
|
|
|
458 |
return this.modelNumber;
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public void setModelNumber(String modelNumber) {
|
|
|
462 |
this.modelNumber = modelNumber;
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
public void unsetModelNumber() {
|
|
|
466 |
this.modelNumber = null;
|
|
|
467 |
}
|
|
|
468 |
|
|
|
469 |
/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
|
|
|
470 |
public boolean isSetModelNumber() {
|
|
|
471 |
return this.modelNumber != null;
|
|
|
472 |
}
|
|
|
473 |
|
|
|
474 |
public void setModelNumberIsSet(boolean value) {
|
|
|
475 |
if (!value) {
|
|
|
476 |
this.modelNumber = null;
|
|
|
477 |
}
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
public String getCategory() {
|
|
|
481 |
return this.category;
|
|
|
482 |
}
|
|
|
483 |
|
|
|
484 |
public void setCategory(String category) {
|
|
|
485 |
this.category = category;
|
|
|
486 |
}
|
|
|
487 |
|
|
|
488 |
public void unsetCategory() {
|
|
|
489 |
this.category = null;
|
|
|
490 |
}
|
|
|
491 |
|
|
|
492 |
/** Returns true if field category is set (has been assigned a value) and false otherwise */
|
|
|
493 |
public boolean isSetCategory() {
|
|
|
494 |
return this.category != null;
|
|
|
495 |
}
|
|
|
496 |
|
|
|
497 |
public void setCategoryIsSet(boolean value) {
|
|
|
498 |
if (!value) {
|
|
|
499 |
this.category = null;
|
|
|
500 |
}
|
|
|
501 |
}
|
|
|
502 |
|
|
|
503 |
public String getColor() {
|
|
|
504 |
return this.color;
|
|
|
505 |
}
|
|
|
506 |
|
|
|
507 |
public void setColor(String color) {
|
|
|
508 |
this.color = color;
|
|
|
509 |
}
|
|
|
510 |
|
|
|
511 |
public void unsetColor() {
|
|
|
512 |
this.color = null;
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
/** Returns true if field color is set (has been assigned a value) and false otherwise */
|
|
|
516 |
public boolean isSetColor() {
|
|
|
517 |
return this.color != null;
|
|
|
518 |
}
|
|
|
519 |
|
|
|
520 |
public void setColorIsSet(boolean value) {
|
|
|
521 |
if (!value) {
|
|
|
522 |
this.color = null;
|
|
|
523 |
}
|
|
|
524 |
}
|
|
|
525 |
|
| 12357 |
manish.sha |
526 |
public String getTaxType() {
|
|
|
527 |
return this.taxType;
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void setTaxType(String taxType) {
|
|
|
531 |
this.taxType = taxType;
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
public void unsetTaxType() {
|
|
|
535 |
this.taxType = null;
|
|
|
536 |
}
|
|
|
537 |
|
|
|
538 |
/** Returns true if field taxType is set (has been assigned a value) and false otherwise */
|
|
|
539 |
public boolean isSetTaxType() {
|
|
|
540 |
return this.taxType != null;
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public void setTaxTypeIsSet(boolean value) {
|
|
|
544 |
if (!value) {
|
|
|
545 |
this.taxType = null;
|
|
|
546 |
}
|
|
|
547 |
}
|
|
|
548 |
|
| 10689 |
manish.sha |
549 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
550 |
switch (field) {
|
|
|
551 |
case ITEM_ID:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetItemId();
|
|
|
554 |
} else {
|
|
|
555 |
setItemId((Long)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
|
|
559 |
case PURCHASE_ID:
|
|
|
560 |
if (value == null) {
|
|
|
561 |
unsetPurchaseId();
|
|
|
562 |
} else {
|
|
|
563 |
setPurchaseId((Long)value);
|
|
|
564 |
}
|
|
|
565 |
break;
|
|
|
566 |
|
|
|
567 |
case PURCHASE_DATE:
|
|
|
568 |
if (value == null) {
|
|
|
569 |
unsetPurchaseDate();
|
|
|
570 |
} else {
|
|
|
571 |
setPurchaseDate((Long)value);
|
|
|
572 |
}
|
|
|
573 |
break;
|
|
|
574 |
|
|
|
575 |
case QUANTITY:
|
|
|
576 |
if (value == null) {
|
|
|
577 |
unsetQuantity();
|
|
|
578 |
} else {
|
|
|
579 |
setQuantity((Long)value);
|
|
|
580 |
}
|
|
|
581 |
break;
|
|
|
582 |
|
|
|
583 |
case UNIT_PRICE:
|
|
|
584 |
if (value == null) {
|
|
|
585 |
unsetUnitPrice();
|
|
|
586 |
} else {
|
|
|
587 |
setUnitPrice((Double)value);
|
|
|
588 |
}
|
|
|
589 |
break;
|
|
|
590 |
|
| 12357 |
manish.sha |
591 |
case NLC:
|
|
|
592 |
if (value == null) {
|
|
|
593 |
unsetNlc();
|
|
|
594 |
} else {
|
|
|
595 |
setNlc((Double)value);
|
|
|
596 |
}
|
|
|
597 |
break;
|
|
|
598 |
|
| 10689 |
manish.sha |
599 |
case BRAND:
|
|
|
600 |
if (value == null) {
|
|
|
601 |
unsetBrand();
|
|
|
602 |
} else {
|
|
|
603 |
setBrand((String)value);
|
|
|
604 |
}
|
|
|
605 |
break;
|
|
|
606 |
|
|
|
607 |
case MODEL_NAME:
|
|
|
608 |
if (value == null) {
|
|
|
609 |
unsetModelName();
|
|
|
610 |
} else {
|
|
|
611 |
setModelName((String)value);
|
|
|
612 |
}
|
|
|
613 |
break;
|
|
|
614 |
|
|
|
615 |
case MODEL_NUMBER:
|
|
|
616 |
if (value == null) {
|
|
|
617 |
unsetModelNumber();
|
|
|
618 |
} else {
|
|
|
619 |
setModelNumber((String)value);
|
|
|
620 |
}
|
|
|
621 |
break;
|
|
|
622 |
|
|
|
623 |
case CATEGORY:
|
|
|
624 |
if (value == null) {
|
|
|
625 |
unsetCategory();
|
|
|
626 |
} else {
|
|
|
627 |
setCategory((String)value);
|
|
|
628 |
}
|
|
|
629 |
break;
|
|
|
630 |
|
|
|
631 |
case COLOR:
|
|
|
632 |
if (value == null) {
|
|
|
633 |
unsetColor();
|
|
|
634 |
} else {
|
|
|
635 |
setColor((String)value);
|
|
|
636 |
}
|
|
|
637 |
break;
|
|
|
638 |
|
| 12357 |
manish.sha |
639 |
case TAX_TYPE:
|
|
|
640 |
if (value == null) {
|
|
|
641 |
unsetTaxType();
|
|
|
642 |
} else {
|
|
|
643 |
setTaxType((String)value);
|
|
|
644 |
}
|
|
|
645 |
break;
|
|
|
646 |
|
| 10689 |
manish.sha |
647 |
}
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public Object getFieldValue(_Fields field) {
|
|
|
651 |
switch (field) {
|
|
|
652 |
case ITEM_ID:
|
|
|
653 |
return Long.valueOf(getItemId());
|
|
|
654 |
|
|
|
655 |
case PURCHASE_ID:
|
|
|
656 |
return Long.valueOf(getPurchaseId());
|
|
|
657 |
|
|
|
658 |
case PURCHASE_DATE:
|
|
|
659 |
return Long.valueOf(getPurchaseDate());
|
|
|
660 |
|
|
|
661 |
case QUANTITY:
|
|
|
662 |
return Long.valueOf(getQuantity());
|
|
|
663 |
|
|
|
664 |
case UNIT_PRICE:
|
|
|
665 |
return Double.valueOf(getUnitPrice());
|
|
|
666 |
|
| 12357 |
manish.sha |
667 |
case NLC:
|
|
|
668 |
return Double.valueOf(getNlc());
|
|
|
669 |
|
| 10689 |
manish.sha |
670 |
case BRAND:
|
|
|
671 |
return getBrand();
|
|
|
672 |
|
|
|
673 |
case MODEL_NAME:
|
|
|
674 |
return getModelName();
|
|
|
675 |
|
|
|
676 |
case MODEL_NUMBER:
|
|
|
677 |
return getModelNumber();
|
|
|
678 |
|
|
|
679 |
case CATEGORY:
|
|
|
680 |
return getCategory();
|
|
|
681 |
|
|
|
682 |
case COLOR:
|
|
|
683 |
return getColor();
|
|
|
684 |
|
| 12357 |
manish.sha |
685 |
case TAX_TYPE:
|
|
|
686 |
return getTaxType();
|
|
|
687 |
|
| 10689 |
manish.sha |
688 |
}
|
|
|
689 |
throw new IllegalStateException();
|
|
|
690 |
}
|
|
|
691 |
|
|
|
692 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
693 |
public boolean isSet(_Fields field) {
|
|
|
694 |
if (field == null) {
|
|
|
695 |
throw new IllegalArgumentException();
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
switch (field) {
|
|
|
699 |
case ITEM_ID:
|
|
|
700 |
return isSetItemId();
|
|
|
701 |
case PURCHASE_ID:
|
|
|
702 |
return isSetPurchaseId();
|
|
|
703 |
case PURCHASE_DATE:
|
|
|
704 |
return isSetPurchaseDate();
|
|
|
705 |
case QUANTITY:
|
|
|
706 |
return isSetQuantity();
|
|
|
707 |
case UNIT_PRICE:
|
|
|
708 |
return isSetUnitPrice();
|
| 12357 |
manish.sha |
709 |
case NLC:
|
|
|
710 |
return isSetNlc();
|
| 10689 |
manish.sha |
711 |
case BRAND:
|
|
|
712 |
return isSetBrand();
|
|
|
713 |
case MODEL_NAME:
|
|
|
714 |
return isSetModelName();
|
|
|
715 |
case MODEL_NUMBER:
|
|
|
716 |
return isSetModelNumber();
|
|
|
717 |
case CATEGORY:
|
|
|
718 |
return isSetCategory();
|
|
|
719 |
case COLOR:
|
|
|
720 |
return isSetColor();
|
| 12357 |
manish.sha |
721 |
case TAX_TYPE:
|
|
|
722 |
return isSetTaxType();
|
| 10689 |
manish.sha |
723 |
}
|
|
|
724 |
throw new IllegalStateException();
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
@Override
|
|
|
728 |
public boolean equals(Object that) {
|
|
|
729 |
if (that == null)
|
|
|
730 |
return false;
|
|
|
731 |
if (that instanceof AmazonTransferredSkuDetail)
|
|
|
732 |
return this.equals((AmazonTransferredSkuDetail)that);
|
|
|
733 |
return false;
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public boolean equals(AmazonTransferredSkuDetail that) {
|
|
|
737 |
if (that == null)
|
|
|
738 |
return false;
|
|
|
739 |
|
|
|
740 |
boolean this_present_itemId = true;
|
|
|
741 |
boolean that_present_itemId = true;
|
|
|
742 |
if (this_present_itemId || that_present_itemId) {
|
|
|
743 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
744 |
return false;
|
|
|
745 |
if (this.itemId != that.itemId)
|
|
|
746 |
return false;
|
|
|
747 |
}
|
|
|
748 |
|
|
|
749 |
boolean this_present_purchaseId = true;
|
|
|
750 |
boolean that_present_purchaseId = true;
|
|
|
751 |
if (this_present_purchaseId || that_present_purchaseId) {
|
|
|
752 |
if (!(this_present_purchaseId && that_present_purchaseId))
|
|
|
753 |
return false;
|
|
|
754 |
if (this.purchaseId != that.purchaseId)
|
|
|
755 |
return false;
|
|
|
756 |
}
|
|
|
757 |
|
|
|
758 |
boolean this_present_purchaseDate = true;
|
|
|
759 |
boolean that_present_purchaseDate = true;
|
|
|
760 |
if (this_present_purchaseDate || that_present_purchaseDate) {
|
|
|
761 |
if (!(this_present_purchaseDate && that_present_purchaseDate))
|
|
|
762 |
return false;
|
|
|
763 |
if (this.purchaseDate != that.purchaseDate)
|
|
|
764 |
return false;
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
boolean this_present_quantity = true;
|
|
|
768 |
boolean that_present_quantity = true;
|
|
|
769 |
if (this_present_quantity || that_present_quantity) {
|
|
|
770 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
771 |
return false;
|
|
|
772 |
if (this.quantity != that.quantity)
|
|
|
773 |
return false;
|
|
|
774 |
}
|
|
|
775 |
|
|
|
776 |
boolean this_present_unitPrice = true;
|
|
|
777 |
boolean that_present_unitPrice = true;
|
|
|
778 |
if (this_present_unitPrice || that_present_unitPrice) {
|
|
|
779 |
if (!(this_present_unitPrice && that_present_unitPrice))
|
|
|
780 |
return false;
|
|
|
781 |
if (this.unitPrice != that.unitPrice)
|
|
|
782 |
return false;
|
|
|
783 |
}
|
|
|
784 |
|
| 12357 |
manish.sha |
785 |
boolean this_present_nlc = true;
|
|
|
786 |
boolean that_present_nlc = true;
|
|
|
787 |
if (this_present_nlc || that_present_nlc) {
|
|
|
788 |
if (!(this_present_nlc && that_present_nlc))
|
|
|
789 |
return false;
|
|
|
790 |
if (this.nlc != that.nlc)
|
|
|
791 |
return false;
|
|
|
792 |
}
|
|
|
793 |
|
| 10689 |
manish.sha |
794 |
boolean this_present_brand = true && this.isSetBrand();
|
|
|
795 |
boolean that_present_brand = true && that.isSetBrand();
|
|
|
796 |
if (this_present_brand || that_present_brand) {
|
|
|
797 |
if (!(this_present_brand && that_present_brand))
|
|
|
798 |
return false;
|
|
|
799 |
if (!this.brand.equals(that.brand))
|
|
|
800 |
return false;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
boolean this_present_modelName = true && this.isSetModelName();
|
|
|
804 |
boolean that_present_modelName = true && that.isSetModelName();
|
|
|
805 |
if (this_present_modelName || that_present_modelName) {
|
|
|
806 |
if (!(this_present_modelName && that_present_modelName))
|
|
|
807 |
return false;
|
|
|
808 |
if (!this.modelName.equals(that.modelName))
|
|
|
809 |
return false;
|
|
|
810 |
}
|
|
|
811 |
|
|
|
812 |
boolean this_present_modelNumber = true && this.isSetModelNumber();
|
|
|
813 |
boolean that_present_modelNumber = true && that.isSetModelNumber();
|
|
|
814 |
if (this_present_modelNumber || that_present_modelNumber) {
|
|
|
815 |
if (!(this_present_modelNumber && that_present_modelNumber))
|
|
|
816 |
return false;
|
|
|
817 |
if (!this.modelNumber.equals(that.modelNumber))
|
|
|
818 |
return false;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
boolean this_present_category = true && this.isSetCategory();
|
|
|
822 |
boolean that_present_category = true && that.isSetCategory();
|
|
|
823 |
if (this_present_category || that_present_category) {
|
|
|
824 |
if (!(this_present_category && that_present_category))
|
|
|
825 |
return false;
|
|
|
826 |
if (!this.category.equals(that.category))
|
|
|
827 |
return false;
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
boolean this_present_color = true && this.isSetColor();
|
|
|
831 |
boolean that_present_color = true && that.isSetColor();
|
|
|
832 |
if (this_present_color || that_present_color) {
|
|
|
833 |
if (!(this_present_color && that_present_color))
|
|
|
834 |
return false;
|
|
|
835 |
if (!this.color.equals(that.color))
|
|
|
836 |
return false;
|
|
|
837 |
}
|
|
|
838 |
|
| 12357 |
manish.sha |
839 |
boolean this_present_taxType = true && this.isSetTaxType();
|
|
|
840 |
boolean that_present_taxType = true && that.isSetTaxType();
|
|
|
841 |
if (this_present_taxType || that_present_taxType) {
|
|
|
842 |
if (!(this_present_taxType && that_present_taxType))
|
|
|
843 |
return false;
|
|
|
844 |
if (!this.taxType.equals(that.taxType))
|
|
|
845 |
return false;
|
|
|
846 |
}
|
|
|
847 |
|
| 10689 |
manish.sha |
848 |
return true;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
@Override
|
|
|
852 |
public int hashCode() {
|
|
|
853 |
return 0;
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
public int compareTo(AmazonTransferredSkuDetail other) {
|
|
|
857 |
if (!getClass().equals(other.getClass())) {
|
|
|
858 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
int lastComparison = 0;
|
|
|
862 |
AmazonTransferredSkuDetail typedOther = (AmazonTransferredSkuDetail)other;
|
|
|
863 |
|
|
|
864 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
865 |
if (lastComparison != 0) {
|
|
|
866 |
return lastComparison;
|
|
|
867 |
}
|
|
|
868 |
if (isSetItemId()) {
|
|
|
869 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
870 |
if (lastComparison != 0) {
|
|
|
871 |
return lastComparison;
|
|
|
872 |
}
|
|
|
873 |
}
|
|
|
874 |
lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
|
|
|
875 |
if (lastComparison != 0) {
|
|
|
876 |
return lastComparison;
|
|
|
877 |
}
|
|
|
878 |
if (isSetPurchaseId()) {
|
|
|
879 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
|
|
|
880 |
if (lastComparison != 0) {
|
|
|
881 |
return lastComparison;
|
|
|
882 |
}
|
|
|
883 |
}
|
|
|
884 |
lastComparison = Boolean.valueOf(isSetPurchaseDate()).compareTo(typedOther.isSetPurchaseDate());
|
|
|
885 |
if (lastComparison != 0) {
|
|
|
886 |
return lastComparison;
|
|
|
887 |
}
|
|
|
888 |
if (isSetPurchaseDate()) {
|
|
|
889 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseDate, typedOther.purchaseDate);
|
|
|
890 |
if (lastComparison != 0) {
|
|
|
891 |
return lastComparison;
|
|
|
892 |
}
|
|
|
893 |
}
|
|
|
894 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
895 |
if (lastComparison != 0) {
|
|
|
896 |
return lastComparison;
|
|
|
897 |
}
|
|
|
898 |
if (isSetQuantity()) {
|
|
|
899 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
900 |
if (lastComparison != 0) {
|
|
|
901 |
return lastComparison;
|
|
|
902 |
}
|
|
|
903 |
}
|
|
|
904 |
lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
|
|
|
905 |
if (lastComparison != 0) {
|
|
|
906 |
return lastComparison;
|
|
|
907 |
}
|
|
|
908 |
if (isSetUnitPrice()) {
|
|
|
909 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
|
|
|
910 |
if (lastComparison != 0) {
|
|
|
911 |
return lastComparison;
|
|
|
912 |
}
|
|
|
913 |
}
|
| 12357 |
manish.sha |
914 |
lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
|
|
|
915 |
if (lastComparison != 0) {
|
|
|
916 |
return lastComparison;
|
|
|
917 |
}
|
|
|
918 |
if (isSetNlc()) {
|
|
|
919 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
|
|
|
920 |
if (lastComparison != 0) {
|
|
|
921 |
return lastComparison;
|
|
|
922 |
}
|
|
|
923 |
}
|
| 10689 |
manish.sha |
924 |
lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
|
|
|
925 |
if (lastComparison != 0) {
|
|
|
926 |
return lastComparison;
|
|
|
927 |
}
|
|
|
928 |
if (isSetBrand()) {
|
|
|
929 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
|
|
|
930 |
if (lastComparison != 0) {
|
|
|
931 |
return lastComparison;
|
|
|
932 |
}
|
|
|
933 |
}
|
|
|
934 |
lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
|
|
|
935 |
if (lastComparison != 0) {
|
|
|
936 |
return lastComparison;
|
|
|
937 |
}
|
|
|
938 |
if (isSetModelName()) {
|
|
|
939 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
|
|
|
940 |
if (lastComparison != 0) {
|
|
|
941 |
return lastComparison;
|
|
|
942 |
}
|
|
|
943 |
}
|
|
|
944 |
lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
|
|
|
945 |
if (lastComparison != 0) {
|
|
|
946 |
return lastComparison;
|
|
|
947 |
}
|
|
|
948 |
if (isSetModelNumber()) {
|
|
|
949 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
|
|
|
950 |
if (lastComparison != 0) {
|
|
|
951 |
return lastComparison;
|
|
|
952 |
}
|
|
|
953 |
}
|
|
|
954 |
lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
|
|
|
955 |
if (lastComparison != 0) {
|
|
|
956 |
return lastComparison;
|
|
|
957 |
}
|
|
|
958 |
if (isSetCategory()) {
|
|
|
959 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
|
|
|
960 |
if (lastComparison != 0) {
|
|
|
961 |
return lastComparison;
|
|
|
962 |
}
|
|
|
963 |
}
|
|
|
964 |
lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
|
|
|
965 |
if (lastComparison != 0) {
|
|
|
966 |
return lastComparison;
|
|
|
967 |
}
|
|
|
968 |
if (isSetColor()) {
|
|
|
969 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
|
|
|
970 |
if (lastComparison != 0) {
|
|
|
971 |
return lastComparison;
|
|
|
972 |
}
|
|
|
973 |
}
|
| 12357 |
manish.sha |
974 |
lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());
|
|
|
975 |
if (lastComparison != 0) {
|
|
|
976 |
return lastComparison;
|
|
|
977 |
}
|
|
|
978 |
if (isSetTaxType()) {
|
|
|
979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
|
|
|
980 |
if (lastComparison != 0) {
|
|
|
981 |
return lastComparison;
|
|
|
982 |
}
|
|
|
983 |
}
|
| 10689 |
manish.sha |
984 |
return 0;
|
|
|
985 |
}
|
|
|
986 |
|
|
|
987 |
public _Fields fieldForId(int fieldId) {
|
|
|
988 |
return _Fields.findByThriftId(fieldId);
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
992 |
org.apache.thrift.protocol.TField field;
|
|
|
993 |
iprot.readStructBegin();
|
|
|
994 |
while (true)
|
|
|
995 |
{
|
|
|
996 |
field = iprot.readFieldBegin();
|
|
|
997 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
998 |
break;
|
|
|
999 |
}
|
|
|
1000 |
switch (field.id) {
|
|
|
1001 |
case 1: // ITEM_ID
|
|
|
1002 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1003 |
this.itemId = iprot.readI64();
|
|
|
1004 |
setItemIdIsSet(true);
|
|
|
1005 |
} else {
|
|
|
1006 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1007 |
}
|
|
|
1008 |
break;
|
|
|
1009 |
case 2: // PURCHASE_ID
|
|
|
1010 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1011 |
this.purchaseId = iprot.readI64();
|
|
|
1012 |
setPurchaseIdIsSet(true);
|
|
|
1013 |
} else {
|
|
|
1014 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1015 |
}
|
|
|
1016 |
break;
|
|
|
1017 |
case 3: // PURCHASE_DATE
|
|
|
1018 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1019 |
this.purchaseDate = iprot.readI64();
|
|
|
1020 |
setPurchaseDateIsSet(true);
|
|
|
1021 |
} else {
|
|
|
1022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1023 |
}
|
|
|
1024 |
break;
|
|
|
1025 |
case 4: // QUANTITY
|
|
|
1026 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1027 |
this.quantity = iprot.readI64();
|
|
|
1028 |
setQuantityIsSet(true);
|
|
|
1029 |
} else {
|
|
|
1030 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1031 |
}
|
|
|
1032 |
break;
|
|
|
1033 |
case 5: // UNIT_PRICE
|
|
|
1034 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1035 |
this.unitPrice = iprot.readDouble();
|
|
|
1036 |
setUnitPriceIsSet(true);
|
|
|
1037 |
} else {
|
|
|
1038 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1039 |
}
|
|
|
1040 |
break;
|
| 12357 |
manish.sha |
1041 |
case 6: // NLC
|
|
|
1042 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1043 |
this.nlc = iprot.readDouble();
|
|
|
1044 |
setNlcIsSet(true);
|
|
|
1045 |
} else {
|
|
|
1046 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1047 |
}
|
|
|
1048 |
break;
|
|
|
1049 |
case 7: // BRAND
|
| 10689 |
manish.sha |
1050 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1051 |
this.brand = iprot.readString();
|
|
|
1052 |
} else {
|
|
|
1053 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1054 |
}
|
|
|
1055 |
break;
|
| 12357 |
manish.sha |
1056 |
case 8: // MODEL_NAME
|
| 10689 |
manish.sha |
1057 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1058 |
this.modelName = iprot.readString();
|
|
|
1059 |
} else {
|
|
|
1060 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1061 |
}
|
|
|
1062 |
break;
|
| 12357 |
manish.sha |
1063 |
case 9: // MODEL_NUMBER
|
| 10689 |
manish.sha |
1064 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1065 |
this.modelNumber = iprot.readString();
|
|
|
1066 |
} else {
|
|
|
1067 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1068 |
}
|
|
|
1069 |
break;
|
| 12357 |
manish.sha |
1070 |
case 10: // CATEGORY
|
| 10689 |
manish.sha |
1071 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1072 |
this.category = iprot.readString();
|
|
|
1073 |
} else {
|
|
|
1074 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1075 |
}
|
|
|
1076 |
break;
|
| 12357 |
manish.sha |
1077 |
case 11: // COLOR
|
| 10689 |
manish.sha |
1078 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1079 |
this.color = iprot.readString();
|
|
|
1080 |
} else {
|
|
|
1081 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1082 |
}
|
|
|
1083 |
break;
|
| 12357 |
manish.sha |
1084 |
case 12: // TAX_TYPE
|
|
|
1085 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1086 |
this.taxType = iprot.readString();
|
|
|
1087 |
} else {
|
|
|
1088 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1089 |
}
|
|
|
1090 |
break;
|
| 10689 |
manish.sha |
1091 |
default:
|
|
|
1092 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1093 |
}
|
|
|
1094 |
iprot.readFieldEnd();
|
|
|
1095 |
}
|
|
|
1096 |
iprot.readStructEnd();
|
|
|
1097 |
validate();
|
|
|
1098 |
}
|
|
|
1099 |
|
|
|
1100 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1101 |
validate();
|
|
|
1102 |
|
|
|
1103 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1104 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
1105 |
oprot.writeI64(this.itemId);
|
|
|
1106 |
oprot.writeFieldEnd();
|
|
|
1107 |
oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
|
|
|
1108 |
oprot.writeI64(this.purchaseId);
|
|
|
1109 |
oprot.writeFieldEnd();
|
|
|
1110 |
oprot.writeFieldBegin(PURCHASE_DATE_FIELD_DESC);
|
|
|
1111 |
oprot.writeI64(this.purchaseDate);
|
|
|
1112 |
oprot.writeFieldEnd();
|
|
|
1113 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
1114 |
oprot.writeI64(this.quantity);
|
|
|
1115 |
oprot.writeFieldEnd();
|
|
|
1116 |
oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
|
|
|
1117 |
oprot.writeDouble(this.unitPrice);
|
|
|
1118 |
oprot.writeFieldEnd();
|
| 12357 |
manish.sha |
1119 |
oprot.writeFieldBegin(NLC_FIELD_DESC);
|
|
|
1120 |
oprot.writeDouble(this.nlc);
|
|
|
1121 |
oprot.writeFieldEnd();
|
| 10689 |
manish.sha |
1122 |
if (this.brand != null) {
|
|
|
1123 |
oprot.writeFieldBegin(BRAND_FIELD_DESC);
|
|
|
1124 |
oprot.writeString(this.brand);
|
|
|
1125 |
oprot.writeFieldEnd();
|
|
|
1126 |
}
|
|
|
1127 |
if (this.modelName != null) {
|
|
|
1128 |
oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
|
|
|
1129 |
oprot.writeString(this.modelName);
|
|
|
1130 |
oprot.writeFieldEnd();
|
|
|
1131 |
}
|
|
|
1132 |
if (this.modelNumber != null) {
|
|
|
1133 |
oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
|
|
|
1134 |
oprot.writeString(this.modelNumber);
|
|
|
1135 |
oprot.writeFieldEnd();
|
|
|
1136 |
}
|
|
|
1137 |
if (this.category != null) {
|
|
|
1138 |
oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
|
|
|
1139 |
oprot.writeString(this.category);
|
|
|
1140 |
oprot.writeFieldEnd();
|
|
|
1141 |
}
|
|
|
1142 |
if (this.color != null) {
|
|
|
1143 |
oprot.writeFieldBegin(COLOR_FIELD_DESC);
|
|
|
1144 |
oprot.writeString(this.color);
|
|
|
1145 |
oprot.writeFieldEnd();
|
|
|
1146 |
}
|
| 12357 |
manish.sha |
1147 |
if (this.taxType != null) {
|
|
|
1148 |
oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
|
|
|
1149 |
oprot.writeString(this.taxType);
|
|
|
1150 |
oprot.writeFieldEnd();
|
|
|
1151 |
}
|
| 10689 |
manish.sha |
1152 |
oprot.writeFieldStop();
|
|
|
1153 |
oprot.writeStructEnd();
|
|
|
1154 |
}
|
|
|
1155 |
|
|
|
1156 |
@Override
|
|
|
1157 |
public String toString() {
|
|
|
1158 |
StringBuilder sb = new StringBuilder("AmazonTransferredSkuDetail(");
|
|
|
1159 |
boolean first = true;
|
|
|
1160 |
|
|
|
1161 |
sb.append("itemId:");
|
|
|
1162 |
sb.append(this.itemId);
|
|
|
1163 |
first = false;
|
|
|
1164 |
if (!first) sb.append(", ");
|
|
|
1165 |
sb.append("purchaseId:");
|
|
|
1166 |
sb.append(this.purchaseId);
|
|
|
1167 |
first = false;
|
|
|
1168 |
if (!first) sb.append(", ");
|
|
|
1169 |
sb.append("purchaseDate:");
|
|
|
1170 |
sb.append(this.purchaseDate);
|
|
|
1171 |
first = false;
|
|
|
1172 |
if (!first) sb.append(", ");
|
|
|
1173 |
sb.append("quantity:");
|
|
|
1174 |
sb.append(this.quantity);
|
|
|
1175 |
first = false;
|
|
|
1176 |
if (!first) sb.append(", ");
|
|
|
1177 |
sb.append("unitPrice:");
|
|
|
1178 |
sb.append(this.unitPrice);
|
|
|
1179 |
first = false;
|
|
|
1180 |
if (!first) sb.append(", ");
|
| 12357 |
manish.sha |
1181 |
sb.append("nlc:");
|
|
|
1182 |
sb.append(this.nlc);
|
|
|
1183 |
first = false;
|
|
|
1184 |
if (!first) sb.append(", ");
|
| 10689 |
manish.sha |
1185 |
sb.append("brand:");
|
|
|
1186 |
if (this.brand == null) {
|
|
|
1187 |
sb.append("null");
|
|
|
1188 |
} else {
|
|
|
1189 |
sb.append(this.brand);
|
|
|
1190 |
}
|
|
|
1191 |
first = false;
|
|
|
1192 |
if (!first) sb.append(", ");
|
|
|
1193 |
sb.append("modelName:");
|
|
|
1194 |
if (this.modelName == null) {
|
|
|
1195 |
sb.append("null");
|
|
|
1196 |
} else {
|
|
|
1197 |
sb.append(this.modelName);
|
|
|
1198 |
}
|
|
|
1199 |
first = false;
|
|
|
1200 |
if (!first) sb.append(", ");
|
|
|
1201 |
sb.append("modelNumber:");
|
|
|
1202 |
if (this.modelNumber == null) {
|
|
|
1203 |
sb.append("null");
|
|
|
1204 |
} else {
|
|
|
1205 |
sb.append(this.modelNumber);
|
|
|
1206 |
}
|
|
|
1207 |
first = false;
|
|
|
1208 |
if (!first) sb.append(", ");
|
|
|
1209 |
sb.append("category:");
|
|
|
1210 |
if (this.category == null) {
|
|
|
1211 |
sb.append("null");
|
|
|
1212 |
} else {
|
|
|
1213 |
sb.append(this.category);
|
|
|
1214 |
}
|
|
|
1215 |
first = false;
|
|
|
1216 |
if (!first) sb.append(", ");
|
|
|
1217 |
sb.append("color:");
|
|
|
1218 |
if (this.color == null) {
|
|
|
1219 |
sb.append("null");
|
|
|
1220 |
} else {
|
|
|
1221 |
sb.append(this.color);
|
|
|
1222 |
}
|
|
|
1223 |
first = false;
|
| 12357 |
manish.sha |
1224 |
if (!first) sb.append(", ");
|
|
|
1225 |
sb.append("taxType:");
|
|
|
1226 |
if (this.taxType == null) {
|
|
|
1227 |
sb.append("null");
|
|
|
1228 |
} else {
|
|
|
1229 |
sb.append(this.taxType);
|
|
|
1230 |
}
|
|
|
1231 |
first = false;
|
| 10689 |
manish.sha |
1232 |
sb.append(")");
|
|
|
1233 |
return sb.toString();
|
|
|
1234 |
}
|
|
|
1235 |
|
|
|
1236 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1237 |
// check for required fields
|
|
|
1238 |
}
|
|
|
1239 |
|
|
|
1240 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1241 |
try {
|
|
|
1242 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1243 |
} catch (org.apache.thrift.TException te) {
|
|
|
1244 |
throw new java.io.IOException(te);
|
|
|
1245 |
}
|
|
|
1246 |
}
|
|
|
1247 |
|
|
|
1248 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1249 |
try {
|
|
|
1250 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1251 |
__isset_bit_vector = new BitSet(1);
|
|
|
1252 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1253 |
} catch (org.apache.thrift.TException te) {
|
|
|
1254 |
throw new java.io.IOException(te);
|
|
|
1255 |
}
|
|
|
1256 |
}
|
|
|
1257 |
|
|
|
1258 |
}
|
|
|
1259 |
|