Subversion Repositories SmartDukaan

Rev

Rev 3028 | Rev 3168 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3028 mandeep.dh 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.crm;
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.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class Activity implements TBase<Activity._Fields>, java.io.Serializable, Cloneable, Comparable<Activity> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Activity");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
3106 mandeep.dh 31
  private static final TField CREATION_TIMESTAMP_FIELD_DESC = new TField("creationTimestamp", TType.I64, (short)3);
32
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)4);
3028 mandeep.dh 33
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)5);
34
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)6);
3106 mandeep.dh 35
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)7);
36
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)8);
37
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)9);
38
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)10);
39
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)11);
40
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)12);
3028 mandeep.dh 41
 
42
  private long id;
43
  private String description;
3106 mandeep.dh 44
  private long creationTimestamp;
45
  private ActivityType type;
3028 mandeep.dh 46
  private long customerId;
47
  private long creatorId;
48
  private long ticketId;
49
  private TicketPriority ticketPriority;
50
  private long ticketAssigneeId;
51
  private TicketStatus ticketStatus;
52
  private TicketCategory ticketCategory;
3106 mandeep.dh 53
  private String ticketDescription;
3028 mandeep.dh 54
 
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  public enum _Fields implements TFieldIdEnum {
57
    ID((short)1, "id"),
58
    DESCRIPTION((short)2, "description"),
3106 mandeep.dh 59
    CREATION_TIMESTAMP((short)3, "creationTimestamp"),
3028 mandeep.dh 60
    /**
61
     * 
3106 mandeep.dh 62
     * @see ActivityType
3028 mandeep.dh 63
     */
3106 mandeep.dh 64
    TYPE((short)4, "type"),
3028 mandeep.dh 65
    CUSTOMER_ID((short)5, "customerId"),
66
    CREATOR_ID((short)6, "creatorId"),
3106 mandeep.dh 67
    TICKET_ID((short)7, "ticketId"),
3028 mandeep.dh 68
    /**
69
     * 
70
     * @see TicketPriority
71
     */
3106 mandeep.dh 72
    TICKET_PRIORITY((short)8, "ticketPriority"),
73
    TICKET_ASSIGNEE_ID((short)9, "ticketAssigneeId"),
3028 mandeep.dh 74
    /**
75
     * 
76
     * @see TicketStatus
77
     */
3106 mandeep.dh 78
    TICKET_STATUS((short)10, "ticketStatus"),
3028 mandeep.dh 79
    /**
80
     * 
81
     * @see TicketCategory
82
     */
3106 mandeep.dh 83
    TICKET_CATEGORY((short)11, "ticketCategory"),
84
    TICKET_DESCRIPTION((short)12, "ticketDescription");
3028 mandeep.dh 85
 
86
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
87
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88
 
89
    static {
90
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
91
        byId.put((int)field._thriftId, field);
92
        byName.put(field.getFieldName(), field);
93
      }
94
    }
95
 
96
    /**
97
     * Find the _Fields constant that matches fieldId, or null if its not found.
98
     */
99
    public static _Fields findByThriftId(int fieldId) {
100
      return byId.get(fieldId);
101
    }
102
 
103
    /**
104
     * Find the _Fields constant that matches fieldId, throwing an exception
105
     * if it is not found.
106
     */
107
    public static _Fields findByThriftIdOrThrow(int fieldId) {
108
      _Fields fields = findByThriftId(fieldId);
109
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
110
      return fields;
111
    }
112
 
113
    /**
114
     * Find the _Fields constant that matches name, or null if its not found.
115
     */
116
    public static _Fields findByName(String name) {
117
      return byName.get(name);
118
    }
119
 
120
    private final short _thriftId;
121
    private final String _fieldName;
122
 
123
    _Fields(short thriftId, String fieldName) {
124
      _thriftId = thriftId;
125
      _fieldName = fieldName;
126
    }
127
 
128
    public short getThriftFieldId() {
129
      return _thriftId;
130
    }
131
 
132
    public String getFieldName() {
133
      return _fieldName;
134
    }
135
  }
136
 
137
  // isset id assignments
138
  private static final int __ID_ISSET_ID = 0;
3106 mandeep.dh 139
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;
3028 mandeep.dh 140
  private static final int __CUSTOMERID_ISSET_ID = 2;
141
  private static final int __CREATORID_ISSET_ID = 3;
3106 mandeep.dh 142
  private static final int __TICKETID_ISSET_ID = 4;
143
  private static final int __TICKETASSIGNEEID_ISSET_ID = 5;
144
  private BitSet __isset_bit_vector = new BitSet(6);
3028 mandeep.dh 145
 
146
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
147
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
148
        new FieldValueMetaData(TType.I64)));
149
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
150
        new FieldValueMetaData(TType.STRING)));
3106 mandeep.dh 151
    put(_Fields.CREATION_TIMESTAMP, new FieldMetaData("creationTimestamp", TFieldRequirementType.DEFAULT, 
3028 mandeep.dh 152
        new FieldValueMetaData(TType.I64)));
3106 mandeep.dh 153
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
154
        new EnumMetaData(TType.ENUM, ActivityType.class)));
3028 mandeep.dh 155
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
156
        new FieldValueMetaData(TType.I64)));
157
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
158
        new FieldValueMetaData(TType.I64)));
159
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT, 
160
        new FieldValueMetaData(TType.I64)));
161
    put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.DEFAULT, 
162
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
163
    put(_Fields.TICKET_ASSIGNEE_ID, new FieldMetaData("ticketAssigneeId", TFieldRequirementType.DEFAULT, 
164
        new FieldValueMetaData(TType.I64)));
