Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 4393
Line 22... Line 22...
22
 
22
 
23
public class Alert implements org.apache.thrift.TBase<Alert, Alert._Fields>, java.io.Serializable, Cloneable {
23
public class Alert implements org.apache.thrift.TBase<Alert, Alert._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Alert");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Alert");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("order_id", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
28
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField TIME_SET_FIELD_DESC = new org.apache.thrift.protocol.TField("time_set", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField TIME_UNSET_FIELD_DESC = new org.apache.thrift.protocol.TField("time_unset", org.apache.thrift.protocol.TType.I64, (short)6);
-
 
32
 
31
 
33
  private long id; // required
32
  private long id; // required
34
  private long order_id; // required
33
  private AlertType type; // required
35
  private long type; // required
34
  private long status; // required
36
  private long time_set; // required
35
  private long timestamp; // required
37
  private String comment; // required
36
  private String description; // required
38
  private long time_unset; // required
-
 
39
 
37
 
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42
    ID((short)1, "id"),
40
    ID((short)1, "id"),
-
 
41
    /**
-
 
42
     * 
43
    ORDER_ID((short)2, "order_id"),
43
     * @see AlertType
-
 
44
     */
44
    TYPE((short)3, "type"),
45
    TYPE((short)2, "type"),
45
    TIME_SET((short)4, "time_set"),
46
    STATUS((short)3, "status"),
46
    COMMENT((short)5, "comment"),
47
    TIMESTAMP((short)4, "timestamp"),
47
    TIME_UNSET((short)6, "time_unset");
48
    DESCRIPTION((short)5, "description");
48
 
49
 
49
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50
 
51
 
51
    static {
52
    static {
52
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
53
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 59... Line 60...
59
     */
60
     */
60
    public static _Fields findByThriftId(int fieldId) {
61
    public static _Fields findByThriftId(int fieldId) {
61
      switch(fieldId) {
62
      switch(fieldId) {
62
        case 1: // ID
63
        case 1: // ID
63
          return ID;
64
          return ID;
64
        case 2: // ORDER_ID
-
 
65
          return ORDER_ID;
-
 
66
        case 3: // TYPE
65
        case 2: // TYPE
67
          return TYPE;
66
          return TYPE;
68
        case 4: // TIME_SET
67
        case 3: // STATUS
69
          return TIME_SET;
68
          return STATUS;
70
        case 5: // COMMENT
69
        case 4: // TIMESTAMP
71
          return COMMENT;
70
          return TIMESTAMP;
72
        case 6: // TIME_UNSET
71
        case 5: // DESCRIPTION
73
          return TIME_UNSET;
72
          return DESCRIPTION;
74
        default:
73
        default:
75
          return null;
74
          return null;
76
      }
75
      }
77
    }
76
    }
78
 
77
 
Line 110... Line 109...
110
    }
109
    }
111
  }
110
  }
112
 
111
 
113
  // isset id assignments
112
  // isset id assignments
114
  private static final int __ID_ISSET_ID = 0;
113
  private static final int __ID_ISSET_ID = 0;
115
  private static final int __ORDER_ID_ISSET_ID = 1;
-
 
116
  private static final int __TYPE_ISSET_ID = 2;
114
  private static final int __STATUS_ISSET_ID = 1;
117
  private static final int __TIME_SET_ISSET_ID = 3;
115
  private static final int __TIMESTAMP_ISSET_ID = 2;
118
  private static final int __TIME_UNSET_ISSET_ID = 4;
-
 
119
  private BitSet __isset_bit_vector = new BitSet(5);
116
  private BitSet __isset_bit_vector = new BitSet(3);
120
 
117
 
121
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
118
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
122
  static {
119
  static {
123
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
120
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
124
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
121
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
126
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("order_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
128
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AlertType.class)));
-
 
