Subversion Repositories SmartDukaan

Rev

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

Rev 2077 Rev 2114
Line 160... Line 160...
160
     * @param itemId
160
     * @param itemId
161
     */
161
     */
162
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, TException;
162
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, TException;
163
 
163
 
164
    /**
164
    /**
165
     * Updates Vendor item pricing.
165
     * Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
166
     * Raises an exception if either the item or vendor can't be found corresponding to their ids.
166
     * Raises an exception if either the item or vendor can't be found corresponding to their ids.
167
     * Raises an exception if no pricing exists for vendor-item mapping.
-
 
168
     * 
167
     * 
169
     * @param vendorItemPricing
168
     * @param vendorItemPricing
170
     */
169
     */
171
    public void updateVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, TException;
170
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, TException;
172
 
171
 
173
    /**
172
    /**
174
     * Return list of all vendors
173
     * Return list of all vendors
175
     */
174
     */
176
    public List<Vendor> getAllVendors() throws TException;
175
    public List<Vendor> getAllVendors() throws TException;
177
 
176
 
-
 
177
    /**
-
 
178
     * Checks if the item exists in VendorItemMapping for the given hotspot parameters (ProductGroup,Brand,ModelNumber,Color),
-
 
179
     * vendor and category.
-
 
180
     * Returns true if it exists else false.
-
 
181
     * 
-
 
182
     * @param productGroup
-
 
183
     * @param brand
-
 
184
     * @param modelNumber
-
 
185
     * @param color
-
 
186
     * @param vendor_id
-
 
187
     * @param category
-
 
188
     */
-
 
189
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws TException;
-
 
190
 
-
 
191
    /**
-
 
192
     * Adds vendor item mapping. Updates the key it the mapping already exists.
-
 
193
     * 
-
 
194
     * @param vendorItemMapping
-
 
195
     */
-
 
196
    public void addVendorItemMapping(VendorItemMapping vendorItemMapping) throws InventoryServiceException, TException;
-
 
197
 
-
 
198
    /**
-
 
199
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
-
 
200
     * Raises an exception if item not found corresponding to itemId
-
 
201
     * 
-
 
202
     * @param itemId
-
 
203
     */
-
 
204
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, TException;
-
 
205
 
-
 
206
    /**
-
 
207
     * Checks if similar item exists (with same ProductGroup, Brand, ModelNumber, Color)
-
 
208
     * If yes, returns the itemId else returns 0
-
 
209
     * 
-
 
210
     * @param productGroup
-
 
211
     * @param brand
-
 
212
     * @param modelNumber
-
 
213
     * @param color
-
 
214
     */
-
 
215
    public long checkSimilarItem(String productGroup, String brand, String modelNumber, String color) throws TException;
-
 
216
 
178
  }
217
  }
179
 
218
 
180
  public static class Client implements Iface {
219
  public static class Client implements Iface {
181
    public Client(TProtocol prot)
220
    public Client(TProtocol prot)
182
    {
221
    {
Line 1662... Line 1701...
1662
        throw result.cex;
1701
        throw result.cex;
1663
      }
1702
      }
1664
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1703
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1665
    }
1704
    }
1666
 
1705
 
1667
    public void updateVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, TException
1706
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, TException
1668
    {
1707
    {
1669
      send_updateVendorItemPricing(vendorItemPricing);
1708
      send_addVendorItemPricing(vendorItemPricing);
1670
      recv_updateVendorItemPricing();
1709
      recv_addVendorItemPricing();
1671
    }
1710
    }
1672
 
1711
 
1673
    public void send_updateVendorItemPricing(VendorItemPricing vendorItemPricing) throws TException
1712
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws TException
1674
    {
1713
    {
1675
      oprot_.writeMessageBegin(new TMessage("updateVendorItemPricing", TMessageType.CALL, seqid_));
1714
      oprot_.writeMessageBegin(new TMessage("addVendorItemPricing", TMessageType.CALL, seqid_));
1676
      updateVendorItemPricing_args args = new updateVendorItemPricing_args();
1715
      addVendorItemPricing_args args = new addVendorItemPricing_args();
1677
      args.vendorItemPricing = vendorItemPricing;
1716
      args.vendorItemPricing = vendorItemPricing;
1678
      args.write(oprot_);
1717
      args.write(oprot_);
1679
      oprot_.writeMessageEnd();
1718
      oprot_.writeMessageEnd();
1680
      oprot_.getTransport().flush();
1719
      oprot_.getTransport().flush();
1681
    }
1720
    }
1682
 
1721
 
1683
    public void recv_updateVendorItemPricing() throws InventoryServiceException, TException
1722
    public void recv_addVendorItemPricing() throws InventoryServiceException, TException
1684
    {
1723
    {
1685
      TMessage msg = iprot_.readMessageBegin();
1724
      TMessage msg = iprot_.readMessageBegin();
1686
      if (msg.type == TMessageType.EXCEPTION) {
1725
      if (msg.type == TMessageType.EXCEPTION) {
1687
        TApplicationException x = TApplicationException.read(iprot_);
1726
        TApplicationException x = TApplicationException.read(iprot_);
1688
        iprot_.readMessageEnd();
1727
        iprot_.readMessageEnd();
1689
        throw x;
1728
        throw x;
1690
      }
1729
      }
1691
      updateVendorItemPricing_result result = new updateVendorItemPricing_result();
1730
      addVendorItemPricing_result result = new addVendorItemPricing_result();
1692
      result.read(iprot_);
1731
      result.read(iprot_);
1693
      iprot_.readMessageEnd();
1732
      iprot_.readMessageEnd();
1694
      if (result.cex != null) {
1733
      if (result.cex != null) {
1695
        throw result.cex;
1734
        throw result.cex;
1696
      }
1735
      }
Line 1727... Line 1766...
1727
        return result.success;
1766
        return result.success;
1728
      }
1767
      }
1729
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1768
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1730
    }
1769
    }
1731
 
1770
 
-
 
1771
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws TException
-
 
1772
    {
-
 
1773
      send_itemExists(productGroup, brand, modelNumber, color, vendor_id, category);
-
 
1774
      return recv_itemExists();
-
 
1775
    }
-
 
1776
 
-
 
1777
    public void send_itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws TException
-
 
1778
    {
-
 
1779
      oprot_.writeMessageBegin(new TMessage("itemExists", TMessageType.CALL, seqid_));
-
 
1780
      itemExists_args args = new itemExists_args();
-
 
1781
      args.productGroup = productGroup;
-
 
1782
      args.brand = brand;
-
 
1783
      args.modelNumber = modelNumber;
-
 
1784
      args.color = color;
-
 
1785
      args.vendor_id = vendor_id;
-
 
1786
      args.category = category;
-
 
1787
      args.write(oprot_);
-
 
1788
      oprot_.writeMessageEnd();
-
 
1789
      oprot_.getTransport().flush();
-
 
1790
    }
-
 
1791
 
-
 
1792
    public boolean recv_itemExists() throws TException
-
 
1793
    {
-
 
1794
      TMessage msg = iprot_.readMessageBegin();
-
 
1795
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1796
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1797
        iprot_.readMessageEnd();
-
 
1798
        throw x;
-
 
1799
      }
-
 
1800
      itemExists_result result = new itemExists_result();
-
 
1801
      result.read(iprot_);
-
 
1802
      iprot_.readMessageEnd();
-
 
1803
      if (result.isSetSuccess()) {
-
 
1804
        return result.success;
-
 
1805
      }
-
 
1806
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "itemExists failed: unknown result");
-
 
1807
    }
-
 
1808
 
-
 
1809
    public void addVendorItemMapping(VendorItemMapping vendorItemMapping) throws InventoryServiceException, TException
-
 
1810
    {
-
 
1811
      send_addVendorItemMapping(vendorItemMapping);
-
 
1812
      recv_addVendorItemMapping();
-
 
1813
    }
-
 
1814
 
-
 
1815
    public void send_addVendorItemMapping(VendorItemMapping vendorItemMapping) throws TException
-
 
1816
    {
-
 
1817
      oprot_.writeMessageBegin(new TMessage("addVendorItemMapping", TMessageType.CALL, seqid_));
-
 
1818
      addVendorItemMapping_args args = new addVendorItemMapping_args();
-
 
1819
      args.vendorItemMapping = vendorItemMapping;
-
 
1820
      args.write(oprot_);
-
 
1821
      oprot_.writeMessageEnd();
-
 
1822
      oprot_.getTransport().flush();
-
 
1823
    }
-
 
1824
 
-
 
1825
    public void recv_addVendorItemMapping() throws InventoryServiceException, TException
-
 
1826
    {
-
 
1827
      TMessage msg = iprot_.readMessageBegin();
-
 
1828
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1829
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1830
        iprot_.readMessageEnd();
-
 
1831
        throw x;
-
 
1832
      }
-
 
1833
      addVendorItemMapping_result result = new addVendorItemMapping_result();
-
 
1834
      result.read(iprot_);
-
 
1835
      iprot_.readMessageEnd();
-
 
1836
      if (result.cex != null) {
-
 
1837
        throw result.cex;
-
 
1838
      }
-
 
1839
      return;
-
 
1840
    }
-
 
1841
 
-
 
1842
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, TException
-
 
1843
    {
-
 
1844
      send_getVendorItemMappings(itemId);
-
 
1845
      return recv_getVendorItemMappings();
-
 
1846
    }
-
 
1847
 
-
 
1848
    public void send_getVendorItemMappings(long itemId) throws TException
-
 
1849
    {
-
 
1850
      oprot_.writeMessageBegin(new TMessage("getVendorItemMappings", TMessageType.CALL, seqid_));
-
 
1851
      getVendorItemMappings_args args = new getVendorItemMappings_args();
-
 
1852
      args.itemId = itemId;
-
 
1853
      args.write(oprot_);
-
 
1854
      oprot_.writeMessageEnd();
-
 
1855
      oprot_.getTransport().flush();
-
 
1856
    }
-
 
1857
 
-
 
1858
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, TException
-
 
1859
    {
-
 
1860
      TMessage msg = iprot_.readMessageBegin();
-
 
1861
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1862
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1863
        iprot_.readMessageEnd();
-
 
1864
        throw x;
-
 
1865
      }
-
 
1866
      getVendorItemMappings_result result = new getVendorItemMappings_result();
-
 
1867
      result.read(iprot_);
-
 
1868
      iprot_.readMessageEnd();
-
 
1869
      if (result.isSetSuccess()) {
-
 
1870
        return result.success;
-
 
1871
      }
-
 
1872
      if (result.cex != null) {
-
 
1873
        throw result.cex;
-
 
1874
      }
-
 
1875
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
-
 
1876
    }
-
 
1877
 
-
 
1878
    public long checkSimilarItem(String productGroup, String brand, String modelNumber, String color) throws TException
-
 
1879
    {
-
 
1880
      send_checkSimilarItem(productGroup, brand, modelNumber, color);
-
 
1881
      return recv_checkSimilarItem();
-
 
1882
    }
-
 
1883
 
-
 
1884
    public void send_checkSimilarItem(String productGroup, String brand, String modelNumber, String color) throws TException
-
 
1885
    {
-
 
1886
      oprot_.writeMessageBegin(new TMessage("checkSimilarItem", TMessageType.CALL, seqid_));
-
 
1887
      checkSimilarItem_args args = new checkSimilarItem_args();
-
 
1888
      args.productGroup = productGroup;
-
 
1889
      args.brand = brand;
-
 
1890
      args.modelNumber = modelNumber;
-
 
1891
      args.color = color;
-
 
1892
      args.write(oprot_);
-
 
1893
      oprot_.writeMessageEnd();
-
 
1894
      oprot_.getTransport().flush();
-
 
1895
    }
-
 
1896
 
-
 
1897
    public long recv_checkSimilarItem() throws TException
-
 
1898
    {
-
 
1899
      TMessage msg = iprot_.readMessageBegin();
-
 
1900
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1901
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1902
        iprot_.readMessageEnd();
-
 
1903
        throw x;
-
 
1904
      }
-
 
1905
      checkSimilarItem_result result = new checkSimilarItem_result();
-
 
1906
      result.read(iprot_);
-
 
1907
      iprot_.readMessageEnd();
-
 
1908
      if (result.isSetSuccess()) {
-
 
1909
        return result.success;
-
 
1910
      }
-
 
1911
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
-
 
1912
    }
-
 
1913
 
1732
  }
1914
  }
1733
  public static class Processor implements TProcessor {
1915
  public static class Processor implements TProcessor {
1734
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1916
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1735
    public Processor(Iface iface)
1917
    public Processor(Iface iface)
1736
    {
1918
    {
Line 1774... Line 1956...
1774
      processMap_.put("getItemPricing", new getItemPricing());
1956
      processMap_.put("getItemPricing", new getItemPricing());
1775
      processMap_.put("addCategory", new addCategory());
1957
      processMap_.put("addCategory", new addCategory());
1776
      processMap_.put("getCategory", new getCategory());
1958
      processMap_.put("getCategory", new getCategory());
1777
      processMap_.put("getAllCategories", new getAllCategories());
1959
      processMap_.put("getAllCategories", new getAllCategories());
1778
      processMap_.put("getAllItemPricing", new getAllItemPricing());
1960
      processMap_.put("getAllItemPricing", new getAllItemPricing());
1779
      processMap_.put("updateVendorItemPricing", new updateVendorItemPricing());
1961
      processMap_.put("addVendorItemPricing", new addVendorItemPricing());
1780
      processMap_.put("getAllVendors", new getAllVendors());
1962
      processMap_.put("getAllVendors", new getAllVendors());
-
 
1963
      processMap_.put("itemExists", new itemExists());
-
 
1964
      processMap_.put("addVendorItemMapping", new addVendorItemMapping());
-
 
1965
      processMap_.put("getVendorItemMappings", new getVendorItemMappings());
-
 
1966
      processMap_.put("checkSimilarItem", new checkSimilarItem());
1781
    }
1967
    }
1782
 
1968
 
1783
    protected static interface ProcessFunction {
1969
    protected static interface ProcessFunction {
1784
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1970
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1785
    }
1971
    }
Line 2904... Line 3090...
2904
        oprot.getTransport().flush();
3090
        oprot.getTransport().flush();
2905
      }
3091
      }
2906
 
3092
 
2907
    }
3093
    }
2908
 
3094
 
2909
    private class updateVendorItemPricing implements ProcessFunction {
3095
    private class addVendorItemPricing implements ProcessFunction {
2910
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3096
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2911
      {
3097
      {
2912
        updateVendorItemPricing_args args = new updateVendorItemPricing_args();
3098
        addVendorItemPricing_args args = new addVendorItemPricing_args();
2913
        args.read(iprot);
3099
        args.read(iprot);
2914
        iprot.readMessageEnd();
3100
        iprot.readMessageEnd();
2915
        updateVendorItemPricing_result result = new updateVendorItemPricing_result();
3101
        addVendorItemPricing_result result = new addVendorItemPricing_result();
2916
        try {
3102
        try {
2917
          iface_.updateVendorItemPricing(args.vendorItemPricing);
3103
          iface_.addVendorItemPricing(args.vendorItemPricing);
2918
        } catch (InventoryServiceException cex) {
3104
        } catch (InventoryServiceException cex) {
2919
          result.cex = cex;
3105
          result.cex = cex;
2920
        } catch (Throwable th) {
3106
        } catch (Throwable th) {
2921
          LOGGER.error("Internal error processing updateVendorItemPricing", th);
3107
          LOGGER.error("Internal error processing addVendorItemPricing", th);
2922
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateVendorItemPricing");
3108
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addVendorItemPricing");
2923
          oprot.writeMessageBegin(new TMessage("updateVendorItemPricing", TMessageType.EXCEPTION, seqid));
3109
          oprot.writeMessageBegin(new TMessage("addVendorItemPricing", TMessageType.EXCEPTION, seqid));
2924
          x.write(oprot);
3110
          x.write(oprot);
2925
          oprot.writeMessageEnd();
3111
          oprot.writeMessageEnd();
2926
          oprot.getTransport().flush();
3112
          oprot.getTransport().flush();
2927
          return;
3113
          return;
2928
        }
3114
        }
2929
        oprot.writeMessageBegin(new TMessage("updateVendorItemPricing", TMessageType.REPLY, seqid));
3115
        oprot.writeMessageBegin(new TMessage("addVendorItemPricing", TMessageType.REPLY, seqid));
2930
        result.write(oprot);
3116
        result.write(oprot);
2931
        oprot.writeMessageEnd();
3117
        oprot.writeMessageEnd();
2932
        oprot.getTransport().flush();
3118
        oprot.getTransport().flush();
2933
      }
3119
      }
2934
 
3120
 
Line 2948... Line 3134...
2948
        oprot.getTransport().flush();
3134
        oprot.getTransport().flush();
2949
      }
3135
      }
2950
 
3136
 
2951
    }
3137
    }
2952
 
3138
 
-
 
3139
    private class itemExists implements ProcessFunction {
-
 
3140
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3141
      {
-
 
3142
        itemExists_args args = new itemExists_args();
-
 
3143
        args.read(iprot);
-
 
3144
        iprot.readMessageEnd();
-
 
3145
        itemExists_result result = new itemExists_result();
-
 
3146
        result.success = iface_.itemExists(args.productGroup, args.brand, args.modelNumber, args.color, args.vendor_id, args.category);
-
 
3147
        result.setSuccessIsSet(true);
-
 
3148
        oprot.writeMessageBegin(new TMessage("itemExists", TMessageType.REPLY, seqid));
-
 
3149
        result.write(oprot);
-
 
3150
        oprot.writeMessageEnd();
-
 
3151
        oprot.getTransport().flush();
-
 
3152
      }
-
 
3153
 
-
 
3154
    }
-
 
3155
 
-
 
3156
    private class addVendorItemMapping implements ProcessFunction {
-
 
3157
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3158
      {
-
 
3159
        addVendorItemMapping_args args = new addVendorItemMapping_args();
-
 
3160
        args.read(iprot);
-
 
3161
        iprot.readMessageEnd();
-
 
3162
        addVendorItemMapping_result result = new addVendorItemMapping_result();
-
 
3163
        try {
-
 
3164
          iface_.addVendorItemMapping(args.vendorItemMapping);
-
 
3165
        } catch (InventoryServiceException cex) {
-
 
3166
          result.cex = cex;
-
 
3167
        } catch (Throwable th) {
-
 
3168
          LOGGER.error("Internal error processing addVendorItemMapping", th);
-
 
3169
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addVendorItemMapping");
-
 
3170
          oprot.writeMessageBegin(new TMessage("addVendorItemMapping", TMessageType.EXCEPTION, seqid));
-
 
3171
          x.write(oprot);
-
 
3172
          oprot.writeMessageEnd();
-
 
3173
          oprot.getTransport().flush();
-
 
3174
          return;
-
 
3175
        }
-
 
3176
        oprot.writeMessageBegin(new TMessage("addVendorItemMapping", TMessageType.REPLY, seqid));
-
 
3177
        result.write(oprot);
-
 
3178
        oprot.writeMessageEnd();
-
 
3179
        oprot.getTransport().flush();
-
 
3180
      }
-
 
3181
 
-
 
3182
    }
