Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 3557
Line 302... Line 302...
302
     * 
302
     * 
303
     * @param categoryId
303
     * @param categoryId
304
     */
304
     */
305
    public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException;
305
    public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException;
306
 
306
 
-
 
307
    /**
-
 
308
     * Return list of all sources
-
 
309
     */
-
 
310
    public List<Source> getAllSources() throws org.apache.thrift.TException;
-
 
311
 
-
 
312
    /**
-
 
313
     * Returns the pricing information of an item. If no information is found, exception will be thrown.
-
 
314
     * 
-
 
315
     * @param itemId
-
 
316
     * @param sourceId
-
 
317
     */
-
 
318
    public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
319
 
-
 
320
    /**
-
 
321
     * Adds prices to be displayed corresponding to the item if user comes from a source.
-
 
322
     * If item is not found or source is not found, it will throw exception.
-
 
323
     * 
-
 
324
     * @param sourceItemPricing
-
 
325
     */
-
 
326
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws InventoryServiceException, org.apache.thrift.TException;
-
 
327
 
-
 
328
    /**
-
 
329
     * Returns the list of source pricing information of an item.
-
 
330
     * Raises an exception if item not found corresponding to itemId
-
 
331
     * 
-
 
332
     * @param itemId
-
 
333
     */
-
 
334
    public List<SourceItemPricing> getAllSourcePricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
335
 
-
 
336
    /**
-
 
337
     * Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
-
 
338
     * 
-
 
339
     * @param item_id
-
 
340
     * @param sourceId
-
 
341
     */
-
 
342
    public Item getItemForSource(long item_id, long sourceId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
343
 
307
  }
344
  }
308
 
345
 
309
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
346
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
310
 
347
 
311
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
348
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 414... Line 451...
414
 
451
 
415
    public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
452
    public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
416
 
453
 
417
    public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException;
454
    public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException;
418
 
455
 
-
 
456
    public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSources_call> resultHandler) throws org.apache.thrift.TException;
-
 
457
 
-
 
458
    public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException;
-
 
459
 
-
 
460
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException;
-
 
461
 
-
 
462
    public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException;
-
 
463
 
-
 
464
    public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemForSource_call> resultHandler) throws org.apache.thrift.TException;
-
 
465
 
419
  }
466
  }
420
 
467
 
421
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
468
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
422
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
469
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
423
      public Factory() {}
470
      public Factory() {}
Line 1801... Line 1848...
1801
        return result.success;
1848
        return result.success;
1802
      }
1849
      }
1803
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
1850
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
1804
    }
1851
    }
1805
 
1852
 
-
 
1853
    public List<Source> getAllSources() throws org.apache.thrift.TException
-
 
1854
    {
-
 
1855
      send_getAllSources();
-
 
1856
      return recv_getAllSources();
-
 
1857
    }
-
 
1858
 
-
 
1859
    public void send_getAllSources() throws org.apache.thrift.TException
-
 
1860
    {
-
 
1861
      getAllSources_args args = new getAllSources_args();
-
 
1862
      sendBase("getAllSources", args);
-
 
1863
    }
-
 
1864
 
-
 
1865
    public List<Source> recv_getAllSources() throws org.apache.thrift.TException
-
 
1866
    {
-
 
1867
      getAllSources_result result = new getAllSources_result();
-
 
1868
      receiveBase(result, "getAllSources");
-
 
1869
      if (result.isSetSuccess()) {
-
 
1870
        return result.success;
-
 
1871
      }
-
 
1872
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
-
 
1873
    }
-
 
1874
 
-
 
1875
    public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
-
 
1876
    {
-
 
1877
      send_getItemPricingBySource(itemId, sourceId);
-
 
1878
      return recv_getItemPricingBySource();
-
 
1879
    }
-
 
1880
 
-
 
1881
    public void send_getItemPricingBySource(long itemId, long sourceId) throws org.apache.thrift.TException
-
 
1882
    {
-
 
1883
      getItemPricingBySource_args args = new getItemPricingBySource_args();
-
 
1884
      args.setItemId(itemId);
-
 
1885
      args.setSourceId(sourceId);
-
 
1886
      sendBase("getItemPricingBySource", args);
-
 
1887
    }
-
 
1888
 
-
 
1889
    public SourceItemPricing recv_getItemPricingBySource() throws InventoryServiceException, org.apache.thrift.TException
-
 
1890
    {
-
 
1891
      getItemPricingBySource_result result = new getItemPricingBySource_result();
-
 
1892
      receiveBase(result, "getItemPricingBySource");
-
 
1893
      if (result.isSetSuccess()) {
-
 
1894
        return result.success;
-
 
1895
      }
-
 
1896
      if (result.cex != null) {
-
 
1897
        throw result.cex;
-
 
1898
      }
-
 
1899
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
-
 
1900
    }
-
 
1901
 
-
 
1902
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws InventoryServiceException, org.apache.thrift.TException
-
 
1903
    {
-
 
1904
      send_addSourceItemPricing(sourceItemPricing);
-
 
1905
      recv_addSourceItemPricing();
-
 
1906
    }
-
 
1907
 
-
 
1908
    public void send_addSourceItemPricing(SourceItemPricing sourceItemPricing) throws org.apache.thrift.TException
-
 
1909
    {
-
 
1910
      addSourceItemPricing_args args = new addSourceItemPricing_args();
-
 
1911
      args.setSourceItemPricing(sourceItemPricing);
-
 
1912
      sendBase("addSourceItemPricing", args);
-
 
1913
    }
-
 
1914
 
-
 
1915
    public void recv_addSourceItemPricing() throws InventoryServiceException, org.apache.thrift.TException
-
 
1916
    {
-
 
1917
      addSourceItemPricing_result result = new addSourceItemPricing_result();
-
 
1918
      receiveBase(result, "addSourceItemPricing");
-
 
1919
      if (result.cex != null) {
-
 
1920
        throw result.cex;
-
 
1921
      }
-
 
1922
      return;
-
 
1923
    }
-
 
1924
 
-
 
1925
    public List<SourceItemPricing> getAllSourcePricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
-
 
1926
    {
-
 
1927
      send_getAllSourcePricing(itemId);
-
 
1928
      return recv_getAllSourcePricing();
-
 
1929
    }
-
 
1930
 
-
 
1931
    public void send_getAllSourcePricing(long itemId) throws org.apache.thrift.TException
-
 
1932
    {
-
 
1933
      getAllSourcePricing_args args = new getAllSourcePricing_args();
-
 
1934
      args.setItemId(itemId);
-
 
1935
      sendBase("getAllSourcePricing", args);
-
 
1936
    }
-
 
1937
 
-
 
1938
    public List<SourceItemPricing> recv_getAllSourcePricing() throws InventoryServiceException, org.apache.thrift.TException
-
 
1939
    {
-
 
1940
      getAllSourcePricing_result result = new getAllSourcePricing_result();
-
 
1941
      receiveBase(result, "getAllSourcePricing");
-
 
1942
      if (result.isSetSuccess()) {
-
 
1943
        return result.success;
-
 
1944
      }
-
 
1945
      if (result.cex != null) {
-
 
1946
        throw result.cex;
-
 
1947
      }
-
 
1948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
-
 
1949
    }
-
 
1950
 
-
 
1951
    public Item getItemForSource(long item_id, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
-
 
1952
    {
-
 
1953
      send_getItemForSource(item_id, sourceId);
-
 
1954
      return recv_getItemForSource();
-
 
1955
    }
-
 
1956
 
-
 
1957
    public void send_getItemForSource(long item_id, long sourceId) throws org.apache.thrift.TException
-
 
1958
    {
-
 
1959
      getItemForSource_args args = new getItemForSource_args();
-
 
1960
      args.setItem_id(item_id);
-
 
1961
      args.setSourceId(sourceId);
-
 
1962
      sendBase("getItemForSource", args);
-
 
1963
    }
-
 
1964
 
-
 
1965
    public Item recv_getItemForSource() throws InventoryServiceException, org.apache.thrift.TException
-
 
1966
    {
-
 
1967
      getItemForSource_result result = new getItemForSource_result();
-
 
1968
      receiveBase(result, "getItemForSource");
-
 
1969
      if (result.isSetSuccess()) {
-
 
1970
        return result.success;
-
 
1971
      }
-
 
1972
      if (result.cex != null) {
-
 
1973
        throw result.cex;
-
 
1974
      }
-
 
1975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
-
 
1976
    }
-
 
1977
 
1806
  }
1978
  }
1807
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1979
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1808
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1980
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1809
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1981
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1810
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1982
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3637... Line 3809...
3637
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3638
        return (new Client(prot)).recv_getAllBrandsByCategory();
3810
        return (new Client(prot)).recv_getAllBrandsByCategory();
3639
      }
3811
      }
3640
    }
3812
    }
3641
 
3813
 
-
 
3814
    public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<getAllSources_call> resultHandler) throws org.apache.thrift.TException {
-
 
3815
      checkReady();
-
 
3816
      getAllSources_call method_call = new getAllSources_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
3817
      this.___currentMethod = method_call;
-
 
3818
      ___manager.call(method_call);
-
 
3819
    }
-
 
3820
 
-
 
3821
    public static class getAllSources_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3822
      public getAllSources_call(org.apache.thrift.async.AsyncMethodCallback<getAllSources_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3823
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3824
      }
-
 
3825
 
-
 
3826
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3827
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSources", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3828
        getAllSources_args args = new getAllSources_args();
-
 
3829
        args.write(prot);
-
 
3830
        prot.writeMessageEnd();
-
 
3831
      }
-
 
3832
 
-
 
3833
      public List<Source> getResult() throws org.apache.thrift.TException {
-
 
3834
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3835
          throw new IllegalStateException("Method call not finished!");
-
 
3836
        }
-
 
3837
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3838
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3839
        return (new Client(prot)).recv_getAllSources();
-
 
3840
      }
-
 
3841
    }
-
 
3842
 
-
 
3843
    public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException {
-
 
3844
      checkReady();
-
 
3845
      getItemPricingBySource_call method_call = new getItemPricingBySource_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3846
      this.___currentMethod = method_call;
-
 
3847
      ___manager.call(method_call);
-
 
3848
    }
-
 
3849
 
-
 
3850
    public static class getItemPricingBySource_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3851
      private long itemId;
-
 
3852
      private long sourceId;
-
 
3853
      public getItemPricingBySource_call(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3854
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3855
        this.itemId = itemId;
-
 
3856
        this.sourceId = sourceId;
-
 
3857
      }
-
 
3858
 
-
 
3859
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3860
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricingBySource", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3861
        getItemPricingBySource_args args = new getItemPricingBySource_args();
-
 
3862
        args.setItemId(itemId);
-
 
3863
        args.setSourceId(sourceId);
-
 
3864
        args.write(prot);
-
 
3865
        prot.writeMessageEnd();
-
 
3866
      }
-
 
3867
 
-
 
3868
      public SourceItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
3869
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3870
          throw new IllegalStateException("Method call not finished!");
-
 
3871
        }
-
 
3872
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3873
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3874
        return (new Client(prot)).recv_getItemPricingBySource();
-
 
3875
      }
-
 
3876
    }
-
 
3877
 
-
 
3878
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException {
-
 
3879
      checkReady();
-
 
3880
      addSourceItemPricing_call method_call = new addSourceItemPricing_call(sourceItemPricing, resultHandler, this, ___protocolFactory, ___transport);
-
 
3881
      this.___currentMethod = method_call;
-
 
3882
      ___manager.call(method_call);
-
 
3883
    }
-
 
3884
 
-
 
3885
    public static class addSourceItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3886
      private SourceItemPricing sourceItemPricing;
-
 
3887
      public addSourceItemPricing_call(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3888
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3889
        this.sourceItemPricing = sourceItemPricing;
-
 
3890
      }
-
 
3891
 
-
 
3892
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3893
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSourceItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3894
        addSourceItemPricing_args args = new addSourceItemPricing_args();
-
 
3895
        args.setSourceItemPricing(sourceItemPricing);
-
 
3896
        args.write(prot);
-
 
3897
        prot.writeMessageEnd();
-
 
3898
      }
-
 
3899
 
-
 
3900
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
3901
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3902
          throw new IllegalStateException("Method call not finished!");
-
 
3903
        }
-
 
3904
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3905
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3906
        (new Client(prot)).recv_addSourceItemPricing();
-
 
3907
      }
-
 
3908
    }
-
 
3909
 
-
 
3910
    public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException {
-
 
3911
      checkReady();
-
 
3912
      getAllSourcePricing_call method_call = new getAllSourcePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3913
      this.___currentMethod = method_call;
-
 
3914
      ___manager.call(method_call);
-
 
3915
    }
-
 
3916
 
-
 
3917
    public static class getAllSourcePricing_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3918
      private long itemId;
-
 
3919
      public getAllSourcePricing_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3920
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3921
        this.itemId = itemId;
-
 
3922
      }
-
 
3923
 
-
 
3924
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3925
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSourcePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3926
        getAllSourcePricing_args args = new getAllSourcePricing_args();
-
 
3927
        args.setItemId(itemId);
-
 
3928
        args.write(prot);
-
 
3929
        prot.writeMessageEnd();
-
 
3930
      }
-
 
3931
 
-
 
3932
      public List<SourceItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
3933
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3934
          throw new IllegalStateException("Method call not finished!");
-
 
3935
        }
-
 
3936
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3938
        return (new Client(prot)).recv_getAllSourcePricing();
-
 
3939
      }
-
 
3940
    }
-
 
3941
 
-
 
3942
    public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_call> resultHandler) throws org.apache.thrift.TException {
-
 
3943
      checkReady();
-
 
3944
      getItemForSource_call method_call = new getItemForSource_call(item_id, sourceId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3945
      this.___currentMethod = method_call;
-
 
3946
      ___manager.call(method_call);
-
 
3947
    }
-
 
3948
 
-
 
3949
    public static class getItemForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3950
      private long item_id;
-
 
3951
      private long sourceId;
-
 
3952
      public getItemForSource_call(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3953
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3954
        this.item_id = item_id;
-
 
3955
        this.sourceId = sourceId;
-
 
3956
      }
-
 
3957
 
-
 
3958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3960
        getItemForSource_args args = new getItemForSource_args();
-
 
3961
        args.setItem_id(item_id);
-
 
3962
        args.setSourceId(sourceId);
-
 
3963
        args.write(prot);
-
 
3964
        prot.writeMessageEnd();
-
 
3965
      }
-
 
3966
 
-
 
3967
      public Item getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
3968
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3969
          throw new IllegalStateException("Method call not finished!");
-
 
3970
        }
-
 
3971
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3973
        return (new Client(prot)).recv_getItemForSource();
-
 
3974
      }
-
 
3975
    }
-
 
3976
 
3642
  }
3977
  }
3643
 
3978
 
3644
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3979
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3645
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3980
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3646
    public Processor(I iface) {
3981
    public Processor(I iface) {
Line 3704... Line 4039...
3704
      processMap.put("getItemsByVendorCategory", new getItemsByVendorCategory());
4039
      processMap.put("getItemsByVendorCategory", new getItemsByVendorCategory());
3705
      processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
4040
      processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
3706
      processMap.put("addProductNotification", new addProductNotification());
4041
      processMap.put("addProductNotification", new addProductNotification());
3707
      processMap.put("sendProductNotifications", new sendProductNotifications());
4042
      processMap.put("sendProductNotifications", new sendProductNotifications());
3708
      processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());
4043
      processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());
-
 
4044
      processMap.put("getAllSources", new getAllSources());
-
 
4045
      processMap.put("getItemPricingBySource", new getItemPricingBySource());
-
 
4046
      processMap.put("addSourceItemPricing", new addSourceItemPricing());
-
 
4047
      processMap.put("getAllSourcePricing", new getAllSourcePricing());
-
 
4048
      processMap.put("getItemForSource", new getItemForSource());
3709
      return processMap;
4049
      return processMap;
3710
    }
4050
    }
3711
 
4051
 
3712
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4052
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
3713
      public addItem() {
4053
      public addItem() {
Line 4747... Line 5087...
4747
        result.success = iface.getAllBrandsByCategory(args.categoryId);
5087
        result.success = iface.getAllBrandsByCategory(args.categoryId);
4748
        return result;
5088
        return result;
4749
      }
5089
      }
4750
    }
5090
    }
4751
 
5091
 
-
 
5092
    private static class getAllSources<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSources_args> {
-
 
5093
      public getAllSources() {
-
 
5094
        super("getAllSources");
-
 
5095
      }
-
 
5096
 
-
 
5097
      protected getAllSources_args getEmptyArgsInstance() {
-
 
5098
        return new getAllSources_args();
-
 
5099
      }
-
 
5100
 
-
 
5101
      protected getAllSources_result getResult(I iface, getAllSources_args args) throws org.apache.thrift.TException {
-
 
5102
        getAllSources_result result = new getAllSources_result();
-
 
5103
        result.success = iface.getAllSources();
-
 
5104
        return result;
-
 
5105
      }
-
 
5106
    }
-
 
5107
 
-
 
