Subversion Repositories SmartDukaan

Rev

Rev 1013 | Go to most recent revision | 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.logistics;
6
package in.shop2020.logistics;
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 AwbUpdate implements TBase<AwbUpdate._Fields>, java.io.Serializable, Cloneable, Comparable<AwbUpdate> {
23
public class AwbUpdate implements org.apache.thrift.TBase<AwbUpdate, AwbUpdate._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("AwbUpdate");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AwbUpdate");
28
 
25
 
29
  private static final TField AWB_NUMBER_FIELD_DESC = new TField("awbNumber", TType.STRING, (short)1);
26
  private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
30
  private static final TField PROVIDER_NAME_FIELD_DESC = new TField("providerName", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField PROVIDER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("providerName", org.apache.thrift.protocol.TType.STRING, (short)2);
31
  private static final TField LOCATION_FIELD_DESC = new TField("location", TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final TField ENTRY_DATE_FIELD_DESC = new TField("entryDate", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField ENTRY_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("entryDate", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", 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);
34
 
31
 
35
  private String awbNumber;
32
  private String awbNumber; // required
36
  private String providerName;
33
  private String providerName; // required
37
  private String location;
34
  private String location; // required
38
  private long entryDate;
35
  private long entryDate; // required
39
  private String description;
36
  private String description; // required
40
 
37
 
41
  /** 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. */
42
  public enum _Fields implements TFieldIdEnum {
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43
    AWB_NUMBER((short)1, "awbNumber"),
40
    AWB_NUMBER((short)1, "awbNumber"),
44
    PROVIDER_NAME((short)2, "providerName"),
41
    PROVIDER_NAME((short)2, "providerName"),
45
    LOCATION((short)3, "location"),
42
    LOCATION((short)3, "location"),
46
    ENTRY_DATE((short)4, "entryDate"),
43
    ENTRY_DATE((short)4, "entryDate"),
47
    DESCRIPTION((short)5, "description");
44
    DESCRIPTION((short)5, "description");
48
 
45
 
49
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
50
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51
 
47
 
52
    static {
48
    static {
53
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
54
        byId.put((int)field._thriftId, field);
-
 
55
        byName.put(field.getFieldName(), field);
50
        byName.put(field.getFieldName(), field);
56
      }
51
      }
57
    }
52
    }
58
 
53
 
59
    /**
54
    /**
60
     * Find the _Fields constant that matches fieldId, or null if its not found.
55
     * Find the _Fields constant that matches fieldId, or null if its not found.
61
     */
56
     */
62
    public static _Fields findByThriftId(int fieldId) {
57
    public static _Fields findByThriftId(int fieldId) {
63
      return byId.get(fieldId);
58
      switch(fieldId) {
-
 
59
        case 1: // AWB_NUMBER
-
 
60
          return AWB_NUMBER;
-
 
61
        case 2: // PROVIDER_NAME
-
 
62
          return PROVIDER_NAME;
-
 
63
        case 3: // LOCATION
-
 
64
          return LOCATION;
-
 
65
        case 4: // ENTRY_DATE
-
 
66
          return ENTRY_DATE;
-
 
67
        case 5: // DESCRIPTION
-
 
68
          return DESCRIPTION;
-
 
69
        default:
-
 
70
          return null;
-
 
71
      }
64
    }
72
    }
65
 
73
 
66
    /**
74
    /**
67
     * Find the _Fields constant that matches fieldId, throwing an exception
75
     * Find the _Fields constant that matches fieldId, throwing an exception
68
     * if it is not found.
76
     * if it is not found.
Line 99... Line 107...
99
 
107
 
100
  // isset id assignments
108
  // isset id assignments
101
  private static final int __ENTRYDATE_ISSET_ID = 0;
109
  private static final int __ENTRYDATE_ISSET_ID = 0;
102
  private BitSet __isset_bit_vector = new BitSet(1);
110
  private BitSet __isset_bit_vector = new BitSet(1);
103
 
111
 
104
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
112
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
105
    put(_Fields.AWB_NUMBER, new FieldMetaData("awbNumber", TFieldRequirementType.DEFAULT, 
-
 
106
        new FieldValueMetaData(TType.STRING)));
-
 
107
    put(_Fields.PROVIDER_NAME, new FieldMetaData("providerName", TFieldRequirementType.DEFAULT, 
-
 
108
        new FieldValueMetaData(TType.STRING)));
-
 
109
    put(_Fields.LOCATION, new FieldMetaData("location", TFieldRequirementType.DEFAULT, 
-
 
110
        new FieldValueMetaData(TType.STRING)));
-
 
111
    put(_Fields.ENTRY_DATE, new FieldMetaData("entryDate", TFieldRequirementType.DEFAULT, 
-
 
112
        new FieldValueMetaData(TType.I64)));
-
 
113
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-
 
114
        new FieldValueMetaData(TType.STRING)));
-
 
115
  }});
-
 
116
 
-
 
117
  static {
113
  static {
-
 
114
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
115
    tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
117
    tmpMap.put(_Fields.PROVIDER_NAME, new org.apache.thrift.meta_data.FieldMetaData("providerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
119
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
121
    tmpMap.put(_Fields.ENTRY_DATE, new org.apache.thrift.meta_data.FieldMetaData("entryDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
123
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
125
    metaDataMap = Collections.unmodifiableMap(tmpMap);
118
    FieldMetaData.addStructMetaDataMap(AwbUpdate.class, metaDataMap);
126
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AwbUpdate.class, metaDataMap);
119
  }
127
  }
120
 
128
 
121
  public AwbUpdate() {
129
  public AwbUpdate() {
122
  }
130
  }
123
 
131
 
Line 160... Line 168...
160
 
168
 
161
  public AwbUpdate deepCopy() {
169
  public AwbUpdate deepCopy() {
162
    return new AwbUpdate(this);
170
    return new AwbUpdate(this);
163
  }
171
  }
164
 
172
 
165
  @Deprecated
173
  @Override
166
  public AwbUpdate clone() {
174
  public void clear() {
-
 
175
    this.awbNumber = null;
-
 
176
    this.providerName = null;
-
 
177
    this.location = null;
167
    return new AwbUpdate(this);
178
    setEntryDateIsSet(false);
-
 
179
    this.entryDate = 0;
-
 
180
    this.description = null;
168
  }
181
  }
169
 
182
 
170
  public String getAwbNumber() {
183
  public String getAwbNumber() {
171
    return this.awbNumber;
184
    return this.awbNumber;
172
  }
185
  }
173
 
186
 
174
  public AwbUpdate setAwbNumber(String awbNumber) {
187
  public void setAwbNumber(String awbNumber) {
175
    this.awbNumber = awbNumber;
188
    this.awbNumber = awbNumber;
176
    return this;
-
 
177
  }
189
  }
178
 
190
 
179
  public void unsetAwbNumber() {
191
  public void unsetAwbNumber() {
180
    this.awbNumber = null;
192
    this.awbNumber = null;
181
  }
193
  }
182
 
194
 
183
  /** Returns true if field awbNumber is set (has been asigned a value) and false otherwise */
195
  /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
184
  public boolean isSetAwbNumber() {
196
  public boolean isSetAwbNumber() {
185
    return this.awbNumber != null;
197
    return this.awbNumber != null;
186
  }
198
  }
187
 
199
 
188
  public void setAwbNumberIsSet(boolean value) {
200
  public void setAwbNumberIsSet(boolean value) {
Line 193... Line 205...
193
 
205
 
194
  public String getProviderName() {
206
  public String getProviderName() {
195
    return this.providerName;
207
    return this.providerName;
196
  }
208
  }
197
 
209
 
198
  public AwbUpdate setProviderName(String providerName) {
210
  public void setProviderName(String providerName) {
199
    this.providerName = providerName;
211
    this.providerName = providerName;
200
    return this;
-
 
201
  }
212
  }
202
 
213
 
203
  public void unsetProviderName() {
214
  public void unsetProviderName() {
204
    this.providerName = null;
215
    this.providerName = null;
205
  }
216
  }
206
 
217
 
207
  /** Returns true if field providerName is set (has been asigned a value) and false otherwise */
218
  /** Returns true if field providerName is set (has been assigned a value) and false otherwise */
208
  public boolean isSetProviderName() {
219
  public boolean isSetProviderName() {
209
    return this.providerName != null;
220
    return this.providerName != null;
210
  }
221
  }
211
 
222
 
212
  public void setProviderNameIsSet(boolean value) {
223
  public void setProviderNameIsSet(boolean value) {
Line 217... Line 228...
217
 
228
 
218
  public String getLocation() {
229
  public String getLocation() {
219
    return this.location;
230
    return this.location;
220
  }
231
  }
221
 
232
 
222
  public AwbUpdate setLocation(String location) {
233
  public void setLocation(String location) {
223
    this.location = location;
234
    this.location = location;
224
    return this;
-
 
225
  }
235
  }
226
 
236
 
227
  public void unsetLocation() {
237
  public void unsetLocation() {
228
    this.location = null;
238
    this.location = null;
229
  }
239
  }
230
 
240
 
231
  /** Returns true if field location is set (has been asigned a value) and false otherwise */
241
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
232
  public boolean isSetLocation() {
242
  public boolean isSetLocation() {
233
    return this.location != null;
243
    return this.location != null;
234
  }
244
  }
235
 
245
 
236
  public void setLocationIsSet(boolean value) {
246
  public void setLocationIsSet(boolean value) {
Line 241... Line 251...
241
 
251
 
242
  public long getEntryDate() {
252
  public long getEntryDate() {
243
    return this.entryDate;
253
    return this.entryDate;
244
  }
254
  }
245
 
255
 
246
  public AwbUpdate setEntryDate(long entryDate) {
256
  public void setEntryDate(long entryDate) {
247
    this.entryDate = entryDate;
257
    this.entryDate = entryDate;
248
    setEntryDateIsSet(true);
258
    setEntryDateIsSet(true);
249
    return this;
-
 
250
  }
259
  }
251
 
260
 
252
  public void unsetEntryDate() {
261
  public void unsetEntryDate() {
253
    __isset_bit_vector.clear(__ENTRYDATE_ISSET_ID);
262
    __isset_bit_vector.clear(__ENTRYDATE_ISSET_ID);
254
  }
263
  }
255
 
264
 
256
  /** Returns true if field entryDate is set (has been asigned a value) and false otherwise */
265
  /** Returns true if field entryDate is set (has been assigned a value) and false otherwise */
257
  public boolean isSetEntryDate() {
266
  public boolean isSetEntryDate() {
258
    return __isset_bit_vector.get(__ENTRYDATE_ISSET_ID);
267
    return __isset_bit_vector.get(__ENTRYDATE_ISSET_ID);
259
  }
268
  }
260
 
269
 
261
  public void setEntryDateIsSet(boolean value) {
270
  public void setEntryDateIsSet(boolean value) {
Line 264... Line 273...
264
 
273
 
265
  public String getDescription() {
274
  public String getDescription() {
266
    return this.description;
275
    return this.description;
267
  }
276
  }
268
 
277
 
269
  public AwbUpdate setDescription(String description) {
278
  public void setDescription(String description) {
270
    this.description = description;
279
    this.description = description;
271
    return this;
-
 
272
  }
280
  }
273
 
281
 
274
  public void unsetDescription() {
282
  public void unsetDescription() {
275
    this.description = null;
283
    this.description = null;
276
  }
284
  }
277
 
285
 
278
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
286
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
279
  public boolean isSetDescription() {
287
  public boolean isSetDescription() {
280
    return this.description != null;
288
    return this.description != null;
281
  }
289
  }
282
 
290
 
283
  public void setDescriptionIsSet(boolean value) {
291
  public void setDescriptionIsSet(boolean value) {
Line 329... Line 337...
329
      break;
337
      break;
330
 
338
 
331
    }
339
    }
332
  }
340
  }
333
 
341
 
334
  public void setFieldValue(int fieldID, Object value) {
-
 
335
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
336
  }
-
 
337
 
-
 
338
  public Object getFieldValue(_Fields field) {
342
  public Object getFieldValue(_Fields field) {
339
    switch (field) {
343
    switch (field) {
340
    case AWB_NUMBER:
344
    case AWB_NUMBER:
341
      return getAwbNumber();
345
      return getAwbNumber();
342
 
346
 
Line 345... Line 349...
345
 
349
 
346
    case LOCATION:
350
    case LOCATION:
347
      return getLocation();
351
      return getLocation();
348
 
352
 
349
    case ENTRY_DATE:
353
    case ENTRY_DATE:
350
      return new Long(getEntryDate());
354
      return Long.valueOf(getEntryDate());
351
 
355
 
352
    case DESCRIPTION:
356
    case DESCRIPTION:
353
      return getDescription();
357
      return getDescription();
354
 
358
 
355
    }
359
    }
356
    throw new IllegalStateException();
360
    throw new IllegalStateException();
357
  }
361
  }
358
 
362
 
359
  public Object getFieldValue(int fieldId) {
-
 
360
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
361
  }
-
 
362
 
-
 
363
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
363
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
364
  public boolean isSet(_Fields field) {
364
  public boolean isSet(_Fields field) {
-
 
365
    if (field == null) {
-
 
366
      throw new IllegalArgumentException();
-
 
367
    }
-
 
368
 
365
    switch (field) {
369
    switch (field) {
366
    case AWB_NUMBER:
370
    case AWB_NUMBER:
367
      return isSetAwbNumber();
371
      return isSetAwbNumber();
368
    case PROVIDER_NAME:
372
    case PROVIDER_NAME:
369
      return isSetProviderName();
373
      return isSetProviderName();
Line 375... Line 379...
375
      return isSetDescription();
379
      return isSetDescription();
376
    }
380
    }
377
    throw new IllegalStateException();
381
    throw new IllegalStateException();
378
  }
382
  }
379
 
383
 
380
  public boolean isSet(int fieldID) {
-
 
381
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
382
  }
-
 
383
 
-
 
384
  @Override
384
  @Override
385
  public boolean equals(Object that) {
385
  public boolean equals(Object that) {
386
    if (that == null)
386
    if (that == null)
387
      return false;
387
      return false;
388
    if (that instanceof AwbUpdate)
388
    if (that instanceof AwbUpdate)
Line 453... Line 453...
453
    }
453
    }
454
 
454
 
455
    int lastComparison = 0;
455
    int lastComparison = 0;
456
    AwbUpdate typedOther = (AwbUpdate)other;
456
    AwbUpdate typedOther = (AwbUpdate)other;
457
 
457
 
458
    lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(isSetAwbNumber());
458
    lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
459
    if (lastComparison != 0) {
459
    if (lastComparison != 0) {
460
      return lastComparison;
460
      return lastComparison;
461
    }
461
    }
-
 
462
    if (isSetAwbNumber()) {
462
    lastComparison = TBaseHelper.compareTo(awbNumber, typedOther.awbNumber);
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
463
    if (lastComparison != 0) {
464
      if (lastComparison != 0) {
464
      return lastComparison;
465
        return lastComparison;
-
 
466
      }
465
    }
467
    }
466
    lastComparison = Boolean.valueOf(isSetProviderName()).compareTo(isSetProviderName());
468
    lastComparison = Boolean.valueOf(isSetProviderName()).compareTo(typedOther.isSetProviderName());
467
    if (lastComparison != 0) {
469
    if (lastComparison != 0) {
468
      return lastComparison;
470
      return lastComparison;
469
    }
471
    }
-
 
472
    if (isSetProviderName()) {
470
    lastComparison = TBaseHelper.compareTo(providerName, typedOther.providerName);
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerName, typedOther.providerName);
471
    if (lastComparison != 0) {
474
      if (lastComparison != 0) {
472
      return lastComparison;
475
        return lastComparison;
-
 
476
      }
473
    }
477
    }
474
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(isSetLocation());
478
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
475
    if (lastComparison != 0) {
479
    if (lastComparison != 0) {
476
      return lastComparison;
480
      return lastComparison;
477
    }
481
    }
-
 
482
    if (isSetLocation()) {
478
    lastComparison = TBaseHelper.compareTo(location, typedOther.location);
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
479
    if (lastComparison != 0) {
484
      if (lastComparison != 0) {
480
      return lastComparison;
485
        return lastComparison;
-
 
486
      }
481
    }
487
    }
482
    lastComparison = Boolean.valueOf(isSetEntryDate()).compareTo(isSetEntryDate());
488
    lastComparison = Boolean.valueOf(isSetEntryDate()).compareTo(typedOther.isSetEntryDate());
483
    if (lastComparison != 0) {
489
    if (lastComparison != 0) {
484
      return lastComparison;
490
      return lastComparison;
485
    }
491
    }
-
 
492
    if (isSetEntryDate()) {
486
    lastComparison = TBaseHelper.compareTo(entryDate, typedOther.entryDate);
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entryDate, typedOther.entryDate);
487
    if (lastComparison != 0) {
494
      if (lastComparison != 0) {
488
      return lastComparison;
495
        return lastComparison;
-
 
496
      }
489
    }
497
    }
490
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
498
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
491
    if (lastComparison != 0) {
499
    if (lastComparison != 0) {
492
      return lastComparison;
500
      return lastComparison;
493
    }
501
    }
-
 
502
    if (isSetDescription()) {
494
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
495
    if (lastComparison != 0) {
504
      if (lastComparison != 0) {
496
      return lastComparison;
505
        return lastComparison;
-
 
506
      }
497
    }
507
    }
498
    return 0;
508
    return 0;
499
  }
509
  }
500
 
510
 
-
 
511
  public _Fields fieldForId(int fieldId) {
-
 
512
    return _Fields.findByThriftId(fieldId);
-
 
513
  }
-
 
514
 
501
  public void read(TProtocol iprot) throws TException {
515
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
502
    TField field;
516
    org.apache.thrift.protocol.TField field;
503
    iprot.readStructBegin();
517
    iprot.readStructBegin();
504
    while (true)
518
    while (true)
505
    {
519
    {
506
      field = iprot.readFieldBegin();
520
      field = iprot.readFieldBegin();
507
      if (field.type == TType.STOP) { 
521
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
508
        break;
522
        break;
509
      }
523
      }
510
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
511
      if (fieldId == null) {
-
 
512
        TProtocolUtil.skip(iprot, field.type);
-
 
513
      } else {
-
 
514
        switch (fieldId) {
524
      switch (field.id) {
515
          case AWB_NUMBER:
525
        case 1: // AWB_NUMBER
516
            if (field.type == TType.STRING) {
526
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
517
              this.awbNumber = iprot.readString();
527
            this.awbNumber = iprot.readString();
518
            } else { 
528
          } else { 
519
              TProtocolUtil.skip(iprot, field.type);
529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
520
            }
530
          }
521
            break;
531
          break;
522
          case PROVIDER_NAME:
532
        case 2: // PROVIDER_NAME
523
            if (field.type == TType.STRING) {
533
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
524
              this.providerName = iprot.readString();
534
            this.providerName = iprot.readString();
525
            } else { 
535
          } else { 
526
              TProtocolUtil.skip(iprot, field.type);
536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
527
            }
537
          }
528
            break;
538
          break;
529
          case LOCATION:
539
        case 3: // LOCATION
530
            if (field.type == TType.STRING) {
540
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
531
              this.location = iprot.readString();
541
            this.location = iprot.readString();
532
            } else { 
542
          } else { 
533
              TProtocolUtil.skip(iprot, field.type);
543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
534
            }
544
          }
535
            break;
545
          break;
536
          case ENTRY_DATE:
546
        case 4: // ENTRY_DATE
537
            if (field.type == TType.I64) {
547
          if (field.type == org.apache.thrift.protocol.TType.I64) {
538
              this.entryDate = iprot.readI64();
548
            this.entryDate = iprot.readI64();
539
              setEntryDateIsSet(true);
549
            setEntryDateIsSet(true);
540
            } else { 
550
          } else { 
541
              TProtocolUtil.skip(iprot, field.type);
551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
542
            }
552
          }
543
            break;
553
          break;
544
          case DESCRIPTION:
554
        case 5: // DESCRIPTION
545
            if (field.type == TType.STRING) {
555
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
546
              this.description = iprot.readString();
556
            this.description = iprot.readString();
547
            } else { 
557
          } else { 
548
              TProtocolUtil.skip(iprot, field.type);
558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
549
            }
559
          }
550
            break;
560
          break;
551
        }
561
        default:
552
        iprot.readFieldEnd();
562
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553
      }
563
      }
-
 
564
      iprot.readFieldEnd();
554
    }
565
    }
555
    iprot.readStructEnd();
566
    iprot.readStructEnd();
556
    validate();
567
    validate();
557
  }
568
  }