125
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
129
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
130
    tmpMap.put(_Fields.TIME_SET, new org.apache.thrift.meta_data.FieldMetaData("time_set", org.apache.thrift.TFieldRequirementType.DEFAULT, 
127
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
132
    tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
129
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
133
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
130
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
134
    tmpMap.put(_Fields.TIME_UNSET, new org.apache.thrift.meta_data.FieldMetaData("time_unset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
135
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
136
    metaDataMap = Collections.unmodifiableMap(tmpMap);
131
    metaDataMap = Collections.unmodifiableMap(tmpMap);
137
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Alert.class, metaDataMap);
132
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Alert.class, metaDataMap);
138
  }
133
  }
139
 
134
 
140
  public Alert() {
135
  public Alert() {
141
  }
136
  }
142
 
137
 
143
  public Alert(
138
  public Alert(
144
    long id,
139
    long id,
145
    long order_id,
140
    AlertType type,
146
    long type,
141
    long status,
147
    long time_set,
142
    long timestamp,
148
    String comment,
143
    String description)
149
    long time_unset)
-
 
150
  {
144
  {
151
    this();
145
    this();
152
    this.id = id;
146
    this.id = id;
153
    setIdIsSet(true);
147
    setIdIsSet(true);
154
    this.order_id = order_id;
-
 
155
    setOrder_idIsSet(true);
-
 
156
    this.type = type;
148
    this.type = type;
157
    setTypeIsSet(true);
-
 
158
    this.time_set = time_set;
149
    this.status = status;
159
    setTime_setIsSet(true);
150
    setStatusIsSet(true);
160
    this.comment = comment;
151
    this.timestamp = timestamp;
161
    this.time_unset = time_unset;
152
    setTimestampIsSet(true);
162
    setTime_unsetIsSet(true);
153
    this.description = description;
163
  }
154
  }
164
 
155
 
165
  /**
156
  /**
166
   * Performs a deep copy on <i>other</i>.
157
   * Performs a deep copy on <i>other</i>.
167
   */
158
   */
168
  public Alert(Alert other) {
159
  public Alert(Alert other) {
169
    __isset_bit_vector.clear();
160
    __isset_bit_vector.clear();
170
    __isset_bit_vector.or(other.__isset_bit_vector);
161
    __isset_bit_vector.or(other.__isset_bit_vector);
171
    this.id = other.id;
162
    this.id = other.id;
-
 
163
    if (other.isSetType()) {
172
    this.order_id = other.order_id;
164
      this.type = other.type;
-
 
165
    }
173
    this.type = other.type;
166
    this.status = other.status;
174
    this.time_set = other.time_set;
167
    this.timestamp = other.timestamp;
175
    if (other.isSetComment()) {
168
    if (other.isSetDescription()) {
176
      this.comment = other.comment;
169
      this.description = other.description;
177
    }
170
    }
178
    this.time_unset = other.time_unset;
-
 
179
  }
171
  }
180
 
172
 
181
  public Alert deepCopy() {
173
  public Alert deepCopy() {
182
    return new Alert(this);
174
    return new Alert(this);
183
  }
175
  }
184
 
176
 
185
  @Override
177
  @Override
186
  public void clear() {
178
  public void clear() {
187
    setIdIsSet(false);
179
    setIdIsSet(false);
188
    this.id = 0;
180
    this.id = 0;
189
    setOrder_idIsSet(false);
-
 
190
    this.order_id = 0;
181
    this.type = null;
191
    setTypeIsSet(false);
182
    setStatusIsSet(false);
192
    this.type = 0;
183
    this.status = 0;
193
    setTime_setIsSet(false);
184
    setTimestampIsSet(false);
194
    this.time_set = 0;
185
    this.timestamp = 0;
195
    this.comment = null;
186
    this.description = null;
196
    setTime_unsetIsSet(false);
-
 
197
    this.time_unset = 0;
-
 
198
  }
187
  }
199
 
188
 
200
  public long getId() {
189
  public long getId() {
201
    return this.id;
190
    return this.id;
202
  }
191
  }
