Subversion Repositories SmartDukaan

Rev

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

Rev 2717 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.model.v1.user;
6
package in.shop2020.model.v1.user;
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 UserNote implements TBase<UserNote._Fields>, java.io.Serializable, Cloneable, Comparable<UserNote> {
23
public class UserNote implements org.apache.thrift.TBase<UserNote, UserNote._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("UserNote");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserNote");
28
 
25
 
29
  private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField ENTITY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("entity_id", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final TField SLIDE_FIELD_DESC = new TField("slide", TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField SLIDE_FIELD_DESC = new org.apache.thrift.protocol.TField("slide", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final TField NOTE_FIELD_DESC = new TField("note", TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField NOTE_FIELD_DESC = new org.apache.thrift.protocol.TField("note", org.apache.thrift.protocol.TType.STRING, (short)4);
33
 
30
 
34
  private long user_id;
31
  private long user_id; // required
35
  private long entity_id;
32
  private long entity_id; // required
36
  private String slide;
33
  private String slide; // required
37
  private String note;
34
  private String note; // 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
    USER_ID((short)1, "user_id"),
38
    USER_ID((short)1, "user_id"),
42
    ENTITY_ID((short)2, "entity_id"),
39
    ENTITY_ID((short)2, "entity_id"),
43
    SLIDE((short)3, "slide"),
40
    SLIDE((short)3, "slide"),
44
    NOTE((short)4, "note");
41
    NOTE((short)4, "note");
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) {
60
      return byId.get(fieldId);
55
      switch(fieldId) {
-
 
56
        case 1: // USER_ID
-
 
57
          return USER_ID;
-
 
58
        case 2: // ENTITY_ID
-
 
59
          return ENTITY_ID;
-
 
60
        case 3: // SLIDE
-
 
61
          return SLIDE;
-
 
62
        case 4: // NOTE
-
 
63
          return NOTE;
-
 
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 __USER_ID_ISSET_ID = 0;
104
  private static final int __USER_ID_ISSET_ID = 0;
99
  private static final int __ENTITY_ID_ISSET_ID = 1;
105
  private static final int __ENTITY_ID_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.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
-
 
104
        new FieldValueMetaData(TType.I64)));
-
 
105
    put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
-
 
106
        new FieldValueMetaData(TType.I64)));
-
 
107
    put(_Fields.SLIDE, new FieldMetaData("slide", TFieldRequirementType.DEFAULT, 
-
 
108
        new FieldValueMetaData(TType.STRING)));
-
 
109
    put(_Fields.NOTE, new FieldMetaData("note", TFieldRequirementType.DEFAULT, 
-
 
110
        new FieldValueMetaData(TType.STRING)));
-
 
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.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113
    tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
115
    tmpMap.put(_Fields.SLIDE, new org.apache.thrift.meta_data.FieldMetaData("slide", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
117
    tmpMap.put(_Fields.NOTE, new org.apache.thrift.meta_data.FieldMetaData("note", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
119
    metaDataMap = Collections.unmodifiableMap(tmpMap);
114
    FieldMetaData.addStructMetaDataMap(UserNote.class, metaDataMap);
120
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserNote.class, metaDataMap);
115
  }
121
  }
116
 
122
 
117
  public UserNote() {
123
  public UserNote() {
118
  }
124
  }
119
 
125
 
Line 150... Line 156...
150
 
156
 
151
  public UserNote deepCopy() {
157
  public UserNote deepCopy() {
152
    return new UserNote(this);
158
    return new UserNote(this);
153
  }
159
  }
154
 
160
 
155
  @Deprecated
161
  @Override
156
  public UserNote clone() {
162
  public void clear() {
-
 
163
    setUser_idIsSet(false);
-
 
164
    this.user_id = 0;
157
    return new UserNote(this);
165
    setEntity_idIsSet(false);
-
 
166
    this.entity_id = 0;
-
 
167
    this.slide = null;
-
 
168
    this.note = null;
158
  }
169
  }
159
 
170
 
160
  public long getUser_id() {
171
  public long getUser_id() {
161
    return this.user_id;
172
    return this.user_id;
162
  }
173
  }
163
 
174
 
164
  public UserNote setUser_id(long user_id) {
175
  public void setUser_id(long user_id) {
165
    this.user_id = user_id;
176
    this.user_id = user_id;
166
    setUser_idIsSet(true);
177
    setUser_idIsSet(true);
167
    return this;
-
 
168
  }
178
  }
169
 
179
 
170
  public void unsetUser_id() {
180
  public void unsetUser_id() {
171
    __isset_bit_vector.clear(__USER_ID_ISSET_ID);
181
    __isset_bit_vector.clear(__USER_ID_ISSET_ID);
172
  }
182
  }
173
 
183
 
174
  /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
184
  /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
175
  public boolean isSetUser_id() {
185
  public boolean isSetUser_id() {
176
    return __isset_bit_vector.get(__USER_ID_ISSET_ID);
186
    return __isset_bit_vector.get(__USER_ID_ISSET_ID);
177
  }
187
  }
178
 
188
 
179
  public void setUser_idIsSet(boolean value) {
189
  public void setUser_idIsSet(boolean value) {
Line 182... Line 192...
182
 
192
 
183
  public long getEntity_id() {
193
  public long getEntity_id() {
184
    return this.entity_id;
194
    return this.entity_id;
185
  }
195
  }
186
 
196
 
187
  public UserNote setEntity_id(long entity_id) {
197
  public void setEntity_id(long entity_id) {
188
    this.entity_id = entity_id;
198
    this.entity_id = entity_id;
189
    setEntity_idIsSet(true);
199
    setEntity_idIsSet(true);
190
    return this;
-
 
191
  }
200
  }
192
 
201
 
193
  public void unsetEntity_id() {
202
  public void unsetEntity_id() {
194
    __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
203
    __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
195
  }
204
  }
196
 
205
 
197
  /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
206
  /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
198
  public boolean isSetEntity_id() {
207
  public boolean isSetEntity_id() {
199
    return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
208
    return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
200
  }
209
  }
201
 
210
 
202
  public void setEntity_idIsSet(boolean value) {
211
  public void setEntity_idIsSet(boolean value) {
Line 205... Line 214...
205
 
214
 
206
  public String getSlide() {
215
  public String getSlide() {
207
    return this.slide;
216
    return this.slide;
208
  }
217
  }
209
 
218
 
210
  public UserNote setSlide(String slide) {
219
  public void setSlide(String slide) {
211
    this.slide = slide;
220
    this.slide = slide;
212
    return this;
-
 
213
  }
221
  }
214
 
222
 
215
  public void unsetSlide() {
223
  public void unsetSlide() {
216
    this.slide = null;
224
    this.slide = null;
217
  }
225
  }
218
 
226
 
219
  /** Returns true if field slide is set (has been asigned a value) and false otherwise */
227
  /** Returns true if field slide is set (has been assigned a value) and false otherwise */
220
  public boolean isSetSlide() {
228
  public boolean isSetSlide() {
221
    return this.slide != null;
229
    return this.slide != null;
222
  }
230
  }
223
 
231
 
224
  public void setSlideIsSet(boolean value) {
232
  public void setSlideIsSet(boolean value) {
Line 229... Line 237...
229
 
237
 
230
  public String getNote() {
238
  public String getNote() {
231
    return this.note;
239
    return this.note;
232
  }
240
  }
233
 
241
 
234
  public UserNote setNote(String note) {
242
  public void setNote(String note) {
235
    this.note = note;
243
    this.note = note;
236
    return this;
-
 
237
  }
244
  }
238
 
245
 
239
  public void unsetNote() {
246
  public void unsetNote() {
240
    this.note = null;
247
    this.note = null;
241
  }
248
  }
242
 
249
 
243
  /** Returns true if field note is set (has been asigned a value) and false otherwise */
250
  /** Returns true if field note is set (has been assigned a value) and false otherwise */
244
  public boolean isSetNote() {
251
  public boolean isSetNote() {
245
    return this.note != null;
252
    return this.note != null;
246
  }
253
  }
247
 
254
 
248
  public void setNoteIsSet(boolean value) {
255
  public void setNoteIsSet(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 USER_ID:
300
    case USER_ID:
298
      return new Long(getUser_id());
301
      return Long.valueOf(getUser_id());
299
 
302
 
300
    case ENTITY_ID:
303
    case ENTITY_ID:
301
      return new Long(getEntity_id());
304
      return Long.valueOf(getEntity_id());
302
 
305
 
303
    case SLIDE:
306
    case SLIDE:
304
      return getSlide();
307
      return getSlide();
305
 
308
 
306
    case NOTE:
309
    case NOTE:
Line 308... Line 311...
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 USER_ID:
323
    case USER_ID:
321
      return isSetUser_id();
324
      return isSetUser_id();
322
    case ENTITY_ID:
325
    case ENTITY_ID:
323
      return isSetEntity_id();
326
      return isSetEntity_id();
Line 327... Line 330...
327
      return isSetNote();
330
      return isSetNote();
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 UserNote)
339
    if (that instanceof UserNote)
Line 396... Line 395...
396
    }
395
    }
397
 
396
 
398
    int lastComparison = 0;
397
    int lastComparison = 0;
399
    UserNote typedOther = (UserNote)other;
398
    UserNote typedOther = (UserNote)other;
400
 
399
 
401
    lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
400
    lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
402
    if (lastComparison != 0) {
401
    if (lastComparison != 0) {
403
      return lastComparison;
402
      return lastComparison;
404
    }
403
    }
-
 
404
    if (isSetUser_id()) {
405
    lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
406
    if (lastComparison != 0) {
406
      if (lastComparison != 0) {
407
      return lastComparison;
407
        return lastComparison;
-
 
408
      }
408
    }
409
    }
409
    lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
410
    lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
410
    if (lastComparison != 0) {
411
    if (lastComparison != 0) {
411
      return lastComparison;
412
      return lastComparison;
412
    }
413
    }
-
 
414
    if (isSetEntity_id()) {
413
    lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
414
    if (lastComparison != 0) {
416
      if (lastComparison != 0) {
415
      return lastComparison;
417
        return lastComparison;
-
 
418
      }
416
    }
419
    }
417
    lastComparison = Boolean.valueOf(isSetSlide()).compareTo(isSetSlide());
420
    lastComparison = Boolean.valueOf(isSetSlide()).compareTo(typedOther.isSetSlide());
418
    if (lastComparison != 0) {
421
    if (lastComparison != 0) {
419
      return lastComparison;
422
      return lastComparison;
420
    }
423
    }
-
 
424
    if (isSetSlide()) {
421
    lastComparison = TBaseHelper.compareTo(slide, typedOther.slide);
425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slide, typedOther.slide);
422
    if (lastComparison != 0) {
426
      if (lastComparison != 0) {
423
      return lastComparison;
427
        return lastComparison;
-
 
428
      }
424
    }
429
    }
425
    lastComparison = Boolean.valueOf(isSetNote()).compareTo(isSetNote());
430
    lastComparison = Boolean.valueOf(isSetNote()).compareTo(typedOther.isSetNote());
426
    if (lastComparison != 0) {
431
    if (lastComparison != 0) {
427
      return lastComparison;
432
      return lastComparison;
428
    }
433
    }
-
 
434
    if (isSetNote()) {
429
    lastComparison = TBaseHelper.compareTo(note, typedOther.note);
435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.note, typedOther.note);
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 USER_ID:
457
        case 1: // USER_ID
451
            if (field.type == TType.I64) {
458
          if (field.type == org.apache.thrift.protocol.TType.I64) {
452
              this.user_id = iprot.readI64();
459
            this.user_id = iprot.readI64();
453
              setUser_idIsSet(true);
460
            setUser_idIsSet(true);
454
            } else { 
461
          } else { 
455
              TProtocolUtil.skip(iprot, field.type);
462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
456
            }
463
          }
457
            break;
464
          break;
458
          case ENTITY_ID:
465
        case 2: // ENTITY_ID
459
            if (field.type == TType.I64) {
466
          if (field.type == org.apache.thrift.protocol.TType.I64) {
460
              this.entity_id = iprot.readI64();
467
            this.entity_id = iprot.readI64();
461
              setEntity_idIsSet(true);
468
            setEntity_idIsSet(true);
462
            } else { 
469
          } else { 
463
              TProtocolUtil.skip(iprot, field.type);
470
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
464
            }
471
          }
465
            break;
472
          break;
466
          case SLIDE:
473
        case 3: // SLIDE
467
            if (field.type == TType.STRING) {
474
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
468
              this.slide = iprot.readString();
475
            this.slide = iprot.readString();
469
            } else { 
476
          } else { 
470
              TProtocolUtil.skip(iprot, field.type);
477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471
            }
478
          }
472
            break;
479
          break;
473
          case NOTE:
480
        case 4: // NOTE
474
            if (field.type == TType.STRING) {
481
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
475
              this.note = iprot.readString();
482
            this.note = iprot.readString();
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
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
500
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
493
    oprot.writeI64(this.user_id);
501
    oprot.writeI64(this.user_id);
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