Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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