Subversion Repositories SmartDukaan

Rev

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

Rev 471 Rev 477
Line 27... Line 27...
27
 
27
 
28
  public interface Iface {
28
  public interface Iface {
29
 
29
 
30
    public ItemLogistics getLogisticsEstimation(long itemId, String destination_pin, long provider_id) throws LogisticsServiceException, TException;
30
    public ItemLogistics getLogisticsEstimation(long itemId, String destination_pin, long provider_id) throws LogisticsServiceException, TException;
31
 
31
 
32
    public void addDeliveryEstimate(long warahouse_id, String destination_pin, long provider_id, long delivery_time) throws TException;
32
    public void addDeliveryEstimate(long warahouse_id, String destination_pin, long provider_id, long delivery_time, long reliability) throws TException;
-
 
33
 
-
 
34
    public void addPincodeWarehouseMapping(String pin_code, long warehouse_id, String warehouse_pin) throws TException;
33
 
35
 
34
    public void addEmptyAWBs(List<String> numbers, long provider_id) throws TException;
36
    public void addEmptyAWBs(List<String> numbers, long provider_id) throws TException;
35
 
37
 
36
    public String getEmptyAWB(long provider_id) throws TException;
38
    public String getEmptyAWB(long provider_id) throws TException;
37
 
39
 
Line 114... Line 116...
114
        throw result.se;
116
        throw result.se;
115
      }
117
      }
116
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
118
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
117
    }
119
    }
118
 
120
 
119
    public void addDeliveryEstimate(long warahouse_id, String destination_pin, long provider_id, long delivery_time) throws TException
121
    public void addDeliveryEstimate(long warahouse_id, String destination_pin, long provider_id, long delivery_time, long reliability) throws TException
120
    {
122
    {
121
      send_addDeliveryEstimate(warahouse_id, destination_pin, provider_id, delivery_time);
123
      send_addDeliveryEstimate(warahouse_id, destination_pin, provider_id, delivery_time, reliability);
122
      recv_addDeliveryEstimate();
124
      recv_addDeliveryEstimate();
123
    }
125
    }
124
 
126
 
125
    public void send_addDeliveryEstimate(long warahouse_id, String destination_pin, long provider_id, long delivery_time) throws TException
127
    public void send_addDeliveryEstimate(long warahouse_id, String destination_pin, long provider_id, long delivery_time, long reliability) throws TException
126
    {
128
    {
127
      oprot_.writeMessageBegin(new TMessage("addDeliveryEstimate", TMessageType.CALL, seqid_));
129
      oprot_.writeMessageBegin(new TMessage("addDeliveryEstimate", TMessageType.CALL, seqid_));
128
      addDeliveryEstimate_args args = new addDeliveryEstimate_args();
130
      addDeliveryEstimate_args args = new addDeliveryEstimate_args();
129
      args.warahouse_id = warahouse_id;
131
      args.warahouse_id = warahouse_id;
130
      args.destination_pin = destination_pin;
132
      args.destination_pin = destination_pin;
131
      args.provider_id = provider_id;
133
      args.provider_id = provider_id;
132
      args.delivery_time = delivery_time;
134
      args.delivery_time = delivery_time;
-
 
135
      args.reliability = reliability;
133
      args.write(oprot_);
136
      args.write(oprot_);
134
      oprot_.writeMessageEnd();
137
      oprot_.writeMessageEnd();
135
      oprot_.getTransport().flush();
138
      oprot_.getTransport().flush();
136
    }
139
    }
137
 
140
 
Line 147... Line 150...
147
      result.read(iprot_);
150
      result.read(iprot_);
148
      iprot_.readMessageEnd();
151
      iprot_.readMessageEnd();
149
      return;
152
      return;
150
    }
153
    }
151
 
154
 
-
 
155
    public void addPincodeWarehouseMapping(String pin_code, long warehouse_id, String warehouse_pin) throws TException
-
 
156
    {
-
 
157
      send_addPincodeWarehouseMapping(pin_code, warehouse_id, warehouse_pin);
-
 
158
      recv_addPincodeWarehouseMapping();
-
 
159
    }
-
 
160
 
-
 
161
    public void send_addPincodeWarehouseMapping(String pin_code, long warehouse_id, String warehouse_pin) throws TException
-
 
162
    {
-
 
163
      oprot_.writeMessageBegin(new TMessage("addPincodeWarehouseMapping", TMessageType.CALL, seqid_));
-
 
164
      addPincodeWarehouseMapping_args args = new addPincodeWarehouseMapping_args();
-
 
165
      args.pin_code = pin_code;
-
 
166
      args.warehouse_id = warehouse_id;
-
 
167
      args.warehouse_pin = warehouse_pin;
-
 
168
      args.write(oprot_);
-
 
169
      oprot_.writeMessageEnd();
-
 
170
      oprot_.getTransport().flush();
-
 
171
    }
-
 
172
 
-
 
173
    public void recv_addPincodeWarehouseMapping() throws TException
-
 
174
    {
-
 
175
      TMessage msg = iprot_.readMessageBegin();
-
 
176
      if (msg.type == TMessageType.EXCEPTION) {
-
 
177
        TApplicationException x = TApplicationException.read(iprot_);
-
 
178
        iprot_.readMessageEnd();
-
 
179
        throw x;
-
 
180
      }
-
 
181
      addPincodeWarehouseMapping_result result = new addPincodeWarehouseMapping_result();
-
 
182
      result.read(iprot_);
-
 
183
      iprot_.readMessageEnd();
-
 
184
      return;
-
 
185
    }
-
 
186
 
152
    public void addEmptyAWBs(List<String> numbers, long provider_id) throws TException
187
    public void addEmptyAWBs(List<String> numbers, long provider_id) throws TException
153
    {
188
    {
154
      send_addEmptyAWBs(numbers, provider_id);
189
      send_addEmptyAWBs(numbers, provider_id);
155
      recv_addEmptyAWBs();
190
      recv_addEmptyAWBs();
156
    }
191
    }
Line 448... Line 483...
448
    public Processor(Iface iface)
483
    public Processor(Iface iface)