5108
    private static class getItemPricingBySource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricingBySource_args> {
-
 
5109
      public getItemPricingBySource() {
-
 
5110
        super("getItemPricingBySource");
-
 
5111
      }
-
 
5112
 
-
 
5113
      protected getItemPricingBySource_args getEmptyArgsInstance() {
-
 
5114
        return new getItemPricingBySource_args();
-
 
5115
      }
-
 
5116
 
-
 
5117
      protected getItemPricingBySource_result getResult(I iface, getItemPricingBySource_args args) throws org.apache.thrift.TException {
-
 
5118
        getItemPricingBySource_result result = new getItemPricingBySource_result();
-
 
5119
        try {
-
 
5120
          result.success = iface.getItemPricingBySource(args.itemId, args.sourceId);
-
 
5121
        } catch (InventoryServiceException cex) {
-
 
5122
          result.cex = cex;
-
 
5123
        }
-
 
5124
        return result;
-
 
5125
      }
-
 
5126
    }
-
 
5127
 
-
 
5128
    private static class addSourceItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSourceItemPricing_args> {
-
 
5129
      public addSourceItemPricing() {
-
 
5130
        super("addSourceItemPricing");
-
 
5131
      }
-
 
5132
 
-
 
5133
      protected addSourceItemPricing_args getEmptyArgsInstance() {
-
 
5134
        return new addSourceItemPricing_args();
-
 
5135
      }
-
 
5136
 
-
 
5137
      protected addSourceItemPricing_result getResult(I iface, addSourceItemPricing_args args) throws org.apache.thrift.TException {
-
 
5138
        addSourceItemPricing_result result = new addSourceItemPricing_result();
-
 
5139
        try {
-
 
5140
          iface.addSourceItemPricing(args.sourceItemPricing);
-
 
5141
        } catch (InventoryServiceException cex) {
-
 
5142
          result.cex = cex;
-
 
5143
        }
-
 
5144
        return result;
-
 
5145
      }
-
 
5146
    }
-
 
5147
 
-
 
5148
    private static class getAllSourcePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSourcePricing_args> {
-
 
5149
      public getAllSourcePricing() {
-
 
5150
        super("getAllSourcePricing");
-
 
5151
      }
-
 
5152
 
-
 
5153
      protected getAllSourcePricing_args getEmptyArgsInstance() {
-
 
5154
        return new getAllSourcePricing_args();
-
 
5155
      }
-
 
5156
 
-
 
5157
      protected getAllSourcePricing_result getResult(I iface, getAllSourcePricing_args args) throws org.apache.thrift.TException {
-
 
5158
        getAllSourcePricing_result result = new getAllSourcePricing_result();
-
 
5159
        try {
-
 
5160
          result.success = iface.getAllSourcePricing(args.itemId);
-
 
5161
        } catch (InventoryServiceException cex) {
-
 
5162
          result.cex = cex;
-
 
5163
        }
-
 
5164
        return result;
-
 
5165
      }
-
 
5166
    }
-
 
5167
 
-
 
5168
    private static class getItemForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemForSource_args> {
-
 
5169
      public getItemForSource() {
-
 
5170
        super("getItemForSource");
-
 
5171
      }
-
 
5172
 
-
 
5173
      protected getItemForSource_args getEmptyArgsInstance() {
-
 
5174
        return new getItemForSource_args();
-
 
5175
      }
-
 
5176
 
-
 
5177
      protected getItemForSource_result getResult(I iface, getItemForSource_args args) throws org.apache.thrift.TException {
-
 
5178
        getItemForSource_result result = new getItemForSource_result();
-
 
5179
        try {
-
 
5180
          result.success = iface.getItemForSource(args.item_id, args.sourceId);
-
 
5181
        } catch (InventoryServiceException cex) {
-
 
5182
          result.cex = cex;
-
 
5183
        }
-
 
5184
        return result;
-
 
5185
      }
-
 
5186
    }
-
 
5187
 
4752
  }
5188
  }
4753
 
5189
 
4754
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5190
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
4755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
4756
 
5192
 
Line 42565... Line 43001...
42565
      }
43001
      }
42566
      first = false;
43002
      first = false;
42567
      sb.append(")");
43003
      sb.append(")");
42568
      return sb.toString();
43004
      return sb.toString();
42569
    }
43005
    }
-
 
43006
 
-
 
43007
    public void validate() throws org.apache.thrift.TException {
-
 
43008
      // check for required fields
-
 
43009
    }
-
 
43010
 
-
 
43011
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
43012
      try {
-
 
43013
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
43014
      } catch (org.apache.thrift.TException te) {
-
 
43015
        throw new java.io.IOException(te);
-
 
43016
      }
-
 
43017
    }
-
 
43018
 
-
 
43019
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
43020
      try {
-
 
43021
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
43022
      } catch (org.apache.thrift.TException te) {
-
 
43023
        throw new java.io.IOException(te);
-
 
43024
      }
-
 
43025
    }
-
 
43026
 
-
 
43027
  }
-
 
43028
 
-
 
43029
  public static class getAllSources_args implements org.apache.thrift.TBase<getAllSources_args, getAllSources_args._Fields>, java.io.Serializable, Cloneable   {
-
 
43030
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_args");
-
 
43031
 
-
 
43032
 
-
 
43033
 
-
 
43034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
43035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
43036
;
-
 
43037
 
-
 
43038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
43039
 
-
 
43040
      static {
-
 
43041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
43042
          byName.put(field.getFieldName(), field);
-
 
43043
        }
-
 
43044
      }
-
 
43045
 
-
 
43046
      /**
-
 
43047
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
43048
       */
-
 
43049
      public static _Fields findByThriftId(int fieldId) {
-
 
43050
        switch(fieldId) {
-
 
43051
          default:
-
 
43052
            return null;
-
 
43053
        }
-
 
43054
      }
-
 
43055
 
-
 
43056
      /**
-
 
43057
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
43058
       * if it is not found.
-
 
43059
       */
-
 
43060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
43061
        _Fields fields = findByThriftId(fieldId);
-
 
43062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
43063
        return fields;
-
 
43064
      }
-
 
43065
 
-
 
43066
      /**
-
 
43067
       * Find the _Fields constant that matches name, or null if its not found.
-
 
43068
       */
-
 
43069
      public static _Fields findByName(String name) {
-
 
43070
        return byName.get(name);
-
 
43071
      }
-
 
43072
 
-
 
43073
      private final short _thriftId;
-
 
43074
      private final String _fieldName;
-
 
43075
 
-
 
43076
      _Fields(short thriftId, String fieldName) {
-
 
43077
        _thriftId = thriftId;
-
 
43078
        _fieldName = fieldName;
-
 
43079
      }
-
 
43080
 
-
 
43081
      public short getThriftFieldId() {
-
 
43082
        return _thriftId;
-
 
43083
      }
-
 
43084
 
-
 
43085
      public String getFieldName() {
-
 
43086
        return _fieldName;
-
 
43087
      }
-
 
43088
    }
-
 
43089
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
43090
    static {
-
 
43091
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
43092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
43093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_args.class, metaDataMap);
-
 
43094
    }
-
 
43095
 
-
 
43096
    public getAllSources_args() {
-
 
43097
    }
-
 
43098
 
-
 
43099
    /**
-
 
43100
     * Performs a deep copy on <i>other</i>.
-
 
43101
     */
-
 
43102
    public getAllSources_args(getAllSources_args other) {
-
 
43103
    }
-
 
43104
 
-
 
43105
    public getAllSources_args deepCopy() {
-
 
43106
      return new getAllSources_args(this);
-
 
43107
    }
-
 
43108
 
-
 
43109
    @Override
-
 
43110
    public void clear() {
-
 
43111
    }
-
 
43112
 
-
 
43113
    public void setFieldValue(_Fields field, Object value) {
-
 
43114
      switch (field) {
-
 
43115
      }
-
 
43116
    }
-
 
43117
 
-
 
43118
    public Object getFieldValue(_Fields field) {
-
 
43119
      switch (field) {
-
 
43120
      }
-
 
43121
      throw new IllegalStateException();
-
 
43122
    }
-
 
43123
 
-
 
43124
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
43125
    public boolean isSet(_Fields field) {
-
 
43126
      if (field == null) {
-
 
43127
        throw new IllegalArgumentException();
-
 
43128
      }
-
 
43129
 
-
 
43130
      switch (field) {
-
 
43131
      }
-
 
43132
      throw new IllegalStateException();
-
 
43133
    }
-
 
43134
 
-
 
43135
    @Override
-
 
43136
    public boolean equals(Object that) {
-
 
43137
      if (that == null)
-
 
43138
        return false;
-
 
43139
      if (that instanceof getAllSources_args)
-
 
43140
        return this.equals((getAllSources_args)that);
-
 
43141
      return false;
-
 
43142
    }
-
 
43143
 
-
 
43144
    public boolean equals(getAllSources_args that) {
-
 
43145
      if (that == null)
-
 
43146
        return false;
-
 
43147
 
-
 
43148
      return true;
-
 
43149
    }
-
 
43150
 
-
 
43151
    @Override
-
 
43152
    public int hashCode() {
-
 
43153
      return 0;
-
 
43154
    }
-
 
43155
 
-
 
43156
    public int compareTo(getAllSources_args other) {
-
 
43157
      if (!getClass().equals(other.getClass())) {
-
 
43158
        return getClass().getName().compareTo(other.getClass().getName());
-
 
43159
      }
-
 
43160
 
-
 
43161
      int lastComparison = 0;
-
 
43162
      getAllSources_args typedOther = (getAllSources_args)other;
-
 
43163
 
-
 
43164
      return 0;
-
 
43165
    }
-
 
43166
 
-
 
43167
    public _Fields fieldForId(int fieldId) {
-
 
43168
      return _Fields.findByThriftId(fieldId);
-
 
43169
    }
-
 
43170
 
-
 
43171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
43172
      org.apache.thrift.protocol.TField field;
-
 
43173
      iprot.readStructBegin();
-
 
43174
      while (true)
-
 
43175
      {
-
 
43176
        field = iprot.readFieldBegin();
-
 
43177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
43178
          break;
-
 
43179
        }
-
 
43180
        switch (field.id) {
-
 
43181
          default:
-
 
43182
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43183
        }
-
 
43184
        iprot.readFieldEnd();
-
 
43185
      }
-
 
43186
      iprot.readStructEnd();
-
 
43187
      validate();
-
 
43188
    }
-
 
43189
 
-
 
43190
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
43191
      validate();
-
 
43192
 
-
 
43193
      oprot.writeStructBegin(STRUCT_DESC);
-
 
43194
      oprot.writeFieldStop();
-
 
43195
      oprot.writeStructEnd();
-
 
43196
    }
-
 
43197
 
-
 
43198
    @Override
-
 
43199
    public String toString() {
-
 
43200
      StringBuilder sb = new StringBuilder("getAllSources_args(");
-
 
43201
      boolean first = true;
-
 
43202
 
-
 
43203
      sb.append(")");
-
 
43204
      return sb.toString();
-
 
43205
    }
-
 
43206
 
-
 
43207
    public void validate() throws org.apache.thrift.TException {
-
 
43208
      // check for required fields
-
 
43209
    }
-
 
43210
 
-
 
43211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
43212
      try {
-
 
43213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
43214
      } catch (org.apache.thrift.TException te) {
-
 
43215
        throw new java.io.IOException(te);
-
 
43216
      }
-
 
43217
    }
-
 
43218
 
-
 
43219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
43220
      try {
-
 
43221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
43222
      } catch (org.apache.thrift.TException te) {
-
 
43223
        throw new java.io.IOException(te);
-
 
43224
      }
-
 
43225
    }
-
 
43226
 
-
 
43227
  }
-
 
43228
 
-
 
43229
  public static class getAllSources_result implements org.apache.thrift.TBase<getAllSources_result, getAllSources_result._Fields>, java.io.Serializable, Cloneable   {
-
 
43230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_result");
-
 
43231
 
-
 
43232
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
43233
 
-
 
43234
    private List<Source> success; // required
-
 
43235
 
-
 
43236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
43237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
43238
      SUCCESS((short)0, "success");
-
 
43239
 
-
 
43240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
43241
 
-
 
43242
      static {
-
 
43243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
43244
          byName.put(field.getFieldName(), field);
-
 
43245
        }
-
 
43246
      }
-
 
43247
 
-
 
43248
      /**
-
 
43249
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
43250
       */
-
 
43251
      public static _Fields findByThriftId(int fieldId) {
-
 
43252
        switch(fieldId) {
-
 
43253
          case 0: // SUCCESS
-
 
43254
            return SUCCESS;
-
 
43255
          default:
-
 
43256
            return null;
-
 
43257
        }
-
 
43258
      }
-
 
43259
 
-
 
43260
      /**
-
 
43261
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
43262
       * if it is not found.
-
 
43263
       */
-
 
43264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
43265
        _Fields fields = findByThriftId(fieldId);
-
 
43266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
43267
        return fields;
-
 
43268
      }
-
 
43269
 
-
 
43270
      /**
-
 
43271
       * Find the _Fields constant that matches name, or null if its not found.
-
 
43272
       */
-
 
43273
      public static _Fields findByName(String name) {
-
 
43274
        return byName.get(name);
-
 
43275
      }
-
 
43276
 
-
 
43277
      private final short _thriftId;
-
 
43278
      private final String _fieldName;
-
 
43279
 
-
 
43280
      _Fields(short thriftId, String fieldName) {
-
 
43281
        _thriftId = thriftId;
-
 
43282
        _fieldName = fieldName;
-
 
43283
      }
-
 
43284
 
-
 
43285
      public short getThriftFieldId() {
-
 
43286
        return _thriftId;
-
 
43287
      }
-
 
43288
 
-
 
43289
      public String getFieldName() {
-
 
43290
        return _fieldName;
-
 
43291
      }
-
 
43292
    }
-
 
43293
 
-
 
43294
    // isset id assignments
-
 
43295
 
-
 
43296
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
43297
    static {
-
 
43298
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
43299
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43300
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
43301
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Source.class))));
-
 
43302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
43303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_result.class, metaDataMap);
-
 
43304
    }
-
 
43305
 
-
 
43306
    public getAllSources_result() {
-
 
43307
    }
-
 
43308
 
-
 
43309
    public getAllSources_result(
-
 
43310
      List<Source> success)
-
 
43311
    {
-
 
43312
      this();
-
 
43313
      this.success = success;
-
 
43314
    }
-
 
43315
 
-
 
43316
    /**
-
 
43317
     * Performs a deep copy on <i>other</i>.
-
 
43318
     */
-
 
43319
    public getAllSources_result(getAllSources_result other) {
-
 
43320
      if (other.isSetSuccess()) {
-
 
43321
        List<Source> __this__success = new ArrayList<Source>();
-
 
43322
        for (Source other_element : other.success) {
-
 
43323
          __this__success.add(new Source(other_element));
-
 
43324
        }
-
 
43325
        this.success = __this__success;
-
 
43326
      }
-
 
43327
    }
-
 
43328
 
-
 
43329
    public getAllSources_result deepCopy() {
-
 
43330
      return new getAllSources_result(this);
-
 
43331
    }
-
 
43332
 
-
 
43333
    @Override
-
 
43334
    public void clear() {
-
 
43335
      this.success = null;
-
 
43336
    }
-
 
43337
 
-
 
43338
    public int getSuccessSize() {
-
 
43339
      return (this.success == null) ? 0 : this.success.size();
-
 
43340
    }
-
 
43341
 
-
 
43342
    public java.util.Iterator<Source> getSuccessIterator() {
-
 
43343
      return (this.success == null) ? null : this.success.iterator();
-
 
43344
    }
-
 
43345
 
-
 
43346
    public void addToSuccess(Source elem) {
-
 
43347
      if (this.success == null) {
-
 
43348
        this.success = new ArrayList<Source>();
-
 
43349
      }
-
 
43350
      this.success.add(elem);
-
 
43351
    }
-
 
43352
 
-
 
43353
    public List<Source> getSuccess() {
-
 
43354
      return this.success;
-
 
43355
    }
-
 
43356
 
-
 
43357
    public void setSuccess(List<Source> success) {
-
 
43358
      this.success = success;
-
 
43359
    }
-
 
43360
 
-
 
43361
    public void unsetSuccess() {
-
 
43362
      this.success = null;
-
 
43363
    }
-
 
43364
 
-
 
43365
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
43366
    public boolean isSetSuccess() {
-
 
43367
      return this.success != null;
-
 
43368
    }
-
 
43369
 
-
 
43370
    public void setSuccessIsSet(boolean value) {
-
 
43371
      if (!value) {
-
 
43372
        this.success = null;
-
 
43373
      }
-
 
43374
    }
-
 
43375
 
-
 
43376
    public void setFieldValue(_Fields field, Object value) {
-
 
43377
      switch (field) {
-
 
43378
      case SUCCESS:
-
 
43379
        if (value == null) {
-
 
43380
          unsetSuccess();
-
 
43381
        } else {
-
 
43382
          setSuccess((List<Source>)value);
-
 
43383
        }
-
 
43384
        break;
-
 
43385
 
-
 
43386
      }
-
 
43387
    }
-
 
43388
 
-
 
43389
    public Object getFieldValue(_Fields field) {
-
 
43390
      switch (field) {
-
 
43391
      case SUCCESS:
-
 
43392
        return getSuccess();
-
 
43393
 
-
 
43394
      }
-
 
43395
      throw new IllegalStateException();
-
 
43396
    }
-
 
43397
 
-
 
43398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
43399
    public boolean isSet(_Fields field) {
-
 
43400
      if (field == null) {
-
 
43401
        throw new IllegalArgumentException();
-
 
43402
      }
-
 
43403
 
-
 
43404
      switch (field) {
-
 
43405
      case SUCCESS:
-
 
43406
        return isSetSuccess();
-
 
43407
      }
-
 
43408
      throw new IllegalStateException();
-
 
43409
    }
