Subversion Repositories SmartDukaan

Rev

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

Rev 12357 Rev 21844
Line 40... Line 40...
40
  private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)17);
40
  private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)17);
41
  private static final org.apache.thrift.protocol.TField IS_AVAILABILITY_MONITORED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAvailabilityMonitored", org.apache.thrift.protocol.TType.BOOL, (short)18);
41
  private static final org.apache.thrift.protocol.TField IS_AVAILABILITY_MONITORED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAvailabilityMonitored", org.apache.thrift.protocol.TType.BOOL, (short)18);
42
  private static final org.apache.thrift.protocol.TField TRANSFER_DELAY_IN_HOURS_FIELD_DESC = new org.apache.thrift.protocol.TField("transferDelayInHours", org.apache.thrift.protocol.TType.I64, (short)19);
42
  private static final org.apache.thrift.protocol.TField TRANSFER_DELAY_IN_HOURS_FIELD_DESC = new org.apache.thrift.protocol.TField("transferDelayInHours", org.apache.thrift.protocol.TType.I64, (short)19);
43
  private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)20);
43
  private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)20);
44
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)21);
44
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)21);
-
 
45
  private static final org.apache.thrift.protocol.TField GSTIN_FIELD_DESC = new org.apache.thrift.protocol.TField("gstin", org.apache.thrift.protocol.TType.STRING, (short)22);
45
 
46
 
46
  private long id; // required
47
  private long id; // required
47
  private String displayName; // required
48
  private String displayName; // required
48
  private String location; // required
49
  private String location; // required
49
  private long addedOn; // required
50
  private long addedOn; // required
Line 60... Line 61...
60
  private long billingWarehouseId; // required
61
  private long billingWarehouseId; // required
61
  private boolean isAvailabilityMonitored; // required
62
  private boolean isAvailabilityMonitored; // required
62
  private long transferDelayInHours; // required
63
  private long transferDelayInHours; // required
63
  private long stateId; // required
64
  private long stateId; // required
64
  private long source; // required
65
  private long source; // required
-
 
66
  private String gstin; // required
65
 
67
 
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
68
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
69
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68
    ID((short)1, "id"),
70
    ID((short)1, "id"),
69
    DISPLAY_NAME((short)2, "displayName"),
71
    DISPLAY_NAME((short)2, "displayName"),
Line 97... Line 99...
97
    SHIPPING_WAREHOUSE_ID((short)16, "shippingWarehouseId"),
99
    SHIPPING_WAREHOUSE_ID((short)16, "shippingWarehouseId"),
98
    BILLING_WAREHOUSE_ID((short)17, "billingWarehouseId"),
100
    BILLING_WAREHOUSE_ID((short)17, "billingWarehouseId"),
99
    IS_AVAILABILITY_MONITORED((short)18, "isAvailabilityMonitored"),
101
    IS_AVAILABILITY_MONITORED((short)18, "isAvailabilityMonitored"),
100
    TRANSFER_DELAY_IN_HOURS((short)19, "transferDelayInHours"),
102
    TRANSFER_DELAY_IN_HOURS((short)19, "transferDelayInHours"),
101
    STATE_ID((short)20, "stateId"),
103
    STATE_ID((short)20, "stateId"),
102
    SOURCE((short)21, "source");
104
    SOURCE((short)21, "source"),
-
 
105
    GSTIN((short)22, "gstin");
103
 
106
 
104
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
107
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
105
 
108
 
106
    static {
109
    static {
107
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
110
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 150... Line 153...
150
          return TRANSFER_DELAY_IN_HOURS;
153
          return TRANSFER_DELAY_IN_HOURS;
151
        case 20: // STATE_ID
154
        case 20: // STATE_ID
152
          return STATE_ID;
155
          return STATE_ID;
153
        case 21: // SOURCE
156
        case 21: // SOURCE
154
          return SOURCE;
157
          return SOURCE;
-
 
158
        case 22: // GSTIN
-
 
159
          return GSTIN;
155
        default:
160
        default:
156
          return null;
161
          return null;
157
      }
162
      }