449
    {
484
    {
450
      iface_ = iface;
485
      iface_ = iface;
451
      processMap_.put("getLogisticsEstimation", new getLogisticsEstimation());
486
      processMap_.put("getLogisticsEstimation", new getLogisticsEstimation());
452
      processMap_.put("addDeliveryEstimate", new addDeliveryEstimate());
487
      processMap_.put("addDeliveryEstimate", new addDeliveryEstimate());
-
 
488
      processMap_.put("addPincodeWarehouseMapping", new addPincodeWarehouseMapping());
453
      processMap_.put("addEmptyAWBs", new addEmptyAWBs());
489
      processMap_.put("addEmptyAWBs", new addEmptyAWBs());
454
      processMap_.put("getEmptyAWB", new getEmptyAWB());
490
      processMap_.put("getEmptyAWB", new getEmptyAWB());
455
      processMap_.put("getProviders", new getProviders());
491
      processMap_.put("getProviders", new getProviders());
456
      processMap_.put("getProvider", new getProvider());
492
      processMap_.put("getProvider", new getProvider());
457
      processMap_.put("createShipment", new createShipment());
493
      processMap_.put("createShipment", new createShipment());
Line 519... Line 555...
519
      {
555
      {
520
        addDeliveryEstimate_args args = new addDeliveryEstimate_args();
556
        addDeliveryEstimate_args args = new addDeliveryEstimate_args();
521
        args.read(iprot);
557
        args.read(iprot);
522
        iprot.readMessageEnd();
558
        iprot.readMessageEnd();
523
        addDeliveryEstimate_result result = new addDeliveryEstimate_result();
559
        addDeliveryEstimate_result result = new addDeliveryEstimate_result();
524
        iface_.addDeliveryEstimate(args.warahouse_id, args.destination_pin, args.provider_id, args.delivery_time);
560
        iface_.addDeliveryEstimate(args.warahouse_id, args.destination_pin, args.provider_id, args.delivery_time, args.reliability);
525
        oprot.writeMessageBegin(new TMessage("addDeliveryEstimate", TMessageType.REPLY, seqid));
561
        oprot.writeMessageBegin(new TMessage("addDeliveryEstimate", TMessageType.REPLY, seqid));
526
        result.write(oprot);
562
        result.write(oprot);
527
        oprot.writeMessageEnd();
563
        oprot.writeMessageEnd();
528
        oprot.getTransport().flush();
564
        oprot.getTransport().flush();
529
      }
565
      }
530
 
566
 
531
    }
567
    }
532
 
568
 
-
 
569
    private class addPincodeWarehouseMapping implements ProcessFunction {
-
 
570
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
571
      {
-
 
572
        addPincodeWarehouseMapping_args args = new addPincodeWarehouseMapping_args();
-
 
573
        args.read(iprot);
-
 
574
        iprot.readMessageEnd();
-
 
575
        addPincodeWarehouseMapping_result result = new addPincodeWarehouseMapping_result();
-
 
576
        iface_.addPincodeWarehouseMapping(args.pin_code, args.warehouse_id, args.warehouse_pin);
-
 
577
        oprot.writeMessageBegin(new TMessage("addPincodeWarehouseMapping", TMessageType.REPLY, seqid));
-
 
578
        result.write(oprot);
-
 
579
        oprot.writeMessageEnd();
-
 
580
        oprot.getTransport().flush();
-
 
581
      }
-
 
582
 
-
 
583
    }
-
 
584
 
