Subversion Repositories SmartDukaan

Rev

Rev 12722 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12696 amit.gupta 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 Counter implements org.apache.thrift.TBase<Counter, Counter._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Counter");
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 CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("code", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  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)3);
29
  private static final org.apache.thrift.protocol.TField OWNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerName", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  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)5);
31
  private static final org.apache.thrift.protocol.TField MOBILE_FIELD_DESC = new org.apache.thrift.protocol.TField("mobile", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField ALTERNATE_MOBILE_FIELD_DESC = new org.apache.thrift.protocol.TField("alternateMobile", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField STRIKER_FIELD_DESC = new org.apache.thrift.protocol.TField("striker", org.apache.thrift.protocol.TType.BOOL, (short)8);
34
  private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField SP_COUNTER_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("spCounterSize", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField FP_COUNTER_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("fpCounterSize", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.I64, (short)14);
40
 
41
  private long id; // required
42
  private String code; // required
43
  private String name; // required
44
  private String ownerName; // required
45
  private String email; // required
46
  private String mobile; // required
47
  private String alternateMobile; // required
48
  private boolean striker; // required
49
  private String tin; // required
50
  private long spCounterSize; // required
51
  private long fpCounterSize; // required
52
  private long dob; // required
53
  private long addedOn; // required
54
  private long address; // required
55
 
56
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58
    ID((short)1, "id"),
59
    CODE((short)2, "code"),
60
    NAME((short)3, "name"),
61
    OWNER_NAME((short)4, "ownerName"),
62
    EMAIL((short)5, "email"),
63
    MOBILE((short)6, "mobile"),
64
    ALTERNATE_MOBILE((short)7, "alternateMobile"),
65
    STRIKER((short)8, "striker"),
66
    TIN((short)9, "tin"),
67
    SP_COUNTER_SIZE((short)10, "spCounterSize"),
68
    FP_COUNTER_SIZE((short)11, "fpCounterSize"),
69
    DOB((short)12, "dob"),
70
    ADDED_ON((short)13, "addedOn"),
71
    ADDRESS((short)14, "address");
72
 
73
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
74
 
75
    static {
76
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
77
        byName.put(field.getFieldName(), field);
78
      }
79
    }
80
 
81
    /**
82
     * Find the _Fields constant that matches fieldId, or null if its not found.
83
     */
84
    public static _Fields findByThriftId(int fieldId) {
85
      switch(fieldId) {
86
        case 1: // ID
87
          return ID;
88
        case 2: // CODE
89
          return CODE;
90
        case 3: // NAME
91
          return NAME;
92
        case 4: // OWNER_NAME
93
          return OWNER_NAME;
94
        case 5: // EMAIL
95
          return EMAIL;
96
        case 6: // MOBILE
97
          return MOBILE;
98
        case 7: // ALTERNATE_MOBILE
99
          return ALTERNATE_MOBILE;
100
        case 8: // STRIKER
101
          return STRIKER;
102
        case 9: // TIN
103
          return TIN;
104
        case 10: // SP_COUNTER_SIZE
105
          return SP_COUNTER_SIZE;
106
        case 11: // FP_COUNTER_SIZE
107
          return FP_COUNTER_SIZE;
108
        case 12: // DOB
109
          return DOB;
110
        case 13: // ADDED_ON
111
          return ADDED_ON;
112
        case 14: // ADDRESS
113
          return ADDRESS;
114
        default:
115
          return null;
116
      }
117
    }
118
 
119
    /**
120
     * Find the _Fields constant that matches fieldId, throwing an exception
121
     * if it is not found.
122
     */
123
    public static _Fields findByThriftIdOrThrow(int fieldId) {
124
      _Fields fields = findByThriftId(fieldId);
125
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
126
      return fields;
127
    }
128
 
129
    /**
130
     * Find the _Fields constant that matches name, or null if its not found.
131
     */
132
    public static _Fields findByName(String name) {
133
      return byName.get(name);
134
    }
135
 
136
    private final short _thriftId;
137
    private final String _fieldName;
138
 
139
    _Fields(short thriftId, String fieldName) {
140
      _thriftId = thriftId;
141
      _fieldName = fieldName;
142
    }
143
 
144
    public short getThriftFieldId() {
145
      return _thriftId;
146
    }
147
 
148
    public String getFieldName() {
149
      return _fieldName;
150
    }
151
  }
152
 
153
  // isset id assignments
154
  private static final int __ID_ISSET_ID = 0;
155
  private static final int __STRIKER_ISSET_ID = 1;
156
  private static final int __SPCOUNTERSIZE_ISSET_ID = 2;
157
  private static final int __FPCOUNTERSIZE_ISSET_ID = 3;
158
  private static final int __DOB_ISSET_ID = 4;
159
  private static final int __ADDEDON_ISSET_ID = 5;
160
  private static final int __ADDRESS_ISSET_ID = 6;
161
  private BitSet __isset_bit_vector = new BitSet(7);
162
 
163
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
164
  static {
165
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
166
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
168
    tmpMap.put(_Fields.CODE, new org.apache.thrift.meta_data.FieldMetaData("code", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
170
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
172
    tmpMap.put(_Fields.OWNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("ownerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
174
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
176
    tmpMap.put(_Fields.MOBILE, new org.apache.thrift.meta_data.FieldMetaData("mobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
178
    tmpMap.put(_Fields.ALTERNATE_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("alternateMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
180
    tmpMap.put(_Fields.STRIKER, new org.apache.thrift.meta_data.FieldMetaData("striker", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
182
    tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
184
    tmpMap.put(_Fields.SP_COUNTER_SIZE, new org.apache.thrift.meta_data.FieldMetaData("spCounterSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
186
    tmpMap.put(_Fields.FP_COUNTER_SIZE, new org.apache.thrift.meta_data.FieldMetaData("fpCounterSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
188
    tmpMap.put(_Fields.DOB, new org.apache.thrift.meta_data.FieldMetaData("dob", org.apache.thrift.TFieldRequirementType.DEFAULT, 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
190
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
192
    tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, 
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
194
    metaDataMap = Collections.unmodifiableMap(tmpMap);
195
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Counter.class, metaDataMap);
196
  }
197
 
198
  public Counter() {
199
  }
200
 
201
  public Counter(
202
    long id,
203
    String code,
204
    String name,
205
    String ownerName,
206
    String email,
207
    String mobile,
208
    String alternateMobile,
209
    boolean striker,
210
    String tin,
211
    long spCounterSize,
212
    long fpCounterSize,
213
    long dob,
214
    long addedOn,
215
    long address)
216
  {
217
    this();
218
    this.id = id;
219
    setIdIsSet(true);
220
    this.code = code;
221
    this.name = name;
222
    this.ownerName = ownerName;
223
    this.email = email;
224
    this.mobile = mobile;
225
    this.alternateMobile = alternateMobile;
226
    this.striker = striker;
227
    setStrikerIsSet(true);
228
    this.tin = tin;
229
    this.spCounterSize = spCounterSize;
230
    setSpCounterSizeIsSet(true);
231
    this.fpCounterSize = fpCounterSize;
232
    setFpCounterSizeIsSet(true);
233
    this.dob = dob;
234
    setDobIsSet(true);
235
    this.addedOn = addedOn;
236
    setAddedOnIsSet(true);
237
    this.address = address;
238
    setAddressIsSet(true);
239
  }
240
 
241
  /**
242
   * Performs a deep copy on <i>other</i>.
243
   */
244
  public Counter(Counter other) {
245
    __isset_bit_vector.clear();
246
    __isset_bit_vector.or(other.__isset_bit_vector);
247
    this.id = other.id;
248
    if (other.isSetCode()) {
249
      this.code = other.code;
250
    }
251
    if (other.isSetName()) {
252
      this.name = other.name;
253
    }
254
    if (other.isSetOwnerName()) {
255
      this.ownerName = other.ownerName;
256
    }
257
    if (other.isSetEmail()) {
258
      this.email = other.email;
259
    }
260
    if (other.isSetMobile()) {
261
      this.mobile = other.mobile;
262
    }
263
    if (other.isSetAlternateMobile()) {
264
      this.alternateMobile = other.alternateMobile;
265
    }
266
    this.striker = other.striker;
267
    if (other.isSetTin()) {
268
      this.tin = other.tin;
269
    }
270
    this.spCounterSize = other.spCounterSize;
271
    this.fpCounterSize = other.fpCounterSize;
272
    this.dob = other.dob;
273
    this.addedOn = other.addedOn;
274
    this.address = other.address;
275
  }
276
 
277
  public Counter deepCopy() {
278
    return new Counter(this);
279
  }
280
 
281
  @Override
282
  public void clear() {
283
    setIdIsSet(false);
284
    this.id = 0;
285
    this.code = null;
286
    this.name = null;
287
    this.ownerName = null;
288
    this.email = null;
289
    this.mobile = null;
290
    this.alternateMobile = null;
291
    setStrikerIsSet(false);
292
    this.striker = false;
293
    this.tin = null;
294
    setSpCounterSizeIsSet(false);
295
    this.spCounterSize = 0;
296
    setFpCounterSizeIsSet(false);
297
    this.fpCounterSize = 0;
298
    setDobIsSet(false);
299
    this.dob = 0;
300
    setAddedOnIsSet(false);
301
    this.addedOn = 0;
302
    setAddressIsSet(false);
303
    this.address = 0;
304
  }
305
 
306
  public long getId() {
307
    return this.id;
308
  }
309
 
310
  public void setId(long id) {
311
    this.id = id;
312
    setIdIsSet(true);
313
  }
314
 
315
  public void unsetId() {
316
    __isset_bit_vector.clear(__ID_ISSET_ID);
317
  }
318
 
319
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
320
  public boolean isSetId() {
321
    return __isset_bit_vector.get(__ID_ISSET_ID);
322
  }
323
 
324
  public void setIdIsSet(boolean value) {
325
    __isset_bit_vector.set(__ID_ISSET_ID, value);
326
  }
327
 
328
  public String getCode() {
329
    return this.code;
330
  }
331
 
332
  public void setCode(String code) {
333
    this.code = code;
334
  }
335
 
336
  public void unsetCode() {
337
    this.code = null;
338
  }
339
 
340
  /** Returns true if field code is set (has been assigned a value) and false otherwise */
341
  public boolean isSetCode() {
342
    return this.code != null;
343
  }
344
 
345
  public void setCodeIsSet(boolean value) {
346
    if (!value) {
347
      this.code = null;
348
    }
349
  }
350
 
351
  public String getName() {
352
    return this.name;
353
  }
354
 
355
  public void setName(String name) {
356
    this.name = name;
357
  }
358
 
359
  public void unsetName() {
360
    this.name = null;
361
  }
362
 
363
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
364
  public boolean isSetName() {
365
    return this.name != null;
366
  }
367
 
368
  public void setNameIsSet(boolean value) {
369
    if (!value) {
370
      this.name = null;
371
    }
372
  }
373
 
374
  public String getOwnerName() {
375
    return this.ownerName;
376
  }
377
 
378
  public void setOwnerName(String ownerName) {
379
    this.ownerName = ownerName;
380
  }
381
 
382
  public void unsetOwnerName() {
383
    this.ownerName = null;
384
  }
385
 
386
  /** Returns true if field ownerName is set (has been assigned a value) and false otherwise */
387
  public boolean isSetOwnerName() {
388
    return this.ownerName != null;
389
  }
390
 
391
  public void setOwnerNameIsSet(boolean value) {
392
    if (!value) {
393
      this.ownerName = null;
394
    }
395
  }
396
 
397
  public String getEmail() {
398
    return this.email;
399
  }
400
 
401
  public void setEmail(String email) {
402
    this.email = email;
403
  }
404
 
405
  public void unsetEmail() {
406
    this.email = null;
407
  }
408
 
409
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
410
  public boolean isSetEmail() {
411
    return this.email != null;
412
  }
413
 
414
  public void setEmailIsSet(boolean value) {
415
    if (!value) {
416
      this.email = null;
417
    }
418
  }
419
 
420
  public String getMobile() {
421
    return this.mobile;
422
  }
423
 
424
  public void setMobile(String mobile) {
425
    this.mobile = mobile;
426
  }
427
 
428
  public void unsetMobile() {
429
    this.mobile = null;
430
  }
431
 
432
  /** Returns true if field mobile is set (has been assigned a value) and false otherwise */
433
  public boolean isSetMobile() {
434
    return this.mobile != null;
435
  }
436
 
437
  public void setMobileIsSet(boolean value) {
438
    if (!value) {
439
      this.mobile = null;
440
    }
441
  }
442
 
443
  public String getAlternateMobile() {
444
    return this.alternateMobile;
445
  }
446
 
447
  public void setAlternateMobile(String alternateMobile) {
448
    this.alternateMobile = alternateMobile;
449
  }
450
 
451
  public void unsetAlternateMobile() {
452
    this.alternateMobile = null;
453
  }
454
 
455
  /** Returns true if field alternateMobile is set (has been assigned a value) and false otherwise */
456
  public boolean isSetAlternateMobile() {
457
    return this.alternateMobile != null;
458
  }
459
 
460
  public void setAlternateMobileIsSet(boolean value) {
461
    if (!value) {
462
      this.alternateMobile = null;
463
    }
464
  }
465
 
466
  public boolean isStriker() {
467
    return this.striker;
468
  }
469
 
470
  public void setStriker(boolean striker) {
471
    this.striker = striker;
472
    setStrikerIsSet(true);
473
  }
474
 
475
  public void unsetStriker() {
476
    __isset_bit_vector.clear(__STRIKER_ISSET_ID);
477
  }
478
 
479
  /** Returns true if field striker is set (has been assigned a value) and false otherwise */
480
  public boolean isSetStriker() {
481
    return __isset_bit_vector.get(__STRIKER_ISSET_ID);
482
  }
483
 
484
  public void setStrikerIsSet(boolean value) {
485
    __isset_bit_vector.set(__STRIKER_ISSET_ID, value);
486
  }
487
 
488
  public String getTin() {
489
    return this.tin;
490
  }
491
 
492
  public void setTin(String tin) {
493
    this.tin = tin;
494
  }
495
 
496
  public void unsetTin() {
497
    this.tin = null;
498
  }
499
 
500
  /** Returns true if field tin is set (has been assigned a value) and false otherwise */
501
  public boolean isSetTin() {
502
    return this.tin != null;
503
  }
504
 
505
  public void setTinIsSet(boolean value) {
506
    if (!value) {
507
      this.tin = null;
508
    }
509
  }
510
 
511
  public long getSpCounterSize() {
512
    return this.spCounterSize;
513
  }
514
 
515
  public void setSpCounterSize(long spCounterSize) {
516
    this.spCounterSize = spCounterSize;
517
    setSpCounterSizeIsSet(true);
518
  }
519
 
520
  public void unsetSpCounterSize() {
521
    __isset_bit_vector.clear(__SPCOUNTERSIZE_ISSET_ID);
522
  }
523
 
524
  /** Returns true if field spCounterSize is set (has been assigned a value) and false otherwise */
525
  public boolean isSetSpCounterSize() {
526
    return __isset_bit_vector.get(__SPCOUNTERSIZE_ISSET_ID);
527
  }
528
 
529
  public void setSpCounterSizeIsSet(boolean value) {
530
    __isset_bit_vector.set(__SPCOUNTERSIZE_ISSET_ID, value);
531
  }
532
 
533
  public long getFpCounterSize() {
534
    return this.fpCounterSize;
535
  }
536
 
537
  public void setFpCounterSize(long fpCounterSize) {
538
    this.fpCounterSize = fpCounterSize;
539
    setFpCounterSizeIsSet(true);
540
  }
541
 
542
  public void unsetFpCounterSize() {
543
    __isset_bit_vector.clear(__FPCOUNTERSIZE_ISSET_ID);
544
  }
545
 
546
  /** Returns true if field fpCounterSize is set (has been assigned a value) and false otherwise */
547
  public boolean isSetFpCounterSize() {
548
    return __isset_bit_vector.get(__FPCOUNTERSIZE_ISSET_ID);
549
  }
550
 
551
  public void setFpCounterSizeIsSet(boolean value) {
552
    __isset_bit_vector.set(__FPCOUNTERSIZE_ISSET_ID, value);
553
  }
554
 
555
  public long getDob() {
556
    return this.dob;
557
  }
558
 
559
  public void setDob(long dob) {
560
    this.dob = dob;
561
    setDobIsSet(true);
562
  }
563
 
564
  public void unsetDob() {
565
    __isset_bit_vector.clear(__DOB_ISSET_ID);
566
  }
567
 
568
  /** Returns true if field dob is set (has been assigned a value) and false otherwise */
569
  public boolean isSetDob() {
570
    return __isset_bit_vector.get(__DOB_ISSET_ID);
571
  }
572
 
573
  public void setDobIsSet(boolean value) {
574
    __isset_bit_vector.set(__DOB_ISSET_ID, value);
575
  }
576
 
577
  public long getAddedOn() {
578
    return this.addedOn;
579
  }
580
 
581
  public void setAddedOn(long addedOn) {
582
    this.addedOn = addedOn;
583
    setAddedOnIsSet(true);
584
  }
585
 
586
  public void unsetAddedOn() {
587
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
588
  }
589
 
590
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
591
  public boolean isSetAddedOn() {
592
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
593
  }
594
 
595
  public void setAddedOnIsSet(boolean value) {
596
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
597
  }
598
 
599
  public long getAddress() {
600
    return this.address;
601
  }
602
 
603
  public void setAddress(long address) {
604
    this.address = address;
605
    setAddressIsSet(true);
606
  }
607
 
608
  public void unsetAddress() {
609
    __isset_bit_vector.clear(__ADDRESS_ISSET_ID);
610
  }
611
 
612
  /** Returns true if field address is set (has been assigned a value) and false otherwise */
613
  public boolean isSetAddress() {
614
    return __isset_bit_vector.get(__ADDRESS_ISSET_ID);
615
  }
616
 
617
  public void setAddressIsSet(boolean value) {
618
    __isset_bit_vector.set(__ADDRESS_ISSET_ID, value);
619
  }
620
 
621
  public void setFieldValue(_Fields field, Object value) {
622
    switch (field) {
623
    case ID:
624
      if (value == null) {
625
        unsetId();
626
      } else {
627
        setId((Long)value);
628
      }
629
      break;
630
 
631
    case CODE:
632
      if (value == null) {
633
        unsetCode();
634
      } else {
635
        setCode((String)value);
636
      }
637
      break;
638
 
639
    case NAME:
640
      if (value == null) {
641
        unsetName();
642
      } else {
643
        setName((String)value);
644
      }
645
      break;
646
 
647
    case OWNER_NAME:
648
      if (value == null) {
649
        unsetOwnerName();
650
      } else {
651
        setOwnerName((String)value);
652
      }
653
      break;
654
 
655
    case EMAIL:
656
      if (value == null) {
657
        unsetEmail();
658
      } else {
659
        setEmail((String)value);
660
      }
661
      break;
662
 
663
    case MOBILE:
664
      if (value == null) {
665
        unsetMobile();
666
      } else {
667
        setMobile((String)value);
668
      }
669
      break;
670
 
671
    case ALTERNATE_MOBILE:
672
      if (value == null) {
673
        unsetAlternateMobile();
674
      } else {
675
        setAlternateMobile((String)value);
676
      }
677
      break;
678
 
679
    case STRIKER:
680
      if (value == null) {
681
        unsetStriker();
682
      } else {
683
        setStriker((Boolean)value);
684
      }
685
      break;
686
 
687
    case TIN:
688
      if (value == null) {
689
        unsetTin();
690
      } else {
691
        setTin((String)value);
692
      }
693
      break;
694
 
695
    case SP_COUNTER_SIZE:
696
      if (value == null) {
697
        unsetSpCounterSize();
698
      } else {
699
        setSpCounterSize((Long)value);
700
      }
701
      break;
702
 
703
    case FP_COUNTER_SIZE:
704
      if (value == null) {
705
        unsetFpCounterSize();
706
      } else {
707
        setFpCounterSize((Long)value);
708
      }
709
      break;
710
 
711
    case DOB:
712
      if (value == null) {
713
        unsetDob();
714
      } else {
715
        setDob((Long)value);
716
      }
717
      break;
718
 
719
    case ADDED_ON:
720
      if (value == null) {
721
        unsetAddedOn();
722
      } else {
723
        setAddedOn((Long)value);
724
      }
725
      break;
726
 
727
    case ADDRESS:
728
      if (value == null) {
729
        unsetAddress();
730
      } else {
731
        setAddress((Long)value);
732
      }
733
      break;
734
 
735
    }
736
  }
737
 
738
  public Object getFieldValue(_Fields field) {
739
    switch (field) {
740
    case ID:
741
      return Long.valueOf(getId());
742
 
743
    case CODE:
744
      return getCode();
745
 
746
    case NAME:
747
      return getName();
748
 
749
    case OWNER_NAME:
750
      return getOwnerName();
751
 
752
    case EMAIL:
753
      return getEmail();
754
 
755
    case MOBILE:
756
      return getMobile();
757
 
758
    case ALTERNATE_MOBILE:
759
      return getAlternateMobile();
760
 
761
    case STRIKER:
762
      return Boolean.valueOf(isStriker());
763
 
764
    case TIN:
765
      return getTin();
766
 
767
    case SP_COUNTER_SIZE:
768
      return Long.valueOf(getSpCounterSize());
769
 
770
    case FP_COUNTER_SIZE:
771
      return Long.valueOf(getFpCounterSize());
772
 
773
    case DOB:
774
      return Long.valueOf(getDob());
775
 
776
    case ADDED_ON:
777
      return Long.valueOf(getAddedOn());
778
 
779
    case ADDRESS:
780
      return Long.valueOf(getAddress());
781
 
782
    }
783
    throw new IllegalStateException();
784
  }
785
 
786
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
787
  public boolean isSet(_Fields field) {
788
    if (field == null) {
789
      throw new IllegalArgumentException();
790
    }
791
 
792
    switch (field) {
793
    case ID:
794
      return isSetId();
795
    case CODE:
796
      return isSetCode();
797
    case NAME:
798
      return isSetName();
799
    case OWNER_NAME:
800
      return isSetOwnerName();
801
    case EMAIL:
802
      return isSetEmail();
803
    case MOBILE:
804
      return isSetMobile();
805
    case ALTERNATE_MOBILE:
806
      return isSetAlternateMobile();
807
    case STRIKER:
808
      return isSetStriker();
809
    case TIN:
810
      return isSetTin();
811
    case SP_COUNTER_SIZE:
812
      return isSetSpCounterSize();
813
    case FP_COUNTER_SIZE:
814
      return isSetFpCounterSize();
815
    case DOB:
816
      return isSetDob();
817
    case ADDED_ON:
818
      return isSetAddedOn();
819
    case ADDRESS:
820
      return isSetAddress();
821
    }
822
    throw new IllegalStateException();
823
  }
824
 
825
  @Override
826
  public boolean equals(Object that) {
827
    if (that == null)
828
      return false;
829
    if (that instanceof Counter)
830
      return this.equals((Counter)that);
831
    return false;
832
  }
833
 
834
  public boolean equals(Counter that) {
835
    if (that == null)
836
      return false;
837
 
838
    boolean this_present_id = true;
839
    boolean that_present_id = true;
840
    if (this_present_id || that_present_id) {
841
      if (!(this_present_id && that_present_id))
842
        return false;
843
      if (this.id != that.id)
844
        return false;
845
    }
846
 
847
    boolean this_present_code = true && this.isSetCode();
848
    boolean that_present_code = true && that.isSetCode();
849
    if (this_present_code || that_present_code) {
850
      if (!(this_present_code && that_present_code))
851
        return false;
852
      if (!this.code.equals(that.code))
853
        return false;
854
    }
855
 
856
    boolean this_present_name = true && this.isSetName();
857
    boolean that_present_name = true && that.isSetName();
858
    if (this_present_name || that_present_name) {
859
      if (!(this_present_name && that_present_name))
860
        return false;
861
      if (!this.name.equals(that.name))
862
        return false;
863
    }
864
 
865
    boolean this_present_ownerName = true && this.isSetOwnerName();
866
    boolean that_present_ownerName = true && that.isSetOwnerName();
867
    if (this_present_ownerName || that_present_ownerName) {
868
      if (!(this_present_ownerName && that_present_ownerName))
869
        return false;
870
      if (!this.ownerName.equals(that.ownerName))
871
        return false;
872
    }
873
 
874
    boolean this_present_email = true && this.isSetEmail();
875
    boolean that_present_email = true && that.isSetEmail();
876
    if (this_present_email || that_present_email) {
877
      if (!(this_present_email && that_present_email))
878
        return false;
879
      if (!this.email.equals(that.email))
880
        return false;
881
    }
882
 
883
    boolean this_present_mobile = true && this.isSetMobile();
884
    boolean that_present_mobile = true && that.isSetMobile();
885
    if (this_present_mobile || that_present_mobile) {
886
      if (!(this_present_mobile && that_present_mobile))
887
        return false;
888
      if (!this.mobile.equals(that.mobile))
889
        return false;
890
    }
891
 
892
    boolean this_present_alternateMobile = true && this.isSetAlternateMobile();
893
    boolean that_present_alternateMobile = true && that.isSetAlternateMobile();
894
    if (this_present_alternateMobile || that_present_alternateMobile) {
895
      if (!(this_present_alternateMobile && that_present_alternateMobile))
896
        return false;
897
      if (!this.alternateMobile.equals(that.alternateMobile))
898
        return false;
899
    }
900
 
901
    boolean this_present_striker = true;
902
    boolean that_present_striker = true;
903
    if (this_present_striker || that_present_striker) {
904
      if (!(this_present_striker && that_present_striker))
905
        return false;
906
      if (this.striker != that.striker)
907
        return false;
908
    }
909
 
910
    boolean this_present_tin = true && this.isSetTin();
911
    boolean that_present_tin = true && that.isSetTin();
912
    if (this_present_tin || that_present_tin) {
913
      if (!(this_present_tin && that_present_tin))
914
        return false;
915
      if (!this.tin.equals(that.tin))
916
        return false;
917
    }
918
 
919
    boolean this_present_spCounterSize = true;
920
    boolean that_present_spCounterSize = true;
921
    if (this_present_spCounterSize || that_present_spCounterSize) {
922
      if (!(this_present_spCounterSize && that_present_spCounterSize))
923
        return false;
924
      if (this.spCounterSize != that.spCounterSize)
925
        return false;
926
    }
927
 
928
    boolean this_present_fpCounterSize = true;
929
    boolean that_present_fpCounterSize = true;
930
    if (this_present_fpCounterSize || that_present_fpCounterSize) {
931
      if (!(this_present_fpCounterSize && that_present_fpCounterSize))
932
        return false;
933
      if (this.fpCounterSize != that.fpCounterSize)
934
        return false;
935
    }
936
 
937
    boolean this_present_dob = true;
938
    boolean that_present_dob = true;
939
    if (this_present_dob || that_present_dob) {
940
      if (!(this_present_dob && that_present_dob))
941
        return false;
942
      if (this.dob != that.dob)
943
        return false;
944
    }
945
 
946
    boolean this_present_addedOn = true;
947
    boolean that_present_addedOn = true;
948
    if (this_present_addedOn || that_present_addedOn) {
949
      if (!(this_present_addedOn && that_present_addedOn))
950
        return false;
951
      if (this.addedOn != that.addedOn)
952
        return false;
953
    }
954
 
955
    boolean this_present_address = true;
956
    boolean that_present_address = true;
957
    if (this_present_address || that_present_address) {
958
      if (!(this_present_address && that_present_address))
959
        return false;
960
      if (this.address != that.address)
961
        return false;
962
    }
963
 
964
    return true;
965
  }
966
 
967
  @Override
968
  public int hashCode() {
969
    return 0;
970
  }
971
 
972
  public int compareTo(Counter other) {
973
    if (!getClass().equals(other.getClass())) {
974
      return getClass().getName().compareTo(other.getClass().getName());
975
    }
976
 
977
    int lastComparison = 0;
978
    Counter typedOther = (Counter)other;
979
 
980
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
981
    if (lastComparison != 0) {
982
      return lastComparison;
983
    }
984
    if (isSetId()) {
985
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
986
      if (lastComparison != 0) {
987
        return lastComparison;
988
      }
989
    }
990
    lastComparison = Boolean.valueOf(isSetCode()).compareTo(typedOther.isSetCode());
991
    if (lastComparison != 0) {
992
      return lastComparison;
993
    }
994
    if (isSetCode()) {
995
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.code, typedOther.code);
996
      if (lastComparison != 0) {
997
        return lastComparison;
998
      }
999
    }
1000
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1001
    if (lastComparison != 0) {
1002
      return lastComparison;
1003
    }
1004
    if (isSetName()) {
1005
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1006
      if (lastComparison != 0) {
1007
        return lastComparison;
1008
      }
1009
    }
1010
    lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName());
1011
    if (lastComparison != 0) {
1012
      return lastComparison;
1013
    }
1014
    if (isSetOwnerName()) {
1015
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName);
1016
      if (lastComparison != 0) {
1017
        return lastComparison;
1018
      }
1019
    }
1020
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1021
    if (lastComparison != 0) {
1022
      return lastComparison;
1023
    }
1024
    if (isSetEmail()) {
1025
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1026
      if (lastComparison != 0) {
1027
        return lastComparison;
1028
      }
1029
    }
1030
    lastComparison = Boolean.valueOf(isSetMobile()).compareTo(typedOther.isSetMobile());
1031
    if (lastComparison != 0) {
1032
      return lastComparison;
1033
    }
1034
    if (isSetMobile()) {
1035
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobile, typedOther.mobile);
1036
      if (lastComparison != 0) {
1037
        return lastComparison;
1038
      }
1039
    }
1040
    lastComparison = Boolean.valueOf(isSetAlternateMobile()).compareTo(typedOther.isSetAlternateMobile());
1041
    if (lastComparison != 0) {
1042
      return lastComparison;
1043
    }
1044
    if (isSetAlternateMobile()) {
1045
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.alternateMobile, typedOther.alternateMobile);
1046
      if (lastComparison != 0) {
1047
        return lastComparison;
1048
      }
1049
    }
1050
    lastComparison = Boolean.valueOf(isSetStriker()).compareTo(typedOther.isSetStriker());
1051
    if (lastComparison != 0) {
1052
      return lastComparison;
1053
    }
1054
    if (isSetStriker()) {
1055
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.striker, typedOther.striker);
1056
      if (lastComparison != 0) {
1057
        return lastComparison;
1058
      }
1059
    }
1060
    lastComparison = Boolean.valueOf(isSetTin()).compareTo(typedOther.isSetTin());
1061
    if (lastComparison != 0) {
1062
      return lastComparison;
1063
    }
1064
    if (isSetTin()) {
1065
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tin, typedOther.tin);
1066
      if (lastComparison != 0) {
1067
        return lastComparison;
1068
      }
1069
    }
1070
    lastComparison = Boolean.valueOf(isSetSpCounterSize()).compareTo(typedOther.isSetSpCounterSize());
1071
    if (lastComparison != 0) {
1072
      return lastComparison;
1073
    }
1074
    if (isSetSpCounterSize()) {
1075
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.spCounterSize, typedOther.spCounterSize);
1076
      if (lastComparison != 0) {
1077
        return lastComparison;
1078
      }
1079
    }
1080
    lastComparison = Boolean.valueOf(isSetFpCounterSize()).compareTo(typedOther.isSetFpCounterSize());
1081
    if (lastComparison != 0) {
1082
      return lastComparison;
1083
    }
1084
    if (isSetFpCounterSize()) {
1085
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fpCounterSize, typedOther.fpCounterSize);
1086
      if (lastComparison != 0) {
1087
        return lastComparison;
1088
      }
1089
    }
1090
    lastComparison = Boolean.valueOf(isSetDob()).compareTo(typedOther.isSetDob());
1091
    if (lastComparison != 0) {
1092
      return lastComparison;
1093
    }
1094
    if (isSetDob()) {
1095
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dob, typedOther.dob);
1096
      if (lastComparison != 0) {
1097
        return lastComparison;
1098
      }
1099
    }
1100
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1101
    if (lastComparison != 0) {
1102
      return lastComparison;
1103
    }
1104
    if (isSetAddedOn()) {
1105
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
1106
      if (lastComparison != 0) {
1107
        return lastComparison;
1108
      }
1109
    }
1110
    lastComparison = Boolean.valueOf(isSetAddress()).compareTo(typedOther.isSetAddress());
1111
    if (lastComparison != 0) {
1112
      return lastComparison;
1113
    }
1114
    if (isSetAddress()) {
1115
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, typedOther.address);
1116
      if (lastComparison != 0) {
1117
        return lastComparison;
1118
      }
1119
    }
1120
    return 0;
1121
  }
1122
 
1123
  public _Fields fieldForId(int fieldId) {
1124
    return _Fields.findByThriftId(fieldId);
1125
  }
1126
 
1127
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1128
    org.apache.thrift.protocol.TField field;
1129
    iprot.readStructBegin();
1130
    while (true)
1131
    {
1132
      field = iprot.readFieldBegin();
1133
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1134
        break;
1135
      }
1136
      switch (field.id) {
1137
        case 1: // ID
1138
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1139
            this.id = iprot.readI64();
1140
            setIdIsSet(true);
1141
          } else { 
1142
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1143
          }
1144
          break;
1145
        case 2: // CODE
1146
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1147
            this.code = iprot.readString();
1148
          } else { 
1149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1150
          }
1151
          break;
1152
        case 3: // NAME
1153
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1154
            this.name = iprot.readString();
1155
          } else { 
1156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1157
          }
1158
          break;
1159
        case 4: // OWNER_NAME
1160
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1161
            this.ownerName = iprot.readString();
1162
          } else { 
1163
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1164
          }
1165
          break;
1166
        case 5: // EMAIL
1167
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1168
            this.email = iprot.readString();
1169
          } else { 
1170
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1171
          }
1172
          break;
1173
        case 6: // MOBILE
1174
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1175
            this.mobile = iprot.readString();
1176
          } else { 
1177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1178
          }