158
    }
163
    }
159
 
164
 
Line 242... Line 247...
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
247
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
243
    tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
248
    tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
249
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
245
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
250
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
251
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
252
    tmpMap.put(_Fields.GSTIN, new org.apache.thrift.meta_data.FieldMetaData("gstin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
253
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
247
    metaDataMap = Collections.unmodifiableMap(tmpMap);
254
    metaDataMap = Collections.unmodifiableMap(tmpMap);
248
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);
255
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);
249
  }
256
  }
250
 
257
 
251
  public Warehouse() {
258
  public Warehouse() {
Line 268... Line 275...
268
    long shippingWarehouseId,
275
    long shippingWarehouseId,
269
    long billingWarehouseId,
276
    long billingWarehouseId,
270
    boolean isAvailabilityMonitored,
277
    boolean isAvailabilityMonitored,
271
    long transferDelayInHours,
278
    long transferDelayInHours,
272
    long stateId,
279
    long stateId,
273
    long source)
280
    long source,
-
 
281
    String gstin)
274
  {
282
  {
275
    this();
283
    this();
276
    this.id = id;
284
    this.id = id;
277
    setIdIsSet(true);
285
    setIdIsSet(true);
278
    this.displayName = displayName;
286
    this.displayName = displayName;
Line 299... Line 307...
299
    setTransferDelayInHoursIsSet(true);
307
    setTransferDelayInHoursIsSet(true);
300
    this.stateId = stateId;
308
    this.stateId = stateId;
301
    setStateIdIsSet(true);
309
    setStateIdIsSet(true);
302
    this.source = source;
310
    this.source = source;
303
    setSourceIsSet(true);
311
    setSourceIsSet(true);
-
 
312
    this.gstin = gstin;
304
  }
313
  }
305
 
314
 
306
  /**
315
  /**
307
   * Performs a deep copy on <i>other</i>.
316
   * Performs a deep copy on <i>other</i>.
308
   */
317
   */
Line 346... Line 355...
346
    this.billingWarehouseId = other.billingWarehouseId;
355
    this.billingWarehouseId = other.billingWarehouseId;
347
    this.isAvailabilityMonitored = other.isAvailabilityMonitored;
356
    this.isAvailabilityMonitored = other.isAvailabilityMonitored;
348
    this.transferDelayInHours = other.transferDelayInHours;
357
    this.transferDelayInHours = other.transferDelayInHours;
349
    this.stateId = other.stateId;
358
    this.stateId = other.stateId;
350
    this.source = other.source;
359
    this.source = other.source;
-
 
360
    if (other.isSetGstin()) {
-
 
361
      this.gstin = other.gstin;
-
 
362
    }
351
  }
363
  }
352
 
364
 
353
  public Warehouse deepCopy() {
365
  public Warehouse deepCopy() {
354
    return new Warehouse(this);
366
    return new Warehouse(this);
355
  }
367
  }
Line 382... Line 394...
382
    this.transferDelayInHours = 0;
394
    this.transferDelayInHours = 0;
383
    setStateIdIsSet(false);
395
    setStateIdIsSet(false);
384
    this.stateId = 0;
396
    this.stateId = 0;
385
    setSourceIsSet(false);
397
    setSourceIsSet(false);
386
    this.source = 0;
398
    this.source = 0;
-
 
399
    this.gstin = null;
387
  }
400
  }
388
 
401
 
389
  public long getId() {
402
  public long getId() {
390
    return this.id;
403
    return this.id;
391
  }
404
  }
Line 844... Line 857...
844
 
857
 
845
  public void setSourceIsSet(boolean value) {
858
  public void setSourceIsSet(boolean value) {
846
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
859
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
847
  }
860
  }
848
 
861
 
