Subversion Repositories SmartDukaan

Rev

Rev 1013 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1013 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.utils;
6
package in.shop2020.utils;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class TextMessage implements TBase<TextMessage._Fields>, java.io.Serializable, Cloneable, Comparable<TextMessage> {
23
public class TextMessage implements org.apache.thrift.TBase<TextMessage, TextMessage._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("TextMessage");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TextMessage");
28
 
25
 
29
  private static final TField NUMBER_FIELD_DESC = new TField("number", TType.STRING, (short)1);
26
  private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.STRING, (short)1);
30
  private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2);
31
  private static final TField DISPATCH_TIME_FIELD_DESC = new TField("dispatchTime", TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField DISPATCH_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("dispatchTime", org.apache.thrift.protocol.TType.I64, (short)3);
32
  private static final TField DELIVERY_TIME_FIELD_DESC = new TField("deliveryTime", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTime", org.apache.thrift.protocol.TType.I64, (short)4);
33
 
30
 
34
  private String number;
31
  private String number; // required
35
  private String message;
32
  private String message; // required
36
  private long dispatchTime;
33
  private long dispatchTime; // required
37
  private long deliveryTime;
34
  private long deliveryTime; // required
38
 
35
 
39
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  public enum _Fields implements TFieldIdEnum {
37
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41
    NUMBER((short)1, "number"),
38
    NUMBER((short)1, "number"),
42
    MESSAGE((short)2, "message"),
39
    MESSAGE((short)2, "message"),
43
    DISPATCH_TIME((short)3, "dispatchTime"),
40
    DISPATCH_TIME((short)3, "dispatchTime"),
44
    DELIVERY_TIME((short)4, "deliveryTime");
41
    DELIVERY_TIME((short)4, "deliveryTime");
45
 
42
 
46
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
47
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48
 
44
 
49
    static {
45
    static {
50
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
46
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
51
        byId.put((int)field._thriftId, field);
-
 
52
        byName.put(field.getFieldName(), field);
47
        byName.put(field.getFieldName(), field);
53
      }
48
      }
54
    }
49
    }
55
 
50
 
56
    /**
51
    /**
57
     * Find the _Fields constant that matches fieldId, or null if its not found.
52
     * Find the _Fields constant that matches fieldId, or null if its not found.
58
     */
53
     */
59
    public static _Fields findByThriftId(int fieldId) {
54
    public static _Fields findByThriftId(int fieldId) {
-
 
55
      switch(fieldId) {
-
 
56
        case 1: // NUMBER
-
 
57
          return NUMBER;
-
 
58
        case 2: // MESSAGE
-
 
59
          return MESSAGE;
-
 
60
        case 3: // DISPATCH_TIME
60
      return byId.get(fieldId);
61
          return DISPATCH_TIME;
-
 
62
        case 4: // DELIVERY_TIME
-
 
63
          return DELIVERY_TIME;
-
 
64
        default:
-
 
65
          return null;
-
 
66
      }
61
    }
67
    }
62
 
68
 
63
    /**
69
    /**
64
     * Find the _Fields constant that matches fieldId, throwing an exception
70
     * Find the _Fields constant that matches fieldId, throwing an exception
65
     * if it is not found.
71
     * if it is not found.
Line 97... Line 103...
97
  // isset id assignments
103
  // isset id assignments
98
  private static final int __DISPATCHTIME_ISSET_ID = 0;
104
  private static final int __DISPATCHTIME_ISSET_ID = 0;
99
  private static final int __DELIVERYTIME_ISSET_ID = 1;
105
  private static final int __DELIVERYTIME_ISSET_ID = 1;
100
  private BitSet __isset_bit_vector = new BitSet(2);
106
  private BitSet __isset_bit_vector = new BitSet(2);
101
 
107
 
102
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
108
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
103
    put(_Fields.NUMBER, new FieldMetaData("number", TFieldRequirementType.DEFAULT, 
-
 
104
        new FieldValueMetaData(TType.STRING)));
-
 
105
    put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-
 
106
        new FieldValueMetaData(TType.STRING)));
-
 
107
    put(_Fields.DISPATCH_TIME, new FieldMetaData("dispatchTime", TFieldRequirementType.DEFAULT, 
-
 
108
        new FieldValueMetaData(TType.I64)));
-
 
109
    put(_Fields.DELIVERY_TIME, new FieldMetaData("deliveryTime", TFieldRequirementType.DEFAULT, 
-
 
110
        new FieldValueMetaData(TType.I64)));
-
 
111
  }});
-
 
112
 
-
 
113
  static {
109
  static {
-
 
110
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111
    tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
113
    tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
115
    tmpMap.put(_Fields.DISPATCH_TIME, new org.apache.thrift.meta_data.FieldMetaData("dispatchTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
117
    tmpMap.put(_Fields.DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("deliveryTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
119
    metaDataMap = Collections.unmodifiableMap(tmpMap);
114
    FieldMetaData.addStructMetaDataMap(TextMessage.class, metaDataMap);
120
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TextMessage.class, metaDataMap);
115
  }
121
  }
116
 
122
 
117
  public TextMessage() {
123
  public TextMessage() {
118
  }
124
  }
119
 
125
 
Line 150... Line 156...
150
 
156
 
151
  public TextMessage deepCopy() {
157
  public TextMessage deepCopy() {
152
    return new TextMessage(this);
158
    return new TextMessage(this);
153
  }
159
  }
154
 
160
 
155
  @Deprecated
161
  @Override
156
  public TextMessage clone() {
162
  public void clear() {
-
 
163
    this.number = null;
-
 
164
    this.message = null;
-
 
165
    setDispatchTimeIsSet(false);
-
 
166
    this.dispatchTime = 0;
157
    return new TextMessage(this);
167
    setDeliveryTimeIsSet(false);
-
 
168
    this.deliveryTime = 0;
158
  }
169
  }
159
 
170
 
160
  public String getNumber() {
171
  public String getNumber() {
161
    return this.number;
172
    return this.number;
162
  }
173
  }
163
 
174
 
164
  public TextMessage setNumber(String number) {
175
  public void setNumber(String number) {
165
    this.number = number;
176
    this.number = number;
166
    return this;
-
 
167
  }
177
  }
168
 
178
 
169
  public void unsetNumber() {
179
  public void unsetNumber() {
170
    this.number = null;
180
    this.number = null;
171
  }
181
  }
172
 
182
 
173
  /** Returns true if field number is set (has been asigned a value) and false otherwise */
183
  /** Returns true if field number is set (has been assigned a value) and false otherwise */
174
  public boolean isSetNumber() {
184
  public boolean isSetNumber() {
175
    return this.number != null;
185
    return this.number != null;
176
  }
186
  }
177
 
187
 
178
  public void setNumberIsSet(boolean value) {
188
  public void setNumberIsSet(boolean value) {
Line 183... Line 193...
183
 
193
 
184
  public String getMessage() {
194
  public String getMessage() {
185
    return this.message;
195
    return this.message;
186
  }
196
  }
187
 
197
 
188
  public TextMessage setMessage(String message) {
198
  public void setMessage(String message) {
189
    this.message = message;
199
    this.message = message;
190
    return this;
-
 
191
  }
200
  }
192
 
201
 
193
  public void unsetMessage() {
202
  public void unsetMessage() {
194
    this.message = null;
203
    this.message = null;
195
  }
204
  }
196
 
205
 
197
  /** Returns true if field message is set (has been asigned a value) and false otherwise */
206
  /** Returns true if field message is set (has been assigned a value) and false otherwise */
198
  public boolean isSetMessage() {
207
  public boolean isSetMessage() {
199
    return this.message != null;
208
    return this.message != null;
200
  }
209
  }
201
 
210
 
202
  public void setMessageIsSet(boolean value) {
211
  public void setMessageIsSet(boolean value) {
Line 207... Line 216...
207
 
216
 
208
  public long getDispatchTime() {
217
  public long getDispatchTime() {
209
    return this.dispatchTime;
218
    return this.dispatchTime;
210
  }
219
  }
211
 
220
 
212
  public TextMessage setDispatchTime(long dispatchTime) {
221
  public void setDispatchTime(long dispatchTime) {
213
    this.dispatchTime = dispatchTime;
222
    this.dispatchTime = dispatchTime;
214
    setDispatchTimeIsSet(true);
223
    setDispatchTimeIsSet(true);
215
    return this;
-
 
216
  }
224
  }
217
 
225
 
218
  public void unsetDispatchTime() {
226
  public void unsetDispatchTime() {
219
    __isset_bit_vector.clear(__DISPATCHTIME_ISSET_ID);
227
    __isset_bit_vector.clear(__DISPATCHTIME_ISSET_ID);
220
  }
228
  }
221
 
229
 
222
  /** Returns true if field dispatchTime is set (has been asigned a value) and false otherwise */
230
  /** Returns true if field dispatchTime is set (has been assigned a value) and false otherwise */
223
  public boolean isSetDispatchTime() {
231
  public boolean isSetDispatchTime() {
224
    return __isset_bit_vector.get(__DISPATCHTIME_ISSET_ID);
232
    return __isset_bit_vector.get(__DISPATCHTIME_ISSET_ID);
225
  }
233
  }
226
 
234
 
227
  public void setDispatchTimeIsSet(boolean value) {
235
  public void setDispatchTimeIsSet(boolean value) {
Line 230... Line 238...
230
 
238
 
231
  public long getDeliveryTime() {
239
  public long getDeliveryTime() {
232
    return this.deliveryTime;
240
    return this.deliveryTime;
233
  }
241
  }
234
 
242
 
235
  public TextMessage setDeliveryTime(long deliveryTime) {
243
  public void setDeliveryTime(long deliveryTime) {
236
    this.deliveryTime = deliveryTime;
244
    this.deliveryTime = deliveryTime;
237
    setDeliveryTimeIsSet(true);
245
    setDeliveryTimeIsSet(true);
238
    return this;
-
 
239
  }
246
  }
240
 
247
 
241
  public void unsetDeliveryTime() {
248
  public void unsetDeliveryTime() {
242
    __isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
249
    __isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
243
  }
250
  }
244
 
251
 
245
  /** Returns true if field deliveryTime is set (has been asigned a value) and false otherwise */
252
  /** Returns true if field deliveryTime is set (has been assigned a value) and false otherwise */
246
  public boolean isSetDeliveryTime() {
253
  public boolean isSetDeliveryTime() {
247
    return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
254
    return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
248
  }
255
  }
249
 
256
 
250
  public void setDeliveryTimeIsSet(boolean value) {
257
  public void setDeliveryTimeIsSet(boolean value) {
Line 286... Line 293...
286
      break;
293
      break;
287
 
294
 
288
    }
295
    }
289
  }
296
  }
290
 
297
 
291
  public void setFieldValue(int fieldID, Object value) {
-
 
292
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
293
  }
-
 
294
 
-
 
295
  public Object getFieldValue(_Fields field) {
298
  public Object getFieldValue(_Fields field) {
296
    switch (field) {
299
    switch (field) {
297
    case NUMBER:
300
    case NUMBER:
298
      return getNumber();
301
      return getNumber();
299
 
302
 
300
    case MESSAGE:
303
    case MESSAGE:
301
      return getMessage();
304
      return getMessage();
302
 
305
 
303
    case DISPATCH_TIME:
306
    case DISPATCH_TIME:
304
      return new Long(getDispatchTime());
307
      return Long.valueOf(getDispatchTime());
305
 
308
 
306
    case DELIVERY_TIME:
309
    case DELIVERY_TIME:
307
      return new Long(getDeliveryTime());
310
      return Long.valueOf(getDeliveryTime());
308
 
311
 
309
    }
312
    }
310
    throw new IllegalStateException();
313
    throw new IllegalStateException();
311
  }
314
  }
312
 
315
 
313
  public Object getFieldValue(int fieldId) {
-
 
314
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
315
  }
-
 
316
 
-
 
317
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
316
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
318
  public boolean isSet(_Fields field) {
317
  public boolean isSet(_Fields field) {
-
 
318
    if (field == null) {
-
 
319
      throw new IllegalArgumentException();
-
 
320
    }
-
 
321
 
319
    switch (field) {
322
    switch (field) {
320
    case NUMBER:
323
    case NUMBER:
321
      return isSetNumber();
324
      return isSetNumber();
322
    case MESSAGE:
325
    case MESSAGE:
323
      return isSetMessage();
326
      return isSetMessage();
Line 327... Line 330...
327
      return isSetDeliveryTime();
330
      return isSetDeliveryTime();
328
    }
331
    }
329
    throw new IllegalStateException();
332
    throw new IllegalStateException();
330
  }
333
  }
331
 
334
 
332
  public boolean isSet(int fieldID) {
-
 
333
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
334
  }
-
 
335
 
-
 
336
  @Override
335
  @Override
337
  public boolean equals(Object that) {
336
  public boolean equals(Object that) {
338
    if (that == null)
337
    if (that == null)
339
      return false;
338
      return false;
340
    if (that instanceof TextMessage)
339
    if (that instanceof TextMessage)
Line 396... Line 395...
396
    }
395
    }
397
 
396
 
398
    int lastComparison = 0;
397
    int lastComparison = 0;
399
    TextMessage typedOther = (TextMessage)other;
398
    TextMessage typedOther = (TextMessage)other;
400
 
399
 
401
    lastComparison = Boolean.valueOf(isSetNumber()).compareTo(isSetNumber());
400
    lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber());
402
    if (lastComparison != 0) {
401
    if (lastComparison != 0) {
403
      return lastComparison;
402
      return lastComparison;
404
    }
403
    }
-
 
404
    if (isSetNumber()) {
405
    lastComparison = TBaseHelper.compareTo(number, typedOther.number);
405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number);
406
    if (lastComparison != 0) {
406
      if (lastComparison != 0) {
407
      return lastComparison;
407
        return lastComparison;
-
 
408
      }
408
    }
409
    }
409
    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());
410
    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
410
    if (lastComparison != 0) {
411
    if (lastComparison != 0) {
411
      return lastComparison;
412
      return lastComparison;
412
    }
413
    }
-
 
414
    if (isSetMessage()) {
413
    lastComparison = TBaseHelper.compareTo(message, typedOther.message);
415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
414
    if (lastComparison != 0) {
416
      if (lastComparison != 0) {
415
      return lastComparison;
417
        return lastComparison;
-
 
418
      }
416
    }
419
    }
417
    lastComparison = Boolean.valueOf(isSetDispatchTime()).compareTo(isSetDispatchTime());
420
    lastComparison = Boolean.valueOf(isSetDispatchTime()).compareTo(typedOther.isSetDispatchTime());
418
    if (lastComparison != 0) {
421
    if (lastComparison != 0) {
419
      return lastComparison;
422
      return lastComparison;
420
    }
423
    }
-
 
424
    if (isSetDispatchTime()) {
421
    lastComparison = TBaseHelper.compareTo(dispatchTime, typedOther.dispatchTime);
425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dispatchTime, typedOther.dispatchTime);
422
    if (lastComparison != 0) {
426
      if (lastComparison != 0) {
423
      return lastComparison;
427
        return lastComparison;
-
 
428
      }
424
    }
429
    }
425
    lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(isSetDeliveryTime());
430
    lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(typedOther.isSetDeliveryTime());
426
    if (lastComparison != 0) {
431
    if (lastComparison != 0) {
427
      return lastComparison;
432
      return lastComparison;
428
    }
433
    }
-
 
434
    if (isSetDeliveryTime()) {
429
    lastComparison = TBaseHelper.compareTo(deliveryTime, typedOther.deliveryTime);
435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTime, typedOther.deliveryTime);
430
    if (lastComparison != 0) {
436
      if (lastComparison != 0) {
431
      return lastComparison;
437
        return lastComparison;
-
 
438
      }
432
    }
439
    }
