Subversion Repositories SmartDukaan

Rev

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

Rev 4295 Rev 4658
Line 35... Line 35...
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_price", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_price", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField UNIT_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
36
  private static final org.apache.thrift.protocol.TField UNIT_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("total_price", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
37
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("total_price", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transfer_price", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
38
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transfer_price", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
39
  private static final org.apache.thrift.protocol.TField TOTAL_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
39
  private static final org.apache.thrift.protocol.TField TOTAL_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
40
  private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imei_number", org.apache.thrift.protocol.TType.I64, (short)15);
40
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serial_number", org.apache.thrift.protocol.TType.STRING, (short)15);
41
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("item_number", org.apache.thrift.protocol.TType.STRING, (short)16);
41
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("item_number", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)17);
42
  private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)17);
43
  private static final org.apache.thrift.protocol.TField WARRANTRY_EXPIRY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("warrantry_expiry_timestamp", org.apache.thrift.protocol.TType.I64, (short)18);
43
  private static final org.apache.thrift.protocol.TField WARRANTRY_EXPIRY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("warrantry_expiry_timestamp", org.apache.thrift.protocol.TType.I64, (short)18);
44
 
44
 
45
  private long id; // required
45
  private long id; // required
Line 54... Line 54...
54
  private double unit_price; // required
54
  private double unit_price; // required
55
  private double unit_weight; // required
55
  private double unit_weight; // required
56
  private double total_price; // required
56
  private double total_price; // required
57
  private double transfer_price; // required
57
  private double transfer_price; // required
58
  private double total_weight; // required
58
  private double total_weight; // required
59
  private long imei_number; // required
59
  private String serial_number; // required
60
  private String item_number; // required
60
  private String item_number; // required
61
  private String dealText; // required
61
  private String dealText; // required
62
  private long warrantry_expiry_timestamp; // required
62
  private long warrantry_expiry_timestamp; // required
63
 
63
 
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
Line 75... Line 75...
75
    UNIT_PRICE((short)10, "unit_price"),
75
    UNIT_PRICE((short)10, "unit_price"),
76
    UNIT_WEIGHT((short)11, "unit_weight"),
76
    UNIT_WEIGHT((short)11, "unit_weight"),
77
    TOTAL_PRICE((short)12, "total_price"),
77
    TOTAL_PRICE((short)12, "total_price"),
78
    TRANSFER_PRICE((short)13, "transfer_price"),
78
    TRANSFER_PRICE((short)13, "transfer_price"),
79
    TOTAL_WEIGHT((short)14, "total_weight"),
79
    TOTAL_WEIGHT((short)14, "total_weight"),
80
    IMEI_NUMBER((short)15, "imei_number"),
80
    SERIAL_NUMBER((short)15, "serial_number"),
81
    ITEM_NUMBER((short)16, "item_number"),
81
    ITEM_NUMBER((short)16, "item_number"),
82
    DEAL_TEXT((short)17, "dealText"),
82
    DEAL_TEXT((short)17, "dealText"),
83
    WARRANTRY_EXPIRY_TIMESTAMP((short)18, "warrantry_expiry_timestamp");
83
    WARRANTRY_EXPIRY_TIMESTAMP((short)18, "warrantry_expiry_timestamp");
84
 
84
 
85
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
85
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
Line 121... Line 121...
121
          return TOTAL_PRICE;
121
          return TOTAL_PRICE;
122
        case 13: // TRANSFER_PRICE
122
        case 13: // TRANSFER_PRICE
123
          return TRANSFER_PRICE;
123
          return TRANSFER_PRICE;
124
        case 14: // TOTAL_WEIGHT
124
        case 14: // TOTAL_WEIGHT
125
          return TOTAL_WEIGHT;
125
          return TOTAL_WEIGHT;
126
        case 15: // IMEI_NUMBER
126
        case 15: // SERIAL_NUMBER
127
          return IMEI_NUMBER;
127
          return SERIAL_NUMBER;
128
        case 16: // ITEM_NUMBER
128
        case 16: // ITEM_NUMBER
129
          return ITEM_NUMBER;
129
          return ITEM_NUMBER;
130
        case 17: // DEAL_TEXT
130
        case 17: // DEAL_TEXT
131
          return DEAL_TEXT;
131
          return DEAL_TEXT;
132
        case 18: // WARRANTRY_EXPIRY_TIMESTAMP
132
        case 18: // WARRANTRY_EXPIRY_TIMESTAMP
Line 177... Line 177...
177
  private static final int __UNIT_PRICE_ISSET_ID = 3;
177
  private static final int __UNIT_PRICE_ISSET_ID = 3;