Line 217... Line 206...
217
 
206
 
218
  public void setIdIsSet(boolean value) {
207
  public void setIdIsSet(boolean value) {
219
    __isset_bit_vector.set(__ID_ISSET_ID, value);
208
    __isset_bit_vector.set(__ID_ISSET_ID, value);
220
  }
209
  }
221
 
210
 
222
  public long getOrder_id() {
-
 
223
    return this.order_id;
-
 
224
  }
211
  /**
225
 
-
 
226
  public void setOrder_id(long order_id) {
-
 
227
    this.order_id = order_id;
-
 
228
    setOrder_idIsSet(true);
-
 
229
  }
212
   * 
230
 
-
 
231
  public void unsetOrder_id() {
213
   * @see AlertType
232
    __isset_bit_vector.clear(__ORDER_ID_ISSET_ID);
-
 
233
  }
-
 
234
 
-
 
235
  /** Returns true if field order_id is set (has been assigned a value) and false otherwise */
-
 
236
  public boolean isSetOrder_id() {
-
 
237
    return __isset_bit_vector.get(__ORDER_ID_ISSET_ID);
-
 
238
  }
-
 
239
 
-
 
240
  public void setOrder_idIsSet(boolean value) {
-
 
241
    __isset_bit_vector.set(__ORDER_ID_ISSET_ID, value);
-
 
242
  }
214
   */
243
 
-
 
244
  public long getType() {
215
  public AlertType getType() {
245
    return this.type;
216
    return this.type;
246
  }
217
  }
247
 
218
 
-
 
219
  /**
-
 
220
   * 
-
 
221
   * @see AlertType
-
 
222
   */
248
  public void setType(long type) {
223
  public void setType(AlertType type) {
249
    this.type = type;
224
    this.type = type;
250
    setTypeIsSet(true);
-
 
251
  }
225
  }
252
 
226
 
253
  public void unsetType() {
227
  public void unsetType() {
254
    __isset_bit_vector.clear(__TYPE_ISSET_ID);
228
    this.type = null;
255
  }
229
  }
256
 
230
 
257
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
231
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
258
  public boolean isSetType() {
232
  public boolean isSetType() {
259
    return __isset_bit_vector.get(__TYPE_ISSET_ID);
233
    return this.type != null;
260
  }
234
  }
261
 
235
 
262
  public void setTypeIsSet(boolean value) {
236
  public void setTypeIsSet(boolean value) {
-
 
237
    if (!value) {
263
    __isset_bit_vector.set(__TYPE_ISSET_ID, value);
238
      this.type = null;
-
 
239
    }
264
  }
240
  }
265
 
241
 
266
  public long getTime_set() {
242
  public long getStatus() {
267
    return this.time_set;
243
    return this.status;
268
  }
244
  }
269
 
245
 
270
  public void setTime_set(long time_set) {
246
  public void setStatus(long status) {
271
    this.time_set = time_set;
247
    this.status = status;
272
    setTime_setIsSet(true);
248
    setStatusIsSet(true);
273
  }
249
  }
274
 
250
 
275
  public void unsetTime_set() {
251
  public void unsetStatus() {
276
    __isset_bit_vector.clear(__TIME_SET_ISSET_ID);
252
    __isset_bit_vector.clear(__STATUS_ISSET_ID);
277
  }
253
  }
278
 
254
 
279
  /** Returns true if field time_set is set (has been assigned a value) and false otherwise */
255
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
280
  public boolean isSetTime_set() {
256
  public boolean isSetStatus() {
281
    return __isset_bit_vector.get(__TIME_SET_ISSET_ID);
257
    return __isset_bit_vector.get(__STATUS_ISSET_ID);
282
  }
258
  }
283
 
259
 