433
    return 0;
440
    return 0;
434
  }
441
  }
435
 
442
 
-
 
443
  public _Fields fieldForId(int fieldId) {
-
 
444
    return _Fields.findByThriftId(fieldId);
-
 
445
  }
-
 
446
 
436
  public void read(TProtocol iprot) throws TException {
447
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
437
    TField field;
448
    org.apache.thrift.protocol.TField field;
438
    iprot.readStructBegin();
449
    iprot.readStructBegin();
439
    while (true)
450
    while (true)
440
    {
451
    {
441
      field = iprot.readFieldBegin();
452
      field = iprot.readFieldBegin();
442
      if (field.type == TType.STOP) { 
453
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
443
        break;
454
        break;
444
      }
455
      }
445
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
446
      if (fieldId == null) {
-
 
447
        TProtocolUtil.skip(iprot, field.type);
-
 
448
      } else {
-
 
449
        switch (fieldId) {
456
      switch (field.id) {
450
          case NUMBER:
457
        case 1: // NUMBER
451
            if (field.type == TType.STRING) {
458
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
452
              this.number = iprot.readString();
459
            this.number = iprot.readString();
453
            } else { 
460
          } else { 
454
              TProtocolUtil.skip(iprot, field.type);
461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
455
            }
462
          }
456
            break;
463
          break;
457
          case MESSAGE:
464
        case 2: // MESSAGE
458
            if (field.type == TType.STRING) {
465
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
459
              this.message = iprot.readString();
466
            this.message = iprot.readString();
460
            } else { 
467
          } else { 
461
              TProtocolUtil.skip(iprot, field.type);
468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
462
            }
469
          }
463
            break;
470
          break;
464
          case DISPATCH_TIME:
471
        case 3: // DISPATCH_TIME
465
            if (field.type == TType.I64) {
472
          if (field.type == org.apache.thrift.protocol.TType.I64) {
466
              this.dispatchTime = iprot.readI64();
473
            this.dispatchTime = iprot.readI64();
467
              setDispatchTimeIsSet(true);
474
            setDispatchTimeIsSet(true);
468
            } else { 
475
          } else { 
469
              TProtocolUtil.skip(iprot, field.type);
476
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
470
            }
477
          }
471
            break;
478
          break;
472
          case DELIVERY_TIME:
479
        case 4: // DELIVERY_TIME
473
            if (field.type == TType.I64) {
480
          if (field.type == org.apache.thrift.protocol.TType.I64) {
474
              this.deliveryTime = iprot.readI64();
481
            this.deliveryTime = iprot.readI64();
475
              setDeliveryTimeIsSet(true);
482
            setDeliveryTimeIsSet(true);
476
            } else { 
483
          } else { 
477
              TProtocolUtil.skip(iprot, field.type);
484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
478
            }
485
          }
479
            break;
486
          break;
480
        }
487
        default:
481
        iprot.readFieldEnd();
488
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
482
      }
489
      }