165
    put(_Fields.TICKET_STATUS, new FieldMetaData("ticketStatus", TFieldRequirementType.DEFAULT, 
166
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
167
    put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.DEFAULT, 
168
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
3106 mandeep.dh 169
    put(_Fields.TICKET_DESCRIPTION, new FieldMetaData("ticketDescription", TFieldRequirementType.DEFAULT, 
170
        new FieldValueMetaData(TType.STRING)));
3028 mandeep.dh 171
  }});
172
 
173
  static {
174
    FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
175
  }
176
 
177
  public Activity() {
178
  }
179
 
180
  public Activity(
181
    long id,
182
    String description,
3106 mandeep.dh 183
    long creationTimestamp,
184
    ActivityType type,
3028 mandeep.dh 185
    long customerId,
186
    long creatorId,
187
    long ticketId,
188
    TicketPriority ticketPriority,
189
    long ticketAssigneeId,
190
    TicketStatus ticketStatus,
3106 mandeep.dh 191
    TicketCategory ticketCategory,
192
    String ticketDescription)
3028 mandeep.dh 193
  {
194
    this();
195
    this.id = id;
196
    setIdIsSet(true);
197
    this.description = description;
3106 mandeep.dh 198
    this.creationTimestamp = creationTimestamp;
199
    setCreationTimestampIsSet(true);
200
    this.type = type;
3028 mandeep.dh 201
    this.customerId = customerId;
202
    setCustomerIdIsSet(true);
203
    this.creatorId = creatorId;
204
    setCreatorIdIsSet(true);
205
    this.ticketId = ticketId;
206
    setTicketIdIsSet(true);
207
    this.ticketPriority = ticketPriority;
208
    this.ticketAssigneeId = ticketAssigneeId;
209
    setTicketAssigneeIdIsSet(true);
210
    this.ticketStatus = ticketStatus;
211
    this.ticketCategory = ticketCategory;
3106 mandeep.dh 212
    this.ticketDescription = ticketDescription;
3028 mandeep.dh 213
  }
214
 
215
  /**
216
   * Performs a deep copy on <i>other</i>.
217
   */
218
  public Activity(Activity other) {
219
    __isset_bit_vector.clear();
220
    __isset_bit_vector.or(other.__isset_bit_vector);
221
    this.id = other.id;
222
    if (other.isSetDescription()) {
223
      this.description = other.description;
224
    }
3106 mandeep.dh 225
    this.creationTimestamp = other.creationTimestamp;
226
    if (other.isSetType()) {
227
      this.type = other.type;
3028 mandeep.dh 228
    }
229
    this.customerId = other.customerId;
230
    this.creatorId = other.creatorId;
231
    this.ticketId = other.ticketId;
232
    if (other.isSetTicketPriority()) {
233
      this.ticketPriority = other.ticketPriority;
234
    }
235
    this.ticketAssigneeId = other.ticketAssigneeId;
236
    if (other.isSetTicketStatus()) {
237
      this.ticketStatus = other.ticketStatus;
238
    }
239
    if (other.isSetTicketCategory()) {
240
      this.ticketCategory = other.ticketCategory;
241
    }
3106 mandeep.dh 242
    if (other.isSetTicketDescription()) {
243
      this.ticketDescription = other.ticketDescription;
244
    }
3028 mandeep.dh 245
  }
246
 
247
  public Activity deepCopy() {
248
    return new Activity(this);
249
  }
250
 
251
  @Deprecated
252
  public Activity clone() {
253
    return new Activity(this);
254
  }
255
 
256
  public long getId() {
257
    return this.id;
258
  }
259
 
260
  public Activity setId(long id) {
261
    this.id = id;
262
    setIdIsSet(true);
263
    return this;
264
  }
265
 
266
  public void unsetId() {
267
    __isset_bit_vector.clear(__ID_ISSET_ID);
268
  }
269
 
270
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
271
  public boolean isSetId() {
272
    return __isset_bit_vector.get(__ID_ISSET_ID);
273
  }
274
 
275
  public void setIdIsSet(boolean value) {
276
    __isset_bit_vector.set(__ID_ISSET_ID, value);
277
  }
278
 
279
  public String getDescription() {
280
    return this.description;
281
  }
282
 
283
  public Activity setDescription(String description) {
284
    this.description = description;
285
    return this;
286
  }
287
 
288
  public void unsetDescription() {
289
    this.description = null;
290
  }
291
 
292
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
293
  public boolean isSetDescription() {
294
    return this.description != null;
295
  }
296
 
297
  public void setDescriptionIsSet(boolean value) {
298
    if (!value) {
299
      this.description = null;
300
    }
301
  }
302
 
3106 mandeep.dh 303
  public long getCreationTimestamp() {
304
    return this.creationTimestamp;
3028 mandeep.dh 305
  }
306
 
3106 mandeep.dh 307
  public Activity setCreationTimestamp(long creationTimestamp) {
308
    this.creationTimestamp = creationTimestamp;
309
    setCreationTimestampIsSet(true);
3028 mandeep.dh 310
    return this;
311
  }
312
 
3106 mandeep.dh 313
  public void unsetCreationTimestamp() {
314
    __isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
3028 mandeep.dh 315
  }
316
 
3106 mandeep.dh 317
  /** Returns true if field creationTimestamp is set (has been asigned a value) and false otherwise */
318
  public boolean isSetCreationTimestamp() {
319
    return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
3028 mandeep.dh 320
  }
321
 
3106 mandeep.dh 322
  public void setCreationTimestampIsSet(boolean value) {
323
    __isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);