-
 
43410
 
-
 
43411
    @Override
-
 
43412
    public boolean equals(Object that) {
-
 
43413
      if (that == null)
-
 
43414
        return false;
-
 
43415
      if (that instanceof getAllSources_result)
-
 
43416
        return this.equals((getAllSources_result)that);
-
 
43417
      return false;
-
 
43418
    }
-
 
43419
 
-
 
43420
    public boolean equals(getAllSources_result that) {
-
 
43421
      if (that == null)
-
 
43422
        return false;
-
 
43423
 
-
 
43424
      boolean this_present_success = true && this.isSetSuccess();
-
 
43425
      boolean that_present_success = true && that.isSetSuccess();
-
 
43426
      if (this_present_success || that_present_success) {
-
 
43427
        if (!(this_present_success && that_present_success))
-
 
43428
          return false;
-
 
43429
        if (!this.success.equals(that.success))
-
 
43430
          return false;
-
 
43431
      }
-
 
43432
 
-
 
43433
      return true;
-
 
43434
    }
-
 
43435
 
-
 
43436
    @Override
-
 
43437
    public int hashCode() {
-
 
43438
      return 0;
-
 
43439
    }
-
 
43440
 
-
 
43441
    public int compareTo(getAllSources_result other) {
-
 
43442
      if (!getClass().equals(other.getClass())) {
-
 
43443
        return getClass().getName().compareTo(other.getClass().getName());
-
 
43444
      }
-
 
43445
 
-
 
43446
      int lastComparison = 0;
-
 
43447
      getAllSources_result typedOther = (getAllSources_result)other;
-
 
43448
 
-
 
43449
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
43450
      if (lastComparison != 0) {
-
 
43451
        return lastComparison;
-
 
43452
      }
-
 
43453
      if (isSetSuccess()) {
-
 
43454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
43455
        if (lastComparison != 0) {
-
 
43456
          return lastComparison;
-
 
43457
        }
-
 
43458
      }
-
 
43459
      return 0;
-
 
43460
    }
-
 
43461
 
-
 
43462
    public _Fields fieldForId(int fieldId) {
-
 
43463
      return _Fields.findByThriftId(fieldId);
-
 
43464
    }
-
 
43465
 
-
 
43466
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
43467
      org.apache.thrift.protocol.TField field;
-
 
43468
      iprot.readStructBegin();
-
 
43469
      while (true)
-
 
43470
      {
-
 
43471
        field = iprot.readFieldBegin();
-
 
43472
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
43473
          break;
-
 
43474
        }
-
 
43475
        switch (field.id) {
-
 
43476
          case 0: // SUCCESS
-
 
43477
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
43478
              {
-
 
43479
                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
-
 
43480
                this.success = new ArrayList<Source>(_list112.size);
-
 
43481
                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
-
 
43482
                {
-
 
43483
                  Source _elem114; // required
-
 
43484
                  _elem114 = new Source();
-
 
43485
                  _elem114.read(iprot);
-
 
43486
                  this.success.add(_elem114);
-
 
43487
                }
-
 
43488
                iprot.readListEnd();
-
 
43489
              }
-
 
43490
            } else { 
-
 
43491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43492
            }
-
 
43493
            break;
-
 
43494
          default:
-
 
43495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43496
        }
-
 
43497
        iprot.readFieldEnd();
-
 
43498
      }
-
 
43499
      iprot.readStructEnd();
-
 
43500
      validate();
-
 
43501
    }
-
 
43502
 
-
 
43503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
43504
      oprot.writeStructBegin(STRUCT_DESC);
-
 
43505
 
-
 
43506
      if (this.isSetSuccess()) {
-
 
43507
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
43508
        {
-
 
43509
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
43510
          for (Source _iter115 : this.success)
-
 
43511
          {
-
 
43512
            _iter115.write(oprot);
-
 
43513
          }
-
 
43514
          oprot.writeListEnd();
-
 
43515
        }
-
 
43516
        oprot.writeFieldEnd();
-
 
43517
      }
-
 
43518
      oprot.writeFieldStop();
-
 
43519
      oprot.writeStructEnd();
-
 
43520
    }
-
 
43521
 
-
 
43522
    @Override
-
 
43523
    public String toString() {
-
 
43524
      StringBuilder sb = new StringBuilder("getAllSources_result(");
-
 
43525
      boolean first = true;
-
 
43526
 
-
 
43527
      sb.append("success:");
-
 
43528
      if (this.success == null) {
-
 
43529
        sb.append("null");
-
 
43530
      } else {
-
 
43531
        sb.append(this.success);
-
 
43532
      }
-
 
43533
      first = false;
-
 
43534
      sb.append(")");
-
 
43535
      return sb.toString();
-
 
43536
    }
-
 
43537
 
-
 
43538
    public void validate() throws org.apache.thrift.TException {
-
 
43539
      // check for required fields
-
 
43540
    }
-
 
43541
 
-
 
43542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
43543
      try {
-
 
43544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
43545
      } catch (org.apache.thrift.TException te) {
-
 
43546
        throw new java.io.IOException(te);
-
 
43547
      }
-
 
43548
    }
-
 
43549
 
-
 
43550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
43551
      try {
-
 
43552
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
43553
      } catch (org.apache.thrift.TException te) {
-
 
43554
        throw new java.io.IOException(te);
-
 
43555
      }
-
 
43556
    }
-
 
43557
 
-
 
43558
  }
-
 
43559
 
-
 
43560
  public static class getItemPricingBySource_args implements org.apache.thrift.TBase<getItemPricingBySource_args, getItemPricingBySource_args._Fields>, java.io.Serializable, Cloneable   {
-
 
43561
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_args");
-
 
43562
 
-
 
43563
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
43564
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
43565
 
-
 
43566
    private long itemId; // required
-
 
43567
    private long sourceId; // required
-
 
43568
 
-
 
43569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
43570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
43571
      ITEM_ID((short)1, "itemId"),
-
 
43572
      SOURCE_ID((short)2, "sourceId");
-
 
43573
 
-
 
43574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
43575
 
-
 
43576
      static {
-
 
43577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
43578
          byName.put(field.getFieldName(), field);
-
 
43579
        }
-
 
43580
      }
-
 
43581
 
-
 
43582
      /**
-
 
43583
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
43584
       */
-
 
43585
      public static _Fields findByThriftId(int fieldId) {
-
 
43586
        switch(fieldId) {
-
 
43587
          case 1: // ITEM_ID
-
 
43588
            return ITEM_ID;
-
 
43589
          case 2: // SOURCE_ID
-
 
43590
            return SOURCE_ID;
-
 
43591
          default:
-
 
43592
            return null;
-
 
43593
        }
-
 
43594
      }
-
 
43595
 
-
 
43596
      /**
-
 
43597
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
43598
       * if it is not found.
-
 
43599
       */
-
 
43600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
43601
        _Fields fields = findByThriftId(fieldId);
-
 
43602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
43603
        return fields;
-
 
43604
      }
-
 
43605
 
-
 
43606
      /**
-
 
43607
       * Find the _Fields constant that matches name, or null if its not found.
-
 
43608
       */
-
 
43609
      public static _Fields findByName(String name) {
-
 
43610
        return byName.get(name);
-
 
43611
      }
-
 
43612
 
-
 
43613
      private final short _thriftId;
-
 
43614
      private final String _fieldName;
-
 
43615
 
-
 
43616
      _Fields(short thriftId, String fieldName) {
-
 
43617
        _thriftId = thriftId;
-
 
43618
        _fieldName = fieldName;
-
 
43619
      }
-
 
43620
 
-
 
43621
      public short getThriftFieldId() {
-
 
43622
        return _thriftId;
-
 
43623
      }
-
 
43624
 
-
 
43625
      public String getFieldName() {
-
 
43626
        return _fieldName;
-
 
43627
      }
-
 
43628
    }
-
 
43629
 
-
 
43630
    // isset id assignments
-
 
43631
    private static final int __ITEMID_ISSET_ID = 0;
-
 
43632
    private static final int __SOURCEID_ISSET_ID = 1;
-
 
43633
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
43634
 
-
 
43635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
43636
    static {
-
 
43637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
43638
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
43640
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
43642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
43643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_args.class, metaDataMap);
-
 
43644
    }
-
 
43645
 
-
 
43646
    public getItemPricingBySource_args() {
-
 
43647
    }
-
 
43648
 
-
 
43649
    public getItemPricingBySource_args(
-
 
43650
      long itemId,
-
 
43651
      long sourceId)
-
 
43652
    {
-
 
43653
      this();
-
 
43654
      this.itemId = itemId;
-
 
43655
      setItemIdIsSet(true);
-
 
43656
      this.sourceId = sourceId;
-
 
43657
      setSourceIdIsSet(true);
-
 
43658
    }
-
 
43659
 
-
 
43660
    /**
-
 
43661
     * Performs a deep copy on <i>other</i>.
-
 
43662
     */
-
 
43663
    public getItemPricingBySource_args(getItemPricingBySource_args other) {
-
 
43664
      __isset_bit_vector.clear();
-
 
43665
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
43666
      this.itemId = other.itemId;
-
 
43667
      this.sourceId = other.sourceId;
-
 
43668
    }
-
 
43669
 
-
 
43670
    public getItemPricingBySource_args deepCopy() {
-
 
43671
      return new getItemPricingBySource_args(this);
-
 
43672
    }
-
 
43673
 
-
 
43674
    @Override
-
 
43675
    public void clear() {
-
 
43676
      setItemIdIsSet(false);
-
 
43677
      this.itemId = 0;
-
 
43678
      setSourceIdIsSet(false);
-
 
43679
      this.sourceId = 0;
-
 
43680
    }
-
 
43681
 
-
 
43682
    public long getItemId() {
-
 
43683
      return this.itemId;
-
 
43684
    }
-
 
43685
 
-
 
43686
    public void setItemId(long itemId) {
-
 
43687
      this.itemId = itemId;
-
 
43688
      setItemIdIsSet(true);
-
 
43689
    }
-
 
43690
 
-
 
43691
    public void unsetItemId() {
-
 
43692
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
43693
    }
-
 
43694
 
-
 
43695
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
43696
    public boolean isSetItemId() {
-
 
43697
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
43698
    }
-
 
43699
 
-
 
43700
    public void setItemIdIsSet(boolean value) {
-
 
43701
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
43702
    }
-
 
43703
 
-
 
43704
    public long getSourceId() {
-
 
43705
      return this.sourceId;
-
 
43706
    }
-
 
43707
 
-
 
43708
    public void setSourceId(long sourceId) {
-
 
43709
      this.sourceId = sourceId;
-
 
43710
      setSourceIdIsSet(true);
-
 
43711
    }
-
 
43712
 
-
 
43713
    public void unsetSourceId() {
-
 
43714
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
43715
    }
-
 
43716
 
-
 
43717
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
43718
    public boolean isSetSourceId() {
-
 
43719
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
43720
    }
-
 
43721
 
-
 
43722
    public void setSourceIdIsSet(boolean value) {
-
 
43723
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
43724
    }
-
 
43725
 
-
 
43726
    public void setFieldValue(_Fields field, Object value) {
-
 
43727
      switch (field) {
-
 
43728
      case ITEM_ID:
-
 
43729
        if (value == null) {
-
 
43730
          unsetItemId();
-
 
43731
        } else {
-
 
43732
          setItemId((Long)value);
-
 
43733
        }
-
 
43734
        break;
-
 
43735
 
-
 
43736
      case SOURCE_ID:
-
 
43737
        if (value == null) {
-
 
43738
          unsetSourceId();
-
 
43739
        } else {
-
 
43740
          setSourceId((Long)value);
-
 
43741
        }
-
 
43742
        break;
-
 
43743
 
-
 
43744
      }
-
 
43745
    }
-
 
43746
 
-
 
43747
    public Object getFieldValue(_Fields field) {
-
 
43748
      switch (field) {
-
 
43749
      case ITEM_ID:
-
 
43750
        return Long.valueOf(getItemId());
-
 
43751
 
-
 
43752
      case SOURCE_ID:
-
 
43753
        return Long.valueOf(getSourceId());
-
 
43754
 
-
 
43755
      }
-
 
43756
      throw new IllegalStateException();
-
 
43757
    }
-
 
43758
 
-
 
43759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
43760
    public boolean isSet(_Fields field) {
-
 
43761
      if (field == null) {
-
 
43762
        throw new IllegalArgumentException();
-
 
43763
      }
-
 
43764
 
-
 
43765
      switch (field) {
-
 
43766
      case ITEM_ID:
-
 
43767
        return isSetItemId();
-
 
43768
      case SOURCE_ID:
-
 
43769
        return isSetSourceId();
-
 
43770
      }
-
 
43771
      throw new IllegalStateException();
-
 
43772
    }
-
 
43773
 
-
 
43774
    @Override
-
 
43775
    public boolean equals(Object that) {
-
 
43776
      if (that == null)
-
 
43777
        return false;
-
 
43778
      if (that instanceof getItemPricingBySource_args)
-
 
43779
        return this.equals((getItemPricingBySource_args)that);
-
 
43780
      return false;
-
 
43781
    }
-
 
43782
 
-
 
43783
    public boolean equals(getItemPricingBySource_args that) {
-
 
43784
      if (that == null)
-
 
43785
        return false;
-
 
43786
 
-
 
43787
      boolean this_present_itemId = true;
-
 
43788
      boolean that_present_itemId = true;
-
 
43789
      if (this_present_itemId || that_present_itemId) {
-
 
43790
        if (!(this_present_itemId && that_present_itemId))
-
 
43791
          return false;
-
 
43792
        if (this.itemId != that.itemId)
-
 
43793
          return false;
-
 
43794
      }
-
 
43795
 
-
 
43796
      boolean this_present_sourceId = true;
-
 
43797
      boolean that_present_sourceId = true;
-
 
43798
      if (this_present_sourceId || that_present_sourceId) {
-
 
43799
        if (!(this_present_sourceId && that_present_sourceId))
-
 
43800
          return false;
-
 
43801
        if (this.sourceId != that.sourceId)
-
 
43802
          return false;
-
 
43803
      }
-
 
43804
 
-
 
43805
      return true;
-
 
43806
    }
-
 
43807
 
-
 
43808
    @Override
-
 
43809
    public int hashCode() {
-
 
43810
      return 0;
-
 
43811
    }
-
 
43812
 
-
 
43813
    public int compareTo(getItemPricingBySource_args other) {
-
 
43814
      if (!getClass().equals(other.getClass())) {
-
 
43815
        return getClass().getName().compareTo(other.getClass().getName());
-
 
43816
      }
-
 
43817
 
-
 
43818
      int lastComparison = 0;
-
 
43819
      getItemPricingBySource_args typedOther = (getItemPricingBySource_args)other;
-
 
43820
 
-
 
43821
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
43822
      if (lastComparison != 0) {
-
 
43823
        return lastComparison;
-
 
43824
      }
-
 
43825
      if (isSetItemId()) {
-
 
43826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
43827
        if (lastComparison != 0) {
-
 
43828
          return lastComparison;
-
 
43829
        }
-
 
43830
      }
-
 
43831
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
43832
      if (lastComparison != 0) {
-
 
43833
        return lastComparison;
-
 
43834
      }
-
 
43835
      if (isSetSourceId()) {
-
 
43836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
43837
        if (lastComparison != 0) {
-
 
43838
          return lastComparison;
-
 
43839
        }
-
 
43840
      }
-
 
43841
      return 0;
-
 
43842
    }
-
 
43843
 
-
 
43844
    public _Fields fieldForId(int fieldId) {
-
 
43845
      return _Fields.findByThriftId(fieldId);
-
 
43846
    }
-
 
43847
 
-
 
43848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
43849
      org.apache.thrift.protocol.TField field;
-
 
43850
      iprot.readStructBegin();
-
 
43851
      while (true)
-
 
43852
      {
-
 
43853
        field = iprot.readFieldBegin();
-
 
43854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
43855
          break;
-
 
43856
        }
-
 
43857
        switch (field.id) {
-
 
43858
          case 1: // ITEM_ID
-
 
43859
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
43860
              this.itemId = iprot.readI64();
-
 
43861
              setItemIdIsSet(true);
-
 
43862
            } else { 
-
 
43863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43864
            }
-
 
43865
            break;
-
 
43866
          case 2: // SOURCE_ID
-
 
43867
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
43868
              this.sourceId = iprot.readI64();
-
 
43869
              setSourceIdIsSet(true);
-
 
43870
            } else { 
-
 
43871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43872
            }
-
 
43873
            break;
-
 
43874
          default:
-
 
43875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43876
        }
-
 
43877
        iprot.readFieldEnd();
-
 
43878
      }
-
 
43879
      iprot.readStructEnd();
-
 
43880
      validate();
-
 
43881
    }
-
 
43882
 
-
 
43883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
43884
      validate();
-
 
43885
 
-
 
43886
      oprot.writeStructBegin(STRUCT_DESC);
-
 
43887
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
43888
      oprot.writeI64(this.itemId);
-
 
43889
      oprot.writeFieldEnd();
-
 
43890
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
43891
      oprot.writeI64(this.sourceId);
-
 
43892
      oprot.writeFieldEnd();
-
 
43893
      oprot.writeFieldStop();
-
 
43894
      oprot.writeStructEnd();
-
 
43895
    }
-
 