1179
          break;
1180
        case 7: // ALTERNATE_MOBILE
1181
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1182
            this.alternateMobile = iprot.readString();
1183
          } else { 
1184
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1185
          }
1186
          break;
1187
        case 8: // STRIKER
1188
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1189
            this.striker = iprot.readBool();
1190
            setStrikerIsSet(true);
1191
          } else { 
1192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1193
          }
1194
          break;
1195
        case 9: // TIN
1196
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1197
            this.tin = iprot.readString();
1198
          } else { 
1199
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1200
          }
1201
          break;
1202
        case 10: // SP_COUNTER_SIZE
1203
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1204
            this.spCounterSize = iprot.readI64();
1205
            setSpCounterSizeIsSet(true);
1206
          } else { 
1207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1208
          }
1209
          break;
1210
        case 11: // FP_COUNTER_SIZE
1211
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1212
            this.fpCounterSize = iprot.readI64();
1213
            setFpCounterSizeIsSet(true);
1214
          } else { 
1215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1216
          }
1217
          break;
1218
        case 12: // DOB
1219
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1220
            this.dob = iprot.readI64();
1221
            setDobIsSet(true);
1222
          } else { 
1223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1224
          }
1225
          break;
1226
        case 13: // ADDED_ON
1227
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1228
            this.addedOn = iprot.readI64();
