Subversion Repositories SmartDukaan

Rev

Rev 6031 | Rev 22050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6031 Rev 22043
Line 26... Line 26...
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);
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 WALLET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("walletId", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField WALLET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("walletId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
31
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)6);
-
 
32
  private static final org.apache.thrift.protocol.TField REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
-
 
33
  private static final org.apache.thrift.protocol.TField REFERENCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceType", org.apache.thrift.protocol.TType.I32, (short)8);
31
 
34
 
32
  private long id; // required
35
  private long id; // required
33
  private long walletId; // required
36
  private long walletId; // required
34
  private long orderId; // required
37
  private long orderId; // required
35
  private long amount; // required
38
  private long amount; // required
36
  private long timestamp; // required
39
  private long timestamp; // required
-
 
40
  private String description; // required
-
 
41
  private String referenceNumber; // required
-
 
42
  private WalletReferenceType referenceType; // required
37
 
43
 
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40
    ID((short)1, "id"),
46
    ID((short)1, "id"),
41
    WALLET_ID((short)2, "walletId"),
47
    WALLET_ID((short)2, "walletId"),
42
    ORDER_ID((short)3, "orderId"),
48
    ORDER_ID((short)3, "orderId"),
43
    AMOUNT((short)4, "amount"),
49
    AMOUNT((short)4, "amount"),
44
    TIMESTAMP((short)5, "timestamp");
50
    TIMESTAMP((short)5, "timestamp"),
-
 
51
    DESCRIPTION((short)6, "description"),
-
 
52
    REFERENCE_NUMBER((short)7, "referenceNumber"),
-
 
53
    /**
-
 
54
     * 
-
 
55
     * @see WalletReferenceType
-
 
56
     */
-
 
57
    REFERENCE_TYPE((short)8, "referenceType");
45
 
58
 
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
 
60
 
48
    static {
61
    static {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
62
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 64... Line 77...
64
          return ORDER_ID;
77
          return ORDER_ID;
65
        case 4: // AMOUNT
78
        case 4: // AMOUNT
66
          return AMOUNT;
79
          return AMOUNT;
67
        case 5: // TIMESTAMP
80
        case 5: // TIMESTAMP
68
          return TIMESTAMP;
81
          return TIMESTAMP;
-
 
82
        case 6: // DESCRIPTION
-
 
83
          return DESCRIPTION;
-
 
84
        case 7: // REFERENCE_NUMBER
-
 
85
          return REFERENCE_NUMBER;
-
 
86
        case 8: // REFERENCE_TYPE
-
 
87
          return REFERENCE_TYPE;
69
        default:
88
        default:
70
          return null;
89
          return null;
71
      }
90
      }
72
    }
91
    }
73
 
92
 
Line 124... Line 143...
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
143
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
125
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
144
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
145
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
127
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
146
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
147
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
148
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
150
    tmpMap.put(_Fields.REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("referenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
152
    tmpMap.put(_Fields.REFERENCE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("referenceType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WalletReferenceType.class)));
129
    metaDataMap = Collections.unmodifiableMap(tmpMap);
154
    metaDataMap = Collections.unmodifiableMap(tmpMap);
130
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserWalletHistory.class, metaDataMap);
155
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserWalletHistory.class, metaDataMap);
131
  }
156
  }
132
 
157
 