43896
 
-
 
43897
    @Override
-
 
43898
    public String toString() {
-
 
43899
      StringBuilder sb = new StringBuilder("getItemPricingBySource_args(");
-
 
43900
      boolean first = true;
-
 
43901
 
-
 
43902
      sb.append("itemId:");
-
 
43903
      sb.append(this.itemId);
-
 
43904
      first = false;
-
 
43905
      if (!first) sb.append(", ");
-
 
43906
      sb.append("sourceId:");
-
 
43907
      sb.append(this.sourceId);
-
 
43908
      first = false;
-
 
43909
      sb.append(")");
-
 
43910
      return sb.toString();
-
 
43911
    }
-
 
43912
 
-
 
43913
    public void validate() throws org.apache.thrift.TException {
-
 
43914
      // check for required fields
-
 
43915
    }
-
 
43916
 
-
 
43917
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
43918
      try {
-
 
43919
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
43920
      } catch (org.apache.thrift.TException te) {
-
 
43921
        throw new java.io.IOException(te);
-
 
43922
      }
-
 
43923
    }
-
 
43924
 
-
 
43925
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
43926
      try {
-
 
43927
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
43928
      } catch (org.apache.thrift.TException te) {
-
 
43929
        throw new java.io.IOException(te);
-
 
43930
      }
-
 
43931
    }
-
 
43932
 
-
 
43933
  }
-
 
43934
 
-
 
43935
  public static class getItemPricingBySource_result implements org.apache.thrift.TBase<getItemPricingBySource_result, getItemPricingBySource_result._Fields>, java.io.Serializable, Cloneable   {
-
 
43936
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_result");
-
 
43937
 
-
 
43938
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
43939
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
43940
 
-
 
43941
    private SourceItemPricing success; // required
-
 
43942
    private InventoryServiceException cex; // required
-
 
43943
 
-
 
43944
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
43945
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
43946
      SUCCESS((short)0, "success"),
-
 
43947
      CEX((short)1, "cex");
-
 
43948
 
-
 
43949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
43950
 
-
 
43951
      static {
-
 
43952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
43953
          byName.put(field.getFieldName(), field);
-
 
43954
        }
-
 
43955
      }
-
 
43956
 
-
 
43957
      /**
-
 
43958
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
43959
       */
-
 
43960
      public static _Fields findByThriftId(int fieldId) {
-
 
43961
        switch(fieldId) {
-
 
43962
          case 0: // SUCCESS
-
 
43963
            return SUCCESS;
-
 
43964
          case 1: // CEX
-
 
43965
            return CEX;
-
 
43966
          default:
-
 
43967
            return null;
-
 
43968
        }
-
 
43969
      }
-
 
43970
 
-
 
43971
      /**
-
 
43972
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
43973
       * if it is not found.
-
 
43974
       */
-
 
43975
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
43976
        _Fields fields = findByThriftId(fieldId);
-
 
43977
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
43978
        return fields;
-
 
43979
      }
-
 
43980
 
-
 
43981
      /**
-
 
43982
       * Find the _Fields constant that matches name, or null if its not found.
-
 
43983
       */
-
 
43984
      public static _Fields findByName(String name) {
-
 
43985
        return byName.get(name);
-
 
43986
      }
-
 
43987
 
-
 
43988
      private final short _thriftId;
-
 
43989
      private final String _fieldName;
-
 
43990
 
-
 
43991
      _Fields(short thriftId, String fieldName) {
-
 
43992
        _thriftId = thriftId;
-
 
43993
        _fieldName = fieldName;
-
 
43994
      }
-
 
43995
 
-
 
43996
      public short getThriftFieldId() {
-
 
43997
        return _thriftId;
-
 
43998
      }
-
 
43999
 
-
 
44000
      public String getFieldName() {
-
 
44001
        return _fieldName;
-
 
44002
      }
-
 
44003
    }
-
 
44004
 
-
 
44005
    // isset id assignments
-
 
44006
 
-
 
44007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44008
    static {
-
 
44009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44010
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44011
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));
-
 
44012
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
44014
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44015
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_result.class, metaDataMap);
-
 
44016
    }
-
 
44017
 
-
 
44018
    public getItemPricingBySource_result() {
-
 
44019
    }
-
 
44020
 
-
 
44021
    public getItemPricingBySource_result(
-
 
44022
      SourceItemPricing success,
-
 
44023
      InventoryServiceException cex)
-
 
44024
    {
-
 
44025
      this();
-
 
44026
      this.success = success;
-
 
44027
      this.cex = cex;
-
 
44028
    }
-
 
44029
 
-
 
44030
    /**
-
 
44031
     * Performs a deep copy on <i>other</i>.
-
 
44032
     */
-
 
44033
    public getItemPricingBySource_result(getItemPricingBySource_result other) {
-
 
44034
      if (other.isSetSuccess()) {
-
 
44035
        this.success = new SourceItemPricing(other.success);
-
 
44036
      }
-
 
44037
      if (other.isSetCex()) {
-
 
44038
        this.cex = new InventoryServiceException(other.cex);
-
 
44039
      }
-
 
44040
    }
-
 
44041
 
-
 
44042
    public getItemPricingBySource_result deepCopy() {
-
 
44043
      return new getItemPricingBySource_result(this);
-
 
44044
    }
-
 
44045
 
-
 
44046
    @Override
-
 
44047
    public void clear() {
-
 
44048
      this.success = null;
-
 
44049
      this.cex = null;
-
 
44050
    }
-
 
44051
 
-
 
44052
    public SourceItemPricing getSuccess() {
-
 
44053
      return this.success;
-
 
44054
    }
-
 
44055
 
-
 
44056
    public void setSuccess(SourceItemPricing success) {
-
 
44057
      this.success = success;
-
 
44058
    }
-
 
44059
 
-
 
44060
    public void unsetSuccess() {
-
 
44061
      this.success = null;
-
 
44062
    }
-
 
44063
 
-
 
44064
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
44065
    public boolean isSetSuccess() {
-
 
44066
      return this.success != null;
-
 
44067
    }
-
 
44068
 
-
 
44069
    public void setSuccessIsSet(boolean value) {
-
 
44070
      if (!value) {
-
 
44071
        this.success = null;
-
 
44072
      }
-
 
44073
    }
-
 
44074
 
-
 
44075
    public InventoryServiceException getCex() {
-
 
44076
      return this.cex;
-
 
44077
    }
-
 
44078
 
-
 
44079
    public void setCex(InventoryServiceException cex) {
-
 
44080
      this.cex = cex;
-
 
44081
    }
-
 
44082
 
-
 
44083
    public void unsetCex() {
-
 
44084
      this.cex = null;
-
 
44085
    }
-
 
44086
 
-
 
44087
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
44088
    public boolean isSetCex() {
-
 
44089
      return this.cex != null;
-
 
44090
    }
-
 
44091
 
-
 
44092
    public void setCexIsSet(boolean value) {
-
 
44093
      if (!value) {
-
 
44094
        this.cex = null;
-
 
44095
      }
-
 
44096
    }
-
 
44097
 
-
 
44098
    public void setFieldValue(_Fields field, Object value) {
-
 
44099
      switch (field) {
-
 
44100
      case SUCCESS:
-
 
44101
        if (value == null) {
-
 
44102
          unsetSuccess();
-
 
44103
        } else {
-
 
44104
          setSuccess((SourceItemPricing)value);
-
 
44105
        }
-
 
44106
        break;
-
 
44107
 
-
 
44108
      case CEX:
-
 
44109
        if (value == null) {
-
 
44110
          unsetCex();
-
 
44111
        } else {
-
 
44112
          setCex((InventoryServiceException)value);
-
 
44113
        }
-
 
44114
        break;
-
 
44115
 
-
 
44116
      }
-
 
44117
    }
-
 
44118
 
-
 
44119
    public Object getFieldValue(_Fields field) {
-
 
44120
      switch (field) {
-
 
44121
      case SUCCESS:
-
 
44122
        return getSuccess();
-
 
44123
 
-
 
44124
      case CEX:
-
 
44125
        return getCex();
-
 
44126
 
-
 
44127
      }
-
 
44128
      throw new IllegalStateException();
-
 
44129
    }
-
 
44130
 
-
 
44131
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
44132
    public boolean isSet(_Fields field) {
-
 
44133
      if (field == null) {
-
 
44134
        throw new IllegalArgumentException();
-
 
44135
      }
-
 
44136
 
-
 
44137
      switch (field) {
-
 
44138
      case SUCCESS:
-
 
44139
        return isSetSuccess();
-
 
44140
      case CEX:
-
 
44141
        return isSetCex();
-
 
44142
      }
-
 
44143
      throw new IllegalStateException();
-
 
44144
    }
-
 
44145
 
-
 
44146
    @Override
-
 
44147
    public boolean equals(Object that) {
-
 
44148
      if (that == null)
-
 
44149
        return false;
-
 
44150
      if (that instanceof getItemPricingBySource_result)
-
 
44151
        return this.equals((getItemPricingBySource_result)that);
-
 
44152
      return false;
-
 
44153
    }
-
 
44154
 
-
 
44155
    public boolean equals(getItemPricingBySource_result that) {
-
 
44156
      if (that == null)
-
 
44157
        return false;
-
 
44158
 
-
 
44159
      boolean this_present_success = true && this.isSetSuccess();
-
 
44160
      boolean that_present_success = true && that.isSetSuccess();
-
 
44161
      if (this_present_success || that_present_success) {
-
 
44162
        if (!(this_present_success && that_present_success))
-
 
44163
          return false;
-
 
44164
        if (!this.success.equals(that.success))
-
 
44165
          return false;
-
 
44166
      }
-
 
44167
 
-
 
44168
      boolean this_present_cex = true && this.isSetCex();
-
 
44169
      boolean that_present_cex = true && that.isSetCex();
-
 
44170
      if (this_present_cex || that_present_cex) {
-
 
44171
        if (!(this_present_cex && that_present_cex))
-
 
44172
          return false;
-
 
44173
        if (!this.cex.equals(that.cex))
-
 
44174
          return false;
-
 
44175
      }
-
 
44176
 
-
 
44177
      return true;
-
 
44178
    }
-
 
44179
 
-
 
44180
    @Override
-
 
44181
    public int hashCode() {
-
 
44182
      return 0;
-
 
44183
    }
-
 
44184
 
-
 
44185
    public int compareTo(getItemPricingBySource_result other) {
-
 
44186
      if (!getClass().equals(other.getClass())) {
-
 
44187
        return getClass().getName().compareTo(other.getClass().getName());
-
 
44188
      }
-
 
44189
 
-
 
44190
      int lastComparison = 0;
-
 
44191
      getItemPricingBySource_result typedOther = (getItemPricingBySource_result)other;
-
 
44192
 
-
 
44193
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
44194
      if (lastComparison != 0) {
-
 
44195
        return lastComparison;
-
 
44196
      }
-
 
44197
      if (isSetSuccess()) {
-
 
44198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
44199
        if (lastComparison != 0) {
-
 
44200
          return lastComparison;
-
 
44201
        }
-
 
44202
      }
-
 
44203
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
44204
      if (lastComparison != 0) {
-
 
44205
        return lastComparison;
-
 
44206
      }
-
 
44207
      if (isSetCex()) {
-
 
44208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
44209
        if (lastComparison != 0) {
-
 
44210
          return lastComparison;
-
 
44211
        }
-
 
44212
      }
-
 
44213
      return 0;
-
 
44214
    }
-
 
44215
 
-
 
44216
    public _Fields fieldForId(int fieldId) {
-
 
44217
      return _Fields.findByThriftId(fieldId);
-
 
44218
    }
-
 
44219
 
-
 
44220
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
44221
      org.apache.thrift.protocol.TField field;
-
 
44222
      iprot.readStructBegin();
-
 
44223
      while (true)
-
 
44224
      {
-
 
44225
        field = iprot.readFieldBegin();
-
 
44226
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
44227
          break;
-
 
44228
        }
-
 
44229
        switch (field.id) {
-
 
44230
          case 0: // SUCCESS
-
 
44231
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
44232
              this.success = new SourceItemPricing();
-
 
44233
              this.success.read(iprot);
-
 
44234
            } else { 
-
 
44235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44236
            }
-
 
44237
            break;
-
 
44238
          case 1: // CEX
-
 
44239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
44240
              this.cex = new InventoryServiceException();
-
 
44241
              this.cex.read(iprot);
-
 
44242
            } else { 
-
 
44243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44244
            }
-
 
44245
            break;
-
 
44246
          default:
-
 
44247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44248
        }
-
 
44249
        iprot.readFieldEnd();
-
 
44250
      }
-
 
44251
      iprot.readStructEnd();
-
 
44252
      validate();
-
 
44253
    }
-
 
44254
 
-
 
44255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
44256
      oprot.writeStructBegin(STRUCT_DESC);
-
 
44257
 
-
 
44258
      if (this.isSetSuccess()) {
-
 
44259
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
44260
        this.success.write(oprot);
-
 
44261
        oprot.writeFieldEnd();
-
 
44262
      } else if (this.isSetCex()) {
-
 
44263
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
44264
        this.cex.write(oprot);
-
 
44265
        oprot.writeFieldEnd();
-
 
44266
      }
-
 
44267
      oprot.writeFieldStop();
-
 
44268
      oprot.writeStructEnd();
-
 
44269
    }
-
 
44270
 
-
 
44271
    @Override
-
 
44272
    public String toString() {
-
 
44273
      StringBuilder sb = new StringBuilder("getItemPricingBySource_result(");
-
 
44274
      boolean first = true;
-
 
44275
 
-
 
44276
      sb.append("success:");
-
 
44277
      if (this.success == null) {
-
 
44278
        sb.append("null");
-
 
44279
      } else {
-
 
44280
        sb.append(this.success);
-
 
44281
      }
-
 
44282
      first = false;
-
 
44283
      if (!first) sb.append(", ");
-
 
44284
      sb.append("cex:");
-
 
44285
      if (this.cex == null) {
-
 
44286
        sb.append("null");
-
 
44287
      } else {
-
 
44288
        sb.append(this.cex);
-
 
44289
      }
-
 
44290
      first = false;
-
 
44291
      sb.append(")");
-
 
44292
      return sb.toString();
-
 
44293
    }
-
 
44294
 
-
 
44295
    public void validate() throws org.apache.thrift.TException {
-
 
44296
      // check for required fields
-
 
44297
    }
-
 
44298
 
-
 
44299
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
44300
      try {
-
 
44301
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
44302
      } catch (org.apache.thrift.TException te) {
-
 
44303
        throw new java.io.IOException(te);
-
 
44304
      }
-
 
44305
    }
-
 
44306
 
-
 
44307
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
44308
      try {
-
 
44309
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
44310
      } catch (org.apache.thrift.TException te) {
-
 
44311
        throw new java.io.IOException(te);
-
 
44312
      }
-
 
44313
    }
-
 
44314
 
-
 
44315
  }
-
 
44316
 
-
 
44317
  public static class addSourceItemPricing_args implements org.apache.thrift.TBase<addSourceItemPricing_args, addSourceItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
-
 
44318
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_args");
-
 
44319
 
-
 
44320
    private static final org.apache.thrift.protocol.TField SOURCE_ITEM_PRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceItemPricing", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
44321
 
-
 
44322
    private SourceItemPricing sourceItemPricing; // required
-
 
44323
 
-
 
44324
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
44325
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
44326
      SOURCE_ITEM_PRICING((short)1, "sourceItemPricing");
-
 
44327
 
-
 
44328
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
44329
 
-
 
44330
      static {
-
 
44331
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
44332
          byName.put(field.getFieldName(), field);
-
 
44333
        }
-
 
44334
      }
-
 
44335
 
-
 
44336
      /**
-
 
44337
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
44338
       */
-
 
44339
      public static _Fields findByThriftId(int fieldId) {
-
 
44340
        switch(fieldId) {
-
 
44341
          case 1: // SOURCE_ITEM_PRICING
-
 
44342
            return SOURCE_ITEM_PRICING;
-
 
44343
          default:
-
 
44344
            return null;
-
 
44345
        }
-
 
44346
      }
-
 
44347
 
-
 
44348
      /**
-
 
44349
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
44350
       * if it is not found.
-
 
44351
       */
-
 
44352
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
44353
        _Fields fields = findByThriftId(fieldId);
-
 
44354
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
44355
        return fields;
-
 
44356
      }
-
 
44357
 
-
 
44358
      /**
-
 
44359
       * Find the _Fields constant that matches name, or null if its not found.
-
 
44360
       */
-
 
44361
      public static _Fields findByName(String name) {
-
 
44362
        return byName.get(name);
-
 
44363
      }
-
 
44364
 
-
 
44365
      private final short _thriftId;
-
 
44366
      private final String _fieldName;
-
 
44367
 
-
 
44368
      _Fields(short thriftId, String fieldName) {
-
 
44369
        _thriftId = thriftId;
-
 
44370
        _fieldName = fieldName;
-
 
44371
      }
-
 
44372
 
-
 
44373
      public short getThriftFieldId() {
-
 
44374
        return _thriftId;
-
 
44375
      }
-
 
44376
 
-
 
44377
      public String getFieldName() {
-
 
44378
        return _fieldName;
-
 
44379
      }
-
 
44380
    }
-
 
44381
 
-
 
44382
    // isset id assignments
-
 
44383
 
-
 