284
  public void setTime_setIsSet(boolean value) {
260
  public void setStatusIsSet(boolean value) {
285
    __isset_bit_vector.set(__TIME_SET_ISSET_ID, value);
261
    __isset_bit_vector.set(__STATUS_ISSET_ID, value);
286
  }
262
  }
287
 
263
 
288
  public String getComment() {
264
  public long getTimestamp() {
289
    return this.comment;
265
    return this.timestamp;
290
  }
266
  }
291
 
267
 
292
  public void setComment(String comment) {
268
  public void setTimestamp(long timestamp) {
293
    this.comment = comment;
269
    this.timestamp = timestamp;
-
 
270
    setTimestampIsSet(true);
294
  }
271
  }
295
 
272
 
296
  public void unsetComment() {
273
  public void unsetTimestamp() {
297
    this.comment = null;
274
    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
298
  }
275
  }
299
 
276
 
300
  /** Returns true if field comment is set (has been assigned a value) and false otherwise */
277
  /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
301
  public boolean isSetComment() {
278
  public boolean isSetTimestamp() {
302
    return this.comment != null;
279
    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
303
  }
280
  }
304
 
281
 
305
  public void setCommentIsSet(boolean value) {
282
  public void setTimestampIsSet(boolean value) {
306
    if (!value) {
-
 
307
      this.comment = null;
283
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
308
    }
-
 
309
  }
284
  }
310
 
285
 
311
  public long getTime_unset() {
286
  public String getDescription() {
312
    return this.time_unset;
287
    return this.description;
313
  }
288
  }
314
 
289
 
315
  public void setTime_unset(long time_unset) {
290
  public void setDescription(String description) {
316
    this.time_unset = time_unset;
291
    this.description = description;
317
    setTime_unsetIsSet(true);
-
 
318
  }
292
  }
319
 
293
 
320
  public void unsetTime_unset() {
294
  public void unsetDescription() {
321
    __isset_bit_vector.clear(__TIME_UNSET_ISSET_ID);
295
    this.description = null;
322
  }
296
  }
323
 
297
 
324
  /** Returns true if field time_unset is set (has been assigned a value) and false otherwise */
298
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
325
  public boolean isSetTime_unset() {
299
  public boolean isSetDescription() {
326
    return __isset_bit_vector.get(__TIME_UNSET_ISSET_ID);
300
    return this.description != null;
327
  }
301
  }
328
 
302
 
329
  public void setTime_unsetIsSet(boolean value) {
303
  public void setDescriptionIsSet(boolean value) {
-
 
304
    if (!value) {
330
    __isset_bit_vector.set(__TIME_UNSET_ISSET_ID, value);
305
      this.description = null;
-
 
306
    }
331
  }
307
  }
332
 
308
 
333
  public void setFieldValue(_Fields field, Object value) {
309
  public void setFieldValue(_Fields field, Object value) {
334
    switch (field) {
310
    switch (field) {
335
    case ID:
311
    case ID:
Line 338... Line 314...
338
      } else {
314
      } else {
339
        setId((Long)value);
315
        setId((Long)value);
340
      }
316
      }
341
      break;
317
      break;
342
 
318
 
343
    case ORDER_ID:
-
 
344
      if (value == null) {
-
 
345
        unsetOrder_id();
-
 
346
      } else {
-
 
347
        setOrder_id((Long)value);
-
 
348
      }
-
 
349
      break;
-
 
350
 
-
 
351
    case TYPE:
319
    case TYPE:
352
      if (value == null) {
320
      if (value == null) {
353
        unsetType();
321
        unsetType();
354
      } else {
322
      } else {
355
        setType((Long)value);
323
        setType((AlertType)value);
356
      }
324
      }
357
      break;
325
      break;
358
 
326
 
359
    case TIME_SET:
327
    case STATUS:
360
      if (value == null) {
328
      if (value == null) {
361
        unsetTime_set();
329
        unsetStatus();
362
      } else {
330
      } else {
363
        setTime_set((Long)value);
331
        setStatus((Long)value);
364
      }
332
      }
365
      break;
333
      break;
366
 
334
 
367
    case COMMENT:
335
    case TIMESTAMP:
368
      if (value == null) {
336
      if (value == null) {
369
        unsetComment();
337
        unsetTimestamp();
370
      } else {
338
      } else {
371
        setComment((String)value);
339
        setTimestamp((Long)value);
372
      }
340
      }
373
      break;
341
      break;
374
 
342
 
375
    case TIME_UNSET:
343
    case DESCRIPTION:
376
      if (value == null) {
344
      if (value == null) {
377
        unsetTime_unset();
345
        unsetDescription();
378
      } else {
346
      } else {
379
        setTime_unset((Long)value);
347
        setDescription((String)value);
380
      }
348
      }
381
      break;
349
      break;
382
 
350
 
383
    }
351
    }