-
 
3183
 
-
 
3184
    private class getVendorItemMappings implements ProcessFunction {
-
 
3185
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3186
      {
-
 
3187
        getVendorItemMappings_args args = new getVendorItemMappings_args();
-
 
3188
        args.read(iprot);
-
 
3189
        iprot.readMessageEnd();
-
 
3190
        getVendorItemMappings_result result = new getVendorItemMappings_result();
-
 
3191
        try {
-
 
3192
          result.success = iface_.getVendorItemMappings(args.itemId);
-
 
3193
        } catch (InventoryServiceException cex) {
-
 
3194
          result.cex = cex;
-
 
3195
        } catch (Throwable th) {
-
 
3196
          LOGGER.error("Internal error processing getVendorItemMappings", th);
-
 
3197
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getVendorItemMappings");
-
 
3198
          oprot.writeMessageBegin(new TMessage("getVendorItemMappings", TMessageType.EXCEPTION, seqid));
-
 
3199
          x.write(oprot);
-
 
3200
          oprot.writeMessageEnd();
-
 
3201
          oprot.getTransport().flush();
-
 
3202
          return;
-
 
3203
        }
-
 
3204
        oprot.writeMessageBegin(new TMessage("getVendorItemMappings", TMessageType.REPLY, seqid));
-
 
3205
        result.write(oprot);
-
 
3206
        oprot.writeMessageEnd();
-
 
3207
        oprot.getTransport().flush();
-
 
3208
      }
-
 
3209
 
-
 
3210
    }
-
 
3211
 
-
 
3212
    private class checkSimilarItem implements ProcessFunction {
-
 
3213
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3214
      {
-
 
3215
        checkSimilarItem_args args = new checkSimilarItem_args();
-
 
3216
        args.read(iprot);
-
 
3217
        iprot.readMessageEnd();
-
 
3218
        checkSimilarItem_result result = new checkSimilarItem_result();
-
 
3219
        result.success = iface_.checkSimilarItem(args.productGroup, args.brand, args.modelNumber, args.color);
-
 
3220
        result.setSuccessIsSet(true);
-
 
3221
        oprot.writeMessageBegin(new TMessage("checkSimilarItem", TMessageType.REPLY, seqid));
-
 
3222
        result.write(oprot);
-
 
3223
        oprot.writeMessageEnd();
-
 
3224
        oprot.getTransport().flush();
-
 
3225
      }
-
 
3226
 
-
 
3227
    }
-
 
3228
 
2953
  }
3229
  }
2954
 
3230
 
2955
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3231
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2956
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3232
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2957
 
3233
 
Line 29966... Line 30242...
29966
      // check for required fields
30242
      // check for required fields
29967
    }
30243
    }
29968
 
30244
 
29969
  }
30245
  }
29970
 
30246
 
29971
  public static class updateVendorItemPricing_args implements TBase<updateVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateVendorItemPricing_args>   {
30247
  public static class addVendorItemPricing_args implements TBase<addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVendorItemPricing_args>   {
29972
    private static final TStruct STRUCT_DESC = new TStruct("updateVendorItemPricing_args");
30248
    private static final TStruct STRUCT_DESC = new TStruct("addVendorItemPricing_args");
29973
 
30249
 
29974
    private static final TField VENDOR_ITEM_PRICING_FIELD_DESC = new TField("vendorItemPricing", TType.STRUCT, (short)1);
30250
    private static final TField VENDOR_ITEM_PRICING_FIELD_DESC = new TField("vendorItemPricing", TType.STRUCT, (short)1);
29975
 
30251
 
29976
    private VendorItemPricing vendorItemPricing;
30252
    private VendorItemPricing vendorItemPricing;
29977
 
30253
 
Line 30036... Line 30312...
30036
      put(_Fields.VENDOR_ITEM_PRICING, new FieldMetaData("vendorItemPricing", TFieldRequirementType.DEFAULT, 
30312
      put(_Fields.VENDOR_ITEM_PRICING, new FieldMetaData("vendorItemPricing", TFieldRequirementType.DEFAULT, 
30037
          new StructMetaData(TType.STRUCT, VendorItemPricing.class)));
30313
          new StructMetaData(TType.STRUCT, VendorItemPricing.class)));
30038
    }});
30314
    }});
30039
 
30315
 
30040
    static {
30316
    static {
30041
      FieldMetaData.addStructMetaDataMap(updateVendorItemPricing_args.class, metaDataMap);
30317
      FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
30042
    }
30318
    }
30043
 
30319
 
30044
    public updateVendorItemPricing_args() {
30320
    public addVendorItemPricing_args() {
30045
    }
30321
    }
30046
 
30322
 
30047
    public updateVendorItemPricing_args(
30323
    public addVendorItemPricing_args(
30048
      VendorItemPricing vendorItemPricing)
30324
      VendorItemPricing vendorItemPricing)
30049
    {
30325
    {
30050
      this();
30326
      this();
30051
      this.vendorItemPricing = vendorItemPricing;
30327
      this.vendorItemPricing = vendorItemPricing;
30052
    }
30328
    }
30053
 
30329
 
30054
    /**
30330
    /**
30055
     * Performs a deep copy on <i>other</i>.
30331
     * Performs a deep copy on <i>other</i>.
30056
     */
30332
     */
30057
    public updateVendorItemPricing_args(updateVendorItemPricing_args other) {
30333
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
30058
      if (other.isSetVendorItemPricing()) {
30334
      if (other.isSetVendorItemPricing()) {
30059
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
30335
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
30060
      }
30336
      }
30061
    }
30337
    }
30062
 
30338
 
30063
    public updateVendorItemPricing_args deepCopy() {
30339
    public addVendorItemPricing_args deepCopy() {
30064
      return new updateVendorItemPricing_args(this);
30340
      return new addVendorItemPricing_args(this);
30065
    }
30341
    }
30066
 
30342
 
30067
    @Deprecated
30343
    @Deprecated
30068
    public updateVendorItemPricing_args clone() {
30344
    public addVendorItemPricing_args clone() {
30069
      return new updateVendorItemPricing_args(this);
30345
      return new addVendorItemPricing_args(this);
30070
    }
30346
    }
30071
 
30347
 
30072
    public VendorItemPricing getVendorItemPricing() {
30348
    public VendorItemPricing getVendorItemPricing() {
30073
      return this.vendorItemPricing;
30349
      return this.vendorItemPricing;
30074
    }
30350
    }
30075
 
30351
 
30076
    public updateVendorItemPricing_args setVendorItemPricing(VendorItemPricing vendorItemPricing) {
30352
    public addVendorItemPricing_args setVendorItemPricing(VendorItemPricing vendorItemPricing) {
30077
      this.vendorItemPricing = vendorItemPricing;
30353
      this.vendorItemPricing = vendorItemPricing;
30078
      return this;
30354
      return this;
30079
    }
30355
    }
30080
 
30356
 
30081
    public void unsetVendorItemPricing() {
30357
    public void unsetVendorItemPricing() {
Line 30138... Line 30414...
30138
 
30414
 
30139
    @Override
30415
    @Override
30140
    public boolean equals(Object that) {
30416
    public boolean equals(Object that) {
30141
      if (that == null)
30417
      if (that == null)
30142
        return false;
30418
        return false;
30143
      if (that instanceof updateVendorItemPricing_args)
30419
      if (that instanceof addVendorItemPricing_args)
30144
        return this.equals((updateVendorItemPricing_args)that);
30420
        return this.equals((addVendorItemPricing_args)that);
30145
      return false;
30421
      return false;
30146
    }
30422
    }
30147
 
30423
 
30148
    public boolean equals(updateVendorItemPricing_args that) {
30424
    public boolean equals(addVendorItemPricing_args that) {
30149
      if (that == null)
30425
      if (that == null)
30150
        return false;
30426
        return false;
30151
 
30427
 
30152
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
30428
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
30153
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
30429
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
Line 30164... Line 30440...
30164
    @Override
30440
    @Override
30165
    public int hashCode() {
30441
    public int hashCode() {
30166
      return 0;
30442
      return 0;
30167
    }
30443
    }
30168
 
30444
 
30169
    public int compareTo(updateVendorItemPricing_args other) {
30445
    public int compareTo(addVendorItemPricing_args other) {
30170
      if (!getClass().equals(other.getClass())) {
30446
      if (!getClass().equals(other.getClass())) {
30171
        return getClass().getName().compareTo(other.getClass().getName());
30447
        return getClass().getName().compareTo(other.getClass().getName());
30172
      }
30448
      }
30173
 
30449
 
30174
      int lastComparison = 0;
30450
      int lastComparison = 0;
30175
      updateVendorItemPricing_args typedOther = (updateVendorItemPricing_args)other;
30451
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
30176
 
30452
 
30177
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(isSetVendorItemPricing());
30453
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(isSetVendorItemPricing());
30178
      if (lastComparison != 0) {
30454
      if (lastComparison != 0) {
30179
        return lastComparison;
30455
        return lastComparison;
30180
      }
30456
      }
Line 30228... Line 30504...
30228
      oprot.writeStructEnd();
30504
      oprot.writeStructEnd();
30229
    }
30505
    }
30230
 
30506
 
30231
    @Override
30507
    @Override
30232
    public String toString() {
30508
    public String toString() {
30233
      StringBuilder sb = new StringBuilder("updateVendorItemPricing_args(");
30509
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
30234
      boolean first = true;
30510
      boolean first = true;
30235
 
30511
 
30236
      sb.append("vendorItemPricing:");
30512
      sb.append("vendorItemPricing:");
30237
      if (this.vendorItemPricing == null) {
30513
      if (this.vendorItemPricing == null) {
30238
        sb.append("null");
30514
        sb.append("null");
Line 30248... Line 30524...
30248
      // check for required fields
30524
      // check for required fields
30249
    }
30525
    }
30250
 
30526
 
30251
  }
30527
  }
30252
 
30528
 
30253
  public static class updateVendorItemPricing_result implements TBase<updateVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateVendorItemPricing_result>   {
30529
  public static class addVendorItemPricing_result implements TBase<addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVendorItemPricing_result>   {
30254
    private static final TStruct STRUCT_DESC = new TStruct("updateVendorItemPricing_result");
30530
    private static final TStruct STRUCT_DESC = new TStruct("addVendorItemPricing_result");
30255
 
30531
 
30256
    private static final TField CEX_FIELD_DESC = new TField("cex", TType.STRUCT, (short)1);
30532
    private static final TField CEX_FIELD_DESC = new TField("cex", TType.STRUCT, (short)1);
30257
 
30533
 
30258
    private InventoryServiceException cex;
30534
    private InventoryServiceException cex;
30259
 
30535
 
Line 30318... Line 30594...
30318
      put(_Fields.CEX, new FieldMetaData("cex", TFieldRequirementType.DEFAULT, 
30594
      put(_Fields.CEX, new FieldMetaData("cex", TFieldRequirementType.DEFAULT, 
30319
          new FieldValueMetaData(TType.STRUCT)));
30595
          new FieldValueMetaData(TType.STRUCT)));
30320
    }});
30596
    }});
30321
 
30597
 
30322
    static {
30598
    static {
30323
      FieldMetaData.addStructMetaDataMap(updateVendorItemPricing_result.class, metaDataMap);
30599
      FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
30324
    }
30600
    }
30325
 
30601
 
30326
    public updateVendorItemPricing_result() {
30602
    public addVendorItemPricing_result() {
30327
    }
30603
    }
30328
 
30604
 
30329
    public updateVendorItemPricing_result(
30605
    public addVendorItemPricing_result(
30330
      InventoryServiceException cex)
30606
      InventoryServiceException cex)
30331
    {
30607
    {
30332
      this();
30608
      this();
30333
      this.cex = cex;
30609
      this.cex = cex;
30334
    }
30610
    }
30335
 
30611
 
30336
    /**
30612
    /**
30337
     * Performs a deep copy on <i>other</i>.
30613
     * Performs a deep copy on <i>other</i>.
30338
     */
30614
     */
30339
    public updateVendorItemPricing_result(updateVendorItemPricing_result other) {
30615
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
30340
      if (other.isSetCex()) {
30616
      if (other.isSetCex()) {
30341
        this.cex = new InventoryServiceException(other.cex);
30617
        this.cex = new InventoryServiceException(other.cex);
30342
      }
30618
      }
30343
    }
30619
    }
30344
 
30620
 
30345
    public updateVendorItemPricing_result deepCopy() {
30621
    public addVendorItemPricing_result deepCopy() {
30346
      return new updateVendorItemPricing_result(this);
30622
      return new addVendorItemPricing_result(this);
30347
    }
30623
    }
30348
 
30624
 
30349
    @Deprecated
30625
    @Deprecated
30350
    public updateVendorItemPricing_result clone() {
30626
    public addVendorItemPricing_result clone() {
30351
      return new updateVendorItemPricing_result(this);
30627
      return new addVendorItemPricing_result(this);
30352
    }
30628
    }
30353
 
30629
 
30354
    public InventoryServiceException getCex() {
30630
    public InventoryServiceException getCex() {
30355
      return this.cex;
30631
      return this.cex;
30356
    }
30632
    }
30357
 
30633
 
30358
    public updateVendorItemPricing_result setCex(InventoryServiceException cex) {
30634
    public addVendorItemPricing_result setCex(InventoryServiceException cex) {
30359
      this.cex = cex;
30635
      this.cex = cex;
30360
      return this;
30636
      return this;
30361
    }
30637
    }
30362
 
30638
 
30363
    public void unsetCex() {
30639
    public void unsetCex() {
Line 30420... Line 30696...
30420
 
30696
 
30421
    @Override
30697
    @Override
30422
    public boolean equals(Object that) {
30698
    public boolean equals(Object that) {
30423
      if (that == null)
30699
      if (that == null)
30424
        return false;
30700
        return false;
30425
      if (that instanceof updateVendorItemPricing_result)
30701
      if (that instanceof addVendorItemPricing_result)
30426
        return this.equals((updateVendorItemPricing_result)that);
30702
        return this.equals((addVendorItemPricing_result)that);
30427
      return false;
30703
      return false;
30428
    }
30704
    }
30429
 
30705
 
30430
    public boolean equals(updateVendorItemPricing_result that) {
30706
    public boolean equals(addVendorItemPricing_result that) {
30431
      if (that == null)
30707
      if (that == null)
30432
        return false;
30708
        return false;
30433
 
30709
 
30434
      boolean this_present_cex = true && this.isSetCex();
30710
      boolean this_present_cex = true && this.isSetCex();
30435
      boolean that_present_cex = true && that.isSetCex();
30711
      boolean that_present_cex = true && that.isSetCex();
Line 30446... Line 30722...
30446
    @Override
30722
    @Override
30447
    public int hashCode() {
30723
    public int hashCode() {
30448
      return 0;
30724
      return 0;
30449
    }
30725
    }
30450
 
30726
 
30451
    public int compareTo(updateVendorItemPricing_result other) {
30727
    public int compareTo(addVendorItemPricing_result other) {
30452
      if (!getClass().equals(other.getClass())) {
30728
      if (!getClass().equals(other.getClass())) {
30453
        return getClass().getName().compareTo(other.getClass().getName());
30729
        return getClass().getName().compareTo(other.getClass().getName());
30454
      }
30730
      }
30455
 
30731
 
30456
      int lastComparison = 0;
30732
      int lastComparison = 0;
30457
      updateVendorItemPricing_result typedOther = (updateVendorItemPricing_result)other;
30733
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
30458
 
30734
 
30459
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(isSetCex());
30735
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(isSetCex());
30460
      if (lastComparison != 0) {
30736
      if (lastComparison != 0) {
30461
        return lastComparison;
30737
        return lastComparison;
30462
      }
30738
      }
Line 30509... Line 30785...
30509
      oprot.writeStructEnd();
30785
      oprot.writeStructEnd();
30510
    }
30786
    }
30511
 
30787
 
30512
    @Override
30788
    @Override
30513
    public String toString() {
30789
    public String toString() {
30514
      StringBuilder sb = new StringBuilder("updateVendorItemPricing_result(");
30790
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
30515
      boolean first = true;
30791
      boolean first = true;
30516
 
30792
 
30517
      sb.append("cex:");
30793
      sb.append("cex:");
30518
      if (this.cex == null) {
30794
      if (this.cex == null) {
30519
        sb.append("null");
30795
        sb.append("null");
Line 31032... Line 31308...
31032
      first = false;
31308
      first = false;
31033
      sb.append(")");
31309
      sb.append(")");
31034
      return sb.toString();
31310
      return sb.toString();
31035
    }
31311
    }
31036
 
31312
 
-
 
31313
    public void validate() throws TException {
-
 
31314
      // check for required fields
-
 
31315
    }
-
 
31316
 
-
 
31317
  }
-
 
31318
 
-
 
31319
  public static class itemExists_args implements TBase<itemExists_args._Fields>, java.io.Serializable, Cloneable, Comparable<itemExists_args>   {
-
 
31320
    private static final TStruct STRUCT_DESC = new TStruct("itemExists_args");
-
 
31321
 
-
 
31322
    private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)1);
-
 
31323
    private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)2);
-
 
31324
    private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)3);
-
 
31325
    private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)4);
-
 
31326
    private static final TField VENDOR_ID_FIELD_DESC = new TField("vendor_id", TType.I64, (short)5);
-
 
31327
    private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.STRING, (short)6);
-
 
31328
 
-
 
31329
    private String productGroup;
-
 
31330
    private String brand;
-
 
31331
    private String modelNumber;
-
 
31332
    private String color;
-
 
31333
    private long vendor_id;
-
 
31334
    private String category;
-
 
31335
 
-
 
31336
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31337
    public enum _Fields implements TFieldIdEnum {
-
 
31338
      PRODUCT_GROUP((short)1, "productGroup"),
-
 
31339
      BRAND((short)2, "brand"),
-
 
31340
      MODEL_NUMBER((short)3, "modelNumber"),
-
 
31341
      COLOR((short)4, "color"),
-
 
31342
      VENDOR_ID((short)5, "vendor_id"),
-
 
31343
      CATEGORY((short)6, "category");
-
 
31344
 
-
 
31345
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
31346
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31347
 
-
 
31348
      static {
-
 
31349
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31350
          byId.put((int)field._thriftId, field);
-
 
31351
          byName.put(field.getFieldName(), field);
-
 
31352
        }
-
 
31353
      }
-
 
31354
 
-
 
31355
      /**
-
 
31356
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31357
       */
-
 
31358
      public static _Fields findByThriftId(int fieldId) {
-
 
31359
        return byId.get(fieldId);
-
 
31360
      }
-
 