533
    private class addEmptyAWBs implements ProcessFunction {
585
    private class addEmptyAWBs implements ProcessFunction {
534
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
586
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
535
      {
587
      {
536
        addEmptyAWBs_args args = new addEmptyAWBs_args();
588
        addEmptyAWBs_args args = new addEmptyAWBs_args();
537
        args.read(iprot);
589
        args.read(iprot);
Line 1486... Line 1538...
1486
 
1538
 
1487
    private static final TField WARAHOUSE_ID_FIELD_DESC = new TField("warahouse_id", TType.I64, (short)1);
1539
    private static final TField WARAHOUSE_ID_FIELD_DESC = new TField("warahouse_id", TType.I64, (short)1);
1488
    private static final TField DESTINATION_PIN_FIELD_DESC = new TField("destination_pin", TType.STRING, (short)2);
1540
    private static final TField DESTINATION_PIN_FIELD_DESC = new TField("destination_pin", TType.STRING, (short)2);
1489
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("provider_id", TType.I64, (short)3);
1541
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("provider_id", TType.I64, (short)3);
1490
    private static final TField DELIVERY_TIME_FIELD_DESC = new TField("delivery_time", TType.I64, (short)4);
1542
    private static final TField DELIVERY_TIME_FIELD_DESC = new TField("delivery_time", TType.I64, (short)4);
-
 
1543
    private static final TField RELIABILITY_FIELD_DESC = new TField("reliability", TType.I64, (short)5);
1491
 
1544
 
1492
    private long warahouse_id;
1545
    private long warahouse_id;
1493
    private String destination_pin;
1546
    private String destination_pin;
1494
    private long provider_id;
1547
    private long provider_id;
1495
    private long delivery_time;
1548
    private long delivery_time;
-
 
1549
    private long reliability;
1496
 
1550
 
1497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1551
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1498
    public enum _Fields implements TFieldIdEnum {
1552
    public enum _Fields implements TFieldIdEnum {
1499
      WARAHOUSE_ID((short)1, "warahouse_id"),
1553
      WARAHOUSE_ID((short)1, "warahouse_id"),
1500
      DESTINATION_PIN((short)2, "destination_pin"),
1554
      DESTINATION_PIN((short)2, "destination_pin"),
1501
      PROVIDER_ID((short)3, "provider_id"),
1555
      PROVIDER_ID((short)3, "provider_id"),
1502
      DELIVERY_TIME((short)4, "delivery_time");
1556
      DELIVERY_TIME((short)4, "delivery_time"),
-
 
1557
      RELIABILITY((short)5, "reliability");
1503
 
1558
 
1504
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
1559
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
1505
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1506
 
1561
 
1507
      static {
1562
      static {
Line 1554... Line 1609...
1554
 
1609
 
1555
    // isset id assignments
1610
    // isset id assignments
1556
    private static final int __WARAHOUSE_ID_ISSET_ID = 0;
1611
    private static final int __WARAHOUSE_ID_ISSET_ID = 0;
1557
    private static final int __PROVIDER_ID_ISSET_ID = 1;
1612
    private static final int __PROVIDER_ID_ISSET_ID = 1;
1558
    private static final int __DELIVERY_TIME_ISSET_ID = 2;
1613
    private static final int __DELIVERY_TIME_ISSET_ID = 2;
-
 
1614
    private static final int __RELIABILITY_ISSET_ID = 3;
1559
    private BitSet __isset_bit_vector = new BitSet(3);
1615
    private BitSet __isset_bit_vector = new BitSet(4);
1560
 
1616
 
1561
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1617
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1562
      put(_Fields.WARAHOUSE_ID, new FieldMetaData("warahouse_id", TFieldRequirementType.DEFAULT, 
1618
      put(_Fields.WARAHOUSE_ID, new FieldMetaData("warahouse_id", TFieldRequirementType.DEFAULT, 
1563
          new FieldValueMetaData(TType.I64)));
1619
          new FieldValueMetaData(TType.I64)));
1564
      put(_Fields.DESTINATION_PIN, new FieldMetaData("destination_pin", TFieldRequirementType.DEFAULT, 
1620
      put(_Fields.DESTINATION_PIN, new FieldMetaData("destination_pin", TFieldRequirementType.DEFAULT, 
1565
          new FieldValueMetaData(TType.STRING)));
1621
          new FieldValueMetaData(TType.STRING)));
1566
      put(_Fields.PROVIDER_ID, new FieldMetaData("provider_id", TFieldRequirementType.DEFAULT, 
1622
      put(_Fields.PROVIDER_ID, new FieldMetaData("provider_id", TFieldRequirementType.DEFAULT, 
1567
          new FieldValueMetaData(TType.I64)));
1623
          new FieldValueMetaData(TType.I64)));
1568
      put(_Fields.DELIVERY_TIME, new FieldMetaData("delivery_time", TFieldRequirementType.DEFAULT, 
1624
      put(_Fields.DELIVERY_TIME, new FieldMetaData("delivery_time", TFieldRequirementType.DEFAULT, 
1569
          new FieldValueMetaData(TType.I64)));
1625
          new FieldValueMetaData(TType.I64)));
-
 
1626
      put(_Fields.RELIABILITY, new FieldMetaData("reliability", TFieldRequirementType.DEFAULT, 
-
 
1627
          new FieldValueMetaData(TType.I64)));
1570
    }});
1628
    }});
1571
 
1629
 
1572
    static {
1630
    static {
1573
      FieldMetaData.addStructMetaDataMap(addDeliveryEstimate_args.class, metaDataMap);
1631
      FieldMetaData.addStructMetaDataMap(addDeliveryEstimate_args.class, metaDataMap);
1574
    }
1632
    }
Line 1578... Line 1636...
1578
 
1636
 
1579
    public addDeliveryEstimate_args(
1637
    public addDeliveryEstimate_args(
1580
      long warahouse_id,
1638
      long warahouse_id,
1581
      String destination_pin,
1639
      String destination_pin,
1582
      long provider_id,
1640
      long provider_id,
1583
      long delivery_time)
1641
      long delivery_time,
-
 
1642
      long reliability)
1584
    {
1643
    {
1585
      this();
1644
      this();
1586
      this.warahouse_id = warahouse_id;
1645
      this.warahouse_id = warahouse_id;
1587
      setWarahouse_idIsSet(true);
1646
      setWarahouse_idIsSet(true);
1588
      this.destination_pin = destination_pin;
1647
      this.destination_pin = destination_pin;
1589
      this.provider_id = provider_id;
1648
      this.provider_id = provider_id;
1590
      setProvider_idIsSet(true);
1649
      setProvider_idIsSet(true);
1591
      this.delivery_time = delivery_time;
1650
      this.delivery_time = delivery_time;
1592
      setDelivery_timeIsSet(true);
1651
      setDelivery_timeIsSet(true);
-
 
1652
      this.reliability = reliability;
-
 
1653
      setReliabilityIsSet(true);
1593
    }
1654
    }
1594
 
1655
 
1595
    /**
1656
    /**
1596
     * Performs a deep copy on <i>other</i>.
1657
     * Performs a deep copy on <i>other</i>.
1597
     */
1658
     */
Line 1602... Line 1663...
1602
      if (other.isSetDestination_pin()) {
1663
      if (other.isSetDestination_pin()) {
1603
        this.destination_pin = other.destination_pin;
1664
        this.destination_pin = other.destination_pin;
1604
      }
1665
      }
1605
      this.provider_id = other.provider_id;
1666
      this.provider_id = other.provider_id;
1606
      this.delivery_time = other.delivery_time;
1667
      this.delivery_time = other.delivery_time;
-
 
1668
      this.reliability = other.reliability;
1607
    }
1669
    }
1608
 
1670
 
1609
    public addDeliveryEstimate_args deepCopy() {
1671
    public addDeliveryEstimate_args deepCopy() {
1610
      return new addDeliveryEstimate_args(this);
1672
      return new addDeliveryEstimate_args(this);
1611
    }
1673
    }
Line 1706... Line 1768...
1706
 
1768
 
1707
    public void setDelivery_timeIsSet(boolean value) {
1769
    public void setDelivery_timeIsSet(boolean value) {
1708
      __isset_bit_vector.set(__DELIVERY_TIME_ISSET_ID, value);
1770
      __isset_bit_vector.set(__DELIVERY_TIME_ISSET_ID, value);
1709
    }
1771
    }
1710
 
1772
 
-
 
1773
    public long getReliability() {
-
 
1774
      return this.reliability;
-
 
1775
    }
-
 
1776
 
-
 
1777
    public addDeliveryEstimate_args setReliability(long reliability) {
-
 
1778
      this.reliability = reliability;
-
 
1779
      setReliabilityIsSet(true);
-
 
1780
      return this;
-
 
1781
    }
-
 
1782
 
-
 
1783
    public void unsetReliability() {
-
 
1784
      __isset_bit_vector.clear(__RELIABILITY_ISSET_ID);
-
 
1785
    }
-
 
1786
 
-
 
1787
    /** Returns true if field reliability is set (has been asigned a value) and false otherwise */
-
 
1788
    public boolean isSetReliability() {
-
 
1789
      return __isset_bit_vector.get(__RELIABILITY_ISSET_ID);
-
 
1790
    }
-
 
1791
 
-
 
1792
    public void setReliabilityIsSet(boolean value) {
-
 
1793
      __isset_bit_vector.set(__RELIABILITY_ISSET_ID, value);
-
 
1794
    }
-
 
1795
 
1711
    public void setFieldValue(_Fields field, Object value) {
1796
    public void setFieldValue(_Fields field, Object value) {
1712
      switch (field) {
1797
      switch (field) {
1713
      case WARAHOUSE_ID:
1798
      case WARAHOUSE_ID:
1714
        if (value == null) {
1799
        if (value == null) {
1715
          unsetWarahouse_id();
1800
          unsetWarahouse_id();
Line 1740... Line 1825...
1740
        } else {
1825
        } else {
1741
          setDelivery_time((Long)value);
1826
          setDelivery_time((Long)value);
1742
        }
1827
        }
1743
        break;
1828
        break;
1744
 
1829
 
-
 
1830
      case RELIABILITY:
-
 
1831
        if (value == null) {
-
 
1832
          unsetReliability();
-
 
1833
        } else {
-
 
1834
          setReliability((Long)value);
-
 
1835
        }
-
 
1836
        break;
-
 
1837
 
1745
      }
1838
      }
1746
    }
1839
    }
