| 9945 |
vikram.rag |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.catalog;
|
|
|
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 FlipkartItem implements org.apache.thrift.TBase<FlipkartItem, FlipkartItem._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FlipkartItem");
|
|
|
25 |
|
|
|
26 |
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)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField COMMISSION_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("commissionValue", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField SERVICE_TAX_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTaxValue", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField SKU_AT_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtFlipkart", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField IS_LISTED_ON_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnFlipkart", org.apache.thrift.protocol.TType.BOOL, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)10);
|
| 10097 |
kshitij.so |
36 |
private static final org.apache.thrift.protocol.TField UPDATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedBy", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField FLIPKART_SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("flipkartSerialNumber", org.apache.thrift.protocol.TType.STRING, (short)12);
|
|
|
38 |
private static final org.apache.thrift.protocol.TField MARKETPLACE_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("marketplaceItems", org.apache.thrift.protocol.TType.STRUCT, (short)13);
|
| 12133 |
kshitij.so |
39 |
private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)14);
|
| 14780 |
manish.sha |
40 |
private static final org.apache.thrift.protocol.TField IS_FA_LISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isFaListed", org.apache.thrift.protocol.TType.BOOL, (short)15);
|
| 9945 |
vikram.rag |
41 |
|
|
|
42 |
private long item_id; // required
|
|
|
43 |
private double exceptionPrice; // required
|
|
|
44 |
private long warehouseId; // required
|
|
|
45 |
private double commissionValue; // required
|
|
|
46 |
private double serviceTaxValue; // required
|
|
|
47 |
private double maxNlc; // required
|
|
|
48 |
private String skuAtFlipkart; // required
|
|
|
49 |
private boolean isListedOnFlipkart; // required
|
|
|
50 |
private boolean suppressPriceFeed; // required
|
|
|
51 |
private boolean suppressInventoryFeed; // required
|
|
|
52 |
private String updatedBy; // required
|
| 10097 |
kshitij.so |
53 |
private String flipkartSerialNumber; // required
|
|
|
54 |
private MarketplaceItems marketplaceItems; // required
|
| 12133 |
kshitij.so |
55 |
private Item item; // required
|
| 14780 |
manish.sha |
56 |
private boolean isFaListed; // required
|
| 9945 |
vikram.rag |
57 |
|
|
|
58 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
59 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
60 |
ITEM_ID((short)1, "item_id"),
|
|
|
61 |
EXCEPTION_PRICE((short)2, "exceptionPrice"),
|
|
|
62 |
WAREHOUSE_ID((short)3, "warehouseId"),
|
|
|
63 |
COMMISSION_VALUE((short)4, "commissionValue"),
|
|
|
64 |
SERVICE_TAX_VALUE((short)5, "serviceTaxValue"),
|
|
|
65 |
MAX_NLC((short)6, "maxNlc"),
|
|
|
66 |
SKU_AT_FLIPKART((short)7, "skuAtFlipkart"),
|
|
|
67 |
IS_LISTED_ON_FLIPKART((short)8, "isListedOnFlipkart"),
|
|
|
68 |
SUPPRESS_PRICE_FEED((short)9, "suppressPriceFeed"),
|
|
|
69 |
SUPPRESS_INVENTORY_FEED((short)10, "suppressInventoryFeed"),
|
| 10097 |
kshitij.so |
70 |
UPDATED_BY((short)11, "updatedBy"),
|
|
|
71 |
FLIPKART_SERIAL_NUMBER((short)12, "flipkartSerialNumber"),
|
| 12133 |
kshitij.so |
72 |
MARKETPLACE_ITEMS((short)13, "marketplaceItems"),
|
| 14780 |
manish.sha |
73 |
ITEM((short)14, "item"),
|
|
|
74 |
IS_FA_LISTED((short)15, "isFaListed");
|
| 9945 |
vikram.rag |
75 |
|
|
|
76 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
77 |
|
|
|
78 |
static {
|
|
|
79 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
80 |
byName.put(field.getFieldName(), field);
|
|
|
81 |
}
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/**
|
|
|
85 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
86 |
*/
|
|
|
87 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
88 |
switch(fieldId) {
|
|
|
89 |
case 1: // ITEM_ID
|
|
|
90 |
return ITEM_ID;
|
|
|
91 |
case 2: // EXCEPTION_PRICE
|
|
|
92 |
return EXCEPTION_PRICE;
|
|
|
93 |
case 3: // WAREHOUSE_ID
|
|
|
94 |
return WAREHOUSE_ID;
|
|
|
95 |
case 4: // COMMISSION_VALUE
|
|
|
96 |
return COMMISSION_VALUE;
|
|
|
97 |
case 5: // SERVICE_TAX_VALUE
|
|
|
98 |
return SERVICE_TAX_VALUE;
|
|
|
99 |
case 6: // MAX_NLC
|
|
|
100 |
return MAX_NLC;
|
|
|
101 |
case 7: // SKU_AT_FLIPKART
|
|
|
102 |
return SKU_AT_FLIPKART;
|
|
|
103 |
case 8: // IS_LISTED_ON_FLIPKART
|
|
|
104 |
return IS_LISTED_ON_FLIPKART;
|
|
|
105 |
case 9: // SUPPRESS_PRICE_FEED
|
|
|
106 |
return SUPPRESS_PRICE_FEED;
|
|
|
107 |
case 10: // SUPPRESS_INVENTORY_FEED
|
|
|
108 |
return SUPPRESS_INVENTORY_FEED;
|
| 10097 |
kshitij.so |
109 |
case 11: // UPDATED_BY
|
| 9945 |
vikram.rag |
110 |
return UPDATED_BY;
|
| 10097 |
kshitij.so |
111 |
case 12: // FLIPKART_SERIAL_NUMBER
|
|
|
112 |
return FLIPKART_SERIAL_NUMBER;
|
|
|
113 |
case 13: // MARKETPLACE_ITEMS
|
|
|
114 |
return MARKETPLACE_ITEMS;
|
| 12133 |
kshitij.so |
115 |
case 14: // ITEM
|
|
|
116 |
return ITEM;
|
| 14780 |
manish.sha |
117 |
case 15: // IS_FA_LISTED
|
|
|
118 |
return IS_FA_LISTED;
|
| 9945 |
vikram.rag |
119 |
default:
|
|
|
120 |
return null;
|
|
|
121 |
}
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
/**
|
|
|
125 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
126 |
* if it is not found.
|
|
|
127 |
*/
|
|
|
128 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
129 |
_Fields fields = findByThriftId(fieldId);
|
|
|
130 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
131 |
return fields;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
/**
|
|
|
135 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
136 |
*/
|
|
|
137 |
public static _Fields findByName(String name) {
|
|
|
138 |
return byName.get(name);
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
private final short _thriftId;
|
|
|
142 |
private final String _fieldName;
|
|
|
143 |
|
|
|
144 |
_Fields(short thriftId, String fieldName) {
|
|
|
145 |
_thriftId = thriftId;
|
|
|
146 |
_fieldName = fieldName;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
public short getThriftFieldId() {
|
|
|
150 |
return _thriftId;
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
public String getFieldName() {
|
|
|
154 |
return _fieldName;
|
|
|
155 |
}
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
// isset id assignments
|
|
|
159 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
160 |
private static final int __EXCEPTIONPRICE_ISSET_ID = 1;
|
|
|
161 |
private static final int __WAREHOUSEID_ISSET_ID = 2;
|
|
|
162 |
private static final int __COMMISSIONVALUE_ISSET_ID = 3;
|
|
|
163 |
private static final int __SERVICETAXVALUE_ISSET_ID = 4;
|
|
|
164 |
private static final int __MAXNLC_ISSET_ID = 5;
|
|
|
165 |
private static final int __ISLISTEDONFLIPKART_ISSET_ID = 6;
|
|
|
166 |
private static final int __SUPPRESSPRICEFEED_ISSET_ID = 7;
|
|
|
167 |
private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 8;
|
| 14780 |
manish.sha |
168 |
private static final int __ISFALISTED_ISSET_ID = 9;
|
|
|
169 |
private BitSet __isset_bit_vector = new BitSet(10);
|
| 9945 |
vikram.rag |
170 |
|
|
|
171 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
172 |
static {
|
|
|
173 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
174 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
176 |
tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
177 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
178 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
179 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
180 |
tmpMap.put(_Fields.COMMISSION_VALUE, new org.apache.thrift.meta_data.FieldMetaData("commissionValue", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
182 |
tmpMap.put(_Fields.SERVICE_TAX_VALUE, new org.apache.thrift.meta_data.FieldMetaData("serviceTaxValue", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
184 |
tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
186 |
tmpMap.put(_Fields.SKU_AT_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("skuAtFlipkart", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
188 |
tmpMap.put(_Fields.IS_LISTED_ON_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("isListedOnFlipkart", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
189 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
190 |
tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
192 |
tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
193 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
194 |
tmpMap.put(_Fields.UPDATED_BY, new org.apache.thrift.meta_data.FieldMetaData("updatedBy", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
195 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 10097 |
kshitij.so |
196 |
tmpMap.put(_Fields.FLIPKART_SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("flipkartSerialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
197 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
198 |
tmpMap.put(_Fields.MARKETPLACE_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("marketplaceItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
199 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));
|
| 12133 |
kshitij.so |
200 |
tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
201 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
|
| 14780 |
manish.sha |
202 |
tmpMap.put(_Fields.IS_FA_LISTED, new org.apache.thrift.meta_data.FieldMetaData("isFaListed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
203 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 9945 |
vikram.rag |
204 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
205 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FlipkartItem.class, metaDataMap);
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
public FlipkartItem() {
|
|
|
209 |
}
|
|
|
210 |
|
|
|
211 |
public FlipkartItem(
|
|
|
212 |
long item_id,
|
|
|
213 |
double exceptionPrice,
|
|
|
214 |
long warehouseId,
|
|
|
215 |
double commissionValue,
|
|
|
216 |
double serviceTaxValue,
|
|
|
217 |
double maxNlc,
|
|
|
218 |
String skuAtFlipkart,
|
|
|
219 |
boolean isListedOnFlipkart,
|
|
|
220 |
boolean suppressPriceFeed,
|
|
|
221 |
boolean suppressInventoryFeed,
|
| 10097 |
kshitij.so |
222 |
String updatedBy,
|
|
|
223 |
String flipkartSerialNumber,
|
| 12133 |
kshitij.so |
224 |
MarketplaceItems marketplaceItems,
|
| 14780 |
manish.sha |
225 |
Item item,
|
|
|
226 |
boolean isFaListed)
|
| 9945 |
vikram.rag |
227 |
{
|
|
|
228 |
this();
|
|
|
229 |
this.item_id = item_id;
|
|
|
230 |
setItem_idIsSet(true);
|
|
|
231 |
this.exceptionPrice = exceptionPrice;
|
|
|
232 |
setExceptionPriceIsSet(true);
|
|
|
233 |
this.warehouseId = warehouseId;
|
|
|
234 |
setWarehouseIdIsSet(true);
|
|
|
235 |
this.commissionValue = commissionValue;
|
|
|
236 |
setCommissionValueIsSet(true);
|
|
|
237 |
this.serviceTaxValue = serviceTaxValue;
|
|
|
238 |
setServiceTaxValueIsSet(true);
|
|
|
239 |
this.maxNlc = maxNlc;
|
|
|
240 |
setMaxNlcIsSet(true);
|
|
|
241 |
this.skuAtFlipkart = skuAtFlipkart;
|
|
|
242 |
this.isListedOnFlipkart = isListedOnFlipkart;
|
|
|
243 |
setIsListedOnFlipkartIsSet(true);
|
|
|
244 |
this.suppressPriceFeed = suppressPriceFeed;
|
|
|
245 |
setSuppressPriceFeedIsSet(true);
|
|
|
246 |
this.suppressInventoryFeed = suppressInventoryFeed;
|
|
|
247 |
setSuppressInventoryFeedIsSet(true);
|
|
|
248 |
this.updatedBy = updatedBy;
|
| 10097 |
kshitij.so |
249 |
this.flipkartSerialNumber = flipkartSerialNumber;
|
|
|
250 |
this.marketplaceItems = marketplaceItems;
|
| 12133 |
kshitij.so |
251 |
this.item = item;
|
| 14780 |
manish.sha |
252 |
this.isFaListed = isFaListed;
|
|
|
253 |
setIsFaListedIsSet(true);
|
| 9945 |
vikram.rag |
254 |
}
|
|
|
255 |
|
|
|
256 |
/**
|
|
|
257 |
* Performs a deep copy on <i>other</i>.
|
|
|
258 |
*/
|
|
|
259 |
public FlipkartItem(FlipkartItem other) {
|
|
|
260 |
__isset_bit_vector.clear();
|
|
|
261 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
262 |
this.item_id = other.item_id;
|
|
|
263 |
this.exceptionPrice = other.exceptionPrice;
|
|
|
264 |
this.warehouseId = other.warehouseId;
|
|
|
265 |
this.commissionValue = other.commissionValue;
|
|
|
266 |
this.serviceTaxValue = other.serviceTaxValue;
|
|
|
267 |
this.maxNlc = other.maxNlc;
|
|
|
268 |
if (other.isSetSkuAtFlipkart()) {
|
|
|
269 |
this.skuAtFlipkart = other.skuAtFlipkart;
|
|
|
270 |
}
|
|
|
271 |
this.isListedOnFlipkart = other.isListedOnFlipkart;
|
|
|
272 |
this.suppressPriceFeed = other.suppressPriceFeed;
|
|
|
273 |
this.suppressInventoryFeed = other.suppressInventoryFeed;
|
|
|
274 |
if (other.isSetUpdatedBy()) {
|
|
|
275 |
this.updatedBy = other.updatedBy;
|
|
|
276 |
}
|
| 10097 |
kshitij.so |
277 |
if (other.isSetFlipkartSerialNumber()) {
|
|
|
278 |
this.flipkartSerialNumber = other.flipkartSerialNumber;
|
|
|
279 |
}
|
|
|
280 |
if (other.isSetMarketplaceItems()) {
|
|
|
281 |
this.marketplaceItems = new MarketplaceItems(other.marketplaceItems);
|
|
|
282 |
}
|
| 12133 |
kshitij.so |
283 |
if (other.isSetItem()) {
|
|
|
284 |
this.item = new Item(other.item);
|
|
|
285 |
}
|
| 14780 |
manish.sha |
286 |
this.isFaListed = other.isFaListed;
|
| 9945 |
vikram.rag |
287 |
}
|
|
|
288 |
|
|
|
289 |
public FlipkartItem deepCopy() {
|
|
|
290 |
return new FlipkartItem(this);
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
@Override
|
|
|
294 |
public void clear() {
|
|
|
295 |
setItem_idIsSet(false);
|
|
|
296 |
this.item_id = 0;
|
|
|
297 |
setExceptionPriceIsSet(false);
|
|
|
298 |
this.exceptionPrice = 0.0;
|
|
|
299 |
setWarehouseIdIsSet(false);
|
|
|
300 |
this.warehouseId = 0;
|
|
|
301 |
setCommissionValueIsSet(false);
|
|
|
302 |
this.commissionValue = 0.0;
|
|
|
303 |
setServiceTaxValueIsSet(false);
|
|
|
304 |
this.serviceTaxValue = 0.0;
|
|
|
305 |
setMaxNlcIsSet(false);
|
|
|
306 |
this.maxNlc = 0.0;
|
|
|
307 |
this.skuAtFlipkart = null;
|
|
|
308 |
setIsListedOnFlipkartIsSet(false);
|
|
|
309 |
this.isListedOnFlipkart = false;
|
|
|
310 |
setSuppressPriceFeedIsSet(false);
|
|
|
311 |
this.suppressPriceFeed = false;
|
|
|
312 |
setSuppressInventoryFeedIsSet(false);
|
|
|
313 |
this.suppressInventoryFeed = false;
|
|
|
314 |
this.updatedBy = null;
|
| 10097 |
kshitij.so |
315 |
this.flipkartSerialNumber = null;
|
|
|
316 |
this.marketplaceItems = null;
|
| 12133 |
kshitij.so |
317 |
this.item = null;
|
| 14780 |
manish.sha |
318 |
setIsFaListedIsSet(false);
|
|
|
319 |
this.isFaListed = false;
|
| 9945 |
vikram.rag |
320 |
}
|
|
|
321 |
|
|
|
322 |
public long getItem_id() {
|
|
|
323 |
return this.item_id;
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void setItem_id(long item_id) {
|
|
|
327 |
this.item_id = item_id;
|
|
|
328 |
setItem_idIsSet(true);
|
|
|
329 |
}
|
|
|
330 |
|
|
|
331 |
public void unsetItem_id() {
|
|
|
332 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
|
|
336 |
public boolean isSetItem_id() {
|
|
|
337 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public void setItem_idIsSet(boolean value) {
|
|
|
341 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public double getExceptionPrice() {
|
|
|
345 |
return this.exceptionPrice;
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void setExceptionPrice(double exceptionPrice) {
|
|
|
349 |
this.exceptionPrice = exceptionPrice;
|
|
|
350 |
setExceptionPriceIsSet(true);
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
public void unsetExceptionPrice() {
|
|
|
354 |
__isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
/** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
|
|
|
358 |
public boolean isSetExceptionPrice() {
|
|
|
359 |
return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void setExceptionPriceIsSet(boolean value) {
|
|
|
363 |
__isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
public long getWarehouseId() {
|
|
|
367 |
return this.warehouseId;
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
public void setWarehouseId(long warehouseId) {
|
|
|
371 |
this.warehouseId = warehouseId;
|
|
|
372 |
setWarehouseIdIsSet(true);
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
public void unsetWarehouseId() {
|
|
|
376 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
380 |
public boolean isSetWarehouseId() {
|
|
|
381 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
385 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
386 |
}
|
|
|
387 |
|
|
|
388 |
public double getCommissionValue() {
|
|
|
389 |
return this.commissionValue;
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
public void setCommissionValue(double commissionValue) {
|
|
|
393 |
this.commissionValue = commissionValue;
|
|
|
394 |
setCommissionValueIsSet(true);
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
public void unsetCommissionValue() {
|
|
|
398 |
__isset_bit_vector.clear(__COMMISSIONVALUE_ISSET_ID);
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
/** Returns true if field commissionValue is set (has been assigned a value) and false otherwise */
|
|
|
402 |
public boolean isSetCommissionValue() {
|
|
|
403 |
return __isset_bit_vector.get(__COMMISSIONVALUE_ISSET_ID);
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void setCommissionValueIsSet(boolean value) {
|
|
|
407 |
__isset_bit_vector.set(__COMMISSIONVALUE_ISSET_ID, value);
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
public double getServiceTaxValue() {
|
|
|
411 |
return this.serviceTaxValue;
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
public void setServiceTaxValue(double serviceTaxValue) {
|
|
|
415 |
this.serviceTaxValue = serviceTaxValue;
|
|
|
416 |
setServiceTaxValueIsSet(true);
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
public void unsetServiceTaxValue() {
|
|
|
420 |
__isset_bit_vector.clear(__SERVICETAXVALUE_ISSET_ID);
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
/** Returns true if field serviceTaxValue is set (has been assigned a value) and false otherwise */
|
|
|
424 |
public boolean isSetServiceTaxValue() {
|
|
|
425 |
return __isset_bit_vector.get(__SERVICETAXVALUE_ISSET_ID);
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void setServiceTaxValueIsSet(boolean value) {
|
|
|
429 |
__isset_bit_vector.set(__SERVICETAXVALUE_ISSET_ID, value);
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public double getMaxNlc() {
|
|
|
433 |
return this.maxNlc;
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
public void setMaxNlc(double maxNlc) {
|
|
|
437 |
this.maxNlc = maxNlc;
|
|
|
438 |
setMaxNlcIsSet(true);
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
public void unsetMaxNlc() {
|
|
|
442 |
__isset_bit_vector.clear(__MAXNLC_ISSET_ID);
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
/** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
|
|
|
446 |
public boolean isSetMaxNlc() {
|
|
|
447 |
return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void setMaxNlcIsSet(boolean value) {
|
|
|
451 |
__isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
|
|
|
452 |
}
|
|
|
453 |
|
|
|
454 |
public String getSkuAtFlipkart() {
|
|
|
455 |
return this.skuAtFlipkart;
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public void setSkuAtFlipkart(String skuAtFlipkart) {
|
|
|
459 |
this.skuAtFlipkart = skuAtFlipkart;
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
public void unsetSkuAtFlipkart() {
|
|
|
463 |
this.skuAtFlipkart = null;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
/** Returns true if field skuAtFlipkart is set (has been assigned a value) and false otherwise */
|
|
|
467 |
public boolean isSetSkuAtFlipkart() {
|
|
|
468 |
return this.skuAtFlipkart != null;
|
|
|
469 |
}
|
|
|
470 |
|
|
|
471 |
public void setSkuAtFlipkartIsSet(boolean value) {
|
|
|
472 |
if (!value) {
|
|
|
473 |
this.skuAtFlipkart = null;
|
|
|
474 |
}
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public boolean isIsListedOnFlipkart() {
|
|
|
478 |
return this.isListedOnFlipkart;
|
|
|
479 |
}
|
|
|
480 |
|
|
|
481 |
public void setIsListedOnFlipkart(boolean isListedOnFlipkart) {
|
|
|
482 |
this.isListedOnFlipkart = isListedOnFlipkart;
|
|
|
483 |
setIsListedOnFlipkartIsSet(true);
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
public void unsetIsListedOnFlipkart() {
|
|
|
487 |
__isset_bit_vector.clear(__ISLISTEDONFLIPKART_ISSET_ID);
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
/** Returns true if field isListedOnFlipkart is set (has been assigned a value) and false otherwise */
|
|
|
491 |
public boolean isSetIsListedOnFlipkart() {
|
|
|
492 |
return __isset_bit_vector.get(__ISLISTEDONFLIPKART_ISSET_ID);
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public void setIsListedOnFlipkartIsSet(boolean value) {
|
|
|
496 |
__isset_bit_vector.set(__ISLISTEDONFLIPKART_ISSET_ID, value);
|
|
|
497 |
}
|
|
|
498 |
|
|
|
499 |
public boolean isSuppressPriceFeed() {
|
|
|
500 |
return this.suppressPriceFeed;
|
|
|
501 |
}
|
|
|
502 |
|
|
|
503 |
public void setSuppressPriceFeed(boolean suppressPriceFeed) {
|
|
|
504 |
this.suppressPriceFeed = suppressPriceFeed;
|
|
|
505 |
setSuppressPriceFeedIsSet(true);
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
public void unsetSuppressPriceFeed() {
|
|
|
509 |
__isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
|
|
|
510 |
}
|
|
|
511 |
|
|
|
512 |
/** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
|
|
|
513 |
public boolean isSetSuppressPriceFeed() {
|
|
|
514 |
return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
public void setSuppressPriceFeedIsSet(boolean value) {
|
|
|
518 |
__isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
|
|
|
519 |
}
|
|
|
520 |
|
|
|
521 |
public boolean isSuppressInventoryFeed() {
|
|
|
522 |
return this.suppressInventoryFeed;
|
|
|
523 |
}
|
|
|
524 |
|
|
|
525 |
public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
|
|
|
526 |
this.suppressInventoryFeed = suppressInventoryFeed;
|
|
|
527 |
setSuppressInventoryFeedIsSet(true);
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void unsetSuppressInventoryFeed() {
|
|
|
531 |
__isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
/** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
|
|
|
535 |
public boolean isSetSuppressInventoryFeed() {
|
|
|
536 |
return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
|
|
|
537 |
}
|
|
|
538 |
|
|
|
539 |
public void setSuppressInventoryFeedIsSet(boolean value) {
|
|
|
540 |
__isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public String getUpdatedBy() {
|
|
|
544 |
return this.updatedBy;
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
public void setUpdatedBy(String updatedBy) {
|
|
|
548 |
this.updatedBy = updatedBy;
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
public void unsetUpdatedBy() {
|
|
|
552 |
this.updatedBy = null;
|
|
|
553 |
}
|
|
|
554 |
|
|
|
555 |
/** Returns true if field updatedBy is set (has been assigned a value) and false otherwise */
|
|
|
556 |
public boolean isSetUpdatedBy() {
|
|
|
557 |
return this.updatedBy != null;
|
|
|
558 |
}
|
|
|
559 |
|
|
|
560 |
public void setUpdatedByIsSet(boolean value) {
|
|
|
561 |
if (!value) {
|
|
|
562 |
this.updatedBy = null;
|
|
|
563 |
}
|
|
|
564 |
}
|
|
|
565 |
|
| 10097 |
kshitij.so |
566 |
public String getFlipkartSerialNumber() {
|
|
|
567 |
return this.flipkartSerialNumber;
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
public void setFlipkartSerialNumber(String flipkartSerialNumber) {
|
|
|
571 |
this.flipkartSerialNumber = flipkartSerialNumber;
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
public void unsetFlipkartSerialNumber() {
|
|
|
575 |
this.flipkartSerialNumber = null;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
/** Returns true if field flipkartSerialNumber is set (has been assigned a value) and false otherwise */
|
|
|
579 |
public boolean isSetFlipkartSerialNumber() {
|
|
|
580 |
return this.flipkartSerialNumber != null;
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
public void setFlipkartSerialNumberIsSet(boolean value) {
|
|
|
584 |
if (!value) {
|
|
|
585 |
this.flipkartSerialNumber = null;
|
|
|
586 |
}
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
public MarketplaceItems getMarketplaceItems() {
|
|
|
590 |
return this.marketplaceItems;
|
|
|
591 |
}
|
|
|
592 |
|
|
|
593 |
public void setMarketplaceItems(MarketplaceItems marketplaceItems) {
|
|
|
594 |
this.marketplaceItems = marketplaceItems;
|
|
|
595 |
}
|
|
|
596 |
|
|
|
597 |
public void unsetMarketplaceItems() {
|
|
|
598 |
this.marketplaceItems = null;
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
/** Returns true if field marketplaceItems is set (has been assigned a value) and false otherwise */
|
|
|
602 |
public boolean isSetMarketplaceItems() {
|
|
|
603 |
return this.marketplaceItems != null;
|
|
|
604 |
}
|
|
|
605 |
|
|
|
606 |
public void setMarketplaceItemsIsSet(boolean value) {
|
|
|
607 |
if (!value) {
|
|
|
608 |
this.marketplaceItems = null;
|
|
|
609 |
}
|
|
|
610 |
}
|
|
|
611 |
|
| 12133 |
kshitij.so |
612 |
public Item getItem() {
|
|
|
613 |
return this.item;
|
|
|
614 |
}
|
|
|
615 |
|
|
|
616 |
public void setItem(Item item) {
|
|
|
617 |
this.item = item;
|
|
|
618 |
}
|
|
|
619 |
|
|
|
620 |
public void unsetItem() {
|
|
|
621 |
this.item = null;
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
/** Returns true if field item is set (has been assigned a value) and false otherwise */
|
|
|
625 |
public boolean isSetItem() {
|
|
|
626 |
return this.item != null;
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
public void setItemIsSet(boolean value) {
|
|
|
630 |
if (!value) {
|
|
|
631 |
this.item = null;
|
|
|
632 |
}
|
|
|
633 |
}
|
|
|
634 |
|
| 14780 |
manish.sha |
635 |
public boolean isIsFaListed() {
|
|
|
636 |
return this.isFaListed;
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
public void setIsFaListed(boolean isFaListed) {
|
|
|
640 |
this.isFaListed = isFaListed;
|
|
|
641 |
setIsFaListedIsSet(true);
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
public void unsetIsFaListed() {
|
|
|
645 |
__isset_bit_vector.clear(__ISFALISTED_ISSET_ID);
|
|
|
646 |
}
|
|
|
647 |
|
|
|
648 |
/** Returns true if field isFaListed is set (has been assigned a value) and false otherwise */
|
|
|
649 |
public boolean isSetIsFaListed() {
|
|
|
650 |
return __isset_bit_vector.get(__ISFALISTED_ISSET_ID);
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public void setIsFaListedIsSet(boolean value) {
|
|
|
654 |
__isset_bit_vector.set(__ISFALISTED_ISSET_ID, value);
|
|
|
655 |
}
|
|
|
656 |
|
| 9945 |
vikram.rag |
657 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
658 |
switch (field) {
|
|
|
659 |
case ITEM_ID:
|
|
|
660 |
if (value == null) {
|
|
|
661 |
unsetItem_id();
|
|
|
662 |
} else {
|
|
|
663 |
setItem_id((Long)value);
|
|
|
664 |
}
|
|
|
665 |
break;
|
|
|
666 |
|
|
|
667 |
case EXCEPTION_PRICE:
|
|
|
668 |
if (value == null) {
|
|
|
669 |
unsetExceptionPrice();
|
|
|
670 |
} else {
|
|
|
671 |
setExceptionPrice((Double)value);
|
|
|
672 |
}
|
|
|
673 |
break;
|
|
|
674 |
|
|
|
675 |
case WAREHOUSE_ID:
|
|
|
676 |
if (value == null) {
|
|
|
677 |
unsetWarehouseId();
|
|
|
678 |
} else {
|
|
|
679 |
setWarehouseId((Long)value);
|
|
|
680 |
}
|
|
|
681 |
break;
|
|
|
682 |
|
|
|
683 |
case COMMISSION_VALUE:
|
|
|
684 |
if (value == null) {
|
|
|
685 |
unsetCommissionValue();
|
|
|
686 |
} else {
|
|
|
687 |
setCommissionValue((Double)value);
|
|
|
688 |
}
|
|
|
689 |
break;
|
|
|
690 |
|
|
|
691 |
case SERVICE_TAX_VALUE:
|
|
|
692 |
if (value == null) {
|
|
|
693 |
unsetServiceTaxValue();
|
|
|
694 |
} else {
|
|
|
695 |
setServiceTaxValue((Double)value);
|
|
|
696 |
}
|
|
|
697 |
break;
|
|
|
698 |
|
|
|
699 |
case MAX_NLC:
|
|
|
700 |
if (value == null) {
|
|
|
701 |
unsetMaxNlc();
|
|
|
702 |
} else {
|
|
|
703 |
setMaxNlc((Double)value);
|
|
|
704 |
}
|
|
|
705 |
break;
|
|
|
706 |
|
|
|
707 |
case SKU_AT_FLIPKART:
|
|
|
708 |
if (value == null) {
|
|
|
709 |
unsetSkuAtFlipkart();
|
|
|
710 |
} else {
|
|
|
711 |
setSkuAtFlipkart((String)value);
|
|
|
712 |
}
|
|
|
713 |
break;
|
|
|
714 |
|
|
|
715 |
case IS_LISTED_ON_FLIPKART:
|
|
|
716 |
if (value == null) {
|
|
|
717 |
unsetIsListedOnFlipkart();
|
|
|
718 |
} else {
|
|
|
719 |
setIsListedOnFlipkart((Boolean)value);
|
|
|
720 |
}
|
|
|
721 |
break;
|
|
|
722 |
|
|
|
723 |
case SUPPRESS_PRICE_FEED:
|
|
|
724 |
if (value == null) {
|
|
|
725 |
unsetSuppressPriceFeed();
|
|
|
726 |
} else {
|
|
|
727 |
setSuppressPriceFeed((Boolean)value);
|
|
|
728 |
}
|
|
|
729 |
break;
|
|
|
730 |
|
|
|
731 |
case SUPPRESS_INVENTORY_FEED:
|
|
|
732 |
if (value == null) {
|
|
|
733 |
unsetSuppressInventoryFeed();
|
|
|
734 |
} else {
|
|
|
735 |
setSuppressInventoryFeed((Boolean)value);
|
|
|
736 |
}
|
|
|
737 |
break;
|
|
|
738 |
|
| 10097 |
kshitij.so |
739 |
case UPDATED_BY:
|
| 9945 |
vikram.rag |
740 |
if (value == null) {
|
| 10097 |
kshitij.so |
741 |
unsetUpdatedBy();
|
| 9945 |
vikram.rag |
742 |
} else {
|
| 10097 |
kshitij.so |
743 |
setUpdatedBy((String)value);
|
| 9945 |
vikram.rag |
744 |
}
|
|
|
745 |
break;
|
|
|
746 |
|
| 10097 |
kshitij.so |
747 |
case FLIPKART_SERIAL_NUMBER:
|
| 9945 |
vikram.rag |
748 |
if (value == null) {
|
| 10097 |
kshitij.so |
749 |
unsetFlipkartSerialNumber();
|
| 9945 |
vikram.rag |
750 |
} else {
|
| 10097 |
kshitij.so |
751 |
setFlipkartSerialNumber((String)value);
|
| 9945 |
vikram.rag |
752 |
}
|
|
|
753 |
break;
|
|
|
754 |
|
| 10097 |
kshitij.so |
755 |
case MARKETPLACE_ITEMS:
|
|
|
756 |
if (value == null) {
|
|
|
757 |
unsetMarketplaceItems();
|
|
|
758 |
} else {
|
|
|
759 |
setMarketplaceItems((MarketplaceItems)value);
|
|
|
760 |
}
|
|
|
761 |
break;
|
|
|
762 |
|
| 12133 |
kshitij.so |
763 |
case ITEM:
|
|
|
764 |
if (value == null) {
|
|
|
765 |
unsetItem();
|
|
|
766 |
} else {
|
|
|
767 |
setItem((Item)value);
|
|
|
768 |
}
|
|
|
769 |
break;
|
|
|
770 |
|
| 14780 |
manish.sha |
771 |
case IS_FA_LISTED:
|
|
|
772 |
if (value == null) {
|
|
|
773 |
unsetIsFaListed();
|
|
|
774 |
} else {
|
|
|
775 |
setIsFaListed((Boolean)value);
|
|
|
776 |
}
|
|
|
777 |
break;
|
|
|
778 |
|
| 9945 |
vikram.rag |
779 |
}
|
|
|
780 |
}
|
|
|
781 |
|
|
|
782 |
public Object getFieldValue(_Fields field) {
|
|
|
783 |
switch (field) {
|
|
|
784 |
case ITEM_ID:
|
|
|
785 |
return Long.valueOf(getItem_id());
|
|
|
786 |
|
|
|
787 |
case EXCEPTION_PRICE:
|
|
|
788 |
return Double.valueOf(getExceptionPrice());
|
|
|
789 |
|
|
|
790 |
case WAREHOUSE_ID:
|
|
|
791 |
return Long.valueOf(getWarehouseId());
|
|
|
792 |
|
|
|
793 |
case COMMISSION_VALUE:
|
|
|
794 |
return Double.valueOf(getCommissionValue());
|
|
|
795 |
|
|
|
796 |
case SERVICE_TAX_VALUE:
|
|
|
797 |
return Double.valueOf(getServiceTaxValue());
|
|
|
798 |
|
|
|
799 |
case MAX_NLC:
|
|
|
800 |
return Double.valueOf(getMaxNlc());
|
|
|
801 |
|
|
|
802 |
case SKU_AT_FLIPKART:
|
|
|
803 |
return getSkuAtFlipkart();
|
|
|
804 |
|
|
|
805 |
case IS_LISTED_ON_FLIPKART:
|
|
|
806 |
return Boolean.valueOf(isIsListedOnFlipkart());
|
|
|
807 |
|
|
|
808 |
case SUPPRESS_PRICE_FEED:
|
|
|
809 |
return Boolean.valueOf(isSuppressPriceFeed());
|
|
|
810 |
|
|
|
811 |
case SUPPRESS_INVENTORY_FEED:
|
|
|
812 |
return Boolean.valueOf(isSuppressInventoryFeed());
|
|
|
813 |
|
|
|
814 |
case UPDATED_BY:
|
|
|
815 |
return getUpdatedBy();
|
|
|
816 |
|
| 10097 |
kshitij.so |
817 |
case FLIPKART_SERIAL_NUMBER:
|
|
|
818 |
return getFlipkartSerialNumber();
|
|
|
819 |
|
|
|
820 |
case MARKETPLACE_ITEMS:
|
|
|
821 |
return getMarketplaceItems();
|
|
|
822 |
|
| 12133 |
kshitij.so |
823 |
case ITEM:
|
|
|
824 |
return getItem();
|
|
|
825 |
|
| 14780 |
manish.sha |
826 |
case IS_FA_LISTED:
|
|
|
827 |
return Boolean.valueOf(isIsFaListed());
|
|
|
828 |
|
| 9945 |
vikram.rag |
829 |
}
|
|
|
830 |
throw new IllegalStateException();
|
|
|
831 |
}
|
|
|
832 |
|
|
|
833 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
834 |
public boolean isSet(_Fields field) {
|
|
|
835 |
if (field == null) {
|
|
|
836 |
throw new IllegalArgumentException();
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
switch (field) {
|
|
|
840 |
case ITEM_ID:
|
|
|
841 |
return isSetItem_id();
|
|
|
842 |
case EXCEPTION_PRICE:
|
|
|
843 |
return isSetExceptionPrice();
|
|
|
844 |
case WAREHOUSE_ID:
|
|
|
845 |
return isSetWarehouseId();
|
|
|
846 |
case COMMISSION_VALUE:
|
|
|
847 |
return isSetCommissionValue();
|
|
|
848 |
case SERVICE_TAX_VALUE:
|
|
|
849 |
return isSetServiceTaxValue();
|
|
|
850 |
case MAX_NLC:
|
|
|
851 |
return isSetMaxNlc();
|
|
|
852 |
case SKU_AT_FLIPKART:
|
|
|
853 |
return isSetSkuAtFlipkart();
|
|
|
854 |
case IS_LISTED_ON_FLIPKART:
|
|
|
855 |
return isSetIsListedOnFlipkart();
|
|
|
856 |
case SUPPRESS_PRICE_FEED:
|
|
|
857 |
return isSetSuppressPriceFeed();
|
|
|
858 |
case SUPPRESS_INVENTORY_FEED:
|
|
|
859 |
return isSetSuppressInventoryFeed();
|
|
|
860 |
case UPDATED_BY:
|
|
|
861 |
return isSetUpdatedBy();
|
| 10097 |
kshitij.so |
862 |
case FLIPKART_SERIAL_NUMBER:
|
|
|
863 |
return isSetFlipkartSerialNumber();
|
|
|
864 |
case MARKETPLACE_ITEMS:
|
|
|
865 |
return isSetMarketplaceItems();
|
| 12133 |
kshitij.so |
866 |
case ITEM:
|
|
|
867 |
return isSetItem();
|
| 14780 |
manish.sha |
868 |
case IS_FA_LISTED:
|
|
|
869 |
return isSetIsFaListed();
|
| 9945 |
vikram.rag |
870 |
}
|
|
|
871 |
throw new IllegalStateException();
|
|
|
872 |
}
|
|
|
873 |
|
|
|
874 |
@Override
|
|
|
875 |
public boolean equals(Object that) {
|
|
|
876 |
if (that == null)
|
|
|
877 |
return false;
|
|
|
878 |
if (that instanceof FlipkartItem)
|
|
|
879 |
return this.equals((FlipkartItem)that);
|
|
|
880 |
return false;
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
public boolean equals(FlipkartItem that) {
|
|
|
884 |
if (that == null)
|
|
|
885 |
return false;
|
|
|
886 |
|
|
|
887 |
boolean this_present_item_id = true;
|
|
|
888 |
boolean that_present_item_id = true;
|
|
|
889 |
if (this_present_item_id || that_present_item_id) {
|
|
|
890 |
if (!(this_present_item_id && that_present_item_id))
|
|
|
891 |
return false;
|
|
|
892 |
if (this.item_id != that.item_id)
|
|
|
893 |
return false;
|
|
|
894 |
}
|
|
|
895 |
|
|
|
896 |
boolean this_present_exceptionPrice = true;
|
|
|
897 |
boolean that_present_exceptionPrice = true;
|
|
|
898 |
if (this_present_exceptionPrice || that_present_exceptionPrice) {
|
|
|
899 |
if (!(this_present_exceptionPrice && that_present_exceptionPrice))
|
|
|
900 |
return false;
|
|
|
901 |
if (this.exceptionPrice != that.exceptionPrice)
|
|
|
902 |
return false;
|
|
|
903 |
}
|
|
|
904 |
|
|
|
905 |
boolean this_present_warehouseId = true;
|
|
|
906 |
boolean that_present_warehouseId = true;
|
|
|
907 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
908 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
909 |
return false;
|
|
|
910 |
if (this.warehouseId != that.warehouseId)
|
|
|
911 |
return false;
|
|
|
912 |
}
|
|
|
913 |
|
|
|
914 |
boolean this_present_commissionValue = true;
|
|
|
915 |
boolean that_present_commissionValue = true;
|
|
|
916 |
if (this_present_commissionValue || that_present_commissionValue) {
|
|
|
917 |
if (!(this_present_commissionValue && that_present_commissionValue))
|
|
|
918 |
return false;
|
|
|
919 |
if (this.commissionValue != that.commissionValue)
|
|
|
920 |
return false;
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
boolean this_present_serviceTaxValue = true;
|
|
|
924 |
boolean that_present_serviceTaxValue = true;
|
|
|
925 |
if (this_present_serviceTaxValue || that_present_serviceTaxValue) {
|
|
|
926 |
if (!(this_present_serviceTaxValue && that_present_serviceTaxValue))
|
|
|
927 |
return false;
|
|
|
928 |
if (this.serviceTaxValue != that.serviceTaxValue)
|
|
|
929 |
return false;
|
|
|
930 |
}
|
|
|
931 |
|
|
|
932 |
boolean this_present_maxNlc = true;
|
|
|
933 |
boolean that_present_maxNlc = true;
|
|
|
934 |
if (this_present_maxNlc || that_present_maxNlc) {
|
|
|
935 |
if (!(this_present_maxNlc && that_present_maxNlc))
|
|
|
936 |
return false;
|
|
|
937 |
if (this.maxNlc != that.maxNlc)
|
|
|
938 |
return false;
|
|
|
939 |
}
|
|
|
940 |
|
|
|
941 |
boolean this_present_skuAtFlipkart = true && this.isSetSkuAtFlipkart();
|
|
|
942 |
boolean that_present_skuAtFlipkart = true && that.isSetSkuAtFlipkart();
|
|
|
943 |
if (this_present_skuAtFlipkart || that_present_skuAtFlipkart) {
|
|
|
944 |
if (!(this_present_skuAtFlipkart && that_present_skuAtFlipkart))
|
|
|
945 |
return false;
|
|
|
946 |
if (!this.skuAtFlipkart.equals(that.skuAtFlipkart))
|
|
|
947 |
return false;
|
|
|
948 |
}
|
|
|
949 |
|
|
|
950 |
boolean this_present_isListedOnFlipkart = true;
|
|
|
951 |
boolean that_present_isListedOnFlipkart = true;
|
|
|
952 |
if (this_present_isListedOnFlipkart || that_present_isListedOnFlipkart) {
|
|
|
953 |
if (!(this_present_isListedOnFlipkart && that_present_isListedOnFlipkart))
|
|
|
954 |
return false;
|
|
|
955 |
if (this.isListedOnFlipkart != that.isListedOnFlipkart)
|
|
|
956 |
return false;
|
|
|
957 |
}
|
|
|
958 |
|
|
|
959 |
boolean this_present_suppressPriceFeed = true;
|
|
|
960 |
boolean that_present_suppressPriceFeed = true;
|
|
|
961 |
if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
|
|
|
962 |
if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
|
|
|
963 |
return false;
|
|
|
964 |
if (this.suppressPriceFeed != that.suppressPriceFeed)
|
|
|
965 |
return false;
|
|
|
966 |
}
|
|
|
967 |
|
|
|
968 |
boolean this_present_suppressInventoryFeed = true;
|
|
|
969 |
boolean that_present_suppressInventoryFeed = true;
|
|
|
970 |
if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
|
|
|
971 |
if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
|
|
|
972 |
return false;
|
|
|
973 |
if (this.suppressInventoryFeed != that.suppressInventoryFeed)
|
|
|
974 |
return false;
|
|
|
975 |
}
|
|
|
976 |
|
|
|
977 |
boolean this_present_updatedBy = true && this.isSetUpdatedBy();
|
|
|
978 |
boolean that_present_updatedBy = true && that.isSetUpdatedBy();
|
|
|
979 |
if (this_present_updatedBy || that_present_updatedBy) {
|
|
|
980 |
if (!(this_present_updatedBy && that_present_updatedBy))
|
|
|
981 |
return false;
|
|
|
982 |
if (!this.updatedBy.equals(that.updatedBy))
|
|
|
983 |
return false;
|
|
|
984 |
}
|
|
|
985 |
|
| 10097 |
kshitij.so |
986 |
boolean this_present_flipkartSerialNumber = true && this.isSetFlipkartSerialNumber();
|
|
|
987 |
boolean that_present_flipkartSerialNumber = true && that.isSetFlipkartSerialNumber();
|
|
|
988 |
if (this_present_flipkartSerialNumber || that_present_flipkartSerialNumber) {
|
|
|
989 |
if (!(this_present_flipkartSerialNumber && that_present_flipkartSerialNumber))
|
|
|
990 |
return false;
|
|
|
991 |
if (!this.flipkartSerialNumber.equals(that.flipkartSerialNumber))
|
|
|
992 |
return false;
|
|
|
993 |
}
|
|
|
994 |
|
|
|
995 |
boolean this_present_marketplaceItems = true && this.isSetMarketplaceItems();
|
|
|
996 |
boolean that_present_marketplaceItems = true && that.isSetMarketplaceItems();
|
|
|
997 |
if (this_present_marketplaceItems || that_present_marketplaceItems) {
|
|
|
998 |
if (!(this_present_marketplaceItems && that_present_marketplaceItems))
|
|
|
999 |
return false;
|
|
|
1000 |
if (!this.marketplaceItems.equals(that.marketplaceItems))
|
|
|
1001 |
return false;
|
|
|
1002 |
}
|
|
|
1003 |
|
| 12133 |
kshitij.so |
1004 |
boolean this_present_item = true && this.isSetItem();
|
|
|
1005 |
boolean that_present_item = true && that.isSetItem();
|
|
|
1006 |
if (this_present_item || that_present_item) {
|
|
|
1007 |
if (!(this_present_item && that_present_item))
|
|
|
1008 |
return false;
|
|
|
1009 |
if (!this.item.equals(that.item))
|
|
|
1010 |
return false;
|
|
|
1011 |
}
|
|
|
1012 |
|
| 14780 |
manish.sha |
1013 |
boolean this_present_isFaListed = true;
|
|
|
1014 |
boolean that_present_isFaListed = true;
|
|
|
1015 |
if (this_present_isFaListed || that_present_isFaListed) {
|
|
|
1016 |
if (!(this_present_isFaListed && that_present_isFaListed))
|
|
|
1017 |
return false;
|
|
|
1018 |
if (this.isFaListed != that.isFaListed)
|
|
|
1019 |
return false;
|
|
|
1020 |
}
|
|
|
1021 |
|
| 9945 |
vikram.rag |
1022 |
return true;
|
|
|
1023 |
}
|
|
|
1024 |
|
|
|
1025 |
@Override
|
|
|
1026 |
public int hashCode() {
|
|
|
1027 |
return 0;
|
|
|
1028 |
}
|
|
|
1029 |
|
|
|
1030 |
public int compareTo(FlipkartItem other) {
|
|
|
1031 |
if (!getClass().equals(other.getClass())) {
|
|
|
1032 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1033 |
}
|
|
|
1034 |
|
|
|
1035 |
int lastComparison = 0;
|
|
|
1036 |
FlipkartItem typedOther = (FlipkartItem)other;
|
|
|
1037 |
|
|
|
1038 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
|
|
1039 |
if (lastComparison != 0) {
|
|
|
1040 |
return lastComparison;
|
|
|
1041 |
}
|
|
|
1042 |
if (isSetItem_id()) {
|
|
|
1043 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
1044 |
if (lastComparison != 0) {
|
|
|
1045 |
return lastComparison;
|
|
|
1046 |
}
|
|
|
1047 |
}
|
|
|
1048 |
lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
|
|
|
1049 |
if (lastComparison != 0) {
|
|
|
1050 |
return lastComparison;
|
|
|
1051 |
}
|
|
|
1052 |
if (isSetExceptionPrice()) {
|
|
|
1053 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
|
|
|
1054 |
if (lastComparison != 0) {
|
|
|
1055 |
return lastComparison;
|
|
|
1056 |
}
|
|
|
1057 |
}
|
|
|
1058 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
|
|
1059 |
if (lastComparison != 0) {
|
|
|
1060 |
return lastComparison;
|
|
|
1061 |
}
|
|
|
1062 |
if (isSetWarehouseId()) {
|
|
|
1063 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
1064 |
if (lastComparison != 0) {
|
|
|
1065 |
return lastComparison;
|
|
|
1066 |
}
|
|
|
1067 |
}
|
|
|
1068 |
lastComparison = Boolean.valueOf(isSetCommissionValue()).compareTo(typedOther.isSetCommissionValue());
|
|
|
1069 |
if (lastComparison != 0) {
|
|
|
1070 |
return lastComparison;
|
|
|
1071 |
}
|
|
|
1072 |
if (isSetCommissionValue()) {
|
|
|
1073 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commissionValue, typedOther.commissionValue);
|
|
|
1074 |
if (lastComparison != 0) {
|
|
|
1075 |
return lastComparison;
|
|
|
1076 |
}
|
|
|
1077 |
}
|
|
|
1078 |
lastComparison = Boolean.valueOf(isSetServiceTaxValue()).compareTo(typedOther.isSetServiceTaxValue());
|
|
|
1079 |
if (lastComparison != 0) {
|
|
|
1080 |
return lastComparison;
|
|
|
1081 |
}
|
|
|
1082 |
if (isSetServiceTaxValue()) {
|
|
|
1083 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTaxValue, typedOther.serviceTaxValue);
|
|
|
1084 |
if (lastComparison != 0) {
|
|
|
1085 |
return lastComparison;
|
|
|
1086 |
}
|
|
|
1087 |
}
|
|
|
1088 |
lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
|
|
|
1089 |
if (lastComparison != 0) {
|
|
|
1090 |
return lastComparison;
|
|
|
1091 |
}
|
|
|
1092 |
if (isSetMaxNlc()) {
|
|
|
1093 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
|
|
|
1094 |
if (lastComparison != 0) {
|
|
|
1095 |
return lastComparison;
|
|
|
1096 |
}
|
|
|
1097 |
}
|
|
|
1098 |
lastComparison = Boolean.valueOf(isSetSkuAtFlipkart()).compareTo(typedOther.isSetSkuAtFlipkart());
|
|
|
1099 |
if (lastComparison != 0) {
|
|
|
1100 |
return lastComparison;
|
|
|
1101 |
}
|
|
|
1102 |
if (isSetSkuAtFlipkart()) {
|
|
|
1103 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtFlipkart, typedOther.skuAtFlipkart);
|
|
|
1104 |
if (lastComparison != 0) {
|
|
|
1105 |
return lastComparison;
|
|
|
1106 |
}
|
|
|
1107 |
}
|
|
|
1108 |
lastComparison = Boolean.valueOf(isSetIsListedOnFlipkart()).compareTo(typedOther.isSetIsListedOnFlipkart());
|
|
|
1109 |
if (lastComparison != 0) {
|
|
|
1110 |
return lastComparison;
|
|
|
1111 |
}
|
|
|
1112 |
if (isSetIsListedOnFlipkart()) {
|
|
|
1113 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnFlipkart, typedOther.isListedOnFlipkart);
|
|
|
1114 |
if (lastComparison != 0) {
|
|
|
1115 |
return lastComparison;
|
|
|
1116 |
}
|
|
|
1117 |
}
|
|
|
1118 |
lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
|
|
|
1119 |
if (lastComparison != 0) {
|
|
|
1120 |
return lastComparison;
|
|
|
1121 |
}
|
|
|
1122 |
if (isSetSuppressPriceFeed()) {
|
|
|
1123 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
|
|
|
1124 |
if (lastComparison != 0) {
|
|
|
1125 |
return lastComparison;
|
|
|
1126 |
}
|
|
|
1127 |
}
|
|
|
1128 |
lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
|
|
|
1129 |
if (lastComparison != 0) {
|
|
|
1130 |
return lastComparison;
|
|
|
1131 |
}
|
|
|
1132 |
if (isSetSuppressInventoryFeed()) {
|
|
|
1133 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
|
|
|
1134 |
if (lastComparison != 0) {
|
|
|
1135 |
return lastComparison;
|
|
|
1136 |
}
|
|
|
1137 |
}
|
| 10097 |
kshitij.so |
1138 |
lastComparison = Boolean.valueOf(isSetUpdatedBy()).compareTo(typedOther.isSetUpdatedBy());
|
| 9945 |
vikram.rag |
1139 |
if (lastComparison != 0) {
|
|
|
1140 |
return lastComparison;
|
|
|
1141 |
}
|
| 10097 |
kshitij.so |
1142 |
if (isSetUpdatedBy()) {
|
|
|
1143 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedBy, typedOther.updatedBy);
|
| 9945 |
vikram.rag |
1144 |
if (lastComparison != 0) {
|
|
|
1145 |
return lastComparison;
|
|
|
1146 |
}
|
|
|
1147 |
}
|
| 10097 |
kshitij.so |
1148 |
lastComparison = Boolean.valueOf(isSetFlipkartSerialNumber()).compareTo(typedOther.isSetFlipkartSerialNumber());
|
| 9945 |
vikram.rag |
1149 |
if (lastComparison != 0) {
|
|
|
1150 |
return lastComparison;
|
|
|
1151 |
}
|
| 10097 |
kshitij.so |
1152 |
if (isSetFlipkartSerialNumber()) {
|
|
|
1153 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartSerialNumber, typedOther.flipkartSerialNumber);
|
| 9945 |
vikram.rag |
1154 |
if (lastComparison != 0) {
|
|
|
1155 |
return lastComparison;
|
|
|
1156 |
}
|
|
|
1157 |
}
|
| 10097 |
kshitij.so |
1158 |
lastComparison = Boolean.valueOf(isSetMarketplaceItems()).compareTo(typedOther.isSetMarketplaceItems());
|
|
|
1159 |
if (lastComparison != 0) {
|
|
|
1160 |
return lastComparison;
|
|
|
1161 |
}
|
|
|
1162 |
if (isSetMarketplaceItems()) {
|
|
|
1163 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketplaceItems, typedOther.marketplaceItems);
|
|
|
1164 |
if (lastComparison != 0) {
|
|
|
1165 |
return lastComparison;
|
|
|
1166 |
}
|
|
|
1167 |
}
|
| 12133 |
kshitij.so |
1168 |
lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
|
|
|
1169 |
if (lastComparison != 0) {
|
|
|
1170 |
return lastComparison;
|
|
|
1171 |
}
|
|
|
1172 |
if (isSetItem()) {
|
|
|
1173 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
|
|
|
1174 |
if (lastComparison != 0) {
|
|
|
1175 |
return lastComparison;
|
|
|
1176 |
}
|
|
|
1177 |
}
|
| 14780 |
manish.sha |
1178 |
lastComparison = Boolean.valueOf(isSetIsFaListed()).compareTo(typedOther.isSetIsFaListed());
|
|
|
1179 |
if (lastComparison != 0) {
|
|
|
1180 |
return lastComparison;
|
|
|
1181 |
}
|
|
|
1182 |
if (isSetIsFaListed()) {
|
|
|
1183 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFaListed, typedOther.isFaListed);
|
|
|
1184 |
if (lastComparison != 0) {
|
|
|
1185 |
return lastComparison;
|
|
|
1186 |
}
|
|
|
1187 |
}
|
| 9945 |
vikram.rag |
1188 |
return 0;
|
|
|
1189 |
}
|
|
|
1190 |
|
|
|
1191 |
public _Fields fieldForId(int fieldId) {
|
|
|
1192 |
return _Fields.findByThriftId(fieldId);
|
|
|
1193 |
}
|
|
|
1194 |
|
|
|
1195 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1196 |
org.apache.thrift.protocol.TField field;
|
|
|
1197 |
iprot.readStructBegin();
|
|
|
1198 |
while (true)
|
|
|
1199 |
{
|
|
|
1200 |
field = iprot.readFieldBegin();
|
|
|
1201 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1202 |
break;
|
|
|
1203 |
}
|
|
|
1204 |
switch (field.id) {
|
|
|
1205 |
case 1: // ITEM_ID
|
|
|
1206 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1207 |
this.item_id = iprot.readI64();
|
|
|
1208 |
setItem_idIsSet(true);
|
|
|
1209 |
} else {
|
|
|
1210 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1211 |
}
|
|
|
1212 |
break;
|
|
|
1213 |
case 2: // EXCEPTION_PRICE
|
|
|
1214 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1215 |
this.exceptionPrice = iprot.readDouble();
|
|
|
1216 |
setExceptionPriceIsSet(true);
|
|
|
1217 |
} else {
|
|
|
1218 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1219 |
}
|
|
|
1220 |
break;
|
|
|
1221 |
case 3: // WAREHOUSE_ID
|
|
|
1222 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1223 |
this.warehouseId = iprot.readI64();
|
|
|
1224 |
setWarehouseIdIsSet(true);
|
|
|
1225 |
} else {
|
|
|
1226 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1227 |
}
|
|
|
1228 |
break;
|
|
|
1229 |
case 4: // COMMISSION_VALUE
|
|
|
1230 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1231 |
this.commissionValue = iprot.readDouble();
|
|
|
1232 |
setCommissionValueIsSet(true);
|
|
|
1233 |
} else {
|
|
|
1234 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1235 |
}
|
|
|
1236 |
break;
|
|
|
1237 |
case 5: // SERVICE_TAX_VALUE
|
|
|
1238 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1239 |
this.serviceTaxValue = iprot.readDouble();
|
|
|
1240 |
setServiceTaxValueIsSet(true);
|
|
|
1241 |
} else {
|
|
|
1242 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1243 |
}
|
|
|
1244 |
break;
|
|
|
1245 |
case 6: // MAX_NLC
|
|
|
1246 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1247 |
this.maxNlc = iprot.readDouble();
|
|
|
1248 |
setMaxNlcIsSet(true);
|
|
|
1249 |
} else {
|
|
|
1250 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1251 |
}
|
|
|
1252 |
break;
|
|
|
1253 |
case 7: // SKU_AT_FLIPKART
|
|
|
1254 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1255 |
this.skuAtFlipkart = iprot.readString();
|
|
|
1256 |
} else {
|
|
|
1257 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1258 |
}
|
|
|
1259 |
break;
|
|
|
1260 |
case 8: // IS_LISTED_ON_FLIPKART
|
|
|
1261 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1262 |
this.isListedOnFlipkart = iprot.readBool();
|
|
|
1263 |
setIsListedOnFlipkartIsSet(true);
|
|
|
1264 |
} else {
|
|
|
1265 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1266 |
}
|
|
|
1267 |
break;
|
|
|
1268 |
case 9: // SUPPRESS_PRICE_FEED
|
|
|
1269 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1270 |
this.suppressPriceFeed = iprot.readBool();
|
|
|
1271 |
setSuppressPriceFeedIsSet(true);
|
|
|
1272 |
} else {
|
|
|
1273 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1274 |
}
|
|
|
1275 |
break;
|
|
|
1276 |
case 10: // SUPPRESS_INVENTORY_FEED
|
|
|
1277 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1278 |
this.suppressInventoryFeed = iprot.readBool();
|
|
|
1279 |
setSuppressInventoryFeedIsSet(true);
|
|
|
1280 |
} else {
|
|
|
1281 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1282 |
}
|
|
|
1283 |
break;
|
| 10097 |
kshitij.so |
1284 |
case 11: // UPDATED_BY
|
|
|
1285 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1286 |
this.updatedBy = iprot.readString();
|
| 9945 |
vikram.rag |
1287 |
} else {
|
|
|
1288 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1289 |
}
|
|
|
1290 |
break;
|
| 10097 |
kshitij.so |
1291 |
case 12: // FLIPKART_SERIAL_NUMBER
|
| 9945 |
vikram.rag |
1292 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 10097 |
kshitij.so |
1293 |
this.flipkartSerialNumber = iprot.readString();
|
| 9945 |
vikram.rag |
1294 |
} else {
|
|
|
1295 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1296 |
}
|
|
|
1297 |
break;
|
| 10097 |
kshitij.so |
1298 |
case 13: // MARKETPLACE_ITEMS
|
|
|
1299 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1300 |
this.marketplaceItems = new MarketplaceItems();
|
|
|
1301 |
this.marketplaceItems.read(iprot);
|
|
|
1302 |
} else {
|
|
|
1303 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1304 |
}
|
|
|
1305 |
break;
|
| 12133 |
kshitij.so |
1306 |
case 14: // ITEM
|
|
|
1307 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1308 |
this.item = new Item();
|
|
|
1309 |
this.item.read(iprot);
|
|
|
1310 |
} else {
|
|
|
1311 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1312 |
}
|
|
|
1313 |
break;
|
| 14780 |
manish.sha |
1314 |
case 15: // IS_FA_LISTED
|
|
|
1315 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1316 |
this.isFaListed = iprot.readBool();
|
|
|
1317 |
setIsFaListedIsSet(true);
|
|
|
1318 |
} else {
|
|
|
1319 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1320 |
}
|
|
|
1321 |
break;
|
| 9945 |
vikram.rag |
1322 |
default:
|
|
|
1323 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1324 |
}
|
|
|
1325 |
iprot.readFieldEnd();
|
|
|
1326 |
}
|
|
|
1327 |
iprot.readStructEnd();
|
|
|
1328 |
validate();
|
|
|
1329 |
}
|
|
|
1330 |
|
|
|
1331 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1332 |
validate();
|
|
|
1333 |
|
|
|
1334 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1335 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
1336 |
oprot.writeI64(this.item_id);
|
|
|
1337 |
oprot.writeFieldEnd();
|
|
|
1338 |
oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
|
|
|
1339 |
oprot.writeDouble(this.exceptionPrice);
|
|
|
1340 |
oprot.writeFieldEnd();
|
|
|
1341 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
1342 |
oprot.writeI64(this.warehouseId);
|
|
|
1343 |
oprot.writeFieldEnd();
|
|
|
1344 |
oprot.writeFieldBegin(COMMISSION_VALUE_FIELD_DESC);
|
|
|
1345 |
oprot.writeDouble(this.commissionValue);
|
|
|
1346 |
oprot.writeFieldEnd();
|
|
|
1347 |
oprot.writeFieldBegin(SERVICE_TAX_VALUE_FIELD_DESC);
|
|
|
1348 |
oprot.writeDouble(this.serviceTaxValue);
|
|
|
1349 |
oprot.writeFieldEnd();
|
|
|
1350 |
oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
|
|
|
1351 |
oprot.writeDouble(this.maxNlc);
|
|
|
1352 |
oprot.writeFieldEnd();
|
|
|
1353 |
if (this.skuAtFlipkart != null) {
|
|
|
1354 |
oprot.writeFieldBegin(SKU_AT_FLIPKART_FIELD_DESC);
|
|
|
1355 |
oprot.writeString(this.skuAtFlipkart);
|
|
|
1356 |
oprot.writeFieldEnd();
|
|
|
1357 |
}
|
|
|
1358 |
oprot.writeFieldBegin(IS_LISTED_ON_FLIPKART_FIELD_DESC);
|
|
|
1359 |
oprot.writeBool(this.isListedOnFlipkart);
|
|
|
1360 |
oprot.writeFieldEnd();
|
|
|
1361 |
oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
|
|
|
1362 |
oprot.writeBool(this.suppressPriceFeed);
|
|
|
1363 |
oprot.writeFieldEnd();
|
|
|
1364 |
oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
|
|
|
1365 |
oprot.writeBool(this.suppressInventoryFeed);
|
|
|
1366 |
oprot.writeFieldEnd();
|
|
|
1367 |
if (this.updatedBy != null) {
|
|
|
1368 |
oprot.writeFieldBegin(UPDATED_BY_FIELD_DESC);
|
|
|
1369 |
oprot.writeString(this.updatedBy);
|
|
|
1370 |
oprot.writeFieldEnd();
|
|
|
1371 |
}
|
| 10097 |
kshitij.so |
1372 |
if (this.flipkartSerialNumber != null) {
|
|
|
1373 |
oprot.writeFieldBegin(FLIPKART_SERIAL_NUMBER_FIELD_DESC);
|
|
|
1374 |
oprot.writeString(this.flipkartSerialNumber);
|
|
|
1375 |
oprot.writeFieldEnd();
|
|
|
1376 |
}
|
|
|
1377 |
if (this.marketplaceItems != null) {
|
|
|
1378 |
oprot.writeFieldBegin(MARKETPLACE_ITEMS_FIELD_DESC);
|
|
|
1379 |
this.marketplaceItems.write(oprot);
|
|
|
1380 |
oprot.writeFieldEnd();
|
|
|
1381 |
}
|
| 12133 |
kshitij.so |
1382 |
if (this.item != null) {
|
|
|
1383 |
oprot.writeFieldBegin(ITEM_FIELD_DESC);
|
|
|
1384 |
this.item.write(oprot);
|
|
|
1385 |
oprot.writeFieldEnd();
|
|
|
1386 |
}
|
| 14780 |
manish.sha |
1387 |
oprot.writeFieldBegin(IS_FA_LISTED_FIELD_DESC);
|
|
|
1388 |
oprot.writeBool(this.isFaListed);
|
|
|
1389 |
oprot.writeFieldEnd();
|
| 9945 |
vikram.rag |
1390 |
oprot.writeFieldStop();
|
|
|
1391 |
oprot.writeStructEnd();
|
|
|
1392 |
}
|
|
|
1393 |
|
|
|
1394 |
@Override
|
|
|
1395 |
public String toString() {
|
|
|
1396 |
StringBuilder sb = new StringBuilder("FlipkartItem(");
|
|
|
1397 |
boolean first = true;
|
|
|
1398 |
|
|
|
1399 |
sb.append("item_id:");
|
|
|
1400 |
sb.append(this.item_id);
|
|
|
1401 |
first = false;
|
|
|
1402 |
if (!first) sb.append(", ");
|
|
|
1403 |
sb.append("exceptionPrice:");
|
|
|
1404 |
sb.append(this.exceptionPrice);
|
|
|
1405 |
first = false;
|
|
|
1406 |
if (!first) sb.append(", ");
|
|
|
1407 |
sb.append("warehouseId:");
|
|
|
1408 |
sb.append(this.warehouseId);
|
|
|
1409 |
first = false;
|
|
|
1410 |
if (!first) sb.append(", ");
|
|
|
1411 |
sb.append("commissionValue:");
|
|
|
1412 |
sb.append(this.commissionValue);
|
|
|
1413 |
first = false;
|
|
|
1414 |
if (!first) sb.append(", ");
|
|
|
1415 |
sb.append("serviceTaxValue:");
|
|
|
1416 |
sb.append(this.serviceTaxValue);
|
|
|
1417 |
first = false;
|
|
|
1418 |
if (!first) sb.append(", ");
|
|
|
1419 |
sb.append("maxNlc:");
|
|
|
1420 |
sb.append(this.maxNlc);
|
|
|
1421 |
first = false;
|
|
|
1422 |
if (!first) sb.append(", ");
|
|
|
1423 |
sb.append("skuAtFlipkart:");
|
|
|
1424 |
if (this.skuAtFlipkart == null) {
|
|
|
1425 |
sb.append("null");
|
|
|
1426 |
} else {
|
|
|
1427 |
sb.append(this.skuAtFlipkart);
|
|
|
1428 |
}
|
|
|
1429 |
first = false;
|
|
|
1430 |
if (!first) sb.append(", ");
|
|
|
1431 |
sb.append("isListedOnFlipkart:");
|
|
|
1432 |
sb.append(this.isListedOnFlipkart);
|
|
|
1433 |
first = false;
|
|
|
1434 |
if (!first) sb.append(", ");
|
|
|
1435 |
sb.append("suppressPriceFeed:");
|
|
|
1436 |
sb.append(this.suppressPriceFeed);
|
|
|
1437 |
first = false;
|
|
|
1438 |
if (!first) sb.append(", ");
|
|
|
1439 |
sb.append("suppressInventoryFeed:");
|
|
|
1440 |
sb.append(this.suppressInventoryFeed);
|
|
|
1441 |
first = false;
|
|
|
1442 |
if (!first) sb.append(", ");
|
|
|
1443 |
sb.append("updatedBy:");
|
|
|
1444 |
if (this.updatedBy == null) {
|
|
|
1445 |
sb.append("null");
|
|
|
1446 |
} else {
|
|
|
1447 |
sb.append(this.updatedBy);
|
|
|
1448 |
}
|
|
|
1449 |
first = false;
|
| 10097 |
kshitij.so |
1450 |
if (!first) sb.append(", ");
|
|
|
1451 |
sb.append("flipkartSerialNumber:");
|
|
|
1452 |
if (this.flipkartSerialNumber == null) {
|
|
|
1453 |
sb.append("null");
|
|
|
1454 |
} else {
|
|
|
1455 |
sb.append(this.flipkartSerialNumber);
|
|
|
1456 |
}
|
|
|
1457 |
first = false;
|
|
|
1458 |
if (!first) sb.append(", ");
|
|
|
1459 |
sb.append("marketplaceItems:");
|
|
|
1460 |
if (this.marketplaceItems == null) {
|
|
|
1461 |
sb.append("null");
|
|
|
1462 |
} else {
|
|
|
1463 |
sb.append(this.marketplaceItems);
|
|
|
1464 |
}
|
|
|
1465 |
first = false;
|
| 12133 |
kshitij.so |
1466 |
if (!first) sb.append(", ");
|
|
|
1467 |
sb.append("item:");
|
|
|
1468 |
if (this.item == null) {
|
|
|
1469 |
sb.append("null");
|
|
|
1470 |
} else {
|
|
|
1471 |
sb.append(this.item);
|
|
|
1472 |
}
|
|
|
1473 |
first = false;
|
| 14780 |
manish.sha |
1474 |
if (!first) sb.append(", ");
|
|
|
1475 |
sb.append("isFaListed:");
|
|
|
1476 |
sb.append(this.isFaListed);
|
|
|
1477 |
first = false;
|
| 9945 |
vikram.rag |
1478 |
sb.append(")");
|
|
|
1479 |
return sb.toString();
|
|
|
1480 |
}
|
|
|
1481 |
|
|
|
1482 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1483 |
// check for required fields
|
|
|
1484 |
}
|
|
|
1485 |
|
|
|
1486 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1487 |
try {
|
|
|
1488 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1489 |
} catch (org.apache.thrift.TException te) {
|
|
|
1490 |
throw new java.io.IOException(te);
|
|
|
1491 |
}
|
|
|
1492 |
}
|
|
|
1493 |
|
|
|
1494 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1495 |
try {
|
|
|
1496 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1497 |
__isset_bit_vector = new BitSet(1);
|
|
|
1498 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1499 |
} catch (org.apache.thrift.TException te) {
|
|
|
1500 |
throw new java.io.IOException(te);
|
|
|
1501 |
}
|
|
|
1502 |
}
|
|
|
1503 |
|
|
|
1504 |
}
|
|
|
1505 |
|