| 18530 |
manish.sha |
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.user;
|
|
|
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 CounterOnlineInfo implements org.apache.thrift.TBase<CounterOnlineInfo, CounterOnlineInfo._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CounterOnlineInfo");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField COUNTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("counterId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
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)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField CST_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("cstNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField DEALER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dealerName", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField DEALER_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("dealerAddress", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField PAN_FIELD_DESC = new org.apache.thrift.protocol.TField("pan", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField REGISTRATION_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("registrationDate", org.apache.thrift.protocol.TType.I64, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField REGISTRATION_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("registrationStatus", org.apache.thrift.protocol.TType.BOOL, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField VALIDATED_TILL_FIELD_DESC = new org.apache.thrift.protocol.TField("validatedTill", org.apache.thrift.protocol.TType.I64, (short)10);
|
|
|
36 |
|
|
|
37 |
private long counterId; // required
|
|
|
38 |
private String tinNumber; // required
|
|
|
39 |
private String cstNumber; // required
|
|
|
40 |
private String dealerName; // required
|
|
|
41 |
private String dealerAddress; // required
|
|
|
42 |
private String state; // required
|
|
|
43 |
private String pan; // required
|
|
|
44 |
private long registrationDate; // required
|
|
|
45 |
private boolean registrationStatus; // required
|
|
|
46 |
private long validatedTill; // 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 |
COUNTER_ID((short)1, "counterId"),
|
|
|
51 |
TIN_NUMBER((short)2, "tinNumber"),
|
|
|
52 |
CST_NUMBER((short)3, "cstNumber"),
|
|
|
53 |
DEALER_NAME((short)4, "dealerName"),
|
|
|
54 |
DEALER_ADDRESS((short)5, "dealerAddress"),
|
|
|
55 |
STATE((short)6, "state"),
|
|
|
56 |
PAN((short)7, "pan"),
|
|
|
57 |
REGISTRATION_DATE((short)8, "registrationDate"),
|
|
|
58 |
REGISTRATION_STATUS((short)9, "registrationStatus"),
|
|
|
59 |
VALIDATED_TILL((short)10, "validatedTill");
|
|
|
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: // COUNTER_ID
|
|
|
75 |
return COUNTER_ID;
|
|
|
76 |
case 2: // TIN_NUMBER
|
|
|
77 |
return TIN_NUMBER;
|
|
|
78 |
case 3: // CST_NUMBER
|
|
|
79 |
return CST_NUMBER;
|
|
|
80 |
case 4: // DEALER_NAME
|
|
|
81 |
return DEALER_NAME;
|
|
|
82 |
case 5: // DEALER_ADDRESS
|
|
|
83 |
return DEALER_ADDRESS;
|
|
|
84 |
case 6: // STATE
|
|
|
85 |
return STATE;
|
|
|
86 |
case 7: // PAN
|
|
|
87 |
return PAN;
|
|
|
88 |
case 8: // REGISTRATION_DATE
|
|
|
89 |
return REGISTRATION_DATE;
|
|
|
90 |
case 9: // REGISTRATION_STATUS
|
|
|
91 |
return REGISTRATION_STATUS;
|
|
|
92 |
case 10: // VALIDATED_TILL
|
|
|
93 |
return VALIDATED_TILL;
|
|
|
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 __COUNTERID_ISSET_ID = 0;
|
|
|
135 |
private static final int __REGISTRATIONDATE_ISSET_ID = 1;
|
|
|
136 |
private static final int __REGISTRATIONSTATUS_ISSET_ID = 2;
|
|
|
137 |
private static final int __VALIDATEDTILL_ISSET_ID = 3;
|
|
|
138 |
private BitSet __isset_bit_vector = new BitSet(4);
|
|
|
139 |
|
|
|
140 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
141 |
static {
|
|
|
142 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
143 |
tmpMap.put(_Fields.COUNTER_ID, new org.apache.thrift.meta_data.FieldMetaData("counterId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
144 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
145 |
tmpMap.put(_Fields.TIN_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("tinNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
146 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
147 |
tmpMap.put(_Fields.CST_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("cstNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
148 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
149 |
tmpMap.put(_Fields.DEALER_NAME, new org.apache.thrift.meta_data.FieldMetaData("dealerName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
151 |
tmpMap.put(_Fields.DEALER_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("dealerAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
152 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
153 |
tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
154 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
155 |
tmpMap.put(_Fields.PAN, new org.apache.thrift.meta_data.FieldMetaData("pan", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
156 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
157 |
tmpMap.put(_Fields.REGISTRATION_DATE, new org.apache.thrift.meta_data.FieldMetaData("registrationDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
158 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
159 |
tmpMap.put(_Fields.REGISTRATION_STATUS, new org.apache.thrift.meta_data.FieldMetaData("registrationStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
160 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
161 |
tmpMap.put(_Fields.VALIDATED_TILL, new org.apache.thrift.meta_data.FieldMetaData("validatedTill", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
162 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
163 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
164 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CounterOnlineInfo.class, metaDataMap);
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
public CounterOnlineInfo() {
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
public CounterOnlineInfo(
|
|
|
171 |
long counterId,
|
|
|
172 |
String tinNumber,
|
|
|
173 |
String cstNumber,
|
|
|
174 |
String dealerName,
|
|
|
175 |
String dealerAddress,
|
|
|
176 |
String state,
|
|
|
177 |
String pan,
|
|
|
178 |
long registrationDate,
|
|
|
179 |
boolean registrationStatus,
|
|
|
180 |
long validatedTill)
|
|
|
181 |
{
|
|
|
182 |
this();
|
|
|
183 |
this.counterId = counterId;
|
|
|
184 |
setCounterIdIsSet(true);
|
|
|
185 |
this.tinNumber = tinNumber;
|
|
|
186 |
this.cstNumber = cstNumber;
|
|
|
187 |
this.dealerName = dealerName;
|
|
|
188 |
this.dealerAddress = dealerAddress;
|
|
|
189 |
this.state = state;
|
|
|
190 |
this.pan = pan;
|
|
|
191 |
this.registrationDate = registrationDate;
|
|
|
192 |
setRegistrationDateIsSet(true);
|
|
|
193 |
this.registrationStatus = registrationStatus;
|
|
|
194 |
setRegistrationStatusIsSet(true);
|
|
|
195 |
this.validatedTill = validatedTill;
|
|
|
196 |
setValidatedTillIsSet(true);
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
/**
|
|
|
200 |
* Performs a deep copy on <i>other</i>.
|
|
|
201 |
*/
|
|
|
202 |
public CounterOnlineInfo(CounterOnlineInfo other) {
|
|
|
203 |
__isset_bit_vector.clear();
|
|
|
204 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
205 |
this.counterId = other.counterId;
|
|
|
206 |
if (other.isSetTinNumber()) {
|
|
|
207 |
this.tinNumber = other.tinNumber;
|
|
|
208 |
}
|
|
|
209 |
if (other.isSetCstNumber()) {
|
|
|
210 |
this.cstNumber = other.cstNumber;
|
|
|
211 |
}
|
|
|
212 |
if (other.isSetDealerName()) {
|
|
|
213 |
this.dealerName = other.dealerName;
|
|
|
214 |
}
|
|
|
215 |
if (other.isSetDealerAddress()) {
|
|
|
216 |
this.dealerAddress = other.dealerAddress;
|
|
|
217 |
}
|
|
|
218 |
if (other.isSetState()) {
|
|
|
219 |
this.state = other.state;
|
|
|
220 |
}
|
|
|
221 |
if (other.isSetPan()) {
|
|
|
222 |
this.pan = other.pan;
|
|
|
223 |
}
|
|
|
224 |
this.registrationDate = other.registrationDate;
|
|
|
225 |
this.registrationStatus = other.registrationStatus;
|
|
|
226 |
this.validatedTill = other.validatedTill;
|
|
|
227 |
}
|
|
|
228 |
|
|
|
229 |
public CounterOnlineInfo deepCopy() {
|
|
|
230 |
return new CounterOnlineInfo(this);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
@Override
|
|
|
234 |
public void clear() {
|
|
|
235 |
setCounterIdIsSet(false);
|
|
|
236 |
this.counterId = 0;
|
|
|
237 |
this.tinNumber = null;
|
|
|
238 |
this.cstNumber = null;
|
|
|
239 |
this.dealerName = null;
|
|
|
240 |
this.dealerAddress = null;
|
|
|
241 |
this.state = null;
|
|
|
242 |
this.pan = null;
|
|
|
243 |
setRegistrationDateIsSet(false);
|
|
|
244 |
this.registrationDate = 0;
|
|
|
245 |
setRegistrationStatusIsSet(false);
|
|
|
246 |
this.registrationStatus = false;
|
|
|
247 |
setValidatedTillIsSet(false);
|
|
|
248 |
this.validatedTill = 0;
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
public long getCounterId() {
|
|
|
252 |
return this.counterId;
|
|
|
253 |
}
|
|
|
254 |
|
|
|
255 |
public void setCounterId(long counterId) {
|
|
|
256 |
this.counterId = counterId;
|
|
|
257 |
setCounterIdIsSet(true);
|
|
|
258 |
}
|
|
|
259 |
|
|
|
260 |
public void unsetCounterId() {
|
|
|
261 |
__isset_bit_vector.clear(__COUNTERID_ISSET_ID);
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
/** Returns true if field counterId is set (has been assigned a value) and false otherwise */
|
|
|
265 |
public boolean isSetCounterId() {
|
|
|
266 |
return __isset_bit_vector.get(__COUNTERID_ISSET_ID);
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
public void setCounterIdIsSet(boolean value) {
|
|
|
270 |
__isset_bit_vector.set(__COUNTERID_ISSET_ID, value);
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
public String getTinNumber() {
|
|
|
274 |
return this.tinNumber;
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
public void setTinNumber(String tinNumber) {
|
|
|
278 |
this.tinNumber = tinNumber;
|
|
|
279 |
}
|
|
|
280 |
|
|
|
281 |
public void unsetTinNumber() {
|
|
|
282 |
this.tinNumber = null;
|
|
|
283 |
}
|
|
|
284 |
|
|
|
285 |
/** Returns true if field tinNumber is set (has been assigned a value) and false otherwise */
|
|
|
286 |
public boolean isSetTinNumber() {
|
|
|
287 |
return this.tinNumber != null;
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
public void setTinNumberIsSet(boolean value) {
|
|
|
291 |
if (!value) {
|
|
|
292 |
this.tinNumber = null;
|
|
|
293 |
}
|
|
|
294 |
}
|
|
|
295 |
|
|
|
296 |
public String getCstNumber() {
|
|
|
297 |
return this.cstNumber;
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
public void setCstNumber(String cstNumber) {
|
|
|
301 |
this.cstNumber = cstNumber;
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void unsetCstNumber() {
|
|
|
305 |
this.cstNumber = null;
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
/** Returns true if field cstNumber is set (has been assigned a value) and false otherwise */
|
|
|
309 |
public boolean isSetCstNumber() {
|
|
|
310 |
return this.cstNumber != null;
|
|
|
311 |
}
|
|
|
312 |
|
|
|
313 |
public void setCstNumberIsSet(boolean value) {
|
|
|
314 |
if (!value) {
|
|
|
315 |
this.cstNumber = null;
|
|
|
316 |
}
|
|
|
317 |
}
|
|
|
318 |
|
|
|
319 |
public String getDealerName() {
|
|
|
320 |
return this.dealerName;
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public void setDealerName(String dealerName) {
|
|
|
324 |
this.dealerName = dealerName;
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public void unsetDealerName() {
|
|
|
328 |
this.dealerName = null;
|
|
|
329 |
}
|
|
|
330 |
|
|
|
331 |
/** Returns true if field dealerName is set (has been assigned a value) and false otherwise */
|
|
|
332 |
public boolean isSetDealerName() {
|
|
|
333 |
return this.dealerName != null;
|
|
|
334 |
}
|
|
|
335 |
|
|
|
336 |
public void setDealerNameIsSet(boolean value) {
|
|
|
337 |
if (!value) {
|
|
|
338 |
this.dealerName = null;
|
|
|
339 |
}
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public String getDealerAddress() {
|
|
|
343 |
return this.dealerAddress;
|
|
|
344 |
}
|
|
|
345 |
|
|
|
346 |
public void setDealerAddress(String dealerAddress) {
|
|
|
347 |
this.dealerAddress = dealerAddress;
|
|
|
348 |
}
|
|
|
349 |
|
|
|
350 |
public void unsetDealerAddress() {
|
|
|
351 |
this.dealerAddress = null;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
/** Returns true if field dealerAddress is set (has been assigned a value) and false otherwise */
|
|
|
355 |
public boolean isSetDealerAddress() {
|
|
|
356 |
return this.dealerAddress != null;
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
public void setDealerAddressIsSet(boolean value) {
|
|
|
360 |
if (!value) {
|
|
|
361 |
this.dealerAddress = null;
|
|
|
362 |
}
|
|
|
363 |
}
|
|
|
364 |
|
|
|
365 |
public String getState() {
|
|
|
366 |
return this.state;
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
public void setState(String state) {
|
|
|
370 |
this.state = state;
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
public void unsetState() {
|
|
|
374 |
this.state = null;
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
/** Returns true if field state is set (has been assigned a value) and false otherwise */
|
|
|
378 |
public boolean isSetState() {
|
|
|
379 |
return this.state != null;
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public void setStateIsSet(boolean value) {
|
|
|
383 |
if (!value) {
|
|
|
384 |
this.state = null;
|
|
|
385 |
}
|
|
|
386 |
}
|
|
|
387 |
|
|
|
388 |
public String getPan() {
|
|
|
389 |
return this.pan;
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
public void setPan(String pan) {
|
|
|
393 |
this.pan = pan;
|
|
|
394 |
}
|
|
|
395 |
|
|
|
396 |
public void unsetPan() {
|
|
|
397 |
this.pan = null;
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
/** Returns true if field pan is set (has been assigned a value) and false otherwise */
|
|
|
401 |
public boolean isSetPan() {
|
|
|
402 |
return this.pan != null;
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public void setPanIsSet(boolean value) {
|
|
|
406 |
if (!value) {
|
|
|
407 |
this.pan = null;
|
|
|
408 |
}
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
public long getRegistrationDate() {
|
|
|
412 |
return this.registrationDate;
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public void setRegistrationDate(long registrationDate) {
|
|
|
416 |
this.registrationDate = registrationDate;
|
|
|
417 |
setRegistrationDateIsSet(true);
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void unsetRegistrationDate() {
|
|
|
421 |
__isset_bit_vector.clear(__REGISTRATIONDATE_ISSET_ID);
|
|
|
422 |
}
|
|
|
423 |
|
|
|
424 |
/** Returns true if field registrationDate is set (has been assigned a value) and false otherwise */
|
|
|
425 |
public boolean isSetRegistrationDate() {
|
|
|
426 |
return __isset_bit_vector.get(__REGISTRATIONDATE_ISSET_ID);
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void setRegistrationDateIsSet(boolean value) {
|
|
|
430 |
__isset_bit_vector.set(__REGISTRATIONDATE_ISSET_ID, value);
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
public boolean isRegistrationStatus() {
|
|
|
434 |
return this.registrationStatus;
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
public void setRegistrationStatus(boolean registrationStatus) {
|
|
|
438 |
this.registrationStatus = registrationStatus;
|
|
|
439 |
setRegistrationStatusIsSet(true);
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public void unsetRegistrationStatus() {
|
|
|
443 |
__isset_bit_vector.clear(__REGISTRATIONSTATUS_ISSET_ID);
|
|
|
444 |
}
|
|
|
445 |
|
|
|
446 |
/** Returns true if field registrationStatus is set (has been assigned a value) and false otherwise */
|
|
|
447 |
public boolean isSetRegistrationStatus() {
|
|
|
448 |
return __isset_bit_vector.get(__REGISTRATIONSTATUS_ISSET_ID);
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
public void setRegistrationStatusIsSet(boolean value) {
|
|
|
452 |
__isset_bit_vector.set(__REGISTRATIONSTATUS_ISSET_ID, value);
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public long getValidatedTill() {
|
|
|
456 |
return this.validatedTill;
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
public void setValidatedTill(long validatedTill) {
|
|
|
460 |
this.validatedTill = validatedTill;
|
|
|
461 |
setValidatedTillIsSet(true);
|
|
|
462 |
}
|
|
|
463 |
|
|
|
464 |
public void unsetValidatedTill() {
|
|
|
465 |
__isset_bit_vector.clear(__VALIDATEDTILL_ISSET_ID);
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
/** Returns true if field validatedTill is set (has been assigned a value) and false otherwise */
|
|
|
469 |
public boolean isSetValidatedTill() {
|
|
|
470 |
return __isset_bit_vector.get(__VALIDATEDTILL_ISSET_ID);
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public void setValidatedTillIsSet(boolean value) {
|
|
|
474 |
__isset_bit_vector.set(__VALIDATEDTILL_ISSET_ID, value);
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
478 |
switch (field) {
|
|
|
479 |
case COUNTER_ID:
|
|
|
480 |
if (value == null) {
|
|
|
481 |
unsetCounterId();
|
|
|
482 |
} else {
|
|
|
483 |
setCounterId((Long)value);
|
|
|
484 |
}
|
|
|
485 |
break;
|
|
|
486 |
|
|
|
487 |
case TIN_NUMBER:
|
|
|
488 |
if (value == null) {
|
|
|
489 |
unsetTinNumber();
|
|
|
490 |
} else {
|
|
|
491 |
setTinNumber((String)value);
|
|
|
492 |
}
|
|
|
493 |
break;
|
|
|
494 |
|
|
|
495 |
case CST_NUMBER:
|
|
|
496 |
if (value == null) {
|
|
|
497 |
unsetCstNumber();
|
|
|
498 |
} else {
|
|
|
499 |
setCstNumber((String)value);
|
|
|
500 |
}
|
|
|
501 |
break;
|
|
|
502 |
|
|
|
503 |
case DEALER_NAME:
|
|
|
504 |
if (value == null) {
|
|
|
505 |
unsetDealerName();
|
|
|
506 |
} else {
|
|
|
507 |
setDealerName((String)value);
|
|
|
508 |
}
|
|
|
509 |
break;
|
|
|
510 |
|
|
|
511 |
case DEALER_ADDRESS:
|
|
|
512 |
if (value == null) {
|
|
|
513 |
unsetDealerAddress();
|
|
|
514 |
} else {
|
|
|
515 |
setDealerAddress((String)value);
|
|
|
516 |
}
|
|
|
517 |
break;
|
|
|
518 |
|
|
|
519 |
case STATE:
|
|
|
520 |
if (value == null) {
|
|
|
521 |
unsetState();
|
|
|
522 |
} else {
|
|
|
523 |
setState((String)value);
|
|
|
524 |
}
|
|
|
525 |
break;
|
|
|
526 |
|
|
|
527 |
case PAN:
|
|
|
528 |
if (value == null) {
|
|
|
529 |
unsetPan();
|
|
|
530 |
} else {
|
|
|
531 |
setPan((String)value);
|
|
|
532 |
}
|
|
|
533 |
break;
|
|
|
534 |
|
|
|
535 |
case REGISTRATION_DATE:
|
|
|
536 |
if (value == null) {
|
|
|
537 |
unsetRegistrationDate();
|
|
|
538 |
} else {
|
|
|
539 |
setRegistrationDate((Long)value);
|
|
|
540 |
}
|
|
|
541 |
break;
|
|
|
542 |
|
|
|
543 |
case REGISTRATION_STATUS:
|
|
|
544 |
if (value == null) {
|
|
|
545 |
unsetRegistrationStatus();
|
|
|
546 |
} else {
|
|
|
547 |
setRegistrationStatus((Boolean)value);
|
|
|
548 |
}
|
|
|
549 |
break;
|
|
|
550 |
|
|
|
551 |
case VALIDATED_TILL:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetValidatedTill();
|
|
|
554 |
} else {
|
|
|
555 |
setValidatedTill((Long)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
|
|
559 |
}
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public Object getFieldValue(_Fields field) {
|
|
|
563 |
switch (field) {
|
|
|
564 |
case COUNTER_ID:
|
|
|
565 |
return Long.valueOf(getCounterId());
|
|
|
566 |
|
|
|
567 |
case TIN_NUMBER:
|
|
|
568 |
return getTinNumber();
|
|
|
569 |
|
|
|
570 |
case CST_NUMBER:
|
|
|
571 |
return getCstNumber();
|
|
|
572 |
|
|
|
573 |
case DEALER_NAME:
|
|
|
574 |
return getDealerName();
|
|
|
575 |
|
|
|
576 |
case DEALER_ADDRESS:
|
|
|
577 |
return getDealerAddress();
|
|
|
578 |
|
|
|
579 |
case STATE:
|
|
|
580 |
return getState();
|
|
|
581 |
|
|
|
582 |
case PAN:
|
|
|
583 |
return getPan();
|
|
|
584 |
|
|
|
585 |
case REGISTRATION_DATE:
|
|
|
586 |
return Long.valueOf(getRegistrationDate());
|
|
|
587 |
|
|
|
588 |
case REGISTRATION_STATUS:
|
|
|
589 |
return Boolean.valueOf(isRegistrationStatus());
|
|
|
590 |
|
|
|
591 |
case VALIDATED_TILL:
|
|
|
592 |
return Long.valueOf(getValidatedTill());
|
|
|
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 COUNTER_ID:
|
|
|
606 |
return isSetCounterId();
|
|
|
607 |
case TIN_NUMBER:
|
|
|
608 |
return isSetTinNumber();
|
|
|
609 |
case CST_NUMBER:
|
|
|
610 |
return isSetCstNumber();
|
|
|
611 |
case DEALER_NAME:
|
|
|
612 |
return isSetDealerName();
|
|
|
613 |
case DEALER_ADDRESS:
|
|
|
614 |
return isSetDealerAddress();
|
|
|
615 |
case STATE:
|
|
|
616 |
return isSetState();
|
|
|
617 |
case PAN:
|
|
|
618 |
return isSetPan();
|
|
|
619 |
case REGISTRATION_DATE:
|
|
|
620 |
return isSetRegistrationDate();
|
|
|
621 |
case REGISTRATION_STATUS:
|
|
|
622 |
return isSetRegistrationStatus();
|
|
|
623 |
case VALIDATED_TILL:
|
|
|
624 |
return isSetValidatedTill();
|
|
|
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 CounterOnlineInfo)
|
|
|
634 |
return this.equals((CounterOnlineInfo)that);
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
public boolean equals(CounterOnlineInfo that) {
|
|
|
639 |
if (that == null)
|
|
|
640 |
return false;
|
|
|
641 |
|
|
|
642 |
boolean this_present_counterId = true;
|
|
|
643 |
boolean that_present_counterId = true;
|
|
|
644 |
if (this_present_counterId || that_present_counterId) {
|
|
|
645 |
if (!(this_present_counterId && that_present_counterId))
|
|
|
646 |
return false;
|
|
|
647 |
if (this.counterId != that.counterId)
|
|
|
648 |
return false;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
boolean this_present_tinNumber = true && this.isSetTinNumber();
|
|
|
652 |
boolean that_present_tinNumber = true && that.isSetTinNumber();
|
|
|
653 |
if (this_present_tinNumber || that_present_tinNumber) {
|
|
|
654 |
if (!(this_present_tinNumber && that_present_tinNumber))
|
|
|
655 |
return false;
|
|
|
656 |
if (!this.tinNumber.equals(that.tinNumber))
|
|
|
657 |
return false;
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
boolean this_present_cstNumber = true && this.isSetCstNumber();
|
|
|
661 |
boolean that_present_cstNumber = true && that.isSetCstNumber();
|
|
|
662 |
if (this_present_cstNumber || that_present_cstNumber) {
|
|
|
663 |
if (!(this_present_cstNumber && that_present_cstNumber))
|
|
|
664 |
return false;
|
|
|
665 |
if (!this.cstNumber.equals(that.cstNumber))
|
|
|
666 |
return false;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
boolean this_present_dealerName = true && this.isSetDealerName();
|
|
|
670 |
boolean that_present_dealerName = true && that.isSetDealerName();
|
|
|
671 |
if (this_present_dealerName || that_present_dealerName) {
|
|
|
672 |
if (!(this_present_dealerName && that_present_dealerName))
|
|
|
673 |
return false;
|
|
|
674 |
if (!this.dealerName.equals(that.dealerName))
|
|
|
675 |
return false;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
boolean this_present_dealerAddress = true && this.isSetDealerAddress();
|
|
|
679 |
boolean that_present_dealerAddress = true && that.isSetDealerAddress();
|
|
|
680 |
if (this_present_dealerAddress || that_present_dealerAddress) {
|
|
|
681 |
if (!(this_present_dealerAddress && that_present_dealerAddress))
|
|
|
682 |
return false;
|
|
|
683 |
if (!this.dealerAddress.equals(that.dealerAddress))
|
|
|
684 |
return false;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
boolean this_present_state = true && this.isSetState();
|
|
|
688 |
boolean that_present_state = true && that.isSetState();
|
|
|
689 |
if (this_present_state || that_present_state) {
|
|
|
690 |
if (!(this_present_state && that_present_state))
|
|
|
691 |
return false;
|
|
|
692 |
if (!this.state.equals(that.state))
|
|
|
693 |
return false;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
boolean this_present_pan = true && this.isSetPan();
|
|
|
697 |
boolean that_present_pan = true && that.isSetPan();
|
|
|
698 |
if (this_present_pan || that_present_pan) {
|
|
|
699 |
if (!(this_present_pan && that_present_pan))
|
|
|
700 |
return false;
|
|
|
701 |
if (!this.pan.equals(that.pan))
|
|
|
702 |
return false;
|
|
|
703 |
}
|
|
|
704 |
|
|
|
705 |
boolean this_present_registrationDate = true;
|
|
|
706 |
boolean that_present_registrationDate = true;
|
|
|
707 |
if (this_present_registrationDate || that_present_registrationDate) {
|
|
|
708 |
if (!(this_present_registrationDate && that_present_registrationDate))
|
|
|
709 |
return false;
|
|
|
710 |
if (this.registrationDate != that.registrationDate)
|
|
|
711 |
return false;
|
|
|
712 |
}
|
|
|
713 |
|
|
|
714 |
boolean this_present_registrationStatus = true;
|
|
|
715 |
boolean that_present_registrationStatus = true;
|
|
|
716 |
if (this_present_registrationStatus || that_present_registrationStatus) {
|
|
|
717 |
if (!(this_present_registrationStatus && that_present_registrationStatus))
|
|
|
718 |
return false;
|
|
|
719 |
if (this.registrationStatus != that.registrationStatus)
|
|
|
720 |
return false;
|
|
|
721 |
}
|
|
|
722 |
|
|
|
723 |
boolean this_present_validatedTill = true;
|
|
|
724 |
boolean that_present_validatedTill = true;
|
|
|
725 |
if (this_present_validatedTill || that_present_validatedTill) {
|
|
|
726 |
if (!(this_present_validatedTill && that_present_validatedTill))
|
|
|
727 |
return false;
|
|
|
728 |
if (this.validatedTill != that.validatedTill)
|
|
|
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(CounterOnlineInfo other) {
|
|
|
741 |
if (!getClass().equals(other.getClass())) {
|
|
|
742 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
int lastComparison = 0;
|
|
|
746 |
CounterOnlineInfo typedOther = (CounterOnlineInfo)other;
|
|
|
747 |
|
|
|
748 |
lastComparison = Boolean.valueOf(isSetCounterId()).compareTo(typedOther.isSetCounterId());
|
|
|
749 |
if (lastComparison != 0) {
|
|
|
750 |
return lastComparison;
|
|
|
751 |
}
|
|
|
752 |
if (isSetCounterId()) {
|
|
|
753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.counterId, typedOther.counterId);
|
|
|
754 |
if (lastComparison != 0) {
|
|
|
755 |
return lastComparison;
|
|
|
756 |
}
|
|
|
757 |
}
|
|
|
758 |
lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(typedOther.isSetTinNumber());
|
|
|
759 |
if (lastComparison != 0) {
|
|
|
760 |
return lastComparison;
|
|
|
761 |
}
|
|
|
762 |
if (isSetTinNumber()) {
|
|
|
763 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinNumber, typedOther.tinNumber);
|
|
|
764 |
if (lastComparison != 0) {
|
|
|
765 |
return lastComparison;
|
|
|
766 |
}
|
|
|
767 |
}
|
|
|
768 |
lastComparison = Boolean.valueOf(isSetCstNumber()).compareTo(typedOther.isSetCstNumber());
|
|
|
769 |
if (lastComparison != 0) {
|
|
|
770 |
return lastComparison;
|
|
|
771 |
}
|
|
|
772 |
if (isSetCstNumber()) {
|
|
|
773 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cstNumber, typedOther.cstNumber);
|
|
|
774 |
if (lastComparison != 0) {
|
|
|
775 |
return lastComparison;
|
|
|
776 |
}
|
|
|
777 |
}
|
|
|
778 |
lastComparison = Boolean.valueOf(isSetDealerName()).compareTo(typedOther.isSetDealerName());
|
|
|
779 |
if (lastComparison != 0) {
|
|
|
780 |
return lastComparison;
|
|
|
781 |
}
|
|
|
782 |
if (isSetDealerName()) {
|
|
|
783 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealerName, typedOther.dealerName);
|
|
|
784 |
if (lastComparison != 0) {
|
|
|
785 |
return lastComparison;
|
|
|
786 |
}
|
|
|
787 |
}
|
|
|
788 |
lastComparison = Boolean.valueOf(isSetDealerAddress()).compareTo(typedOther.isSetDealerAddress());
|
|
|
789 |
if (lastComparison != 0) {
|
|
|
790 |
return lastComparison;
|
|
|
791 |
}
|
|
|
792 |
if (isSetDealerAddress()) {
|
|
|
793 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealerAddress, typedOther.dealerAddress);
|
|
|
794 |
if (lastComparison != 0) {
|
|
|
795 |
return lastComparison;
|
|
|
796 |
}
|
|
|
797 |
}
|
|
|
798 |
lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
|
|
|
799 |
if (lastComparison != 0) {
|
|
|
800 |
return lastComparison;
|
|
|
801 |
}
|
|
|
802 |
if (isSetState()) {
|
|
|
803 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
|
|
|
804 |
if (lastComparison != 0) {
|
|
|
805 |
return lastComparison;
|
|
|
806 |
}
|
|
|
807 |
}
|
|
|
808 |
lastComparison = Boolean.valueOf(isSetPan()).compareTo(typedOther.isSetPan());
|
|
|
809 |
if (lastComparison != 0) {
|
|
|
810 |
return lastComparison;
|
|
|
811 |
}
|
|
|
812 |
if (isSetPan()) {
|
|
|
813 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pan, typedOther.pan);
|
|
|
814 |
if (lastComparison != 0) {
|
|
|
815 |
return lastComparison;
|
|
|
816 |
}
|
|
|
817 |
}
|
|
|
818 |
lastComparison = Boolean.valueOf(isSetRegistrationDate()).compareTo(typedOther.isSetRegistrationDate());
|
|
|
819 |
if (lastComparison != 0) {
|
|
|
820 |
return lastComparison;
|
|
|
821 |
}
|
|
|
822 |
if (isSetRegistrationDate()) {
|
|
|
823 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registrationDate, typedOther.registrationDate);
|
|
|
824 |
if (lastComparison != 0) {
|
|
|
825 |
return lastComparison;
|
|
|
826 |
}
|
|
|
827 |
}
|
|
|
828 |
lastComparison = Boolean.valueOf(isSetRegistrationStatus()).compareTo(typedOther.isSetRegistrationStatus());
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
|
|
832 |
if (isSetRegistrationStatus()) {
|
|
|
833 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registrationStatus, typedOther.registrationStatus);
|
|
|
834 |
if (lastComparison != 0) {
|
|
|
835 |
return lastComparison;
|
|
|
836 |
}
|
|
|
837 |
}
|
|
|
838 |
lastComparison = Boolean.valueOf(isSetValidatedTill()).compareTo(typedOther.isSetValidatedTill());
|
|
|
839 |
if (lastComparison != 0) {
|
|
|
840 |
return lastComparison;
|
|
|
841 |
}
|
|
|
842 |
if (isSetValidatedTill()) {
|
|
|
843 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validatedTill, typedOther.validatedTill);
|
|
|
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: // COUNTER_ID
|
|
|
866 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
867 |
this.counterId = iprot.readI64();
|
|
|
868 |
setCounterIdIsSet(true);
|
|
|
869 |
} else {
|
|
|
870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
871 |
}
|
|
|
872 |
break;
|
|
|
873 |
case 2: // TIN_NUMBER
|
|
|
874 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
875 |
this.tinNumber = iprot.readString();
|
|
|
876 |
} else {
|
|
|
877 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
878 |
}
|
|
|
879 |
break;
|
|
|
880 |
case 3: // CST_NUMBER
|
|
|
881 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
882 |
this.cstNumber = iprot.readString();
|
|
|
883 |
} else {
|
|
|
884 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
885 |
}
|
|
|
886 |
break;
|
|
|
887 |
case 4: // DEALER_NAME
|
|
|
888 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
889 |
this.dealerName = iprot.readString();
|
|
|
890 |
} else {
|
|
|
891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
892 |
}
|
|
|
893 |
break;
|
|
|
894 |
case 5: // DEALER_ADDRESS
|
|
|
895 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
896 |
this.dealerAddress = iprot.readString();
|
|
|
897 |
} else {
|
|
|
898 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
899 |
}
|
|
|
900 |
break;
|
|
|
901 |
case 6: // STATE
|
|
|
902 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
903 |
this.state = iprot.readString();
|
|
|
904 |
} else {
|
|
|
905 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
906 |
}
|
|
|
907 |
break;
|
|
|
908 |
case 7: // PAN
|
|
|
909 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
910 |
this.pan = iprot.readString();
|
|
|
911 |
} else {
|
|
|
912 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
913 |
}
|
|
|
914 |
break;
|
|
|
915 |
case 8: // REGISTRATION_DATE
|
|
|
916 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
917 |
this.registrationDate = iprot.readI64();
|
|
|
918 |
setRegistrationDateIsSet(true);
|
|
|
919 |
} else {
|
|
|
920 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
921 |
}
|
|
|
922 |
break;
|
|
|
923 |
case 9: // REGISTRATION_STATUS
|
|
|
924 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
925 |
this.registrationStatus = iprot.readBool();
|
|
|
926 |
setRegistrationStatusIsSet(true);
|
|
|
927 |
} else {
|
|
|
928 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
929 |
}
|
|
|
930 |
break;
|
|
|
931 |
case 10: // VALIDATED_TILL
|
|
|
932 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
933 |
this.validatedTill = iprot.readI64();
|
|
|
934 |
setValidatedTillIsSet(true);
|
|
|
935 |
} else {
|
|
|
936 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
937 |
}
|
|
|
938 |
break;
|
|
|
939 |
default:
|
|
|
940 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
941 |
}
|
|
|
942 |
iprot.readFieldEnd();
|
|
|
943 |
}
|
|
|
944 |
iprot.readStructEnd();
|
|
|
945 |
validate();
|
|
|
946 |
}
|
|
|
947 |
|
|
|
948 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
949 |
validate();
|
|
|
950 |
|
|
|
951 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
952 |
oprot.writeFieldBegin(COUNTER_ID_FIELD_DESC);
|
|
|
953 |
oprot.writeI64(this.counterId);
|
|
|
954 |
oprot.writeFieldEnd();
|
|
|
955 |
if (this.tinNumber != null) {
|
|
|
956 |
oprot.writeFieldBegin(TIN_NUMBER_FIELD_DESC);
|
|
|
957 |
oprot.writeString(this.tinNumber);
|
|
|
958 |
oprot.writeFieldEnd();
|
|
|
959 |
}
|
|
|
960 |
if (this.cstNumber != null) {
|
|
|
961 |
oprot.writeFieldBegin(CST_NUMBER_FIELD_DESC);
|
|
|
962 |
oprot.writeString(this.cstNumber);
|
|
|
963 |
oprot.writeFieldEnd();
|
|
|
964 |
}
|
|
|
965 |
if (this.dealerName != null) {
|
|
|
966 |
oprot.writeFieldBegin(DEALER_NAME_FIELD_DESC);
|
|
|
967 |
oprot.writeString(this.dealerName);
|
|
|
968 |
oprot.writeFieldEnd();
|
|
|
969 |
}
|
|
|
970 |
if (this.dealerAddress != null) {
|
|
|
971 |
oprot.writeFieldBegin(DEALER_ADDRESS_FIELD_DESC);
|
|
|
972 |
oprot.writeString(this.dealerAddress);
|
|
|
973 |
oprot.writeFieldEnd();
|
|
|
974 |
}
|
|
|
975 |
if (this.state != null) {
|
|
|
976 |
oprot.writeFieldBegin(STATE_FIELD_DESC);
|
|
|
977 |
oprot.writeString(this.state);
|
|
|
978 |
oprot.writeFieldEnd();
|
|
|
979 |
}
|
|
|
980 |
if (this.pan != null) {
|
|
|
981 |
oprot.writeFieldBegin(PAN_FIELD_DESC);
|
|
|
982 |
oprot.writeString(this.pan);
|
|
|
983 |
oprot.writeFieldEnd();
|
|
|
984 |
}
|
|
|
985 |
oprot.writeFieldBegin(REGISTRATION_DATE_FIELD_DESC);
|
|
|
986 |
oprot.writeI64(this.registrationDate);
|
|
|
987 |
oprot.writeFieldEnd();
|
|
|
988 |
oprot.writeFieldBegin(REGISTRATION_STATUS_FIELD_DESC);
|
|
|
989 |
oprot.writeBool(this.registrationStatus);
|
|
|
990 |
oprot.writeFieldEnd();
|
|
|
991 |
oprot.writeFieldBegin(VALIDATED_TILL_FIELD_DESC);
|
|
|
992 |
oprot.writeI64(this.validatedTill);
|
|
|
993 |
oprot.writeFieldEnd();
|
|
|
994 |
oprot.writeFieldStop();
|
|
|
995 |
oprot.writeStructEnd();
|
|
|
996 |
}
|
|
|
997 |
|
|
|
998 |
@Override
|
|
|
999 |
public String toString() {
|
|
|
1000 |
StringBuilder sb = new StringBuilder("CounterOnlineInfo(");
|
|
|
1001 |
boolean first = true;
|
|
|
1002 |
|
|
|
1003 |
sb.append("counterId:");
|
|
|
1004 |
sb.append(this.counterId);
|
|
|
1005 |
first = false;
|
|
|
1006 |
if (!first) sb.append(", ");
|
|
|
1007 |
sb.append("tinNumber:");
|
|
|
1008 |
if (this.tinNumber == null) {
|
|
|
1009 |
sb.append("null");
|
|
|
1010 |
} else {
|
|
|
1011 |
sb.append(this.tinNumber);
|
|
|
1012 |
}
|
|
|
1013 |
first = false;
|
|
|
1014 |
if (!first) sb.append(", ");
|
|
|
1015 |
sb.append("cstNumber:");
|
|
|
1016 |
if (this.cstNumber == null) {
|
|
|
1017 |
sb.append("null");
|
|
|
1018 |
} else {
|
|
|
1019 |
sb.append(this.cstNumber);
|
|
|
1020 |
}
|
|
|
1021 |
first = false;
|
|
|
1022 |
if (!first) sb.append(", ");
|
|
|
1023 |
sb.append("dealerName:");
|
|
|
1024 |
if (this.dealerName == null) {
|
|
|
1025 |
sb.append("null");
|
|
|
1026 |
} else {
|
|
|
1027 |
sb.append(this.dealerName);
|
|
|
1028 |
}
|
|
|
1029 |
first = false;
|
|
|
1030 |
if (!first) sb.append(", ");
|
|
|
1031 |
sb.append("dealerAddress:");
|
|
|
1032 |
if (this.dealerAddress == null) {
|
|
|
1033 |
sb.append("null");
|
|
|
1034 |
} else {
|
|
|
1035 |
sb.append(this.dealerAddress);
|
|
|
1036 |
}
|
|
|
1037 |
first = false;
|
|
|
1038 |
if (!first) sb.append(", ");
|
|
|
1039 |
sb.append("state:");
|
|
|
1040 |
if (this.state == null) {
|
|
|
1041 |
sb.append("null");
|
|
|
1042 |
} else {
|
|
|
1043 |
sb.append(this.state);
|
|
|
1044 |
}
|
|
|
1045 |
first = false;
|
|
|
1046 |
if (!first) sb.append(", ");
|
|
|
1047 |
sb.append("pan:");
|
|
|
1048 |
if (this.pan == null) {
|
|
|
1049 |
sb.append("null");
|
|
|
1050 |
} else {
|
|
|
1051 |
sb.append(this.pan);
|
|
|
1052 |
}
|
|
|
1053 |
first = false;
|
|
|
1054 |
if (!first) sb.append(", ");
|
|
|
1055 |
sb.append("registrationDate:");
|
|
|
1056 |
sb.append(this.registrationDate);
|
|
|
1057 |
first = false;
|
|
|
1058 |
if (!first) sb.append(", ");
|
|
|
1059 |
sb.append("registrationStatus:");
|
|
|
1060 |
sb.append(this.registrationStatus);
|
|
|
1061 |
first = false;
|
|
|
1062 |
if (!first) sb.append(", ");
|
|
|
1063 |
sb.append("validatedTill:");
|
|
|
1064 |
sb.append(this.validatedTill);
|
|
|
1065 |
first = false;
|
|
|
1066 |
sb.append(")");
|
|
|
1067 |
return sb.toString();
|
|
|
1068 |
}
|
|
|
1069 |
|
|
|
1070 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1071 |
// check for required fields
|
|
|
1072 |
}
|
|
|
1073 |
|
|
|
1074 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1075 |
try {
|
|
|
1076 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1077 |
} catch (org.apache.thrift.TException te) {
|
|
|
1078 |
throw new java.io.IOException(te);
|
|
|
1079 |
}
|
|
|
1080 |
}
|
|
|
1081 |
|
|
|
1082 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1083 |
try {
|
|
|
1084 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1085 |
__isset_bit_vector = new BitSet(1);
|
|
|
1086 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1087 |
} catch (org.apache.thrift.TException te) {
|
|
|
1088 |
throw new java.io.IOException(te);
|
|
|
1089 |
}
|
|
|
1090 |
}
|
|
|
1091 |
|
|
|
1092 |
}
|
|
|
1093 |
|