3028 mandeep.dh 324
  }
325
 
326
  /**
327
   * 
3106 mandeep.dh 328
   * @see ActivityType
3028 mandeep.dh 329
   */
3106 mandeep.dh 330
  public ActivityType getType() {
331
    return this.type;
3028 mandeep.dh 332
  }
333
 
334
  /**
335
   * 
3106 mandeep.dh 336
   * @see ActivityType
3028 mandeep.dh 337
   */
3106 mandeep.dh 338
  public Activity setType(ActivityType type) {
339
    this.type = type;
3028 mandeep.dh 340
    return this;
341
  }
342
 
3106 mandeep.dh 343
  public void unsetType() {
344
    this.type = null;
3028 mandeep.dh 345
  }
346
 
3106 mandeep.dh 347
  /** Returns true if field type is set (has been asigned a value) and false otherwise */
348
  public boolean isSetType() {
349
    return this.type != null;
3028 mandeep.dh 350
  }
351
 
3106 mandeep.dh 352
  public void setTypeIsSet(boolean value) {
3028 mandeep.dh 353
    if (!value) {
3106 mandeep.dh 354
      this.type = null;
3028 mandeep.dh 355
    }
356
  }
357
 
358
  public long getCustomerId() {
359
    return this.customerId;
360
  }
361
 
362
  public Activity setCustomerId(long customerId) {
363
    this.customerId = customerId;
364
    setCustomerIdIsSet(true);
365
    return this;
366
  }
367
 
368
  public void unsetCustomerId() {
369
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
370
  }
371
 
372
  /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
373
  public boolean isSetCustomerId() {
374
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
375
  }
376
 
377
  public void setCustomerIdIsSet(boolean value) {
378
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
379
  }
380
 
381
  public long getCreatorId() {
382
    return this.creatorId;
383
  }
384
 
385
  public Activity setCreatorId(long creatorId) {
386
    this.creatorId = creatorId;
387
    setCreatorIdIsSet(true);
388
    return this;
389
  }
390
 
391
  public void unsetCreatorId() {
392
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
393
  }
394
 
395
  /** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
396
  public boolean isSetCreatorId() {
397
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
398
  }
399
 
400
  public void setCreatorIdIsSet(boolean value) {
401
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
402
  }
403
 
404
  public long getTicketId() {
405
    return this.ticketId;
406
  }
407
 
408
  public Activity setTicketId(long ticketId) {
409
    this.ticketId = ticketId;
410
    setTicketIdIsSet(true);
411
    return this;
412
  }
413
 
414
  public void unsetTicketId() {
415
    __isset_bit_vector.clear(__TICKETID_ISSET_ID);
416
  }
417
 
418
  /** Returns true if field ticketId is set (has been asigned a value) and false otherwise */
419
  public boolean isSetTicketId() {
420
    return __isset_bit_vector.get(__TICKETID_ISSET_ID);
421
  }
422
 
423
  public void setTicketIdIsSet(boolean value) {
424
    __isset_bit_vector.set(__TICKETID_ISSET_ID, value);
425
  }
426
 
427
  /**
428
   * 
429
   * @see TicketPriority
430
   */
431
  public TicketPriority getTicketPriority() {
432
    return this.ticketPriority;
433
  }
434
 
435
  /**
436
   * 
437
   * @see TicketPriority
438
   */
439
  public Activity setTicketPriority(TicketPriority ticketPriority) {
440
    this.ticketPriority = ticketPriority;
441
    return this;
442
  }
443
 
444
  public void unsetTicketPriority() {
445
    this.ticketPriority = null;
446
  }
447
 
448
  /** Returns true if field ticketPriority is set (has been asigned a value) and false otherwise */
449
  public boolean isSetTicketPriority() {
450
    return this.ticketPriority != null;
451
  }
452
 
453
  public void setTicketPriorityIsSet(boolean value) {
454
    if (!value) {
455
      this.ticketPriority = null;
456
    }
457
  }
458
 
459
  public long getTicketAssigneeId() {
460
    return this.ticketAssigneeId;
461
  }
462
 
463
  public Activity setTicketAssigneeId(long ticketAssigneeId) {
464
    this.ticketAssigneeId = ticketAssigneeId;
465
    setTicketAssigneeIdIsSet(true);
466
    return this;
467
  }
468
 
469
  public void unsetTicketAssigneeId() {
470
    __isset_bit_vector.clear(__TICKETASSIGNEEID_ISSET_ID);
471
  }
472
 
473
  /** Returns true if field ticketAssigneeId is set (has been asigned a value) and false otherwise */
474
  public boolean isSetTicketAssigneeId() {
475
    return __isset_bit_vector.get(__TICKETASSIGNEEID_ISSET_ID);
476
  }
477
 
478
  public void setTicketAssigneeIdIsSet(boolean value) {
479
    __isset_bit_vector.set(__TICKETASSIGNEEID_ISSET_ID, value);
480
  }
481
 
482
  /**
483
   * 
484
   * @see TicketStatus
485
   */
486
  public TicketStatus getTicketStatus() {
487
    return this.ticketStatus;
488
  }
489
 
490
  /**
491
   * 
492
   * @see TicketStatus
493
   */
494
  public Activity setTicketStatus(TicketStatus ticketStatus) {
495
    this.ticketStatus = ticketStatus;
496
    return this;
497
  }
498
 
499
  public void unsetTicketStatus() {
500
    this.ticketStatus = null;
501
  }
502
 
503
  /** Returns true if field ticketStatus is set (has been asigned a value) and false otherwise */