1747
 
1840
 
1748
    public void setFieldValue(int fieldID, Object value) {
1841
    public void setFieldValue(int fieldID, Object value) {
1749
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1842
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 1761... Line 1854...
1761
        return new Long(getProvider_id());
1854
        return new Long(getProvider_id());
1762
 
1855
 
1763
      case DELIVERY_TIME:
1856
      case DELIVERY_TIME:
1764
        return new Long(getDelivery_time());
1857
        return new Long(getDelivery_time());
1765
 
1858
 
-
 
1859
      case RELIABILITY:
-
 
1860
        return new Long(getReliability());
-
 
1861
 
1766
      }
1862
      }
1767
      throw new IllegalStateException();
1863
      throw new IllegalStateException();
1768
    }
1864
    }
1769
 
1865
 
1770
    public Object getFieldValue(int fieldId) {
1866
    public Object getFieldValue(int fieldId) {
Line 1780... Line 1876...
1780
        return isSetDestination_pin();
1876
        return isSetDestination_pin();
1781
      case PROVIDER_ID:
1877
      case PROVIDER_ID:
1782
        return isSetProvider_id();
1878
        return isSetProvider_id();
1783
      case DELIVERY_TIME:
1879
      case DELIVERY_TIME:
1784
        return isSetDelivery_time();
1880
        return isSetDelivery_time();
-
 
1881
      case RELIABILITY:
-
 
1882
        return isSetReliability();
1785
      }
1883
      }
1786
      throw new IllegalStateException();
1884
      throw new IllegalStateException();
1787
    }
1885
    }
1788
 
1886
 
1789
    public boolean isSet(int fieldID) {
1887
    public boolean isSet(int fieldID) {
Line 1837... Line 1935...
1837
          return false;
1935
          return false;
1838
        if (this.delivery_time != that.delivery_time)
1936
        if (this.delivery_time != that.delivery_time)
1839
          return false;
1937
          return false;
1840
      }
1938
      }
1841
 
1939
 
-
 
1940
      boolean this_present_reliability = true;
-
 
1941
      boolean that_present_reliability = true;
-
 
1942
      if (this_present_reliability || that_present_reliability) {
-
 
1943
        if (!(this_present_reliability && that_present_reliability))
-
 
1944
          return false;
-
 
1945
        if (this.reliability != that.reliability)
-
 
1946
          return false;
-
 
1947
      }
-
 
1948
 
1842
      return true;
1949
      return true;
1843
    }
1950
    }
1844
 
1951
 
1845
    @Override
1952
    @Override
1846
    public int hashCode() {
1953
    public int hashCode() {
Line 1885... Line 1992...
1885
      }
1992
      }
1886
      lastComparison = TBaseHelper.compareTo(delivery_time, typedOther.delivery_time);
1993
      lastComparison = TBaseHelper.compareTo(delivery_time, typedOther.delivery_time);
1887
      if (lastComparison != 0) {
1994
      if (lastComparison != 0) {
1888
        return lastComparison;
1995
        return lastComparison;
1889
      }
1996
      }
-
 
1997
      lastComparison = Boolean.valueOf(isSetReliability()).compareTo(isSetReliability());
-
 
1998
      if (lastComparison != 0) {
-
 
1999
        return lastComparison;
-
 
2000
      }
-
 
2001
      lastComparison = TBaseHelper.compareTo(reliability, typedOther.reliability);
-
 
2002
      if (lastComparison != 0) {
-
 
2003
        return lastComparison;
-
 
2004
      }
1890
      return 0;
2005
      return 0;
1891
    }
2006
    }
1892
 
2007
 
1893
    public void read(TProtocol iprot) throws TException {
2008
    public void read(TProtocol iprot) throws TException {
1894
      TField field;
2009
      TField field;
Line 1933... Line 2048...
1933
                setDelivery_timeIsSet(true);
2048
                setDelivery_timeIsSet(true);
1934
              } else { 
2049
              } else { 
1935
                TProtocolUtil.skip(iprot, field.type);
2050
                TProtocolUtil.skip(iprot, field.type);
1936
              }
2051
              }
1937
              break;
2052
              break;
-
 
2053
            case RELIABILITY:
-
 
2054
              if (field.type == TType.I64) {
-
 
2055
                this.reliability = iprot.readI64();
-
 
2056
                setReliabilityIsSet(true);
-
 
2057
              } else { 
-
 
2058
                TProtocolUtil.skip(iprot, field.type);
-
 
2059
              }
-
 
2060
              break;
1938
          }
2061
          }
1939
          iprot.readFieldEnd();
2062
          iprot.readFieldEnd();
1940
        }
2063
        }
1941
      }
2064
      }
1942
      iprot.readStructEnd();
2065
      iprot.readStructEnd();
Line 1959... Line 2082...
1959
      oprot.writeI64(this.provider_id);
2082
      oprot.writeI64(this.provider_id);
1960
      oprot.writeFieldEnd();
2083
      oprot.writeFieldEnd();
1961
      oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
2084
      oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
1962
      oprot.writeI64(this.delivery_time);
2085
      oprot.writeI64(this.delivery_time);
1963
      oprot.writeFieldEnd();
2086
      oprot.writeFieldEnd();
-
 
2087
      oprot.writeFieldBegin(RELIABILITY_FIELD_DESC);
-
 
2088
      oprot.writeI64(this.reliability);
-
 
2089
      oprot.writeFieldEnd();
1964
      oprot.writeFieldStop();
2090
      oprot.writeFieldStop();
1965
      oprot.writeStructEnd();
2091
      oprot.writeStructEnd();
1966
    }
2092
    }
1967
 
2093
 
1968
    @Override
2094
    @Override
Line 1987... Line 2113...
1987
      first = false;
2113
      first = false;
1988
      if (!first) sb.append(", ");
2114
      if (!first) sb.append(", ");
1989
      sb.append("delivery_time:");
2115
      sb.append("delivery_time:");
1990
      sb.append(this.delivery_time);
2116
      sb.append(this.delivery_time);
1991
      first = false;
2117
      first = false;
-
 
2118
      if (!first) sb.append(", ");
-
 
2119
      sb.append("reliability:");
-
 
2120
      sb.append(this.reliability);
-
 
2121
      first = false;
1992
      sb.append(")");
2122
      sb.append(")");
1993
      return sb.toString();
2123
      return sb.toString();
1994
    }
2124
    }
1995
 
2125
 
