Subversion Repositories SmartDukaan

Rev

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

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