504
  public boolean isSetTicketStatus() {
505
    return this.ticketStatus != null;
506
  }
507
 
508
  public void setTicketStatusIsSet(boolean value) {
509
    if (!value) {
510
      this.ticketStatus = null;
511
    }
512
  }
513
 
514
  /**
515
   * 
516
   * @see TicketCategory
517
   */
518
  public TicketCategory getTicketCategory() {
519
    return this.ticketCategory;
520
  }
521
 
522
  /**
523
   * 
524
   * @see TicketCategory
525
   */
526
  public Activity setTicketCategory(TicketCategory ticketCategory) {
527
    this.ticketCategory = ticketCategory;
528
    return this;
529
  }
530
 
531
  public void unsetTicketCategory() {
532
    this.ticketCategory = null;
533
  }
534
 
535
  /** Returns true if field ticketCategory is set (has been asigned a value) and false otherwise */
536
  public boolean isSetTicketCategory() {
537
    return this.ticketCategory != null;
538
  }
539
 
540
  public void setTicketCategoryIsSet(boolean value) {
541
    if (!value) {
542
      this.ticketCategory = null;
543
    }
544
  }
545
 
3106 mandeep.dh 546
  public String getTicketDescription() {
547
    return this.ticketDescription;
548
  }
549
 
550
  public Activity setTicketDescription(String ticketDescription) {
551
    this.ticketDescription = ticketDescription;
552
    return this;
553
  }
554
 
555
  public void unsetTicketDescription() {
556
    this.ticketDescription = null;
557
  }
558
 
559
  /** Returns true if field ticketDescription is set (has been asigned a value) and false otherwise */
560
  public boolean isSetTicketDescription() {
561
    return this.ticketDescription != null;
562
  }
563
 
564
  public void setTicketDescriptionIsSet(boolean value) {
565
    if (!value) {
566
      this.ticketDescription = null;
567
    }
568
  }
569
 
3028 mandeep.dh 570
  public void setFieldValue(_Fields field, Object value) {
571
    switch (field) {
572
    case ID:
573
      if (value == null) {
574
        unsetId();
575
      } else {
576
        setId((Long)value);
577
      }
578
      break;
579
 
580
    case DESCRIPTION:
581
      if (value == null) {
582
        unsetDescription();
583
      } else {
584
        setDescription((String)value);
585
      }
586
      break;
587
 
3106 mandeep.dh 588
    case CREATION_TIMESTAMP:
3028 mandeep.dh 589
      if (value == null) {
3106 mandeep.dh 590
        unsetCreationTimestamp();
3028 mandeep.dh 591
      } else {
3106 mandeep.dh 592
        setCreationTimestamp((Long)value);
3028 mandeep.dh 593
      }
594
      break;
595
 
3106 mandeep.dh 596
    case TYPE:
3028 mandeep.dh 597
      if (value == null) {
3106 mandeep.dh 598
        unsetType();
3028 mandeep.dh 599
      } else {
3106 mandeep.dh 600
        setType((ActivityType)value);
3028 mandeep.dh 601
      }
602
      break;
603
 
604
    case CUSTOMER_ID:
605
      if (value == null) {
606
        unsetCustomerId();
607
      } else {
608
        setCustomerId((Long)value);
609
      }
610
      break;
611
 
612
    case CREATOR_ID:
613
      if (value == null) {
614
        unsetCreatorId();
615
      } else {
616
        setCreatorId((Long)value);
617
      }
618
      break;
619
 
620
    case TICKET_ID:
621
      if (value == null) {
622
        unsetTicketId();
623
      } else {
624
        setTicketId((Long)value);
625
      }
626
      break;
627
 
628
    case TICKET_PRIORITY:
629
      if (value == null) {
630
        unsetTicketPriority();
631
      } else {
632
        setTicketPriority((TicketPriority)value);
633
      }
634
      break;
635
 
636
    case TICKET_ASSIGNEE_ID:
637
      if (value == null) {
638
        unsetTicketAssigneeId();
639
      } else {
640
        setTicketAssigneeId((Long)value);
641
      }
642
      break;
643
 
644
    case TICKET_STATUS:
645
      if (value == null) {
646
        unsetTicketStatus();
647
      } else {
648
        setTicketStatus((TicketStatus)value);
649
      }
650
      break;
651
 
652
    case TICKET_CATEGORY:
653
      if (value == null) {
654
        unsetTicketCategory();
655
      } else {
656
        setTicketCategory((TicketCategory)value);
657
      }
658
      break;
659
 
3106 mandeep.dh 660
    case TICKET_DESCRIPTION:
661
      if (value == null) {
662
        unsetTicketDescription();
663
      } else {
664
        setTicketDescription((String)value);
665
      }
666
      break;
667
 
3028 mandeep.dh 668
    }
669
  }
670
 
671
  public void setFieldValue(int fieldID, Object value) {
672
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
673
  }
674
 
675
  public Object getFieldValue(_Fields field) {
676
    switch (field) {
677
    case ID:
678
      return new Long(getId());
679
 
680
    case DESCRIPTION:
681
      return getDescription();
682
 
3106 mandeep.dh 683
    case CREATION_TIMESTAMP:
684
      return new Long(getCreationTimestamp());
3028 mandeep.dh 685
 
3106 mandeep.dh 686
    case TYPE:
687
      return getType();
3028 mandeep.dh 688
 
689
    case CUSTOMER_ID:
690
      return new Long(getCustomerId());
691
 
692
    case CREATOR_ID:
693
      return new Long(getCreatorId());
694
 
695
    case TICKET_ID:
696
      return new Long(getTicketId());
697
 
698
    case TICKET_PRIORITY:
699
      return getTicketPriority();
700
 
701
    case TICKET_ASSIGNEE_ID:
702
      return new Long(getTicketAssigneeId());
703
 
704
    case TICKET_STATUS:
705
      return getTicketStatus();
706
 
707
    case TICKET_CATEGORY:
708
      return getTicketCategory();
709
 
3106 mandeep.dh 710
    case TICKET_DESCRIPTION:
711
      return getTicketDescription();
712
 
3028 mandeep.dh 713
    }
714
    throw new IllegalStateException();
715
  }