1996
    public void validate() throws TException {
2126
    public void validate() throws TException {
Line 2180... Line 2310...
2180
      boolean first = true;
2310
      boolean first = true;
2181
 
2311
 
2182
      sb.append(")");
2312
      sb.append(")");
2183
      return sb.toString();
2313
      return sb.toString();
2184
    }
2314
    }
-
 
2315
 
-
 
2316
    public void validate() throws TException {
-
 
2317
      // check for required fields
-
 
2318
    }
-
 
2319
 
-
 
2320
  }
-
 
2321
 
-
 
2322
  public static class addPincodeWarehouseMapping_args implements TBase<addPincodeWarehouseMapping_args._Fields>, java.io.Serializable, Cloneable, Comparable<addPincodeWarehouseMapping_args>   {
-
 
2323
    private static final TStruct STRUCT_DESC = new TStruct("addPincodeWarehouseMapping_args");
-
 
2324
 
-
 
2325
    private static final TField PIN_CODE_FIELD_DESC = new TField("pin_code", TType.STRING, (short)1);
-
 
2326
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)2);
-
 
2327
    private static final TField WAREHOUSE_PIN_FIELD_DESC = new TField("warehouse_pin", TType.STRING, (short)3);
-
 
2328
 
-
 
2329
    private String pin_code;
-
 
2330
    private long warehouse_id;
-
 
2331
    private String warehouse_pin;
-
 
2332
 
-
 
2333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2334
    public enum _Fields implements TFieldIdEnum {
-
 
2335
      PIN_CODE((short)1, "pin_code"),
-
 
2336
      WAREHOUSE_ID((short)2, "warehouse_id"),
-
 
2337
      WAREHOUSE_PIN((short)3, "warehouse_pin");
-
 
2338
 
-
 
2339
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2341
 
-
 
2342
      static {
-
 
2343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2344
          byId.put((int)field._thriftId, field);
-
 
2345
          byName.put(field.getFieldName(), field);
-
 
2346
        }
-
 
2347
      }
-
 
2348
 
-
 
2349
      /**
-
 
2350
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2351
       */
-
 
2352
      public static _Fields findByThriftId(int fieldId) {
-
 
2353
        return byId.get(fieldId);
-
 
2354
      }
-
 
2355
 
-
 
2356
      /**
-
 
2357
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2358
       * if it is not found.
-
 
2359
       */
-
 
2360
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2361
        _Fields fields = findByThriftId(fieldId);
-
 
2362
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2363
        return fields;
-
 
2364
      }
-
 
2365
 
-
 
2366
      /**
-
 
2367
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2368
       */
-
 
2369
      public static _Fields findByName(String name) {
-
 
2370
        return byName.get(name);
-
 
2371
      }
-
 
2372
 
-
 
2373
      private final short _thriftId;
-
 
2374
      private final String _fieldName;
-
 
2375
 
-
 
2376
      _Fields(short thriftId, String fieldName) {
-
 
2377
        _thriftId = thriftId;
-
 
2378
        _fieldName = fieldName;
-
 
2379
      }
-
 
2380
 
-
 
2381
      public short getThriftFieldId() {
-
 
2382
        return _thriftId;
-
 
2383
      }
-
 
2384
 
-
 
2385
      public String getFieldName() {
-
 
2386
        return _fieldName;
-
 
2387
      }
-
 
2388
    }
-
 
2389
 
-
 
2390
    // isset id assignments
-
 
2391
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
2392
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
2393
 
-
 
2394
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2395
      put(_Fields.PIN_CODE, new FieldMetaData("pin_code", TFieldRequirementType.DEFAULT, 
-
 
2396
          new FieldValueMetaData(TType.STRING)));
-
 
2397
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
-
 
2398
          new FieldValueMetaData(TType.I64)));
-
 
2399
      put(_Fields.WAREHOUSE_PIN, new FieldMetaData("warehouse_pin", TFieldRequirementType.DEFAULT, 
-
 
2400
          new FieldValueMetaData(TType.STRING)));
-
 
2401
    }});
-
 
2402
 
-
 
2403
    static {
-
 
2404
      FieldMetaData.addStructMetaDataMap(addPincodeWarehouseMapping_args.class, metaDataMap);
-
 
2405
    }
-
 
2406
 
-
 
2407
    public addPincodeWarehouseMapping_args() {
-
 
2408
    }
-
 
2409
 
-
 
2410
    public addPincodeWarehouseMapping_args(
-
 
2411
      String pin_code,
-
 
2412
      long warehouse_id,
-
 
2413
      String warehouse_pin)
-
 
2414
    {
-
 
2415
      this();
-
 
2416
      this.pin_code = pin_code;
-
 
2417
      this.warehouse_id = warehouse_id;
-
 
2418
      setWarehouse_idIsSet(true);
-
 
2419
      this.warehouse_pin = warehouse_pin;
-
 
2420
    }
-
 
2421
 
-
 
2422
    /**
-
 
2423
     * Performs a deep copy on <i>other</i>.
-
 
2424
     */
-
 
2425
    public addPincodeWarehouseMapping_args(addPincodeWarehouseMapping_args other) {
-
 
2426
      __isset_bit_vector.clear();
-
 
2427
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
2428
      if (other.isSetPin_code()) {
-
 
2429
        this.pin_code = other.pin_code;
-
 
2430
      }
-
 
2431
      this.warehouse_id = other.warehouse_id;
-
 
2432
      if (other.isSetWarehouse_pin()) {
-
 
2433
        this.warehouse_pin = other.warehouse_pin;
-
 
2434
      }
-
 
2435
    }
-
 
2436
 
-
 
2437
    public addPincodeWarehouseMapping_args deepCopy() {
-
 
2438
      return new addPincodeWarehouseMapping_args(this);
-
 
2439
    }
-
 
2440
 
-
 
2441
    @Deprecated
-
 
2442
    public addPincodeWarehouseMapping_args clone() {
-
 
2443
      return new addPincodeWarehouseMapping_args(this);
-
 
2444
    }
-
 
2445
 
-
 
2446
    public String getPin_code() {
-
 
2447
      return this.pin_code;
-
 
2448
    }
-
 
2449
 
-
 
2450
    public addPincodeWarehouseMapping_args setPin_code(String pin_code) {
-
 
2451
      this.pin_code = pin_code;
-
 
2452
      return this;
-
 
2453
    }
-
 
2454
 
-
 
2455
    public void unsetPin_code() {
-
 
2456
      this.pin_code = null;
-
 
2457
    }
-
 
2458
 
-
 
2459
    /** Returns true if field pin_code is set (has been asigned a value) and false otherwise */
-
 
2460
    public boolean isSetPin_code() {
-
 
2461
      return this.pin_code != null;
-
 
2462
    }
-
 
2463
 
-
 