-
 
490
      iprot.readFieldEnd();
483
    }
491
    }
484
    iprot.readStructEnd();
492
    iprot.readStructEnd();
485
    validate();
493
    validate();
486
  }
494
  }
487
 
495
 
488
  public void write(TProtocol oprot) throws TException {
496
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
489
    validate();
497
    validate();
490
 
498
 
491
    oprot.writeStructBegin(STRUCT_DESC);
499
    oprot.writeStructBegin(STRUCT_DESC);
492
    if (this.number != null) {
500
    if (this.number != null) {
493
      oprot.writeFieldBegin(NUMBER_FIELD_DESC);
501
      oprot.writeFieldBegin(NUMBER_FIELD_DESC);
Line 539... Line 547...
539
    first = false;
547
    first = false;
540
    sb.append(")");
548
    sb.append(")");
541
    return sb.toString();
549
    return sb.toString();
542
  }
550
  }
543
 
551
 
544
  public void validate() throws TException {
552
  public void validate() throws org.apache.thrift.TException {
545
    // check for required fields
553
    // check for required fields
546
  }
554
  }
547
 
555
 
-
 
556
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
557
    try {
-
 
558
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
559
    } catch (org.apache.thrift.TException te) {
-
 
560
      throw new java.io.IOException(te);
-
 
561
    }
-
 
562
  }
-
 
563
 
-
 
564
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
565
    try {
-
 
566
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
567
      __isset_bit_vector = new BitSet(1);
-
 
568
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
569
    } catch (org.apache.thrift.TException te) {
-
 
570
      throw new java.io.IOException(te);
-
 
571
    }
-
 
572
  }
-
 
573
 
548
}
574
}
549
 
575