716
 
717
  public Object getFieldValue(int fieldId) {
718
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
719
  }
720
 
721
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
722
  public boolean isSet(_Fields field) {
723
    switch (field) {
724
    case ID:
725
      return isSetId();
726
    case DESCRIPTION:
727
      return isSetDescription();
3106 mandeep.dh 728
    case CREATION_TIMESTAMP:
729
      return isSetCreationTimestamp();
730
    case TYPE:
731
      return isSetType();
3028 mandeep.dh 732
    case CUSTOMER_ID:
733
      return isSetCustomerId();
734
    case CREATOR_ID:
735
      return isSetCreatorId();
736
    case TICKET_ID:
737
      return isSetTicketId();
738
    case TICKET_PRIORITY:
739
      return isSetTicketPriority();
740
    case TICKET_ASSIGNEE_ID:
741
      return isSetTicketAssigneeId();
742
    case TICKET_STATUS:
743
      return isSetTicketStatus();
744
    case TICKET_CATEGORY:
745
      return isSetTicketCategory();
3106 mandeep.dh 746
    case TICKET_DESCRIPTION:
747
      return isSetTicketDescription();
3028 mandeep.dh 748
    }
749
    throw new IllegalStateException();
750
  }
751
 
752
  public boolean isSet(int fieldID) {
753
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
754
  }
755
 
756
  @Override
757
  public boolean equals(Object that) {
758
    if (that == null)
759
      return false;
760
    if (that instanceof Activity)
761
      return this.equals((Activity)that);
762
    return false;
763
  }
764
 
765
  public boolean equals(Activity that) {
766
    if (that == null)
767
      return false;
768
 
769
    boolean this_present_id = true;
770
    boolean that_present_id = true;
771
    if (this_present_id || that_present_id) {
772
      if (!(this_present_id && that_present_id))
773
        return false;
774
      if (this.id != that.id)
775
        return false;
776
    }
777
 
778
    boolean this_present_description = true && this.isSetDescription();
779
    boolean that_present_description = true && that.isSetDescription();
780
    if (this_present_description || that_present_description) {
781
      if (!(this_present_description && that_present_description))
782
        return false;
783
      if (!this.description.equals(that.description))
784
        return false;
785
    }
786
 
3106 mandeep.dh 787
    boolean this_present_creationTimestamp = true;
788
    boolean that_present_creationTimestamp = true;
789
    if (this_present_creationTimestamp || that_present_creationTimestamp) {
790
      if (!(this_present_creationTimestamp && that_present_creationTimestamp))
3028 mandeep.dh 791
        return false;
3106 mandeep.dh 792
      if (this.creationTimestamp != that.creationTimestamp)
3028 mandeep.dh 793
        return false;
794
    }
795
 
3106 mandeep.dh 796
    boolean this_present_type = true && this.isSetType();
797
    boolean that_present_type = true && that.isSetType();
798
    if (this_present_type || that_present_type) {
799
      if (!(this_present_type && that_present_type))
3028 mandeep.dh 800
        return false;
3106 mandeep.dh 801
      if (!this.type.equals(that.type))
3028 mandeep.dh 802
        return false;
803
    }
804
 
805
    boolean this_present_customerId = true;
806
    boolean that_present_customerId = true;
807
    if (this_present_customerId || that_present_customerId) {
808
      if (!(this_present_customerId && that_present_customerId))
809
        return false;
810
      if (this.customerId != that.customerId)
811
        return false;
812
    }
813
 
814
    boolean this_present_creatorId = true;
815
    boolean that_present_creatorId = true;
816
    if (this_present_creatorId || that_present_creatorId) {
817
      if (!(this_present_creatorId && that_present_creatorId))
818
        return false;
819
      if (this.creatorId != that.creatorId)
820
        return false;
821
    }
822
 
823
    boolean this_present_ticketId = true;
824
    boolean that_present_ticketId = true;
825
    if (this_present_ticketId || that_present_ticketId) {
826
      if (!(this_present_ticketId && that_present_ticketId))
827
        return false;
828
      if (this.ticketId != that.ticketId)
829
        return false;
830
    }
831
 
832
    boolean this_present_ticketPriority = true && this.isSetTicketPriority();
833
    boolean that_present_ticketPriority = true && that.isSetTicketPriority();
834
    if (this_present_ticketPriority || that_present_ticketPriority) {
835
      if (!(this_present_ticketPriority && that_present_ticketPriority))
836
        return false;
837
      if (!this.ticketPriority.equals(that.ticketPriority))
838
        return false;
839
    }
840
 
841
    boolean this_present_ticketAssigneeId = true;
842
    boolean that_present_ticketAssigneeId = true;
843
    if (this_present_ticketAssigneeId || that_present_ticketAssigneeId) {
844
      if (!(this_present_ticketAssigneeId && that_present_ticketAssigneeId))
845
        return false;
846
      if (this.ticketAssigneeId != that.ticketAssigneeId)
847
        return false;
848
    }
849
 
850
    boolean this_present_ticketStatus = true && this.isSetTicketStatus();
851
    boolean that_present_ticketStatus = true && that.isSetTicketStatus();
852
    if (this_present_ticketStatus || that_present_ticketStatus) {
853
      if (!(this_present_ticketStatus && that_present_ticketStatus))
854
        return false;
855
      if (!this.ticketStatus.equals(that.ticketStatus))
856
        return false;
857
    }
858
 
859
    boolean this_present_ticketCategory = true && this.isSetTicketCategory();
860
    boolean that_present_ticketCategory = true && that.isSetTicketCategory();
861
    if (this_present_ticketCategory || that_present_ticketCategory) {
862
      if (!(this_present_ticketCategory && that_present_ticketCategory))
863
        return false;
864
      if (!this.ticketCategory.equals(that.ticketCategory))
865
        return false;
866
    }
867
 
3106 mandeep.dh 868
    boolean this_present_ticketDescription = true && this.isSetTicketDescription();
869
    boolean that_present_ticketDescription = true && that.isSetTicketDescription();
870
    if (this_present_ticketDescription || that_present_ticketDescription) {
871
      if (!(this_present_ticketDescription && that_present_ticketDescription))
872
        return false;
873
      if (!this.ticketDescription.equals(that.ticketDescription))
874
        return false;
875
    }
876
 
3028 mandeep.dh 877
    return true;
878
  }