2464
    public void setPin_codeIsSet(boolean value) {
-
 
2465
      if (!value) {
-
 
2466
        this.pin_code = null;
-
 
2467
      }
-
 
2468
    }
-
 
2469
 
-
 
2470
    public long getWarehouse_id() {
-
 
2471
      return this.warehouse_id;
-
 
2472
    }
-
 
2473
 
-
 
2474
    public addPincodeWarehouseMapping_args setWarehouse_id(long warehouse_id) {
-
 
2475
      this.warehouse_id = warehouse_id;
-
 
2476
      setWarehouse_idIsSet(true);
-
 
2477
      return this;
-
 
2478
    }
-
 
2479
 
-
 
2480
    public void unsetWarehouse_id() {
-
 
2481
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
2482
    }
-
 
2483
 
-
 
2484
    /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
-
 
2485
    public boolean isSetWarehouse_id() {
-
 
2486
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
2487
    }
-
 
2488
 
-
 
2489
    public void setWarehouse_idIsSet(boolean value) {
-
 
2490
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
2491
    }
-
 
2492
 
-
 
2493
    public String getWarehouse_pin() {
-
 
2494
      return this.warehouse_pin;
-
 
2495
    }
-
 
2496
 
-
 
2497
    public addPincodeWarehouseMapping_args setWarehouse_pin(String warehouse_pin) {
-
 
2498
      this.warehouse_pin = warehouse_pin;
-
 
2499
      return this;
-
 
2500
    }
-
 
2501
 
-
 
2502
    public void unsetWarehouse_pin() {
-
 
2503
      this.warehouse_pin = null;
-
 
2504
    }
-
 
2505
 
-
 
2506
    /** Returns true if field warehouse_pin is set (has been asigned a value) and false otherwise */
-
 
2507
    public boolean isSetWarehouse_pin() {
-
 
2508
      return this.warehouse_pin != null;
-
 
2509
    }
-
 
2510
 
-
 
2511
    public void setWarehouse_pinIsSet(boolean value) {
-
 
2512
      if (!value) {
-
 
2513
        this.warehouse_pin = null;
-
 
2514
      }
-
 
2515
    }
-
 
2516
 
-
 
2517
    public void setFieldValue(_Fields field, Object value) {
-
 
2518
      switch (field) {
-
 
2519
      case PIN_CODE:
-
 
2520
        if (value == null) {
-
 
2521
          unsetPin_code();
-
 
2522
        } else {
-
 
2523
          setPin_code((String)value);
-
 
2524
        }
-
 
2525
        break;
-
 
2526
 
-
 
2527
      case WAREHOUSE_ID:
-
 
2528
        if (value == null) {
-
 
2529
          unsetWarehouse_id();
-
 
2530
        } else {
-
 
2531
          setWarehouse_id((Long)value);
-
 
2532
        }
-
 
2533
        break;
-
 
2534
 
-
 
2535
      case WAREHOUSE_PIN:
-
 
2536
        if (value == null) {
-
 
2537
          unsetWarehouse_pin();
-
 
2538
        } else {
-
 
2539
          setWarehouse_pin((String)value);
-
 
2540
        }
-
 
2541
        break;
-
 
2542
 
-
 
2543
      }
-
 
2544
    }
-
 
2545
 
-
 
2546
    public void setFieldValue(int fieldID, Object value) {
-
 
2547
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2548
    }
-
 
2549
 
-
 
2550
    public Object getFieldValue(_Fields field) {
-
 
2551
      switch (field) {
-
 
2552
      case PIN_CODE:
-
 
2553
        return getPin_code();
-
 
2554
 
-
 
2555
      case WAREHOUSE_ID:
-
 
2556
        return new Long(getWarehouse_id());
-
 
2557
 
-
 
2558
      case WAREHOUSE_PIN:
-
 
2559
        return getWarehouse_pin();
-
 
2560
 
-
 
2561
      }
-
 
2562
      throw new IllegalStateException();
-
 
2563
    }
-
 
2564
 
-
 
2565
    public Object getFieldValue(int fieldId) {
-
 
2566
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2567
    }
-
 
2568
 
-
 
2569
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2570
    public boolean isSet(_Fields field) {
-
 
2571
      switch (field) {
-
 
2572
      case PIN_CODE:
-
 
2573
        return isSetPin_code();
-
 
2574
      case WAREHOUSE_ID:
-
 
2575
        return isSetWarehouse_id();
-
 
2576
      case WAREHOUSE_PIN:
-
 
2577
        return isSetWarehouse_pin();
-
 
2578
      }
-
 
2579
      throw new IllegalStateException();
-
 
2580
    }
-
 
2581
 
-
 
2582
    public boolean isSet(int fieldID) {
-
 
2583
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2584
    }
-
 
2585
 
-
 
2586
    @Override
-
 
2587
    public boolean equals(Object that) {
-
 
2588
      if (that == null)
-
 
2589
        return false;
-
 
2590
      if (that instanceof addPincodeWarehouseMapping_args)
-
 
2591
        return this.equals((addPincodeWarehouseMapping_args)that);
-
 
2592
      return false;
-
 
2593
    }
-
 
2594
 
-
 
2595
    public boolean equals(addPincodeWarehouseMapping_args that) {
-
 
2596
      if (that == null)
-
 
2597
        return false;
-
 
2598
 
-
 
2599
      boolean this_present_pin_code = true && this.isSetPin_code();
-
 
2600
      boolean that_present_pin_code = true && that.isSetPin_code();
-
 
2601
      if (this_present_pin_code || that_present_pin_code) {
-
 
2602
        if (!(this_present_pin_code && that_present_pin_code))
-
 
2603
          return false;
-
 
2604
        if (!this.pin_code.equals(that.pin_code))
-
 
2605
          return false;
-
 
2606
      }
-
 
2607
 
-
 
2608
      boolean this_present_warehouse_id = true;
-
 
2609
      boolean that_present_warehouse_id = true;
-
 
2610
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
2611
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
2612
          return false;
-
 
2613
        if (this.warehouse_id != that.warehouse_id)
-
 
2614
          return false;
-
 
2615
      }
-
 
2616
 
-
 
2617
      boolean this_present_warehouse_pin = true && this.isSetWarehouse_pin();
-
 
2618
      boolean that_present_warehouse_pin = true && that.isSetWarehouse_pin();
-
 
2619
      if (this_present_warehouse_pin || that_present_warehouse_pin) {
-
 
2620
        if (!(this_present_warehouse_pin && that_present_warehouse_pin))
-
 
2621
          return false;
-
 
2622
        if (!this.warehouse_pin.equals(that.warehouse_pin))
-
 
2623
          return false;
-
 
2624
      }