133
  public UserWalletHistory() {
158
  public UserWalletHistory() {
Line 136... Line 161...
136
  public UserWalletHistory(
161
  public UserWalletHistory(
137
    long id,
162
    long id,
138
    long walletId,
163
    long walletId,
139
    long orderId,
164
    long orderId,
140
    long amount,
165
    long amount,
141
    long timestamp)
166
    long timestamp,
-
 
167
    String description,
-
 
168
    String referenceNumber,
-
 
169
    WalletReferenceType referenceType)
142
  {
170
  {
143
    this();
171
    this();
144
    this.id = id;
172
    this.id = id;
145
    setIdIsSet(true);
173
    setIdIsSet(true);
146
    this.walletId = walletId;
174
    this.walletId = walletId;
Line 149... Line 177...
149
    setOrderIdIsSet(true);
177
    setOrderIdIsSet(true);
150
    this.amount = amount;
178
    this.amount = amount;
151
    setAmountIsSet(true);
179
    setAmountIsSet(true);
152
    this.timestamp = timestamp;
180
    this.timestamp = timestamp;
153
    setTimestampIsSet(true);
181
    setTimestampIsSet(true);
-
 
182
    this.description = description;
-
 
183
    this.referenceNumber = referenceNumber;
-
 
184
    this.referenceType = referenceType;
154
  }
185
  }
155
 
186
 
156
  /**
187
  /**
157
   * Performs a deep copy on <i>other</i>.
188
   * Performs a deep copy on <i>other</i>.
158
   */
189
   */
Line 162... Line 193...
162
    this.id = other.id;
193
    this.id = other.id;
163
    this.walletId = other.walletId;
194
    this.walletId = other.walletId;
164
    this.orderId = other.orderId;
195
    this.orderId = other.orderId;
165
    this.amount = other.amount;
196
    this.amount = other.amount;
166
    this.timestamp = other.timestamp;
197
    this.timestamp = other.timestamp;
-
 
198
    if (other.isSetDescription()) {
-
 
199
      this.description = other.description;
-
 
200
    }
-
 
201
    if (other.isSetReferenceNumber()) {
-
 
202
      this.referenceNumber = other.referenceNumber;
-
 
203
    }
-
 
204
    if (other.isSetReferenceType()) {
-
 
205
      this.referenceType = other.referenceType;
-
 
206
    }
167
  }
207
  }
168
 
208
 
169
  public UserWalletHistory deepCopy() {
209
  public UserWalletHistory deepCopy() {
170
    return new UserWalletHistory(this);
210
    return new UserWalletHistory(this);
171
  }
211
  }
Line 180... Line 220...
180
    this.orderId = 0;
220
    this.orderId = 0;
181
    setAmountIsSet(false);
221
    setAmountIsSet(false);
182
    this.amount = 0;
222
    this.amount = 0;
183
    setTimestampIsSet(false);
223
    setTimestampIsSet(false);
184
    this.timestamp = 0;
224
    this.timestamp = 0;
-
 
225
    this.description = null;
-
 
226
    this.referenceNumber = null;
-
 
227
    this.referenceType = null;
185
  }
228
  }
186
 
229
 
187
  public long getId() {
230
  public long getId() {
188
    return this.id;
231
    return this.id;
189
  }
232
  }
Line 292... Line 335...
292
 
335
 
293
  public void setTimestampIsSet(boolean value) {
336
  public void setTimestampIsSet(boolean value) {
294
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
337
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
295
  }
338
  }
296
 
339
 
-
 
340
  public String getDescription() {
-
 
341
    return this.description;
-
 
342
  }
-
 
343
 
-
 
344
  public void setDescription(String description) {
-
 
345
    this.description = description;
-
 
346
  }
-
 
347
 
-
 
348
  public void unsetDescription() {
-
 
349
    this.description = null;
-
 
350
  }
-
 
351
 
-
 
352
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
-
 
353
  public boolean isSetDescription() {
-
 
354
    return this.description != null;
-
 
355
  }
-
 
356
 
-
 
357
  public void setDescriptionIsSet(boolean value) {
-
 
358
    if (!value) {
-
 
359
      this.description = null;
-
 
360
    }
-
 
361
  }
-
 
362
 
-
 
363
  public String getReferenceNumber() {
-
 
364
    return this.referenceNumber;
-
 
365
  }
-
 
366
 
-
 
367
  public void setReferenceNumber(String referenceNumber) {
-
 
368
    this.referenceNumber = referenceNumber;
-
 
369
  }
-
 
370
 
-
 
371
  public void unsetReferenceNumber() {
-
 
372
    this.referenceNumber = null;
-
 
373
  }
-
 
374
 
-
 
375
  /** Returns true if field referenceNumber is set (has been assigned a value) and false otherwise */
-
 
376
  public boolean isSetReferenceNumber() {
-
 
377
    return this.referenceNumber != null;
-
 
378
  }