879
 
880
  @Override
881
  public int hashCode() {
882
    return 0;
883
  }
884
 
885
  public int compareTo(Activity other) {
886
    if (!getClass().equals(other.getClass())) {
887
      return getClass().getName().compareTo(other.getClass().getName());
888
    }
889
 
890
    int lastComparison = 0;
891
    Activity typedOther = (Activity)other;
892
 
893
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
894
    if (lastComparison != 0) {
895
      return lastComparison;
896
    }
897
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
898
    if (lastComparison != 0) {
899
      return lastComparison;
900
    }
901
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
902
    if (lastComparison != 0) {
903
      return lastComparison;
904
    }
905
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
906
    if (lastComparison != 0) {
907
      return lastComparison;
908
    }
3106 mandeep.dh 909
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(isSetCreationTimestamp());
3028 mandeep.dh 910
    if (lastComparison != 0) {
911
      return lastComparison;
912
    }
3106 mandeep.dh 913
    lastComparison = TBaseHelper.compareTo(creationTimestamp, typedOther.creationTimestamp);
3028 mandeep.dh 914
    if (lastComparison != 0) {
915
      return lastComparison;
916
    }
3106 mandeep.dh 917
    lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
3028 mandeep.dh 918
    if (lastComparison != 0) {
919
      return lastComparison;
920
    }
3106 mandeep.dh 921
    lastComparison = TBaseHelper.compareTo(type, typedOther.type);
3028 mandeep.dh 922
    if (lastComparison != 0) {
923
      return lastComparison;
924
    }
925
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
926
    if (lastComparison != 0) {
927
      return lastComparison;
928
    }
929
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
930
    if (lastComparison != 0) {
931
      return lastComparison;
932
    }
933
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
934
    if (lastComparison != 0) {
935
      return lastComparison;
936
    }
937
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
938
    if (lastComparison != 0) {
939
      return lastComparison;
940
    }
941
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
942
    if (lastComparison != 0) {
943
      return lastComparison;
944
    }
945
    lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
946
    if (lastComparison != 0) {
947
      return lastComparison;
948
    }
949
    lastComparison = Boolean.valueOf(isSetTicketPriority()).compareTo(isSetTicketPriority());
950
    if (lastComparison != 0) {
951
      return lastComparison;
952
    }
953
    lastComparison = TBaseHelper.compareTo(ticketPriority, typedOther.ticketPriority);
954
    if (lastComparison != 0) {
955
      return lastComparison;
956
    }
957
    lastComparison = Boolean.valueOf(isSetTicketAssigneeId()).compareTo(isSetTicketAssigneeId());
958
    if (lastComparison != 0) {
959
      return lastComparison;
960
    }
961
    lastComparison = TBaseHelper.compareTo(ticketAssigneeId, typedOther.ticketAssigneeId);
962
    if (lastComparison != 0) {
963
      return lastComparison;
964
    }
965
    lastComparison = Boolean.valueOf(isSetTicketStatus()).compareTo(isSetTicketStatus());
966
    if (lastComparison != 0) {
967
      return lastComparison;
968
    }
969
    lastComparison = TBaseHelper.compareTo(ticketStatus, typedOther.ticketStatus);
970
    if (lastComparison != 0) {
971
      return lastComparison;
972
    }
973
    lastComparison = Boolean.valueOf(isSetTicketCategory()).compareTo(isSetTicketCategory());
974
    if (lastComparison != 0) {
975
      return lastComparison;
976
    }
977
    lastComparison = TBaseHelper.compareTo(ticketCategory, typedOther.ticketCategory);
978
    if (lastComparison != 0) {
979
      return lastComparison;
980
    }
3106 mandeep.dh 981
    lastComparison = Boolean.valueOf(isSetTicketDescription()).compareTo(isSetTicketDescription());
982
    if (lastComparison != 0) {
983
      return lastComparison;
984
    }
985
    lastComparison = TBaseHelper.compareTo(ticketDescription, typedOther.ticketDescription);
986
    if (lastComparison != 0) {
987
      return lastComparison;
988
    }
3028 mandeep.dh 989
    return 0;
990
  }
991
 
