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