-
 
379
 
-
 
380
  public void setReferenceNumberIsSet(boolean value) {
-
 
381
    if (!value) {
-
 
382
      this.referenceNumber = null;
-
 
383
    }
-
 
384
  }
-
 
385
 
-
 
386
  /**
-
 
387
   * 
-
 
388
   * @see WalletReferenceType
-
 
389
   */
-
 
390
  public WalletReferenceType getReferenceType() {
-
 
391
    return this.referenceType;
-
 
392
  }
-
 
393
 
-
 
394
  /**
-
 
395
   * 
-
 
396
   * @see WalletReferenceType
-
 
397
   */
-
 
398
  public void setReferenceType(WalletReferenceType referenceType) {
-
 
399
    this.referenceType = referenceType;
-
 
400
  }
-
 
401
 
-
 
402
  public void unsetReferenceType() {
-
 
403
    this.referenceType = null;
-
 
404
  }
-
 
405
 
-
 
406
  /** Returns true if field referenceType is set (has been assigned a value) and false otherwise */
-
 
407
  public boolean isSetReferenceType() {
-
 
408
    return this.referenceType != null;
-
 
409
  }
-
 
410
 
-
 
411
  public void setReferenceTypeIsSet(boolean value) {
-
 
412
    if (!value) {
-
 
413
      this.referenceType = null;
-
 
414
    }
-
 
415
  }
-
 
416
 
297
  public void setFieldValue(_Fields field, Object value) {
417
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
418
    switch (field) {
299
    case ID:
419
    case ID:
300
      if (value == null) {
420
      if (value == null) {
301
        unsetId();
421
        unsetId();
Line 334... Line 454...
334
      } else {
454
      } else {
335
        setTimestamp((Long)value);
455
        setTimestamp((Long)value);
336
      }
456
      }
337
      break;
457
      break;
338
 
458
 
-
 
459
    case DESCRIPTION:
-
 
460
      if (value == null) {
-
 
461
        unsetDescription();
-
 
462
      } else {
-
 
463
        setDescription((String)value);
-
 
464
      }
-
 
465
      break;
-
 
466
 
-
 
467
    case REFERENCE_NUMBER:
-
 
468
      if (value == null) {
-
 
469
        unsetReferenceNumber();
-
 
470
      } else {
-
 
471
        setReferenceNumber((String)value);
-
 
472
      }
-
 
473
      break;
-
 
474
 
-
 
475
    case REFERENCE_TYPE:
-
 
476
      if (value == null) {
-
 
477
        unsetReferenceType();
-
 
478
      } else {
-
 
479
        setReferenceType((WalletReferenceType)value);
-
 
480
      }
-
 
481
      break;
-
 
482
 
339
    }
483
    }
340
  }
484
  }
341
 
485
 
342
  public Object getFieldValue(_Fields field) {
486
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
487
    switch (field) {
Line 354... Line 498...
354
      return Long.valueOf(getAmount());
498
      return Long.valueOf(getAmount());
355
 
499
 
356
    case TIMESTAMP:
500
    case TIMESTAMP:
357
      return Long.valueOf(getTimestamp());
501
      return Long.valueOf(getTimestamp());
358
 
502
 
-
 
503
    case DESCRIPTION:
-
 
504
      return getDescription();
-
 
505
 
-
 
506
    case REFERENCE_NUMBER:
-
 
507
      return getReferenceNumber();
-
 
508
 
-
 
509
    case REFERENCE_TYPE:
-
 
510
      return getReferenceType();
-
 
511
 
359
    }
512
    }
360
    throw new IllegalStateException();
513
    throw new IllegalStateException();
361
  }
514
  }
362
 
515
 
363
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
516
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 375... Line 528...
375
      return isSetOrderId();
528
      return isSetOrderId();
376
    case AMOUNT:
529
    case AMOUNT:
377
      return isSetAmount();
530
      return isSetAmount();
378
    case TIMESTAMP:
531
    case TIMESTAMP:
379
      return isSetTimestamp();
532
      return isSetTimestamp();
-
 
533
    case DESCRIPTION:
-
 
534
      return isSetDescription();
