| 6031 |
rajveer |
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 UserWalletHistory implements org.apache.thrift.TBase<UserWalletHistory, UserWalletHistory._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserWalletHistory");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField WALLET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("walletId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
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)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 22043 |
amit.gupta |
31 |
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField REFERENCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceType", org.apache.thrift.protocol.TType.I32, (short)8);
|
| 6031 |
rajveer |
34 |
|
|
|
35 |
private long id; // required
|
|
|
36 |
private long walletId; // required
|
|
|
37 |
private long orderId; // required
|
|
|
38 |
private long amount; // required
|
|
|
39 |
private long timestamp; // required
|
| 22043 |
amit.gupta |
40 |
private String description; // required
|
|
|
41 |
private String referenceNumber; // required
|
|
|
42 |
private WalletReferenceType referenceType; // required
|
| 6031 |
rajveer |
43 |
|
|
|
44 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
45 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
46 |
ID((short)1, "id"),
|
|
|
47 |
WALLET_ID((short)2, "walletId"),
|
|
|
48 |
ORDER_ID((short)3, "orderId"),
|
|
|
49 |
AMOUNT((short)4, "amount"),
|
| 22043 |
amit.gupta |
50 |
TIMESTAMP((short)5, "timestamp"),
|
|
|
51 |
DESCRIPTION((short)6, "description"),
|
|
|
52 |
REFERENCE_NUMBER((short)7, "referenceNumber"),
|
|
|
53 |
/**
|
|
|
54 |
*
|
|
|
55 |
* @see WalletReferenceType
|
|
|
56 |
*/
|
|
|
57 |
REFERENCE_TYPE((short)8, "referenceType");
|
| 6031 |
rajveer |
58 |
|
|
|
59 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
60 |
|
|
|
61 |
static {
|
|
|
62 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
63 |
byName.put(field.getFieldName(), field);
|
|
|
64 |
}
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
/**
|
|
|
68 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
69 |
*/
|
|
|
70 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
71 |
switch(fieldId) {
|
|
|
72 |
case 1: // ID
|
|
|
73 |
return ID;
|
|
|
74 |
case 2: // WALLET_ID
|
|
|
75 |
return WALLET_ID;
|
|
|
76 |
case 3: // ORDER_ID
|
|
|
77 |
return ORDER_ID;
|
|
|
78 |
case 4: // AMOUNT
|
|
|
79 |
return AMOUNT;
|
|
|
80 |
case 5: // TIMESTAMP
|
|
|
81 |
return TIMESTAMP;
|
| 22043 |
amit.gupta |
82 |
case 6: // DESCRIPTION
|
|
|
83 |
return DESCRIPTION;
|
|
|
84 |
case 7: // REFERENCE_NUMBER
|
|
|
85 |
return REFERENCE_NUMBER;
|
|
|
86 |
case 8: // REFERENCE_TYPE
|
|
|
87 |
return REFERENCE_TYPE;
|
| 6031 |
rajveer |
88 |
default:
|
|
|
89 |
return null;
|
|
|
90 |
}
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
95 |
* if it is not found.
|
|
|
96 |
*/
|
|
|
97 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
98 |
_Fields fields = findByThriftId(fieldId);
|
|
|
99 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
100 |
return fields;
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
105 |
*/
|
|
|
106 |
public static _Fields findByName(String name) {
|
|
|
107 |
return byName.get(name);
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
private final short _thriftId;
|
|
|
111 |
private final String _fieldName;
|
|
|
112 |
|
|
|
113 |
_Fields(short thriftId, String fieldName) {
|
|
|
114 |
_thriftId = thriftId;
|
|
|
115 |
_fieldName = fieldName;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public short getThriftFieldId() {
|
|
|
119 |
return _thriftId;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public String getFieldName() {
|
|
|
123 |
return _fieldName;
|
|
|
124 |
}
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
// isset id assignments
|
|
|
128 |
private static final int __ID_ISSET_ID = 0;
|
|
|
129 |
private static final int __WALLETID_ISSET_ID = 1;
|
|
|
130 |
private static final int __ORDERID_ISSET_ID = 2;
|
|
|
131 |
private static final int __AMOUNT_ISSET_ID = 3;
|
|
|
132 |
private static final int __TIMESTAMP_ISSET_ID = 4;
|
|
|
133 |
private BitSet __isset_bit_vector = new BitSet(5);
|
|
|
134 |
|
|
|
135 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
136 |
static {
|
|
|
137 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
138 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
139 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
140 |
tmpMap.put(_Fields.WALLET_ID, new org.apache.thrift.meta_data.FieldMetaData("walletId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
141 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
142 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
144 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
146 |
tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 22043 |
amit.gupta |
148 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
150 |
tmpMap.put(_Fields.REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("referenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
152 |
tmpMap.put(_Fields.REFERENCE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("referenceType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WalletReferenceType.class)));
|
| 6031 |
rajveer |
154 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
155 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserWalletHistory.class, metaDataMap);
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
public UserWalletHistory() {
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
public UserWalletHistory(
|
|
|
162 |
long id,
|
|
|
163 |
long walletId,
|
|
|
164 |
long orderId,
|
|
|
165 |
long amount,
|
| 22043 |
amit.gupta |
166 |
long timestamp,
|
|
|
167 |
String description,
|
|
|
168 |
String referenceNumber,
|
|
|
169 |
WalletReferenceType referenceType)
|
| 6031 |
rajveer |
170 |
{
|
|
|
171 |
this();
|
|
|
172 |
this.id = id;
|
|
|
173 |
setIdIsSet(true);
|
|
|
174 |
this.walletId = walletId;
|
|
|
175 |
setWalletIdIsSet(true);
|
|
|
176 |
this.orderId = orderId;
|
|
|
177 |
setOrderIdIsSet(true);
|
|
|
178 |
this.amount = amount;
|
|
|
179 |
setAmountIsSet(true);
|
|
|
180 |
this.timestamp = timestamp;
|
|
|
181 |
setTimestampIsSet(true);
|
| 22043 |
amit.gupta |
182 |
this.description = description;
|
|
|
183 |
this.referenceNumber = referenceNumber;
|
|
|
184 |
this.referenceType = referenceType;
|
| 6031 |
rajveer |
185 |
}
|
|
|
186 |
|
|
|
187 |
/**
|
|
|
188 |
* Performs a deep copy on <i>other</i>.
|
|
|
189 |
*/
|
|
|
190 |
public UserWalletHistory(UserWalletHistory other) {
|
|
|
191 |
__isset_bit_vector.clear();
|
|
|
192 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
193 |
this.id = other.id;
|
|
|
194 |
this.walletId = other.walletId;
|
|
|
195 |
this.orderId = other.orderId;
|
|
|
196 |
this.amount = other.amount;
|
|
|
197 |
this.timestamp = other.timestamp;
|
| 22043 |
amit.gupta |
198 |
if (other.isSetDescription()) {
|
|
|
199 |
this.description = other.description;
|
|
|
200 |
}
|
|
|
201 |
if (other.isSetReferenceNumber()) {
|
|
|
202 |
this.referenceNumber = other.referenceNumber;
|
|
|
203 |
}
|
|
|
204 |
if (other.isSetReferenceType()) {
|
|
|
205 |
this.referenceType = other.referenceType;
|
|
|
206 |
}
|
| 6031 |
rajveer |
207 |
}
|
|
|
208 |
|
|
|
209 |
public UserWalletHistory deepCopy() {
|
|
|
210 |
return new UserWalletHistory(this);
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
@Override
|
|
|
214 |
public void clear() {
|
|
|
215 |
setIdIsSet(false);
|
|
|
216 |
this.id = 0;
|
|
|
217 |
setWalletIdIsSet(false);
|
|
|
218 |
this.walletId = 0;
|
|
|
219 |
setOrderIdIsSet(false);
|
|
|
220 |
this.orderId = 0;
|
|
|
221 |
setAmountIsSet(false);
|
|
|
222 |
this.amount = 0;
|
|
|
223 |
setTimestampIsSet(false);
|
|
|
224 |
this.timestamp = 0;
|
| 22043 |
amit.gupta |
225 |
this.description = null;
|
|
|
226 |
this.referenceNumber = null;
|
|
|
227 |
this.referenceType = null;
|
| 6031 |
rajveer |
228 |
}
|
|
|
229 |
|
|
|
230 |
public long getId() {
|
|
|
231 |
return this.id;
|
|
|
232 |
}
|
|
|
233 |
|
|
|
234 |
public void setId(long id) {
|
|
|
235 |
this.id = id;
|
|
|
236 |
setIdIsSet(true);
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
public void unsetId() {
|
|
|
240 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
241 |
}
|
|
|
242 |
|
|
|
243 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
244 |
public boolean isSetId() {
|
|
|
245 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
246 |
}
|
|
|
247 |
|
|
|
248 |
public void setIdIsSet(boolean value) {
|
|
|
249 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
public long getWalletId() {
|
|
|
253 |
return this.walletId;
|
|
|
254 |
}
|
|
|
255 |
|
|
|
256 |
public void setWalletId(long walletId) {
|
|
|
257 |
this.walletId = walletId;
|
|
|
258 |
setWalletIdIsSet(true);
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
public void unsetWalletId() {
|
|
|
262 |
__isset_bit_vector.clear(__WALLETID_ISSET_ID);
|
|
|
263 |
}
|
|
|
264 |
|
|
|
265 |
/** Returns true if field walletId is set (has been assigned a value) and false otherwise */
|
|
|
266 |
public boolean isSetWalletId() {
|
|
|
267 |
return __isset_bit_vector.get(__WALLETID_ISSET_ID);
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
public void setWalletIdIsSet(boolean value) {
|
|
|
271 |
__isset_bit_vector.set(__WALLETID_ISSET_ID, value);
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
public long getOrderId() {
|
|
|
275 |
return this.orderId;
|
|
|
276 |
}
|
|
|
277 |
|
|
|
278 |
public void setOrderId(long orderId) {
|
|
|
279 |
this.orderId = orderId;
|
|
|
280 |
setOrderIdIsSet(true);
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
public void unsetOrderId() {
|
|
|
284 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
288 |
public boolean isSetOrderId() {
|
|
|
289 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
public void setOrderIdIsSet(boolean value) {
|
|
|
293 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
294 |
}
|
|
|
295 |
|
|
|
296 |
public long getAmount() {
|
|
|
297 |
return this.amount;
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
public void setAmount(long amount) {
|
|
|
301 |
this.amount = amount;
|
|
|
302 |
setAmountIsSet(true);
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
public void unsetAmount() {
|
|
|
306 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
307 |
}
|
|
|
308 |
|
|
|
309 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
|
|
310 |
public boolean isSetAmount() {
|
|
|
311 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
public void setAmountIsSet(boolean value) {
|
|
|
315 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
316 |
}
|
|
|
317 |
|
|
|
318 |
public long getTimestamp() {
|
|
|
319 |
return this.timestamp;
|
|
|
320 |
}
|
|
|
321 |
|
|
|
322 |
public void setTimestamp(long timestamp) {
|
|
|
323 |
this.timestamp = timestamp;
|
|
|
324 |
setTimestampIsSet(true);
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public void unsetTimestamp() {
|
|
|
328 |
__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
|
|
|
329 |
}
|
|
|
330 |
|
|
|
331 |
/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
|
|
|
332 |
public boolean isSetTimestamp() {
|
|
|
333 |
return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
|
|
|
334 |
}
|
|
|
335 |
|
|
|
336 |
public void setTimestampIsSet(boolean value) {
|
|
|
337 |
__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
|
|
|
338 |
}
|
|
|
339 |
|
| 22043 |
amit.gupta |
340 |
public String getDescription() {
|
|
|
341 |
return this.description;
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public void setDescription(String description) {
|
|
|
345 |
this.description = description;
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void unsetDescription() {
|
|
|
349 |
this.description = null;
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
/** Returns true if field description is set (has been assigned a value) and false otherwise */
|
|
|
353 |
public boolean isSetDescription() {
|
|
|
354 |
return this.description != null;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
public void setDescriptionIsSet(boolean value) {
|
|
|
358 |
if (!value) {
|
|
|
359 |
this.description = null;
|
|
|
360 |
}
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public String getReferenceNumber() {
|
|
|
364 |
return this.referenceNumber;
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public void setReferenceNumber(String referenceNumber) {
|
|
|
368 |
this.referenceNumber = referenceNumber;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void unsetReferenceNumber() {
|
|
|
372 |
this.referenceNumber = null;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
/** Returns true if field referenceNumber is set (has been assigned a value) and false otherwise */
|
|
|
376 |
public boolean isSetReferenceNumber() {
|
|
|
377 |
return this.referenceNumber != null;
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
public void setReferenceNumberIsSet(boolean value) {
|
|
|
381 |
if (!value) {
|
|
|
382 |
this.referenceNumber = null;
|
|
|
383 |
}
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
/**
|
|
|
387 |
*
|
|
|
388 |
* @see WalletReferenceType
|
|
|
389 |
*/
|
|
|
390 |
public WalletReferenceType getReferenceType() {
|
|
|
391 |
return this.referenceType;
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
/**
|
|
|
395 |
*
|
|
|
396 |
* @see WalletReferenceType
|
|
|
397 |
*/
|
|
|
398 |
public void setReferenceType(WalletReferenceType referenceType) {
|
|
|
399 |
this.referenceType = referenceType;
|
|
|
400 |
}
|
|
|
401 |
|
|
|
402 |
public void unsetReferenceType() {
|
|
|
403 |
this.referenceType = null;
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
/** Returns true if field referenceType is set (has been assigned a value) and false otherwise */
|
|
|
407 |
public boolean isSetReferenceType() {
|
|
|
408 |
return this.referenceType != null;
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
public void setReferenceTypeIsSet(boolean value) {
|
|
|
412 |
if (!value) {
|
|
|
413 |
this.referenceType = null;
|
|
|
414 |
}
|
|
|
415 |
}
|
|
|
416 |
|
| 6031 |
rajveer |
417 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
418 |
switch (field) {
|
|
|
419 |
case ID:
|
|
|
420 |
if (value == null) {
|
|
|
421 |
unsetId();
|
|
|
422 |
} else {
|
|
|
423 |
setId((Long)value);
|
|
|
424 |
}
|
|
|
425 |
break;
|
|
|
426 |
|
|
|
427 |
case WALLET_ID:
|
|
|
428 |
if (value == null) {
|
|
|
429 |
unsetWalletId();
|
|
|
430 |
} else {
|
|
|
431 |
setWalletId((Long)value);
|
|
|
432 |
}
|
|
|
433 |
break;
|
|
|
434 |
|
|
|
435 |
case ORDER_ID:
|
|
|
436 |
if (value == null) {
|
|
|
437 |
unsetOrderId();
|
|
|
438 |
} else {
|
|
|
439 |
setOrderId((Long)value);
|
|
|
440 |
}
|
|
|
441 |
break;
|
|
|
442 |
|
|
|
443 |
case AMOUNT:
|
|
|
444 |
if (value == null) {
|
|
|
445 |
unsetAmount();
|
|
|
446 |
} else {
|
|
|
447 |
setAmount((Long)value);
|
|
|
448 |
}
|
|
|
449 |
break;
|
|
|
450 |
|
|
|
451 |
case TIMESTAMP:
|
|
|
452 |
if (value == null) {
|
|
|
453 |
unsetTimestamp();
|
|
|
454 |
} else {
|
|
|
455 |
setTimestamp((Long)value);
|
|
|
456 |
}
|
|
|
457 |
break;
|
|
|
458 |
|
| 22043 |
amit.gupta |
459 |
case DESCRIPTION:
|
|
|
460 |
if (value == null) {
|
|
|
461 |
unsetDescription();
|
|
|
462 |
} else {
|
|
|
463 |
setDescription((String)value);
|
|
|
464 |
}
|
|
|
465 |
break;
|
|
|
466 |
|
|
|
467 |
case REFERENCE_NUMBER:
|
|
|
468 |
if (value == null) {
|
|
|
469 |
unsetReferenceNumber();
|
|
|
470 |
} else {
|
|
|
471 |
setReferenceNumber((String)value);
|
|
|
472 |
}
|
|
|
473 |
break;
|
|
|
474 |
|
|
|
475 |
case REFERENCE_TYPE:
|
|
|
476 |
if (value == null) {
|
|
|
477 |
unsetReferenceType();
|
|
|
478 |
} else {
|
|
|
479 |
setReferenceType((WalletReferenceType)value);
|
|
|
480 |
}
|
|
|
481 |
break;
|
|
|
482 |
|
| 6031 |
rajveer |
483 |
}
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
public Object getFieldValue(_Fields field) {
|
|
|
487 |
switch (field) {
|
|
|
488 |
case ID:
|
|
|
489 |
return Long.valueOf(getId());
|
|
|
490 |
|
|
|
491 |
case WALLET_ID:
|
|
|
492 |
return Long.valueOf(getWalletId());
|
|
|
493 |
|
|
|
494 |
case ORDER_ID:
|
|
|
495 |
return Long.valueOf(getOrderId());
|
|
|
496 |
|
|
|
497 |
case AMOUNT:
|
|
|
498 |
return Long.valueOf(getAmount());
|
|
|
499 |
|
|
|
500 |
case TIMESTAMP:
|
|
|
501 |
return Long.valueOf(getTimestamp());
|
|
|
502 |
|
| 22043 |
amit.gupta |
503 |
case DESCRIPTION:
|
|
|
504 |
return getDescription();
|
|
|
505 |
|
|
|
506 |
case REFERENCE_NUMBER:
|
|
|
507 |
return getReferenceNumber();
|
|
|
508 |
|
|
|
509 |
case REFERENCE_TYPE:
|
|
|
510 |
return getReferenceType();
|
|
|
511 |
|
| 6031 |
rajveer |
512 |
}
|
|
|
513 |
throw new IllegalStateException();
|
|
|
514 |
}
|
|
|
515 |
|
|
|
516 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
517 |
public boolean isSet(_Fields field) {
|
|
|
518 |
if (field == null) {
|
|
|
519 |
throw new IllegalArgumentException();
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
switch (field) {
|
|
|
523 |
case ID:
|
|
|
524 |
return isSetId();
|
|
|
525 |
case WALLET_ID:
|
|
|
526 |
return isSetWalletId();
|
|
|
527 |
case ORDER_ID:
|
|
|
528 |
return isSetOrderId();
|
|
|
529 |
case AMOUNT:
|
|
|
530 |
return isSetAmount();
|
|
|
531 |
case TIMESTAMP:
|
|
|
532 |
return isSetTimestamp();
|
| 22043 |
amit.gupta |
533 |
case DESCRIPTION:
|
|
|
534 |
return isSetDescription();
|
|
|
535 |
case REFERENCE_NUMBER:
|
|
|
536 |
return isSetReferenceNumber();
|
|
|
537 |
case REFERENCE_TYPE:
|
|
|
538 |
return isSetReferenceType();
|
| 6031 |
rajveer |
539 |
}
|
|
|
540 |
throw new IllegalStateException();
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
@Override
|
|
|
544 |
public boolean equals(Object that) {
|
|
|
545 |
if (that == null)
|
|
|
546 |
return false;
|
|
|
547 |
if (that instanceof UserWalletHistory)
|
|
|
548 |
return this.equals((UserWalletHistory)that);
|
|
|
549 |
return false;
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
public boolean equals(UserWalletHistory that) {
|
|
|
553 |
if (that == null)
|
|
|
554 |
return false;
|
|
|
555 |
|
|
|
556 |
boolean this_present_id = true;
|
|
|
557 |
boolean that_present_id = true;
|
|
|
558 |
if (this_present_id || that_present_id) {
|
|
|
559 |
if (!(this_present_id && that_present_id))
|
|
|
560 |
return false;
|
|
|
561 |
if (this.id != that.id)
|
|
|
562 |
return false;
|
|
|
563 |
}
|
|
|
564 |
|
|
|
565 |
boolean this_present_walletId = true;
|
|
|
566 |
boolean that_present_walletId = true;
|
|
|
567 |
if (this_present_walletId || that_present_walletId) {
|
|
|
568 |
if (!(this_present_walletId && that_present_walletId))
|
|
|
569 |
return false;
|
|
|
570 |
if (this.walletId != that.walletId)
|
|
|
571 |
return false;
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
boolean this_present_orderId = true;
|
|
|
575 |
boolean that_present_orderId = true;
|
|
|
576 |
if (this_present_orderId || that_present_orderId) {
|
|
|
577 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
578 |
return false;
|
|
|
579 |
if (this.orderId != that.orderId)
|
|
|
580 |
return false;
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
boolean this_present_amount = true;
|
|
|
584 |
boolean that_present_amount = true;
|
|
|
585 |
if (this_present_amount || that_present_amount) {
|
|
|
586 |
if (!(this_present_amount && that_present_amount))
|
|
|
587 |
return false;
|
|
|
588 |
if (this.amount != that.amount)
|
|
|
589 |
return false;
|
|
|
590 |
}
|
|
|
591 |
|
|
|
592 |
boolean this_present_timestamp = true;
|
|
|
593 |
boolean that_present_timestamp = true;
|
|
|
594 |
if (this_present_timestamp || that_present_timestamp) {
|
|
|
595 |
if (!(this_present_timestamp && that_present_timestamp))
|
|
|
596 |
return false;
|
|
|
597 |
if (this.timestamp != that.timestamp)
|
|
|
598 |
return false;
|
|
|
599 |
}
|
|
|
600 |
|
| 22043 |
amit.gupta |
601 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
602 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
603 |
if (this_present_description || that_present_description) {
|
|
|
604 |
if (!(this_present_description && that_present_description))
|
|
|
605 |
return false;
|
|
|
606 |
if (!this.description.equals(that.description))
|
|
|
607 |
return false;
|
|
|
608 |
}
|
|
|
609 |
|
|
|
610 |
boolean this_present_referenceNumber = true && this.isSetReferenceNumber();
|
|
|
611 |
boolean that_present_referenceNumber = true && that.isSetReferenceNumber();
|
|
|
612 |
if (this_present_referenceNumber || that_present_referenceNumber) {
|
|
|
613 |
if (!(this_present_referenceNumber && that_present_referenceNumber))
|
|
|
614 |
return false;
|
|
|
615 |
if (!this.referenceNumber.equals(that.referenceNumber))
|
|
|
616 |
return false;
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
boolean this_present_referenceType = true && this.isSetReferenceType();
|
|
|
620 |
boolean that_present_referenceType = true && that.isSetReferenceType();
|
|
|
621 |
if (this_present_referenceType || that_present_referenceType) {
|
|
|
622 |
if (!(this_present_referenceType && that_present_referenceType))
|
|
|
623 |
return false;
|
|
|
624 |
if (!this.referenceType.equals(that.referenceType))
|
|
|
625 |
return false;
|
|
|
626 |
}
|
|
|
627 |
|
| 6031 |
rajveer |
628 |
return true;
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
@Override
|
|
|
632 |
public int hashCode() {
|
|
|
633 |
return 0;
|
|
|
634 |
}
|
|
|
635 |
|
|
|
636 |
public int compareTo(UserWalletHistory other) {
|
|
|
637 |
if (!getClass().equals(other.getClass())) {
|
|
|
638 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
int lastComparison = 0;
|
|
|
642 |
UserWalletHistory typedOther = (UserWalletHistory)other;
|
|
|
643 |
|
|
|
644 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
645 |
if (lastComparison != 0) {
|
|
|
646 |
return lastComparison;
|
|
|
647 |
}
|
|
|
648 |
if (isSetId()) {
|
|
|
649 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
650 |
if (lastComparison != 0) {
|
|
|
651 |
return lastComparison;
|
|
|
652 |
}
|
|
|
653 |
}
|
|
|
654 |
lastComparison = Boolean.valueOf(isSetWalletId()).compareTo(typedOther.isSetWalletId());
|
|
|
655 |
if (lastComparison != 0) {
|
|
|
656 |
return lastComparison;
|
|
|
657 |
}
|
|
|
658 |
if (isSetWalletId()) {
|
|
|
659 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.walletId, typedOther.walletId);
|
|
|
660 |
if (lastComparison != 0) {
|
|
|
661 |
return lastComparison;
|
|
|
662 |
}
|
|
|
663 |
}
|
|
|
664 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
665 |
if (lastComparison != 0) {
|
|
|
666 |
return lastComparison;
|
|
|
667 |
}
|
|
|
668 |
if (isSetOrderId()) {
|
|
|
669 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
670 |
if (lastComparison != 0) {
|
|
|
671 |
return lastComparison;
|
|
|
672 |
}
|
|
|
673 |
}
|
|
|
674 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
|
|
675 |
if (lastComparison != 0) {
|
|
|
676 |
return lastComparison;
|
|
|
677 |
}
|
|
|
678 |
if (isSetAmount()) {
|
|
|
679 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
680 |
if (lastComparison != 0) {
|
|
|
681 |
return lastComparison;
|
|
|
682 |
}
|
|
|
683 |
}
|
|
|
684 |
lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
|
|
|
685 |
if (lastComparison != 0) {
|
|
|
686 |
return lastComparison;
|
|
|
687 |
}
|
|
|
688 |
if (isSetTimestamp()) {
|
|
|
689 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
|
|
|
690 |
if (lastComparison != 0) {
|
|
|
691 |
return lastComparison;
|
|
|
692 |
}
|
|
|
693 |
}
|
| 22043 |
amit.gupta |
694 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
|
|
|
695 |
if (lastComparison != 0) {
|
|
|
696 |
return lastComparison;
|
|
|
697 |
}
|
|
|
698 |
if (isSetDescription()) {
|
|
|
699 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
|
|
|
700 |
if (lastComparison != 0) {
|
|
|
701 |
return lastComparison;
|
|
|
702 |
}
|
|
|
703 |
}
|
|
|
704 |
lastComparison = Boolean.valueOf(isSetReferenceNumber()).compareTo(typedOther.isSetReferenceNumber());
|
|
|
705 |
if (lastComparison != 0) {
|
|
|
706 |
return lastComparison;
|
|
|
707 |
}
|
|
|
708 |
if (isSetReferenceNumber()) {
|
|
|
709 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceNumber, typedOther.referenceNumber);
|
|
|
710 |
if (lastComparison != 0) {
|
|
|
711 |
return lastComparison;
|
|
|
712 |
}
|
|
|
713 |
}
|
|
|
714 |
lastComparison = Boolean.valueOf(isSetReferenceType()).compareTo(typedOther.isSetReferenceType());
|
|
|
715 |
if (lastComparison != 0) {
|
|
|
716 |
return lastComparison;
|
|
|
717 |
}
|
|
|
718 |
if (isSetReferenceType()) {
|
|
|
719 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceType, typedOther.referenceType);
|
|
|
720 |
if (lastComparison != 0) {
|
|
|
721 |
return lastComparison;
|
|
|
722 |
}
|
|
|
723 |
}
|
| 6031 |
rajveer |
724 |
return 0;
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
public _Fields fieldForId(int fieldId) {
|
|
|
728 |
return _Fields.findByThriftId(fieldId);
|
|
|
729 |
}
|
|
|
730 |
|
|
|
731 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
732 |
org.apache.thrift.protocol.TField field;
|
|
|
733 |
iprot.readStructBegin();
|
|
|
734 |
while (true)
|
|
|
735 |
{
|
|
|
736 |
field = iprot.readFieldBegin();
|
|
|
737 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
738 |
break;
|
|
|
739 |
}
|
|
|
740 |
switch (field.id) {
|
|
|
741 |
case 1: // ID
|
|
|
742 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
743 |
this.id = iprot.readI64();
|
|
|
744 |
setIdIsSet(true);
|
|
|
745 |
} else {
|
|
|
746 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
747 |
}
|
|
|
748 |
break;
|
|
|
749 |
case 2: // WALLET_ID
|
|
|
750 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
751 |
this.walletId = iprot.readI64();
|
|
|
752 |
setWalletIdIsSet(true);
|
|
|
753 |
} else {
|
|
|
754 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
755 |
}
|
|
|
756 |
break;
|
|
|
757 |
case 3: // ORDER_ID
|
|
|
758 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
759 |
this.orderId = iprot.readI64();
|
|
|
760 |
setOrderIdIsSet(true);
|
|
|
761 |
} else {
|
|
|
762 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
763 |
}
|
|
|
764 |
break;
|
|
|
765 |
case 4: // AMOUNT
|
|
|
766 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
767 |
this.amount = iprot.readI64();
|
|
|
768 |
setAmountIsSet(true);
|
|
|
769 |
} else {
|
|
|
770 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
771 |
}
|
|
|
772 |
break;
|
|
|
773 |
case 5: // TIMESTAMP
|
|
|
774 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
775 |
this.timestamp = iprot.readI64();
|
|
|
776 |
setTimestampIsSet(true);
|
|
|
777 |
} else {
|
|
|
778 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
779 |
}
|
|
|
780 |
break;
|
| 22043 |
amit.gupta |
781 |
case 6: // DESCRIPTION
|
|
|
782 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
783 |
this.description = iprot.readString();
|
|
|
784 |
} else {
|
|
|
785 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
786 |
}
|
|
|
787 |
break;
|
|
|
788 |
case 7: // REFERENCE_NUMBER
|
|
|
789 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
790 |
this.referenceNumber = iprot.readString();
|
|
|
791 |
} else {
|
|
|
792 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
793 |
}
|
|
|
794 |
break;
|
|
|
795 |
case 8: // REFERENCE_TYPE
|
|
|
796 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
797 |
this.referenceType = WalletReferenceType.findByValue(iprot.readI32());
|
|
|
798 |
} else {
|
|
|
799 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
800 |
}
|
|
|
801 |
break;
|
| 6031 |
rajveer |
802 |
default:
|
|
|
803 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
804 |
}
|
|
|
805 |
iprot.readFieldEnd();
|
|
|
806 |
}
|
|
|
807 |
iprot.readStructEnd();
|
|
|
808 |
validate();
|
|
|
809 |
}
|
|
|
810 |
|
|
|
811 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
812 |
validate();
|
|
|
813 |
|
|
|
814 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
815 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
816 |
oprot.writeI64(this.id);
|
|
|
817 |
oprot.writeFieldEnd();
|
|
|
818 |
oprot.writeFieldBegin(WALLET_ID_FIELD_DESC);
|
|
|
819 |
oprot.writeI64(this.walletId);
|
|
|
820 |
oprot.writeFieldEnd();
|
|
|
821 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
822 |
oprot.writeI64(this.orderId);
|
|
|
823 |
oprot.writeFieldEnd();
|
|
|
824 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
825 |
oprot.writeI64(this.amount);
|
|
|
826 |
oprot.writeFieldEnd();
|
|
|
827 |
oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
|
|
|
828 |
oprot.writeI64(this.timestamp);
|
|
|
829 |
oprot.writeFieldEnd();
|
| 22043 |
amit.gupta |
830 |
if (this.description != null) {
|
|
|
831 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
832 |
oprot.writeString(this.description);
|
|
|
833 |
oprot.writeFieldEnd();
|
|
|
834 |
}
|
|
|
835 |
if (this.referenceNumber != null) {
|
|
|
836 |
oprot.writeFieldBegin(REFERENCE_NUMBER_FIELD_DESC);
|
|
|
837 |
oprot.writeString(this.referenceNumber);
|
|
|
838 |
oprot.writeFieldEnd();
|
|
|
839 |
}
|
|
|
840 |
if (this.referenceType != null) {
|
|
|
841 |
oprot.writeFieldBegin(REFERENCE_TYPE_FIELD_DESC);
|
|
|
842 |
oprot.writeI32(this.referenceType.getValue());
|
|
|
843 |
oprot.writeFieldEnd();
|
|
|
844 |
}
|
| 6031 |
rajveer |
845 |
oprot.writeFieldStop();
|
|
|
846 |
oprot.writeStructEnd();
|
|
|
847 |
}
|
|
|
848 |
|
|
|
849 |
@Override
|
|
|
850 |
public String toString() {
|
|
|
851 |
StringBuilder sb = new StringBuilder("UserWalletHistory(");
|
|
|
852 |
boolean first = true;
|
|
|
853 |
|
|
|
854 |
sb.append("id:");
|
|
|
855 |
sb.append(this.id);
|
|
|
856 |
first = false;
|
|
|
857 |
if (!first) sb.append(", ");
|
|
|
858 |
sb.append("walletId:");
|
|
|
859 |
sb.append(this.walletId);
|
|
|
860 |
first = false;
|
|
|
861 |
if (!first) sb.append(", ");
|
|
|
862 |
sb.append("orderId:");
|
|
|
863 |
sb.append(this.orderId);
|
|
|
864 |
first = false;
|
|
|
865 |
if (!first) sb.append(", ");
|
|
|
866 |
sb.append("amount:");
|
|
|
867 |
sb.append(this.amount);
|
|
|
868 |
first = false;
|
|
|
869 |
if (!first) sb.append(", ");
|
|
|
870 |
sb.append("timestamp:");
|
|
|
871 |
sb.append(this.timestamp);
|
|
|
872 |
first = false;
|
| 22043 |
amit.gupta |
873 |
if (!first) sb.append(", ");
|
|
|
874 |
sb.append("description:");
|
|
|
875 |
if (this.description == null) {
|
|
|
876 |
sb.append("null");
|
|
|
877 |
} else {
|
|
|
878 |
sb.append(this.description);
|
|
|
879 |
}
|
|
|
880 |
first = false;
|
|
|
881 |
if (!first) sb.append(", ");
|
|
|
882 |
sb.append("referenceNumber:");
|
|
|
883 |
if (this.referenceNumber == null) {
|
|
|
884 |
sb.append("null");
|
|
|
885 |
} else {
|
|
|
886 |
sb.append(this.referenceNumber);
|
|
|
887 |
}
|
|
|
888 |
first = false;
|
|
|
889 |
if (!first) sb.append(", ");
|
|
|
890 |
sb.append("referenceType:");
|
|
|
891 |
if (this.referenceType == null) {
|
|
|
892 |
sb.append("null");
|
|
|
893 |
} else {
|
|
|
894 |
sb.append(this.referenceType);
|
|
|
895 |
}
|
|
|
896 |
first = false;
|
| 6031 |
rajveer |
897 |
sb.append(")");
|
|
|
898 |
return sb.toString();
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
public void validate() throws org.apache.thrift.TException {
|
|
|
902 |
// check for required fields
|
|
|
903 |
}
|
|
|
904 |
|
|
|
905 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
906 |
try {
|
|
|
907 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
908 |
} catch (org.apache.thrift.TException te) {
|
|
|
909 |
throw new java.io.IOException(te);
|
|
|
910 |
}
|
|
|
911 |
}
|
|
|
912 |
|
|
|
913 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
914 |
try {
|
|
|
915 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
916 |
__isset_bit_vector = new BitSet(1);
|
|
|
917 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
918 |
} catch (org.apache.thrift.TException te) {
|
|
|
919 |
throw new java.io.IOException(te);
|
|
|
920 |
}
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
}
|
|
|
924 |
|