1229
            setAddedOnIsSet(true);
1230
          } else { 
1231
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1232
          }
1233
          break;
1234
        case 14: // ADDRESS
1235
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1236
            this.address = iprot.readI64();
1237
            setAddressIsSet(true);
1238
          } else { 
1239
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1240
          }
1241
          break;
1242
        default:
1243
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1244
      }
1245
      iprot.readFieldEnd();
1246
    }
1247
    iprot.readStructEnd();
1248
    validate();
1249
  }
1250
 
1251
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1252
    validate();
1253
 
1254
    oprot.writeStructBegin(STRUCT_DESC);
1255
    oprot.writeFieldBegin(ID_FIELD_DESC);
1256
    oprot.writeI64(this.id);
1257
    oprot.writeFieldEnd();
1258
    if (this.code != null) {
1259
      oprot.writeFieldBegin(CODE_FIELD_DESC);
1260
      oprot.writeString(this.code);
1261
      oprot.writeFieldEnd();
1262
    }
1263
    if (this.name != null) {
1264
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1265
      oprot.writeString(this.name);
1266
      oprot.writeFieldEnd();
1267
    }
1268
    if (this.ownerName != null) {
1269
      oprot.writeFieldBegin(OWNER_NAME_FIELD_DESC);
1270
      oprot.writeString(this.ownerName);
1271
      oprot.writeFieldEnd();
1272
    }