31361
 
-
 
31362
      /**
-
 
31363
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31364
       * if it is not found.
-
 
31365
       */
-
 
31366
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31367
        _Fields fields = findByThriftId(fieldId);
-
 
31368
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31369
        return fields;
-
 
31370
      }
-
 
31371
 
-
 
31372
      /**
-
 
31373
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31374
       */
-
 
31375
      public static _Fields findByName(String name) {
-
 
31376
        return byName.get(name);
-
 
31377
      }
-
 
31378
 
-
 
31379
      private final short _thriftId;
-
 
31380
      private final String _fieldName;
-
 
31381
 
-
 
31382
      _Fields(short thriftId, String fieldName) {
-
 
31383
        _thriftId = thriftId;
-
 
31384
        _fieldName = fieldName;
-
 
31385
      }
-
 
31386
 
-
 
31387
      public short getThriftFieldId() {
-
 
31388
        return _thriftId;
-
 
31389
      }
-
 
31390
 
-
 
31391
      public String getFieldName() {
-
 
31392
        return _fieldName;
-
 
31393
      }
-
 
31394
    }
-
 
31395
 
-
 
31396
    // isset id assignments
-
 
31397
    private static final int __VENDOR_ID_ISSET_ID = 0;
-
 
31398
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
31399
 
-
 
31400
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
31401
      put(_Fields.PRODUCT_GROUP, new FieldMetaData("productGroup", TFieldRequirementType.DEFAULT, 
-
 
31402
          new FieldValueMetaData(TType.STRING)));
-
 
31403
      put(_Fields.BRAND, new FieldMetaData("brand", TFieldRequirementType.DEFAULT, 
-
 
31404
          new FieldValueMetaData(TType.STRING)));
-
 
31405
      put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
-
 
31406
          new FieldValueMetaData(TType.STRING)));
-
 
31407
      put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
-
 
31408
          new FieldValueMetaData(TType.STRING)));
-
 
31409
      put(_Fields.VENDOR_ID, new FieldMetaData("vendor_id", TFieldRequirementType.DEFAULT, 
-
 
31410
          new FieldValueMetaData(TType.I64)));
-
 
31411
      put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
-
 
31412
          new FieldValueMetaData(TType.STRING)));
-
 
31413
    }});
-
 
31414
 
-
 
31415
    static {
-
 
31416
      FieldMetaData.addStructMetaDataMap(itemExists_args.class, metaDataMap);
-
 
31417
    }
-
 
31418
 
-
 
31419
    public itemExists_args() {
-
 
31420
    }
-
 
31421
 
-
 
31422
    public itemExists_args(
-
 
31423
      String productGroup,
-
 
31424
      String brand,
-
 
31425
      String modelNumber,
-
 
31426
      String color,
-
 
31427
      long vendor_id,
-
 
31428
      String category)
-
 
31429
    {
-
 
31430
      this();
-
 
31431
      this.productGroup = productGroup;
-
 
31432
      this.brand = brand;
-
 
31433
      this.modelNumber = modelNumber;
-
 
31434
      this.color = color;
-
 
31435
      this.vendor_id = vendor_id;
-
 
31436
      setVendor_idIsSet(true);
-
 
31437
      this.category = category;
-
 
31438
    }
-
 
31439
 
-
 
31440
    /**
-
 
31441
     * Performs a deep copy on <i>other</i>.
-
 
31442
     */
-
 
31443
    public itemExists_args(itemExists_args other) {
-
 
31444
      __isset_bit_vector.clear();
-
 
31445
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31446
      if (other.isSetProductGroup()) {
-
 
31447
        this.productGroup = other.productGroup;
-
 
31448
      }
-
 
31449
      if (other.isSetBrand()) {
-
 
31450
        this.brand = other.brand;
-
 
31451
      }
-
 
31452
      if (other.isSetModelNumber()) {
-
 
31453
        this.modelNumber = other.modelNumber;
-
 
31454
      }
-
 
31455
      if (other.isSetColor()) {
-
 
31456
        this.color = other.color;
-
 
31457
      }
-
 
31458
      this.vendor_id = other.vendor_id;
-
 
31459
      if (other.isSetCategory()) {
-
 
31460
        this.category = other.category;
-
 
31461
      }
-
 
31462
    }
-
 
31463
 
-
 
31464
    public itemExists_args deepCopy() {
-
 
31465
      return new itemExists_args(this);
-
 
31466
    }
-
 
31467
 
-
 
31468
    @Deprecated
-
 
31469
    public itemExists_args clone() {
-
 
31470
      return new itemExists_args(this);
-
 
31471
    }
-
 
31472
 
-
 
31473
    public String getProductGroup() {
-
 
31474
      return this.productGroup;
-
 
31475
    }
-
 
31476
 
-
 
31477
    public itemExists_args setProductGroup(String productGroup) {
-
 
31478
      this.productGroup = productGroup;
-
 
31479
      return this;
-
 
31480
    }
-
 
31481
 
-
 
31482
    public void unsetProductGroup() {
-
 
31483
      this.productGroup = null;
-
 
31484
    }
-
 
31485
 
-
 
31486
    /** Returns true if field productGroup is set (has been asigned a value) and false otherwise */
-
 
31487
    public boolean isSetProductGroup() {
-
 
31488
      return this.productGroup != null;
-
 
31489
    }
-
 
31490
 
-
 
31491
    public void setProductGroupIsSet(boolean value) {
-
 
31492
      if (!value) {
-
 
31493
        this.productGroup = null;
-
 
31494
      }
-
 
31495
    }
-
 
31496
 
-
 
31497
    public String getBrand() {
-
 
31498
      return this.brand;
-
 
31499
    }
-
 
31500
 
-
 
31501
    public itemExists_args setBrand(String brand) {
-
 
31502
      this.brand = brand;
-
 
31503
      return this;
-
 
31504
    }
-
 
31505
 
-
 
31506
    public void unsetBrand() {
-
 
31507
      this.brand = null;
-
 
31508
    }
-
 
31509
 
-
 
31510
    /** Returns true if field brand is set (has been asigned a value) and false otherwise */
-
 
31511
    public boolean isSetBrand() {
-
 
31512
      return this.brand != null;
-
 
31513
    }
-
 
31514
 
-
 
31515
    public void setBrandIsSet(boolean value) {
-
 
31516
      if (!value) {
-
 
31517
        this.brand = null;
-
 
31518
      }
-
 
31519
    }
-
 
31520
 
-
 
31521
    public String getModelNumber() {
-
 
31522
      return this.modelNumber;
-
 
31523
    }
-
 
31524
 
-
 
31525
    public itemExists_args setModelNumber(String modelNumber) {
-
 
31526
      this.modelNumber = modelNumber;
-
 
31527
      return this;
-
 
31528
    }
-
 
31529
 
-
 
31530
    public void unsetModelNumber() {
-
 
31531
      this.modelNumber = null;
-
 
31532
    }
-
 
31533
 
-
 
31534
    /** Returns true if field modelNumber is set (has been asigned a value) and false otherwise */
-
 
31535
    public boolean isSetModelNumber() {
-
 
31536
      return this.modelNumber != null;
-
 
31537
    }
-
 
31538
 
-
 
31539
    public void setModelNumberIsSet(boolean value) {
-
 
31540
      if (!value) {
-
 
31541
        this.modelNumber = null;
-
 
31542
      }
-
 
31543
    }
-
 
31544
 
-
 
31545
    public String getColor() {
-
 
31546
      return this.color;
-
 
31547
    }
-
 
31548
 
-
 
31549
    public itemExists_args setColor(String color) {
-
 
31550
      this.color = color;
-
 
31551
      return this;
-
 
31552
    }
-
 
31553
 
-
 
31554
    public void unsetColor() {
-
 
31555
      this.color = null;
-
 
31556
    }
-
 
31557
 
-
 
31558
    /** Returns true if field color is set (has been asigned a value) and false otherwise */
-
 
31559
    public boolean isSetColor() {
-
 
31560
      return this.color != null;
-
 
31561
    }
-
 
31562
 
-
 
31563
    public void setColorIsSet(boolean value) {
-
 
31564
      if (!value) {
-
 
31565
        this.color = null;
-
 
31566
      }
-
 
31567
    }
-
 
31568
 
-
 
31569
    public long getVendor_id() {
-
 
31570
      return this.vendor_id;
-
 
31571
    }
-
 
31572
 
-
 
31573
    public itemExists_args setVendor_id(long vendor_id) {
-
 
31574
      this.vendor_id = vendor_id;
-
 
31575
      setVendor_idIsSet(true);
-
 
31576
      return this;
-
 
31577
    }
-
 
31578
 
-
 
31579
    public void unsetVendor_id() {
-
 
31580
      __isset_bit_vector.clear(__VENDOR_ID_ISSET_ID);
-
 
31581
    }
-
 
31582
 
-
 
31583
    /** Returns true if field vendor_id is set (has been asigned a value) and false otherwise */
-
 
31584
    public boolean isSetVendor_id() {
-
 
31585
      return __isset_bit_vector.get(__VENDOR_ID_ISSET_ID);
-
 
31586
    }
-
 
31587
 
-
 
31588
    public void setVendor_idIsSet(boolean value) {
-
 
31589
      __isset_bit_vector.set(__VENDOR_ID_ISSET_ID, value);
-
 
31590
    }
-
 
31591
 
-
 
31592
    public String getCategory() {
-
 
31593
      return this.category;
-
 
31594
    }
-
 
31595
 
-
 
31596
    public itemExists_args setCategory(String category) {
-
 
31597
      this.category = category;
-
 
31598
      return this;
-
 
31599
    }
-
 
31600
 
-
 
31601
    public void unsetCategory() {
-
 
31602
      this.category = null;
-
 
31603
    }
-
 
31604
 
-
 
31605
    /** Returns true if field category is set (has been asigned a value) and false otherwise */
-
 
31606
    public boolean isSetCategory() {
-
 
31607
      return this.category != null;
-
 
31608
    }
-
 
31609
 
-
 
31610
    public void setCategoryIsSet(boolean value) {
-
 
31611
      if (!value) {
-
 
31612
        this.category = null;
-
 
31613
      }
-
 
31614
    }
-
 
31615
 
-
 
31616
    public void setFieldValue(_Fields field, Object value) {
-
 
31617
      switch (field) {
-
 
31618
      case PRODUCT_GROUP:
-
 
31619
        if (value == null) {
-
 
31620
          unsetProductGroup();
-
 
31621
        } else {
-
 
31622
          setProductGroup((String)value);
-
 
31623
        }
-
 
31624
        break;
-
 
31625
 
-
 
31626
      case BRAND:
-
 
31627
        if (value == null) {
-
 
31628
          unsetBrand();
-
 
31629
        } else {
-
 
31630
          setBrand((String)value);
-
 
31631
        }
-
 
31632
        break;
-
 
31633
 
-
 
31634
      case MODEL_NUMBER:
-
 
31635
        if (value == null) {
-
 
31636
          unsetModelNumber();
-
 
31637
        } else {
-
 
31638
          setModelNumber((String)value);
-
 
31639
        }
-
 
31640
        break;
-
 
31641
 
-
 
31642
      case COLOR:
-
 
31643
        if (value == null) {
-
 
31644
          unsetColor();
-
 
31645
        } else {
-
 
31646
          setColor((String)value);
-
 
31647
        }
-
 
31648
        break;
-
 
31649
 
-
 
31650
      case VENDOR_ID:
-
 
31651
        if (value == null) {
-
 
31652
          unsetVendor_id();
-
 
31653
        } else {
-
 
31654
          setVendor_id((Long)value);
-
 
31655
        }
-
 
31656
        break;
-
 
31657
 
-
 
31658
      case CATEGORY:
-
 
31659
        if (value == null) {
-
 
31660
          unsetCategory();
-
 
31661
        } else {
-
 
31662
          setCategory((String)value);
-
 
31663
        }
-
 
31664
        break;
-
 
31665
 
-
 
31666
      }
-
 
31667
    }
-
 
31668
 
-
 
31669
    public void setFieldValue(int fieldID, Object value) {
-
 
31670
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
31671
    }
-
 
31672
 
-
 
31673
    public Object getFieldValue(_Fields field) {
-
 
31674
      switch (field) {
-
 
31675
      case PRODUCT_GROUP:
-
 
31676
        return getProductGroup();
-
 
31677
 
-
 
31678
      case BRAND:
-
 
31679
        return getBrand();
-
 
31680
 
-
 
31681
      case MODEL_NUMBER:
-
 
31682
        return getModelNumber();
-
 
31683
 
-
 
31684
      case COLOR:
-
 
31685
        return getColor();
-
 
31686
 
-
 
31687
      case VENDOR_ID:
-
 
31688
        return new Long(getVendor_id());
-
 
31689
 
-
 
31690
      case CATEGORY:
-
 
31691
        return getCategory();
-
 
31692
 
-
 
31693
      }
-
 
31694
      throw new IllegalStateException();
-
 
31695
    }
-
 
31696
 
-
 
31697
    public Object getFieldValue(int fieldId) {
-
 
31698
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
31699
    }
-
 
31700
 
-
 
31701
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
31702
    public boolean isSet(_Fields field) {
-
 
31703
      switch (field) {
-
 
31704
      case PRODUCT_GROUP:
-
 
31705
        return isSetProductGroup();
-
 
31706
      case BRAND:
-
 
31707
        return isSetBrand();
-
 
31708
      case MODEL_NUMBER:
-
 
31709
        return isSetModelNumber();
-
 
31710
      case COLOR:
-
 
31711
        return isSetColor();
-
 
31712
      case VENDOR_ID:
-
 
31713
        return isSetVendor_id();
-
 
31714
      case CATEGORY:
-
 
31715
        return isSetCategory();
-
 
31716
      }
-
 
31717
      throw new IllegalStateException();
-
 
31718
    }
-
 
31719
 
-
 
31720
    public boolean isSet(int fieldID) {
-
 
31721
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
31722
    }
-
 
31723
 
-
 
31724
    @Override
-
 
31725
    public boolean equals(Object that) {
-
 
31726
      if (that == null)
-
 
31727
        return false;
-
 
31728
      if (that instanceof itemExists_args)
-
 
31729
        return this.equals((itemExists_args)that);
-
 
31730
      return false;
-
 
31731
    }
-
 
31732
 
-
 
31733
    public boolean equals(itemExists_args that) {
-
 
31734
      if (that == null)
-
 
31735
        return false;
-
 
31736
 
-
 
31737
      boolean this_present_productGroup = true && this.isSetProductGroup();
-
 
31738
      boolean that_present_productGroup = true && that.isSetProductGroup();
-
 
31739
      if (this_present_productGroup || that_present_productGroup) {
-
 
31740
        if (!(this_present_productGroup && that_present_productGroup))
-
 
31741
          return false;
-
 
31742
        if (!this.productGroup.equals(that.productGroup))
-
 
31743
          return false;
-
 
31744
      }
-
 
31745
 
-
 
31746
      boolean this_present_brand = true && this.isSetBrand();
-
 
31747
      boolean that_present_brand = true && that.isSetBrand();
-
 
31748
      if (this_present_brand || that_present_brand) {
-
 
31749
        if (!(this_present_brand && that_present_brand))
-
 
31750
          return false;
-
 
31751
        if (!this.brand.equals(that.brand))
-
 
31752
          return false;
-
 
31753
      }
-
 
31754
 
-
 
31755
      boolean this_present_modelNumber = true && this.isSetModelNumber();
-
 
31756
      boolean that_present_modelNumber = true && that.isSetModelNumber();
-
 
31757
      if (this_present_modelNumber || that_present_modelNumber) {
-
 
31758
        if (!(this_present_modelNumber && that_present_modelNumber))
-
 
31759
          return false;
-
 
31760
        if (!this.modelNumber.equals(that.modelNumber))
-
 
31761
          return false;
-
 
31762
      }
-
 
31763
 
-
 
31764
      boolean this_present_color = true && this.isSetColor();
-
 
31765
      boolean that_present_color = true && that.isSetColor();
-
 
31766
      if (this_present_color || that_present_color) {
-
 
31767
        if (!(this_present_color && that_present_color))
-
 
31768
          return false;
-
 
31769
        if (!this.color.equals(that.color))
-
 
31770
          return false;
-
 
31771
      }
-
 
31772
 
-
 
31773
      boolean this_present_vendor_id = true;
-
 
31774
      boolean that_present_vendor_id = true;
-
 
31775
      if (this_present_vendor_id || that_present_vendor_id) {
-
 
31776
        if (!(this_present_vendor_id && that_present_vendor_id))
-
 
31777
          return false;
-
 
31778
        if (this.vendor_id != that.vendor_id)
-
 
31779
          return false;
-
 
31780
      }
-
 
31781
 
-
 
31782
      boolean this_present_category = true && this.isSetCategory();
-
 
31783
      boolean that_present_category = true && that.isSetCategory();
-
 
31784
      if (this_present_category || that_present_category) {
-
 
31785
        if (!(this_present_category && that_present_category))
-
 
31786
          return false;
-
 
31787
        if (!this.category.equals(that.category))
-
 
31788
          return false;
-
 
31789
      }
-
 
31790
 
-
 
31791
      return true;
-
 
31792
    }
-
 
31793
 
-
 
31794
    @Override
-
 
31795
    public int hashCode() {
-
 
31796
      return 0;
-
 
31797
    }
-
 
31798
 
-
 
31799
    public int compareTo(itemExists_args other) {
-
 
31800
      if (!getClass().equals(other.getClass())) {
-
 
31801
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31802
      }
-
 
31803
 
-
 
31804
      int lastComparison = 0;
-
 
31805
      itemExists_args typedOther = (itemExists_args)other;
-
 
31806
 
-
 
31807
      lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(isSetProductGroup());
-
 
31808
      if (lastComparison != 0) {
-
 
31809
        return lastComparison;
-
 
31810
      }
-
 
31811
      lastComparison = TBaseHelper.compareTo(productGroup, typedOther.productGroup);
-
 
31812
      if (lastComparison != 0) {
-
 
31813
        return lastComparison;
-
 
31814
      }
-
 
31815
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(isSetBrand());
-
 
31816
      if (lastComparison != 0) {
-
 
31817
        return lastComparison;
-
 
31818
      }
-
 
31819
      lastComparison = TBaseHelper.compareTo(brand, typedOther.brand);
-
 
31820
      if (lastComparison != 0) {
-
 
31821
        return lastComparison;
-
 
31822
      }
-
 
31823
      lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(isSetModelNumber());
-
 
31824
      if (lastComparison != 0) {
-
 
31825
        return lastComparison;
-
 
31826
      }
-
 
31827
      lastComparison = TBaseHelper.compareTo(modelNumber, typedOther.modelNumber);
-
 
31828
      if (lastComparison != 0) {
-
 
31829
        return lastComparison;
-
 
31830
      }
-
 
31831
      lastComparison = Boolean.valueOf(isSetColor()).compareTo(isSetColor());
-
 
31832
      if (lastComparison != 0) {
-
 
31833
        return lastComparison;
-
 
31834
      }
-
 
31835
      lastComparison = TBaseHelper.compareTo(color, typedOther.color);
-
 
31836
      if (lastComparison != 0) {
-
 
31837
        return lastComparison;
-
 
31838
      }
-
 
31839
      lastComparison = Boolean.valueOf(isSetVendor_id()).compareTo(isSetVendor_id());
-
 
31840
      if (lastComparison != 0) {
-
 
31841
        return lastComparison;
-
 
31842
      }
-
 
31843
      lastComparison = TBaseHelper.compareTo(vendor_id, typedOther.vendor_id);
-
 
31844
      if (lastComparison != 0) {
-
 
31845
        return lastComparison;
-
 
31846
      }
-
 
31847
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(isSetCategory());
-
 
31848
      if (lastComparison != 0) {
-
 
31849
        return lastComparison;
-
 
31850
      }
-
 
31851
      lastComparison = TBaseHelper.compareTo(category, typedOther.category);
-
 
31852
      if (lastComparison != 0) {
-
 
31853
        return lastComparison;
-
 
31854
      }
-
 
31855
      return 0;
-
 
31856
    }