178
  private static final int __UNIT_WEIGHT_ISSET_ID = 4;
178
  private static final int __UNIT_WEIGHT_ISSET_ID = 4;
179
  private static final int __TOTAL_PRICE_ISSET_ID = 5;
179
  private static final int __TOTAL_PRICE_ISSET_ID = 5;
180
  private static final int __TRANSFER_PRICE_ISSET_ID = 6;
180
  private static final int __TRANSFER_PRICE_ISSET_ID = 6;
181
  private static final int __TOTAL_WEIGHT_ISSET_ID = 7;
181
  private static final int __TOTAL_WEIGHT_ISSET_ID = 7;
182
  private static final int __IMEI_NUMBER_ISSET_ID = 8;
-
 
183
  private static final int __WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID = 9;
182
  private static final int __WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID = 8;
184
  private BitSet __isset_bit_vector = new BitSet(10);
183
  private BitSet __isset_bit_vector = new BitSet(9);
185
 
184
 
186
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
185
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
187
  static {
186
  static {
188
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
187
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
189
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
188
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 212... Line 211...
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
213
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transfer_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transfer_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
215
    tmpMap.put(_Fields.TOTAL_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("total_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
    tmpMap.put(_Fields.TOTAL_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("total_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
217
    tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imei_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
216
    tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serial_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
219
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("item_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
218
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("item_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
221
    tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
220
    tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
223
    tmpMap.put(_Fields.WARRANTRY_EXPIRY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("warrantry_expiry_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
    tmpMap.put(_Fields.WARRANTRY_EXPIRY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("warrantry_expiry_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 303... Line 302...
303
    this.unit_price = other.unit_price;
302
    this.unit_price = other.unit_price;
304
    this.unit_weight = other.unit_weight;
303
    this.unit_weight = other.unit_weight;
305
    this.total_price = other.total_price;
304
    this.total_price = other.total_price;
306
    this.transfer_price = other.transfer_price;
305
    this.transfer_price = other.transfer_price;
307
    this.total_weight = other.total_weight;
306
    this.total_weight = other.total_weight;
-
 
307
    if (other.isSetSerial_number()) {
308
    this.imei_number = other.imei_number;
308
      this.serial_number = other.serial_number;
-
 
309
    }
309
    if (other.isSetItem_number()) {
310
    if (other.isSetItem_number()) {
310
      this.item_number = other.item_number;
311
      this.item_number = other.item_number;
311
    }
312
    }
312
    if (other.isSetDealText()) {
313
    if (other.isSetDealText()) {
313
      this.dealText = other.dealText;
314
      this.dealText = other.dealText;
Line 341... Line 342...
341
    this.total_price = 0.0;
342
    this.total_price = 0.0;
342
    setTransfer_priceIsSet(false);
343
    setTransfer_priceIsSet(false);
343
    this.transfer_price = 0.0;
344
    this.transfer_price = 0.0;
344
    setTotal_weightIsSet(false);
345
    setTotal_weightIsSet(false);
345
    this.total_weight = 0.0;
346
    this.total_weight = 0.0;
346
    setImei_numberIsSet(false);
-
 
347
    this.imei_number = 0;
347
    this.serial_number = null;
348
    this.item_number = null;
348
    this.item_number = null;
349
    this.dealText = null;
349
    this.dealText = null;
350
    setWarrantry_expiry_timestampIsSet(false);
350
    setWarrantry_expiry_timestampIsSet(false);
351
    this.warrantry_expiry_timestamp = 0;
351
    this.warrantry_expiry_timestamp = 0;
352
  }
352
  }
Line 663... Line 663...
663
 
663
 
664
  public void setTotal_weightIsSet(boolean value) {
664
  public void setTotal_weightIsSet(boolean value) {
665
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
665
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
666
  }
666
  }
667
 
667
 
668
  public long getImei_number() {
668
  public String getSerial_number() {
669
    return this.imei_number;
669
    return this.serial_number;
670
  }
670
  }
671
 
671
 
672
  public void setImei_number(long imei_number) {
672
  public void setSerial_number(String serial_number) {
673
    this.imei_number = imei_number;
673
    this.serial_number = serial_number;
674
    setImei_numberIsSet(true);
-
 
675
  }
674
  }
676
 
675
 
677
  public void unsetImei_number() {
676
  public void unsetSerial_number() {
678
    __isset_bit_vector.clear(__IMEI_NUMBER_ISSET_ID);
677
    this.serial_number = null;
679
  }
678
  }
680
 
679
 
681
  /** Returns true if field imei_number is set (has been assigned a value) and false otherwise */
680
  /** Returns true if field serial_number is set (has been assigned a value) and false otherwise */
682
  public boolean isSetImei_number() {
681
  public boolean isSetSerial_number() {
683
    return __isset_bit_vector.get(__IMEI_NUMBER_ISSET_ID);
682
    return this.serial_number != null;
684
  }
683
  }
685
 
684
 
686
  public void setImei_numberIsSet(boolean value) {
685
  public void setSerial_numberIsSet(boolean value) {
-
 
686
    if (!value) {
687
    __isset_bit_vector.set(__IMEI_NUMBER_ISSET_ID, value);
687
      this.serial_number = null;
-
 
688
    }
688
  }
689
  }
689
 
690
 
690
  public String getItem_number() {
691
  public String getItem_number() {
691
    return this.item_number;
692
    return this.item_number;
692
  }
693
  }
Line 867... Line 868...
867
      } else {
868
      } else {
868
        setTotal_weight((Double)value);
869
        setTotal_weight((Double)value);
869
      }
870
      }
870
      break;
871
      break;
871
 
872
 
872
    case IMEI_NUMBER:
873
    case SERIAL_NUMBER:
873
      if (value == null) {
874
      if (value == null) {
874
        unsetImei_number();
875
        unsetSerial_number();
875
      } else {
876
      } else {
876
        setImei_number((Long)value);
877
        setSerial_number((String)value);
877
      }
878
      }
878
      break;
879
      break;
879
 
880
 
880
    case ITEM_NUMBER:
881
    case ITEM_NUMBER:
881
      if (value == null) {
882
      if (value == null) {
Line 946... Line 947...
946
      return Double.valueOf(getTransfer_price());
947
      return Double.valueOf(getTransfer_price());
947
 
948
 
948
    case TOTAL_WEIGHT:
949
    case TOTAL_WEIGHT:
949
      return Double.valueOf(getTotal_weight());
950
      return Double.valueOf(getTotal_weight());
950
 
951
 
951
    case IMEI_NUMBER:
952
    case SERIAL_NUMBER:
952
      return Long.valueOf(getImei_number());
953
      return getSerial_number();
953
 
954
 
954
    case ITEM_NUMBER:
955
    case ITEM_NUMBER:
955
      return getItem_number();
956
      return getItem_number();
956
 
957
 
957
    case DEAL_TEXT:
958
    case DEAL_TEXT:
Line 997... Line 998...
997
      return isSetTotal_price();
998
      return isSetTotal_price();
998
    case TRANSFER_PRICE:
999
    case TRANSFER_PRICE:
999
      return isSetTransfer_price();
1000
      return isSetTransfer_price();
1000
    case TOTAL_WEIGHT:
1001
    case TOTAL_WEIGHT:
1001
      return isSetTotal_weight();
1002
      return isSetTotal_weight();
1002
    case IMEI_NUMBER:
1003
    case SERIAL_NUMBER:
1003
      return isSetImei_number();
1004
      return isSetSerial_number();
1004
    case ITEM_NUMBER:
1005
    case ITEM_NUMBER:
1005
      return isSetItem_number();
1006
      return isSetItem_number();
1006
    case DEAL_TEXT:
1007
    case DEAL_TEXT:
1007
      return isSetDealText();
1008
      return isSetDealText();
1008
    case WARRANTRY_EXPIRY_TIMESTAMP:
1009
    case WARRANTRY_EXPIRY_TIMESTAMP:
Line 1148... Line 1149...
1148
        return false;
1149
        return false;
1149
      if (this.total_weight != that.total_weight)
1150
      if (this.total_weight != that.total_weight)
1150
        return false;
1151
        return false;
1151
    }
1152
    }
1152
 
1153
 
1153
    boolean this_present_imei_number = true && this.isSetImei_number();
1154
    boolean this_present_serial_number = true && this.isSetSerial_number();
1154
    boolean that_present_imei_number = true && that.isSetImei_number();
1155
    boolean that_present_serial_number = true && that.isSetSerial_number();
1155
    if (this_present_imei_number || that_present_imei_number) {
1156
    if (this_present_serial_number || that_present_serial_number) {
1156
      if (!(this_present_imei_number && that_present_imei_number))
1157
      if (!(this_present_serial_number && that_present_serial_number))
1157
        return false;
1158
        return false;
1158
      if (this.imei_number != that.imei_number)
1159
      if (!this.serial_number.equals(that.serial_number))
1159
        return false;
1160
        return false;
1160
    }
1161
    }
1161
 
1162
 
1162
    boolean this_present_item_number = true && this.isSetItem_number();
1163
    boolean this_present_item_number = true && this.isSetItem_number();
1163
    boolean that_present_item_number = true && that.isSetItem_number();
1164
    boolean that_present_item_number = true && that.isSetItem_number();
Line 1340... Line 1341...
1340
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_weight, typedOther.total_weight);
1341
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_weight, typedOther.total_weight);
1341
      if (lastComparison != 0) {
1342
      if (lastComparison != 0) {
1342
        return lastComparison;
1343
        return lastComparison;
1343
      }
1344
      }
1344
    }
1345
    }
1345
    lastComparison = Boolean.valueOf(isSetImei_number()).compareTo(typedOther.isSetImei_number());
1346
    lastComparison = Boolean.valueOf(isSetSerial_number()).compareTo(typedOther.isSetSerial_number());
1346
    if (lastComparison != 0) {
1347
    if (lastComparison != 0) {
1347
      return lastComparison;
1348
      return lastComparison;
1348
    }
1349
    }
1349
    if (isSetImei_number()) {
1350
    if (isSetSerial_number()) {
1350
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imei_number, typedOther.imei_number);
1351
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serial_number, typedOther.serial_number);
1351
      if (lastComparison != 0) {
1352
      if (lastComparison != 0) {
1352
        return lastComparison;
1353
        return lastComparison;
1353
      }
1354
      }
1354
    }
1355
    }
1355
    lastComparison = Boolean.valueOf(isSetItem_number()).compareTo(typedOther.isSetItem_number());
1356
    lastComparison = Boolean.valueOf(isSetItem_number()).compareTo(typedOther.isSetItem_number());
Line 1503... Line 1504...
1503
            setTotal_weightIsSet(true);
1504
            setTotal_weightIsSet(true);
1504
          } else { 
1505
          } else { 
1505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1506
          }
1507
          }
1507
          break;
1508
          break;
1508
        case 15: // IMEI_NUMBER
1509
        case 15: // SERIAL_NUMBER
1509
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1510
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1510
            this.imei_number = iprot.readI64();
1511
            this.serial_number = iprot.readString();
1511
            setImei_numberIsSet(true);
-
 
1512
          } else { 
1512
          } else { 
1513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1514
          }
1514
          }