1273
    if (this.email != null) {
1274
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1275
      oprot.writeString(this.email);
1276
      oprot.writeFieldEnd();
1277
    }
1278
    if (this.mobile != null) {
1279
      oprot.writeFieldBegin(MOBILE_FIELD_DESC);
1280
      oprot.writeString(this.mobile);
1281
      oprot.writeFieldEnd();
1282
    }
1283
    if (this.alternateMobile != null) {
1284
      oprot.writeFieldBegin(ALTERNATE_MOBILE_FIELD_DESC);
1285
      oprot.writeString(this.alternateMobile);
1286
      oprot.writeFieldEnd();
1287
    }
1288
    oprot.writeFieldBegin(STRIKER_FIELD_DESC);
1289
    oprot.writeBool(this.striker);
1290
    oprot.writeFieldEnd();
1291
    if (this.tin != null) {
1292
      oprot.writeFieldBegin(TIN_FIELD_DESC);
1293
      oprot.writeString(this.tin);
1294
      oprot.writeFieldEnd();
1295
    }
1296
    oprot.writeFieldBegin(SP_COUNTER_SIZE_FIELD_DESC);
1297
    oprot.writeI64(this.spCounterSize);
1298
    oprot.writeFieldEnd();
1299
    oprot.writeFieldBegin(FP_COUNTER_SIZE_FIELD_DESC);