-
 
862
  public String getGstin() {
-
 
863
    return this.gstin;
-
 
864
  }
-
 
865
 
-
 
866
  public void setGstin(String gstin) {
-
 
867
    this.gstin = gstin;
-
 
868
  }
-
 
869
 
-
 
870
  public void unsetGstin() {
-
 
871
    this.gstin = null;
-
 
872
  }
-
 
873
 
-
 
874
  /** Returns true if field gstin is set (has been assigned a value) and false otherwise */
-
 
875
  public boolean isSetGstin() {
-
 
876
    return this.gstin != null;
-
 
877
  }
-
 
878
 
-
 
879
  public void setGstinIsSet(boolean value) {
-
 
880
    if (!value) {
-
 
881
      this.gstin = null;
-
 
882
    }
-
 
883
  }
-
 
884
 
849
  public void setFieldValue(_Fields field, Object value) {
885
  public void setFieldValue(_Fields field, Object value) {
850
    switch (field) {
886
    switch (field) {
851
    case ID:
887
    case ID:
852
      if (value == null) {
888
      if (value == null) {
853
        unsetId();
889
        unsetId();
Line 998... Line 1034...
998
      } else {
1034
      } else {
999
        setSource((Long)value);
1035
        setSource((Long)value);
1000
      }
1036
      }
1001
      break;
1037
      break;
1002
 
1038
 
-
 
1039
    case GSTIN:
-
 
1040
      if (value == null) {
-
 
1041
        unsetGstin();
-
 
1042
      } else {
-
 
1043
        setGstin((String)value);
-
 
1044
      }
-
 
1045
      break;
-
 
1046
 
1003
    }
1047
    }
1004
  }
1048
  }
1005
 
1049
 
1006
  public Object getFieldValue(_Fields field) {
1050
  public Object getFieldValue(_Fields field) {
1007
    switch (field) {
1051
    switch (field) {
Line 1060... Line 1104...
1060
      return Long.valueOf(getStateId());
1104
      return Long.valueOf(getStateId());
1061
 
1105
 
1062
    case SOURCE:
1106
    case SOURCE:
1063
      return Long.valueOf(getSource());
1107
      return Long.valueOf(getSource());
1064
 
1108
 
-
 
1109
    case GSTIN:
-
 
1110
      return getGstin();
-
 
1111
 
1065
    }
1112
    }
1066
    throw new IllegalStateException();
1113
    throw new IllegalStateException();
1067
  }
1114
  }
1068
 
1115
 
1069
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1116
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1109... Line 1156...
1109
      return isSetTransferDelayInHours();
1156
      return isSetTransferDelayInHours();
1110
    case STATE_ID:
1157
    case STATE_ID:
1111
      return isSetStateId();
1158
      return isSetStateId();
1112
    case SOURCE:
1159
    case SOURCE:
1113
      return isSetSource();
1160
      return isSetSource();
-
 
1161
    case GSTIN:
-
 
1162
      return isSetGstin();
1114
    }
1163
    }
1115
    throw new IllegalStateException();
1164
    throw new IllegalStateException();
1116
  }
1165
  }
1117
 
1166
 
1118
  @Override
1167
  @Override
Line 1297... Line 1346...
1297
        return false;
1346
        return false;
1298
      if (this.source != that.source)
1347
      if (this.source != that.source)
1299
        return false;
1348
        return false;
1300
    }
1349
    }
1301
 
1350
 
-
 
1351
    boolean this_present_gstin = true && this.isSetGstin();
-
 
1352
    boolean that_present_gstin = true && that.isSetGstin();
-
 
1353
    if (this_present_gstin || that_present_gstin) {
-
 
1354
      if (!(this_present_gstin && that_present_gstin))
-
 
1355
        return false;
-
 
1356
      if (!this.gstin.equals(that.gstin))
-
 
1357
        return false;
-
 
1358
    }
-
 
1359
 