558
 
569
 
559
  public void write(TProtocol oprot) throws TException {
570
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
560
    validate();
571
    validate();
561
 
572
 
562
    oprot.writeStructBegin(STRUCT_DESC);
573
    oprot.writeStructBegin(STRUCT_DESC);
563
    if (this.awbNumber != null) {
574
    if (this.awbNumber != null) {
564
      oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
575
      oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
Line 629... Line 640...
629
    first = false;
640
    first = false;
630
    sb.append(")");
641
    sb.append(")");
631
    return sb.toString();
642
    return sb.toString();
632
  }
643
  }
633
 
644
 
634
  public void validate() throws TException {
645
  public void validate() throws org.apache.thrift.TException {
635
    // check for required fields
646
    // check for required fields
636
  }
647
  }
637
 
648
 
-
 
649
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
650
    try {
-
 
651
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
652
    } catch (org.apache.thrift.TException te) {
-
 
653
      throw new java.io.IOException(te);
-
 
654
    }
-
 
655
  }
-
 
656
 
-
 
657
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
658
    try {
-
 
659
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
660
      __isset_bit_vector = new BitSet(1);
-
 
661
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
662
    } catch (org.apache.thrift.TException te) {
-
 
663
      throw new java.io.IOException(te);
-
 
664
    }
-
 
665
  }
-
 
666
 
638
}
667
}
639
 
668