Subversion Repositories SmartDukaan

Rev

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