384
  }
352
  }
Line 386... Line 354...
386
  public Object getFieldValue(_Fields field) {
354
  public Object getFieldValue(_Fields field) {
387
    switch (field) {
355
    switch (field) {
388
    case ID:
356
    case ID:
389
      return Long.valueOf(getId());
357
      return Long.valueOf(getId());
390
 
358
 
391
    case ORDER_ID:
-
 
392
      return Long.valueOf(getOrder_id());
-
 
393
 
-
 
394
    case TYPE:
359
    case TYPE:
395
      return Long.valueOf(getType());
360
      return getType();
396
 
361
 
397
    case TIME_SET:
362
    case STATUS:
398
      return Long.valueOf(getTime_set());
363
      return Long.valueOf(getStatus());
399
 
364
 
400
    case COMMENT:
365
    case TIMESTAMP:
401
      return getComment();
366
      return Long.valueOf(getTimestamp());
402
 
367
 
403
    case TIME_UNSET:
368
    case DESCRIPTION:
404
      return Long.valueOf(getTime_unset());
369
      return getDescription();
405
 
370
 
406
    }
371
    }
407
    throw new IllegalStateException();
372
    throw new IllegalStateException();
408
  }
373
  }
409
 
374
 
Line 414... Line 379...
414
    }
379
    }
415
 
380
 
416
    switch (field) {
381
    switch (field) {
417
    case ID:
382
    case ID:
418
      return isSetId();
383
      return isSetId();
419
    case ORDER_ID:
-
 
420
      return isSetOrder_id();
-
 
421
    case TYPE:
384
    case TYPE:
422
      return isSetType();
385
      return isSetType();
423
    case TIME_SET:
386
    case STATUS:
424
      return isSetTime_set();
387
      return isSetStatus();
425
    case COMMENT:
388
    case TIMESTAMP:
426
      return isSetComment();
389
      return isSetTimestamp();
427
    case TIME_UNSET:
390
    case DESCRIPTION:
428
      return isSetTime_unset();
391
      return isSetDescription();
429
    }
392
    }
430
    throw new IllegalStateException();
393
    throw new IllegalStateException();
431
  }
394
  }
432
 
395
 
433
  @Override
396
  @Override
Line 450... Line 413...
450
        return false;
413
        return false;
451
      if (this.id != that.id)
414
      if (this.id != that.id)
452
        return false;
415
        return false;
453
    }
416
    }
454
 
417
 
455
    boolean this_present_order_id = true;
-
 
456
    boolean that_present_order_id = true;
-
 
457
    if (this_present_order_id || that_present_order_id) {
-
 
458
      if (!(this_present_order_id && that_present_order_id))
-
 
459
        return false;
-
 
460
      if (this.order_id != that.order_id)
-
 
461
        return false;
-
 
462
    }
-
 
463
 
-
 
464
    boolean this_present_type = true;
418
    boolean this_present_type = true && this.isSetType();
465
    boolean that_present_type = true;
419
    boolean that_present_type = true && that.isSetType();
