Subversion Repositories SmartDukaan

Rev

Rev 12696 | Rev 18530 | Go to most recent revision | Details | Compare with Previous | 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);
12722 amit.gupta 37
  private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.STRING, (short)12);
12696 amit.gupta 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
12722 amit.gupta 52
  private String dob; // required
12696 amit.gupta 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;
12722 amit.gupta 158
  private static final int __ADDEDON_ISSET_ID = 4;
159
  private static final int __ADDRESS_ISSET_ID = 5;
160
  private BitSet __isset_bit_vector = new BitSet(6);
12696 amit.gupta 161
 
162
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
163
  static {
164
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
165
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
167
    tmpMap.put(_Fields.CODE, new org.apache.thrift.meta_data.FieldMetaData("code", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
169
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
171
    tmpMap.put(_Fields.OWNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("ownerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
173
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
175
    tmpMap.put(_Fields.MOBILE, new org.apache.thrift.meta_data.FieldMetaData("mobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
177
    tmpMap.put(_Fields.ALTERNATE_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("alternateMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
179
    tmpMap.put(_Fields.STRIKER, new org.apache.thrift.meta_data.FieldMetaData("striker", org.apache.thrift.TFieldRequirementType.DEFAULT, 
180
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
181
    tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
182
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
183
    tmpMap.put(_Fields.SP_COUNTER_SIZE, new org.apache.thrift.meta_data.FieldMetaData("spCounterSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
184
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
185
    tmpMap.put(_Fields.FP_COUNTER_SIZE, new org.apache.thrift.meta_data.FieldMetaData("fpCounterSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
187
    tmpMap.put(_Fields.DOB, new org.apache.thrift.meta_data.FieldMetaData("dob", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12722 amit.gupta 188
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12696 amit.gupta 189
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
191
    tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
193
    metaDataMap = Collections.unmodifiableMap(tmpMap);
194
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Counter.class, metaDataMap);
195
  }
196
 
197
  public Counter() {
198
  }
199
 
200
  public Counter(
201
    long id,
202
    String code,
203
    String name,
204
    String ownerName,
205
    String email,
206
    String mobile,
207
    String alternateMobile,
208
    boolean striker,
209
    String tin,
210
    long spCounterSize,
211
    long fpCounterSize,
12722 amit.gupta 212
    String dob,
12696 amit.gupta 213
    long addedOn,
214
    long address)
215
  {
216
    this();
217
    this.id = id;
218
    setIdIsSet(true);
219
    this.code = code;
220
    this.name = name;
221
    this.ownerName = ownerName;
222
    this.email = email;
223
    this.mobile = mobile;
224
    this.alternateMobile = alternateMobile;
225
    this.striker = striker;
226
    setStrikerIsSet(true);
227
    this.tin = tin;
228
    this.spCounterSize = spCounterSize;
229
    setSpCounterSizeIsSet(true);
230
    this.fpCounterSize = fpCounterSize;
231
    setFpCounterSizeIsSet(true);
232
    this.dob = dob;
233
    this.addedOn = addedOn;
234
    setAddedOnIsSet(true);
235
    this.address = address;
236
    setAddressIsSet(true);
237
  }
238
 
239
  /**
240
   * Performs a deep copy on <i>other</i>.
241
   */
242
  public Counter(Counter other) {
243
    __isset_bit_vector.clear();
244
    __isset_bit_vector.or(other.__isset_bit_vector);
245
    this.id = other.id;
246
    if (other.isSetCode()) {
247
      this.code = other.code;
248
    }
249
    if (other.isSetName()) {
250
      this.name = other.name;
251
    }
252
    if (other.isSetOwnerName()) {
253
      this.ownerName = other.ownerName;
254
    }
255
    if (other.isSetEmail()) {
256
      this.email = other.email;
257
    }
258
    if (other.isSetMobile()) {
259
      this.mobile = other.mobile;
260
    }
261
    if (other.isSetAlternateMobile()) {
262
      this.alternateMobile = other.alternateMobile;
263
    }
264
    this.striker = other.striker;
265
    if (other.isSetTin()) {
266
      this.tin = other.tin;
267
    }
268
    this.spCounterSize = other.spCounterSize;
269
    this.fpCounterSize = other.fpCounterSize;
12722 amit.gupta 270
    if (other.isSetDob()) {
271
      this.dob = other.dob;
272
    }
12696 amit.gupta 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;
12722 amit.gupta 298
    this.dob = null;
12696 amit.gupta 299
    setAddedOnIsSet(false);
300
    this.addedOn = 0;
301
    setAddressIsSet(false);
302
    this.address = 0;
303
  }
304
 
305
  public long getId() {
306
    return this.id;
307
  }
308
 
309
  public void setId(long id) {
310
    this.id = id;
311
    setIdIsSet(true);
312
  }
313
 
314
  public void unsetId() {
315
    __isset_bit_vector.clear(__ID_ISSET_ID);
316
  }
317
 
318
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
319
  public boolean isSetId() {
320
    return __isset_bit_vector.get(__ID_ISSET_ID);
321
  }
322
 
323
  public void setIdIsSet(boolean value) {
324
    __isset_bit_vector.set(__ID_ISSET_ID, value);
325
  }
326
 
327
  public String getCode() {
328
    return this.code;
329
  }
330
 
331
  public void setCode(String code) {
332
    this.code = code;
333
  }
334
 
335
  public void unsetCode() {
336
    this.code = null;
337
  }
338
 
339
  /** Returns true if field code is set (has been assigned a value) and false otherwise */
340
  public boolean isSetCode() {
341
    return this.code != null;
342
  }
343
 
344
  public void setCodeIsSet(boolean value) {
345
    if (!value) {
346
      this.code = null;
347
    }
348
  }
349
 
350
  public String getName() {
351
    return this.name;
352
  }
353
 
354
  public void setName(String name) {
355
    this.name = name;
356
  }
357
 
358
  public void unsetName() {
359
    this.name = null;
360
  }
361
 
362
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
363
  public boolean isSetName() {
364
    return this.name != null;
365
  }
366
 
367
  public void setNameIsSet(boolean value) {
368
    if (!value) {
369
      this.name = null;
370
    }
371
  }
372
 
373
  public String getOwnerName() {
374
    return this.ownerName;
375
  }
376
 
377
  public void setOwnerName(String ownerName) {
378
    this.ownerName = ownerName;
379
  }
380
 
381
  public void unsetOwnerName() {
382
    this.ownerName = null;
383
  }
384
 
385
  /** Returns true if field ownerName is set (has been assigned a value) and false otherwise */
386
  public boolean isSetOwnerName() {
387
    return this.ownerName != null;
388
  }
389
 
390
  public void setOwnerNameIsSet(boolean value) {
391
    if (!value) {
392
      this.ownerName = null;
393
    }
394
  }
395
 
396
  public String getEmail() {
397
    return this.email;
398
  }
399
 
400
  public void setEmail(String email) {
401
    this.email = email;
402
  }
403
 
404
  public void unsetEmail() {
405
    this.email = null;
406
  }
407
 
408
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
409
  public boolean isSetEmail() {
410
    return this.email != null;
411
  }
412
 
413
  public void setEmailIsSet(boolean value) {
414
    if (!value) {
415
      this.email = null;
416
    }
417
  }
418
 
419
  public String getMobile() {
420
    return this.mobile;
421
  }
422
 
423
  public void setMobile(String mobile) {
424
    this.mobile = mobile;
425
  }
426
 
427
  public void unsetMobile() {
428
    this.mobile = null;
429
  }
430
 
431
  /** Returns true if field mobile is set (has been assigned a value) and false otherwise */
432
  public boolean isSetMobile() {
433
    return this.mobile != null;
434
  }
435
 
436
  public void setMobileIsSet(boolean value) {
437
    if (!value) {
438
      this.mobile = null;
439
    }
440
  }
441
 
442
  public String getAlternateMobile() {
443
    return this.alternateMobile;
444
  }
445
 
446
  public void setAlternateMobile(String alternateMobile) {
447
    this.alternateMobile = alternateMobile;
448
  }
449
 
450
  public void unsetAlternateMobile() {
451
    this.alternateMobile = null;
452
  }
453
 
454
  /** Returns true if field alternateMobile is set (has been assigned a value) and false otherwise */
455
  public boolean isSetAlternateMobile() {
456
    return this.alternateMobile != null;
457
  }
458
 
459
  public void setAlternateMobileIsSet(boolean value) {
460
    if (!value) {
461
      this.alternateMobile = null;
462
    }
463
  }
464
 
465
  public boolean isStriker() {
466
    return this.striker;
467
  }
468
 
469
  public void setStriker(boolean striker) {
470
    this.striker = striker;
471
    setStrikerIsSet(true);
472
  }
473
 
474
  public void unsetStriker() {
475
    __isset_bit_vector.clear(__STRIKER_ISSET_ID);
476
  }
477
 
478
  /** Returns true if field striker is set (has been assigned a value) and false otherwise */
479
  public boolean isSetStriker() {
480
    return __isset_bit_vector.get(__STRIKER_ISSET_ID);
481
  }
482
 
483
  public void setStrikerIsSet(boolean value) {
484
    __isset_bit_vector.set(__STRIKER_ISSET_ID, value);
485
  }
486
 
487
  public String getTin() {
488
    return this.tin;
489
  }
490
 
491
  public void setTin(String tin) {
492
    this.tin = tin;
493
  }
494
 
495
  public void unsetTin() {
496
    this.tin = null;
497
  }
498
 
499
  /** Returns true if field tin is set (has been assigned a value) and false otherwise */
500
  public boolean isSetTin() {
501
    return this.tin != null;
502
  }
503
 
504
  public void setTinIsSet(boolean value) {
505
    if (!value) {
506
      this.tin = null;
507
    }
508
  }
509
 
510
  public long getSpCounterSize() {
511
    return this.spCounterSize;
512
  }
513
 
514
  public void setSpCounterSize(long spCounterSize) {
515
    this.spCounterSize = spCounterSize;
516
    setSpCounterSizeIsSet(true);
517
  }
518
 
519
  public void unsetSpCounterSize() {
520
    __isset_bit_vector.clear(__SPCOUNTERSIZE_ISSET_ID);
521
  }
522
 
523
  /** Returns true if field spCounterSize is set (has been assigned a value) and false otherwise */
524
  public boolean isSetSpCounterSize() {
525
    return __isset_bit_vector.get(__SPCOUNTERSIZE_ISSET_ID);
526
  }
527
 
528
  public void setSpCounterSizeIsSet(boolean value) {
529
    __isset_bit_vector.set(__SPCOUNTERSIZE_ISSET_ID, value);
530
  }
531
 
532
  public long getFpCounterSize() {
533
    return this.fpCounterSize;
534
  }
535
 
536
  public void setFpCounterSize(long fpCounterSize) {
537
    this.fpCounterSize = fpCounterSize;
538
    setFpCounterSizeIsSet(true);
539
  }
540
 
541
  public void unsetFpCounterSize() {
542
    __isset_bit_vector.clear(__FPCOUNTERSIZE_ISSET_ID);
543
  }
544
 
545
  /** Returns true if field fpCounterSize is set (has been assigned a value) and false otherwise */
546
  public boolean isSetFpCounterSize() {
547
    return __isset_bit_vector.get(__FPCOUNTERSIZE_ISSET_ID);
548
  }
549
 
550
  public void setFpCounterSizeIsSet(boolean value) {
551
    __isset_bit_vector.set(__FPCOUNTERSIZE_ISSET_ID, value);
552
  }
553
 
12722 amit.gupta 554
  public String getDob() {
12696 amit.gupta 555
    return this.dob;
556
  }
557
 
12722 amit.gupta 558
  public void setDob(String dob) {
12696 amit.gupta 559
    this.dob = dob;
560
  }
561
 
562
  public void unsetDob() {
12722 amit.gupta 563
    this.dob = null;
12696 amit.gupta 564
  }
565
 
566
  /** Returns true if field dob is set (has been assigned a value) and false otherwise */
567
  public boolean isSetDob() {
12722 amit.gupta 568
    return this.dob != null;
12696 amit.gupta 569
  }
570
 
571
  public void setDobIsSet(boolean value) {
12722 amit.gupta 572
    if (!value) {
573
      this.dob = null;
574
    }
12696 amit.gupta 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 {
12722 amit.gupta 715
        setDob((String)value);
12696 amit.gupta 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:
12722 amit.gupta 774
      return getDob();
12696 amit.gupta 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
 
12722 amit.gupta 937
    boolean this_present_dob = true && this.isSetDob();
938
    boolean that_present_dob = true && that.isSetDob();
12696 amit.gupta 939
    if (this_present_dob || that_present_dob) {
940
      if (!(this_present_dob && that_present_dob))
941
        return false;
12722 amit.gupta 942
      if (!this.dob.equals(that.dob))
12696 amit.gupta 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
12722 amit.gupta 1219
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1220
            this.dob = iprot.readString();
12696 amit.gupta 1221
          } else { 
1222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1223
          }
1224
          break;
1225
        case 13: // ADDED_ON
1226
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1227
            this.addedOn = iprot.readI64();
1228
            setAddedOnIsSet(true);
1229
          } else { 
1230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1231
          }
1232
          break;
1233
        case 14: // ADDRESS
1234
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1235
            this.address = iprot.readI64();
1236
            setAddressIsSet(true);
1237
          } else { 
1238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1239
          }
1240
          break;
1241
        default:
1242
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1243
      }
1244
      iprot.readFieldEnd();
1245
    }
1246
    iprot.readStructEnd();
1247
    validate();
1248
  }
1249
 
1250
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1251
    validate();
1252
 
1253
    oprot.writeStructBegin(STRUCT_DESC);
1254
    oprot.writeFieldBegin(ID_FIELD_DESC);
1255
    oprot.writeI64(this.id);
1256
    oprot.writeFieldEnd();
1257
    if (this.code != null) {
1258
      oprot.writeFieldBegin(CODE_FIELD_DESC);
1259
      oprot.writeString(this.code);
1260
      oprot.writeFieldEnd();
1261
    }
1262
    if (this.name != null) {
1263
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1264
      oprot.writeString(this.name);
1265
      oprot.writeFieldEnd();
1266
    }
1267
    if (this.ownerName != null) {
1268
      oprot.writeFieldBegin(OWNER_NAME_FIELD_DESC);
1269
      oprot.writeString(this.ownerName);
1270
      oprot.writeFieldEnd();
1271
    }
1272
    if (this.email != null) {
1273
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1274
      oprot.writeString(this.email);
1275
      oprot.writeFieldEnd();
1276
    }
1277
    if (this.mobile != null) {
1278
      oprot.writeFieldBegin(MOBILE_FIELD_DESC);
1279
      oprot.writeString(this.mobile);
1280
      oprot.writeFieldEnd();
1281
    }
1282
    if (this.alternateMobile != null) {
1283
      oprot.writeFieldBegin(ALTERNATE_MOBILE_FIELD_DESC);
1284
      oprot.writeString(this.alternateMobile);
1285
      oprot.writeFieldEnd();
1286
    }
1287
    oprot.writeFieldBegin(STRIKER_FIELD_DESC);
1288
    oprot.writeBool(this.striker);
1289
    oprot.writeFieldEnd();
1290
    if (this.tin != null) {
1291
      oprot.writeFieldBegin(TIN_FIELD_DESC);
1292
      oprot.writeString(this.tin);
1293
      oprot.writeFieldEnd();
1294
    }
1295
    oprot.writeFieldBegin(SP_COUNTER_SIZE_FIELD_DESC);
1296
    oprot.writeI64(this.spCounterSize);
1297
    oprot.writeFieldEnd();
1298
    oprot.writeFieldBegin(FP_COUNTER_SIZE_FIELD_DESC);
1299
    oprot.writeI64(this.fpCounterSize);
1300
    oprot.writeFieldEnd();
12722 amit.gupta 1301
    if (this.dob != null) {
1302
      oprot.writeFieldBegin(DOB_FIELD_DESC);
1303
      oprot.writeString(this.dob);
1304
      oprot.writeFieldEnd();
1305
    }
12696 amit.gupta 1306
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
1307
    oprot.writeI64(this.addedOn);
1308
    oprot.writeFieldEnd();
1309
    oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
1310
    oprot.writeI64(this.address);
1311
    oprot.writeFieldEnd();
1312
    oprot.writeFieldStop();
1313
    oprot.writeStructEnd();
1314
  }
1315
 
1316
  @Override
1317
  public String toString() {
1318
    StringBuilder sb = new StringBuilder("Counter(");
1319
    boolean first = true;
1320
 
1321
    sb.append("id:");
1322
    sb.append(this.id);
1323
    first = false;
1324
    if (!first) sb.append(", ");
1325
    sb.append("code:");
1326
    if (this.code == null) {
1327
      sb.append("null");
1328
    } else {
1329
      sb.append(this.code);
1330
    }
1331
    first = false;
1332
    if (!first) sb.append(", ");
1333
    sb.append("name:");
1334
    if (this.name == null) {
1335
      sb.append("null");
1336
    } else {
1337
      sb.append(this.name);
1338
    }
1339
    first = false;
1340
    if (!first) sb.append(", ");
1341
    sb.append("ownerName:");
1342
    if (this.ownerName == null) {
1343
      sb.append("null");
1344
    } else {
1345
      sb.append(this.ownerName);
1346
    }
1347
    first = false;
1348
    if (!first) sb.append(", ");
1349
    sb.append("email:");
1350
    if (this.email == null) {
1351
      sb.append("null");
1352
    } else {
1353
      sb.append(this.email);
1354
    }
1355
    first = false;
1356
    if (!first) sb.append(", ");
1357
    sb.append("mobile:");
1358
    if (this.mobile == null) {
1359
      sb.append("null");
1360
    } else {
1361
      sb.append(this.mobile);
1362
    }
1363
    first = false;
1364
    if (!first) sb.append(", ");
1365
    sb.append("alternateMobile:");
1366
    if (this.alternateMobile == null) {
1367
      sb.append("null");
1368
    } else {
1369
      sb.append(this.alternateMobile);
1370
    }
1371
    first = false;
1372
    if (!first) sb.append(", ");
1373
    sb.append("striker:");
1374
    sb.append(this.striker);
1375
    first = false;
1376
    if (!first) sb.append(", ");
1377
    sb.append("tin:");
1378
    if (this.tin == null) {
1379
      sb.append("null");
1380
    } else {
1381
      sb.append(this.tin);
1382
    }
1383
    first = false;
1384
    if (!first) sb.append(", ");
1385
    sb.append("spCounterSize:");
1386
    sb.append(this.spCounterSize);
1387
    first = false;
1388
    if (!first) sb.append(", ");
1389
    sb.append("fpCounterSize:");
1390
    sb.append(this.fpCounterSize);
1391
    first = false;
1392
    if (!first) sb.append(", ");
1393
    sb.append("dob:");
12722 amit.gupta 1394
    if (this.dob == null) {
1395
      sb.append("null");
1396
    } else {
1397
      sb.append(this.dob);
1398
    }
12696 amit.gupta 1399
    first = false;
1400
    if (!first) sb.append(", ");
1401
    sb.append("addedOn:");
1402
    sb.append(this.addedOn);
1403
    first = false;
1404
    if (!first) sb.append(", ");
1405
    sb.append("address:");
1406
    sb.append(this.address);
1407
    first = false;
1408
    sb.append(")");
1409
    return sb.toString();
1410
  }
1411
 
1412
  public void validate() throws org.apache.thrift.TException {
1413
    // check for required fields
1414
  }
1415
 
1416
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1417
    try {
1418
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1419
    } catch (org.apache.thrift.TException te) {
1420
      throw new java.io.IOException(te);
1421
    }
1422
  }
1423
 
1424
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1425
    try {
1426
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1427
      __isset_bit_vector = new BitSet(1);
1428
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1429
    } catch (org.apache.thrift.TException te) {
1430
      throw new java.io.IOException(te);
1431
    }
1432
  }
1433
 
1434
}
1435