992
  public void read(TProtocol iprot) throws TException {
993
    TField field;
994
    iprot.readStructBegin();
995
    while (true)
996
    {
997
      field = iprot.readFieldBegin();
998
      if (field.type == TType.STOP) { 
999
        break;
1000
      }
1001
      _Fields fieldId = _Fields.findByThriftId(field.id);
1002
      if (fieldId == null) {
1003
        TProtocolUtil.skip(iprot, field.type);
1004
      } else {
1005
        switch (fieldId) {
1006
          case ID:
1007
            if (field.type == TType.I64) {
1008
              this.id = iprot.readI64();
1009
              setIdIsSet(true);
1010
            } else { 
1011
              TProtocolUtil.skip(iprot, field.type);
1012
            }
1013
            break;
1014
          case DESCRIPTION:
1015
            if (field.type == TType.STRING) {
1016
              this.description = iprot.readString();
1017
            } else { 
1018
              TProtocolUtil.skip(iprot, field.type);
1019
            }
1020
            break;
3106 mandeep.dh 1021
          case CREATION_TIMESTAMP:
3028 mandeep.dh 1022
            if (field.type == TType.I64) {
3106 mandeep.dh 1023
              this.creationTimestamp = iprot.readI64();
1024
              setCreationTimestampIsSet(true);
3028 mandeep.dh 1025
            } else { 
1026
              TProtocolUtil.skip(iprot, field.type);
1027
            }
1028
            break;
3106 mandeep.dh 1029
          case TYPE:
3028 mandeep.dh 1030
            if (field.type == TType.I32) {
3106 mandeep.dh 1031
              this.type = ActivityType.findByValue(iprot.readI32());
3028 mandeep.dh 1032
            } else { 
1033
              TProtocolUtil.skip(iprot, field.type);
1034
            }
1035
            break;
1036
          case CUSTOMER_ID:
1037
            if (field.type == TType.I64) {
1038
              this.customerId = iprot.readI64();
1039
              setCustomerIdIsSet(true);
1040
            } else { 
1041
              TProtocolUtil.skip(iprot, field.type);
1042
            }
1043
            break;
1044
          case CREATOR_ID:
1045
            if (field.type == TType.I64) {
1046
              this.creatorId = iprot.readI64();
1047
              setCreatorIdIsSet(true);
1048
            } else { 
1049
              TProtocolUtil.skip(iprot, field.type);
1050
            }
1051
            break;
1052
          case TICKET_ID:
1053
            if (field.type == TType.I64) {
1054
              this.ticketId = iprot.readI64();
1055
              setTicketIdIsSet(true);
1056
            } else { 
1057
              TProtocolUtil.skip(iprot, field.type);
1058
            }
1059
            break;
1060
          case TICKET_PRIORITY:
1061
            if (field.type == TType.I32) {
1062
              this.ticketPriority = TicketPriority.findByValue(iprot.readI32());
1063
            } else { 
1064
              TProtocolUtil.skip(iprot, field.type);
1065
            }
1066
            break;
1067
          case TICKET_ASSIGNEE_ID:
1068
            if (field.type == TType.I64) {
1069
              this.ticketAssigneeId = iprot.readI64();
1070
              setTicketAssigneeIdIsSet(true);
1071
            } else { 
1072
              TProtocolUtil.skip(iprot, field.type);
1073
            }
1074
            break;
1075
          case TICKET_STATUS:
1076
            if (field.type == TType.I32) {
1077
              this.ticketStatus = TicketStatus.findByValue(iprot.readI32());
1078
            } else { 
1079
              TProtocolUtil.skip(iprot, field.type);
1080
            }
1081
            break;
1082
          case TICKET_CATEGORY:
1083
            if (field.type == TType.I32) {
1084
              this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
1085
            } else { 
1086
              TProtocolUtil.skip(iprot, field.type);
1087
            }
1088
            break;
3106 mandeep.dh 1089
          case TICKET_DESCRIPTION:
1090
            if (field.type == TType.STRING) {
1091
              this.ticketDescription = iprot.readString();
1092
            } else { 
1093
              TProtocolUtil.skip(iprot, field.type);
1094
            }
1095
            break;
3028 mandeep.dh 1096
        }
1097
        iprot.readFieldEnd();
1098
      }
1099
    }
1100
    iprot.readStructEnd();
1101
    validate();
1102
  }
1103
 