466
    if (this_present_type || that_present_type) {
420
    if (this_present_type || that_present_type) {
467
      if (!(this_present_type && that_present_type))
421
      if (!(this_present_type && that_present_type))
468
        return false;
422
        return false;
469
      if (this.type != that.type)
423
      if (!this.type.equals(that.type))
470
        return false;
424
        return false;
471
    }
425
    }
472
 
426
 
473
    boolean this_present_time_set = true;
427
    boolean this_present_status = true;
474
    boolean that_present_time_set = true;
428
    boolean that_present_status = true;
475
    if (this_present_time_set || that_present_time_set) {
429
    if (this_present_status || that_present_status) {
476
      if (!(this_present_time_set && that_present_time_set))
430
      if (!(this_present_status && that_present_status))
477
        return false;
431
        return false;
478
      if (this.time_set != that.time_set)
432
      if (this.status != that.status)
479
        return false;
433
        return false;
480
    }
434
    }
481
 
435
 
482
    boolean this_present_comment = true && this.isSetComment();
436
    boolean this_present_timestamp = true;
483
    boolean that_present_comment = true && that.isSetComment();
437
    boolean that_present_timestamp = true;
484
    if (this_present_comment || that_present_comment) {
438
    if (this_present_timestamp || that_present_timestamp) {
485
      if (!(this_present_comment && that_present_comment))
439
      if (!(this_present_timestamp && that_present_timestamp))
486
        return false;
440
        return false;
487
      if (!this.comment.equals(that.comment))
441
      if (this.timestamp != that.timestamp)
488
        return false;
442
        return false;
489
    }
443
    }
490
 
444
 
491
    boolean this_present_time_unset = true;
445
    boolean this_present_description = true && this.isSetDescription();
492
    boolean that_present_time_unset = true;
446
    boolean that_present_description = true && that.isSetDescription();
493
    if (this_present_time_unset || that_present_time_unset) {
447
    if (this_present_description || that_present_description) {
494
      if (!(this_present_time_unset && that_present_time_unset))
448
      if (!(this_present_description && that_present_description))
495
        return false;
449
        return false;
496
      if (this.time_unset != that.time_unset)
450
      if (!this.description.equals(that.description))
497
        return false;
451
        return false;
498
    }
452
    }
499
 
453
 
500
    return true;
454
    return true;
501
  }
455
  }
Line 521... Line 475...
521
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
475
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
522
      if (lastComparison != 0) {
476
      if (lastComparison != 0) {
523
        return lastComparison;
477
        return lastComparison;
524
      }
478
      }
525
    }
479
    }
526
    lastComparison = Boolean.valueOf(isSetOrder_id()).compareTo(typedOther.isSetOrder_id());
-
 
527
    if (lastComparison != 0) {
-
 
528
      return lastComparison;
-
 
529
    }
-
 
530
    if (isSetOrder_id()) {
-
 
531
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order_id, typedOther.order_id);
-
 
532
      if (lastComparison != 0) {
-
 
533
        return lastComparison;
-
 
534
      }
-
 
535
    }
-
 
536
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
480
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
537
    if (lastComparison != 0) {
481
    if (lastComparison != 0) {
538
      return lastComparison;
482
      return lastComparison;
539
    }
483
    }
540
    if (isSetType()) {
484
    if (isSetType()) {
541
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
485
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
542
      if (lastComparison != 0) {
486
      if (lastComparison != 0) {
543
        return lastComparison;
487
        return lastComparison;
544
      }
488
      }
545
    }
489
    }
546
    lastComparison = Boolean.valueOf(isSetTime_set()).compareTo(typedOther.isSetTime_set());
490
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
547
    if (lastComparison != 0) {
491
    if (lastComparison != 0) {
548
      return lastComparison;
492
      return lastComparison;
549
    }
493
    }