-
 
535
    case REFERENCE_NUMBER:
-
 
536
      return isSetReferenceNumber();
-
 
537
    case REFERENCE_TYPE:
-
 
538
      return isSetReferenceType();
380
    }
539
    }
381
    throw new IllegalStateException();
540
    throw new IllegalStateException();
382
  }
541
  }
383
 
542
 
384
  @Override
543
  @Override
Line 437... Line 596...
437
        return false;
596
        return false;
438
      if (this.timestamp != that.timestamp)
597
      if (this.timestamp != that.timestamp)
439
        return false;
598
        return false;
440
    }
599
    }
441
 
600
 
-
 
601
    boolean this_present_description = true && this.isSetDescription();
-
 
602
    boolean that_present_description = true && that.isSetDescription();
-
 
603
    if (this_present_description || that_present_description) {
-
 
604
      if (!(this_present_description && that_present_description))
-
 
605
        return false;
-
 
606
      if (!this.description.equals(that.description))
-
 
607
        return false;
-
 
608
    }
-
 
609
 
-
 
610
    boolean this_present_referenceNumber = true && this.isSetReferenceNumber();
-
 
611
    boolean that_present_referenceNumber = true && that.isSetReferenceNumber();
-
 
612
    if (this_present_referenceNumber || that_present_referenceNumber) {
-
 
613
      if (!(this_present_referenceNumber && that_present_referenceNumber))
-
 
614
        return false;
-
 
615
      if (!this.referenceNumber.equals(that.referenceNumber))
-
 
616
        return false;
-
 
617
    }
-
 
618
 
-
 
619
    boolean this_present_referenceType = true && this.isSetReferenceType();
-
 
620
    boolean that_present_referenceType = true && that.isSetReferenceType();
-
 
621
    if (this_present_referenceType || that_present_referenceType) {
-
 
622
      if (!(this_present_referenceType && that_present_referenceType))
-
 
623
        return false;
-
 
624
      if (!this.referenceType.equals(that.referenceType))
-
 
625
        return false;
-
 
626
    }
-
 
627
 
442
    return true;
628
    return true;
443
  }
629
  }
444
 
630
 
445
  @Override
631
  @Override
446
  public int hashCode() {
632
  public int hashCode() {
Line 503... Line 689...
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
689
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
504
      if (lastComparison != 0) {
690
      if (lastComparison != 0) {
505
        return lastComparison;
691
        return lastComparison;
506
      }
692
      }
507
    }
693
    }
-
 
694
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
-
 
695
    if (lastComparison != 0) {
-
 
696
      return lastComparison;
-
 
697
    }
-
 
698
    if (isSetDescription()) {
-
 
699
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
-
 
700
      if (lastComparison != 0) {
-
 
701
        return lastComparison;
-
 
702
      }
-
 
703
    }
-
 
704
    lastComparison = Boolean.valueOf(isSetReferenceNumber()).compareTo(typedOther.isSetReferenceNumber());
-
 
705
    if (lastComparison != 0) {
-
 
706
      return lastComparison;
-
 
707
    }
-
 
708
    if (isSetReferenceNumber()) {
-
 
709
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceNumber, typedOther.referenceNumber);
-
 
710
      if (lastComparison != 0) {
-
 
711
        return lastComparison;
-
 
712
      }
-
 
713
    }
-
 
714
    lastComparison = Boolean.valueOf(isSetReferenceType()).compareTo(typedOther.isSetReferenceType());
-
 
715
    if (lastComparison != 0) {
-
 
716
      return lastComparison;
-
 
717
    }
-
 
718
    if (isSetReferenceType()) {
-
 
719
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceType, typedOther.referenceType);
-
 
720
      if (lastComparison != 0) {
-
 
721
        return lastComparison;
-
 
722
      }
-
 
723
    }
508
    return 0;
724
    return 0;
509
  }
725
  }
510
 
726
 
511
  public _Fields fieldForId(int fieldId) {
727
  public _Fields fieldForId(int fieldId) {
512
    return _Fields.findByThriftId(fieldId);
728
    return _Fields.findByThriftId(fieldId);
Line 560... Line 776...
560
            setTimestampIsSet(true);
776
            setTimestampIsSet(true);
561
          } else { 
777
          } else { 
562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
778
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
563
          }
779
          }