-
 
2625
 
-
 
2626
      return true;
-
 
2627
    }
-
 
2628
 
-
 
2629
    @Override
-
 
2630
    public int hashCode() {
-
 
2631
      return 0;
-
 
2632
    }
-
 
2633
 
-
 
2634
    public int compareTo(addPincodeWarehouseMapping_args other) {
-
 
2635
      if (!getClass().equals(other.getClass())) {
-
 
2636
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2637
      }
-
 
2638
 
-
 
2639
      int lastComparison = 0;
-
 
2640
      addPincodeWarehouseMapping_args typedOther = (addPincodeWarehouseMapping_args)other;
-
 
2641
 
-
 
2642
      lastComparison = Boolean.valueOf(isSetPin_code()).compareTo(isSetPin_code());
-
 
2643
      if (lastComparison != 0) {
-
 
2644
        return lastComparison;
-
 
2645
      }
-
 
2646
      lastComparison = TBaseHelper.compareTo(pin_code, typedOther.pin_code);
-
 
2647
      if (lastComparison != 0) {
-
 
2648
        return lastComparison;
-
 
2649
      }
-
 
2650
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
-
 
2651
      if (lastComparison != 0) {
-
 
2652
        return lastComparison;
-
 
2653
      }
-
 
2654
      lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
-
 
2655
      if (lastComparison != 0) {
-
 
2656
        return lastComparison;
-
 
2657
      }
-
 
2658
      lastComparison = Boolean.valueOf(isSetWarehouse_pin()).compareTo(isSetWarehouse_pin());
-
 
2659
      if (lastComparison != 0) {
-
 
2660
        return lastComparison;
-
 
2661
      }
-
 
2662
      lastComparison = TBaseHelper.compareTo(warehouse_pin, typedOther.warehouse_pin);
-
 
2663
      if (lastComparison != 0) {
-
 
2664
        return lastComparison;
-
 
2665
      }
-
 
2666
      return 0;
-
 
2667
    }
-
 
2668
 
-
 
2669
    public void read(TProtocol iprot) throws TException {
-
 
2670
      TField field;
-
 
2671
      iprot.readStructBegin();
-
 
2672
      while (true)
-
 
2673
      {
-
 
2674
        field = iprot.readFieldBegin();
-
 
2675
        if (field.type == TType.STOP) { 
-
 
2676
          break;
-
 
2677
        }
-
 
2678
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2679
        if (fieldId == null) {
-
 
2680
          TProtocolUtil.skip(iprot, field.type);
-
 
2681
        } else {
-
 
2682
          switch (fieldId) {
-
 
2683
            case PIN_CODE:
-
 
2684
              if (field.type == TType.STRING) {
-
 
2685
                this.pin_code = iprot.readString();
-
 
2686
              } else { 
-
 
2687
                TProtocolUtil.skip(iprot, field.type);
-
 
2688
              }
-
 
2689
              break;
-
 
2690
            case WAREHOUSE_ID:
-
 
2691
              if (field.type == TType.I64) {
-
 
2692
                this.warehouse_id = iprot.readI64();
-
 
2693
                setWarehouse_idIsSet(true);
-
 
2694
              } else { 
-
 
2695
                TProtocolUtil.skip(iprot, field.type);
-
 
2696
              }
-
 
2697
              break;
-
 
2698
            case WAREHOUSE_PIN:
-
 
2699
              if (field.type == TType.STRING) {
-
 
2700
                this.warehouse_pin = iprot.readString();
-
 
2701
              } else { 
-
 
2702
                TProtocolUtil.skip(iprot, field.type);
-
 
2703
              }
-
 
2704
              break;
-
 
2705
          }
-
 
2706
          iprot.readFieldEnd();
-
 
2707
        }
-
 
2708
      }
-
 
2709
      iprot.readStructEnd();
-
 
2710
      validate();
-
 
2711
    }
-
 
2712
 
-
 
2713
    public void write(TProtocol oprot) throws TException {
-
 
2714
      validate();
-
 
2715
 
-
 
2716
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2717
      if (this.pin_code != null) {
-
 
2718
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
-
 
2719
        oprot.writeString(this.pin_code);
-
 
2720
        oprot.writeFieldEnd();
-
 
2721
      }
-
 
2722
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
2723
      oprot.writeI64(this.warehouse_id);
-
 
2724
      oprot.writeFieldEnd();
-
 
2725
      if (this.warehouse_pin != null) {
-
 
2726
        oprot.writeFieldBegin(WAREHOUSE_PIN_FIELD_DESC);
-
 
2727
        oprot.writeString(this.warehouse_pin);
-
 
2728
        oprot.writeFieldEnd();
-
 
2729
      }
-
 
2730
      oprot.writeFieldStop();
-
 
2731
      oprot.writeStructEnd();
-
 
2732
    }
-
 
2733
 
-
 
2734
    @Override
-
 
2735
    public String toString() {
-
 
2736
      StringBuilder sb = new StringBuilder("addPincodeWarehouseMapping_args(");
-
 
2737
      boolean first = true;
-
 
2738
 
-
 
2739
      sb.append("pin_code:");
-
 
2740
      if (this.pin_code == null) {
-
 
2741
        sb.append("null");
-
 
2742
      } else {
-
 
2743
        sb.append(this.pin_code);
-
 
2744
      }
-
 
2745
      first = false;
-
 
2746
      if (!first) sb.append(", ");
-
 
2747
      sb.append("warehouse_id:");
-
 
2748
      sb.append(this.warehouse_id);
-
 
2749
      first = false;
-
 
2750
      if (!first) sb.append(", ");
-
 
2751
      sb.append("warehouse_pin:");
-
 
2752
      if (this.warehouse_pin == null) {
-
 
2753
        sb.append("null");
-
 
2754
      } else {
-
 
2755
        sb.append(this.warehouse_pin);
-
 
2756
      }
-
 
2757
      first = false;
-
 
2758
      sb.append(")");
-
 
2759
      return sb.toString();
-
 
2760
    }
-
 
2761
 
-
 
2762
    public void validate() throws TException {
-
 
2763
      // check for required fields
-
 
2764
    }
-
 
2765
 
-
 
2766
  }
-
 
2767
 
-
 