1300
    oprot.writeI64(this.fpCounterSize);
1301
    oprot.writeFieldEnd();
1302
    oprot.writeFieldBegin(DOB_FIELD_DESC);
1303
    oprot.writeI64(this.dob);
1304
    oprot.writeFieldEnd();
1305
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
1306
    oprot.writeI64(this.addedOn);
1307
    oprot.writeFieldEnd();
1308
    oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
1309
    oprot.writeI64(this.address);
1310
    oprot.writeFieldEnd();
1311
    oprot.writeFieldStop();
1312
    oprot.writeStructEnd();
1313
  }
1314
 
1315
  @Override
1316
  public String toString() {
1317
    StringBuilder sb = new StringBuilder("Counter(");
1318
    boolean first = true;
1319
 
1320
    sb.append("id:");
1321
    sb.append(this.id);
1322
    first = false;
1323
    if (!first) sb.append(", ");
1324
    sb.append("code:");
1325
    if (this.code == null) {
1326
      sb.append("null");
1327
    } else {
1328
      sb.append(this.code);
1329
    }
1330
    first = false;
1331
    if (!first) sb.append(", ");
1332
    sb.append("name:");
1333
    if (this.name == null) {
1334
      sb.append("null");
1335
    } else {
1336
      sb.append(this.name);
1337
    }
1338
    first = false;
1339
    if (!first) sb.append(", ");
1340
    sb.append("ownerName:");
1341
    if (this.ownerName == null) {
1342
      sb.append("null");
1343
    } else {
1344
      sb.append(this.ownerName);
1345
    }
1346
    first = false;
1347
    if (!first) sb.append(", ");
1348
    sb.append("email:");
1349
    if (this.email == null) {
1350
      sb.append("null");
1351
    } else {
1352
      sb.append(this.email);
1353
    }
1354
    first = false;
1355
    if (!first) sb.append(", ");
1356
    sb.append("mobile:");
1357
    if (this.mobile == null) {
1358
      sb.append("null");
1359
    } else {
1360
      sb.append(this.mobile);
1361
    }
1362
    first = false;
1363
    if (!first) sb.append(", ");
1364
    sb.append("alternateMobile:");
1365
    if (this.alternateMobile == null) {
1366
      sb.append("null");
1367
    } else {
1368
      sb.append(this.alternateMobile);
1369
    }
1370
    first = false;
1371
    if (!first) sb.append(", ");
1372
    sb.append("striker:");
1373
    sb.append(this.striker);
1374
    first = false;
1375
    if (!first) sb.append(", ");
1376
    sb.append("tin:");
1377
    if (this.tin == null) {
1378
      sb.append("null");
1379
    } else {
1380
      sb.append(this.tin);
1381
    }
1382
    first = false;
1383
    if (!first) sb.append(", ");
1384
    sb.append("spCounterSize:");
1385
    sb.append(this.spCounterSize);
1386
    first = false;
1387
    if (!first) sb.append(", ");
1388
    sb.append("fpCounterSize:");
1389
    sb.append(this.fpCounterSize);
1390
    first = false;
1391
    if (!first) sb.append(", ");
1392
    sb.append("dob:");
1393
    sb.append(this.dob);
1394
    first = false;
1395
    if (!first) sb.append(", ");
1396
    sb.append("addedOn:");
1397
    sb.append(this.addedOn);
1398
    first = false;
1399
    if (!first) sb.append(", ");
1400
    sb.append("address:");
1401
    sb.append(this.address);
1402
    first = false;
1403
    sb.append(")");
1404
    return sb.toString();
1405
  }
1406
 
1407
  public void validate() throws org.apache.thrift.TException {
1408
    // check for required fields
1409
  }
1410
 
1411
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1412
    try {
1413
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1414
    } catch (org.apache.thrift.TException te) {
1415
      throw new java.io.IOException(te);
1416
    }
1417
  }
1418
 
1419
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1420
    try {
1421
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1422
      __isset_bit_vector = new BitSet(1);
1423
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1424
    } catch (org.apache.thrift.TException te) {
1425
      throw new java.io.IOException(te);
1426
    }
1427
  }
1428
 
1429
}
1430