44384
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44385
    static {
-
 
44386
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44387
      tmpMap.put(_Fields.SOURCE_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("sourceItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44388
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));
-
 
44389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_args.class, metaDataMap);
-
 
44391
    }
-
 
44392
 
-
 
44393
    public addSourceItemPricing_args() {
-
 
44394
    }
-
 
44395
 
-
 
44396
    public addSourceItemPricing_args(
-
 
44397
      SourceItemPricing sourceItemPricing)
-
 
44398
    {
-
 
44399
      this();
-
 
44400
      this.sourceItemPricing = sourceItemPricing;
-
 
44401
    }
-
 
44402
 
-
 
44403
    /**
-
 
44404
     * Performs a deep copy on <i>other</i>.
-
 
44405
     */
-
 
44406
    public addSourceItemPricing_args(addSourceItemPricing_args other) {
-
 
44407
      if (other.isSetSourceItemPricing()) {
-
 
44408
        this.sourceItemPricing = new SourceItemPricing(other.sourceItemPricing);
-
 
44409
      }
-
 
44410
    }
-
 
44411
 
-
 
44412
    public addSourceItemPricing_args deepCopy() {
-
 
44413
      return new addSourceItemPricing_args(this);
-
 
44414
    }
-
 
44415
 
-
 
44416
    @Override
-
 
44417
    public void clear() {
-
 
44418
      this.sourceItemPricing = null;
-
 
44419
    }
-
 
44420
 
-
 
44421
    public SourceItemPricing getSourceItemPricing() {
-
 
44422
      return this.sourceItemPricing;
-
 
44423
    }
-
 
44424
 
-
 
44425
    public void setSourceItemPricing(SourceItemPricing sourceItemPricing) {
-
 
44426
      this.sourceItemPricing = sourceItemPricing;
-
 
44427
    }
-
 
44428
 
-
 
44429
    public void unsetSourceItemPricing() {
-
 
44430
      this.sourceItemPricing = null;
-
 
44431
    }
-
 
44432
 
-
 
44433
    /** Returns true if field sourceItemPricing is set (has been assigned a value) and false otherwise */
-
 
44434
    public boolean isSetSourceItemPricing() {
-
 
44435
      return this.sourceItemPricing != null;
-
 
44436
    }
-
 
44437
 
-
 
44438
    public void setSourceItemPricingIsSet(boolean value) {
-
 
44439
      if (!value) {
-
 
44440
        this.sourceItemPricing = null;
-
 
44441
      }
-
 
44442
    }
-
 
44443
 
-
 
44444
    public void setFieldValue(_Fields field, Object value) {
-
 
44445
      switch (field) {
-
 
44446
      case SOURCE_ITEM_PRICING:
-
 
44447
        if (value == null) {
-
 
44448
          unsetSourceItemPricing();
-
 
44449
        } else {
-
 
44450
          setSourceItemPricing((SourceItemPricing)value);
-
 
44451
        }
-
 
44452
        break;
-
 
44453
 
-
 
44454
      }
-
 
44455
    }
-
 
44456
 
-
 
44457
    public Object getFieldValue(_Fields field) {
-
 
44458
      switch (field) {
-
 
44459
      case SOURCE_ITEM_PRICING:
-
 
44460
        return getSourceItemPricing();
-
 
44461
 
-
 
44462
      }
-
 
44463
      throw new IllegalStateException();
-
 
44464
    }
-
 
44465
 
-
 
44466
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
44467
    public boolean isSet(_Fields field) {
-
 
44468
      if (field == null) {
-
 
44469
        throw new IllegalArgumentException();
-
 
44470
      }
-
 
44471
 
-
 
44472
      switch (field) {
-
 
44473
      case SOURCE_ITEM_PRICING:
-
 
44474
        return isSetSourceItemPricing();
-
 
44475
      }
-
 
44476
      throw new IllegalStateException();
-
 
44477
    }
-
 
44478
 
-
 
44479
    @Override
-
 
44480
    public boolean equals(Object that) {
-
 
44481
      if (that == null)
-
 
44482
        return false;
-
 
44483
      if (that instanceof addSourceItemPricing_args)
-
 
44484
        return this.equals((addSourceItemPricing_args)that);
-
 
44485
      return false;
-
 
44486
    }
-
 
44487
 
-
 
44488
    public boolean equals(addSourceItemPricing_args that) {
-
 
44489
      if (that == null)
-
 
44490
        return false;
-
 
44491
 
-
 
44492
      boolean this_present_sourceItemPricing = true && this.isSetSourceItemPricing();
-
 
44493
      boolean that_present_sourceItemPricing = true && that.isSetSourceItemPricing();
-
 
44494
      if (this_present_sourceItemPricing || that_present_sourceItemPricing) {
-
 
44495
        if (!(this_present_sourceItemPricing && that_present_sourceItemPricing))
-
 
44496
          return false;
-
 
44497
        if (!this.sourceItemPricing.equals(that.sourceItemPricing))
-
 
44498
          return false;
-
 
44499
      }
-
 
44500
 
-
 
44501
      return true;
-
 
44502
    }
-
 
44503
 
-
 
44504
    @Override
-
 
44505
    public int hashCode() {
-
 
44506
      return 0;
-
 
44507
    }
-
 
44508
 
-
 
44509
    public int compareTo(addSourceItemPricing_args other) {
-
 
44510
      if (!getClass().equals(other.getClass())) {
-
 
44511
        return getClass().getName().compareTo(other.getClass().getName());
-
 
44512
      }
-
 
44513
 
-
 
44514
      int lastComparison = 0;
-
 
44515
      addSourceItemPricing_args typedOther = (addSourceItemPricing_args)other;
-
 
44516
 
-
 
44517
      lastComparison = Boolean.valueOf(isSetSourceItemPricing()).compareTo(typedOther.isSetSourceItemPricing());
-
 
44518
      if (lastComparison != 0) {
-
 
44519
        return lastComparison;
-
 
44520
      }
-
 
44521
      if (isSetSourceItemPricing()) {
-
 
44522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceItemPricing, typedOther.sourceItemPricing);
-
 
44523
        if (lastComparison != 0) {
-
 
44524
          return lastComparison;
-
 
44525
        }
-
 
44526
      }
-
 
44527
      return 0;
-
 
44528
    }
-
 
44529
 
-
 
44530
    public _Fields fieldForId(int fieldId) {
-
 
44531
      return _Fields.findByThriftId(fieldId);
-
 
44532
    }
-
 
44533
 
-
 
44534
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
44535
      org.apache.thrift.protocol.TField field;
-
 
44536
      iprot.readStructBegin();
-
 
44537
      while (true)
-
 
44538
      {
-
 
44539
        field = iprot.readFieldBegin();
-
 
44540
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
44541
          break;
-
 
44542
        }
-
 
44543
        switch (field.id) {
-
 
44544
          case 1: // SOURCE_ITEM_PRICING
-
 
44545
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
44546
              this.sourceItemPricing = new SourceItemPricing();
-
 
44547
              this.sourceItemPricing.read(iprot);
-
 
44548
            } else { 
-
 
44549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44550
            }
-
 
44551
            break;
-
 
44552
          default:
-
 
44553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44554
        }
-
 
44555
        iprot.readFieldEnd();
-
 
44556
      }
-
 
44557
      iprot.readStructEnd();
-
 
44558
      validate();
-
 
44559
    }
-
 
44560
 
-
 
44561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
44562
      validate();
-
 
44563
 
-
 
44564
      oprot.writeStructBegin(STRUCT_DESC);
-
 
44565
      if (this.sourceItemPricing != null) {
-
 
44566
        oprot.writeFieldBegin(SOURCE_ITEM_PRICING_FIELD_DESC);
-
 
44567
        this.sourceItemPricing.write(oprot);
-
 
44568
        oprot.writeFieldEnd();
-
 
44569
      }
-
 
44570
      oprot.writeFieldStop();
-
 
44571
      oprot.writeStructEnd();
-
 
44572
    }
-
 
44573
 
-
 
44574
    @Override
-
 
44575
    public String toString() {
-
 
44576
      StringBuilder sb = new StringBuilder("addSourceItemPricing_args(");
-
 
44577
      boolean first = true;
-
 
44578
 
-
 
44579
      sb.append("sourceItemPricing:");
-
 
44580
      if (this.sourceItemPricing == null) {
-
 
44581
        sb.append("null");
-
 
44582
      } else {
-
 
44583
        sb.append(this.sourceItemPricing);
-
 
44584
      }
-
 
44585
      first = false;
-
 
44586
      sb.append(")");
-
 
44587
      return sb.toString();
-
 
44588
    }
-
 
44589
 
-
 
44590
    public void validate() throws org.apache.thrift.TException {
-
 
44591
      // check for required fields
-
 
44592
    }
-
 
44593
 
-
 
44594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
44595
      try {
-
 
44596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
44597
      } catch (org.apache.thrift.TException te) {
-
 
44598
        throw new java.io.IOException(te);
-
 
44599
      }
-
 
44600
    }
-
 
44601
 
-
 
44602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
44603
      try {
-
 
44604
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
44605
      } catch (org.apache.thrift.TException te) {
-
 
44606
        throw new java.io.IOException(te);
-
 
44607
      }
-
 
44608
    }
-
 
44609
 
-
 
44610
  }
-
 
44611
 
-
 
44612
  public static class addSourceItemPricing_result implements org.apache.thrift.TBase<addSourceItemPricing_result, addSourceItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
-
 
44613
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_result");
-
 
44614
 
-
 
44615
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
44616
 
-
 
44617
    private InventoryServiceException cex; // required
-
 
44618
 
-
 
44619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
44620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
44621
      CEX((short)1, "cex");
-
 
44622
 
-
 
44623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
44624
 
-
 
44625
      static {
-
 
44626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
44627
          byName.put(field.getFieldName(), field);
-
 
44628
        }
-
 
44629
      }
-
 
44630
 
-
 
44631
      /**
-
 
44632
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
44633
       */
-
 
44634
      public static _Fields findByThriftId(int fieldId) {
-
 
44635
        switch(fieldId) {
-
 
44636
          case 1: // CEX
-
 
44637
            return CEX;
-
 
44638
          default:
-
 
44639
            return null;
-
 
44640
        }
-
 
44641
      }
-
 
44642
 
-
 
44643
      /**
-
 
44644
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
44645
       * if it is not found.
-
 
44646
       */
-
 
44647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
44648
        _Fields fields = findByThriftId(fieldId);
-
 
44649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
44650
        return fields;
-
 
44651
      }
-
 
44652
 
-
 
44653
      /**
-
 
44654
       * Find the _Fields constant that matches name, or null if its not found.
-
 
44655
       */
-
 
44656
      public static _Fields findByName(String name) {
-
 
44657
        return byName.get(name);
-
 
44658
      }
-
 
44659
 
-
 
44660
      private final short _thriftId;
-
 
44661
      private final String _fieldName;
-
 
44662
 
-
 
44663
      _Fields(short thriftId, String fieldName) {
-
 
44664
        _thriftId = thriftId;
-
 
44665
        _fieldName = fieldName;
-
 
44666
      }
-
 
44667
 
-
 
44668
      public short getThriftFieldId() {
-
 
44669
        return _thriftId;
-
 
44670
      }
-
 
44671
 
-
 
44672
      public String getFieldName() {
-
 
44673
        return _fieldName;
-
 
44674
      }
-
 
44675
    }
-
 
44676
 
-
 
44677
    // isset id assignments
-
 
44678
 
-
 
44679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44680
    static {
-
 
44681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44682
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
44684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_result.class, metaDataMap);
-
 
44686
    }
-
 
44687
 
-
 
44688
    public addSourceItemPricing_result() {
-
 
44689
    }
-
 
44690
 
-
 
44691
    public addSourceItemPricing_result(
-
 
44692
      InventoryServiceException cex)
-
 
44693
    {
-
 
44694
      this();
-
 
44695
      this.cex = cex;
-
 
44696
    }
-
 
44697
 
-
 
44698
    /**
-
 
44699
     * Performs a deep copy on <i>other</i>.
-
 
44700
     */
-
 
44701
    public addSourceItemPricing_result(addSourceItemPricing_result other) {
-
 
44702
      if (other.isSetCex()) {
-
 
44703
        this.cex = new InventoryServiceException(other.cex);
-
 
44704
      }
-
 
44705
    }
-
 
44706
 
-
 
44707
    public addSourceItemPricing_result deepCopy() {
-
 
44708
      return new addSourceItemPricing_result(this);
-
 
44709
    }
-
 
44710
 
-
 
44711
    @Override
-
 
44712
    public void clear() {
-
 
44713
      this.cex = null;
-
 
44714
    }
-
 
44715
 
-
 
44716
    public InventoryServiceException getCex() {
-
 
44717
      return this.cex;
-
 
44718
    }
-
 
44719
 
-
 
44720
    public void setCex(InventoryServiceException cex) {
-
 
44721
      this.cex = cex;
-
 
44722
    }
-
 
44723
 
-
 
44724
    public void unsetCex() {
-
 
44725
      this.cex = null;
-
 
44726
    }
-
 
44727
 
-
 
44728
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
44729
    public boolean isSetCex() {
-
 
44730
      return this.cex != null;
-
 
44731
    }
-
 
44732
 
-
 
44733
    public void setCexIsSet(boolean value) {
-
 
44734
      if (!value) {
-
 
44735
        this.cex = null;
-
 
44736
      }
-
 
44737
    }
-
 
44738
 
-
 
44739
    public void setFieldValue(_Fields field, Object value) {
-
 
44740
      switch (field) {
-
 
44741
      case CEX:
-
 
44742
        if (value == null) {
-
 
44743
          unsetCex();
-
 
44744
        } else {
-
 
44745
          setCex((InventoryServiceException)value);
-
 
44746
        }
-
 
44747
        break;
-
 
44748
 
-
 
44749
      }
-
 
44750
    }
-
 
44751
 
-
 
44752
    public Object getFieldValue(_Fields field) {
-
 
44753
      switch (field) {
-
 
44754
      case CEX:
-
 
44755
        return getCex();
-
 
44756
 
-
 
44757
      }
-
 
44758
      throw new IllegalStateException();
-
 
44759
    }
-
 
44760
 
-
 
44761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
44762
    public boolean isSet(_Fields field) {
-
 
44763
      if (field == null) {
-
 
44764
        throw new IllegalArgumentException();
-
 
44765
      }
-
 
44766
 
-
 
44767
      switch (field) {
-
 
44768
      case CEX:
-
 
44769
        return isSetCex();
-
 
44770
      }
-
 
44771
      throw new IllegalStateException();
-
 
44772
    }
-
 
44773
 
-
 
44774
    @Override
-
 
44775
    public boolean equals(Object that) {
-
 
44776
      if (that == null)
-
 
44777
        return false;
-
 
44778
      if (that instanceof addSourceItemPricing_result)
-
 
44779
        return this.equals((addSourceItemPricing_result)that);
-
 
44780
      return false;
-
 
44781
    }
-
 
44782
 
-
 
44783
    public boolean equals(addSourceItemPricing_result that) {
-
 
44784
      if (that == null)
-
 
44785
        return false;
-
 
44786
 
-
 
44787
      boolean this_present_cex = true && this.isSetCex();
-
 
44788
      boolean that_present_cex = true && that.isSetCex();
-
 
44789
      if (this_present_cex || that_present_cex) {
-
 
44790
        if (!(this_present_cex && that_present_cex))
-
 
44791
          return false;
-
 
44792
        if (!this.cex.equals(that.cex))
-
 
44793
          return false;
-
 
44794
      }
-
 
44795
 
-
 
44796
      return true;
-
 
44797
    }
-
 
44798
 
-
 
44799
    @Override
-
 
44800
    public int hashCode() {
-
 
44801
      return 0;
-
 
44802
    }
-
 
44803
 
-
 
44804
    public int compareTo(addSourceItemPricing_result other) {
-
 
44805
      if (!getClass().equals(other.getClass())) {
-
 
44806
        return getClass().getName().compareTo(other.getClass().getName());
-
 
44807
      }
-
 
44808
 
-
 
44809
      int lastComparison = 0;
-
 
44810
      addSourceItemPricing_result typedOther = (addSourceItemPricing_result)other;
-
 
44811
 
-
 
44812
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
44813
      if (lastComparison != 0) {
-
 
44814
        return lastComparison;
-
 
44815
      }
-
 
44816
      if (isSetCex()) {
-
 
44817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
44818
        if (lastComparison != 0) {
-
 
44819
          return lastComparison;
-
 
44820
        }
-
 
44821
      }
-
 
44822
      return 0;
-
 
44823
    }
-
 
44824
 
-
 
44825
    public _Fields fieldForId(int fieldId) {
-
 
44826
      return _Fields.findByThriftId(fieldId);
-
 
44827
    }
-
 
44828
 
-
 
44829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
44830
      org.apache.thrift.protocol.TField field;
-
 
44831
      iprot.readStructBegin();
-
 
44832
      while (true)
-
 
44833
      {
-
 
44834
        field = iprot.readFieldBegin();
-
 
44835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
44836
          break;
-
 
44837
        }
-
 
44838
        switch (field.id) {
-
 
44839
          case 1: // CEX
-
 
44840
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
44841
              this.cex = new InventoryServiceException();
-
 
44842
              this.cex.read(iprot);
-
 
44843
            } else { 
-
 
44844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44845
            }
-
 
44846
            break;
-
 
44847
          default:
-
 
44848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44849
        }
-
 
44850
        iprot.readFieldEnd();
-
 
44851
      }
-
 