-
 
31857
 
-
 
31858
    public void read(TProtocol iprot) throws TException {
-
 
31859
      TField field;
-
 
31860
      iprot.readStructBegin();
-
 
31861
      while (true)
-
 
31862
      {
-
 
31863
        field = iprot.readFieldBegin();
-
 
31864
        if (field.type == TType.STOP) { 
-
 
31865
          break;
-
 
31866
        }
-
 
31867
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
31868
        if (fieldId == null) {
-
 
31869
          TProtocolUtil.skip(iprot, field.type);
-
 
31870
        } else {
-
 
31871
          switch (fieldId) {
-
 
31872
            case PRODUCT_GROUP:
-
 
31873
              if (field.type == TType.STRING) {
-
 
31874
                this.productGroup = iprot.readString();
-
 
31875
              } else { 
-
 
31876
                TProtocolUtil.skip(iprot, field.type);
-
 
31877
              }
-
 
31878
              break;
-
 
31879
            case BRAND:
-
 
31880
              if (field.type == TType.STRING) {
-
 
31881
                this.brand = iprot.readString();
-
 
31882
              } else { 
-
 
31883
                TProtocolUtil.skip(iprot, field.type);
-
 
31884
              }
-
 
31885
              break;
-
 
31886
            case MODEL_NUMBER:
-
 
31887
              if (field.type == TType.STRING) {
-
 
31888
                this.modelNumber = iprot.readString();
-
 
31889
              } else { 
-
 
31890
                TProtocolUtil.skip(iprot, field.type);
-
 
31891
              }
-
 
31892
              break;
-
 
31893
            case COLOR:
-
 
31894
              if (field.type == TType.STRING) {
-
 
31895
                this.color = iprot.readString();
-
 
31896
              } else { 
-
 
31897
                TProtocolUtil.skip(iprot, field.type);
-
 
31898
              }
-
 
31899
              break;
-
 
31900
            case VENDOR_ID:
-
 
31901
              if (field.type == TType.I64) {
-
 
31902
                this.vendor_id = iprot.readI64();
-
 
31903
                setVendor_idIsSet(true);
-
 
31904
              } else { 
-
 
31905
                TProtocolUtil.skip(iprot, field.type);
-
 
31906
              }
-
 
31907
              break;
-
 
31908
            case CATEGORY:
-
 
31909
              if (field.type == TType.STRING) {
-
 
31910
                this.category = iprot.readString();
-
 
31911
              } else { 
-
 
31912
                TProtocolUtil.skip(iprot, field.type);
-
 
31913
              }
-
 
31914
              break;
-
 
31915
          }
-
 
31916
          iprot.readFieldEnd();
-
 
31917
        }
-
 
31918
      }
-
 
31919
      iprot.readStructEnd();
-
 
31920
      validate();
-
 
31921
    }
-
 
31922
 
-
 
31923
    public void write(TProtocol oprot) throws TException {
-
 
31924
      validate();
-
 
31925
 
-
 
31926
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31927
      if (this.productGroup != null) {
-
 
31928
        oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
-
 
31929
        oprot.writeString(this.productGroup);
-
 
31930
        oprot.writeFieldEnd();
-
 
31931
      }
-
 
31932
      if (this.brand != null) {
-
 
31933
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
-
 
31934
        oprot.writeString(this.brand);
-
 
31935
        oprot.writeFieldEnd();
-
 
31936
      }
-
 
31937
      if (this.modelNumber != null) {
-
 
31938
        oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
-
 
31939
        oprot.writeString(this.modelNumber);
-
 
31940
        oprot.writeFieldEnd();
-
 
31941
      }
-
 
31942
      if (this.color != null) {
-
 
31943
        oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
31944
        oprot.writeString(this.color);
-
 
31945
        oprot.writeFieldEnd();
-
 
31946
      }
-
 
31947
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
31948
      oprot.writeI64(this.vendor_id);
-
 
31949
      oprot.writeFieldEnd();
-
 
31950
      if (this.category != null) {
-
 
31951
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
-
 
31952
        oprot.writeString(this.category);
-
 
31953
        oprot.writeFieldEnd();
-
 
31954
      }
-
 
31955
      oprot.writeFieldStop();
-
 
31956
      oprot.writeStructEnd();
-
 
31957
    }
-
 
31958
 
-
 
31959
    @Override
-
 
31960
    public String toString() {
-
 
31961
      StringBuilder sb = new StringBuilder("itemExists_args(");
-
 
31962
      boolean first = true;
-
 
31963
 
-
 
31964
      sb.append("productGroup:");
-
 
31965
      if (this.productGroup == null) {
-
 
31966
        sb.append("null");
-
 
31967
      } else {
-
 
31968
        sb.append(this.productGroup);
-
 
31969
      }
-
 
31970
      first = false;
-
 
31971
      if (!first) sb.append(", ");
-
 
31972
      sb.append("brand:");
-
 
31973
      if (this.brand == null) {
-
 
31974
        sb.append("null");
-
 
31975
      } else {
-
 
31976
        sb.append(this.brand);
-
 
31977
      }
-
 
31978
      first = false;
-
 
31979
      if (!first) sb.append(", ");
-
 
31980
      sb.append("modelNumber:");
-
 
31981
      if (this.modelNumber == null) {
-
 
31982
        sb.append("null");
-
 
31983
      } else {
-
 
31984
        sb.append(this.modelNumber);
-
 
31985
      }
-
 
31986
      first = false;
-
 
31987
      if (!first) sb.append(", ");
-
 
31988
      sb.append("color:");
-
 
31989
      if (this.color == null) {
-
 
31990
        sb.append("null");
-
 
31991
      } else {
-
 
31992
        sb.append(this.color);
-
 
31993
      }
-
 
31994
      first = false;
-
 
31995
      if (!first) sb.append(", ");
-
 
31996
      sb.append("vendor_id:");
-
 
31997
      sb.append(this.vendor_id);
-
 
31998
      first = false;
-
 
31999
      if (!first) sb.append(", ");
-
 
32000
      sb.append("category:");
-
 
32001
      if (this.category == null) {
-
 
32002
        sb.append("null");
-
 
32003
      } else {
-
 
32004
        sb.append(this.category);
-
 
32005
      }
-
 
32006
      first = false;
-
 
32007
      sb.append(")");
-
 
32008
      return sb.toString();
-
 
32009
    }
-
 
32010
 
-
 
32011
    public void validate() throws TException {
-
 
32012
      // check for required fields
-
 
32013
    }
-
 
32014
 
-
 
32015
  }
-
 
32016
 
-
 
32017
  public static class itemExists_result implements TBase<itemExists_result._Fields>, java.io.Serializable, Cloneable, Comparable<itemExists_result>   {
-
 
32018
    private static final TStruct STRUCT_DESC = new TStruct("itemExists_result");
-
 
32019
 
-
 
32020
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
32021
 
-
 
32022
    private boolean success;
-
 
32023
 
-
 
32024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32025
    public enum _Fields implements TFieldIdEnum {
-
 
32026
      SUCCESS((short)0, "success");
-
 
32027
 
-
 
32028
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32030
 
-
 
32031
      static {
-
 
32032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32033
          byId.put((int)field._thriftId, field);
-
 
32034
          byName.put(field.getFieldName(), field);
-
 
32035
        }
-
 
32036
      }
-
 
32037
 
-
 
32038
      /**
-
 
32039
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32040
       */
-
 
32041
      public static _Fields findByThriftId(int fieldId) {
-
 
32042
        return byId.get(fieldId);
-
 
32043
      }
-
 
32044
 
-
 
32045
      /**
-
 
32046
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32047
       * if it is not found.
-
 
32048
       */
-
 
32049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32050
        _Fields fields = findByThriftId(fieldId);
-
 
32051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32052
        return fields;
-
 
32053
      }
-
 
32054
 
-
 
32055
      /**
-
 
32056
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32057
       */
-
 
32058
      public static _Fields findByName(String name) {
-
 
32059
        return byName.get(name);
-
 
32060
      }
-
 
32061
 
-
 
32062
      private final short _thriftId;
-
 
32063
      private final String _fieldName;
-
 
32064
 
-
 
32065
      _Fields(short thriftId, String fieldName) {
-
 
32066
        _thriftId = thriftId;
-
 
32067
        _fieldName = fieldName;
-
 
32068
      }
-
 
32069
 
-
 
32070
      public short getThriftFieldId() {
-
 
32071
        return _thriftId;
-
 
32072
      }
-
 
32073
 
-
 
32074
      public String getFieldName() {
-
 
32075
        return _fieldName;
-
 
32076
      }
-
 
32077
    }
-
 
32078
 
-
 
32079
    // isset id assignments
-
 
32080
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
32081
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32082
 
-
 
32083
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32084
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
32085
          new FieldValueMetaData(TType.BOOL)));
-
 
32086
    }});
-
 
32087
 
-
 
32088
    static {
-
 
32089
      FieldMetaData.addStructMetaDataMap(itemExists_result.class, metaDataMap);
-
 
32090
    }
-
 
32091
 
-
 
32092
    public itemExists_result() {
-
 
32093
    }
-
 
32094
 
-
 
32095
    public itemExists_result(
-
 
32096
      boolean success)
-
 
32097
    {
-
 
32098
      this();
-
 
32099
      this.success = success;
-
 
32100
      setSuccessIsSet(true);
-
 
32101
    }
-
 
32102
 
-
 
32103
    /**
-
 
32104
     * Performs a deep copy on <i>other</i>.
-
 
32105
     */
-
 
32106
    public itemExists_result(itemExists_result other) {
-
 
32107
      __isset_bit_vector.clear();
-
 
32108
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32109
      this.success = other.success;
-
 
32110
    }
-
 
32111
 
-
 
32112
    public itemExists_result deepCopy() {
-
 
32113
      return new itemExists_result(this);
-
 
32114
    }
-
 
32115
 
-
 
32116
    @Deprecated
-
 
32117
    public itemExists_result clone() {
-
 
32118
      return new itemExists_result(this);
-
 
32119
    }
-
 
32120
 
-
 
32121
    public boolean isSuccess() {
-
 
32122
      return this.success;
-
 
32123
    }
-
 
32124
 
-
 
32125
    public itemExists_result setSuccess(boolean success) {
-
 
32126
      this.success = success;
-
 
32127
      setSuccessIsSet(true);
-
 
32128
      return this;
-
 
32129
    }
-
 
32130
 
-
 
32131
    public void unsetSuccess() {
-
 
32132
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
32133
    }
-
 
32134
 
-
 
32135
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
32136
    public boolean isSetSuccess() {
-
 
32137
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
32138
    }
-
 
32139
 
-
 
32140
    public void setSuccessIsSet(boolean value) {
-
 
32141
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
32142
    }
-
 
32143
 
-
 
32144
    public void setFieldValue(_Fields field, Object value) {
-
 
32145
      switch (field) {
-
 
32146
      case SUCCESS:
-
 
32147
        if (value == null) {
-
 
32148
          unsetSuccess();
-
 
32149
        } else {
-
 
32150
          setSuccess((Boolean)value);
-
 
32151
        }
-
 
32152
        break;
-
 
32153
 
-
 
32154
      }
-
 
32155
    }
-
 
32156
 
-
 
32157
    public void setFieldValue(int fieldID, Object value) {
-
 
32158
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32159
    }
-
 
32160
 
-
 
32161
    public Object getFieldValue(_Fields field) {
-
 
32162
      switch (field) {
-
 
32163
      case SUCCESS:
-
 
32164
        return new Boolean(isSuccess());
-
 
32165
 
-
 
32166
      }
-
 
32167
      throw new IllegalStateException();
-
 
32168
    }
-
 
32169
 
-
 
32170
    public Object getFieldValue(int fieldId) {
-
 
32171
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32172
    }
-
 
32173
 
-
 
32174
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32175
    public boolean isSet(_Fields field) {
-
 
32176
      switch (field) {
-
 
32177
      case SUCCESS:
-
 
32178
        return isSetSuccess();
-
 
32179
      }
-
 
32180
      throw new IllegalStateException();
-
 
32181
    }
-
 
32182
 
-
 
32183
    public boolean isSet(int fieldID) {
-
 
32184
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32185
    }
-
 
32186
 
-
 
32187
    @Override
-
 
32188
    public boolean equals(Object that) {
-
 
32189
      if (that == null)
-
 
32190
        return false;
-
 
32191
      if (that instanceof itemExists_result)
-
 
32192
        return this.equals((itemExists_result)that);
-
 
32193
      return false;
-
 
32194
    }
-
 
32195
 
-
 
32196
    public boolean equals(itemExists_result that) {
-
 
32197
      if (that == null)
-
 
32198
        return false;
-
 
32199
 
-
 
32200
      boolean this_present_success = true;
-
 
32201
      boolean that_present_success = true;
-
 
32202
      if (this_present_success || that_present_success) {
-
 
32203
        if (!(this_present_success && that_present_success))
-
 
32204
          return false;
-
 
32205
        if (this.success != that.success)
-
 
32206
          return false;
-
 
32207
      }
-
 
32208
 
-
 
32209
      return true;
-
 
32210
    }
-
 
32211
 
-
 
32212
    @Override
-
 
32213
    public int hashCode() {
-
 
32214
      return 0;
-
 
32215
    }
-
 
32216
 
-
 
32217
    public int compareTo(itemExists_result other) {
-
 
32218
      if (!getClass().equals(other.getClass())) {
-
 
32219
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32220
      }
-
 
32221
 
-
 
32222
      int lastComparison = 0;
-
 
32223
      itemExists_result typedOther = (itemExists_result)other;
-
 
32224
 
-
 
32225
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
32226
      if (lastComparison != 0) {
-
 
32227
        return lastComparison;
-
 
32228
      }
-
 
32229
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
32230
      if (lastComparison != 0) {
-
 
32231
        return lastComparison;
-
 
32232
      }
-
 
32233
      return 0;
-
 
32234
    }
-
 
32235
 
-
 
32236
    public void read(TProtocol iprot) throws TException {
-
 
32237
      TField field;
-
 
32238
      iprot.readStructBegin();
-
 
32239
      while (true)
-
 
32240
      {
-
 
32241
        field = iprot.readFieldBegin();
-
 
32242
        if (field.type == TType.STOP) { 
-
 
32243
          break;
-
 
32244
        }
-
 
32245
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32246
        if (fieldId == null) {
-
 
32247
          TProtocolUtil.skip(iprot, field.type);
-
 
32248
        } else {
-
 
32249
          switch (fieldId) {
-
 
32250
            case SUCCESS:
-
 
32251
              if (field.type == TType.BOOL) {
-
 
32252
                this.success = iprot.readBool();
-
 
32253
                setSuccessIsSet(true);
-
 
32254
              } else { 
-
 
32255
                TProtocolUtil.skip(iprot, field.type);
-
 
32256
              }
-
 
32257
              break;
-
 
32258
          }
-
 
32259
          iprot.readFieldEnd();
-
 
32260
        }
-
 
32261
      }
-
 
32262
      iprot.readStructEnd();
-
 
32263
      validate();
-
 
32264
    }
-
 
32265
 
-
 
32266
    public void write(TProtocol oprot) throws TException {
-
 
32267
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32268
 
-
 
32269
      if (this.isSetSuccess()) {
-
 
32270
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
32271
        oprot.writeBool(this.success);
-
 
32272
        oprot.writeFieldEnd();
-
 
32273
      }
-
 
32274
      oprot.writeFieldStop();
-
 
32275
      oprot.writeStructEnd();
-
 
32276
    }
-
 
32277
 
-
 
32278
    @Override
-
 
32279
    public String toString() {
-
 
32280
      StringBuilder sb = new StringBuilder("itemExists_result(");
-
 
32281
      boolean first = true;
-
 
32282
 
-
 
32283
      sb.append("success:");
-
 
32284
      sb.append(this.success);
-
 
32285
      first = false;
-
 
32286
      sb.append(")");
-
 
32287
      return sb.toString();
-
 
32288
    }
-
 
32289
 
-
 
32290
    public void validate() throws TException {
-
 
32291
      // check for required fields
-
 
32292
    }
-
 
32293
 
-
 
32294
  }
-
 
32295
 
-
 
32296
  public static class addVendorItemMapping_args implements TBase<addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVendorItemMapping_args>   {
-
 
32297
    private static final TStruct STRUCT_DESC = new TStruct("addVendorItemMapping_args");
-
 
32298
 
-
 
32299
    private static final TField VENDOR_ITEM_MAPPING_FIELD_DESC = new TField("vendorItemMapping", TType.STRUCT, (short)1);
-
 
32300
 
-
 
32301
    private VendorItemMapping vendorItemMapping;
-
 
32302
 
-
 
32303
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32304
    public enum _Fields implements TFieldIdEnum {
-
 
32305
      VENDOR_ITEM_MAPPING((short)1, "vendorItemMapping");
-
 
32306
 
-
 
32307
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32308
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32309
 
-
 
32310
      static {
-
 
32311
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32312
          byId.put((int)field._thriftId, field);
-
 
32313
          byName.put(field.getFieldName(), field);
-
 
32314
        }
-
 
32315
      }
-
 
32316
 
-
 
32317
      /**
-
 
32318
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32319
       */
-
 
32320
      public static _Fields findByThriftId(int fieldId) {
-
 
32321
        return byId.get(fieldId);
-
 
32322
      }
-
 
32323
 
-
 
32324
      /**
-
 
32325
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32326
       * if it is not found.
-
 
32327
       */
-
 
32328
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32329
        _Fields fields = findByThriftId(fieldId);
-
 
32330
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32331
        return fields;
-
 
32332
      }
-
 
32333
 
-
 
32334
      /**
-
 
32335
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32336
       */
