Subversion Repositories SmartDukaan

Rev

Rev 3430 | Details | Compare with Previous | Last modification | View Log | RSS feed

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