2768
  public static class addPincodeWarehouseMapping_result implements TBase<addPincodeWarehouseMapping_result._Fields>, java.io.Serializable, Cloneable, Comparable<addPincodeWarehouseMapping_result>   {
-
 
2769
    private static final TStruct STRUCT_DESC = new TStruct("addPincodeWarehouseMapping_result");
-
 
2770
 
-
 
2771
 
-
 
2772
 
-
 
2773
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2774
    public enum _Fields implements TFieldIdEnum {
-
 
2775
;
-
 
2776
 
-
 
2777
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2779
 
-
 
2780
      static {
-
 
2781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2782
          byId.put((int)field._thriftId, field);
-
 
2783
          byName.put(field.getFieldName(), field);
-
 
2784
        }
-
 
2785
      }
-
 
2786
 
-
 
2787
      /**
-
 
2788
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2789
       */
-
 
2790
      public static _Fields findByThriftId(int fieldId) {
-
 
2791
        return byId.get(fieldId);
-
 
2792
      }
-
 
2793
 
-
 
2794
      /**
-
 
2795
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2796
       * if it is not found.
-
 
2797
       */
-
 
2798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2799
        _Fields fields = findByThriftId(fieldId);
-
 
2800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2801
        return fields;
-
 
2802
      }
-
 
2803
 
-
 
2804
      /**
-
 
2805
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2806
       */
-
 
2807
      public static _Fields findByName(String name) {
-
 
2808
        return byName.get(name);
-
 
2809
      }
-
 
2810
 
-
 
2811
      private final short _thriftId;
-
 
2812
      private final String _fieldName;
-
 
2813
 
-
 
2814
      _Fields(short thriftId, String fieldName) {
-
 
2815
        _thriftId = thriftId;
-
 
2816
        _fieldName = fieldName;
-
 
2817
      }
-
 
2818
 
-
 
2819
      public short getThriftFieldId() {
-
 
2820
        return _thriftId;
-
 
2821
      }
-
 
2822
 
-
 
2823
      public String getFieldName() {
-
 
2824
        return _fieldName;
-
 
2825
      }
-
 
2826
    }
-
 
2827
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2828
    }});
-
 
2829
 
-
 
2830
    static {
-
 
2831
      FieldMetaData.addStructMetaDataMap(addPincodeWarehouseMapping_result.class, metaDataMap);
-
 
2832
    }
-
 
2833
 
-
 
2834
    public addPincodeWarehouseMapping_result() {
-
 
2835
    }
-
 
2836
 
-
 
2837
    /**
-
 
2838
     * Performs a deep copy on <i>other</i>.
-
 
2839
     */
-
 
2840
    public addPincodeWarehouseMapping_result(addPincodeWarehouseMapping_result other) {
-
 
2841
    }
-
 
2842
 
-
 
2843
    public addPincodeWarehouseMapping_result deepCopy() {
-
 
2844
      return new addPincodeWarehouseMapping_result(this);
-
 
2845
    }
-
 
2846
 
-
 
2847
    @Deprecated
-
 
2848
    public addPincodeWarehouseMapping_result clone() {
-
 
2849
      return new addPincodeWarehouseMapping_result(this);
-
 
2850
    }
-
 
2851
 
-
 
2852
    public void setFieldValue(_Fields field, Object value) {
-
 
2853
      switch (field) {
-
 
2854
      }
-
 
2855
    }
-
 
2856
 
-
 
2857
    public void setFieldValue(int fieldID, Object value) {
-
 
2858
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2859
    }
-
 
2860
 
-
 
2861
    public Object getFieldValue(_Fields field) {
-
 
2862
      switch (field) {
-
 
2863
      }
-
 
2864
      throw new IllegalStateException();
-
 
2865
    }
-
 
2866
 
-
 
2867
    public Object getFieldValue(int fieldId) {
-
 
2868
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2869
    }
-
 
2870
 
-
 
2871
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2872
    public boolean isSet(_Fields field) {
-
 
2873
      switch (field) {
-
 
2874
      }
-
 
2875
      throw new IllegalStateException();
-
 
2876
    }
-
 
2877
 
-
 
2878
    public boolean isSet(int fieldID) {
-
 
2879
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2880
    }
-
 
2881
 
-
 
2882
    @Override
-
 
2883
    public boolean equals(Object that) {
-
 
2884
      if (that == null)
-
 
2885
        return false;
-
 
2886
      if (that instanceof addPincodeWarehouseMapping_result)
-
 
2887
        return this.equals((addPincodeWarehouseMapping_result)that);
-
 
2888
      return false;
-
 
2889
    }
-
 
2890
 
-
 
2891
    public boolean equals(addPincodeWarehouseMapping_result that) {
-
 
2892
      if (that == null)
-
 
2893
        return false;
-
 
2894
 
-
 
2895
      return true;
-
 
2896
    }
-
 
2897
 
-
 
2898
    @Override
-
 
2899
    public int hashCode() {
-
 
2900
      return 0;
-
 
2901
    }
-
 
2902
 
-
 
2903
    public int compareTo(addPincodeWarehouseMapping_result other) {
-
 
2904
      if (!getClass().equals(other.getClass())) {
-
 
2905
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2906
      }
-
 
2907
 
-
 
2908
      int lastComparison = 0;
-
 
2909
      addPincodeWarehouseMapping_result typedOther = (addPincodeWarehouseMapping_result)other;
-
 
2910
 
-
 
2911
      return 0;
-
 
2912
    }
-
 
2913
 
-
 
2914
    public void read(TProtocol iprot) throws TException {
-
 
2915
      TField field;
-
 
2916
      iprot.readStructBegin();
-
 
2917
      while (true)
-
 
2918
      {
-
 
2919
        field = iprot.readFieldBegin();
-
 
2920
        if (field.type == TType.STOP) { 
-
 
2921
          break;
-
 
2922
        }
-
 
2923
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2924
        if (fieldId == null) {
-
 
2925
          TProtocolUtil.skip(iprot, field.type);
-
 
2926
        } else {
-
 
2927
          switch (fieldId) {
-
 
2928
          }
-
 
2929
          iprot.readFieldEnd();
-
 
2930
        }
-
 
2931
      }
-
 
2932
      iprot.readStructEnd();
-
 
2933
      validate();
-
 
2934
    }
-
 
2935
 
-
 
2936
    public void write(TProtocol oprot) throws TException {
-
 
2937
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2938
 
-
 
2939
      oprot.writeFieldStop();
-
 
2940
      oprot.writeStructEnd();
-
 
2941
    }
-
 
2942
 
-
 
2943
    @Override
-
 
2944
    public String toString() {
-
 
2945
      StringBuilder sb = new StringBuilder("addPincodeWarehouseMapping_result(");
-
 
2946
      boolean first = true;
-
 
2947
 
-
 
2948
      sb.append(")");
-
 
2949
      return sb.toString();
-
 
2950
    }
2185
 
2951
 
2186
    public void validate() throws TException {
2952
    public void validate() throws TException {
2187
      // check for required fields
2953
      // check for required fields
2188
    }
2954
    }
2189
 
2955