-
 
32337
      public static _Fields findByName(String name) {
-
 
32338
        return byName.get(name);
-
 
32339
      }
-
 
32340
 
-
 
32341
      private final short _thriftId;
-
 
32342
      private final String _fieldName;
-
 
32343
 
-
 
32344
      _Fields(short thriftId, String fieldName) {
-
 
32345
        _thriftId = thriftId;
-
 
32346
        _fieldName = fieldName;
-
 
32347
      }
-
 
32348
 
-
 
32349
      public short getThriftFieldId() {
-
 
32350
        return _thriftId;
-
 
32351
      }
-
 
32352
 
-
 
32353
      public String getFieldName() {
-
 
32354
        return _fieldName;
-
 
32355
      }
-
 
32356
    }
-
 
32357
 
-
 
32358
    // isset id assignments
-
 
32359
 
-
 
32360
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32361
      put(_Fields.VENDOR_ITEM_MAPPING, new FieldMetaData("vendorItemMapping", TFieldRequirementType.DEFAULT, 
-
 
32362
          new StructMetaData(TType.STRUCT, VendorItemMapping.class)));
-
 
32363
    }});
-
 
32364
 
-
 
32365
    static {
-
 
32366
      FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
-
 
32367
    }
-
 
32368
 
-
 
32369
    public addVendorItemMapping_args() {
-
 
32370
    }
-
 
32371
 
-
 
32372
    public addVendorItemMapping_args(
-
 
32373
      VendorItemMapping vendorItemMapping)
-
 
32374
    {
-
 
32375
      this();
-
 
32376
      this.vendorItemMapping = vendorItemMapping;
-
 
32377
    }
-
 
32378
 
-
 
32379
    /**
-
 
32380
     * Performs a deep copy on <i>other</i>.
-
 
32381
     */
-
 
32382
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
-
 
32383
      if (other.isSetVendorItemMapping()) {
-
 
32384
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
-
 
32385
      }
-
 
32386
    }
-
 
32387
 
-
 
32388
    public addVendorItemMapping_args deepCopy() {
-
 
32389
      return new addVendorItemMapping_args(this);
-
 
32390
    }
-
 
32391
 
-
 
32392
    @Deprecated
-
 
32393
    public addVendorItemMapping_args clone() {
-
 
32394
      return new addVendorItemMapping_args(this);
-
 
32395
    }
-
 
32396
 
-
 
32397
    public VendorItemMapping getVendorItemMapping() {
-
 
32398
      return this.vendorItemMapping;
-
 
32399
    }
-
 
32400
 
-
 
32401
    public addVendorItemMapping_args setVendorItemMapping(VendorItemMapping vendorItemMapping) {
-
 
32402
      this.vendorItemMapping = vendorItemMapping;
-
 
32403
      return this;
-
 
32404
    }
-
 
32405
 
-
 
32406
    public void unsetVendorItemMapping() {
-
 
32407
      this.vendorItemMapping = null;
-
 
32408
    }
-
 
32409
 
-
 
32410
    /** Returns true if field vendorItemMapping is set (has been asigned a value) and false otherwise */
-
 
32411
    public boolean isSetVendorItemMapping() {
-
 
32412
      return this.vendorItemMapping != null;
-
 
32413
    }
-
 
32414
 
-
 
32415
    public void setVendorItemMappingIsSet(boolean value) {
-
 
32416
      if (!value) {
-
 
32417
        this.vendorItemMapping = null;
-
 
32418
      }
-
 
32419
    }
-
 
32420
 
-
 
32421
    public void setFieldValue(_Fields field, Object value) {
-
 
32422
      switch (field) {
-
 
32423
      case VENDOR_ITEM_MAPPING:
-
 
32424
        if (value == null) {
-
 
32425
          unsetVendorItemMapping();
-
 
32426
        } else {
-
 
32427
          setVendorItemMapping((VendorItemMapping)value);
-
 
32428
        }
-
 
32429
        break;
-
 
32430
 
-
 
32431
      }
-
 
32432
    }
-
 
32433
 
-
 
32434
    public void setFieldValue(int fieldID, Object value) {
-
 
32435
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32436
    }
-
 
32437
 
-
 
32438
    public Object getFieldValue(_Fields field) {
-
 
32439
      switch (field) {
-
 
32440
      case VENDOR_ITEM_MAPPING:
-
 
32441
        return getVendorItemMapping();
-
 
32442
 
-
 
32443
      }
-
 
32444
      throw new IllegalStateException();
-
 
32445
    }
-
 
32446
 
-
 
32447
    public Object getFieldValue(int fieldId) {
-
 
32448
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32449
    }
-
 
32450
 
-
 
32451
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32452
    public boolean isSet(_Fields field) {
-
 
32453
      switch (field) {
-
 
32454
      case VENDOR_ITEM_MAPPING:
-
 
32455
        return isSetVendorItemMapping();
-
 
32456
      }
-
 
32457
      throw new IllegalStateException();
-
 
32458
    }
-
 
32459
 
-
 
32460
    public boolean isSet(int fieldID) {
-
 
32461
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32462
    }
-
 
32463
 
-
 
32464
    @Override
-
 
32465
    public boolean equals(Object that) {
-
 
32466
      if (that == null)
-
 
32467
        return false;
-
 
32468
      if (that instanceof addVendorItemMapping_args)
-
 
32469
        return this.equals((addVendorItemMapping_args)that);
-
 
32470
      return false;
-
 
32471
    }
-
 
32472
 
-
 
32473
    public boolean equals(addVendorItemMapping_args that) {
-
 
32474
      if (that == null)
-
 
32475
        return false;
-
 
32476
 
-
 
32477
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
-
 
32478
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
-
 
32479
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
-
 
32480
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
-
 
32481
          return false;
-
 
32482
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
-
 
32483
          return false;
-
 
32484
      }
-
 
32485
 
-
 
32486
      return true;
-
 
32487
    }
-
 
32488
 
-
 
32489
    @Override
-
 
32490
    public int hashCode() {
-
 
32491
      return 0;
-
 
32492
    }
-
 
32493
 
-
 
32494
    public int compareTo(addVendorItemMapping_args other) {
-
 
32495
      if (!getClass().equals(other.getClass())) {
-
 
32496
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32497
      }
-
 
32498
 
-
 
32499
      int lastComparison = 0;
-
 
32500
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
-
 
32501
 
-
 
32502
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(isSetVendorItemMapping());
-
 
32503
      if (lastComparison != 0) {
-
 
32504
        return lastComparison;
-
 
32505
      }
-
 
32506
      lastComparison = TBaseHelper.compareTo(vendorItemMapping, typedOther.vendorItemMapping);
-
 
32507
      if (lastComparison != 0) {
-
 
32508
        return lastComparison;
-
 
32509
      }
-
 
32510
      return 0;
-
 
32511
    }
-
 
32512
 
-
 
32513
    public void read(TProtocol iprot) throws TException {
-
 
32514
      TField field;
-
 
32515
      iprot.readStructBegin();
-
 
32516
      while (true)
-
 
32517
      {
-
 
32518
        field = iprot.readFieldBegin();
-
 
32519
        if (field.type == TType.STOP) { 
-
 
32520
          break;
-
 
32521
        }
-
 
32522
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32523
        if (fieldId == null) {
-
 
32524
          TProtocolUtil.skip(iprot, field.type);
-
 
32525
        } else {
-
 
32526
          switch (fieldId) {
-
 
32527
            case VENDOR_ITEM_MAPPING:
-
 
32528
              if (field.type == TType.STRUCT) {
-
 
32529
                this.vendorItemMapping = new VendorItemMapping();
-
 
32530
                this.vendorItemMapping.read(iprot);
-
 
32531
              } else { 
-
 
32532
                TProtocolUtil.skip(iprot, field.type);
-
 
32533
              }
-
 
32534
              break;
-
 
32535
          }
-
 
32536
          iprot.readFieldEnd();
-
 
32537
        }
-
 
32538
      }
-
 
32539
      iprot.readStructEnd();
-
 
32540
      validate();
-
 
32541
    }
-
 
32542
 
-
 
32543
    public void write(TProtocol oprot) throws TException {
-
 
32544
      validate();
-
 
32545
 
-
 
32546
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32547
      if (this.vendorItemMapping != null) {
-
 
32548
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
-
 
32549
        this.vendorItemMapping.write(oprot);
-
 
32550
        oprot.writeFieldEnd();
-
 
32551
      }
-
 
32552
      oprot.writeFieldStop();
-
 
32553
      oprot.writeStructEnd();
-
 
32554
    }
-
 
32555
 
-
 
32556
    @Override
-
 
32557
    public String toString() {
-
 
32558
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
-
 
32559
      boolean first = true;
-
 
32560
 
-
 
32561
      sb.append("vendorItemMapping:");
-
 
32562
      if (this.vendorItemMapping == null) {
-
 
32563
        sb.append("null");
-
 
32564
      } else {
-
 
32565
        sb.append(this.vendorItemMapping);
-
 
32566
      }
-
 
32567
      first = false;
-
 
32568
      sb.append(")");
-
 
32569
      return sb.toString();
-
 
32570
    }
-
 
32571
 
-
 
32572
    public void validate() throws TException {
-
 
32573
      // check for required fields
-
 
32574
    }
-
 
32575
 
-
 
32576
  }
-
 
32577
 
-
 
32578
  public static class addVendorItemMapping_result implements TBase<addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVendorItemMapping_result>   {
-
 
32579
    private static final TStruct STRUCT_DESC = new TStruct("addVendorItemMapping_result");
-
 
32580
 
-
 
32581
    private static final TField CEX_FIELD_DESC = new TField("cex", TType.STRUCT, (short)1);
-
 
32582
 
-
 
32583
    private InventoryServiceException cex;
-
 
32584
 
-
 
32585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32586
    public enum _Fields implements TFieldIdEnum {
-
 
32587
      CEX((short)1, "cex");
-
 
32588
 
-
 
32589
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32591
 
-
 
32592
      static {
-
 
32593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32594
          byId.put((int)field._thriftId, field);
-
 
32595
          byName.put(field.getFieldName(), field);
-
 
32596
        }
-
 
32597
      }
-
 
32598
 
-
 
32599
      /**
-
 
32600
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32601
       */
-
 
32602
      public static _Fields findByThriftId(int fieldId) {
-
 
32603
        return byId.get(fieldId);
-
 
32604
      }
-
 
32605
 
-
 
32606
      /**
-
 
32607
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32608
       * if it is not found.
-
 
32609
       */
-
 
32610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32611
        _Fields fields = findByThriftId(fieldId);
-
 
32612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32613
        return fields;
-
 
32614
      }
-
 
32615
 
-
 
32616
      /**
-
 
32617
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32618
       */
-
 
32619
      public static _Fields findByName(String name) {
-
 
32620
        return byName.get(name);
-
 
32621
      }
-
 
32622
 
-
 
32623
      private final short _thriftId;
-
 
32624
      private final String _fieldName;
-
 
32625
 
-
 
32626
      _Fields(short thriftId, String fieldName) {
-
 
32627
        _thriftId = thriftId;
-
 
32628
        _fieldName = fieldName;
-
 
32629
      }
-
 
32630
 
-
 
32631
      public short getThriftFieldId() {
-
 
32632
        return _thriftId;
-
 
32633
      }
-
 
32634
 
-
 
32635
      public String getFieldName() {
-
 
32636
        return _fieldName;
-
 
32637
      }
-
 
32638
    }
-
 
32639
 
-
 
32640
    // isset id assignments
-
 
32641
 
-
 
32642
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32643
      put(_Fields.CEX, new FieldMetaData("cex", TFieldRequirementType.DEFAULT, 
-
 
32644
          new FieldValueMetaData(TType.STRUCT)));
-
 
32645
    }});
-
 
32646
 
-
 
32647
    static {
-
 
32648
      FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
-
 
32649
    }
-
 
32650
 
-
 
32651
    public addVendorItemMapping_result() {
-
 
32652
    }
-
 
32653
 
-
 
32654
    public addVendorItemMapping_result(
-
 
32655
      InventoryServiceException cex)
-
 
32656
    {
-
 
32657
      this();
-
 
32658
      this.cex = cex;
-
 
32659
    }
-
 
32660
 
-
 
32661
    /**
-
 
32662
     * Performs a deep copy on <i>other</i>.
-
 
32663
     */
-
 
32664
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
-
 
32665
      if (other.isSetCex()) {
-
 
32666
        this.cex = new InventoryServiceException(other.cex);
-
 
32667
      }
-
 
32668
    }
-
 
32669
 
-
 
32670
    public addVendorItemMapping_result deepCopy() {
-
 
32671
      return new addVendorItemMapping_result(this);
-
 
32672
    }
-
 
32673
 
-
 
32674
    @Deprecated
-
 
32675
    public addVendorItemMapping_result clone() {
-
 
32676
      return new addVendorItemMapping_result(this);
-
 
32677
    }
-
 
32678
 
-
 
32679
    public InventoryServiceException getCex() {
-
 
32680
      return this.cex;
-
 
32681
    }
-
 
32682
 
-
 
32683
    public addVendorItemMapping_result setCex(InventoryServiceException cex) {
-
 
32684
      this.cex = cex;
-
 
32685
      return this;
-
 
32686
    }
-
 
32687
 
-
 
32688
    public void unsetCex() {
-
 
32689
      this.cex = null;
-
 
32690
    }
-
 
32691
 
-
 
32692
    /** Returns true if field cex is set (has been asigned a value) and false otherwise */
-
 
32693
    public boolean isSetCex() {
-
 
32694
      return this.cex != null;
-
 
32695
    }
-
 
32696
 
-
 
32697
    public void setCexIsSet(boolean value) {
-
 
32698
      if (!value) {
-
 
32699
        this.cex = null;
-
 
32700
      }
-
 
32701
    }
-
 
32702
 
-
 
32703
    public void setFieldValue(_Fields field, Object value) {
-
 
32704
      switch (field) {
-
 
32705
      case CEX:
-
 
32706
        if (value == null) {
-
 
32707
          unsetCex();
-
 
32708
        } else {
-
 
32709
          setCex((InventoryServiceException)value);
-
 
32710
        }
-
 
32711
        break;
-
 
32712
 
-
 
32713
      }
-
 
32714
    }
-
 
32715
 
-
 
32716
    public void setFieldValue(int fieldID, Object value) {
-
 
32717
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32718
    }
-
 
32719
 
-
 
32720
    public Object getFieldValue(_Fields field) {
-
 
32721
      switch (field) {
-
 
32722
      case CEX:
-
 
32723
        return getCex();
-
 
32724
 
-
 
32725
      }
-
 
32726
      throw new IllegalStateException();
-
 
32727
    }
-
 
32728
 
-
 
32729
    public Object getFieldValue(int fieldId) {
-
 
32730
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32731
    }
-
 
32732
 
-
 
32733
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32734
    public boolean isSet(_Fields field) {
-
 
32735
      switch (field) {
-
 
32736
      case CEX:
-
 
32737
        return isSetCex();
-
 
32738
      }
-
 
32739
      throw new IllegalStateException();
-
 
32740
    }
-
 
32741
 
-
 
32742
    public boolean isSet(int fieldID) {
-
 
32743
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32744
    }
-
 
32745
 
-
 
32746
    @Override
-
 
32747
    public boolean equals(Object that) {
-
 
32748
      if (that == null)
-
 
32749
        return false;
-
 
32750
      if (that instanceof addVendorItemMapping_result)
-
 
32751
        return this.equals((addVendorItemMapping_result)that);
-
 
32752
      return false;
-
 
32753
    }
-
 
32754
 
-
 
32755
    public boolean equals(addVendorItemMapping_result that) {
-
 
32756
      if (that == null)
-
 
32757
        return false;
-
 
32758
 
-
 
32759
      boolean this_present_cex = true && this.isSetCex();
-
 
32760
      boolean that_present_cex = true && that.isSetCex();
-
 
32761
      if (this_present_cex || that_present_cex) {
-
 
32762
        if (!(this_present_cex && that_present_cex))
-
 
32763
          return false;
-
 
32764
        if (!this.cex.equals(that.cex))
-
 
32765
          return false;
-
 
32766
      }
-
 
32767
 
-
 
32768
      return true;
-
 
32769
    }
-
 
32770
 
-
 
32771
    @Override
-
 
32772
    public int hashCode() {
-
 
32773
      return 0;
-
 
32774
    }
-
 
32775
 
-
 
32776
    public int compareTo(addVendorItemMapping_result other) {
-
 
32777
      if (!getClass().equals(other.getClass())) {
-
 
32778
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32779
      }
-
 
32780
 
-
 
32781
      int lastComparison = 0;
-
 
32782
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
-
 
32783
 
-
 
32784
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(isSetCex());
-
 
32785
      if (lastComparison != 0) {
-
 
32786
        return lastComparison;
-
 
32787
      }
-
 
32788
      lastComparison = TBaseHelper.compareTo(cex, typedOther.cex);
-
 
32789
      if (lastComparison != 0) {
-
 
32790
        return lastComparison;
-
 
32791
      }
-
 
32792
      return 0;
-
 
32793
    }
-
 
32794
 
-
 
32795
    public void read(TProtocol iprot) throws TException {
-
 
32796
      TField field;
-
 
32797
      iprot.readStructBegin();
-
 
32798
      while (true)
-
 
32799
      {
-
 
32800
        field = iprot.readFieldBegin();
-
 
32801
        if (field.type == TType.STOP) { 
-
 
32802
          break;
-
 
32803
        }
-
 
32804
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32805
        if (fieldId == null) {
-
 
32806
          TProtocolUtil.skip(iprot, field.type);
-
 
32807
        } else {
-
 
32808
          switch (fieldId) {
-
 
32809
            case CEX:
-
 
32810
              if (field.type == TType.STRUCT) {
-
 
32811
                this.cex = new InventoryServiceException();
-
 
32812
                this.cex.read(iprot);
-
 
32813
              } else { 
-
 
32814
                TProtocolUtil.skip(iprot, field.type);
-
 
32815
              }
-
 
32816
              break;
-
 
32817
          }
-
 
32818
          iprot.readFieldEnd();
-
 
32819
        }
-
 
32820
      }
-
 
32821
      iprot.readStructEnd();
-
 
32822
      validate();
-
 
32823
    }
-
 
32824
 
-
 
32825
    public void write(TProtocol oprot) throws TException {
-
 
32826
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32827
 
-
 
32828
      if (this.isSetCex()) {
-
 
32829
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
32830
        this.cex.write(oprot);
-
 
32831
        oprot.writeFieldEnd();
-
 
32832
      }
-
 
32833
      oprot.writeFieldStop();
-
 
32834
      oprot.writeStructEnd();
-
 
32835
    }
-
 
32836
 
-
 
32837
    @Override
-
 