44852
      iprot.readStructEnd();
-
 
44853
      validate();
-
 
44854
    }
-
 
44855
 
-
 
44856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
44857
      oprot.writeStructBegin(STRUCT_DESC);
-
 
44858
 
-
 
44859
      if (this.isSetCex()) {
-
 
44860
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
44861
        this.cex.write(oprot);
-
 
44862
        oprot.writeFieldEnd();
-
 
44863
      }
-
 
44864
      oprot.writeFieldStop();
-
 
44865
      oprot.writeStructEnd();
-
 
44866
    }
-
 
44867
 
-
 
44868
    @Override
-
 
44869
    public String toString() {
-
 
44870
      StringBuilder sb = new StringBuilder("addSourceItemPricing_result(");
-
 
44871
      boolean first = true;
-
 
44872
 
-
 
44873
      sb.append("cex:");
-
 
44874
      if (this.cex == null) {
-
 
44875
        sb.append("null");
-
 
44876
      } else {
-
 
44877
        sb.append(this.cex);
-
 
44878
      }
-
 
44879
      first = false;
-
 
44880
      sb.append(")");
-
 
44881
      return sb.toString();
-
 
44882
    }
-
 
44883
 
-
 
44884
    public void validate() throws org.apache.thrift.TException {
-
 
44885
      // check for required fields
-
 
44886
    }
-
 
44887
 
-
 
44888
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
44889
      try {
-
 
44890
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
44891
      } catch (org.apache.thrift.TException te) {
-
 
44892
        throw new java.io.IOException(te);
-
 
44893
      }
-
 
44894
    }
-
 
44895
 
-
 
44896
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
44897
      try {
-
 
44898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
44899
      } catch (org.apache.thrift.TException te) {
-
 
44900
        throw new java.io.IOException(te);
-
 
44901
      }
-
 
44902
    }
-
 
44903
 
-
 
44904
  }
-
 
44905
 
-
 
44906
  public static class getAllSourcePricing_args implements org.apache.thrift.TBase<getAllSourcePricing_args, getAllSourcePricing_args._Fields>, java.io.Serializable, Cloneable   {
-
 
44907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_args");
-
 
44908
 
-
 
44909
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
44910
 
-
 
44911
    private long itemId; // required
-
 
44912
 
-
 
44913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
44914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
44915
      ITEM_ID((short)1, "itemId");
-
 
44916
 
-
 
44917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
44918
 
-
 
44919
      static {
-
 
44920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
44921
          byName.put(field.getFieldName(), field);
-
 
44922
        }
-
 
44923
      }
-
 
44924
 
-
 
44925
      /**
-
 
44926
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
44927
       */
-
 
44928
      public static _Fields findByThriftId(int fieldId) {
-
 
44929
        switch(fieldId) {
-
 
44930
          case 1: // ITEM_ID
-
 
44931
            return ITEM_ID;
-
 
44932
          default:
-
 
44933
            return null;
-
 
44934
        }
-
 
44935
      }
-
 
44936
 
-
 
44937
      /**
-
 
44938
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
44939
       * if it is not found.
-
 
44940
       */
-
 
44941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
44942
        _Fields fields = findByThriftId(fieldId);
-
 
44943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
44944
        return fields;
-
 
44945
      }
-
 
44946
 
-
 
44947
      /**
-
 
44948
       * Find the _Fields constant that matches name, or null if its not found.
-
 
44949
       */
-
 
44950
      public static _Fields findByName(String name) {
-
 
44951
        return byName.get(name);
-
 
44952
      }
-
 
44953
 
-
 
44954
      private final short _thriftId;
-
 
44955
      private final String _fieldName;
-
 
44956
 
-
 
44957
      _Fields(short thriftId, String fieldName) {
-
 
44958
        _thriftId = thriftId;
-
 
44959
        _fieldName = fieldName;
-
 
44960
      }
-
 
44961
 
-
 
44962
      public short getThriftFieldId() {
-
 
44963
        return _thriftId;
-
 
44964
      }
-
 
44965
 
-
 
44966
      public String getFieldName() {
-
 
44967
        return _fieldName;
-
 
44968
      }
-
 
44969
    }
-
 
44970
 
-
 
44971
    // isset id assignments
-
 
44972
    private static final int __ITEMID_ISSET_ID = 0;
-
 
44973
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
44974
 
-
 
44975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44976
    static {
-
 
44977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44978
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44979
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
44980
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44981
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_args.class, metaDataMap);
-
 
44982
    }
-
 
44983
 
-
 
44984
    public getAllSourcePricing_args() {
-
 
44985
    }
-
 
44986
 
-
 
44987
    public getAllSourcePricing_args(
-
 
44988
      long itemId)
-
 
44989
    {
-
 
44990
      this();
-
 
44991
      this.itemId = itemId;
-
 
44992
      setItemIdIsSet(true);
-
 
44993
    }
-
 
44994
 
-
 
44995
    /**
-
 
44996
     * Performs a deep copy on <i>other</i>.
-
 
44997
     */
-
 
44998
    public getAllSourcePricing_args(getAllSourcePricing_args other) {
-
 
44999
      __isset_bit_vector.clear();
-
 
45000
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45001
      this.itemId = other.itemId;
-
 
45002
    }
-
 
45003
 
-
 
45004
    public getAllSourcePricing_args deepCopy() {
-
 
45005
      return new getAllSourcePricing_args(this);
-
 
45006
    }
-
 
45007
 
-
 
45008
    @Override
-
 
45009
    public void clear() {
-
 
45010
      setItemIdIsSet(false);
-
 
45011
      this.itemId = 0;
-
 
45012
    }
-
 
45013
 
-
 
45014
    public long getItemId() {
-
 
45015
      return this.itemId;
-
 
45016
    }
-
 
45017
 
-
 
45018
    public void setItemId(long itemId) {
-
 
45019
      this.itemId = itemId;
-
 
45020
      setItemIdIsSet(true);
-
 
45021
    }
-
 
45022
 
-
 
45023
    public void unsetItemId() {
-
 
45024
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
45025
    }
-
 
45026
 
-
 
45027
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
45028
    public boolean isSetItemId() {
-
 
45029
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
45030
    }
-
 
45031
 
-
 
45032
    public void setItemIdIsSet(boolean value) {
-
 
45033
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
45034
    }
-
 
45035
 
-
 
45036
    public void setFieldValue(_Fields field, Object value) {
-
 
45037
      switch (field) {
-
 
45038
      case ITEM_ID:
-
 
45039
        if (value == null) {
-
 
45040
          unsetItemId();
-
 
45041
        } else {
-
 
45042
          setItemId((Long)value);
-
 
45043
        }
-
 
45044
        break;
-
 
45045
 
-
 
45046
      }
-
 
45047
    }
-
 
45048
 
-
 
45049
    public Object getFieldValue(_Fields field) {
-
 
45050
      switch (field) {
-
 
45051
      case ITEM_ID:
-
 
45052
        return Long.valueOf(getItemId());
-
 
45053
 
-
 
45054
      }
-
 
45055
      throw new IllegalStateException();
-
 
45056
    }
-
 
45057
 
-
 
45058
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45059
    public boolean isSet(_Fields field) {
-
 
45060
      if (field == null) {
-
 
45061
        throw new IllegalArgumentException();
-
 
45062
      }
-
 
45063
 
-
 
45064
      switch (field) {
-
 
45065
      case ITEM_ID:
-
 
45066
        return isSetItemId();
-
 
45067
      }
-
 
45068
      throw new IllegalStateException();
-
 
45069
    }
-
 
45070
 
-
 
45071
    @Override
-
 
45072
    public boolean equals(Object that) {
-
 
45073
      if (that == null)
-
 
45074
        return false;
-
 
45075
      if (that instanceof getAllSourcePricing_args)
-
 
45076
        return this.equals((getAllSourcePricing_args)that);
-
 
45077
      return false;
-
 
45078
    }
-
 
45079
 
-
 
45080
    public boolean equals(getAllSourcePricing_args that) {
-
 
45081
      if (that == null)
-
 
45082
        return false;
-
 
45083
 
-
 
45084
      boolean this_present_itemId = true;
-
 
45085
      boolean that_present_itemId = true;
-
 
45086
      if (this_present_itemId || that_present_itemId) {
-
 
45087
        if (!(this_present_itemId && that_present_itemId))
-
 
45088
          return false;
-
 
45089
        if (this.itemId != that.itemId)
-
 
45090
          return false;
-
 
45091
      }
-
 
45092
 
-
 
45093
      return true;
-
 
45094
    }
-
 
45095
 
-
 
45096
    @Override
-
 
45097
    public int hashCode() {
-
 
45098
      return 0;
-
 
45099
    }
-
 
45100
 
-
 
45101
    public int compareTo(getAllSourcePricing_args other) {
-
 
45102
      if (!getClass().equals(other.getClass())) {
-
 
45103
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45104
      }
-
 
45105
 
-
 
45106
      int lastComparison = 0;
-
 
45107
      getAllSourcePricing_args typedOther = (getAllSourcePricing_args)other;
-
 
45108
 
-
 
45109
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
45110
      if (lastComparison != 0) {
-
 
45111
        return lastComparison;
-
 
45112
      }
-
 
45113
      if (isSetItemId()) {
-
 
45114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
45115
        if (lastComparison != 0) {
-
 
45116
          return lastComparison;
-
 
45117
        }
-
 
45118
      }
-
 
45119
      return 0;
-
 
45120
    }
-
 
45121
 
-
 
45122
    public _Fields fieldForId(int fieldId) {
-
 
45123
      return _Fields.findByThriftId(fieldId);
-
 
45124
    }
-
 
45125
 
-
 
45126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45127
      org.apache.thrift.protocol.TField field;
-
 
45128
      iprot.readStructBegin();
-
 
45129
      while (true)
-
 
45130
      {
-
 
45131
        field = iprot.readFieldBegin();
-
 
45132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45133
          break;
-
 
45134
        }
-
 
45135
        switch (field.id) {
-
 
45136
          case 1: // ITEM_ID
-
 
45137
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45138
              this.itemId = iprot.readI64();
-
 
45139
              setItemIdIsSet(true);
-
 
45140
            } else { 
-
 
45141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45142
            }
-
 
45143
            break;
-
 
45144
          default:
-
 
45145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45146
        }
-
 
45147
        iprot.readFieldEnd();
-
 
45148
      }
-
 
45149
      iprot.readStructEnd();
-
 
45150
      validate();
-
 
45151
    }
-
 
45152
 
-
 
45153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45154
      validate();
-
 
45155
 
-
 
45156
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45157
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
45158
      oprot.writeI64(this.itemId);
-
 
45159
      oprot.writeFieldEnd();
-
 
45160
      oprot.writeFieldStop();
-
 
45161
      oprot.writeStructEnd();
-
 
45162
    }
-
 
45163
 
-
 
45164
    @Override
-
 
45165
    public String toString() {
-
 
45166
      StringBuilder sb = new StringBuilder("getAllSourcePricing_args(");
-
 
45167
      boolean first = true;
-
 
45168
 
-
 
45169
      sb.append("itemId:");
-
 
45170
      sb.append(this.itemId);
-
 
45171
      first = false;
-
 
45172
      sb.append(")");
-
 
45173
      return sb.toString();
-
 
45174
    }
-
 
45175
 
-
 
45176
    public void validate() throws org.apache.thrift.TException {
-
 
45177
      // check for required fields
-
 
45178
    }
-
 
45179
 
-
 
45180
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45181
      try {
-
 
45182
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45183
      } catch (org.apache.thrift.TException te) {
-
 
45184
        throw new java.io.IOException(te);
-
 
45185
      }
-
 
45186
    }
-
 
45187
 
-
 
45188
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45189
      try {
-
 
45190
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45191
      } catch (org.apache.thrift.TException te) {
-
 
45192
        throw new java.io.IOException(te);
-
 
45193
      }
-
 
45194
    }
-
 
45195
 
-
 
45196
  }
-
 
45197
 
-
 
45198
  public static class getAllSourcePricing_result implements org.apache.thrift.TBase<getAllSourcePricing_result, getAllSourcePricing_result._Fields>, java.io.Serializable, Cloneable   {
-
 
45199
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_result");
-
 
45200
 
-
 
45201
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
45202
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
45203
 
-
 
45204
    private List<SourceItemPricing> success; // required
-
 
45205
    private InventoryServiceException cex; // required
-
 
45206
 
-
 
45207
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45208
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45209
      SUCCESS((short)0, "success"),
-
 
45210
      CEX((short)1, "cex");
-
 
45211
 
-
 
45212
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45213
 
-
 
45214
      static {
-
 
45215
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45216
          byName.put(field.getFieldName(), field);
-
 
45217
        }
-
 
45218
      }
-
 
45219
 
-
 
45220
      /**
-
 
45221
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45222
       */
-
 
45223
      public static _Fields findByThriftId(int fieldId) {
-
 
45224
        switch(fieldId) {
-
 
45225
          case 0: // SUCCESS
-
 
45226
            return SUCCESS;
-
 
45227
          case 1: // CEX
-
 
45228
            return CEX;
-
 
45229
          default:
-
 
45230
            return null;
-
 
45231
        }
-
 
45232
      }
-
 
45233
 
-
 
45234
      /**
-
 
45235
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45236
       * if it is not found.
-
 
45237
       */
-
 
45238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45239
        _Fields fields = findByThriftId(fieldId);
-
 
45240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45241
        return fields;
-
 
45242
      }
-
 
45243
 
-
 
45244
      /**
-
 
45245
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45246
       */
-
 
45247
      public static _Fields findByName(String name) {
-
 
45248
        return byName.get(name);
-
 
45249
      }
-
 
45250
 
-
 
45251
      private final short _thriftId;
-
 
45252
      private final String _fieldName;
-
 
45253
 
-
 
45254
      _Fields(short thriftId, String fieldName) {
-
 
45255
        _thriftId = thriftId;
-
 
45256
        _fieldName = fieldName;
-
 
45257
      }
-
 
45258
 
-
 
45259
      public short getThriftFieldId() {
-
 
45260
        return _thriftId;
-
 
45261
      }
-
 
45262
 
-
 
45263
      public String getFieldName() {
-
 
45264
        return _fieldName;
-
 
45265
      }
-
 
45266
    }
-
 
45267
 
-
 
45268
    // isset id assignments
-
 
45269
 
-
 
45270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45271
    static {
-
 
45272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45273
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45274
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
45275
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class))));
-
 
45276
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
45278
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45279
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_result.class, metaDataMap);
-
 
45280
    }
-
 
45281
 
-
 
45282
    public getAllSourcePricing_result() {
-
 
45283
    }
-
 
45284
 
-
 
45285
    public getAllSourcePricing_result(
-
 
45286
      List<SourceItemPricing> success,
-
 
45287
      InventoryServiceException cex)
-
 
45288
    {
-
 
45289
      this();
-
 
45290
      this.success = success;
-
 
45291
      this.cex = cex;
-
 
45292
    }
-
 
45293
 
-
 
45294
    /**
-
 
45295
     * Performs a deep copy on <i>other</i>.
-
 
45296
     */
-
 
45297
    public getAllSourcePricing_result(getAllSourcePricing_result other) {
-
 
45298
      if (other.isSetSuccess()) {
-
 
45299
        List<SourceItemPricing> __this__success = new ArrayList<SourceItemPricing>();
-
 
45300
        for (SourceItemPricing other_element : other.success) {
-
 
45301
          __this__success.add(new SourceItemPricing(other_element));
-
 
45302
        }
-
 
45303
        this.success = __this__success;
-
 
45304
      }
-
 
45305
      if (other.isSetCex()) {
-
 
45306
        this.cex = new InventoryServiceException(other.cex);
-
 
45307
      }
-
 
45308
    }
-
 
45309
 
-
 
45310
    public getAllSourcePricing_result deepCopy() {
-
 
45311
      return new getAllSourcePricing_result(this);
-
 
45312
    }
-
 
45313
 
-
 
45314
    @Override
-
 
45315
    public void clear() {
-
 
45316
      this.success = null;
-
 
45317
      this.cex = null;
-
 
45318
    }
-
 
45319
 
-
 
45320
    public int getSuccessSize() {
-
 
45321
      return (this.success == null) ? 0 : this.success.size();
-
 
45322
    }
-
 
45323
 
-
 
45324
    public java.util.Iterator<SourceItemPricing> getSuccessIterator() {
-
 
45325
      return (this.success == null) ? null : this.success.iterator();
-
 
45326
    }
-
 
45327
 
-
 
45328
    public void addToSuccess(SourceItemPricing elem) {
-
 
45329
      if (this.success == null) {
-
 
45330
        this.success = new ArrayList<SourceItemPricing>();
-
 
45331
      }
-
 
45332
      this.success.add(elem);
-
 
45333
    }
-
 
45334
 
-
 
45335
    public List<SourceItemPricing> getSuccess() {
-
 
45336
      return this.success;
-
 
45337
    }
-
 
45338
 
-
 
45339
    public void setSuccess(List<SourceItemPricing> success) {
-
 
45340
      this.success = success;
-
 
45341
    }
-
 
45342
 
-
 
45343
    public void unsetSuccess() {
-
 
45344
      this.success = null;
-
 
45345
    }
-
 
45346
 
-
 
45347
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
45348
    public boolean isSetSuccess() {
-
 
45349
      return this.success != null;
-
 
45350
    }
-
 
45351
 
-
 