550
    if (isSetTime_set()) {
494
    if (isSetStatus()) {
551
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time_set, typedOther.time_set);
495
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
552
      if (lastComparison != 0) {
496
      if (lastComparison != 0) {
553
        return lastComparison;
497
        return lastComparison;
554
      }
498
      }
555
    }
499
    }
556
    lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment());
500
    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
557
    if (lastComparison != 0) {
501
    if (lastComparison != 0) {
558
      return lastComparison;
502
      return lastComparison;
559
    }
503
    }
560
    if (isSetComment()) {
504
    if (isSetTimestamp()) {
561
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
505
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
562
      if (lastComparison != 0) {
506
      if (lastComparison != 0) {
563
        return lastComparison;
507
        return lastComparison;
564
      }
508
      }
565
    }
509
    }
566
    lastComparison = Boolean.valueOf(isSetTime_unset()).compareTo(typedOther.isSetTime_unset());
510
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
567
    if (lastComparison != 0) {
511
    if (lastComparison != 0) {
568
      return lastComparison;
512
      return lastComparison;
569
    }
513
    }
570
    if (isSetTime_unset()) {
514
    if (isSetDescription()) {
571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time_unset, typedOther.time_unset);
515
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
572
      if (lastComparison != 0) {
516
      if (lastComparison != 0) {
573
        return lastComparison;
517
        return lastComparison;
574
      }
518
      }
575
    }
519
    }
576
    return 0;
520
    return 0;
Line 596... Line 540...
596
            setIdIsSet(true);
540
            setIdIsSet(true);
597
          } else { 
541
          } else { 
598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
599
          }
543
          }
600
          break;
544
          break;
601
        case 2: // ORDER_ID
545
        case 2: // TYPE
602
          if (field.type == org.apache.thrift.protocol.TType.I64) {
546
          if (field.type == org.apache.thrift.protocol.TType.I32) {
603
            this.order_id = iprot.readI64();
547
            this.type = AlertType.findByValue(iprot.readI32());
604
            setOrder_idIsSet(true);
-
 
605
          } else { 
548
          } else { 
606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
607
          }
550
          }
608
          break;
551
          break;
609
        case 3: // TYPE
552
        case 3: // STATUS
610
          if (field.type == org.apache.thrift.protocol.TType.I64) {
553
          if (field.type == org.apache.thrift.protocol.TType.I64) {
611
            this.type = iprot.readI64();
554
            this.status = iprot.readI64();
612
            setTypeIsSet(true);
555
            setStatusIsSet(true);
613
          } else { 
556
          } else { 
614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
615
          }
558
          }
616
          break;
559
          break;
617
        case 4: // TIME_SET
560
        case 4: // TIMESTAMP
618
          if (field.type == org.apache.thrift.protocol.TType.I64) {
561
          if (field.type == org.apache.thrift.protocol.TType.I64) {
619
            this.time_set = iprot.readI64();
562
            this.timestamp = iprot.readI64();
620
            setTime_setIsSet(true);
563
            setTimestampIsSet(true);
621
          } else { 
564
          } else { 
622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
623
          }
566
          }
624
          break;
567
          break;
625
        case 5: // COMMENT
568
        case 5: // DESCRIPTION
626
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
569
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
627
            this.comment = iprot.readString();
570
            this.description = iprot.readString();
628
          } else { 
-
 
629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
630
          }
-
 
631
          break;
-
 
632
        case 6: // TIME_UNSET
-
 
633
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
634
            this.time_unset = iprot.readI64();
-
 
635
            setTime_unsetIsSet(true);
-
 
636
          } else { 
571
          } else { 
637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
572
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
638
          }
573
          }
639
          break;
574
          break;
640
        default:
575
        default:
Line 651... Line 586...
651
 
586
 
652
    oprot.writeStructBegin(STRUCT_DESC);
587
    oprot.writeStructBegin(STRUCT_DESC);
653
    oprot.writeFieldBegin(ID_FIELD_DESC);
588
    oprot.writeFieldBegin(ID_FIELD_DESC);
