| 7263 |
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 SourceDetail implements org.apache.thrift.TBase<SourceDetail, SourceDetail._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SourceDetail");
|
|
|
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 NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| 7410 |
amar.kumar |
29 |
private static final org.apache.thrift.protocol.TField TIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("tinNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
|
| 7530 |
kshitij.so |
30 |
private static final org.apache.thrift.protocol.TField LAST_UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedOn", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 7263 |
anupam.sin |
31 |
|
|
|
32 |
private long id; // required
|
|
|
33 |
private String name; // required
|
|
|
34 |
private String email; // required
|
| 7410 |
amar.kumar |
35 |
private String tinNumber; // required
|
| 7530 |
kshitij.so |
36 |
private long lastUpdatedOn; // required
|
| 7263 |
anupam.sin |
37 |
|
|
|
38 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
39 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
40 |
ID((short)1, "id"),
|
|
|
41 |
NAME((short)2, "name"),
|
| 7410 |
amar.kumar |
42 |
EMAIL((short)3, "email"),
|
| 7530 |
kshitij.so |
43 |
TIN_NUMBER((short)4, "tinNumber"),
|
|
|
44 |
LAST_UPDATED_ON((short)5, "lastUpdatedOn");
|
| 7263 |
anupam.sin |
45 |
|
|
|
46 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
47 |
|
|
|
48 |
static {
|
|
|
49 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
50 |
byName.put(field.getFieldName(), field);
|
|
|
51 |
}
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
/**
|
|
|
55 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
56 |
*/
|
|
|
57 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
58 |
switch(fieldId) {
|
|
|
59 |
case 1: // ID
|
|
|
60 |
return ID;
|
|
|
61 |
case 2: // NAME
|
|
|
62 |
return NAME;
|
|
|
63 |
case 3: // EMAIL
|
|
|
64 |
return EMAIL;
|
| 7410 |
amar.kumar |
65 |
case 4: // TIN_NUMBER
|
|
|
66 |
return TIN_NUMBER;
|
| 7530 |
kshitij.so |
67 |
case 5: // LAST_UPDATED_ON
|
|
|
68 |
return LAST_UPDATED_ON;
|
| 7263 |
anupam.sin |
69 |
default:
|
|
|
70 |
return null;
|
|
|
71 |
}
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
/**
|
|
|
75 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
76 |
* if it is not found.
|
|
|
77 |
*/
|
|
|
78 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
79 |
_Fields fields = findByThriftId(fieldId);
|
|
|
80 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
81 |
return fields;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/**
|
|
|
85 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
86 |
*/
|
|
|
87 |
public static _Fields findByName(String name) {
|
|
|
88 |
return byName.get(name);
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
private final short _thriftId;
|
|
|
92 |
private final String _fieldName;
|
|
|
93 |
|
|
|
94 |
_Fields(short thriftId, String fieldName) {
|
|
|
95 |
_thriftId = thriftId;
|
|
|
96 |
_fieldName = fieldName;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
public short getThriftFieldId() {
|
|
|
100 |
return _thriftId;
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
public String getFieldName() {
|
|
|
104 |
return _fieldName;
|
|
|
105 |
}
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
// isset id assignments
|
|
|
109 |
private static final int __ID_ISSET_ID = 0;
|
| 7530 |
kshitij.so |
110 |
private static final int __LASTUPDATEDON_ISSET_ID = 1;
|
|
|
111 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 7263 |
anupam.sin |
112 |
|
|
|
113 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
114 |
static {
|
|
|
115 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
116 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
117 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
118 |
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
119 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
120 |
tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
121 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 7410 |
amar.kumar |
122 |
tmpMap.put(_Fields.TIN_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("tinNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
123 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 7530 |
kshitij.so |
124 |
tmpMap.put(_Fields.LAST_UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
125 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 7263 |
anupam.sin |
126 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
127 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SourceDetail.class, metaDataMap);
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public SourceDetail() {
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
public SourceDetail(
|
|
|
134 |
long id,
|
|
|
135 |
String name,
|
| 7410 |
amar.kumar |
136 |
String email,
|
| 7530 |
kshitij.so |
137 |
String tinNumber,
|
|
|
138 |
long lastUpdatedOn)
|
| 7263 |
anupam.sin |
139 |
{
|
|
|
140 |
this();
|
|
|
141 |
this.id = id;
|
|
|
142 |
setIdIsSet(true);
|
|
|
143 |
this.name = name;
|
|
|
144 |
this.email = email;
|
| 7410 |
amar.kumar |
145 |
this.tinNumber = tinNumber;
|
| 7530 |
kshitij.so |
146 |
this.lastUpdatedOn = lastUpdatedOn;
|
|
|
147 |
setLastUpdatedOnIsSet(true);
|
| 7263 |
anupam.sin |
148 |
}
|
|
|
149 |
|
|
|
150 |
/**
|
|
|
151 |
* Performs a deep copy on <i>other</i>.
|
|
|
152 |
*/
|
|
|
153 |
public SourceDetail(SourceDetail other) {
|
|
|
154 |
__isset_bit_vector.clear();
|
|
|
155 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
156 |
this.id = other.id;
|
|
|
157 |
if (other.isSetName()) {
|
|
|
158 |
this.name = other.name;
|
|
|
159 |
}
|
|
|
160 |
if (other.isSetEmail()) {
|
|
|
161 |
this.email = other.email;
|
|
|
162 |
}
|
| 7410 |
amar.kumar |
163 |
if (other.isSetTinNumber()) {
|
|
|
164 |
this.tinNumber = other.tinNumber;
|
|
|
165 |
}
|
| 7530 |
kshitij.so |
166 |
this.lastUpdatedOn = other.lastUpdatedOn;
|
| 7263 |
anupam.sin |
167 |
}
|
|
|
168 |
|
|
|
169 |
public SourceDetail deepCopy() {
|
|
|
170 |
return new SourceDetail(this);
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
@Override
|
|
|
174 |
public void clear() {
|
|
|
175 |
setIdIsSet(false);
|
|
|
176 |
this.id = 0;
|
|
|
177 |
this.name = null;
|
|
|
178 |
this.email = null;
|
| 7410 |
amar.kumar |
179 |
this.tinNumber = null;
|
| 7530 |
kshitij.so |
180 |
setLastUpdatedOnIsSet(false);
|
|
|
181 |
this.lastUpdatedOn = 0;
|
| 7263 |
anupam.sin |
182 |
}
|
|
|
183 |
|
|
|
184 |
public long getId() {
|
|
|
185 |
return this.id;
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
public void setId(long id) {
|
|
|
189 |
this.id = id;
|
|
|
190 |
setIdIsSet(true);
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
public void unsetId() {
|
|
|
194 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
198 |
public boolean isSetId() {
|
|
|
199 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
200 |
}
|
|
|
201 |
|
|
|
202 |
public void setIdIsSet(boolean value) {
|
|
|
203 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
204 |
}
|
|
|
205 |
|
|
|
206 |
public String getName() {
|
|
|
207 |
return this.name;
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
public void setName(String name) {
|
|
|
211 |
this.name = name;
|
|
|
212 |
}
|
|
|
213 |
|
|
|
214 |
public void unsetName() {
|
|
|
215 |
this.name = null;
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
/** Returns true if field name is set (has been assigned a value) and false otherwise */
|
|
|
219 |
public boolean isSetName() {
|
|
|
220 |
return this.name != null;
|
|
|
221 |
}
|
|
|
222 |
|
|
|
223 |
public void setNameIsSet(boolean value) {
|
|
|
224 |
if (!value) {
|
|
|
225 |
this.name = null;
|
|
|
226 |
}
|
|
|
227 |
}
|
|
|
228 |
|
|
|
229 |
public String getEmail() {
|
|
|
230 |
return this.email;
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
public void setEmail(String email) {
|
|
|
234 |
this.email = email;
|
|
|
235 |
}
|
|
|
236 |
|
|
|
237 |
public void unsetEmail() {
|
|
|
238 |
this.email = null;
|
|
|
239 |
}
|
|
|
240 |
|
|
|
241 |
/** Returns true if field email is set (has been assigned a value) and false otherwise */
|
|
|
242 |
public boolean isSetEmail() {
|
|
|
243 |
return this.email != null;
|
|
|
244 |
}
|
|
|
245 |
|
|
|
246 |
public void setEmailIsSet(boolean value) {
|
|
|
247 |
if (!value) {
|
|
|
248 |
this.email = null;
|
|
|
249 |
}
|
|
|
250 |
}
|
|
|
251 |
|
| 7410 |
amar.kumar |
252 |
public String getTinNumber() {
|
|
|
253 |
return this.tinNumber;
|
|
|
254 |
}
|
|
|
255 |
|
|
|
256 |
public void setTinNumber(String tinNumber) {
|
|
|
257 |
this.tinNumber = tinNumber;
|
|
|
258 |
}
|
|
|
259 |
|
|
|
260 |
public void unsetTinNumber() {
|
|
|
261 |
this.tinNumber = null;
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
/** Returns true if field tinNumber is set (has been assigned a value) and false otherwise */
|
|
|
265 |
public boolean isSetTinNumber() {
|
|
|
266 |
return this.tinNumber != null;
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
public void setTinNumberIsSet(boolean value) {
|
|
|
270 |
if (!value) {
|
|
|
271 |
this.tinNumber = null;
|
|
|
272 |
}
|
|
|
273 |
}
|
|
|
274 |
|
| 7530 |
kshitij.so |
275 |
public long getLastUpdatedOn() {
|
|
|
276 |
return this.lastUpdatedOn;
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
public void setLastUpdatedOn(long lastUpdatedOn) {
|
|
|
280 |
this.lastUpdatedOn = lastUpdatedOn;
|
|
|
281 |
setLastUpdatedOnIsSet(true);
|
|
|
282 |
}
|
|
|
283 |
|
|
|
284 |
public void unsetLastUpdatedOn() {
|
|
|
285 |
__isset_bit_vector.clear(__LASTUPDATEDON_ISSET_ID);
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
/** Returns true if field lastUpdatedOn is set (has been assigned a value) and false otherwise */
|
|
|
289 |
public boolean isSetLastUpdatedOn() {
|
|
|
290 |
return __isset_bit_vector.get(__LASTUPDATEDON_ISSET_ID);
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
public void setLastUpdatedOnIsSet(boolean value) {
|
|
|
294 |
__isset_bit_vector.set(__LASTUPDATEDON_ISSET_ID, value);
|
|
|
295 |
}
|
|
|
296 |
|
| 7263 |
anupam.sin |
297 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
298 |
switch (field) {
|
|
|
299 |
case ID:
|
|
|
300 |
if (value == null) {
|
|
|
301 |
unsetId();
|
|
|
302 |
} else {
|
|
|
303 |
setId((Long)value);
|
|
|
304 |
}
|
|
|
305 |
break;
|
|
|
306 |
|
|
|
307 |
case NAME:
|
|
|
308 |
if (value == null) {
|
|
|
309 |
unsetName();
|
|
|
310 |
} else {
|
|
|
311 |
setName((String)value);
|
|
|
312 |
}
|
|
|
313 |
break;
|
|
|
314 |
|
|
|
315 |
case EMAIL:
|
|
|
316 |
if (value == null) {
|
|
|
317 |
unsetEmail();
|
|
|
318 |
} else {
|
|
|
319 |
setEmail((String)value);
|
|
|
320 |
}
|
|
|
321 |
break;
|
|
|
322 |
|
| 7410 |
amar.kumar |
323 |
case TIN_NUMBER:
|
|
|
324 |
if (value == null) {
|
|
|
325 |
unsetTinNumber();
|
|
|
326 |
} else {
|
|
|
327 |
setTinNumber((String)value);
|
|
|
328 |
}
|
|
|
329 |
break;
|
|
|
330 |
|
| 7530 |
kshitij.so |
331 |
case LAST_UPDATED_ON:
|
|
|
332 |
if (value == null) {
|
|
|
333 |
unsetLastUpdatedOn();
|
|
|
334 |
} else {
|
|
|
335 |
setLastUpdatedOn((Long)value);
|
|
|
336 |
}
|
|
|
337 |
break;
|
|
|
338 |
|
| 7263 |
anupam.sin |
339 |
}
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public Object getFieldValue(_Fields field) {
|
|
|
343 |
switch (field) {
|
|
|
344 |
case ID:
|
|
|
345 |
return Long.valueOf(getId());
|
|
|
346 |
|
|
|
347 |
case NAME:
|
|
|
348 |
return getName();
|
|
|
349 |
|
|
|
350 |
case EMAIL:
|
|
|
351 |
return getEmail();
|
|
|
352 |
|
| 7410 |
amar.kumar |
353 |
case TIN_NUMBER:
|
|
|
354 |
return getTinNumber();
|
|
|
355 |
|
| 7530 |
kshitij.so |
356 |
case LAST_UPDATED_ON:
|
|
|
357 |
return Long.valueOf(getLastUpdatedOn());
|
|
|
358 |
|
| 7263 |
anupam.sin |
359 |
}
|
|
|
360 |
throw new IllegalStateException();
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
364 |
public boolean isSet(_Fields field) {
|
|
|
365 |
if (field == null) {
|
|
|
366 |
throw new IllegalArgumentException();
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
switch (field) {
|
|
|
370 |
case ID:
|
|
|
371 |
return isSetId();
|
|
|
372 |
case NAME:
|
|
|
373 |
return isSetName();
|
|
|
374 |
case EMAIL:
|
|
|
375 |
return isSetEmail();
|
| 7410 |
amar.kumar |
376 |
case TIN_NUMBER:
|
|
|
377 |
return isSetTinNumber();
|
| 7530 |
kshitij.so |
378 |
case LAST_UPDATED_ON:
|
|
|
379 |
return isSetLastUpdatedOn();
|
| 7263 |
anupam.sin |
380 |
}
|
|
|
381 |
throw new IllegalStateException();
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
@Override
|
|
|
385 |
public boolean equals(Object that) {
|
|
|
386 |
if (that == null)
|
|
|
387 |
return false;
|
|
|
388 |
if (that instanceof SourceDetail)
|
|
|
389 |
return this.equals((SourceDetail)that);
|
|
|
390 |
return false;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public boolean equals(SourceDetail that) {
|
|
|
394 |
if (that == null)
|
|
|
395 |
return false;
|
|
|
396 |
|
|
|
397 |
boolean this_present_id = true;
|
|
|
398 |
boolean that_present_id = true;
|
|
|
399 |
if (this_present_id || that_present_id) {
|
|
|
400 |
if (!(this_present_id && that_present_id))
|
|
|
401 |
return false;
|
|
|
402 |
if (this.id != that.id)
|
|
|
403 |
return false;
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
boolean this_present_name = true && this.isSetName();
|
|
|
407 |
boolean that_present_name = true && that.isSetName();
|
|
|
408 |
if (this_present_name || that_present_name) {
|
|
|
409 |
if (!(this_present_name && that_present_name))
|
|
|
410 |
return false;
|
|
|
411 |
if (!this.name.equals(that.name))
|
|
|
412 |
return false;
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
boolean this_present_email = true && this.isSetEmail();
|
|
|
416 |
boolean that_present_email = true && that.isSetEmail();
|
|
|
417 |
if (this_present_email || that_present_email) {
|
|
|
418 |
if (!(this_present_email && that_present_email))
|
|
|
419 |
return false;
|
|
|
420 |
if (!this.email.equals(that.email))
|
|
|
421 |
return false;
|
|
|
422 |
}
|
|
|
423 |
|
| 7410 |
amar.kumar |
424 |
boolean this_present_tinNumber = true && this.isSetTinNumber();
|
|
|
425 |
boolean that_present_tinNumber = true && that.isSetTinNumber();
|
|
|
426 |
if (this_present_tinNumber || that_present_tinNumber) {
|
|
|
427 |
if (!(this_present_tinNumber && that_present_tinNumber))
|
|
|
428 |
return false;
|
|
|
429 |
if (!this.tinNumber.equals(that.tinNumber))
|
|
|
430 |
return false;
|
|
|
431 |
}
|
|
|
432 |
|
| 7530 |
kshitij.so |
433 |
boolean this_present_lastUpdatedOn = true;
|
|
|
434 |
boolean that_present_lastUpdatedOn = true;
|
|
|
435 |
if (this_present_lastUpdatedOn || that_present_lastUpdatedOn) {
|
|
|
436 |
if (!(this_present_lastUpdatedOn && that_present_lastUpdatedOn))
|
|
|
437 |
return false;
|
|
|
438 |
if (this.lastUpdatedOn != that.lastUpdatedOn)
|
|
|
439 |
return false;
|
|
|
440 |
}
|
|
|
441 |
|
| 7263 |
anupam.sin |
442 |
return true;
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
@Override
|
|
|
446 |
public int hashCode() {
|
|
|
447 |
return 0;
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public int compareTo(SourceDetail other) {
|
|
|
451 |
if (!getClass().equals(other.getClass())) {
|
|
|
452 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
int lastComparison = 0;
|
|
|
456 |
SourceDetail typedOther = (SourceDetail)other;
|
|
|
457 |
|
|
|
458 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
459 |
if (lastComparison != 0) {
|
|
|
460 |
return lastComparison;
|
|
|
461 |
}
|
|
|
462 |
if (isSetId()) {
|
|
|
463 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
464 |
if (lastComparison != 0) {
|
|
|
465 |
return lastComparison;
|
|
|
466 |
}
|
|
|
467 |
}
|
|
|
468 |
lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
|
|
|
469 |
if (lastComparison != 0) {
|
|
|
470 |
return lastComparison;
|
|
|
471 |
}
|
|
|
472 |
if (isSetName()) {
|
|
|
473 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
|
|
|
474 |
if (lastComparison != 0) {
|
|
|
475 |
return lastComparison;
|
|
|
476 |
}
|
|
|
477 |
}
|
|
|
478 |
lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
|
|
|
479 |
if (lastComparison != 0) {
|
|
|
480 |
return lastComparison;
|
|
|
481 |
}
|
|
|
482 |
if (isSetEmail()) {
|
|
|
483 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
|
|
|
484 |
if (lastComparison != 0) {
|
|
|
485 |
return lastComparison;
|
|
|
486 |
}
|
|
|
487 |
}
|
| 7410 |
amar.kumar |
488 |
lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(typedOther.isSetTinNumber());
|
|
|
489 |
if (lastComparison != 0) {
|
|
|
490 |
return lastComparison;
|
|
|
491 |
}
|
|
|
492 |
if (isSetTinNumber()) {
|
|
|
493 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinNumber, typedOther.tinNumber);
|
|
|
494 |
if (lastComparison != 0) {
|
|
|
495 |
return lastComparison;
|
|
|
496 |
}
|
|
|
497 |
}
|
| 7530 |
kshitij.so |
498 |
lastComparison = Boolean.valueOf(isSetLastUpdatedOn()).compareTo(typedOther.isSetLastUpdatedOn());
|
|
|
499 |
if (lastComparison != 0) {
|
|
|
500 |
return lastComparison;
|
|
|
501 |
}
|
|
|
502 |
if (isSetLastUpdatedOn()) {
|
|
|
503 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedOn, typedOther.lastUpdatedOn);
|
|
|
504 |
if (lastComparison != 0) {
|
|
|
505 |
return lastComparison;
|
|
|
506 |
}
|
|
|
507 |
}
|
| 7263 |
anupam.sin |
508 |
return 0;
|
|
|
509 |
}
|
|
|
510 |
|
|
|
511 |
public _Fields fieldForId(int fieldId) {
|
|
|
512 |
return _Fields.findByThriftId(fieldId);
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
516 |
org.apache.thrift.protocol.TField field;
|
|
|
517 |
iprot.readStructBegin();
|
|
|
518 |
while (true)
|
|
|
519 |
{
|
|
|
520 |
field = iprot.readFieldBegin();
|
|
|
521 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
522 |
break;
|
|
|
523 |
}
|
|
|
524 |
switch (field.id) {
|
|
|
525 |
case 1: // ID
|
|
|
526 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
527 |
this.id = iprot.readI64();
|
|
|
528 |
setIdIsSet(true);
|
|
|
529 |
} else {
|
|
|
530 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
531 |
}
|
|
|
532 |
break;
|
|
|
533 |
case 2: // NAME
|
|
|
534 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
535 |
this.name = iprot.readString();
|
|
|
536 |
} else {
|
|
|
537 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
538 |
}
|
|
|
539 |
break;
|
|
|
540 |
case 3: // EMAIL
|
|
|
541 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
542 |
this.email = iprot.readString();
|
|
|
543 |
} else {
|
|
|
544 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
545 |
}
|
|
|
546 |
break;
|
| 7410 |
amar.kumar |
547 |
case 4: // TIN_NUMBER
|
|
|
548 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
549 |
this.tinNumber = iprot.readString();
|
|
|
550 |
} else {
|
|
|
551 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
552 |
}
|
|
|
553 |
break;
|
| 7530 |
kshitij.so |
554 |
case 5: // LAST_UPDATED_ON
|
|
|
555 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
556 |
this.lastUpdatedOn = iprot.readI64();
|
|
|
557 |
setLastUpdatedOnIsSet(true);
|
|
|
558 |
} else {
|
|
|
559 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
560 |
}
|
|
|
561 |
break;
|
| 7263 |
anupam.sin |
562 |
default:
|
|
|
563 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
564 |
}
|
|
|
565 |
iprot.readFieldEnd();
|
|
|
566 |
}
|
|
|
567 |
iprot.readStructEnd();
|
|
|
568 |
validate();
|
|
|
569 |
}
|
|
|
570 |
|
|
|
571 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
572 |
validate();
|
|
|
573 |
|
|
|
574 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
575 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
576 |
oprot.writeI64(this.id);
|
|
|
577 |
oprot.writeFieldEnd();
|
|
|
578 |
if (this.name != null) {
|
|
|
579 |
oprot.writeFieldBegin(NAME_FIELD_DESC);
|
|
|
580 |
oprot.writeString(this.name);
|
|
|
581 |
oprot.writeFieldEnd();
|
|
|
582 |
}
|
|
|
583 |
if (this.email != null) {
|
|
|
584 |
oprot.writeFieldBegin(EMAIL_FIELD_DESC);
|
|
|
585 |
oprot.writeString(this.email);
|
|
|
586 |
oprot.writeFieldEnd();
|
|
|
587 |
}
|
| 7410 |
amar.kumar |
588 |
if (this.tinNumber != null) {
|
|
|
589 |
oprot.writeFieldBegin(TIN_NUMBER_FIELD_DESC);
|
|
|
590 |
oprot.writeString(this.tinNumber);
|
|
|
591 |
oprot.writeFieldEnd();
|
|
|
592 |
}
|
| 7530 |
kshitij.so |
593 |
oprot.writeFieldBegin(LAST_UPDATED_ON_FIELD_DESC);
|
|
|
594 |
oprot.writeI64(this.lastUpdatedOn);
|
|
|
595 |
oprot.writeFieldEnd();
|
| 7263 |
anupam.sin |
596 |
oprot.writeFieldStop();
|
|
|
597 |
oprot.writeStructEnd();
|
|
|
598 |
}
|
|
|
599 |
|
|
|
600 |
@Override
|
|
|
601 |
public String toString() {
|
|
|
602 |
StringBuilder sb = new StringBuilder("SourceDetail(");
|
|
|
603 |
boolean first = true;
|
|
|
604 |
|
|
|
605 |
sb.append("id:");
|
|
|
606 |
sb.append(this.id);
|
|
|
607 |
first = false;
|
|
|
608 |
if (!first) sb.append(", ");
|
|
|
609 |
sb.append("name:");
|
|
|
610 |
if (this.name == null) {
|
|
|
611 |
sb.append("null");
|
|
|
612 |
} else {
|
|
|
613 |
sb.append(this.name);
|
|
|
614 |
}
|
|
|
615 |
first = false;
|
|
|
616 |
if (!first) sb.append(", ");
|
|
|
617 |
sb.append("email:");
|
|
|
618 |
if (this.email == null) {
|
|
|
619 |
sb.append("null");
|
|
|
620 |
} else {
|
|
|
621 |
sb.append(this.email);
|
|
|
622 |
}
|
|
|
623 |
first = false;
|
| 7410 |
amar.kumar |
624 |
if (!first) sb.append(", ");
|
|
|
625 |
sb.append("tinNumber:");
|
|
|
626 |
if (this.tinNumber == null) {
|
|
|
627 |
sb.append("null");
|
|
|
628 |
} else {
|
|
|
629 |
sb.append(this.tinNumber);
|
|
|
630 |
}
|
|
|
631 |
first = false;
|
| 7530 |
kshitij.so |
632 |
if (!first) sb.append(", ");
|
|
|
633 |
sb.append("lastUpdatedOn:");
|
|
|
634 |
sb.append(this.lastUpdatedOn);
|
|
|
635 |
first = false;
|
| 7263 |
anupam.sin |
636 |
sb.append(")");
|
|
|
637 |
return sb.toString();
|
|
|
638 |
}
|
|
|
639 |
|
|
|
640 |
public void validate() throws org.apache.thrift.TException {
|
|
|
641 |
// check for required fields
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
645 |
try {
|
|
|
646 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
647 |
} catch (org.apache.thrift.TException te) {
|
|
|
648 |
throw new java.io.IOException(te);
|
|
|
649 |
}
|
|
|
650 |
}
|
|
|
651 |
|
|
|
652 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
653 |
try {
|
|
|
654 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
655 |
__isset_bit_vector = new BitSet(1);
|
|
|
656 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
657 |
} catch (org.apache.thrift.TException te) {
|
|
|
658 |
throw new java.io.IOException(te);
|
|
|
659 |
}
|
|
|
660 |
}
|
|
|
661 |
|
|
|
662 |
}
|
|
|
663 |
|