45352
    public void setSuccessIsSet(boolean value) {
-
 
45353
      if (!value) {
-
 
45354
        this.success = null;
-
 
45355
      }
-
 
45356
    }
-
 
45357
 
-
 
45358
    public InventoryServiceException getCex() {
-
 
45359
      return this.cex;
-
 
45360
    }
-
 
45361
 
-
 
45362
    public void setCex(InventoryServiceException cex) {
-
 
45363
      this.cex = cex;
-
 
45364
    }
-
 
45365
 
-
 
45366
    public void unsetCex() {
-
 
45367
      this.cex = null;
-
 
45368
    }
-
 
45369
 
-
 
45370
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
45371
    public boolean isSetCex() {
-
 
45372
      return this.cex != null;
-
 
45373
    }
-
 
45374
 
-
 
45375
    public void setCexIsSet(boolean value) {
-
 
45376
      if (!value) {
-
 
45377
        this.cex = null;
-
 
45378
      }
-
 
45379
    }
-
 
45380
 
-
 
45381
    public void setFieldValue(_Fields field, Object value) {
-
 
45382
      switch (field) {
-
 
45383
      case SUCCESS:
-
 
45384
        if (value == null) {
-
 
45385
          unsetSuccess();
-
 
45386
        } else {
-
 
45387
          setSuccess((List<SourceItemPricing>)value);
-
 
45388
        }
-
 
45389
        break;
-
 
45390
 
-
 
45391
      case CEX:
-
 
45392
        if (value == null) {
-
 
45393
          unsetCex();
-
 
45394
        } else {
-
 
45395
          setCex((InventoryServiceException)value);
-
 
45396
        }
-
 
45397
        break;
-
 
45398
 
-
 
45399
      }
-
 
45400
    }
-
 
45401
 
-
 
45402
    public Object getFieldValue(_Fields field) {
-
 
45403
      switch (field) {
-
 
45404
      case SUCCESS:
-
 
45405
        return getSuccess();
-
 
45406
 
-
 
45407
      case CEX:
-
 
45408
        return getCex();
-
 
45409
 
-
 
45410
      }
-
 
45411
      throw new IllegalStateException();
-
 
45412
    }
-
 
45413
 
-
 
45414
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45415
    public boolean isSet(_Fields field) {
-
 
45416
      if (field == null) {
-
 
45417
        throw new IllegalArgumentException();
-
 
45418
      }
-
 
45419
 
-
 
45420
      switch (field) {
-
 
45421
      case SUCCESS:
-
 
45422
        return isSetSuccess();
-
 
45423
      case CEX:
-
 
45424
        return isSetCex();
-
 
45425
      }
-
 
45426
      throw new IllegalStateException();
-
 
45427
    }
-
 
45428
 
-
 
45429
    @Override
-
 
45430
    public boolean equals(Object that) {
-
 
45431
      if (that == null)
-
 
45432
        return false;
-
 
45433
      if (that instanceof getAllSourcePricing_result)
-
 
45434
        return this.equals((getAllSourcePricing_result)that);
-
 
45435
      return false;
-
 
45436
    }
-
 
45437
 
-
 
45438
    public boolean equals(getAllSourcePricing_result that) {
-
 
45439
      if (that == null)
-
 
45440
        return false;
-
 
45441
 
-
 
45442
      boolean this_present_success = true && this.isSetSuccess();
-
 
45443
      boolean that_present_success = true && that.isSetSuccess();
-
 
45444
      if (this_present_success || that_present_success) {
-
 
45445
        if (!(this_present_success && that_present_success))
-
 
45446
          return false;
-
 
45447
        if (!this.success.equals(that.success))
-
 
45448
          return false;
-
 
45449
      }
-
 
45450
 
-
 
45451
      boolean this_present_cex = true && this.isSetCex();
-
 
45452
      boolean that_present_cex = true && that.isSetCex();
-
 
45453
      if (this_present_cex || that_present_cex) {
-
 
45454
        if (!(this_present_cex && that_present_cex))
-
 
45455
          return false;
-
 
45456
        if (!this.cex.equals(that.cex))
-
 
45457
          return false;
-
 
45458
      }
-
 
45459
 
-
 
45460
      return true;
-
 
45461
    }
-
 
45462
 
-
 
45463
    @Override
-
 
45464
    public int hashCode() {
-
 
45465
      return 0;
-
 
45466
    }
-
 
45467
 
-
 
45468
    public int compareTo(getAllSourcePricing_result other) {
-
 
45469
      if (!getClass().equals(other.getClass())) {
-
 
45470
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45471
      }
-
 
45472
 
-
 
45473
      int lastComparison = 0;
-
 
45474
      getAllSourcePricing_result typedOther = (getAllSourcePricing_result)other;
-
 
45475
 
-
 
45476
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
45477
      if (lastComparison != 0) {
-
 
45478
        return lastComparison;
-
 
45479
      }
-
 
45480
      if (isSetSuccess()) {
-
 
45481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
45482
        if (lastComparison != 0) {
-
 
45483
          return lastComparison;
-
 
45484
        }
-
 
45485
      }
-
 
45486
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
45487
      if (lastComparison != 0) {
-
 
45488
        return lastComparison;
-
 
45489
      }
-
 
45490
      if (isSetCex()) {
-
 
45491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
45492
        if (lastComparison != 0) {
-
 
45493
          return lastComparison;
-
 
45494
        }
-
 
45495
      }
-
 
45496
      return 0;
-
 
45497
    }
-
 
45498
 
-
 
45499
    public _Fields fieldForId(int fieldId) {
-
 
45500
      return _Fields.findByThriftId(fieldId);
-
 
45501
    }
-
 
45502
 
-
 
45503
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45504
      org.apache.thrift.protocol.TField field;
-
 
45505
      iprot.readStructBegin();
-
 
45506
      while (true)
-
 
45507
      {
-
 
45508
        field = iprot.readFieldBegin();
-
 
45509
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45510
          break;
-
 
45511
        }
-
 
45512
        switch (field.id) {
-
 
45513
          case 0: // SUCCESS
-
 
45514
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
45515
              {
-
 
45516
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
-
 
45517
                this.success = new ArrayList<SourceItemPricing>(_list116.size);
-
 
45518
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
-
 
45519
                {
-
 
45520
                  SourceItemPricing _elem118; // required
-
 
45521
                  _elem118 = new SourceItemPricing();
-
 
45522
                  _elem118.read(iprot);
-
 
45523
                  this.success.add(_elem118);
-
 
45524
                }
-
 
45525
                iprot.readListEnd();
-
 
45526
              }
-
 
45527
            } else { 
-
 
45528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45529
            }
-
 
45530
            break;
-
 
45531
          case 1: // CEX
-
 
45532
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
45533
              this.cex = new InventoryServiceException();
-
 
45534
              this.cex.read(iprot);
-
 
45535
            } else { 
-
 
45536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45537
            }
-
 
45538
            break;
-
 
45539
          default:
-
 
45540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45541
        }
-
 
45542
        iprot.readFieldEnd();
-
 
45543
      }
-
 
45544
      iprot.readStructEnd();
-
 
45545
      validate();
-
 
45546
    }
-
 
45547
 
-
 
45548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45549
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45550
 
-
 
45551
      if (this.isSetSuccess()) {
-
 
45552
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
45553
        {
-
 
45554
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
45555
          for (SourceItemPricing _iter119 : this.success)
-
 
45556
          {
-
 
45557
            _iter119.write(oprot);
-
 
45558
          }
-
 
45559
          oprot.writeListEnd();
-
 
45560
        }
-
 
45561
        oprot.writeFieldEnd();
-
 
45562
      } else if (this.isSetCex()) {
-
 
45563
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
45564
        this.cex.write(oprot);
-
 
45565
        oprot.writeFieldEnd();
-
 
45566
      }
-
 
45567
      oprot.writeFieldStop();
-
 
45568
      oprot.writeStructEnd();
-
 
45569
    }
-
 
45570
 
-
 
45571
    @Override
-
 
45572
    public String toString() {
-
 
45573
      StringBuilder sb = new StringBuilder("getAllSourcePricing_result(");
-
 
45574
      boolean first = true;
-
 
45575
 
-
 
45576
      sb.append("success:");
-
 
45577
      if (this.success == null) {
-
 
45578
        sb.append("null");
-
 
45579
      } else {
-
 
45580
        sb.append(this.success);
-
 
45581
      }
-
 
45582
      first = false;
-
 
45583
      if (!first) sb.append(", ");
-
 
45584
      sb.append("cex:");
-
 
45585
      if (this.cex == null) {
-
 
45586
        sb.append("null");
-
 
45587
      } else {
-
 
45588
        sb.append(this.cex);
-
 
45589
      }
-
 
45590
      first = false;
-
 
45591
      sb.append(")");
-
 
45592
      return sb.toString();
-
 
45593
    }
-
 
45594
 
-
 
45595
    public void validate() throws org.apache.thrift.TException {
-
 
45596
      // check for required fields
-
 
45597
    }
-
 
45598
 
-
 
45599
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45600
      try {
-
 
45601
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45602
      } catch (org.apache.thrift.TException te) {
-
 
45603
        throw new java.io.IOException(te);
-
 
45604
      }
-
 
45605
    }
-
 
45606
 
-
 
45607
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45608
      try {
-
 
45609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45610
      } catch (org.apache.thrift.TException te) {
-
 
45611
        throw new java.io.IOException(te);
-
 
45612
      }
-
 
45613
    }
-
 
45614
 
-
 
45615
  }
-
 
45616
 
-
 
45617
  public static class getItemForSource_args implements org.apache.thrift.TBase<getItemForSource_args, getItemForSource_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_args");
-
 
45619
 
-
 
45620
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
45621
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
45622
 
-
 
45623
    private long item_id; // required
-
 
45624
    private long sourceId; // required
-
 
45625
 
-
 
45626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45628
      ITEM_ID((short)1, "item_id"),
-
 
45629
      SOURCE_ID((short)2, "sourceId");
-
 
45630
 
-
 
45631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45632
 
-
 
45633
      static {
-
 
45634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45635
          byName.put(field.getFieldName(), field);
-
 
45636
        }
-
 
45637
      }
-
 
45638
 
-
 
45639
      /**
-
 
45640
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45641
       */
-
 
45642
      public static _Fields findByThriftId(int fieldId) {
-
 
45643
        switch(fieldId) {
-
 
45644
          case 1: // ITEM_ID
-
 
45645
            return ITEM_ID;
-
 
45646
          case 2: // SOURCE_ID
-
 
45647
            return SOURCE_ID;
-
 
45648
          default:
-
 
45649
            return null;
-
 
45650
        }
-
 
45651
      }
-
 
45652
 
-
 
45653
      /**
-
 
45654
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45655
       * if it is not found.
-
 
45656
       */
-
 
45657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45658
        _Fields fields = findByThriftId(fieldId);
-
 
45659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45660
        return fields;
-
 
45661
      }
-
 
45662
 
-
 
45663
      /**
-
 
45664
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45665
       */
-
 
45666
      public static _Fields findByName(String name) {
-
 
45667
        return byName.get(name);
-
 
45668
      }
-
 
45669
 
-
 
45670
      private final short _thriftId;
-
 
45671
      private final String _fieldName;
-
 
45672
 
-
 
45673
      _Fields(short thriftId, String fieldName) {
-
 
45674
        _thriftId = thriftId;
-
 
45675
        _fieldName = fieldName;
-
 
45676
      }
-
 
45677
 
-
 
45678
      public short getThriftFieldId() {
-
 
45679
        return _thriftId;
-
 
45680
      }
-
 
45681
 
-
 
45682
      public String getFieldName() {
-
 
45683
        return _fieldName;
-
 
45684
      }
-
 
45685
    }
-
 
45686
 
-
 
45687
    // isset id assignments
-
 
45688
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
45689
    private static final int __SOURCEID_ISSET_ID = 1;
-
 
45690
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
45691
 
-
 
45692
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45693
    static {
-
 
45694
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45695
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45697
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45699
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45700
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_args.class, metaDataMap);
-
 
45701
    }
-
 
45702
 
-
 
45703
    public getItemForSource_args() {
-
 
45704
    }
-
 
45705
 
-
 
45706
    public getItemForSource_args(
-
 
45707
      long item_id,
-
 
45708
      long sourceId)
-
 
45709
    {
-
 
45710
      this();
-
 
45711
      this.item_id = item_id;
-
 
45712
      setItem_idIsSet(true);
-
 
45713
      this.sourceId = sourceId;
-
 
45714
      setSourceIdIsSet(true);
-
 
45715
    }
-
 
45716
 
-
 
45717
    /**
-
 
45718
     * Performs a deep copy on <i>other</i>.
-
 
45719
     */
-
 
45720
    public getItemForSource_args(getItemForSource_args other) {
-
 
45721
      __isset_bit_vector.clear();
-
 
45722
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45723
      this.item_id = other.item_id;
-
 
45724
      this.sourceId = other.sourceId;
-
 
45725
    }
-
 
45726
 
-
 
45727
    public getItemForSource_args deepCopy() {
-
 
45728
      return new getItemForSource_args(this);
-
 
45729
    }
-
 
45730
 
-
 
45731
    @Override
-
 
45732
    public void clear() {
-
 
45733
      setItem_idIsSet(false);
-
 
45734
      this.item_id = 0;
-
 
45735
      setSourceIdIsSet(false);
-
 
45736
      this.sourceId = 0;
-
 
45737
    }
-
 
45738
 
-
 
45739
    public long getItem_id() {
-
 
45740
      return this.item_id;
-
 
45741
    }
-
 
45742
 
-
 
45743
    public void setItem_id(long item_id) {
-
 
45744
      this.item_id = item_id;
-
 
45745
      setItem_idIsSet(true);
-
 
45746
    }
-
 
45747
 
-
 
45748
    public void unsetItem_id() {
-
 
45749
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
45750
    }
-
 
45751
 
-
 
45752
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
45753
    public boolean isSetItem_id() {
-
 
45754
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
45755
    }
-
 
45756
 
-
 
45757
    public void setItem_idIsSet(boolean value) {
-
 
45758
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
45759
    }
-
 
45760
 
-
 
45761
    public long getSourceId() {
-
 
45762
      return this.sourceId;
-
 
45763
    }
-
 
45764
 
-
 
45765
    public void setSourceId(long sourceId) {
-
 
45766
      this.sourceId = sourceId;
-
 
45767
      setSourceIdIsSet(true);
-
 
45768
    }
-
 
45769
 
-
 
45770
    public void unsetSourceId() {
-
 
45771
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
45772
    }
-
 
45773
 
-
 
45774
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
45775
    public boolean isSetSourceId() {
-
 
45776
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
45777
    }
-
 
45778
 
-
 
45779
    public void setSourceIdIsSet(boolean value) {
-
 
45780
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
45781
    }
-
 
45782
 
-
 
45783
    public void setFieldValue(_Fields field, Object value) {
-
 
45784
      switch (field) {
-
 
45785
      case ITEM_ID:
-
 
45786
        if (value == null) {
-
 
45787
          unsetItem_id();
-
 
45788
        } else {
-
 
45789
          setItem_id((Long)value);
-
 
45790
        }
-
 
45791
        break;
-
 
45792
 
-
 
45793
      case SOURCE_ID:
-
 
45794
        if (value == null) {
-
 
45795
          unsetSourceId();
-
 
45796
        } else {
-
 
45797
          setSourceId((Long)value);
-
 
45798
        }
-
 
45799
        break;
-
 
45800
 
-
 
45801
      }
-
 
45802
    }
-
 
45803
 
-
 
45804
    public Object getFieldValue(_Fields field) {
-
 
45805
      switch (field) {
-
 
45806
      case ITEM_ID:
-
 
45807
        return Long.valueOf(getItem_id());
-
 
45808
 
-
 
45809
      case SOURCE_ID:
-
 
45810
        return Long.valueOf(getSourceId());
-
 
45811
 
-
 
45812
      }
-
 
45813
      throw new IllegalStateException();
-
 
45814
    }
-
 
45815
 
-
 
45816
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45817
    public boolean isSet(_Fields field) {
-
 
45818
      if (field == null) {
-
 
45819
        throw new IllegalArgumentException();
-
 
45820
      }
-
 
45821
 
-
 
45822
      switch (field) {
-
 
45823
      case ITEM_ID:
-
 
45824
        return isSetItem_id();
-
 
45825
      case SOURCE_ID:
-
 
45826
        return isSetSourceId();
-
 
45827
      }
-
 
45828
      throw new IllegalStateException();
-
 
45829
    }
-
 
45830
 
-
 
45831
    @Override
-
 
45832
    public boolean equals(Object that) {
-
 
45833
      if (that == null)
-
 
45834
        return false;
-
 
45835
      if (that instanceof getItemForSource_args)
-
 
45836
        return this.equals((getItemForSource_args)that);
-
 
45837
      return false;
-
 
45838
    }
-
 
45839
 
-
 
45840
    public boolean equals(getItemForSource_args that) {
-
 
45841
      if (that == null)
-
 
45842
        return false;
-
 
45843
 
-
 
45844
      boolean this_present_item_id = true;
-
 
45845
      boolean that_present_item_id = true;
-
 
45846
      if (this_present_item_id || that_present_item_id) {
-
 
45847
        if (!(this_present_item_id && that_present_item_id))
-
 
45848
          return false;
-
 
45849
        if (this.item_id != that.item_id)
-
 
45850
          return false;
-
 
45851
      }
-
 
45852
 
-
 
45853
      boolean this_present_sourceId = true;
-
 
45854
      boolean that_present_sourceId = true;
-
 
45855
      if (this_present_sourceId || that_present_sourceId) {
-
 
45856
        if (!(this_present_sourceId && that_present_sourceId))
-
 
45857
          return false;
-
 
45858
        if (this.sourceId != that.sourceId)
-
 
45859
          return false;
-
 
45860
      }
-
 
45861
 
-
 
45862
      return true;
-
 
45863
    }