1104
  public void write(TProtocol oprot) throws TException {
1105
    validate();
1106
 
1107
    oprot.writeStructBegin(STRUCT_DESC);
1108
    oprot.writeFieldBegin(ID_FIELD_DESC);
1109
    oprot.writeI64(this.id);
1110
    oprot.writeFieldEnd();
1111
    if (this.description != null) {
1112
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1113
      oprot.writeString(this.description);
1114
      oprot.writeFieldEnd();
1115
    }
3106 mandeep.dh 1116
    oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
1117
    oprot.writeI64(this.creationTimestamp);
3028 mandeep.dh 1118
    oprot.writeFieldEnd();
3106 mandeep.dh 1119
    if (this.type != null) {
1120
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
1121
      oprot.writeI32(this.type.getValue());
3028 mandeep.dh 1122
      oprot.writeFieldEnd();
1123
    }
1124
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1125
    oprot.writeI64(this.customerId);
1126
    oprot.writeFieldEnd();
1127
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1128
    oprot.writeI64(this.creatorId);
1129
    oprot.writeFieldEnd();
1130
    oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
1131
    oprot.writeI64(this.ticketId);
1132
    oprot.writeFieldEnd();
1133
    if (this.ticketPriority != null) {
1134
      oprot.writeFieldBegin(TICKET_PRIORITY_FIELD_DESC);
1135
      oprot.writeI32(this.ticketPriority.getValue());
1136
      oprot.writeFieldEnd();
1137
    }
1138
    oprot.writeFieldBegin(TICKET_ASSIGNEE_ID_FIELD_DESC);
1139
    oprot.writeI64(this.ticketAssigneeId);
1140
    oprot.writeFieldEnd();
1141
    if (this.ticketStatus != null) {
1142
      oprot.writeFieldBegin(TICKET_STATUS_FIELD_DESC);
1143
      oprot.writeI32(this.ticketStatus.getValue());
1144
      oprot.writeFieldEnd();
1145
    }
1146
    if (this.ticketCategory != null) {
1147
      oprot.writeFieldBegin(TICKET_CATEGORY_FIELD_DESC);
1148
      oprot.writeI32(this.ticketCategory.getValue());
1149
      oprot.writeFieldEnd();
1150
    }
3106 mandeep.dh 1151
    if (this.ticketDescription != null) {
1152
      oprot.writeFieldBegin(TICKET_DESCRIPTION_FIELD_DESC);
1153
      oprot.writeString(this.ticketDescription);
1154
      oprot.writeFieldEnd();
1155
    }
3028 mandeep.dh 1156
    oprot.writeFieldStop();
1157
    oprot.writeStructEnd();
1158
  }
1159
 
1160
  @Override
1161
  public String toString() {
1162
    StringBuilder sb = new StringBuilder("Activity(");
1163
    boolean first = true;
1164
 
1165
    sb.append("id:");
1166
    sb.append(this.id);
1167
    first = false;
1168
    if (!first) sb.append(", ");
1169
    sb.append("description:");
1170
    if (this.description == null) {
1171
      sb.append("null");
1172
    } else {
1173
      sb.append(this.description);
1174
    }
1175
    first = false;
1176
    if (!first) sb.append(", ");
3106 mandeep.dh 1177
    sb.append("creationTimestamp:");
1178
    sb.append(this.creationTimestamp);
3028 mandeep.dh 1179
    first = false;
1180
    if (!first) sb.append(", ");
3106 mandeep.dh 1181
    sb.append("type:");
1182
    if (this.type == null) {
3028 mandeep.dh 1183
      sb.append("null");
1184
    } else {
3106 mandeep.dh 1185
      String type_name = type.name();
1186
      if (type_name != null) {
1187
        sb.append(type_name);
3028 mandeep.dh 1188
        sb.append(" (");
1189
      }
3106 mandeep.dh 1190
      sb.append(this.type);
1191
      if (type_name != null) {
3028 mandeep.dh 1192
        sb.append(")");
1193
      }
1194
    }
1195
    first = false;
1196
    if (!first) sb.append(", ");
1197
    sb.append("customerId:");
1198
    sb.append(this.customerId);
1199
    first = false;
1200
    if (!first) sb.append(", ");
1201
    sb.append("creatorId:");
1202
    sb.append(this.creatorId);
1203
    first = false;
1204
    if (!first) sb.append(", ");
1205
    sb.append("ticketId:");
1206
    sb.append(this.ticketId);
1207
    first = false;
1208
    if (!first) sb.append(", ");
1209
    sb.append("ticketPriority:");
1210
    if (this.ticketPriority == null) {
1211
      sb.append("null");
1212
    } else {
1213
      String ticketPriority_name = ticketPriority.name();
1214
      if (ticketPriority_name != null) {
1215
        sb.append(ticketPriority_name);
1216
        sb.append(" (");
1217
      }
1218
      sb.append(this.ticketPriority);
1219
      if (ticketPriority_name != null) {
1220
        sb.append(")");
1221
      }
1222
    }
1223
    first = false;
1224
    if (!first) sb.append(", ");
1225
    sb.append("ticketAssigneeId:");
1226
    sb.append(this.ticketAssigneeId);
1227
    first = false;
1228
    if (!first) sb.append(", ");
1229
    sb.append("ticketStatus:");
1230
    if (this.ticketStatus == null) {
1231
      sb.append("null");
1232
    } else {
1233
      String ticketStatus_name = ticketStatus.name();
1234
      if (ticketStatus_name != null) {
1235
        sb.append(ticketStatus_name);
1236
        sb.append(" (");
1237
      }
1238
      sb.append(this.ticketStatus);
1239
      if (ticketStatus_name != null) {
1240
        sb.append(")");
1241
      }
1242
    }
1243
    first = false;
1244
    if (!first) sb.append(", ");
1245
    sb.append("ticketCategory:");
1246
    if (this.ticketCategory == null) {
1247
      sb.append("null");
1248
    } else {
1249
      String ticketCategory_name = ticketCategory.name();
1250
      if (ticketCategory_name != null) {
1251
        sb.append(ticketCategory_name);
1252
        sb.append(" (");
1253
      }
1254
      sb.append(this.ticketCategory);
1255
      if (ticketCategory_name != null) {
1256
        sb.append(")");
1257
      }
1258
    }
1259
    first = false;
3106 mandeep.dh 1260
    if (!first) sb.append(", ");
1261
    sb.append("ticketDescription:");
1262
    if (this.ticketDescription == null) {
1263
      sb.append("null");
1264
    } else {
1265
      sb.append(this.ticketDescription);
1266
    }
1267
    first = false;
3028 mandeep.dh 1268
    sb.append(")");
1269
    return sb.toString();
1270
  }
1271
 
1272
  public void validate() throws TException {
1273
    // check for required fields
1274
  }
1275
 
1276
}
1277