32838
    public String toString() {
-
 
32839
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
-
 
32840
      boolean first = true;
-
 
32841
 
-
 
32842
      sb.append("cex:");
-
 
32843
      if (this.cex == null) {
-
 
32844
        sb.append("null");
-
 
32845
      } else {
-
 
32846
        sb.append(this.cex);
-
 
32847
      }
-
 
32848
      first = false;
-
 
32849
      sb.append(")");
-
 
32850
      return sb.toString();
-
 
32851
    }
-
 
32852
 
-
 
32853
    public void validate() throws TException {
-
 
32854
      // check for required fields
-
 
32855
    }
-
 
32856
 
-
 
32857
  }
-
 
32858
 
-
 
32859
  public static class getVendorItemMappings_args implements TBase<getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable, Comparable<getVendorItemMappings_args>   {
-
 
32860
    private static final TStruct STRUCT_DESC = new TStruct("getVendorItemMappings_args");
-
 
32861
 
-
 
32862
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)1);
-
 
32863
 
-
 
32864
    private long itemId;
-
 
32865
 
-
 
32866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32867
    public enum _Fields implements TFieldIdEnum {
-
 
32868
      ITEM_ID((short)1, "itemId");
-
 
32869
 
-
 
32870
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32872
 
-
 
32873
      static {
-
 
32874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32875
          byId.put((int)field._thriftId, field);
-
 
32876
          byName.put(field.getFieldName(), field);
-
 
32877
        }
-
 
32878
      }
-
 
32879
 
-
 
32880
      /**
-
 
32881
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32882
       */
-
 
32883
      public static _Fields findByThriftId(int fieldId) {
-
 
32884
        return byId.get(fieldId);
-
 
32885
      }
-
 
32886
 
-
 
32887
      /**
-
 
32888
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32889
       * if it is not found.
-
 
32890
       */
-
 
32891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32892
        _Fields fields = findByThriftId(fieldId);
-
 
32893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32894
        return fields;
-
 
32895
      }
-
 
32896
 
-
 
32897
      /**
-
 
32898
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32899
       */
-
 
32900
      public static _Fields findByName(String name) {
-
 
32901
        return byName.get(name);
-
 
32902
      }
-
 
32903
 
-
 
32904
      private final short _thriftId;
-
 
32905
      private final String _fieldName;
-
 
32906
 
-
 
32907
      _Fields(short thriftId, String fieldName) {
-
 
32908
        _thriftId = thriftId;
-
 
32909
        _fieldName = fieldName;
-
 
32910
      }
-
 
32911
 
-
 
32912
      public short getThriftFieldId() {
-
 
32913
        return _thriftId;
-
 
32914
      }
-
 
32915
 
-
 
32916
      public String getFieldName() {
-
 
32917
        return _fieldName;
-
 
32918
      }
-
 
32919
    }
-
 
32920
 
-
 
32921
    // isset id assignments
-
 
32922
    private static final int __ITEMID_ISSET_ID = 0;
-
 
32923
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32924
 
-
 
32925
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32926
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
-
 
32927
          new FieldValueMetaData(TType.I64)));
-
 
32928
    }});
-
 
32929
 
-
 
32930
    static {
-
 
32931
      FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
-
 
32932
    }
-
 
32933
 
-
 
32934
    public getVendorItemMappings_args() {
-
 
32935
    }
-
 
32936
 
-
 
32937
    public getVendorItemMappings_args(
-
 
32938
      long itemId)
-
 
32939
    {
-
 
32940
      this();
-
 
32941
      this.itemId = itemId;
-
 
32942
      setItemIdIsSet(true);
-
 
32943
    }
-
 
32944
 
-
 
32945
    /**
-
 
32946
     * Performs a deep copy on <i>other</i>.
-
 
32947
     */
-
 
32948
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
-
 
32949
      __isset_bit_vector.clear();
-
 
32950
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32951
      this.itemId = other.itemId;
-
 
32952
    }
-
 
32953
 
-
 
32954
    public getVendorItemMappings_args deepCopy() {
-
 
32955
      return new getVendorItemMappings_args(this);
-
 
32956
    }
-
 
32957
 
-
 
32958
    @Deprecated
-
 
32959
    public getVendorItemMappings_args clone() {
-
 
32960
      return new getVendorItemMappings_args(this);
-
 
32961
    }
-
 
32962
 
-
 
32963
    public long getItemId() {
-
 
32964
      return this.itemId;
-
 
32965
    }
-
 
32966
 
-
 
32967
    public getVendorItemMappings_args setItemId(long itemId) {
-
 
32968
      this.itemId = itemId;
-
 
32969
      setItemIdIsSet(true);
-
 
32970
      return this;
-
 
32971
    }
-
 
32972
 
-
 
32973
    public void unsetItemId() {
-
 
32974
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
32975
    }
-
 
32976
 
-
 
32977
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
-
 
32978
    public boolean isSetItemId() {
-
 
32979
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
32980
    }
-
 
32981
 
-
 
32982
    public void setItemIdIsSet(boolean value) {
-
 
32983
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
32984
    }
-
 
32985
 
-
 
32986
    public void setFieldValue(_Fields field, Object value) {
-
 
32987
      switch (field) {
-
 
32988
      case ITEM_ID:
-
 
32989
        if (value == null) {
-
 
32990
          unsetItemId();
-
 
32991
        } else {
-
 
32992
          setItemId((Long)value);
-
 
32993
        }
-
 
32994
        break;
-
 
32995
 
-
 
32996
      }
-
 
32997
    }
-
 
32998
 
-
 
32999
    public void setFieldValue(int fieldID, Object value) {
-
 
33000
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33001
    }
-
 
33002
 
-
 
33003
    public Object getFieldValue(_Fields field) {
-
 
33004
      switch (field) {
-
 
33005
      case ITEM_ID:
-
 
33006
        return new Long(getItemId());
-
 
33007
 
-
 
33008
      }
-
 
33009
      throw new IllegalStateException();
-
 
33010
    }
-
 
33011
 
-
 
33012
    public Object getFieldValue(int fieldId) {
-
 
33013
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33014
    }
-
 
33015
 
-
 
33016
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33017
    public boolean isSet(_Fields field) {
-
 
33018
      switch (field) {
-
 
33019
      case ITEM_ID:
-
 
33020
        return isSetItemId();
-
 
33021
      }
-
 
33022
      throw new IllegalStateException();
-
 
33023
    }
-
 
33024
 
-
 
33025
    public boolean isSet(int fieldID) {
-
 
33026
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33027
    }
-
 
33028
 
-
 
33029
    @Override
-
 
33030
    public boolean equals(Object that) {
-
 
33031
      if (that == null)
-
 
33032
        return false;
-
 
33033
      if (that instanceof getVendorItemMappings_args)
-
 
33034
        return this.equals((getVendorItemMappings_args)that);
-
 
33035
      return false;
-
 
33036
    }
-
 
33037
 
-
 
33038
    public boolean equals(getVendorItemMappings_args that) {
-
 
33039
      if (that == null)
-
 
33040
        return false;
-
 
33041
 
-
 
33042
      boolean this_present_itemId = true;
-
 
33043
      boolean that_present_itemId = true;
-
 
33044
      if (this_present_itemId || that_present_itemId) {
-
 
33045
        if (!(this_present_itemId && that_present_itemId))
-
 
33046
          return false;
-
 
33047
        if (this.itemId != that.itemId)
-
 
33048
          return false;
-
 
33049
      }
-
 
33050
 
-
 
33051
      return true;
-
 
33052
    }
-
 
33053
 
-
 
33054
    @Override
-
 
33055
    public int hashCode() {
-
 
33056
      return 0;
-
 
33057
    }
-
 
33058
 
-
 
33059
    public int compareTo(getVendorItemMappings_args other) {
-
 
33060
      if (!getClass().equals(other.getClass())) {
-
 
33061
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33062
      }
-
 
33063
 
-
 
33064
      int lastComparison = 0;
-
 
33065
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
-
 
33066
 
-
 
33067
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
-
 
33068
      if (lastComparison != 0) {
-
 
33069
        return lastComparison;
-
 
33070
      }
-
 
33071
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
-
 
33072
      if (lastComparison != 0) {
-
 
33073
        return lastComparison;
-
 
33074
      }
-
 
33075
      return 0;
-
 
33076
    }
-
 
33077
 
-
 
33078
    public void read(TProtocol iprot) throws TException {
-
 
33079
      TField field;
-
 
33080
      iprot.readStructBegin();
-
 
33081
      while (true)
-
 
33082
      {
-
 
33083
        field = iprot.readFieldBegin();
-
 
33084
        if (field.type == TType.STOP) { 
-
 
33085
          break;
-
 
33086
        }
-
 
33087
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33088
        if (fieldId == null) {
-
 
33089
          TProtocolUtil.skip(iprot, field.type);
-
 
33090
        } else {
-
 
33091
          switch (fieldId) {
-
 
33092
            case ITEM_ID:
-
 
33093
              if (field.type == TType.I64) {
-
 
33094
                this.itemId = iprot.readI64();
-
 
33095
                setItemIdIsSet(true);
-
 
33096
              } else { 
-
 
33097
                TProtocolUtil.skip(iprot, field.type);
-
 
33098
              }
-
 
33099
              break;
-
 
33100
          }
-
 
33101
          iprot.readFieldEnd();
-
 
33102
        }
-
 
33103
      }
-
 
33104
      iprot.readStructEnd();
-
 
33105
      validate();
-
 
33106
    }
-
 
33107
 
-
 
33108
    public void write(TProtocol oprot) throws TException {
-
 
33109
      validate();
-
 
33110
 
-
 
33111
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33112
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
33113
      oprot.writeI64(this.itemId);
-
 
33114
      oprot.writeFieldEnd();
-
 
33115
      oprot.writeFieldStop();
-
 
33116
      oprot.writeStructEnd();
-
 
33117
    }
-
 
33118
 
-
 
33119
    @Override
-
 
33120
    public String toString() {
-
 
33121
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
-
 
33122
      boolean first = true;
-
 
33123
 
-
 
33124
      sb.append("itemId:");
-
 
33125
      sb.append(this.itemId);
-
 
33126
      first = false;
-
 
33127
      sb.append(")");
-
 
33128
      return sb.toString();
-
 
33129
    }
-
 
33130
 
-
 
33131
    public void validate() throws TException {
-
 
33132
      // check for required fields
-
 
33133
    }
-
 
33134
 
-
 
33135
  }
-
 
33136
 
-
 
33137
  public static class getVendorItemMappings_result implements TBase<getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable, Comparable<getVendorItemMappings_result>   {
-
 
33138
    private static final TStruct STRUCT_DESC = new TStruct("getVendorItemMappings_result");
-
 
33139
 
-
 
33140
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
33141
    private static final TField CEX_FIELD_DESC = new TField("cex", TType.STRUCT, (short)1);
-
 
33142
 
-
 
33143
    private List<VendorItemMapping> success;
-
 
33144
    private InventoryServiceException cex;
-
 
33145
 
-
 
33146
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33147
    public enum _Fields implements TFieldIdEnum {
-
 
33148
      SUCCESS((short)0, "success"),
-
 
33149
      CEX((short)1, "cex");
-
 
33150
 
-
 
33151
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
33152
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33153
 
-
 
33154
      static {
-
 
33155
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33156
          byId.put((int)field._thriftId, field);
-
 
33157
          byName.put(field.getFieldName(), field);
-
 
33158
        }
-
 
33159
      }
-
 
33160
 
-
 
33161
      /**
-
 
33162
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33163
       */
-
 
33164
      public static _Fields findByThriftId(int fieldId) {
-
 
33165
        return byId.get(fieldId);
-
 
33166
      }
-
 
33167
 
-
 
33168
      /**
-
 
33169
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33170
       * if it is not found.
-
 
33171
       */
-
 
33172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33173
        _Fields fields = findByThriftId(fieldId);
-
 
33174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33175
        return fields;
-
 
33176
      }
-
 
33177
 
-
 
33178
      /**
-
 
33179
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33180
       */
-
 
33181
      public static _Fields findByName(String name) {
-
 
33182
        return byName.get(name);
-
 
33183
      }
-
 
33184
 
-
 
33185
      private final short _thriftId;
-
 
33186
      private final String _fieldName;
-
 
33187
 
-
 
33188
      _Fields(short thriftId, String fieldName) {
-
 
33189
        _thriftId = thriftId;
-
 
33190
        _fieldName = fieldName;
-
 
33191
      }
-
 
33192
 
-
 
33193
      public short getThriftFieldId() {
-
 
33194
        return _thriftId;
-
 
33195
      }
-
 
33196
 
-
 
33197
      public String getFieldName() {
-
 
33198
        return _fieldName;
-
 
33199
      }
-
 
33200
    }
-
 
33201
 
-
 
33202
    // isset id assignments
-
 
33203
 
-
 
33204
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
33205
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
33206
          new ListMetaData(TType.LIST, 
-
 
33207
              new StructMetaData(TType.STRUCT, VendorItemMapping.class))));
-
 
33208
      put(_Fields.CEX, new FieldMetaData("cex", TFieldRequirementType.DEFAULT, 
-
 
33209
          new FieldValueMetaData(TType.STRUCT)));
-
 
33210
    }});
-
 
33211
 
-
 
33212
    static {
-
 
33213
      FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
-
 
33214
    }
-
 
33215
 
-
 
33216
    public getVendorItemMappings_result() {
-
 
33217
    }
-
 
33218
 
-
 
33219
    public getVendorItemMappings_result(
-
 
33220
      List<VendorItemMapping> success,
-
 
33221
      InventoryServiceException cex)
-
 
33222
    {
-
 
33223
      this();
-
 
33224
      this.success = success;
-
 
33225
      this.cex = cex;
-
 
33226
    }
-
 
33227
 
-
 
33228
    /**
-
 
33229
     * Performs a deep copy on <i>other</i>.
-
 
33230
     */
-
 
33231
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
-
 
33232
      if (other.isSetSuccess()) {
-
 
33233
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
-
 
33234
        for (VendorItemMapping other_element : other.success) {
-
 
33235
          __this__success.add(new VendorItemMapping(other_element));
-
 
33236
        }
-
 
33237
        this.success = __this__success;
-
 
33238
      }
-
 
33239
      if (other.isSetCex()) {
-
 
33240
        this.cex = new InventoryServiceException(other.cex);
-
 
33241
      }
-
 
33242
    }
-
 
33243
 
-
 
33244
    public getVendorItemMappings_result deepCopy() {
-
 
33245
      return new getVendorItemMappings_result(this);
-
 
33246
    }
-
 
33247
 
-
 
33248
    @Deprecated
-
 
33249
    public getVendorItemMappings_result clone() {
-
 
33250
      return new getVendorItemMappings_result(this);
-
 
33251
    }
-
 
33252
 
-
 
33253
    public int getSuccessSize() {
-
 
33254
      return (this.success == null) ? 0 : this.success.size();
-
 
33255
    }
-
 
33256
 
-
 
33257
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
-
 
33258
      return (this.success == null) ? null : this.success.iterator();
-
 
33259
    }
-
 
33260
 
-
 
33261
    public void addToSuccess(VendorItemMapping elem) {
-
 
33262
      if (this.success == null) {
-
 
33263
        this.success = new ArrayList<VendorItemMapping>();
-
 
33264
      }
-
 
33265
      this.success.add(elem);
-
 
33266
    }
-
 
33267
 
-
 
33268
    public List<VendorItemMapping> getSuccess() {
-
 
33269
      return this.success;
-
 
33270
    }
-
 
33271
 
-
 
33272
    public getVendorItemMappings_result setSuccess(List<VendorItemMapping> success) {
-
 
33273
      this.success = success;
-
 
33274
      return this;
-
 
33275
    }
-
 
33276
 
-
 
33277
    public void unsetSuccess() {
-
 
33278
      this.success = null;
-
 
33279
    }
-
 
33280
 
-
 
33281
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
33282
    public boolean isSetSuccess() {
-
 
33283
      return this.success != null;
-
 
33284
    }
-
 
33285
 
-
 
33286
    public void setSuccessIsSet(boolean value) {
-
 
33287
      if (!value) {
-
 
33288
        this.success = null;
-
 
33289
      }
-
 
33290
    }
-
 
33291
 
-
 
33292
    public InventoryServiceException getCex() {
-
 
33293
      return this.cex;
-
 
33294
    }
-
 
33295
 
-
 
33296
    public getVendorItemMappings_result setCex(InventoryServiceException cex) {
-
 
33297
      this.cex = cex;
-
 
33298
      return this;
-
 
33299
    }
-
 
33300
 
-
 
33301
    public void unsetCex() {
-
 
33302
      this.cex = null;
-
 
33303
    }
-
 
33304
 
-
 
33305
    /** Returns true if field cex is set (has been asigned a value) and false otherwise */
-
 
33306
    public boolean isSetCex() {
-
 
33307
      return this.cex != null;
-
 
33308
    }
-
 
33309
 
-
 
33310
    public void setCexIsSet(boolean value) {
-
 
33311
      if (!value) {
-
 
33312
        this.cex = null;
-
 
33313
      }
-
 
33314
    }
-
 
33315
 
-
 
33316
    public void setFieldValue(_Fields field, Object value) {
-
 
33317
      switch (field) {
-
 
33318
      case SUCCESS:
-
 
33319
        if (value == null) {
-
 
33320
          unsetSuccess();
-
 
33321
        } else {
-
 
33322
          setSuccess((List<VendorItemMapping>)value);
-
 
33323
        }
-
 
33324
        break;
-
 
33325
 
-
 
33326
      case CEX:
-
 
33327
        if (value == null) {
-
 
33328
          unsetCex();
-
 
33329
        } else {
-
 
33330
          setCex((InventoryServiceException)value);
-
 
33331
        }
-
 
33332
        break;
-
 
33333
 
-
 
33334
      }
-
 
33335
    }
-
 
33336
 
-
 
33337
    public void setFieldValue(int fieldID, Object value) {
-
 
33338
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33339
    }
-
 
33340
 
-
 
33341
    public Object getFieldValue(_Fields field) {
-
 
33342
      switch (field) {
-
 
33343
      case SUCCESS:
-
 
33344
        return getSuccess();
-
 
33345
 
-
 
33346
      case CEX:
-
 
33347
        return getCex();
-
 
33348
 
-
 
33349
      }
-
 
33350
      throw new IllegalStateException();
-
 
33351
    }
-
 
33352
 
-
 
33353
    public Object getFieldValue(int fieldId) {
-
 
33354
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33355
    }
-
 
33356
 
-
 
33357
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33358
    public boolean isSet(_Fields field) {
-
 
33359
      switch (field) {
-
 
33360
      case SUCCESS:
-
 
33361
        return isSetSuccess();
-
 
33362
      case CEX:
-
 
33363
        return isSetCex();
-
 
33364
      }
-
 
33365
      throw new IllegalStateException();
-
 
33366
    }
-
 
33367
 
-
 
33368
    public boolean isSet(int fieldID) {
-
 
33369
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33370
    }
