| 7423 |
anupam.sin |
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.order;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class StoreOrderCollection implements org.apache.thrift.TBase<StoreOrderCollection, StoreOrderCollection._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StoreOrderCollection");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField COLLECTION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("collectionType", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField ADVANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("advanceAmount", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField CASH_FIELD_DESC = new org.apache.thrift.protocol.TField("cash", org.apache.thrift.protocol.TType.I64, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField CARD_FIELD_DESC = new org.apache.thrift.protocol.TField("card", org.apache.thrift.protocol.TType.I64, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField ADDED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("addedAt", org.apache.thrift.protocol.TType.I64, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField PUSHED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("pushedAt", org.apache.thrift.protocol.TType.I64, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField PUSHED_TO_OCR_FIELD_DESC = new org.apache.thrift.protocol.TField("pushedToOcr", org.apache.thrift.protocol.TType.BOOL, (short)10);
|
|
|
36 |
|
|
|
37 |
private String hotspotId; // required
|
|
|
38 |
private long orderId; // required
|
|
|
39 |
private String collectionType; // required
|
|
|
40 |
private String productName; // required
|
|
|
41 |
private long advanceAmount; // required
|
|
|
42 |
private long cash; // required
|
|
|
43 |
private long card; // required
|
|
|
44 |
private long addedAt; // required
|
|
|
45 |
private long pushedAt; // required
|
|
|
46 |
private boolean pushedToOcr; // required
|
|
|
47 |
|
|
|
48 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
49 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
50 |
HOTSPOT_ID((short)1, "hotspotId"),
|
|
|
51 |
ORDER_ID((short)2, "orderId"),
|
|
|
52 |
COLLECTION_TYPE((short)3, "collectionType"),
|
|
|
53 |
PRODUCT_NAME((short)4, "productName"),
|
|
|
54 |
ADVANCE_AMOUNT((short)5, "advanceAmount"),
|
|
|
55 |
CASH((short)6, "cash"),
|
|
|
56 |
CARD((short)7, "card"),
|
|
|
57 |
ADDED_AT((short)8, "addedAt"),
|
|
|
58 |
PUSHED_AT((short)9, "pushedAt"),
|
|
|
59 |
PUSHED_TO_OCR((short)10, "pushedToOcr");
|
|
|
60 |
|
|
|
61 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
62 |
|
|
|
63 |
static {
|
|
|
64 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
65 |
byName.put(field.getFieldName(), field);
|
|
|
66 |
}
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
71 |
*/
|
|
|
72 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
73 |
switch(fieldId) {
|
|
|
74 |
case 1: // HOTSPOT_ID
|
|
|
75 |
return HOTSPOT_ID;
|
|
|
76 |
case 2: // ORDER_ID
|
|
|
77 |
return ORDER_ID;
|
|
|
78 |
case 3: // COLLECTION_TYPE
|
|
|
79 |
return COLLECTION_TYPE;
|
|
|
80 |
case 4: // PRODUCT_NAME
|
|
|
81 |
return PRODUCT_NAME;
|
|
|
82 |
case 5: // ADVANCE_AMOUNT
|
|
|
83 |
return ADVANCE_AMOUNT;
|
|
|
84 |
case 6: // CASH
|
|
|
85 |
return CASH;
|
|
|
86 |
case 7: // CARD
|
|
|
87 |
return CARD;
|
|
|
88 |
case 8: // ADDED_AT
|
|
|
89 |
return ADDED_AT;
|
|
|
90 |
case 9: // PUSHED_AT
|
|
|
91 |
return PUSHED_AT;
|
|
|
92 |
case 10: // PUSHED_TO_OCR
|
|
|
93 |
return PUSHED_TO_OCR;
|
|
|
94 |
default:
|
|
|
95 |
return null;
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
101 |
* if it is not found.
|
|
|
102 |
*/
|
|
|
103 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
104 |
_Fields fields = findByThriftId(fieldId);
|
|
|
105 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
106 |
return fields;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
111 |
*/
|
|
|
112 |
public static _Fields findByName(String name) {
|
|
|
113 |
return byName.get(name);
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
private final short _thriftId;
|
|
|
117 |
private final String _fieldName;
|
|
|
118 |
|
|
|
119 |
_Fields(short thriftId, String fieldName) {
|
|
|
120 |
_thriftId = thriftId;
|
|
|
121 |
_fieldName = fieldName;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public short getThriftFieldId() {
|
|
|
125 |
return _thriftId;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public String getFieldName() {
|
|
|
129 |
return _fieldName;
|
|
|
130 |
}
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
// isset id assignments
|
|
|
134 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
135 |
private static final int __ADVANCEAMOUNT_ISSET_ID = 1;
|
|
|
136 |
private static final int __CASH_ISSET_ID = 2;
|
|
|
137 |
private static final int __CARD_ISSET_ID = 3;
|
|
|
138 |
private static final int __ADDEDAT_ISSET_ID = 4;
|
|
|
139 |
private static final int __PUSHEDAT_ISSET_ID = 5;
|
|
|
140 |
private static final int __PUSHEDTOOCR_ISSET_ID = 6;
|
|
|
141 |
private BitSet __isset_bit_vector = new BitSet(7);
|
|
|
142 |
|
|
|
143 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
144 |
static {
|
|
|
145 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
146 |
tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
148 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
150 |
tmpMap.put(_Fields.COLLECTION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("collectionType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
152 |
tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
154 |
tmpMap.put(_Fields.ADVANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("advanceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
156 |
tmpMap.put(_Fields.CASH, new org.apache.thrift.meta_data.FieldMetaData("cash", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
158 |
tmpMap.put(_Fields.CARD, new org.apache.thrift.meta_data.FieldMetaData("card", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
160 |
tmpMap.put(_Fields.ADDED_AT, new org.apache.thrift.meta_data.FieldMetaData("addedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
162 |
tmpMap.put(_Fields.PUSHED_AT, new org.apache.thrift.meta_data.FieldMetaData("pushedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
163 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
164 |
tmpMap.put(_Fields.PUSHED_TO_OCR, new org.apache.thrift.meta_data.FieldMetaData("pushedToOcr", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
165 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
166 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
167 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StoreOrderCollection.class, metaDataMap);
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
public StoreOrderCollection() {
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
public StoreOrderCollection(
|
|
|
174 |
String hotspotId,
|
|
|
175 |
long orderId,
|
|
|
176 |
String collectionType,
|
|
|
177 |
String productName,
|
|
|
178 |
long advanceAmount,
|
|
|
179 |
long cash,
|
|
|
180 |
long card,
|
|
|
181 |
long addedAt,
|
|
|
182 |
long pushedAt,
|
|
|
183 |
boolean pushedToOcr)
|
|
|
184 |
{
|
|
|
185 |
this();
|
|
|
186 |
this.hotspotId = hotspotId;
|
|
|
187 |
this.orderId = orderId;
|
|
|
188 |
setOrderIdIsSet(true);
|
|
|
189 |
this.collectionType = collectionType;
|
|
|
190 |
this.productName = productName;
|
|
|
191 |
this.advanceAmount = advanceAmount;
|
|
|
192 |
setAdvanceAmountIsSet(true);
|
|
|
193 |
this.cash = cash;
|
|
|
194 |
setCashIsSet(true);
|
|
|
195 |
this.card = card;
|
|
|
196 |
setCardIsSet(true);
|
|
|
197 |
this.addedAt = addedAt;
|
|
|
198 |
setAddedAtIsSet(true);
|
|
|
199 |
this.pushedAt = pushedAt;
|
|
|
200 |
setPushedAtIsSet(true);
|
|
|
201 |
this.pushedToOcr = pushedToOcr;
|
|
|
202 |
setPushedToOcrIsSet(true);
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
/**
|
|
|
206 |
* Performs a deep copy on <i>other</i>.
|
|
|
207 |
*/
|
|
|
208 |
public StoreOrderCollection(StoreOrderCollection other) {
|
|
|
209 |
__isset_bit_vector.clear();
|
|
|
210 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
211 |
if (other.isSetHotspotId()) {
|
|
|
212 |
this.hotspotId = other.hotspotId;
|
|
|
213 |
}
|
|
|
214 |
this.orderId = other.orderId;
|
|
|
215 |
if (other.isSetCollectionType()) {
|
|
|
216 |
this.collectionType = other.collectionType;
|
|
|
217 |
}
|
|
|
218 |
if (other.isSetProductName()) {
|
|
|
219 |
this.productName = other.productName;
|
|
|
220 |
}
|
|
|
221 |
this.advanceAmount = other.advanceAmount;
|
|
|
222 |
this.cash = other.cash;
|
|
|
223 |
this.card = other.card;
|
|
|
224 |
this.addedAt = other.addedAt;
|
|
|
225 |
this.pushedAt = other.pushedAt;
|
|
|
226 |
this.pushedToOcr = other.pushedToOcr;
|
|
|
227 |
}
|
|
|
228 |
|
|
|
229 |
public StoreOrderCollection deepCopy() {
|
|
|
230 |
return new StoreOrderCollection(this);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
@Override
|
|
|
234 |
public void clear() {
|
|
|
235 |
this.hotspotId = null;
|
|
|
236 |
setOrderIdIsSet(false);
|
|
|
237 |
this.orderId = 0;
|
|
|
238 |
this.collectionType = null;
|
|
|
239 |
this.productName = null;
|
|
|
240 |
setAdvanceAmountIsSet(false);
|
|
|
241 |
this.advanceAmount = 0;
|
|
|
242 |
setCashIsSet(false);
|
|
|
243 |
this.cash = 0;
|
|
|
244 |
setCardIsSet(false);
|
|
|
245 |
this.card = 0;
|
|
|
246 |
setAddedAtIsSet(false);
|
|
|
247 |
this.addedAt = 0;
|
|
|
248 |
setPushedAtIsSet(false);
|
|
|
249 |
this.pushedAt = 0;
|
|
|
250 |
setPushedToOcrIsSet(false);
|
|
|
251 |
this.pushedToOcr = false;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
public String getHotspotId() {
|
|
|
255 |
return this.hotspotId;
|
|
|
256 |
}
|
|
|
257 |
|
|
|
258 |
public void setHotspotId(String hotspotId) {
|
|
|
259 |
this.hotspotId = hotspotId;
|
|
|
260 |
}
|
|
|
261 |
|
|
|
262 |
public void unsetHotspotId() {
|
|
|
263 |
this.hotspotId = null;
|
|
|
264 |
}
|
|
|
265 |
|
|
|
266 |
/** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
|
|
|
267 |
public boolean isSetHotspotId() {
|
|
|
268 |
return this.hotspotId != null;
|
|
|
269 |
}
|
|
|
270 |
|
|
|
271 |
public void setHotspotIdIsSet(boolean value) {
|
|
|
272 |
if (!value) {
|
|
|
273 |
this.hotspotId = null;
|
|
|
274 |
}
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
public long getOrderId() {
|
|
|
278 |
return this.orderId;
|
|
|
279 |
}
|
|
|
280 |
|
|
|
281 |
public void setOrderId(long orderId) {
|
|
|
282 |
this.orderId = orderId;
|
|
|
283 |
setOrderIdIsSet(true);
|
|
|
284 |
}
|
|
|
285 |
|
|
|
286 |
public void unsetOrderId() {
|
|
|
287 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
291 |
public boolean isSetOrderId() {
|
|
|
292 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public void setOrderIdIsSet(boolean value) {
|
|
|
296 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
public String getCollectionType() {
|
|
|
300 |
return this.collectionType;
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
public void setCollectionType(String collectionType) {
|
|
|
304 |
this.collectionType = collectionType;
|
|
|
305 |
}
|
|
|
306 |
|
|
|
307 |
public void unsetCollectionType() {
|
|
|
308 |
this.collectionType = null;
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
/** Returns true if field collectionType is set (has been assigned a value) and false otherwise */
|
|
|
312 |
public boolean isSetCollectionType() {
|
|
|
313 |
return this.collectionType != null;
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
public void setCollectionTypeIsSet(boolean value) {
|
|
|
317 |
if (!value) {
|
|
|
318 |
this.collectionType = null;
|
|
|
319 |
}
|
|
|
320 |
}
|
|
|
321 |
|
|
|
322 |
public String getProductName() {
|
|
|
323 |
return this.productName;
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void setProductName(String productName) {
|
|
|
327 |
this.productName = productName;
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
public void unsetProductName() {
|
|
|
331 |
this.productName = null;
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
/** Returns true if field productName is set (has been assigned a value) and false otherwise */
|
|
|
335 |
public boolean isSetProductName() {
|
|
|
336 |
return this.productName != null;
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public void setProductNameIsSet(boolean value) {
|
|
|
340 |
if (!value) {
|
|
|
341 |
this.productName = null;
|
|
|
342 |
}
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public long getAdvanceAmount() {
|
|
|
346 |
return this.advanceAmount;
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public void setAdvanceAmount(long advanceAmount) {
|
|
|
350 |
this.advanceAmount = advanceAmount;
|
|
|
351 |
setAdvanceAmountIsSet(true);
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void unsetAdvanceAmount() {
|
|
|
355 |
__isset_bit_vector.clear(__ADVANCEAMOUNT_ISSET_ID);
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
/** Returns true if field advanceAmount is set (has been assigned a value) and false otherwise */
|
|
|
359 |
public boolean isSetAdvanceAmount() {
|
|
|
360 |
return __isset_bit_vector.get(__ADVANCEAMOUNT_ISSET_ID);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public void setAdvanceAmountIsSet(boolean value) {
|
|
|
364 |
__isset_bit_vector.set(__ADVANCEAMOUNT_ISSET_ID, value);
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public long getCash() {
|
|
|
368 |
return this.cash;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void setCash(long cash) {
|
|
|
372 |
this.cash = cash;
|
|
|
373 |
setCashIsSet(true);
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void unsetCash() {
|
|
|
377 |
__isset_bit_vector.clear(__CASH_ISSET_ID);
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
/** Returns true if field cash is set (has been assigned a value) and false otherwise */
|
|
|
381 |
public boolean isSetCash() {
|
|
|
382 |
return __isset_bit_vector.get(__CASH_ISSET_ID);
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
public void setCashIsSet(boolean value) {
|
|
|
386 |
__isset_bit_vector.set(__CASH_ISSET_ID, value);
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
public long getCard() {
|
|
|
390 |
return this.card;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public void setCard(long card) {
|
|
|
394 |
this.card = card;
|
|
|
395 |
setCardIsSet(true);
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
public void unsetCard() {
|
|
|
399 |
__isset_bit_vector.clear(__CARD_ISSET_ID);
|
|
|
400 |
}
|
|
|
401 |
|
|
|
402 |
/** Returns true if field card is set (has been assigned a value) and false otherwise */
|
|
|
403 |
public boolean isSetCard() {
|
|
|
404 |
return __isset_bit_vector.get(__CARD_ISSET_ID);
|
|
|
405 |
}
|
|
|
406 |
|
|
|
407 |
public void setCardIsSet(boolean value) {
|
|
|
408 |
__isset_bit_vector.set(__CARD_ISSET_ID, value);
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
public long getAddedAt() {
|
|
|
412 |
return this.addedAt;
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public void setAddedAt(long addedAt) {
|
|
|
416 |
this.addedAt = addedAt;
|
|
|
417 |
setAddedAtIsSet(true);
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void unsetAddedAt() {
|
|
|
421 |
__isset_bit_vector.clear(__ADDEDAT_ISSET_ID);
|
|
|
422 |
}
|
|
|
423 |
|
|
|
424 |
/** Returns true if field addedAt is set (has been assigned a value) and false otherwise */
|
|
|
425 |
public boolean isSetAddedAt() {
|
|
|
426 |
return __isset_bit_vector.get(__ADDEDAT_ISSET_ID);
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void setAddedAtIsSet(boolean value) {
|
|
|
430 |
__isset_bit_vector.set(__ADDEDAT_ISSET_ID, value);
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
public long getPushedAt() {
|
|
|
434 |
return this.pushedAt;
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
public void setPushedAt(long pushedAt) {
|
|
|
438 |
this.pushedAt = pushedAt;
|
|
|
439 |
setPushedAtIsSet(true);
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public void unsetPushedAt() {
|
|
|
443 |
__isset_bit_vector.clear(__PUSHEDAT_ISSET_ID);
|
|
|
444 |
}
|
|
|
445 |
|
|
|
446 |
/** Returns true if field pushedAt is set (has been assigned a value) and false otherwise */
|
|
|
447 |
public boolean isSetPushedAt() {
|
|
|
448 |
return __isset_bit_vector.get(__PUSHEDAT_ISSET_ID);
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
public void setPushedAtIsSet(boolean value) {
|
|
|
452 |
__isset_bit_vector.set(__PUSHEDAT_ISSET_ID, value);
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public boolean isPushedToOcr() {
|
|
|
456 |
return this.pushedToOcr;
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
public void setPushedToOcr(boolean pushedToOcr) {
|
|
|
460 |
this.pushedToOcr = pushedToOcr;
|
|
|
461 |
setPushedToOcrIsSet(true);
|
|
|
462 |
}
|
|
|
463 |
|
|
|
464 |
public void unsetPushedToOcr() {
|
|
|
465 |
__isset_bit_vector.clear(__PUSHEDTOOCR_ISSET_ID);
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
/** Returns true if field pushedToOcr is set (has been assigned a value) and false otherwise */
|
|
|
469 |
public boolean isSetPushedToOcr() {
|
|
|
470 |
return __isset_bit_vector.get(__PUSHEDTOOCR_ISSET_ID);
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public void setPushedToOcrIsSet(boolean value) {
|
|
|
474 |
__isset_bit_vector.set(__PUSHEDTOOCR_ISSET_ID, value);
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
478 |
switch (field) {
|
|
|
479 |
case HOTSPOT_ID:
|
|
|
480 |
if (value == null) {
|
|
|
481 |
unsetHotspotId();
|
|
|
482 |
} else {
|
|
|
483 |
setHotspotId((String)value);
|
|
|
484 |
}
|
|
|
485 |
break;
|
|
|
486 |
|
|
|
487 |
case ORDER_ID:
|
|
|
488 |
if (value == null) {
|
|
|
489 |
unsetOrderId();
|
|
|
490 |
} else {
|
|
|
491 |
setOrderId((Long)value);
|
|
|
492 |
}
|
|
|
493 |
break;
|
|
|
494 |
|
|
|
495 |
case COLLECTION_TYPE:
|
|
|
496 |
if (value == null) {
|
|
|
497 |
unsetCollectionType();
|
|
|
498 |
} else {
|
|
|
499 |
setCollectionType((String)value);
|
|
|
500 |
}
|
|
|
501 |
break;
|
|
|
502 |
|
|
|
503 |
case PRODUCT_NAME:
|
|
|
504 |
if (value == null) {
|
|
|
505 |
unsetProductName();
|
|
|
506 |
} else {
|
|
|
507 |
setProductName((String)value);
|
|
|
508 |
}
|
|
|
509 |
break;
|
|
|
510 |
|
|
|
511 |
case ADVANCE_AMOUNT:
|
|
|
512 |
if (value == null) {
|
|
|
513 |
unsetAdvanceAmount();
|
|
|
514 |
} else {
|
|
|
515 |
setAdvanceAmount((Long)value);
|
|
|
516 |
}
|
|
|
517 |
break;
|
|
|
518 |
|
|
|
519 |
case CASH:
|
|
|
520 |
if (value == null) {
|
|
|
521 |
unsetCash();
|
|
|
522 |
} else {
|
|
|
523 |
setCash((Long)value);
|
|
|
524 |
}
|
|
|
525 |
break;
|
|
|
526 |
|
|
|
527 |
case CARD:
|
|
|
528 |
if (value == null) {
|
|
|
529 |
unsetCard();
|
|
|
530 |
} else {
|
|
|
531 |
setCard((Long)value);
|
|
|
532 |
}
|
|
|
533 |
break;
|
|
|
534 |
|
|
|
535 |
case ADDED_AT:
|
|
|
536 |
if (value == null) {
|
|
|
537 |
unsetAddedAt();
|
|
|
538 |
} else {
|
|
|
539 |
setAddedAt((Long)value);
|
|
|
540 |
}
|
|
|
541 |
break;
|
|
|
542 |
|
|
|
543 |
case PUSHED_AT:
|
|
|
544 |
if (value == null) {
|
|
|
545 |
unsetPushedAt();
|
|
|
546 |
} else {
|
|
|
547 |
setPushedAt((Long)value);
|
|
|
548 |
}
|
|
|
549 |
break;
|
|
|
550 |
|
|
|
551 |
case PUSHED_TO_OCR:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetPushedToOcr();
|
|
|
554 |
} else {
|
|
|
555 |
setPushedToOcr((Boolean)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
|
|
559 |
}
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public Object getFieldValue(_Fields field) {
|
|
|
563 |
switch (field) {
|
|
|
564 |
case HOTSPOT_ID:
|
|
|
565 |
return getHotspotId();
|
|
|
566 |
|
|
|
567 |
case ORDER_ID:
|
|
|
568 |
return Long.valueOf(getOrderId());
|
|
|
569 |
|
|
|
570 |
case COLLECTION_TYPE:
|
|
|
571 |
return getCollectionType();
|
|
|
572 |
|
|
|
573 |
case PRODUCT_NAME:
|
|
|
574 |
return getProductName();
|
|
|
575 |
|
|
|
576 |
case ADVANCE_AMOUNT:
|
|
|
577 |
return Long.valueOf(getAdvanceAmount());
|
|
|
578 |
|
|
|
579 |
case CASH:
|
|
|
580 |
return Long.valueOf(getCash());
|
|
|
581 |
|
|
|
582 |
case CARD:
|
|
|
583 |
return Long.valueOf(getCard());
|
|
|
584 |
|
|
|
585 |
case ADDED_AT:
|
|
|
586 |
return Long.valueOf(getAddedAt());
|
|
|
587 |
|
|
|
588 |
case PUSHED_AT:
|
|
|
589 |
return Long.valueOf(getPushedAt());
|
|
|
590 |
|
|
|
591 |
case PUSHED_TO_OCR:
|
|
|
592 |
return Boolean.valueOf(isPushedToOcr());
|
|
|
593 |
|
|
|
594 |
}
|
|
|
595 |
throw new IllegalStateException();
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
599 |
public boolean isSet(_Fields field) {
|
|
|
600 |
if (field == null) {
|
|
|
601 |
throw new IllegalArgumentException();
|
|
|
602 |
}
|
|
|
603 |
|
|
|
604 |
switch (field) {
|
|
|
605 |
case HOTSPOT_ID:
|
|
|
606 |
return isSetHotspotId();
|
|
|
607 |
case ORDER_ID:
|
|
|
608 |
return isSetOrderId();
|
|
|
609 |
case COLLECTION_TYPE:
|
|
|
610 |
return isSetCollectionType();
|
|
|
611 |
case PRODUCT_NAME:
|
|
|
612 |
return isSetProductName();
|
|
|
613 |
case ADVANCE_AMOUNT:
|
|
|
614 |
return isSetAdvanceAmount();
|
|
|
615 |
case CASH:
|
|
|
616 |
return isSetCash();
|
|
|
617 |
case CARD:
|
|
|
618 |
return isSetCard();
|
|
|
619 |
case ADDED_AT:
|
|
|
620 |
return isSetAddedAt();
|
|
|
621 |
case PUSHED_AT:
|
|
|
622 |
return isSetPushedAt();
|
|
|
623 |
case PUSHED_TO_OCR:
|
|
|
624 |
return isSetPushedToOcr();
|
|
|
625 |
}
|
|
|
626 |
throw new IllegalStateException();
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
@Override
|
|
|
630 |
public boolean equals(Object that) {
|
|
|
631 |
if (that == null)
|
|
|
632 |
return false;
|
|
|
633 |
if (that instanceof StoreOrderCollection)
|
|
|
634 |
return this.equals((StoreOrderCollection)that);
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
public boolean equals(StoreOrderCollection that) {
|
|
|
639 |
if (that == null)
|
|
|
640 |
return false;
|
|
|
641 |
|
|
|
642 |
boolean this_present_hotspotId = true && this.isSetHotspotId();
|
|
|
643 |
boolean that_present_hotspotId = true && that.isSetHotspotId();
|
|
|
644 |
if (this_present_hotspotId || that_present_hotspotId) {
|
|
|
645 |
if (!(this_present_hotspotId && that_present_hotspotId))
|
|
|
646 |
return false;
|
|
|
647 |
if (!this.hotspotId.equals(that.hotspotId))
|
|
|
648 |
return false;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
boolean this_present_orderId = true;
|
|
|
652 |
boolean that_present_orderId = true;
|
|
|
653 |
if (this_present_orderId || that_present_orderId) {
|
|
|
654 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
655 |
return false;
|
|
|
656 |
if (this.orderId != that.orderId)
|
|
|
657 |
return false;
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
boolean this_present_collectionType = true && this.isSetCollectionType();
|
|
|
661 |
boolean that_present_collectionType = true && that.isSetCollectionType();
|
|
|
662 |
if (this_present_collectionType || that_present_collectionType) {
|
|
|
663 |
if (!(this_present_collectionType && that_present_collectionType))
|
|
|
664 |
return false;
|
|
|
665 |
if (!this.collectionType.equals(that.collectionType))
|
|
|
666 |
return false;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
boolean this_present_productName = true && this.isSetProductName();
|
|
|
670 |
boolean that_present_productName = true && that.isSetProductName();
|
|
|
671 |
if (this_present_productName || that_present_productName) {
|
|
|
672 |
if (!(this_present_productName && that_present_productName))
|
|
|
673 |
return false;
|
|
|
674 |
if (!this.productName.equals(that.productName))
|
|
|
675 |
return false;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
boolean this_present_advanceAmount = true;
|
|
|
679 |
boolean that_present_advanceAmount = true;
|
|
|
680 |
if (this_present_advanceAmount || that_present_advanceAmount) {
|
|
|
681 |
if (!(this_present_advanceAmount && that_present_advanceAmount))
|
|
|
682 |
return false;
|
|
|
683 |
if (this.advanceAmount != that.advanceAmount)
|
|
|
684 |
return false;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
boolean this_present_cash = true;
|
|
|
688 |
boolean that_present_cash = true;
|
|
|
689 |
if (this_present_cash || that_present_cash) {
|
|
|
690 |
if (!(this_present_cash && that_present_cash))
|
|
|
691 |
return false;
|
|
|
692 |
if (this.cash != that.cash)
|
|
|
693 |
return false;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
boolean this_present_card = true;
|
|
|
697 |
boolean that_present_card = true;
|
|
|
698 |
if (this_present_card || that_present_card) {
|
|
|
699 |
if (!(this_present_card && that_present_card))
|
|
|
700 |
return false;
|
|
|
701 |
if (this.card != that.card)
|
|
|
702 |
return false;
|
|
|
703 |
}
|
|
|
704 |
|
|
|
705 |
boolean this_present_addedAt = true;
|
|
|
706 |
boolean that_present_addedAt = true;
|
|
|
707 |
if (this_present_addedAt || that_present_addedAt) {
|
|
|
708 |
if (!(this_present_addedAt && that_present_addedAt))
|
|
|
709 |
return false;
|
|
|
710 |
if (this.addedAt != that.addedAt)
|
|
|
711 |
return false;
|
|
|
712 |
}
|
|
|
713 |
|
|
|
714 |
boolean this_present_pushedAt = true;
|
|
|
715 |
boolean that_present_pushedAt = true;
|
|
|
716 |
if (this_present_pushedAt || that_present_pushedAt) {
|
|
|
717 |
if (!(this_present_pushedAt && that_present_pushedAt))
|
|
|
718 |
return false;
|
|
|
719 |
if (this.pushedAt != that.pushedAt)
|
|
|
720 |
return false;
|
|
|
721 |
}
|
|
|
722 |
|
|
|
723 |
boolean this_present_pushedToOcr = true;
|
|
|
724 |
boolean that_present_pushedToOcr = true;
|
|
|
725 |
if (this_present_pushedToOcr || that_present_pushedToOcr) {
|
|
|
726 |
if (!(this_present_pushedToOcr && that_present_pushedToOcr))
|
|
|
727 |
return false;
|
|
|
728 |
if (this.pushedToOcr != that.pushedToOcr)
|
|
|
729 |
return false;
|
|
|
730 |
}
|
|
|
731 |
|
|
|
732 |
return true;
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
@Override
|
|
|
736 |
public int hashCode() {
|
|
|
737 |
return 0;
|
|
|
738 |
}
|
|
|
739 |
|
|
|
740 |
public int compareTo(StoreOrderCollection other) {
|
|
|
741 |
if (!getClass().equals(other.getClass())) {
|
|
|
742 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
int lastComparison = 0;
|
|
|
746 |
StoreOrderCollection typedOther = (StoreOrderCollection)other;
|
|
|
747 |
|
|
|
748 |
lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
|
|
|
749 |
if (lastComparison != 0) {
|
|
|
750 |
return lastComparison;
|
|
|
751 |
}
|
|
|
752 |
if (isSetHotspotId()) {
|
|
|
753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
|
|
|
754 |
if (lastComparison != 0) {
|
|
|
755 |
return lastComparison;
|
|
|
756 |
}
|
|
|
757 |
}
|
|
|
758 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
759 |
if (lastComparison != 0) {
|
|
|
760 |
return lastComparison;
|
|
|
761 |
}
|
|
|
762 |
if (isSetOrderId()) {
|
|
|
763 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
764 |
if (lastComparison != 0) {
|
|
|
765 |
return lastComparison;
|
|
|
766 |
}
|
|
|
767 |
}
|
|
|
768 |
lastComparison = Boolean.valueOf(isSetCollectionType()).compareTo(typedOther.isSetCollectionType());
|
|
|
769 |
if (lastComparison != 0) {
|
|
|
770 |
return lastComparison;
|
|
|
771 |
}
|
|
|
772 |
if (isSetCollectionType()) {
|
|
|
773 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.collectionType, typedOther.collectionType);
|
|
|
774 |
if (lastComparison != 0) {
|
|
|
775 |
return lastComparison;
|
|
|
776 |
}
|
|
|
777 |
}
|
|
|
778 |
lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
|
|
|
779 |
if (lastComparison != 0) {
|
|
|
780 |
return lastComparison;
|
|
|
781 |
}
|
|
|
782 |
if (isSetProductName()) {
|
|
|
783 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
|
|
|
784 |
if (lastComparison != 0) {
|
|
|
785 |
return lastComparison;
|
|
|
786 |
}
|
|
|
787 |
}
|
|
|
788 |
lastComparison = Boolean.valueOf(isSetAdvanceAmount()).compareTo(typedOther.isSetAdvanceAmount());
|
|
|
789 |
if (lastComparison != 0) {
|
|
|
790 |
return lastComparison;
|
|
|
791 |
}
|
|
|
792 |
if (isSetAdvanceAmount()) {
|
|
|
793 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.advanceAmount, typedOther.advanceAmount);
|
|
|
794 |
if (lastComparison != 0) {
|
|
|
795 |
return lastComparison;
|
|
|
796 |
}
|
|
|
797 |
}
|
|
|
798 |
lastComparison = Boolean.valueOf(isSetCash()).compareTo(typedOther.isSetCash());
|
|
|
799 |
if (lastComparison != 0) {
|
|
|
800 |
return lastComparison;
|
|
|
801 |
}
|
|
|
802 |
if (isSetCash()) {
|
|
|
803 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash, typedOther.cash);
|
|
|
804 |
if (lastComparison != 0) {
|
|
|
805 |
return lastComparison;
|
|
|
806 |
}
|
|
|
807 |
}
|
|
|
808 |
lastComparison = Boolean.valueOf(isSetCard()).compareTo(typedOther.isSetCard());
|
|
|
809 |
if (lastComparison != 0) {
|
|
|
810 |
return lastComparison;
|
|
|
811 |
}
|
|
|
812 |
if (isSetCard()) {
|
|
|
813 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.card, typedOther.card);
|
|
|
814 |
if (lastComparison != 0) {
|
|
|
815 |
return lastComparison;
|
|
|
816 |
}
|
|
|
817 |
}
|
|
|
818 |
lastComparison = Boolean.valueOf(isSetAddedAt()).compareTo(typedOther.isSetAddedAt());
|
|
|
819 |
if (lastComparison != 0) {
|
|
|
820 |
return lastComparison;
|
|
|
821 |
}
|
|
|
822 |
if (isSetAddedAt()) {
|
|
|
823 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedAt, typedOther.addedAt);
|
|
|
824 |
if (lastComparison != 0) {
|
|
|
825 |
return lastComparison;
|
|
|
826 |
}
|
|
|
827 |
}
|
|
|
828 |
lastComparison = Boolean.valueOf(isSetPushedAt()).compareTo(typedOther.isSetPushedAt());
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
|
|
832 |
if (isSetPushedAt()) {
|
|
|
833 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pushedAt, typedOther.pushedAt);
|
|
|
834 |
if (lastComparison != 0) {
|
|
|
835 |
return lastComparison;
|
|
|
836 |
}
|
|
|
837 |
}
|
|
|
838 |
lastComparison = Boolean.valueOf(isSetPushedToOcr()).compareTo(typedOther.isSetPushedToOcr());
|
|
|
839 |
if (lastComparison != 0) {
|
|
|
840 |
return lastComparison;
|
|
|
841 |
}
|
|
|
842 |
if (isSetPushedToOcr()) {
|
|
|
843 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pushedToOcr, typedOther.pushedToOcr);
|
|
|
844 |
if (lastComparison != 0) {
|
|
|
845 |
return lastComparison;
|
|
|
846 |
}
|
|
|
847 |
}
|
|
|
848 |
return 0;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
public _Fields fieldForId(int fieldId) {
|
|
|
852 |
return _Fields.findByThriftId(fieldId);
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
856 |
org.apache.thrift.protocol.TField field;
|
|
|
857 |
iprot.readStructBegin();
|
|
|
858 |
while (true)
|
|
|
859 |
{
|
|
|
860 |
field = iprot.readFieldBegin();
|
|
|
861 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
862 |
break;
|
|
|
863 |
}
|
|
|
864 |
switch (field.id) {
|
|
|
865 |
case 1: // HOTSPOT_ID
|
|
|
866 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
867 |
this.hotspotId = iprot.readString();
|
|
|
868 |
} else {
|
|
|
869 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
870 |
}
|
|
|
871 |
break;
|
|
|
872 |
case 2: // ORDER_ID
|
|
|
873 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
874 |
this.orderId = iprot.readI64();
|
|
|
875 |
setOrderIdIsSet(true);
|
|
|
876 |
} else {
|
|
|
877 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
878 |
}
|
|
|
879 |
break;
|
|
|
880 |
case 3: // COLLECTION_TYPE
|
|
|
881 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
882 |
this.collectionType = iprot.readString();
|
|
|
883 |
} else {
|
|
|
884 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
885 |
}
|
|
|
886 |
break;
|
|
|
887 |
case 4: // PRODUCT_NAME
|
|
|
888 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
889 |
this.productName = iprot.readString();
|
|
|
890 |
} else {
|
|
|
891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
892 |
}
|
|
|
893 |
break;
|
|
|
894 |
case 5: // ADVANCE_AMOUNT
|
|
|
895 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
896 |
this.advanceAmount = iprot.readI64();
|
|
|
897 |
setAdvanceAmountIsSet(true);
|
|
|
898 |
} else {
|
|
|
899 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
900 |
}
|
|
|
901 |
break;
|
|
|
902 |
case 6: // CASH
|
|
|
903 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
904 |
this.cash = iprot.readI64();
|
|
|
905 |
setCashIsSet(true);
|
|
|
906 |
} else {
|
|
|
907 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
908 |
}
|
|
|
909 |
break;
|
|
|
910 |
case 7: // CARD
|
|
|
911 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
912 |
this.card = iprot.readI64();
|
|
|
913 |
setCardIsSet(true);
|
|
|
914 |
} else {
|
|
|
915 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
916 |
}
|
|
|
917 |
break;
|
|
|
918 |
case 8: // ADDED_AT
|
|
|
919 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
920 |
this.addedAt = iprot.readI64();
|
|
|
921 |
setAddedAtIsSet(true);
|
|
|
922 |
} else {
|
|
|
923 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
924 |
}
|
|
|
925 |
break;
|
|
|
926 |
case 9: // PUSHED_AT
|
|
|
927 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
928 |
this.pushedAt = iprot.readI64();
|
|
|
929 |
setPushedAtIsSet(true);
|
|
|
930 |
} else {
|
|
|
931 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
932 |
}
|
|
|
933 |
break;
|
|
|
934 |
case 10: // PUSHED_TO_OCR
|
|
|
935 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
936 |
this.pushedToOcr = iprot.readBool();
|
|
|
937 |
setPushedToOcrIsSet(true);
|
|
|
938 |
} else {
|
|
|
939 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
940 |
}
|
|
|
941 |
break;
|
|
|
942 |
default:
|
|
|
943 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
944 |
}
|
|
|
945 |
iprot.readFieldEnd();
|
|
|
946 |
}
|
|
|
947 |
iprot.readStructEnd();
|
|
|
948 |
validate();
|
|
|
949 |
}
|
|
|
950 |
|
|
|
951 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
952 |
validate();
|
|
|
953 |
|
|
|
954 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
955 |
if (this.hotspotId != null) {
|
|
|
956 |
oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
|
|
|
957 |
oprot.writeString(this.hotspotId);
|
|
|
958 |
oprot.writeFieldEnd();
|
|
|
959 |
}
|
|
|
960 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
961 |
oprot.writeI64(this.orderId);
|
|
|
962 |
oprot.writeFieldEnd();
|
|
|
963 |
if (this.collectionType != null) {
|
|
|
964 |
oprot.writeFieldBegin(COLLECTION_TYPE_FIELD_DESC);
|
|
|
965 |
oprot.writeString(this.collectionType);
|
|
|
966 |
oprot.writeFieldEnd();
|
|
|
967 |
}
|
|
|
968 |
if (this.productName != null) {
|
|
|
969 |
oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
|
|
|
970 |
oprot.writeString(this.productName);
|
|
|
971 |
oprot.writeFieldEnd();
|
|
|
972 |
}
|
|
|
973 |
oprot.writeFieldBegin(ADVANCE_AMOUNT_FIELD_DESC);
|
|
|
974 |
oprot.writeI64(this.advanceAmount);
|
|
|
975 |
oprot.writeFieldEnd();
|
|
|
976 |
oprot.writeFieldBegin(CASH_FIELD_DESC);
|
|
|
977 |
oprot.writeI64(this.cash);
|
|
|
978 |
oprot.writeFieldEnd();
|
|
|
979 |
oprot.writeFieldBegin(CARD_FIELD_DESC);
|
|
|
980 |
oprot.writeI64(this.card);
|
|
|
981 |
oprot.writeFieldEnd();
|
|
|
982 |
oprot.writeFieldBegin(ADDED_AT_FIELD_DESC);
|
|
|
983 |
oprot.writeI64(this.addedAt);
|
|
|
984 |
oprot.writeFieldEnd();
|
|
|
985 |
oprot.writeFieldBegin(PUSHED_AT_FIELD_DESC);
|
|
|
986 |
oprot.writeI64(this.pushedAt);
|
|
|
987 |
oprot.writeFieldEnd();
|
|
|
988 |
oprot.writeFieldBegin(PUSHED_TO_OCR_FIELD_DESC);
|
|
|
989 |
oprot.writeBool(this.pushedToOcr);
|
|
|
990 |
oprot.writeFieldEnd();
|
|
|
991 |
oprot.writeFieldStop();
|
|
|
992 |
oprot.writeStructEnd();
|
|
|
993 |
}
|
|
|
994 |
|
|
|
995 |
@Override
|
|
|
996 |
public String toString() {
|
|
|
997 |
StringBuilder sb = new StringBuilder("StoreOrderCollection(");
|
|
|
998 |
boolean first = true;
|
|
|
999 |
|
|
|
1000 |
sb.append("hotspotId:");
|
|
|
1001 |
if (this.hotspotId == null) {
|
|
|
1002 |
sb.append("null");
|
|
|
1003 |
} else {
|
|
|
1004 |
sb.append(this.hotspotId);
|
|
|
1005 |
}
|
|
|
1006 |
first = false;
|
|
|
1007 |
if (!first) sb.append(", ");
|
|
|
1008 |
sb.append("orderId:");
|
|
|
1009 |
sb.append(this.orderId);
|
|
|
1010 |
first = false;
|
|
|
1011 |
if (!first) sb.append(", ");
|
|
|
1012 |
sb.append("collectionType:");
|
|
|
1013 |
if (this.collectionType == null) {
|
|
|
1014 |
sb.append("null");
|
|
|
1015 |
} else {
|
|
|
1016 |
sb.append(this.collectionType);
|
|
|
1017 |
}
|
|
|
1018 |
first = false;
|
|
|
1019 |
if (!first) sb.append(", ");
|
|
|
1020 |
sb.append("productName:");
|
|
|
1021 |
if (this.productName == null) {
|
|
|
1022 |
sb.append("null");
|
|
|
1023 |
} else {
|
|
|
1024 |
sb.append(this.productName);
|
|
|
1025 |
}
|
|
|
1026 |
first = false;
|
|
|
1027 |
if (!first) sb.append(", ");
|
|
|
1028 |
sb.append("advanceAmount:");
|
|
|
1029 |
sb.append(this.advanceAmount);
|
|
|
1030 |
first = false;
|
|
|
1031 |
if (!first) sb.append(", ");
|
|
|
1032 |
sb.append("cash:");
|
|
|
1033 |
sb.append(this.cash);
|
|
|
1034 |
first = false;
|
|
|
1035 |
if (!first) sb.append(", ");
|
|
|
1036 |
sb.append("card:");
|
|
|
1037 |
sb.append(this.card);
|
|
|
1038 |
first = false;
|
|
|
1039 |
if (!first) sb.append(", ");
|
|
|
1040 |
sb.append("addedAt:");
|
|
|
1041 |
sb.append(this.addedAt);
|
|
|
1042 |
first = false;
|
|
|
1043 |
if (!first) sb.append(", ");
|
|
|
1044 |
sb.append("pushedAt:");
|
|
|
1045 |
sb.append(this.pushedAt);
|
|
|
1046 |
first = false;
|
|
|
1047 |
if (!first) sb.append(", ");
|
|
|
1048 |
sb.append("pushedToOcr:");
|
|
|
1049 |
sb.append(this.pushedToOcr);
|
|
|
1050 |
first = false;
|
|
|
1051 |
sb.append(")");
|
|
|
1052 |
return sb.toString();
|
|
|
1053 |
}
|
|
|
1054 |
|
|
|
1055 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1056 |
// check for required fields
|
|
|
1057 |
}
|
|
|
1058 |
|
|
|
1059 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1060 |
try {
|
|
|
1061 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1062 |
} catch (org.apache.thrift.TException te) {
|
|
|
1063 |
throw new java.io.IOException(te);
|
|
|
1064 |
}
|
|
|
1065 |
}
|
|
|
1066 |
|
|
|
1067 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1068 |
try {
|
|
|
1069 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1070 |
__isset_bit_vector = new BitSet(1);
|
|
|
1071 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1072 |
} catch (org.apache.thrift.TException te) {
|
|
|
1073 |
throw new java.io.IOException(te);
|
|
|
1074 |
}
|
|
|
1075 |
}
|
|
|
1076 |
|
|
|
1077 |
}
|
|
|
1078 |
|