1302
    return true;
1360
    return true;
1303
  }
1361
  }
1304
 
1362
 
1305
  @Override
1363
  @Override
1306
  public int hashCode() {
1364
  public int hashCode() {
Line 1503... Line 1561...
1503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
1561
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
1504
      if (lastComparison != 0) {
1562
      if (lastComparison != 0) {
1505
        return lastComparison;
1563
        return lastComparison;
1506
      }
1564
      }
1507
    }
1565
    }
-
 
1566
    lastComparison = Boolean.valueOf(isSetGstin()).compareTo(typedOther.isSetGstin());
-
 
1567
    if (lastComparison != 0) {
-
 
1568
      return lastComparison;
-
 
1569
    }
-
 
1570
    if (isSetGstin()) {
-
 
1571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gstin, typedOther.gstin);
-
 
1572
      if (lastComparison != 0) {
-
 
1573
        return lastComparison;
-
 
1574
      }
-
 
1575
    }
1508
    return 0;
1576
    return 0;
1509
  }
1577
  }
1510
 
1578
 
1511
  public _Fields fieldForId(int fieldId) {
1579
  public _Fields fieldForId(int fieldId) {
1512
    return _Fields.findByThriftId(fieldId);
1580
    return _Fields.findByThriftId(fieldId);
Line 1663... Line 1731...
1663
            setSourceIsSet(true);
1731
            setSourceIsSet(true);
1664
          } else { 
1732
          } else { 
1665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1666
          }
1734
          }
1667
          break;
1735
          break;
-
 
1736
        case 22: // GSTIN
-
 
1737
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1738
            this.gstin = iprot.readString();
-
 
1739
          } else { 
-
 
1740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1741
          }
-
 
1742
          break;
1668
        default:
1743
        default:
1669
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1744
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1670
      }
1745
      }
1671
      iprot.readFieldEnd();
1746
      iprot.readFieldEnd();
1672
    }
1747
    }
Line 1753... Line 1828...
1753
    oprot.writeI64(this.stateId);
1828
    oprot.writeI64(this.stateId);
1754
    oprot.writeFieldEnd();
1829
    oprot.writeFieldEnd();
1755
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
1830
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
1756
    oprot.writeI64(this.source);
1831
    oprot.writeI64(this.source);
1757
    oprot.writeFieldEnd();
1832
    oprot.writeFieldEnd();
-
 
1833
    if (this.gstin != null) {
-
 
1834
      oprot.writeFieldBegin(GSTIN_FIELD_DESC);
-
 
1835
      oprot.writeString(this.gstin);
-
 
1836
      oprot.writeFieldEnd();
-
 
1837
    }
1758
    oprot.writeFieldStop();
1838
    oprot.writeFieldStop();
1759
    oprot.writeStructEnd();
1839
    oprot.writeStructEnd();
1760
  }
1840
  }
1761
 
1841
 
1762
  @Override
1842
  @Override
Line 1877... Line 1957...
1877
    first = false;
1957
    first = false;
1878
    if (!first) sb.append(", ");
1958
    if (!first) sb.append(", ");
1879
    sb.append("source:");
1959
    sb.append("source:");
1880
    sb.append(this.source);
1960
    sb.append(this.source);
1881
    first = false;
1961
    first = false;
-
 
1962
    if (!first) sb.append(", ");
-
 
1963
    sb.append("gstin:");
-
 
1964
    if (this.gstin == null) {
-
 
1965
      sb.append("null");
-
 
1966
    } else {
-
 
1967
      sb.append(this.gstin);
-
 
1968
    }
-
 
1969
    first = false;
1882
    sb.append(")");
1970
    sb.append(")");
1883
    return sb.toString();
1971
    return sb.toString();
1884
  }
1972
  }
1885
 
1973
 
1886
  public void validate() throws org.apache.thrift.TException {
1974
  public void validate() throws org.apache.thrift.TException {