-
 
33371
 
-
 
33372
    @Override
-
 
33373
    public boolean equals(Object that) {
-
 
33374
      if (that == null)
-
 
33375
        return false;
-
 
33376
      if (that instanceof getVendorItemMappings_result)
-
 
33377
        return this.equals((getVendorItemMappings_result)that);
-
 
33378
      return false;
-
 
33379
    }
-
 
33380
 
-
 
33381
    public boolean equals(getVendorItemMappings_result that) {
-
 
33382
      if (that == null)
-
 
33383
        return false;
-
 
33384
 
-
 
33385
      boolean this_present_success = true && this.isSetSuccess();
-
 
33386
      boolean that_present_success = true && that.isSetSuccess();
-
 
33387
      if (this_present_success || that_present_success) {
-
 
33388
        if (!(this_present_success && that_present_success))
-
 
33389
          return false;
-
 
33390
        if (!this.success.equals(that.success))
-
 
33391
          return false;
-
 
33392
      }
-
 
33393
 
-
 
33394
      boolean this_present_cex = true && this.isSetCex();
-
 
33395
      boolean that_present_cex = true && that.isSetCex();
-
 
33396
      if (this_present_cex || that_present_cex) {
-
 
33397
        if (!(this_present_cex && that_present_cex))
-
 
33398
          return false;
-
 
33399
        if (!this.cex.equals(that.cex))
-
 
33400
          return false;
-
 
33401
      }
-
 
33402
 
-
 
33403
      return true;
-
 
33404
    }
-
 
33405
 
-
 
33406
    @Override
-
 
33407
    public int hashCode() {
-
 
33408
      return 0;
-
 
33409
    }
-
 
33410
 
-
 
33411
    public int compareTo(getVendorItemMappings_result other) {
-
 
33412
      if (!getClass().equals(other.getClass())) {
-
 
33413
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33414
      }
-
 
33415
 
-
 
33416
      int lastComparison = 0;
-
 
33417
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
-
 
33418
 
-
 
33419
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
33420
      if (lastComparison != 0) {
-
 
33421
        return lastComparison;
-
 
33422
      }
-
 
33423
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
33424
      if (lastComparison != 0) {
-
 
33425
        return lastComparison;
-
 
33426
      }
-
 
33427
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(isSetCex());
-
 
33428
      if (lastComparison != 0) {
-
 
33429
        return lastComparison;
-
 
33430
      }
-
 
33431
      lastComparison = TBaseHelper.compareTo(cex, typedOther.cex);
-
 
33432
      if (lastComparison != 0) {
-
 
33433
        return lastComparison;
-
 
33434
      }
-
 
33435
      return 0;
-
 
33436
    }
-
 
33437
 
-
 
33438
    public void read(TProtocol iprot) throws TException {
-
 
33439
      TField field;
-
 
33440
      iprot.readStructBegin();
-
 
33441
      while (true)
-
 
33442
      {
-
 
33443
        field = iprot.readFieldBegin();
-
 
33444
        if (field.type == TType.STOP) { 
-
 
33445
          break;
-
 
33446
        }
-
 
33447
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33448
        if (fieldId == null) {
-
 
33449
          TProtocolUtil.skip(iprot, field.type);
-
 
33450
        } else {
-
 
33451
          switch (fieldId) {
-
 
33452
            case SUCCESS:
-
 
33453
              if (field.type == TType.LIST) {
-
 
33454
                {
-
 
33455
                  TList _list83 = iprot.readListBegin();
-
 
33456
                  this.success = new ArrayList<VendorItemMapping>(_list83.size);
-
 
33457
                  for (int _i84 = 0; _i84 < _list83.size; ++_i84)
-
 
33458
                  {
-
 
33459
                    VendorItemMapping _elem85;
-
 
33460
                    _elem85 = new VendorItemMapping();
-
 
33461
                    _elem85.read(iprot);
-
 
33462
                    this.success.add(_elem85);
-
 
33463
                  }
-
 
33464
                  iprot.readListEnd();
-
 
33465
                }
-
 
33466
              } else { 
-
 
33467
                TProtocolUtil.skip(iprot, field.type);
-
 
33468
              }
-
 
33469
              break;
-
 
33470
            case CEX:
-
 
33471
              if (field.type == TType.STRUCT) {
-
 
33472
                this.cex = new InventoryServiceException();
-
 
33473
                this.cex.read(iprot);
-
 
33474
              } else { 
-
 
33475
                TProtocolUtil.skip(iprot, field.type);
-
 
33476
              }
-
 
33477
              break;
-
 
33478
          }
-
 
33479
          iprot.readFieldEnd();
-
 
33480
        }
-
 
33481
      }
-
 
33482
      iprot.readStructEnd();
-
 
33483
      validate();
-
 
33484
    }
-
 
33485
 
-
 
33486
    public void write(TProtocol oprot) throws TException {
-
 
33487
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33488
 
-
 
33489
      if (this.isSetSuccess()) {
-
 
33490
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
33491
        {
-
 
33492
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
33493
          for (VendorItemMapping _iter86 : this.success)
-
 
33494
          {
-
 
33495
            _iter86.write(oprot);
-
 
33496
          }
-
 
33497
          oprot.writeListEnd();
-
 
33498
        }
-
 
33499
        oprot.writeFieldEnd();
-
 
33500
      } else if (this.isSetCex()) {
-
 
33501
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
33502
        this.cex.write(oprot);
-
 
33503
        oprot.writeFieldEnd();
-
 
33504
      }
-
 
33505
      oprot.writeFieldStop();
-
 
33506
      oprot.writeStructEnd();
-
 
33507
    }
-
 
33508
 
-
 
33509
    @Override
-
 
33510
    public String toString() {
-
 
33511
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
-
 
33512
      boolean first = true;
-
 
33513
 
-
 
33514
      sb.append("success:");
-
 
33515
      if (this.success == null) {
-
 
33516
        sb.append("null");
-
 
33517
      } else {
-
 
33518
        sb.append(this.success);
-
 
33519
      }
-
 
33520
      first = false;
-
 
33521
      if (!first) sb.append(", ");
-
 
33522
      sb.append("cex:");
-
 
33523
      if (this.cex == null) {
-
 
33524
        sb.append("null");
-
 
33525
      } else {
-
 
33526
        sb.append(this.cex);
-
 
33527
      }
-
 
33528
      first = false;
-
 
33529
      sb.append(")");
-
 
33530
      return sb.toString();
-
 
33531
    }
-
 
33532
 
-
 
33533
    public void validate() throws TException {
-
 
33534
      // check for required fields
-
 
33535
    }
-
 
33536
 
-
 
33537
  }
-
 
33538
 
-
 
33539
  public static class checkSimilarItem_args implements TBase<checkSimilarItem_args._Fields>, java.io.Serializable, Cloneable, Comparable<checkSimilarItem_args>   {
-
 
33540
    private static final TStruct STRUCT_DESC = new TStruct("checkSimilarItem_args");
-
 
33541
 
-
 
33542
    private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)1);
-
 
33543
    private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)2);
-
 
33544
    private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)3);
-
 
33545
    private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)4);
-
 
33546
 
-
 
33547
    private String productGroup;
-
 
33548
    private String brand;
-
 
33549
    private String modelNumber;
-
 
33550
    private String color;
-
 
33551
 
-
 
33552
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33553
    public enum _Fields implements TFieldIdEnum {
-
 
33554
      PRODUCT_GROUP((short)1, "productGroup"),
-
 
33555
      BRAND((short)2, "brand"),
-
 
33556
      MODEL_NUMBER((short)3, "modelNumber"),
-
 
33557
      COLOR((short)4, "color");
-
 
33558
 
-
 
33559
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
33560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33561
 
-
 
33562
      static {
-
 
33563
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33564
          byId.put((int)field._thriftId, field);
-
 
33565
          byName.put(field.getFieldName(), field);
-
 
33566
        }
-
 
33567
      }
-
 
33568
 
-
 
33569
      /**
-
 
33570
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33571
       */
-
 
33572
      public static _Fields findByThriftId(int fieldId) {
-
 
33573
        return byId.get(fieldId);
-
 
33574
      }
-
 
33575
 
-
 
33576
      /**
-
 
33577
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33578
       * if it is not found.
-
 
33579
       */
-
 
33580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33581
        _Fields fields = findByThriftId(fieldId);
-
 
33582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33583
        return fields;
-
 
33584
      }
-
 
33585
 
-
 
33586
      /**
-
 
33587
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33588
       */
-
 
33589
      public static _Fields findByName(String name) {
-
 
33590
        return byName.get(name);
-
 
33591
      }
-
 
33592
 
-
 
33593
      private final short _thriftId;
-
 
33594
      private final String _fieldName;
-
 
33595
 
-
 
33596
      _Fields(short thriftId, String fieldName) {
-
 
33597
        _thriftId = thriftId;
-
 
33598
        _fieldName = fieldName;
-
 
33599
      }
-
 
33600
 
-
 
33601
      public short getThriftFieldId() {
-
 
33602
        return _thriftId;
-
 
33603
      }
-
 
33604
 
-
 
33605
      public String getFieldName() {
-
 
33606
        return _fieldName;
-
 
33607
      }
-
 
33608
    }
-
 
33609
 
-
 
33610
    // isset id assignments
-
 
33611
 
-
 
33612
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
33613
      put(_Fields.PRODUCT_GROUP, new FieldMetaData("productGroup", TFieldRequirementType.DEFAULT, 
-
 
33614
          new FieldValueMetaData(TType.STRING)));
-
 
33615
      put(_Fields.BRAND, new FieldMetaData("brand", TFieldRequirementType.DEFAULT, 
-
 
33616
          new FieldValueMetaData(TType.STRING)));
-
 
33617
      put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
-
 
33618
          new FieldValueMetaData(TType.STRING)));
-
 
33619
      put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
-
 
33620
          new FieldValueMetaData(TType.STRING)));
-
 
33621
    }});
-
 
33622
 
-
 
33623
    static {
-
 
33624
      FieldMetaData.addStructMetaDataMap(checkSimilarItem_args.class, metaDataMap);
-
 
33625
    }
-
 
33626
 
-
 
33627
    public checkSimilarItem_args() {
-
 
33628
    }
-
 
33629
 
-
 
33630
    public checkSimilarItem_args(
-
 
33631
      String productGroup,
-
 
33632
      String brand,
-
 
33633
      String modelNumber,
-
 
33634
      String color)
-
 
33635
    {
-
 
33636
      this();
-
 
33637
      this.productGroup = productGroup;
-
 
33638
      this.brand = brand;
-
 
33639
      this.modelNumber = modelNumber;
-
 
33640
      this.color = color;
-
 
33641
    }
-
 
33642
 
-
 
33643
    /**
-
 
33644
     * Performs a deep copy on <i>other</i>.
-
 
33645
     */
-
 
33646
    public checkSimilarItem_args(checkSimilarItem_args other) {
-
 
33647
      if (other.isSetProductGroup()) {
-
 
33648
        this.productGroup = other.productGroup;
-
 
33649
      }
-
 
33650
      if (other.isSetBrand()) {
-
 
33651
        this.brand = other.brand;
-
 
33652
      }
-
 
33653
      if (other.isSetModelNumber()) {
-
 
33654
        this.modelNumber = other.modelNumber;
-
 
33655
      }
-
 
33656
      if (other.isSetColor()) {
-
 
33657
        this.color = other.color;
-
 
33658
      }
-
 
33659
    }
-
 
33660
 
-
 
33661
    public checkSimilarItem_args deepCopy() {
-
 
33662
      return new checkSimilarItem_args(this);
-
 
33663
    }
-
 
33664
 
-
 
33665
    @Deprecated
-
 
33666
    public checkSimilarItem_args clone() {
-
 
33667
      return new checkSimilarItem_args(this);
-
 
33668
    }
-
 
33669
 
-
 
33670
    public String getProductGroup() {
-
 
33671
      return this.productGroup;
-
 
33672
    }
-
 
33673
 
-
 
33674
    public checkSimilarItem_args setProductGroup(String productGroup) {
-
 
33675
      this.productGroup = productGroup;
-
 
33676
      return this;
-
 
33677
    }
-
 
33678
 
-
 
33679
    public void unsetProductGroup() {
-
 
33680
      this.productGroup = null;
-
 
33681
    }
-
 
33682
 
-
 
33683
    /** Returns true if field productGroup is set (has been asigned a value) and false otherwise */
-
 
33684
    public boolean isSetProductGroup() {
-
 
33685
      return this.productGroup != null;
-
 
33686
    }
-
 
33687
 
-
 
33688
    public void setProductGroupIsSet(boolean value) {
-
 
33689
      if (!value) {
-
 
33690
        this.productGroup = null;
-
 
33691
      }
-
 
33692
    }
-
 
33693
 
-
 
33694
    public String getBrand() {
-
 
33695
      return this.brand;
-
 
33696
    }
-
 
33697
 
-
 
33698
    public checkSimilarItem_args setBrand(String brand) {
-
 
33699
      this.brand = brand;
-
 
33700
      return this;
-
 
33701
    }
-
 
33702
 
-
 
33703
    public void unsetBrand() {
-
 
33704
      this.brand = null;
-
 
33705
    }
-
 
33706
 
-
 
33707
    /** Returns true if field brand is set (has been asigned a value) and false otherwise */
-
 
33708
    public boolean isSetBrand() {
-
 
33709
      return this.brand != null;
-
 
33710
    }
-
 
33711
 
-
 
33712
    public void setBrandIsSet(boolean value) {
-
 
33713
      if (!value) {
-
 
33714
        this.brand = null;
-
 
33715
      }
-
 
33716
    }
-
 
33717
 
-
 
33718
    public String getModelNumber() {
-
 
33719
      return this.modelNumber;
-
 
33720
    }
-
 
33721
 
-
 
33722
    public checkSimilarItem_args setModelNumber(String modelNumber) {
-
 
33723
      this.modelNumber = modelNumber;
-
 
33724
      return this;
-
 
33725
    }
-
 
33726
 
-
 
33727
    public void unsetModelNumber() {
-
 
33728
      this.modelNumber = null;
-
 
33729
    }
-
 
33730
 
-
 
33731
    /** Returns true if field modelNumber is set (has been asigned a value) and false otherwise */
-
 
33732
    public boolean isSetModelNumber() {
-
 
33733
      return this.modelNumber != null;
-
 
33734
    }
-
 
33735
 
-
 
33736
    public void setModelNumberIsSet(boolean value) {
-
 
33737
      if (!value) {
-
 
33738
        this.modelNumber = null;
-
 
33739
      }
-
 
33740
    }
-
 
33741
 
-
 
33742
    public String getColor() {
-
 
33743
      return this.color;
-
 
33744
    }
-
 
33745
 
-
 
33746
    public checkSimilarItem_args setColor(String color) {
-
 
33747
      this.color = color;
-
 
33748
      return this;
-
 
33749
    }
-
 
33750
 
-
 
33751
    public void unsetColor() {
-
 
33752
      this.color = null;
-
 
33753
    }
-
 
33754
 
-
 
33755
    /** Returns true if field color is set (has been asigned a value) and false otherwise */
-
 
33756
    public boolean isSetColor() {
-
 
33757
      return this.color != null;
-
 
33758
    }
-
 
33759
 
-
 
33760
    public void setColorIsSet(boolean value) {
-
 
33761
      if (!value) {
-
 
33762
        this.color = null;
-
 
33763
      }
-
 
33764
    }
-
 
33765
 
-
 
33766
    public void setFieldValue(_Fields field, Object value) {
-
 
33767
      switch (field) {
-
 
33768
      case PRODUCT_GROUP:
-
 
33769
        if (value == null) {
-
 
33770
          unsetProductGroup();
-
 
33771
        } else {
-
 
33772
          setProductGroup((String)value);
-
 
33773
        }
-
 
33774
        break;
-
 
33775
 
-
 
33776
      case BRAND:
-
 
33777
        if (value == null) {
-
 
33778
          unsetBrand();
-
 
33779
        } else {
-
 
33780
          setBrand((String)value);
-
 
33781
        }
-
 
33782
        break;
-
 
33783
 
-
 
33784
      case MODEL_NUMBER:
-
 
33785
        if (value == null) {
-
 
33786
          unsetModelNumber();
-
 
33787
        } else {
-
 
33788
          setModelNumber((String)value);
-
 
33789
        }
-
 
33790
        break;
-
 
33791
 
-
 
33792
      case COLOR:
-
 
33793
        if (value == null) {
-
 
33794
          unsetColor();
-
 
33795
        } else {
-
 
33796
          setColor((String)value);
-
 
33797
        }
-
 
33798
        break;
-
 
33799
 
-
 
33800
      }
-
 
33801
    }
-
 
33802
 
-
 
33803
    public void setFieldValue(int fieldID, Object value) {
-
 
33804
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33805
    }
-
 
33806
 
-
 
33807
    public Object getFieldValue(_Fields field) {
-
 
33808
      switch (field) {
-
 
33809
      case PRODUCT_GROUP:
-
 
33810
        return getProductGroup();
-
 
33811
 
-
 
33812
      case BRAND:
-
 
33813
        return getBrand();
-
 
33814
 
-
 
33815
      case MODEL_NUMBER:
-
 
33816
        return getModelNumber();
-
 
33817
 
-
 
33818
      case COLOR:
-
 
33819
        return getColor();
-
 
33820
 
-
 
33821
      }
-
 
33822
      throw new IllegalStateException();
-
 
33823
    }
-
 
33824
 
-
 
33825
    public Object getFieldValue(int fieldId) {
-
 
33826
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33827
    }
-
 
33828
 
-
 
33829
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33830
    public boolean isSet(_Fields field) {
-
 
33831
      switch (field) {
-
 
33832
      case PRODUCT_GROUP:
-
 
33833
        return isSetProductGroup();
-
 
33834
      case BRAND:
-
 
33835
        return isSetBrand();
-
 
33836
      case MODEL_NUMBER:
-
 
33837
        return isSetModelNumber();
-
 
33838
      case COLOR:
-
 
33839
        return isSetColor();
-
 
33840
      }
-
 
33841
      throw new IllegalStateException();
-
 
33842
    }
-
 
33843
 
-
 
33844
    public boolean isSet(int fieldID) {
-
 
33845
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33846
    }
-
 
33847
 
-
 
33848
    @Override
-
 
33849
    public boolean equals(Object that) {
-
 
33850
      if (that == null)
-
 
33851
        return false;
-
 
33852
      if (that instanceof checkSimilarItem_args)
-
 
33853
        return this.equals((checkSimilarItem_args)that);
-
 
33854
      return false;
-
 
33855
    }
-
 
33856
 
-
 