1515
          break;
1515
          break;
1516
        case 16: // ITEM_NUMBER
1516
        case 16: // ITEM_NUMBER
Line 1600... Line 1600...
1600
    oprot.writeDouble(this.transfer_price);
1600
    oprot.writeDouble(this.transfer_price);
1601
    oprot.writeFieldEnd();
1601
    oprot.writeFieldEnd();
1602
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
1602
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
1603
    oprot.writeDouble(this.total_weight);
1603
    oprot.writeDouble(this.total_weight);
1604
    oprot.writeFieldEnd();
1604
    oprot.writeFieldEnd();
-
 
1605
    if (this.serial_number != null) {
1605
    if (isSetImei_number()) {
1606
      if (isSetSerial_number()) {
1606
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
1607
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
1607
      oprot.writeI64(this.imei_number);
1608
        oprot.writeString(this.serial_number);
1608
      oprot.writeFieldEnd();
1609
        oprot.writeFieldEnd();
-
 
1610
      }
1609
    }
1611
    }
1610
    if (this.item_number != null) {
1612
    if (this.item_number != null) {
1611
      if (isSetItem_number()) {
1613
      if (isSetItem_number()) {
1612
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
1614
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
1613
        oprot.writeString(this.item_number);
1615
        oprot.writeString(this.item_number);
Line 1710... Line 1712...
1710
    first = false;
1712
    first = false;
1711
    if (!first) sb.append(", ");
1713
    if (!first) sb.append(", ");
1712
    sb.append("total_weight:");
1714
    sb.append("total_weight:");
1713
    sb.append(this.total_weight);
1715
    sb.append(this.total_weight);
1714
    first = false;
1716
    first = false;
1715
    if (isSetImei_number()) {
1717
    if (isSetSerial_number()) {
1716
      if (!first) sb.append(", ");
1718
      if (!first) sb.append(", ");
1717
      sb.append("imei_number:");
1719
      sb.append("serial_number:");
-
 
1720
      if (this.serial_number == null) {
-
 
1721
        sb.append("null");
-
 
1722
      } else {
1718
      sb.append(this.imei_number);
1723
        sb.append(this.serial_number);
-
 
1724
      }
1719
      first = false;
1725
      first = false;
1720
    }
1726
    }
1721
    if (isSetItem_number()) {
1727
    if (isSetItem_number()) {
1722
      if (!first) sb.append(", ");
1728
      if (!first) sb.append(", ");
1723
      sb.append("item_number:");
1729
      sb.append("item_number:");