564
          break;
780
          break;
-
 
781
        case 6: // DESCRIPTION
-
 
782
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
783
            this.description = iprot.readString();
-
 
784
          } else { 
-
 
785
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
786
          }
-
 
787
          break;
-
 
788
        case 7: // REFERENCE_NUMBER
-
 
789
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
790
            this.referenceNumber = iprot.readString();
-
 
791
          } else { 
-
 
792
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
793
          }
-
 
794
          break;
-
 
795
        case 8: // REFERENCE_TYPE
-
 
796
          if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
797
            this.referenceType = WalletReferenceType.findByValue(iprot.readI32());
-
 
798
          } else { 
-
 
799
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
800
          }
-
 
801
          break;
565
        default:
802
        default:
566
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
803
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
567
      }
804
      }
568
      iprot.readFieldEnd();
805
      iprot.readFieldEnd();
569
    }
806
    }
Line 588... Line 825...
588
    oprot.writeI64(this.amount);
825
    oprot.writeI64(this.amount);
589
    oprot.writeFieldEnd();
826
    oprot.writeFieldEnd();
590
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
827
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
591
    oprot.writeI64(this.timestamp);
828
    oprot.writeI64(this.timestamp);
592
    oprot.writeFieldEnd();
829
    oprot.writeFieldEnd();
-
 
830
    if (this.description != null) {
-
 
831
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
-
 
832
      oprot.writeString(this.description);
-
 
833
      oprot.writeFieldEnd();
-
 
834
    }
-
 
835
    if (this.referenceNumber != null) {
-
 
836
      oprot.writeFieldBegin(REFERENCE_NUMBER_FIELD_DESC);
-
 
837
      oprot.writeString(this.referenceNumber);
-
 
838
      oprot.writeFieldEnd();
-
 
839
    }
-
 
840
    if (this.referenceType != null) {
-
 
841
      oprot.writeFieldBegin(REFERENCE_TYPE_FIELD_DESC);
-
 
842
      oprot.writeI32(this.referenceType.getValue());
-
 
843
      oprot.writeFieldEnd();
-
 
844
    }
593
    oprot.writeFieldStop();
845
    oprot.writeFieldStop();
594
    oprot.writeStructEnd();
846
    oprot.writeStructEnd();
595
  }
847
  }
596
 
848
 
597
  @Override
849
  @Override
Line 616... Line 868...
616
    first = false;
868
    first = false;
617
    if (!first) sb.append(", ");
869
    if (!first) sb.append(", ");
618
    sb.append("timestamp:");
870
    sb.append("timestamp:");
619
    sb.append(this.timestamp);
871
    sb.append(this.timestamp);
620
    first = false;
872
    first = false;
-
 
873
    if (!first) sb.append(", ");
-
 
874
    sb.append("description:");
-
 
875
    if (this.description == null) {
-
 
876
      sb.append("null");
-
 
877
    } else {
-
 
878
      sb.append(this.description);
-
 
879
    }
-
 
880
    first = false;
-
 
881
    if (!first) sb.append(", ");
-
 
882
    sb.append("referenceNumber:");
-
 
883
    if (this.referenceNumber == null) {
-
 
884
      sb.append("null");
-
 
885
    } else {
-
 
886
      sb.append(this.referenceNumber);
-
 
887
    }
-
 
888
    first = false;
-
 
889
    if (!first) sb.append(", ");
-
 
890
    sb.append("referenceType:");
-
 
891
    if (this.referenceType == null) {
-
 
892
      sb.append("null");
-
 
893
    } else {
-
 
894
      sb.append(this.referenceType);
-
 
895
    }
-
 
896
    first = false;
621
    sb.append(")");
897
    sb.append(")");
622
    return sb.toString();
898
    return sb.toString();
623
  }
899
  }
624
 
900
 
625
  public void validate() throws org.apache.thrift.TException {
901
  public void validate() throws org.apache.thrift.TException {