-
 
45864
 
-
 
45865
    @Override
-
 
45866
    public int hashCode() {
-
 
45867
      return 0;
-
 
45868
    }
-
 
45869
 
-
 
45870
    public int compareTo(getItemForSource_args other) {
-
 
45871
      if (!getClass().equals(other.getClass())) {
-
 
45872
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45873
      }
-
 
45874
 
-
 
45875
      int lastComparison = 0;
-
 
45876
      getItemForSource_args typedOther = (getItemForSource_args)other;
-
 
45877
 
-
 
45878
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
45879
      if (lastComparison != 0) {
-
 
45880
        return lastComparison;
-
 
45881
      }
-
 
45882
      if (isSetItem_id()) {
-
 
45883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
45884
        if (lastComparison != 0) {
-
 
45885
          return lastComparison;
-
 
45886
        }
-
 
45887
      }
-
 
45888
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
45889
      if (lastComparison != 0) {
-
 
45890
        return lastComparison;
-
 
45891
      }
-
 
45892
      if (isSetSourceId()) {
-
 
45893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
45894
        if (lastComparison != 0) {
-
 
45895
          return lastComparison;
-
 
45896
        }
-
 
45897
      }
-
 
45898
      return 0;
-
 
45899
    }
-
 
45900
 
-
 
45901
    public _Fields fieldForId(int fieldId) {
-
 
45902
      return _Fields.findByThriftId(fieldId);
-
 
45903
    }
-
 
45904
 
-
 
45905
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45906
      org.apache.thrift.protocol.TField field;
-
 
45907
      iprot.readStructBegin();
-
 
45908
      while (true)
-
 
45909
      {
-
 
45910
        field = iprot.readFieldBegin();
-
 
45911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45912
          break;
-
 
45913
        }
-
 
45914
        switch (field.id) {
-
 
45915
          case 1: // ITEM_ID
-
 
45916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45917
              this.item_id = iprot.readI64();
-
 
45918
              setItem_idIsSet(true);
-
 
45919
            } else { 
-
 
45920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45921
            }
-
 
45922
            break;
-
 
45923
          case 2: // SOURCE_ID
-
 
45924
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45925
              this.sourceId = iprot.readI64();
-
 
45926
              setSourceIdIsSet(true);
-
 
45927
            } else { 
-
 
45928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45929
            }
-
 
45930
            break;
-
 
45931
          default:
-
 
45932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45933
        }
-
 
45934
        iprot.readFieldEnd();
-
 
45935
      }
-
 
45936
      iprot.readStructEnd();
-
 
45937
      validate();
-
 
45938
    }
-
 
45939
 
-
 
45940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45941
      validate();
-
 
45942
 
-
 
45943
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45944
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
45945
      oprot.writeI64(this.item_id);
-
 
45946
      oprot.writeFieldEnd();
-
 
45947
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
45948
      oprot.writeI64(this.sourceId);
-
 
45949
      oprot.writeFieldEnd();
-
 
45950
      oprot.writeFieldStop();
-
 
45951
      oprot.writeStructEnd();
-
 
45952
    }
-
 
45953
 
-
 
45954
    @Override
-
 
45955
    public String toString() {
-
 
45956
      StringBuilder sb = new StringBuilder("getItemForSource_args(");
-
 
45957
      boolean first = true;
-
 
45958
 
-
 
45959
      sb.append("item_id:");
-
 
45960
      sb.append(this.item_id);
-
 
45961
      first = false;
-
 
45962
      if (!first) sb.append(", ");
-
 
45963
      sb.append("sourceId:");
-
 
45964
      sb.append(this.sourceId);
-
 
45965
      first = false;
-
 
45966
      sb.append(")");
-
 
45967
      return sb.toString();
-
 
45968
    }
-
 
45969
 
-
 
45970
    public void validate() throws org.apache.thrift.TException {
-
 
45971
      // check for required fields
-
 
45972
    }
-
 
45973
 
-
 
45974
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45975
      try {
-
 
45976
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45977
      } catch (org.apache.thrift.TException te) {
-
 
45978
        throw new java.io.IOException(te);
-
 
45979
      }
-
 
45980
    }
-
 
45981
 
-
 
45982
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45983
      try {
-
 
45984
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45985
      } catch (org.apache.thrift.TException te) {
-
 
45986
        throw new java.io.IOException(te);
-
 
45987
      }
-
 
45988
    }
-
 
45989
 
-
 
45990
  }
-
 
45991
 
-
 
45992
  public static class getItemForSource_result implements org.apache.thrift.TBase<getItemForSource_result, getItemForSource_result._Fields>, java.io.Serializable, Cloneable   {
-
 
45993
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_result");
-
 
45994
 
-
 
45995
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
45996
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
45997
 
-
 
45998
    private Item success; // required
-
 
45999
    private InventoryServiceException cex; // required
-
 
46000
 
-
 
46001
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46002
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46003
      SUCCESS((short)0, "success"),
-
 
46004
      CEX((short)1, "cex");
-
 
46005
 
-
 
46006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46007
 
-
 
46008
      static {
-
 
46009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46010
          byName.put(field.getFieldName(), field);
-
 
46011
        }
-
 
46012
      }
-
 
46013
 
-
 
46014
      /**
-
 
46015
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46016
       */
-
 
46017
      public static _Fields findByThriftId(int fieldId) {
-
 
46018
        switch(fieldId) {
-
 
46019
          case 0: // SUCCESS
-
 
46020
            return SUCCESS;
-
 
46021
          case 1: // CEX
-
 
46022
            return CEX;
-
 
46023
          default:
-
 
46024
            return null;
-
 
46025
        }
-
 
46026
      }
-
 
46027
 
-
 
46028
      /**
-
 
46029
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46030
       * if it is not found.
-
 
46031
       */
-
 
46032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46033
        _Fields fields = findByThriftId(fieldId);
-
 
46034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46035
        return fields;
-
 
46036
      }
-
 
46037
 
-
 
46038
      /**
-
 
46039
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46040
       */
-
 
46041
      public static _Fields findByName(String name) {
-
 
46042
        return byName.get(name);
-
 
46043
      }
-
 
46044
 
-
 
46045
      private final short _thriftId;
-
 
46046
      private final String _fieldName;
-
 
46047
 
-
 
46048
      _Fields(short thriftId, String fieldName) {
-
 
46049
        _thriftId = thriftId;
-
 
46050
        _fieldName = fieldName;
-
 
46051
      }
-
 
46052
 
-
 
46053
      public short getThriftFieldId() {
-
 
46054
        return _thriftId;
-
 
46055
      }
-
 
46056
 
-
 
46057
      public String getFieldName() {
-
 
46058
        return _fieldName;
-
 
46059
      }
-
 
46060
    }
-
 
46061
 
-
 
46062
    // isset id assignments
-
 
46063
 
-
 
46064
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46065
    static {
-
 
46066
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46067
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46068
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
-
 
46069
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
46071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_result.class, metaDataMap);
-
 
46073
    }
-
 
46074
 
-
 
46075
    public getItemForSource_result() {
-
 
46076
    }
-
 
46077
 
-
 
46078
    public getItemForSource_result(
-
 
46079
      Item success,
-
 
46080
      InventoryServiceException cex)
-
 
46081
    {
-
 
46082
      this();
-
 
46083
      this.success = success;
-
 
46084
      this.cex = cex;
-
 
46085
    }
-
 
46086
 
-
 
46087
    /**
-
 
46088
     * Performs a deep copy on <i>other</i>.
-
 
46089
     */
-
 
46090
    public getItemForSource_result(getItemForSource_result other) {
-
 
46091
      if (other.isSetSuccess()) {
-
 
46092
        this.success = new Item(other.success);
-
 
46093
      }
-
 
46094
      if (other.isSetCex()) {
-
 
46095
        this.cex = new InventoryServiceException(other.cex);
-
 
46096
      }
-
 
46097
    }
-
 
46098
 
-
 
46099
    public getItemForSource_result deepCopy() {
-
 
46100
      return new getItemForSource_result(this);
-
 
46101
    }
-
 
46102
 
-
 
46103
    @Override
-
 
46104
    public void clear() {
-
 
46105
      this.success = null;
-
 
46106
      this.cex = null;
-
 
46107
    }
-
 
46108
 
-
 
46109
    public Item getSuccess() {
-
 
46110
      return this.success;
-
 
46111
    }
-
 
46112
 
-
 
46113
    public void setSuccess(Item success) {
-
 
46114
      this.success = success;
-
 
46115
    }
-
 
46116
 
-
 
46117
    public void unsetSuccess() {
-
 
46118
      this.success = null;
-
 
46119
    }
-
 
46120
 
-
 
46121
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
46122
    public boolean isSetSuccess() {
-
 
46123
      return this.success != null;
-
 
46124
    }
-
 
46125
 
-
 
46126
    public void setSuccessIsSet(boolean value) {
-
 
46127
      if (!value) {
-
 
46128
        this.success = null;
-
 
46129
      }
-
 
46130
    }
-
 
46131
 
-
 
46132
    public InventoryServiceException getCex() {
-
 
46133
      return this.cex;
-
 
46134
    }
-
 
46135
 
-
 
46136
    public void setCex(InventoryServiceException cex) {
-
 
46137
      this.cex = cex;
-
 
46138
    }
-
 
46139
 
-
 
46140
    public void unsetCex() {
-
 
46141
      this.cex = null;
-
 
46142
    }
-
 
46143
 
-
 
46144
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
46145
    public boolean isSetCex() {
-
 
46146
      return this.cex != null;
-
 
46147
    }
-
 
46148
 
-
 
46149
    public void setCexIsSet(boolean value) {
-
 
46150
      if (!value) {
-
 
46151
        this.cex = null;
-
 
46152
      }
-
 
46153
    }
-
 
46154
 
-
 
46155
    public void setFieldValue(_Fields field, Object value) {
-
 
46156
      switch (field) {
-
 
46157
      case SUCCESS:
-
 
46158
        if (value == null) {
-
 
46159
          unsetSuccess();
-
 
46160
        } else {
-
 
46161
          setSuccess((Item)value);
-
 
46162
        }
-
 
46163
        break;
-
 
46164
 
-
 
46165
      case CEX:
-
 
46166
        if (value == null) {
-
 
46167
          unsetCex();
-
 
46168
        } else {
-
 
46169
          setCex((InventoryServiceException)value);
-
 
46170
        }
-
 
46171
        break;
-
 
46172
 
-
 
46173
      }
-
 
46174
    }
-
 
46175
 
-
 
46176
    public Object getFieldValue(_Fields field) {
-
 
46177
      switch (field) {
-
 
46178
      case SUCCESS:
-
 
46179
        return getSuccess();
-
 
46180
 
-
 
46181
      case CEX:
-
 
46182
        return getCex();
-
 
46183
 
-
 
46184
      }
-
 
46185
      throw new IllegalStateException();
-
 
46186
    }
-
 
46187
 
-
 
46188
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46189
    public boolean isSet(_Fields field) {
-
 
46190
      if (field == null) {
-
 
46191
        throw new IllegalArgumentException();
-
 
46192
      }
-
 
46193
 
-
 
46194
      switch (field) {
-
 
46195
      case SUCCESS:
-
 
46196
        return isSetSuccess();
-
 
46197
      case CEX:
-
 
46198
        return isSetCex();
-
 
46199
      }
-
 
46200
      throw new IllegalStateException();
-
 
46201
    }
-
 
46202
 
-
 
46203
    @Override
-
 
46204
    public boolean equals(Object that) {
-
 
46205
      if (that == null)
-
 
46206
        return false;
-
 
46207
      if (that instanceof getItemForSource_result)
-
 
46208
        return this.equals((getItemForSource_result)that);
-
 
46209
      return false;
-
 
46210
    }
-
 
46211
 
-
 
46212
    public boolean equals(getItemForSource_result that) {
-
 
46213
      if (that == null)
-
 
46214
        return false;
-
 
46215
 
-
 
46216
      boolean this_present_success = true && this.isSetSuccess();
-
 
46217
      boolean that_present_success = true && that.isSetSuccess();
-
 
46218
      if (this_present_success || that_present_success) {
-
 
46219
        if (!(this_present_success && that_present_success))
-
 
46220
          return false;
-
 
46221
        if (!this.success.equals(that.success))
-
 
46222
          return false;
-
 
46223
      }
-
 
46224
 
-
 
46225
      boolean this_present_cex = true && this.isSetCex();
-
 
46226
      boolean that_present_cex = true && that.isSetCex();
-
 
46227
      if (this_present_cex || that_present_cex) {
-
 
46228
        if (!(this_present_cex && that_present_cex))
-
 
46229
          return false;
-
 
46230
        if (!this.cex.equals(that.cex))
-
 
46231
          return false;
-
 
46232
      }
-
 
46233
 
-
 
46234
      return true;
-
 
46235
    }
-
 
46236
 
-
 
46237
    @Override
-
 
46238
    public int hashCode() {
-
 
46239
      return 0;
-
 
46240
    }
-
 
46241
 
-
 
46242
    public int compareTo(getItemForSource_result other) {
-
 
46243
      if (!getClass().equals(other.getClass())) {
-
 
46244
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46245
      }
-
 
46246
 
-
 
46247
      int lastComparison = 0;
-
 
46248
      getItemForSource_result typedOther = (getItemForSource_result)other;
-
 
46249
 
-
 
46250
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
46251
      if (lastComparison != 0) {
-
 
46252
        return lastComparison;
-
 
46253
      }
-
 
46254
      if (isSetSuccess()) {
-
 
46255
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
46256
        if (lastComparison != 0) {
-
 
46257
          return lastComparison;
-
 
46258
        }
-
 
46259
      }
-
 
46260
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
46261
      if (lastComparison != 0) {
-
 
46262
        return lastComparison;
-
 
46263
      }
-
 
46264
      if (isSetCex()) {
-
 
46265
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
46266
        if (lastComparison != 0) {
-
 
46267
          return lastComparison;
-
 
46268
        }
-
 
46269
      }
-
 
46270
      return 0;
-
 
46271
    }
-
 
46272
 
-
 
46273
    public _Fields fieldForId(int fieldId) {
-
 
46274
      return _Fields.findByThriftId(fieldId);
-
 
46275
    }
-
 
46276
 
-
 
46277
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46278
      org.apache.thrift.protocol.TField field;
-
 
46279
      iprot.readStructBegin();
-
 
46280
      while (true)
-
 
46281
      {
-
 
46282
        field = iprot.readFieldBegin();
-
 
46283
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46284
          break;
-
 
46285
        }
-
 
46286
        switch (field.id) {
-
 
46287
          case 0: // SUCCESS
-
 
46288
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46289
              this.success = new Item();
-
 
46290
              this.success.read(iprot);
-
 
46291
            } else { 
-
 
46292
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46293
            }
-
 
46294
            break;
-
 
46295
          case 1: // CEX
-
 
46296
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46297
              this.cex = new InventoryServiceException();
-
 
46298
              this.cex.read(iprot);
-
 
46299
            } else { 
-
 
46300
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46301
            }
-
 
46302
            break;
-
 
46303
          default:
-
 
46304
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46305
        }
-
 
46306
        iprot.readFieldEnd();
-
 
46307
      }
-
 
46308
      iprot.readStructEnd();
-
 
46309
      validate();
-
 
46310
    }
-
 
46311
 
-
 
46312
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46313
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46314
 
-
 
46315
      if (this.isSetSuccess()) {
-
 
46316
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
46317
        this.success.write(oprot);
-
 
46318
        oprot.writeFieldEnd();
-
 
46319
      } else if (this.isSetCex()) {
-
 
46320
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
46321
        this.cex.write(oprot);
-
 
46322
        oprot.writeFieldEnd();
-
 
46323
      }
-
 
46324
      oprot.writeFieldStop();
-
 
46325
      oprot.writeStructEnd();
-
 
46326
    }
-
 
46327
 
-
 
46328
    @Override
-
 
46329
    public String toString() {
-
 
46330
      StringBuilder sb = new StringBuilder("getItemForSource_result(");
-
 
46331
      boolean first = true;
-
 
46332
 
-
 
46333
      sb.append("success:");
-
 
46334
      if (this.success == null) {
-
 
46335
        sb.append("null");
-
 
46336
      } else {
-
 
46337
        sb.append(this.success);
-
 
46338
      }
-
 
46339
      first = false;
-
 
46340
      if (!first) sb.append(", ");
-
 
46341
      sb.append("cex:");
-
 
46342
      if (this.cex == null) {
-
 
46343
        sb.append("null");
-
 
46344
      } else {
-
 
46345
        sb.append(this.cex);
-
 
46346
      }
-
 
46347
      first = false;
-
 
46348
      sb.append(")");
-
 
46349
      return sb.toString();
-
 
46350
    }
42570
 
46351
 
42571
    public void validate() throws org.apache.thrift.TException {
46352
    public void validate() throws org.apache.thrift.TException {
42572
      // check for required fields
46353
      // check for required fields
42573
    }
46354
    }
42574
 
46355