654
    oprot.writeI64(this.id);
589
    oprot.writeI64(this.id);
655
    oprot.writeFieldEnd();
590
    oprot.writeFieldEnd();
-
 
591
    if (this.type != null) {
656
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
592
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
657
    oprot.writeI64(this.order_id);
593
      oprot.writeI32(this.type.getValue());
658
    oprot.writeFieldEnd();
594
      oprot.writeFieldEnd();
-
 
595
    }
659
    oprot.writeFieldBegin(TYPE_FIELD_DESC);
596
    oprot.writeFieldBegin(STATUS_FIELD_DESC);
660
    oprot.writeI64(this.type);
597
    oprot.writeI64(this.status);
661
    oprot.writeFieldEnd();
598
    oprot.writeFieldEnd();
662
    oprot.writeFieldBegin(TIME_SET_FIELD_DESC);
599
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
663
    oprot.writeI64(this.time_set);
600
    oprot.writeI64(this.timestamp);
664
    oprot.writeFieldEnd();
601
    oprot.writeFieldEnd();
665
    if (this.comment != null) {
602
    if (this.description != null) {
666
      oprot.writeFieldBegin(COMMENT_FIELD_DESC);
603
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
667
      oprot.writeString(this.comment);
604
      oprot.writeString(this.description);
668
      oprot.writeFieldEnd();
605
      oprot.writeFieldEnd();
669
    }
606
    }
670
    oprot.writeFieldBegin(TIME_UNSET_FIELD_DESC);
-
 
671
    oprot.writeI64(this.time_unset);
-
 
672
    oprot.writeFieldEnd();
-
 
673
    oprot.writeFieldStop();
607
    oprot.writeFieldStop();
674
    oprot.writeStructEnd();
608
    oprot.writeStructEnd();
675
  }
609
  }
676
 
610
 
677
  @Override
611
  @Override
Line 681... Line 615...
681
 
615
 
682
    sb.append("id:");
616
    sb.append("id:");
683
    sb.append(this.id);
617
    sb.append(this.id);
684
    first = false;
618
    first = false;
685
    if (!first) sb.append(", ");
619
    if (!first) sb.append(", ");
686
    sb.append("order_id:");
620
    sb.append("type:");
-
 
621
    if (this.type == null) {
-
 
622
      sb.append("null");
-
 
623
    } else {
687
    sb.append(this.order_id);
624
      sb.append(this.type);
-
 
625
    }
688
    first = false;
626
    first = false;
689
    if (!first) sb.append(", ");
627
    if (!first) sb.append(", ");
690
    sb.append("type:");
628
    sb.append("status:");
691
    sb.append(this.type);
629
    sb.append(this.status);
692
    first = false;
630
    first = false;
693
    if (!first) sb.append(", ");
631
    if (!first) sb.append(", ");
694
    sb.append("time_set:");
632
    sb.append("timestamp:");
695
    sb.append(this.time_set);
633
    sb.append(this.timestamp);
696
    first = false;
634
    first = false;
697
    if (!first) sb.append(", ");
635
    if (!first) sb.append(", ");
698
    sb.append("comment:");
636
    sb.append("description:");
699
    if (this.comment == null) {
637
    if (this.description == null) {
700
      sb.append("null");
638
      sb.append("null");
701
    } else {
639
    } else {
702
      sb.append(this.comment);
640
      sb.append(this.description);
703
    }
641
    }
704
    first = false;
642
    first = false;
705
    if (!first) sb.append(", ");
-
 
706
    sb.append("time_unset:");
-
 
707
    sb.append(this.time_unset);
-
 
708
    first = false;
-
 
709
    sb.append(")");
643
    sb.append(")");
710
    return sb.toString();
644
    return sb.toString();
711
  }
645
  }
712
 
646
 
713
  public void validate() throws org.apache.thrift.TException {
647
  public void validate() throws org.apache.thrift.TException {