33857
    public boolean equals(checkSimilarItem_args that) {
-
 
33858
      if (that == null)
-
 
33859
        return false;
-
 
33860
 
-
 
33861
      boolean this_present_productGroup = true && this.isSetProductGroup();
-
 
33862
      boolean that_present_productGroup = true && that.isSetProductGroup();
-
 
33863
      if (this_present_productGroup || that_present_productGroup) {
-
 
33864
        if (!(this_present_productGroup && that_present_productGroup))
-
 
33865
          return false;
-
 
33866
        if (!this.productGroup.equals(that.productGroup))
-
 
33867
          return false;
-
 
33868
      }
-
 
33869
 
-
 
33870
      boolean this_present_brand = true && this.isSetBrand();
-
 
33871
      boolean that_present_brand = true && that.isSetBrand();
-
 
33872
      if (this_present_brand || that_present_brand) {
-
 
33873
        if (!(this_present_brand && that_present_brand))
-
 
33874
          return false;
-
 
33875
        if (!this.brand.equals(that.brand))
-
 
33876
          return false;
-
 
33877
      }
-
 
33878
 
-
 
33879
      boolean this_present_modelNumber = true && this.isSetModelNumber();
-
 
33880
      boolean that_present_modelNumber = true && that.isSetModelNumber();
-
 
33881
      if (this_present_modelNumber || that_present_modelNumber) {
-
 
33882
        if (!(this_present_modelNumber && that_present_modelNumber))
-
 
33883
          return false;
-
 
33884
        if (!this.modelNumber.equals(that.modelNumber))
-
 
33885
          return false;
-
 
33886
      }
-
 
33887
 
-
 
33888
      boolean this_present_color = true && this.isSetColor();
-
 
33889
      boolean that_present_color = true && that.isSetColor();
-
 
33890
      if (this_present_color || that_present_color) {
-
 
33891
        if (!(this_present_color && that_present_color))
-
 
33892
          return false;
-
 
33893
        if (!this.color.equals(that.color))
-
 
33894
          return false;
-
 
33895
      }
-
 
33896
 
-
 
33897
      return true;
-
 
33898
    }
-
 
33899
 
-
 
33900
    @Override
-
 
33901
    public int hashCode() {
-
 
33902
      return 0;
-
 
33903
    }
-
 
33904
 
-
 
33905
    public int compareTo(checkSimilarItem_args other) {
-
 
33906
      if (!getClass().equals(other.getClass())) {
-
 
33907
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33908
      }
-
 
33909
 
-
 
33910
      int lastComparison = 0;
-
 
33911
      checkSimilarItem_args typedOther = (checkSimilarItem_args)other;
-
 
33912
 
-
 
33913
      lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(isSetProductGroup());
-
 
33914
      if (lastComparison != 0) {
-
 
33915
        return lastComparison;
-
 
33916
      }
-
 
33917
      lastComparison = TBaseHelper.compareTo(productGroup, typedOther.productGroup);
-
 
33918
      if (lastComparison != 0) {
-
 
33919
        return lastComparison;
-
 
33920
      }
-
 
33921
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(isSetBrand());
-
 
33922
      if (lastComparison != 0) {
-
 
33923
        return lastComparison;
-
 
33924
      }
-
 
33925
      lastComparison = TBaseHelper.compareTo(brand, typedOther.brand);
-
 
33926
      if (lastComparison != 0) {
-
 
33927
        return lastComparison;
-
 
33928
      }
-
 
33929
      lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(isSetModelNumber());
-
 
33930
      if (lastComparison != 0) {
-
 
33931
        return lastComparison;
-
 
33932
      }
-
 
33933
      lastComparison = TBaseHelper.compareTo(modelNumber, typedOther.modelNumber);
-
 
33934
      if (lastComparison != 0) {
-
 
33935
        return lastComparison;
-
 
33936
      }
-
 
33937
      lastComparison = Boolean.valueOf(isSetColor()).compareTo(isSetColor());
-
 
33938
      if (lastComparison != 0) {
-
 
33939
        return lastComparison;
-
 
33940
      }
-
 
33941
      lastComparison = TBaseHelper.compareTo(color, typedOther.color);
-
 
33942
      if (lastComparison != 0) {
-
 
33943
        return lastComparison;
-
 
33944
      }
-
 
33945
      return 0;
-
 
33946
    }
-
 
33947
 
-
 
33948
    public void read(TProtocol iprot) throws TException {
-
 
33949
      TField field;
-
 
33950
      iprot.readStructBegin();
-
 
33951
      while (true)
-
 
33952
      {
-
 
33953
        field = iprot.readFieldBegin();
-
 
33954
        if (field.type == TType.STOP) { 
-
 
33955
          break;
-
 
33956
        }
-
 
33957
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33958
        if (fieldId == null) {
-
 
33959
          TProtocolUtil.skip(iprot, field.type);
-
 
33960
        } else {
-
 
33961
          switch (fieldId) {
-
 
33962
            case PRODUCT_GROUP:
-
 
33963
              if (field.type == TType.STRING) {
-
 
33964
                this.productGroup = iprot.readString();
-
 
33965
              } else { 
-
 
33966
                TProtocolUtil.skip(iprot, field.type);
-
 
33967
              }
-
 
33968
              break;
-
 
33969
            case BRAND:
-
 
33970
              if (field.type == TType.STRING) {
-
 
33971
                this.brand = iprot.readString();
-
 
33972
              } else { 
-
 
33973
                TProtocolUtil.skip(iprot, field.type);
-
 
33974
              }
-
 
33975
              break;
-
 
33976
            case MODEL_NUMBER:
-
 
33977
              if (field.type == TType.STRING) {
-
 
33978
                this.modelNumber = iprot.readString();
-
 
33979
              } else { 
-
 
33980
                TProtocolUtil.skip(iprot, field.type);
-
 
33981
              }
-
 
33982
              break;
-
 
33983
            case COLOR:
-
 
33984
              if (field.type == TType.STRING) {
-
 
33985
                this.color = iprot.readString();
-
 
33986
              } else { 
-
 
33987
                TProtocolUtil.skip(iprot, field.type);
-
 
33988
              }
-
 
33989
              break;
-
 
33990
          }
-
 
33991
          iprot.readFieldEnd();
-
 
33992
        }
-
 
33993
      }
-
 
33994
      iprot.readStructEnd();
-
 
33995
      validate();
-
 
33996
    }
-
 
33997
 
-
 
33998
    public void write(TProtocol oprot) throws TException {
-
 
33999
      validate();
-
 
34000
 
-
 
34001
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34002
      if (this.productGroup != null) {
-
 
34003
        oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
-
 
34004
        oprot.writeString(this.productGroup);
-
 
34005
        oprot.writeFieldEnd();
-
 
34006
      }
-
 
34007
      if (this.brand != null) {
-
 
34008
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
-
 
34009
        oprot.writeString(this.brand);
-
 
34010
        oprot.writeFieldEnd();
-
 
34011
      }
-
 
34012
      if (this.modelNumber != null) {
-
 
34013
        oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
-
 
34014
        oprot.writeString(this.modelNumber);
-
 
34015
        oprot.writeFieldEnd();
-
 
34016
      }
-
 
34017
      if (this.color != null) {
-
 
34018
        oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
34019
        oprot.writeString(this.color);
-
 
34020
        oprot.writeFieldEnd();
-
 
34021
      }
-
 
34022
      oprot.writeFieldStop();
-
 
34023
      oprot.writeStructEnd();
-
 
34024
    }
-
 
34025
 
-
 
34026
    @Override
-
 
34027
    public String toString() {
-
 
34028
      StringBuilder sb = new StringBuilder("checkSimilarItem_args(");
-
 
34029
      boolean first = true;
-
 
34030
 
-
 
34031
      sb.append("productGroup:");
-
 
34032
      if (this.productGroup == null) {
-
 
34033
        sb.append("null");
-
 
34034
      } else {
-
 
34035
        sb.append(this.productGroup);
-
 
34036
      }
-
 
34037
      first = false;
-
 
34038
      if (!first) sb.append(", ");
-
 
34039
      sb.append("brand:");
-
 
34040
      if (this.brand == null) {
-
 
34041
        sb.append("null");
-
 
34042
      } else {
-
 
34043
        sb.append(this.brand);
-
 
34044
      }
-
 
34045
      first = false;
-
 
34046
      if (!first) sb.append(", ");
-
 
34047
      sb.append("modelNumber:");
-
 
34048
      if (this.modelNumber == null) {
-
 
34049
        sb.append("null");
-
 
34050
      } else {
-
 
34051
        sb.append(this.modelNumber);
-
 
34052
      }
-
 
34053
      first = false;
-
 
34054
      if (!first) sb.append(", ");
-
 
34055
      sb.append("color:");
-
 
34056
      if (this.color == null) {
-
 
34057
        sb.append("null");
-
 
34058
      } else {
-
 
34059
        sb.append(this.color);
-
 
34060
      }
-
 
34061
      first = false;
-
 
34062
      sb.append(")");
-
 
34063
      return sb.toString();
-
 
34064
    }
-
 
34065
 
-
 
34066
    public void validate() throws TException {
-
 
34067
      // check for required fields
-
 
34068
    }
-
 
34069
 
-
 
34070
  }
-
 
34071
 
-
 
34072
  public static class checkSimilarItem_result implements TBase<checkSimilarItem_result._Fields>, java.io.Serializable, Cloneable, Comparable<checkSimilarItem_result>   {
-
 
34073
    private static final TStruct STRUCT_DESC = new TStruct("checkSimilarItem_result");
-
 
34074
 
-
 
34075
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
34076
 
-
 
34077
    private long success;
-
 
34078
 
-
 
34079
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34080
    public enum _Fields implements TFieldIdEnum {
-
 
34081
      SUCCESS((short)0, "success");
-
 
34082
 
-
 
34083
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
34084
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34085
 
-
 
34086
      static {
-
 
34087
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34088
          byId.put((int)field._thriftId, field);
-
 
34089
          byName.put(field.getFieldName(), field);
-
 
34090
        }
-
 
34091
      }
-
 
34092
 
-
 
34093
      /**
-
 
34094
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34095
       */
-
 
34096
      public static _Fields findByThriftId(int fieldId) {
-
 
34097
        return byId.get(fieldId);
-
 
34098
      }
-
 
34099
 
-
 
34100
      /**
-
 
34101
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34102
       * if it is not found.
-
 
34103
       */
-
 
34104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34105
        _Fields fields = findByThriftId(fieldId);
-
 
34106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34107
        return fields;
-
 
34108
      }
-
 
34109
 
-
 
34110
      /**
-
 
34111
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34112
       */
-
 
34113
      public static _Fields findByName(String name) {
-
 
34114
        return byName.get(name);
-
 
34115
      }
-
 
34116
 
-
 
34117
      private final short _thriftId;
-
 
34118
      private final String _fieldName;
-
 
34119
 
-
 
34120
      _Fields(short thriftId, String fieldName) {
-
 
34121
        _thriftId = thriftId;
-
 
34122
        _fieldName = fieldName;
-
 
34123
      }
-
 
34124
 
-
 
34125
      public short getThriftFieldId() {
-
 
34126
        return _thriftId;
-
 
34127
      }
-
 
34128
 
-
 
34129
      public String getFieldName() {
-
 
34130
        return _fieldName;
-
 
34131
      }
-
 
34132
    }
-
 
34133
 
-
 
34134
    // isset id assignments
-
 
34135
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
34136
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
34137
 
-
 
34138
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
34139
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
34140
          new FieldValueMetaData(TType.I64)));
-
 
34141
    }});
-
 
34142
 
-
 
34143
    static {
-
 
34144
      FieldMetaData.addStructMetaDataMap(checkSimilarItem_result.class, metaDataMap);
-
 
34145
    }
-
 
34146
 
-
 
34147
    public checkSimilarItem_result() {
-
 
34148
    }
-
 
34149
 
-
 
34150
    public checkSimilarItem_result(
-
 
34151
      long success)
-
 
34152
    {
-
 
34153
      this();
-
 
34154
      this.success = success;
-
 
34155
      setSuccessIsSet(true);
-
 
34156
    }
-
 
34157
 
-
 
34158
    /**
-
 
34159
     * Performs a deep copy on <i>other</i>.
-
 
34160
     */
-
 
34161
    public checkSimilarItem_result(checkSimilarItem_result other) {
-
 
34162
      __isset_bit_vector.clear();
-
 
34163
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
34164
      this.success = other.success;
-
 
34165
    }
-
 
34166
 
-
 
34167
    public checkSimilarItem_result deepCopy() {
-
 
34168
      return new checkSimilarItem_result(this);
-
 
34169
    }
-
 
34170
 
-
 
34171
    @Deprecated
-
 
34172
    public checkSimilarItem_result clone() {
-
 
34173
      return new checkSimilarItem_result(this);
-
 
34174
    }
-
 
34175
 
-
 
34176
    public long getSuccess() {
-
 
34177
      return this.success;
-
 
34178
    }
-
 
34179
 
-
 
34180
    public checkSimilarItem_result setSuccess(long success) {
-
 
34181
      this.success = success;
-
 
34182
      setSuccessIsSet(true);
-
 
34183
      return this;
-
 
34184
    }
-
 
34185
 
-
 
34186
    public void unsetSuccess() {
-
 
34187
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
34188
    }
-
 
34189
 
-
 
34190
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
34191
    public boolean isSetSuccess() {
-
 
34192
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
34193
    }
-
 
34194
 
-
 
34195
    public void setSuccessIsSet(boolean value) {
-
 
34196
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
34197
    }
-
 
34198
 
-
 
34199
    public void setFieldValue(_Fields field, Object value) {
-
 
34200
      switch (field) {
-
 
34201
      case SUCCESS:
-
 
34202
        if (value == null) {
-
 
34203
          unsetSuccess();
-
 
34204
        } else {
-
 
34205
          setSuccess((Long)value);
-
 
34206
        }
-
 
34207
        break;
-
 
34208
 
-
 
34209
      }
-
 
34210
    }
-
 
34211
 
-
 
34212
    public void setFieldValue(int fieldID, Object value) {
-
 
34213
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
34214
    }
-
 
34215
 
-
 
34216
    public Object getFieldValue(_Fields field) {
-
 
34217
      switch (field) {
-
 
34218
      case SUCCESS:
-
 
34219
        return new Long(getSuccess());
-
 
34220
 
-
 
34221
      }
-
 
34222
      throw new IllegalStateException();
-
 
34223
    }
-
 
34224
 
-
 
34225
    public Object getFieldValue(int fieldId) {
-
 
34226
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
34227
    }
-
 
34228
 
-
 
34229
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
34230
    public boolean isSet(_Fields field) {
-
 
34231
      switch (field) {
-
 
34232
      case SUCCESS:
-
 
34233
        return isSetSuccess();
-
 
34234
      }
-
 
34235
      throw new IllegalStateException();
-
 
34236
    }
-
 
34237
 
-
 
34238
    public boolean isSet(int fieldID) {
-
 
34239
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
34240
    }
-
 
34241
 
-
 
34242
    @Override
-
 
34243
    public boolean equals(Object that) {
-
 
34244
      if (that == null)
-
 
34245
        return false;
-
 
34246
      if (that instanceof checkSimilarItem_result)
-
 
34247
        return this.equals((checkSimilarItem_result)that);
-
 
34248
      return false;
-
 
34249
    }
-
 
34250
 
-
 
34251
    public boolean equals(checkSimilarItem_result that) {
-
 
34252
      if (that == null)
-
 
34253
        return false;
-
 
34254
 
-
 
34255
      boolean this_present_success = true;
-
 
34256
      boolean that_present_success = true;
-
 
34257
      if (this_present_success || that_present_success) {
-
 
34258
        if (!(this_present_success && that_present_success))
-
 
34259
          return false;
-
 
34260
        if (this.success != that.success)
-
 
34261
          return false;
-
 
34262
      }
-
 
34263
 
-
 
34264
      return true;
-
 
34265
    }
-
 
34266
 
-
 
34267
    @Override
-
 
34268
    public int hashCode() {
-
 
34269
      return 0;
-
 
34270
    }
-
 
34271
 
-
 
34272
    public int compareTo(checkSimilarItem_result other) {
-
 
34273
      if (!getClass().equals(other.getClass())) {
-
 
34274
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34275
      }
-
 
34276
 
-
 
34277
      int lastComparison = 0;
-
 
34278
      checkSimilarItem_result typedOther = (checkSimilarItem_result)other;
-
 
34279
 
-
 
34280
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
34281
      if (lastComparison != 0) {
-
 
34282
        return lastComparison;
-
 
34283
      }
-
 
34284
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
34285
      if (lastComparison != 0) {
-
 
34286
        return lastComparison;
-
 
34287
      }
-
 
34288
      return 0;
-
 
34289
    }
-
 
34290
 
-
 
34291
    public void read(TProtocol iprot) throws TException {
-
 
34292
      TField field;
-
 
34293
      iprot.readStructBegin();
-
 
34294
      while (true)
-
 
34295
      {
-
 
34296
        field = iprot.readFieldBegin();
-
 
34297
        if (field.type == TType.STOP) { 
-
 
34298
          break;
-
 
34299
        }
-
 
34300
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
34301
        if (fieldId == null) {
-
 
34302
          TProtocolUtil.skip(iprot, field.type);
-
 
34303
        } else {
-
 
34304
          switch (fieldId) {
-
 
34305
            case SUCCESS:
-
 
34306
              if (field.type == TType.I64) {
-
 
34307
                this.success = iprot.readI64();
-
 
34308
                setSuccessIsSet(true);
-
 
34309
              } else { 
-
 
34310
                TProtocolUtil.skip(iprot, field.type);
-
 
34311
              }
-
 
34312
              break;
-
 
34313
          }
-
 
34314
          iprot.readFieldEnd();
-
 
34315
        }
-
 
34316
      }
-
 
34317
      iprot.readStructEnd();
-
 
34318
      validate();
-
 
34319
    }
-
 
34320
 
-
 
34321
    public void write(TProtocol oprot) throws TException {
-
 
34322
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34323
 
-
 
34324
      if (this.isSetSuccess()) {
-
 
34325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
34326
        oprot.writeI64(this.success);
-
 
34327
        oprot.writeFieldEnd();
-
 
34328
      }
-
 
34329
      oprot.writeFieldStop();
-
 
34330
      oprot.writeStructEnd();
-
 
34331
    }
-
 
34332
 
-
 
34333
    @Override
-
 
34334
    public String toString() {
-
 
34335
      StringBuilder sb = new StringBuilder("checkSimilarItem_result(");
-
 
34336
      boolean first = true;
-
 
34337
 
-
 
34338
      sb.append("success:");
-
 
34339
      sb.append(this.success);
-
 
34340
      first = false;
-
 
34341
      sb.append(")");
-
 
34342
      return sb.toString();
-
 
34343
    }
-
 
34344
 
31037
    public void validate() throws TException {
34345
    public void validate() throws TException {
31038
      // check for required fields
34346
      // check for required fields
31039
    }
34347
    }
31040
 
34348
 
31041
  }
34349
  }