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