Subversion Repositories SmartDukaan

Rev

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

Rev 8241 Rev 8282
Line 1025... Line 1025...
1025
 
1025
 
1026
    public void updateOrderForEbay(Order order) throws org.apache.thrift.TException;
1026
    public void updateOrderForEbay(Order order) throws org.apache.thrift.TException;
1027
 
1027
 
1028
    public Order splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip) throws org.apache.thrift.TException;
1028
    public Order splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip) throws org.apache.thrift.TException;
1029
 
1029
 
-
 
1030
    public void addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot) throws org.apache.thrift.TException;
-
 
1031
 
-
 
1032
    public List<AmazonFbaSalesSnapshot> getAmazonFbaSalesSnapshotForDays(int days) throws org.apache.thrift.TException;
-
 
1033
 
-
 
1034
    public AmazonFbaSalesSnapshot getAmazonFbaSalesLatestSnapshotForItem(long item_id) throws org.apache.thrift.TException;
-
 
1035
 
1030
  }
1036
  }
1031
 
1037
 
1032
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1038
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1033
 
1039
 
1034
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1040
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1439... Line 1445...
1439
 
1445
 
1440
    public void updateOrderForEbay(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderForEbay_call> resultHandler) throws org.apache.thrift.TException;
1446
    public void updateOrderForEbay(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderForEbay_call> resultHandler) throws org.apache.thrift.TException;
1441
 
1447
 
1442
    public void splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitEbayOrder_call> resultHandler) throws org.apache.thrift.TException;
1448
    public void splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitEbayOrder_call> resultHandler) throws org.apache.thrift.TException;
1443
 
1449
 
-
 
1450
    public void addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonFbaSalesSnapshot_call> resultHandler) throws org.apache.thrift.TException;
-
 
1451
 
-
 
1452
    public void getAmazonFbaSalesSnapshotForDays(int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaSalesSnapshotForDays_call> resultHandler) throws org.apache.thrift.TException;
-
 
1453
 
-
 
1454
    public void getAmazonFbaSalesLatestSnapshotForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaSalesLatestSnapshotForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
1455
 
1444
  }
1456
  }
1445
 
1457
 
1446
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1458
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1447
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1459
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1448
      public Factory() {}
1460
      public Factory() {}
Line 6542... Line 6554...
6542
        return result.success;
6554
        return result.success;
6543
      }
6555
      }
6544
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "splitEbayOrder failed: unknown result");
6556
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "splitEbayOrder failed: unknown result");
6545
    }
6557
    }
6546
 
6558
 
-
 
6559
    public void addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot) throws org.apache.thrift.TException
-
 
6560
    {
-
 
6561
      send_addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
-
 
6562
      recv_addOrUpdateAmazonFbaSalesSnapshot();
-
 
6563
    }
-
 
6564
 
-
 
6565
    public void send_addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot) throws org.apache.thrift.TException
-
 
6566
    {
-
 
6567
      addOrUpdateAmazonFbaSalesSnapshot_args args = new addOrUpdateAmazonFbaSalesSnapshot_args();
-
 
6568
      args.setAmazonfbasalessnapshot(amazonfbasalessnapshot);
-
 
6569
      sendBase("addOrUpdateAmazonFbaSalesSnapshot", args);
-
 
6570
    }
-
 
6571
 
-
 
6572
    public void recv_addOrUpdateAmazonFbaSalesSnapshot() throws org.apache.thrift.TException
-
 
6573
    {
-
 
6574
      addOrUpdateAmazonFbaSalesSnapshot_result result = new addOrUpdateAmazonFbaSalesSnapshot_result();
-
 
6575
      receiveBase(result, "addOrUpdateAmazonFbaSalesSnapshot");
-
 
6576
      return;
-
 
6577
    }
-
 
6578
 
-
 
6579
    public List<AmazonFbaSalesSnapshot> getAmazonFbaSalesSnapshotForDays(int days) throws org.apache.thrift.TException
-
 
6580
    {
-
 
6581
      send_getAmazonFbaSalesSnapshotForDays(days);
-
 
6582
      return recv_getAmazonFbaSalesSnapshotForDays();
-
 
6583
    }
-
 
6584
 
-
 
6585
    public void send_getAmazonFbaSalesSnapshotForDays(int days) throws org.apache.thrift.TException
-
 
6586
    {
-
 
6587
      getAmazonFbaSalesSnapshotForDays_args args = new getAmazonFbaSalesSnapshotForDays_args();
-
 
6588
      args.setDays(days);
-
 
6589
      sendBase("getAmazonFbaSalesSnapshotForDays", args);
-
 
6590
    }
-
 
6591
 
-
 
6592
    public List<AmazonFbaSalesSnapshot> recv_getAmazonFbaSalesSnapshotForDays() throws org.apache.thrift.TException
-
 
6593
    {
-
 
6594
      getAmazonFbaSalesSnapshotForDays_result result = new getAmazonFbaSalesSnapshotForDays_result();
-
 
6595
      receiveBase(result, "getAmazonFbaSalesSnapshotForDays");
-
 
6596
      if (result.isSetSuccess()) {
-
 
6597
        return result.success;
-
 
6598
      }
-
 
6599
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaSalesSnapshotForDays failed: unknown result");
-
 
6600
    }
-
 
6601
 
-
 
6602
    public AmazonFbaSalesSnapshot getAmazonFbaSalesLatestSnapshotForItem(long item_id) throws org.apache.thrift.TException
-
 
6603
    {
-
 
6604
      send_getAmazonFbaSalesLatestSnapshotForItem(item_id);
-
 
6605
      return recv_getAmazonFbaSalesLatestSnapshotForItem();
-
 
6606
    }
-
 
6607
 
-
 
6608
    public void send_getAmazonFbaSalesLatestSnapshotForItem(long item_id) throws org.apache.thrift.TException
-
 
6609
    {
-
 
6610
      getAmazonFbaSalesLatestSnapshotForItem_args args = new getAmazonFbaSalesLatestSnapshotForItem_args();
-
 
6611
      args.setItem_id(item_id);
-
 
6612
      sendBase("getAmazonFbaSalesLatestSnapshotForItem", args);
-
 
6613
    }
-
 
6614
 
-
 
6615
    public AmazonFbaSalesSnapshot recv_getAmazonFbaSalesLatestSnapshotForItem() throws org.apache.thrift.TException
-
 
6616
    {
-
 
6617
      getAmazonFbaSalesLatestSnapshotForItem_result result = new getAmazonFbaSalesLatestSnapshotForItem_result();
-
 
6618
      receiveBase(result, "getAmazonFbaSalesLatestSnapshotForItem");
-
 
6619
      if (result.isSetSuccess()) {
-
 
6620
        return result.success;
-
 
6621
      }
-
 
6622
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaSalesLatestSnapshotForItem failed: unknown result");
-
 
6623
    }
-
 
6624
 
6547
  }
6625
  }
6548
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6626
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6549
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6627
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6550
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6628
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6551
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6629
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 13696... Line 13774...
13696
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13697
        return (new Client(prot)).recv_splitEbayOrder();
13775
        return (new Client(prot)).recv_splitEbayOrder();
13698
      }
13776
      }
13699
    }
13777
    }
13700
 
13778
 
-
 
13779
    public void addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaSalesSnapshot_call> resultHandler) throws org.apache.thrift.TException {
-
 
13780
      checkReady();
-
 
13781
      addOrUpdateAmazonFbaSalesSnapshot_call method_call = new addOrUpdateAmazonFbaSalesSnapshot_call(amazonfbasalessnapshot, resultHandler, this, ___protocolFactory, ___transport);
-
 
13782
      this.___currentMethod = method_call;
-
 
13783
      ___manager.call(method_call);
-
 
13784
    }
-
 
13785
 
-
 
13786
    public static class addOrUpdateAmazonFbaSalesSnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13787
      private AmazonFbaSalesSnapshot amazonfbasalessnapshot;
-
 
13788
      public addOrUpdateAmazonFbaSalesSnapshot_call(AmazonFbaSalesSnapshot amazonfbasalessnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaSalesSnapshot_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 {
-
 
13789
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13790
        this.amazonfbasalessnapshot = amazonfbasalessnapshot;
-
 
13791
      }
-
 
13792
 
-
 
13793
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13794
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonFbaSalesSnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13795
        addOrUpdateAmazonFbaSalesSnapshot_args args = new addOrUpdateAmazonFbaSalesSnapshot_args();
-
 
13796
        args.setAmazonfbasalessnapshot(amazonfbasalessnapshot);
-
 
13797
        args.write(prot);
-
 
13798
        prot.writeMessageEnd();
-
 
13799
      }
-
 
13800
 
-
 
13801
      public void getResult() throws org.apache.thrift.TException {
-
 
13802
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13803
          throw new IllegalStateException("Method call not finished!");
-
 
13804
        }
-
 
13805
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13806
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13807
        (new Client(prot)).recv_addOrUpdateAmazonFbaSalesSnapshot();
-
 
13808
      }
-
 
13809
    }
-
 
13810
 
-
 
13811
    public void getAmazonFbaSalesSnapshotForDays(int days, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaSalesSnapshotForDays_call> resultHandler) throws org.apache.thrift.TException {
-
 
13812
      checkReady();
-
 
13813
      getAmazonFbaSalesSnapshotForDays_call method_call = new getAmazonFbaSalesSnapshotForDays_call(days, resultHandler, this, ___protocolFactory, ___transport);
-
 
13814
      this.___currentMethod = method_call;
-
 
13815
      ___manager.call(method_call);
-
 
13816
    }
-
 
13817
 
-
 
13818
    public static class getAmazonFbaSalesSnapshotForDays_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13819
      private int days;
-
 
13820
      public getAmazonFbaSalesSnapshotForDays_call(int days, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaSalesSnapshotForDays_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 {
-
 
13821
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13822
        this.days = days;
-
 
13823
      }
-
 
13824
 
-
 
13825
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13826
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonFbaSalesSnapshotForDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13827
        getAmazonFbaSalesSnapshotForDays_args args = new getAmazonFbaSalesSnapshotForDays_args();
-
 
13828
        args.setDays(days);
-
 
13829
        args.write(prot);
-
 
13830
        prot.writeMessageEnd();
-
 
13831
      }
-
 
13832
 
-
 
13833
      public List<AmazonFbaSalesSnapshot> getResult() throws org.apache.thrift.TException {
-
 
13834
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13835
          throw new IllegalStateException("Method call not finished!");
-
 
13836
        }
-
 
13837
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13838
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13839
        return (new Client(prot)).recv_getAmazonFbaSalesSnapshotForDays();
-
 
13840
      }
-
 
13841
    }
-
 
13842
 
-
 
13843
    public void getAmazonFbaSalesLatestSnapshotForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaSalesLatestSnapshotForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
13844
      checkReady();
-
 
13845
      getAmazonFbaSalesLatestSnapshotForItem_call method_call = new getAmazonFbaSalesLatestSnapshotForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
13846
      this.___currentMethod = method_call;
-
 
13847
      ___manager.call(method_call);
-
 
13848
    }
-
 
13849
 
-
 
13850
    public static class getAmazonFbaSalesLatestSnapshotForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13851
      private long item_id;
-
 
13852
      public getAmazonFbaSalesLatestSnapshotForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaSalesLatestSnapshotForItem_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 {
-
 
13853
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13854
        this.item_id = item_id;
-
 
13855
      }
-
 
13856
 
-
 
13857
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13858
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonFbaSalesLatestSnapshotForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13859
        getAmazonFbaSalesLatestSnapshotForItem_args args = new getAmazonFbaSalesLatestSnapshotForItem_args();
-
 
13860
        args.setItem_id(item_id);
-
 
13861
        args.write(prot);
-
 
13862
        prot.writeMessageEnd();
-
 
13863
      }
-
 
13864
 
-
 
13865
      public AmazonFbaSalesSnapshot getResult() throws org.apache.thrift.TException {
-
 
13866
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13867
          throw new IllegalStateException("Method call not finished!");
-
 
13868
        }
-
 
13869
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13870
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13871
        return (new Client(prot)).recv_getAmazonFbaSalesLatestSnapshotForItem();
-
 
13872
      }
-
 
13873
    }
-
 
13874
 
13701
  }
13875
  }
13702
 
13876
 
13703
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13877
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13704
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13878
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13705
    public Processor(I iface) {
13879
    public Processor(I iface) {
Line 13914... Line 14088...
13914
      processMap.put("getEbayOrder", new getEbayOrder());
14088
      processMap.put("getEbayOrder", new getEbayOrder());
13915
      processMap.put("updateEbayOrder", new updateEbayOrder());
14089
      processMap.put("updateEbayOrder", new updateEbayOrder());
13916
      processMap.put("ebayOrderExists", new ebayOrderExists());
14090
      processMap.put("ebayOrderExists", new ebayOrderExists());
13917
      processMap.put("updateOrderForEbay", new updateOrderForEbay());
14091
      processMap.put("updateOrderForEbay", new updateOrderForEbay());
13918
      processMap.put("splitEbayOrder", new splitEbayOrder());
14092
      processMap.put("splitEbayOrder", new splitEbayOrder());
-
 
14093
      processMap.put("addOrUpdateAmazonFbaSalesSnapshot", new addOrUpdateAmazonFbaSalesSnapshot());
-
 
14094
      processMap.put("getAmazonFbaSalesSnapshotForDays", new getAmazonFbaSalesSnapshotForDays());
-
 
14095
      processMap.put("getAmazonFbaSalesLatestSnapshotForItem", new getAmazonFbaSalesLatestSnapshotForItem());
13919
      return processMap;
14096
      return processMap;
13920
    }
14097
    }
13921
 
14098
 
13922
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14099
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13923
      public createTransaction() {
14100
      public createTransaction() {
Line 17646... Line 17823...
17646
        result.success = iface.splitEbayOrder(args.orderId, args.splitOrderQty, args.splitOrderItemId, args.usePowerShip);
17823
        result.success = iface.splitEbayOrder(args.orderId, args.splitOrderQty, args.splitOrderItemId, args.usePowerShip);
17647
        return result;
17824
        return result;
17648
      }
17825
      }
17649
    }
17826
    }
17650
 
17827
 
-
 
17828
    private static class addOrUpdateAmazonFbaSalesSnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonFbaSalesSnapshot_args> {
-
 
17829
      public addOrUpdateAmazonFbaSalesSnapshot() {
-
 
17830
        super("addOrUpdateAmazonFbaSalesSnapshot");
-
 
17831
      }
-
 
17832
 
-
 
17833
      protected addOrUpdateAmazonFbaSalesSnapshot_args getEmptyArgsInstance() {
-
 
17834
        return new addOrUpdateAmazonFbaSalesSnapshot_args();
-
 
17835
      }
-
 
17836
 
-
 
17837
      protected addOrUpdateAmazonFbaSalesSnapshot_result getResult(I iface, addOrUpdateAmazonFbaSalesSnapshot_args args) throws org.apache.thrift.TException {
-
 
17838
        addOrUpdateAmazonFbaSalesSnapshot_result result = new addOrUpdateAmazonFbaSalesSnapshot_result();
-
 
17839
        iface.addOrUpdateAmazonFbaSalesSnapshot(args.amazonfbasalessnapshot);
-
 
17840
        return result;
-
 
17841
      }
-
 
17842
    }
-
 
17843
 
-
 
17844
    private static class getAmazonFbaSalesSnapshotForDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonFbaSalesSnapshotForDays_args> {
-
 
17845
      public getAmazonFbaSalesSnapshotForDays() {
-
 
17846
        super("getAmazonFbaSalesSnapshotForDays");
-
 
17847
      }
-
 
17848
 
-
 
17849
      protected getAmazonFbaSalesSnapshotForDays_args getEmptyArgsInstance() {
-
 
17850
        return new getAmazonFbaSalesSnapshotForDays_args();
-
 
17851
      }
-
 
17852
 
-
 
17853
      protected getAmazonFbaSalesSnapshotForDays_result getResult(I iface, getAmazonFbaSalesSnapshotForDays_args args) throws org.apache.thrift.TException {
-
 
17854
        getAmazonFbaSalesSnapshotForDays_result result = new getAmazonFbaSalesSnapshotForDays_result();
-
 
17855
        result.success = iface.getAmazonFbaSalesSnapshotForDays(args.days);
-
 
17856
        return result;
-
 
17857
      }
-
 
17858
    }
-
 
17859
 
-
 
17860
    private static class getAmazonFbaSalesLatestSnapshotForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonFbaSalesLatestSnapshotForItem_args> {
-
 
17861
      public getAmazonFbaSalesLatestSnapshotForItem() {
-
 
17862
        super("getAmazonFbaSalesLatestSnapshotForItem");
-
 
17863
      }
-
 
17864
 
-
 
17865
      protected getAmazonFbaSalesLatestSnapshotForItem_args getEmptyArgsInstance() {
-
 
17866
        return new getAmazonFbaSalesLatestSnapshotForItem_args();
-
 
17867
      }
-
 
17868
 
-
 
17869
      protected getAmazonFbaSalesLatestSnapshotForItem_result getResult(I iface, getAmazonFbaSalesLatestSnapshotForItem_args args) throws org.apache.thrift.TException {
-
 
17870
        getAmazonFbaSalesLatestSnapshotForItem_result result = new getAmazonFbaSalesLatestSnapshotForItem_result();
-
 
17871
        result.success = iface.getAmazonFbaSalesLatestSnapshotForItem(args.item_id);
-
 
17872
        return result;
-
 
17873
      }
-
 
17874
    }
-
 
17875
 
17651
  }
17876
  }
17652
 
17877
 
17653
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
17878
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
17654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
17879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
17655
 
17880
 
Line 163517... Line 163742...
163517
      boolean first = true;
163742
      boolean first = true;
163518
 
163743
 
163519
      sb.append("success:");
163744
      sb.append("success:");
163520
      if (this.success == null) {
163745
      if (this.success == null) {
163521
        sb.append("null");
163746
        sb.append("null");
-
 
163747
      } else {
-
 
163748
        sb.append(this.success);
-
 
163749
      }
-
 
163750
      first = false;
-
 
163751
      sb.append(")");
-
 
163752
      return sb.toString();
-
 
163753
    }
-
 
163754
 
-
 
163755
    public void validate() throws org.apache.thrift.TException {
-
 
163756
      // check for required fields
-
 
163757
    }
-
 
163758
 
-
 
163759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
163760
      try {
-
 
163761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
163762
      } catch (org.apache.thrift.TException te) {
-
 
163763
        throw new java.io.IOException(te);
-
 
163764
      }
-
 
163765
    }
-
 
163766
 
-
 
163767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
163768
      try {
-
 
163769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
163770
      } catch (org.apache.thrift.TException te) {
-
 
163771
        throw new java.io.IOException(te);
-
 
163772
      }
-
 
163773
    }
-
 
163774
 
-
 
163775
  }
-
 
163776
 
-
 
163777
  public static class addOrUpdateAmazonFbaSalesSnapshot_args implements org.apache.thrift.TBase<addOrUpdateAmazonFbaSalesSnapshot_args, addOrUpdateAmazonFbaSalesSnapshot_args._Fields>, java.io.Serializable, Cloneable   {
-
 
163778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaSalesSnapshot_args");
-
 
163779
 
-
 
163780
    private static final org.apache.thrift.protocol.TField AMAZONFBASALESSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonfbasalessnapshot", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
163781
 
-
 
163782
    private AmazonFbaSalesSnapshot amazonfbasalessnapshot; // required
-
 
163783
 
-
 
163784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
163785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
163786
      AMAZONFBASALESSNAPSHOT((short)1, "amazonfbasalessnapshot");
-
 
163787
 
-
 
163788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
163789
 
-
 
163790
      static {
-
 
163791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
163792
          byName.put(field.getFieldName(), field);
-
 
163793
        }
-
 
163794
      }
-
 
163795
 
-
 
163796
      /**
-
 
163797
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
163798
       */
-
 
163799
      public static _Fields findByThriftId(int fieldId) {
-
 
163800
        switch(fieldId) {
-
 
163801
          case 1: // AMAZONFBASALESSNAPSHOT
-
 
163802
            return AMAZONFBASALESSNAPSHOT;
-
 
163803
          default:
-
 
163804
            return null;
-
 
163805
        }
-
 
163806
      }
-
 
163807
 
-
 
163808
      /**
-
 
163809
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
163810
       * if it is not found.
-
 
163811
       */
-
 
163812
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
163813
        _Fields fields = findByThriftId(fieldId);
-
 
163814
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
163815
        return fields;
-
 
163816
      }
-
 
163817
 
-
 
163818
      /**
-
 
163819
       * Find the _Fields constant that matches name, or null if its not found.
-
 
163820
       */
-
 
163821
      public static _Fields findByName(String name) {
-
 
163822
        return byName.get(name);
-
 
163823
      }
-
 
163824
 
-
 
163825
      private final short _thriftId;
-
 
163826
      private final String _fieldName;
-
 
163827
 
-
 
163828
      _Fields(short thriftId, String fieldName) {
-
 
163829
        _thriftId = thriftId;
-
 
163830
        _fieldName = fieldName;
-
 
163831
      }
-
 
163832
 
-
 
163833
      public short getThriftFieldId() {
-
 
163834
        return _thriftId;
-
 
163835
      }
-
 
163836
 
-
 
163837
      public String getFieldName() {
-
 
163838
        return _fieldName;
-
 
163839
      }
-
 
163840
    }
-
 
163841
 
-
 
163842
    // isset id assignments
-
 
163843
 
-
 
163844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
163845
    static {
-
 
163846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
163847
      tmpMap.put(_Fields.AMAZONFBASALESSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonfbasalessnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
163848
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaSalesSnapshot.class)));
-
 
163849
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
163850
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaSalesSnapshot_args.class, metaDataMap);
-
 
163851
    }
-
 
163852
 
-
 
163853
    public addOrUpdateAmazonFbaSalesSnapshot_args() {
-
 
163854
    }
-
 
163855
 
-
 
163856
    public addOrUpdateAmazonFbaSalesSnapshot_args(
-
 
163857
      AmazonFbaSalesSnapshot amazonfbasalessnapshot)
-
 
163858
    {
-
 
163859
      this();
-
 
163860
      this.amazonfbasalessnapshot = amazonfbasalessnapshot;
-
 
163861
    }
-
 
163862
 
-
 
163863
    /**
-
 
163864
     * Performs a deep copy on <i>other</i>.
-
 
163865
     */
-
 
163866
    public addOrUpdateAmazonFbaSalesSnapshot_args(addOrUpdateAmazonFbaSalesSnapshot_args other) {
-
 
163867
      if (other.isSetAmazonfbasalessnapshot()) {
-
 
163868
        this.amazonfbasalessnapshot = new AmazonFbaSalesSnapshot(other.amazonfbasalessnapshot);
-
 
163869
      }
-
 
163870
    }
-
 
163871
 
-
 
163872
    public addOrUpdateAmazonFbaSalesSnapshot_args deepCopy() {
-
 
163873
      return new addOrUpdateAmazonFbaSalesSnapshot_args(this);
-
 
163874
    }
-
 
163875
 
-
 
163876
    @Override
-
 
163877
    public void clear() {
-
 
163878
      this.amazonfbasalessnapshot = null;
-
 
163879
    }
-
 
163880
 
-
 
163881
    public AmazonFbaSalesSnapshot getAmazonfbasalessnapshot() {
-
 
163882
      return this.amazonfbasalessnapshot;
-
 
163883
    }
-
 
163884
 
-
 
163885
    public void setAmazonfbasalessnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot) {
-
 
163886
      this.amazonfbasalessnapshot = amazonfbasalessnapshot;
-
 
163887
    }
-
 
163888
 
-
 
163889
    public void unsetAmazonfbasalessnapshot() {
-
 
163890
      this.amazonfbasalessnapshot = null;
-
 
163891
    }
-
 
163892
 
-
 
163893
    /** Returns true if field amazonfbasalessnapshot is set (has been assigned a value) and false otherwise */
-
 
163894
    public boolean isSetAmazonfbasalessnapshot() {
-
 
163895
      return this.amazonfbasalessnapshot != null;
-
 
163896
    }
-
 
163897
 
-
 
163898
    public void setAmazonfbasalessnapshotIsSet(boolean value) {
-
 
163899
      if (!value) {
-
 
163900
        this.amazonfbasalessnapshot = null;
-
 
163901
      }
-
 
163902
    }
-
 
163903
 
-
 
163904
    public void setFieldValue(_Fields field, Object value) {
-
 
163905
      switch (field) {
-
 
163906
      case AMAZONFBASALESSNAPSHOT:
-
 
163907
        if (value == null) {
-
 
163908
          unsetAmazonfbasalessnapshot();
-
 
163909
        } else {
-
 
163910
          setAmazonfbasalessnapshot((AmazonFbaSalesSnapshot)value);
-
 
163911
        }
-
 
163912
        break;
-
 
163913
 
-
 
163914
      }
-
 
163915
    }
-
 
163916
 
-
 
163917
    public Object getFieldValue(_Fields field) {
-
 
163918
      switch (field) {
-
 
163919
      case AMAZONFBASALESSNAPSHOT:
-
 
163920
        return getAmazonfbasalessnapshot();
-
 
163921
 
-
 
163922
      }
-
 
163923
      throw new IllegalStateException();
-
 
163924
    }
-
 
163925
 
-
 
163926
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
163927
    public boolean isSet(_Fields field) {
-
 
163928
      if (field == null) {
-
 
163929
        throw new IllegalArgumentException();
-
 
163930
      }
-
 
163931
 
-
 
163932
      switch (field) {
-
 
163933
      case AMAZONFBASALESSNAPSHOT:
-
 
163934
        return isSetAmazonfbasalessnapshot();
-
 
163935
      }
-
 
163936
      throw new IllegalStateException();
-
 
163937
    }
-
 
163938
 
-
 
163939
    @Override
-
 
163940
    public boolean equals(Object that) {
-
 
163941
      if (that == null)
-
 
163942
        return false;
-
 
163943
      if (that instanceof addOrUpdateAmazonFbaSalesSnapshot_args)
-
 
163944
        return this.equals((addOrUpdateAmazonFbaSalesSnapshot_args)that);
-
 
163945
      return false;
-
 
163946
    }
-
 
163947
 
-
 
163948
    public boolean equals(addOrUpdateAmazonFbaSalesSnapshot_args that) {
-
 
163949
      if (that == null)
-
 
163950
        return false;
-
 
163951
 
-
 
163952
      boolean this_present_amazonfbasalessnapshot = true && this.isSetAmazonfbasalessnapshot();
-
 
163953
      boolean that_present_amazonfbasalessnapshot = true && that.isSetAmazonfbasalessnapshot();
-
 
163954
      if (this_present_amazonfbasalessnapshot || that_present_amazonfbasalessnapshot) {
-
 
163955
        if (!(this_present_amazonfbasalessnapshot && that_present_amazonfbasalessnapshot))
-
 
163956
          return false;
-
 
163957
        if (!this.amazonfbasalessnapshot.equals(that.amazonfbasalessnapshot))
-
 
163958
          return false;
-
 
163959
      }
-
 
163960
 
-
 
163961
      return true;
-
 
163962
    }
-
 
163963
 
-
 
163964
    @Override
-
 
163965
    public int hashCode() {
-
 
163966
      return 0;
-
 
163967
    }
-
 
163968
 
-
 
163969
    public int compareTo(addOrUpdateAmazonFbaSalesSnapshot_args other) {
-
 
163970
      if (!getClass().equals(other.getClass())) {
-
 
163971
        return getClass().getName().compareTo(other.getClass().getName());
-
 
163972
      }
-
 
163973
 
-
 
163974
      int lastComparison = 0;
-
 
163975
      addOrUpdateAmazonFbaSalesSnapshot_args typedOther = (addOrUpdateAmazonFbaSalesSnapshot_args)other;
-
 
163976
 
-
 
163977
      lastComparison = Boolean.valueOf(isSetAmazonfbasalessnapshot()).compareTo(typedOther.isSetAmazonfbasalessnapshot());
-
 
163978
      if (lastComparison != 0) {
-
 
163979
        return lastComparison;
-
 
163980
      }
-
 
163981
      if (isSetAmazonfbasalessnapshot()) {
-
 
163982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonfbasalessnapshot, typedOther.amazonfbasalessnapshot);
-
 
163983
        if (lastComparison != 0) {
-
 
163984
          return lastComparison;
-
 
163985
        }
-
 
163986
      }
-
 
163987
      return 0;
-
 
163988
    }
-
 
163989
 
-
 
163990
    public _Fields fieldForId(int fieldId) {
-
 
163991
      return _Fields.findByThriftId(fieldId);
-
 
163992
    }
-
 
163993
 
-
 
163994
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
163995
      org.apache.thrift.protocol.TField field;
-
 
163996
      iprot.readStructBegin();
-
 
163997
      while (true)
-
 
163998
      {
-
 
163999
        field = iprot.readFieldBegin();
-
 
164000
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
164001
          break;
-
 
164002
        }
-
 
164003
        switch (field.id) {
-
 
164004
          case 1: // AMAZONFBASALESSNAPSHOT
-
 
164005
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
164006
              this.amazonfbasalessnapshot = new AmazonFbaSalesSnapshot();
-
 
164007
              this.amazonfbasalessnapshot.read(iprot);
-
 
164008
            } else { 
-
 
164009
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164010
            }
-
 
164011
            break;
-
 
164012
          default:
-
 
164013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164014
        }
-
 
164015
        iprot.readFieldEnd();
-
 
164016
      }
-
 
164017
      iprot.readStructEnd();
-
 
164018
      validate();
-
 
164019
    }
-
 
164020
 
-
 
164021
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
164022
      validate();
-
 
164023
 
-
 
164024
      oprot.writeStructBegin(STRUCT_DESC);
-
 
164025
      if (this.amazonfbasalessnapshot != null) {
-
 
164026
        oprot.writeFieldBegin(AMAZONFBASALESSNAPSHOT_FIELD_DESC);
-
 
164027
        this.amazonfbasalessnapshot.write(oprot);
-
 
164028
        oprot.writeFieldEnd();
-
 
164029
      }
-
 
164030
      oprot.writeFieldStop();
-
 
164031
      oprot.writeStructEnd();
-
 
164032
    }
-
 
164033
 
-
 
164034
    @Override
-
 
164035
    public String toString() {
-
 
164036
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaSalesSnapshot_args(");
-
 
164037
      boolean first = true;
-
 
164038
 
-
 
164039
      sb.append("amazonfbasalessnapshot:");
-
 
164040
      if (this.amazonfbasalessnapshot == null) {
-
 
164041
        sb.append("null");
-
 
164042
      } else {
-
 
164043
        sb.append(this.amazonfbasalessnapshot);
-
 
164044
      }
-
 
164045
      first = false;
-
 
164046
      sb.append(")");
-
 
164047
      return sb.toString();
-
 
164048
    }
-
 
164049
 
-
 
164050
    public void validate() throws org.apache.thrift.TException {
-
 
164051
      // check for required fields
-
 
164052
    }
-
 
164053
 
-
 
164054
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
164055
      try {
-
 
164056
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
164057
      } catch (org.apache.thrift.TException te) {
-
 
164058
        throw new java.io.IOException(te);
-
 
164059
      }
-
 
164060
    }
-
 
164061
 
-
 
164062
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
164063
      try {
-
 
164064
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
164065
      } catch (org.apache.thrift.TException te) {
-
 
164066
        throw new java.io.IOException(te);
-
 
164067
      }
-
 
164068
    }
-
 
164069
 
-
 
164070
  }
-
 
164071
 
-
 
164072
  public static class addOrUpdateAmazonFbaSalesSnapshot_result implements org.apache.thrift.TBase<addOrUpdateAmazonFbaSalesSnapshot_result, addOrUpdateAmazonFbaSalesSnapshot_result._Fields>, java.io.Serializable, Cloneable   {
-
 
164073
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaSalesSnapshot_result");
-
 
164074
 
-
 
164075
 
-
 
164076
 
-
 
164077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
164078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
164079
;
-
 
164080
 
-
 
164081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
164082
 
-
 
164083
      static {
-
 
164084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
164085
          byName.put(field.getFieldName(), field);
-
 
164086
        }
-
 
164087
      }
-
 
164088
 
-
 
164089
      /**
-
 
164090
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
164091
       */
-
 
164092
      public static _Fields findByThriftId(int fieldId) {
-
 
164093
        switch(fieldId) {
-
 
164094
          default:
-
 
164095
            return null;
-
 
164096
        }
-
 
164097
      }
-
 
164098
 
-
 
164099
      /**
-
 
164100
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
164101
       * if it is not found.
-
 
164102
       */
-
 
164103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
164104
        _Fields fields = findByThriftId(fieldId);
-
 
164105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
164106
        return fields;
-
 
164107
      }
-
 
164108
 
-
 
164109
      /**
-
 
164110
       * Find the _Fields constant that matches name, or null if its not found.
-
 
164111
       */
-
 
164112
      public static _Fields findByName(String name) {
-
 
164113
        return byName.get(name);
-
 
164114
      }
-
 
164115
 
-
 
164116
      private final short _thriftId;
-
 
164117
      private final String _fieldName;
-
 
164118
 
-
 
164119
      _Fields(short thriftId, String fieldName) {
-
 
164120
        _thriftId = thriftId;
-
 
164121
        _fieldName = fieldName;
-
 
164122
      }
-
 
164123
 
-
 
164124
      public short getThriftFieldId() {
-
 
164125
        return _thriftId;
-
 
164126
      }
-
 
164127
 
-
 
164128
      public String getFieldName() {
-
 
164129
        return _fieldName;
-
 
164130
      }
-
 
164131
    }
-
 
164132
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
164133
    static {
-
 
164134
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
164135
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
164136
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaSalesSnapshot_result.class, metaDataMap);
-
 
164137
    }
-
 
164138
 
-
 
164139
    public addOrUpdateAmazonFbaSalesSnapshot_result() {
-
 
164140
    }
-
 
164141
 
-
 
164142
    /**
-
 
164143
     * Performs a deep copy on <i>other</i>.
-
 
164144
     */
-
 
164145
    public addOrUpdateAmazonFbaSalesSnapshot_result(addOrUpdateAmazonFbaSalesSnapshot_result other) {
-
 
164146
    }
-
 
164147
 
-
 
164148
    public addOrUpdateAmazonFbaSalesSnapshot_result deepCopy() {
-
 
164149
      return new addOrUpdateAmazonFbaSalesSnapshot_result(this);
-
 
164150
    }
-
 
164151
 
-
 
164152
    @Override
-
 
164153
    public void clear() {
-
 
164154
    }
-
 
164155
 
-
 
164156
    public void setFieldValue(_Fields field, Object value) {
-
 
164157
      switch (field) {
-
 
164158
      }
-
 
164159
    }
-
 
164160
 
-
 
164161
    public Object getFieldValue(_Fields field) {
-
 
164162
      switch (field) {
-
 
164163
      }
-
 
164164
      throw new IllegalStateException();
-
 
164165
    }
-
 
164166
 
-
 
164167
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
164168
    public boolean isSet(_Fields field) {
-
 
164169
      if (field == null) {
-
 
164170
        throw new IllegalArgumentException();
-
 
164171
      }
-
 
164172
 
-
 
164173
      switch (field) {
-
 
164174
      }
-
 
164175
      throw new IllegalStateException();
-
 
164176
    }
-
 
164177
 
-
 
164178
    @Override
-
 
164179
    public boolean equals(Object that) {
-
 
164180
      if (that == null)
-
 
164181
        return false;
-
 
164182
      if (that instanceof addOrUpdateAmazonFbaSalesSnapshot_result)
-
 
164183
        return this.equals((addOrUpdateAmazonFbaSalesSnapshot_result)that);
-
 
164184
      return false;
-
 
164185
    }
-
 
164186
 
-
 
164187
    public boolean equals(addOrUpdateAmazonFbaSalesSnapshot_result that) {
-
 
164188
      if (that == null)
-
 
164189
        return false;
-
 
164190
 
-
 
164191
      return true;
-
 
164192
    }
-
 
164193
 
-
 
164194
    @Override
-
 
164195
    public int hashCode() {
-
 
164196
      return 0;
-
 
164197
    }
-
 
164198
 
-
 
164199
    public int compareTo(addOrUpdateAmazonFbaSalesSnapshot_result other) {
-
 
164200
      if (!getClass().equals(other.getClass())) {
-
 
164201
        return getClass().getName().compareTo(other.getClass().getName());
-
 
164202
      }
-
 
164203
 
-
 
164204
      int lastComparison = 0;
-
 
164205
      addOrUpdateAmazonFbaSalesSnapshot_result typedOther = (addOrUpdateAmazonFbaSalesSnapshot_result)other;
-
 
164206
 
-
 
164207
      return 0;
-
 
164208
    }
-
 
164209
 
-
 
164210
    public _Fields fieldForId(int fieldId) {
-
 
164211
      return _Fields.findByThriftId(fieldId);
-
 
164212
    }
-
 
164213
 
-
 
164214
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
164215
      org.apache.thrift.protocol.TField field;
-
 
164216
      iprot.readStructBegin();
-
 
164217
      while (true)
-
 
164218
      {
-
 
164219
        field = iprot.readFieldBegin();
-
 
164220
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
164221
          break;
-
 
164222
        }
-
 
164223
        switch (field.id) {
-
 
164224
          default:
-
 
164225
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164226
        }
-
 
164227
        iprot.readFieldEnd();
-
 
164228
      }
-
 
164229
      iprot.readStructEnd();
-
 
164230
      validate();
-
 
164231
    }
-
 
164232
 
-
 
164233
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
164234
      oprot.writeStructBegin(STRUCT_DESC);
-
 
164235
 
-
 
164236
      oprot.writeFieldStop();
-
 
164237
      oprot.writeStructEnd();
-
 
164238
    }
-
 
164239
 
-
 
164240
    @Override
-
 
164241
    public String toString() {
-
 
164242
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaSalesSnapshot_result(");
-
 
164243
      boolean first = true;
-
 
164244
 
-
 
164245
      sb.append(")");
-
 
164246
      return sb.toString();
-
 
164247
    }
-
 
164248
 
-
 
164249
    public void validate() throws org.apache.thrift.TException {
-
 
164250
      // check for required fields
-
 
164251
    }
-
 
164252
 
-
 
164253
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
164254
      try {
-
 
164255
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
164256
      } catch (org.apache.thrift.TException te) {
-
 
164257
        throw new java.io.IOException(te);
-
 
164258
      }
-
 
164259
    }
-
 
164260
 
-
 
164261
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
164262
      try {
-
 
164263
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
164264
      } catch (org.apache.thrift.TException te) {
-
 
164265
        throw new java.io.IOException(te);
-
 
164266
      }
-
 
164267
    }
-
 
164268
 
-
 
164269
  }
-
 
164270
 
-
 
164271
  public static class getAmazonFbaSalesSnapshotForDays_args implements org.apache.thrift.TBase<getAmazonFbaSalesSnapshotForDays_args, getAmazonFbaSalesSnapshotForDays_args._Fields>, java.io.Serializable, Cloneable   {
-
 
164272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaSalesSnapshotForDays_args");
-
 
164273
 
-
 
164274
    private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
164275
 
-
 
164276
    private int days; // required
-
 
164277
 
-
 
164278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
164279
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
164280
      DAYS((short)1, "days");
-
 
164281
 
-
 
164282
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
164283
 
-
 
164284
      static {
-
 
164285
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
164286
          byName.put(field.getFieldName(), field);
-
 
164287
        }
-
 
164288
      }
-
 
164289
 
-
 
164290
      /**
-
 
164291
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
164292
       */
-
 
164293
      public static _Fields findByThriftId(int fieldId) {
-
 
164294
        switch(fieldId) {
-
 
164295
          case 1: // DAYS
-
 
164296
            return DAYS;
-
 
164297
          default:
-
 
164298
            return null;
-
 
164299
        }
-
 
164300
      }
-
 
164301
 
-
 
164302
      /**
-
 
164303
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
164304
       * if it is not found.
-
 
164305
       */
-
 
164306
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
164307
        _Fields fields = findByThriftId(fieldId);
-
 
164308
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
164309
        return fields;
-
 
164310
      }
-
 
164311
 
-
 
164312
      /**
-
 
164313
       * Find the _Fields constant that matches name, or null if its not found.
-
 
164314
       */
-
 
164315
      public static _Fields findByName(String name) {
-
 
164316
        return byName.get(name);
-
 
164317
      }
-
 
164318
 
-
 
164319
      private final short _thriftId;
-
 
164320
      private final String _fieldName;
-
 
164321
 
-
 
164322
      _Fields(short thriftId, String fieldName) {
-
 
164323
        _thriftId = thriftId;
-
 
164324
        _fieldName = fieldName;
-
 
164325
      }
-
 
164326
 
-
 
164327
      public short getThriftFieldId() {
-
 
164328
        return _thriftId;
-
 
164329
      }
-
 
164330
 
-
 
164331
      public String getFieldName() {
-
 
164332
        return _fieldName;
-
 
164333
      }
-
 
164334
    }
-
 
164335
 
-
 
164336
    // isset id assignments
-
 
164337
    private static final int __DAYS_ISSET_ID = 0;
-
 
164338
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
164339
 
-
 
164340
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
164341
    static {
-
 
164342
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
164343
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164344
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
164345
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
164346
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaSalesSnapshotForDays_args.class, metaDataMap);
-
 
164347
    }
-
 
164348
 
-
 
164349
    public getAmazonFbaSalesSnapshotForDays_args() {
-
 
164350
    }
-
 
164351
 
-
 
164352
    public getAmazonFbaSalesSnapshotForDays_args(
-
 
164353
      int days)
-
 
164354
    {
-
 
164355
      this();
-
 
164356
      this.days = days;
-
 
164357
      setDaysIsSet(true);
-
 
164358
    }
-
 
164359
 
-
 
164360
    /**
-
 
164361
     * Performs a deep copy on <i>other</i>.
-
 
164362
     */
-
 
164363
    public getAmazonFbaSalesSnapshotForDays_args(getAmazonFbaSalesSnapshotForDays_args other) {
-
 
164364
      __isset_bit_vector.clear();
-
 
164365
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
164366
      this.days = other.days;
-
 
164367
    }
-
 
164368
 
-
 
164369
    public getAmazonFbaSalesSnapshotForDays_args deepCopy() {
-
 
164370
      return new getAmazonFbaSalesSnapshotForDays_args(this);
-
 
164371
    }
-
 
164372
 
-
 
164373
    @Override
-
 
164374
    public void clear() {
-
 
164375
      setDaysIsSet(false);
-
 
164376
      this.days = 0;
-
 
164377
    }
-
 
164378
 
-
 
164379
    public int getDays() {
-
 
164380
      return this.days;
-
 
164381
    }
-
 
164382
 
-
 
164383
    public void setDays(int days) {
-
 
164384
      this.days = days;
-
 
164385
      setDaysIsSet(true);
-
 
164386
    }
-
 
164387
 
-
 
164388
    public void unsetDays() {
-
 
164389
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
-
 
164390
    }
-
 
164391
 
-
 
164392
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
-
 
164393
    public boolean isSetDays() {
-
 
164394
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
-
 
164395
    }
-
 
164396
 
-
 
164397
    public void setDaysIsSet(boolean value) {
-
 
164398
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
-
 
164399
    }
-
 
164400
 
-
 
164401
    public void setFieldValue(_Fields field, Object value) {
-
 
164402
      switch (field) {
-
 
164403
      case DAYS:
-
 
164404
        if (value == null) {
-
 
164405
          unsetDays();
-
 
164406
        } else {
-
 
164407
          setDays((Integer)value);
-
 
164408
        }
-
 
164409
        break;
-
 
164410
 
-
 
164411
      }
-
 
164412
    }
-
 
164413
 
-
 
164414
    public Object getFieldValue(_Fields field) {
-
 
164415
      switch (field) {
-
 
164416
      case DAYS:
-
 
164417
        return Integer.valueOf(getDays());
-
 
164418
 
-
 
164419
      }
-
 
164420
      throw new IllegalStateException();
-
 
164421
    }
-
 
164422
 
-
 
164423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
164424
    public boolean isSet(_Fields field) {
-
 
164425
      if (field == null) {
-
 
164426
        throw new IllegalArgumentException();
-
 
164427
      }
-
 
164428
 
-
 
164429
      switch (field) {
-
 
164430
      case DAYS:
-
 
164431
        return isSetDays();
-
 
164432
      }
-
 
164433
      throw new IllegalStateException();
-
 
164434
    }
-
 
164435
 
-
 
164436
    @Override
-
 
164437
    public boolean equals(Object that) {
-
 
164438
      if (that == null)
-
 
164439
        return false;
-
 
164440
      if (that instanceof getAmazonFbaSalesSnapshotForDays_args)
-
 
164441
        return this.equals((getAmazonFbaSalesSnapshotForDays_args)that);
-
 
164442
      return false;
-
 
164443
    }
-
 
164444
 
-
 
164445
    public boolean equals(getAmazonFbaSalesSnapshotForDays_args that) {
-
 
164446
      if (that == null)
-
 
164447
        return false;
-
 
164448
 
-
 
164449
      boolean this_present_days = true;
-
 
164450
      boolean that_present_days = true;
-
 
164451
      if (this_present_days || that_present_days) {
-
 
164452
        if (!(this_present_days && that_present_days))
-
 
164453
          return false;
-
 
164454
        if (this.days != that.days)
-
 
164455
          return false;
-
 
164456
      }
-
 
164457
 
-
 
164458
      return true;
-
 
164459
    }
-
 
164460
 
-
 
164461
    @Override
-
 
164462
    public int hashCode() {
-
 
164463
      return 0;
-
 
164464
    }
-
 
164465
 
-
 
164466
    public int compareTo(getAmazonFbaSalesSnapshotForDays_args other) {
-
 
164467
      if (!getClass().equals(other.getClass())) {
-
 
164468
        return getClass().getName().compareTo(other.getClass().getName());
-
 
164469
      }
-
 
164470
 
-
 
164471
      int lastComparison = 0;
-
 
164472
      getAmazonFbaSalesSnapshotForDays_args typedOther = (getAmazonFbaSalesSnapshotForDays_args)other;
-
 
164473
 
-
 
164474
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
-
 
164475
      if (lastComparison != 0) {
-
 
164476
        return lastComparison;
-
 
164477
      }
-
 
164478
      if (isSetDays()) {
-
 
164479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
-
 
164480
        if (lastComparison != 0) {
-
 
164481
          return lastComparison;
-
 
164482
        }
-
 
164483
      }
-
 
164484
      return 0;
-
 
164485
    }
-
 
164486
 
-
 
164487
    public _Fields fieldForId(int fieldId) {
-
 
164488
      return _Fields.findByThriftId(fieldId);
-
 
164489
    }
-
 
164490
 
-
 
164491
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
164492
      org.apache.thrift.protocol.TField field;
-
 
164493
      iprot.readStructBegin();
-
 
164494
      while (true)
-
 
164495
      {
-
 
164496
        field = iprot.readFieldBegin();
-
 
164497
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
164498
          break;
-
 
164499
        }
-
 
164500
        switch (field.id) {
-
 
164501
          case 1: // DAYS
-
 
164502
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
164503
              this.days = iprot.readI32();
-
 
164504
              setDaysIsSet(true);
-
 
164505
            } else { 
-
 
164506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164507
            }
-
 
164508
            break;
-
 
164509
          default:
-
 
164510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164511
        }
-
 
164512
        iprot.readFieldEnd();
-
 
164513
      }
-
 
164514
      iprot.readStructEnd();
-
 
164515
      validate();
-
 
164516
    }
-
 
164517
 
-
 
164518
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
164519
      validate();
-
 
164520
 
-
 
164521
      oprot.writeStructBegin(STRUCT_DESC);
-
 
164522
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
-
 
164523
      oprot.writeI32(this.days);
-
 
164524
      oprot.writeFieldEnd();
-
 
164525
      oprot.writeFieldStop();
-
 
164526
      oprot.writeStructEnd();
-
 
164527
    }
-
 
164528
 
-
 
164529
    @Override
-
 
164530
    public String toString() {
-
 
164531
      StringBuilder sb = new StringBuilder("getAmazonFbaSalesSnapshotForDays_args(");
-
 
164532
      boolean first = true;
-
 
164533
 
-
 
164534
      sb.append("days:");
-
 
164535
      sb.append(this.days);
-
 
164536
      first = false;
-
 
164537
      sb.append(")");
-
 
164538
      return sb.toString();
-
 
164539
    }
-
 
164540
 
-
 
164541
    public void validate() throws org.apache.thrift.TException {
-
 
164542
      // check for required fields
-
 
164543
    }
-
 
164544
 
-
 
164545
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
164546
      try {
-
 
164547
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
164548
      } catch (org.apache.thrift.TException te) {
-
 
164549
        throw new java.io.IOException(te);
-
 
164550
      }
-
 
164551
    }
-
 
164552
 
-
 
164553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
164554
      try {
-
 
164555
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
164556
        __isset_bit_vector = new BitSet(1);
-
 
164557
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
164558
      } catch (org.apache.thrift.TException te) {
-
 
164559
        throw new java.io.IOException(te);
-
 
164560
      }
-
 
164561
    }
-
 
164562
 
-
 
164563
  }
-
 
164564
 
-
 
164565
  public static class getAmazonFbaSalesSnapshotForDays_result implements org.apache.thrift.TBase<getAmazonFbaSalesSnapshotForDays_result, getAmazonFbaSalesSnapshotForDays_result._Fields>, java.io.Serializable, Cloneable   {
-
 
164566
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaSalesSnapshotForDays_result");
-
 
164567
 
-
 
164568
    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);
-
 
164569
 
-
 
164570
    private List<AmazonFbaSalesSnapshot> success; // required
-
 
164571
 
-
 
164572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
164573
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
164574
      SUCCESS((short)0, "success");
-
 
164575
 
-
 
164576
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
164577
 
-
 
164578
      static {
-
 
164579
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
164580
          byName.put(field.getFieldName(), field);
-
 
164581
        }
-
 
164582
      }
-
 
164583
 
-
 
164584
      /**
-
 
164585
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
164586
       */
-
 
164587
      public static _Fields findByThriftId(int fieldId) {
-
 
164588
        switch(fieldId) {
-
 
164589
          case 0: // SUCCESS
-
 
164590
            return SUCCESS;
-
 
164591
          default:
-
 
164592
            return null;
-
 
164593
        }
-
 
164594
      }
-
 
164595
 
-
 
164596
      /**
-
 
164597
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
164598
       * if it is not found.
-
 
164599
       */
-
 
164600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
164601
        _Fields fields = findByThriftId(fieldId);
-
 
164602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
164603
        return fields;
-
 
164604
      }
-
 
164605
 
-
 
164606
      /**
-
 
164607
       * Find the _Fields constant that matches name, or null if its not found.
-
 
164608
       */
-
 
164609
      public static _Fields findByName(String name) {
-
 
164610
        return byName.get(name);
-
 
164611
      }
-
 
164612
 
-
 
164613
      private final short _thriftId;
-
 
164614
      private final String _fieldName;
-
 
164615
 
-
 
164616
      _Fields(short thriftId, String fieldName) {
-
 
164617
        _thriftId = thriftId;
-
 
164618
        _fieldName = fieldName;
-
 
164619
      }
-
 
164620
 
-
 
164621
      public short getThriftFieldId() {
-
 
164622
        return _thriftId;
-
 
164623
      }
-
 
164624
 
-
 
164625
      public String getFieldName() {
-
 
164626
        return _fieldName;
-
 
164627
      }
-
 
164628
    }
-
 
164629
 
-
 
164630
    // isset id assignments
-
 
164631
 
-
 
164632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
164633
    static {
-
 
164634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
164635
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164636
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
164637
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaSalesSnapshot.class))));
-
 
164638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
164639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaSalesSnapshotForDays_result.class, metaDataMap);
-
 
164640
    }
-
 
164641
 
-
 
164642
    public getAmazonFbaSalesSnapshotForDays_result() {
-
 
164643
    }
-
 
164644
 
-
 
164645
    public getAmazonFbaSalesSnapshotForDays_result(
-
 
164646
      List<AmazonFbaSalesSnapshot> success)
-
 
164647
    {
-
 
164648
      this();
-
 
164649
      this.success = success;
-
 
164650
    }
-
 
164651
 
-
 
164652
    /**
-
 
164653
     * Performs a deep copy on <i>other</i>.
-
 
164654
     */
-
 
164655
    public getAmazonFbaSalesSnapshotForDays_result(getAmazonFbaSalesSnapshotForDays_result other) {
-
 
164656
      if (other.isSetSuccess()) {
-
 
164657
        List<AmazonFbaSalesSnapshot> __this__success = new ArrayList<AmazonFbaSalesSnapshot>();
-
 
164658
        for (AmazonFbaSalesSnapshot other_element : other.success) {
-
 
164659
          __this__success.add(new AmazonFbaSalesSnapshot(other_element));
-
 
164660
        }
-
 
164661
        this.success = __this__success;
-
 
164662
      }
-
 
164663
    }
-
 
164664
 
-
 
164665
    public getAmazonFbaSalesSnapshotForDays_result deepCopy() {
-
 
164666
      return new getAmazonFbaSalesSnapshotForDays_result(this);
-
 
164667
    }
-
 
164668
 
-
 
164669
    @Override
-
 
164670
    public void clear() {
-
 
164671
      this.success = null;
-
 
164672
    }
-
 
164673
 
-
 
164674
    public int getSuccessSize() {
-
 
164675
      return (this.success == null) ? 0 : this.success.size();
-
 
164676
    }
-
 
164677
 
-
 
164678
    public java.util.Iterator<AmazonFbaSalesSnapshot> getSuccessIterator() {
-
 
164679
      return (this.success == null) ? null : this.success.iterator();
-
 
164680
    }
-
 
164681
 
-
 
164682
    public void addToSuccess(AmazonFbaSalesSnapshot elem) {
-
 
164683
      if (this.success == null) {
-
 
164684
        this.success = new ArrayList<AmazonFbaSalesSnapshot>();
-
 
164685
      }
-
 
164686
      this.success.add(elem);
-
 
164687
    }
-
 
164688
 
-
 
164689
    public List<AmazonFbaSalesSnapshot> getSuccess() {
-
 
164690
      return this.success;
-
 
164691
    }
-
 
164692
 
-
 
164693
    public void setSuccess(List<AmazonFbaSalesSnapshot> success) {
-
 
164694
      this.success = success;
-
 
164695
    }
-
 
164696
 
-
 
164697
    public void unsetSuccess() {
-
 
164698
      this.success = null;
-
 
164699
    }
-
 
164700
 
-
 
164701
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
164702
    public boolean isSetSuccess() {
-
 
164703
      return this.success != null;
-
 
164704
    }
-
 
164705
 
-
 
164706
    public void setSuccessIsSet(boolean value) {
-
 
164707
      if (!value) {
-
 
164708
        this.success = null;
-
 
164709
      }
-
 
164710
    }
-
 
164711
 
-
 
164712
    public void setFieldValue(_Fields field, Object value) {
-
 
164713
      switch (field) {
-
 
164714
      case SUCCESS:
-
 
164715
        if (value == null) {
-
 
164716
          unsetSuccess();
-
 
164717
        } else {
-
 
164718
          setSuccess((List<AmazonFbaSalesSnapshot>)value);
-
 
164719
        }
-
 
164720
        break;
-
 
164721
 
-
 
164722
      }
-
 
164723
    }
-
 
164724
 
-
 
164725
    public Object getFieldValue(_Fields field) {
-
 
164726
      switch (field) {
-
 
164727
      case SUCCESS:
-
 
164728
        return getSuccess();
-
 
164729
 
-
 
164730
      }
-
 
164731
      throw new IllegalStateException();
-
 
164732
    }
-
 
164733
 
-
 
164734
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
164735
    public boolean isSet(_Fields field) {
-
 
164736
      if (field == null) {
-
 
164737
        throw new IllegalArgumentException();
-
 
164738
      }
-
 
164739
 
-
 
164740
      switch (field) {
-
 
164741
      case SUCCESS:
-
 
164742
        return isSetSuccess();
-
 
164743
      }
-
 
164744
      throw new IllegalStateException();
-
 
164745
    }
-
 
164746
 
-
 
164747
    @Override
-
 
164748
    public boolean equals(Object that) {
-
 
164749
      if (that == null)
-
 
164750
        return false;
-
 
164751
      if (that instanceof getAmazonFbaSalesSnapshotForDays_result)
-
 
164752
        return this.equals((getAmazonFbaSalesSnapshotForDays_result)that);
-
 
164753
      return false;
-
 
164754
    }
-
 
164755
 
-
 
164756
    public boolean equals(getAmazonFbaSalesSnapshotForDays_result that) {
-
 
164757
      if (that == null)
-
 
164758
        return false;
-
 
164759
 
-
 
164760
      boolean this_present_success = true && this.isSetSuccess();
-
 
164761
      boolean that_present_success = true && that.isSetSuccess();
-
 
164762
      if (this_present_success || that_present_success) {
-
 
164763
        if (!(this_present_success && that_present_success))
-
 
164764
          return false;
-
 
164765
        if (!this.success.equals(that.success))
-
 
164766
          return false;
-
 
164767
      }
-
 
164768
 
-
 
164769
      return true;
-
 
164770
    }
-
 
164771
 
-
 
164772
    @Override
-
 
164773
    public int hashCode() {
-
 
164774
      return 0;
-
 
164775
    }
-
 
164776
 
-
 
164777
    public int compareTo(getAmazonFbaSalesSnapshotForDays_result other) {
-
 
164778
      if (!getClass().equals(other.getClass())) {
-
 
164779
        return getClass().getName().compareTo(other.getClass().getName());
-
 
164780
      }
-
 
164781
 
-
 
164782
      int lastComparison = 0;
-
 
164783
      getAmazonFbaSalesSnapshotForDays_result typedOther = (getAmazonFbaSalesSnapshotForDays_result)other;
-
 
164784
 
-
 
164785
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
164786
      if (lastComparison != 0) {
-
 
164787
        return lastComparison;
-
 
164788
      }
-
 
164789
      if (isSetSuccess()) {
-
 
164790
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
164791
        if (lastComparison != 0) {
-
 
164792
          return lastComparison;
-
 
164793
        }
-
 
164794
      }
-
 
164795
      return 0;
-
 
164796
    }
-
 
164797
 
-
 
164798
    public _Fields fieldForId(int fieldId) {
-
 
164799
      return _Fields.findByThriftId(fieldId);
-
 
164800
    }
-
 
164801
 
-
 
164802
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
164803
      org.apache.thrift.protocol.TField field;
-
 
164804
      iprot.readStructBegin();
-
 
164805
      while (true)
-
 
164806
      {
-
 
164807
        field = iprot.readFieldBegin();
-
 
164808
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
164809
          break;
-
 
164810
        }
-
 
164811
        switch (field.id) {
-
 
164812
          case 0: // SUCCESS
-
 
164813
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
164814
              {
-
 
164815
                org.apache.thrift.protocol.TList _list512 = iprot.readListBegin();
-
 
164816
                this.success = new ArrayList<AmazonFbaSalesSnapshot>(_list512.size);
-
 
164817
                for (int _i513 = 0; _i513 < _list512.size; ++_i513)
-
 
164818
                {
-
 
164819
                  AmazonFbaSalesSnapshot _elem514; // required
-
 
164820
                  _elem514 = new AmazonFbaSalesSnapshot();
-
 
164821
                  _elem514.read(iprot);
-
 
164822
                  this.success.add(_elem514);
-
 
164823
                }
-
 
164824
                iprot.readListEnd();
-
 
164825
              }
-
 
164826
            } else { 
-
 
164827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164828
            }
-
 
164829
            break;
-
 
164830
          default:
-
 
164831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
164832
        }
-
 
164833
        iprot.readFieldEnd();
-
 
164834
      }
-
 
164835
      iprot.readStructEnd();
-
 
164836
      validate();
-
 
164837
    }
-
 
164838
 
-
 
164839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
164840
      oprot.writeStructBegin(STRUCT_DESC);
-
 
164841
 
-
 
164842
      if (this.isSetSuccess()) {
-
 
164843
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
164844
        {
-
 
164845
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
164846
          for (AmazonFbaSalesSnapshot _iter515 : this.success)
-
 
164847
          {
-
 
164848
            _iter515.write(oprot);
-
 
164849
          }
-
 
164850
          oprot.writeListEnd();
-
 
164851
        }
-
 
164852
        oprot.writeFieldEnd();
-
 
164853
      }
-
 
164854
      oprot.writeFieldStop();
-
 
164855
      oprot.writeStructEnd();
-
 
164856
    }
-
 
164857
 
-
 
164858
    @Override
-
 
164859
    public String toString() {
-
 
164860
      StringBuilder sb = new StringBuilder("getAmazonFbaSalesSnapshotForDays_result(");
-
 
164861
      boolean first = true;
-
 
164862
 
-
 
164863
      sb.append("success:");
-
 
164864
      if (this.success == null) {
-
 
164865
        sb.append("null");
-
 
164866
      } else {
-
 
164867
        sb.append(this.success);
-
 
164868
      }
-
 
164869
      first = false;
-
 
164870
      sb.append(")");
-
 
164871
      return sb.toString();
-
 
164872
    }
-
 
164873
 
-
 
164874
    public void validate() throws org.apache.thrift.TException {
-
 
164875
      // check for required fields
-
 
164876
    }
-
 
164877
 
-
 
164878
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
164879
      try {
-
 
164880
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
164881
      } catch (org.apache.thrift.TException te) {
-
 
164882
        throw new java.io.IOException(te);
-
 
164883
      }
-
 
164884
    }
-
 
164885
 
-
 
164886
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
164887
      try {
-
 
164888
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
164889
      } catch (org.apache.thrift.TException te) {
-
 
164890
        throw new java.io.IOException(te);
-
 
164891
      }
-
 
164892
    }
-
 
164893
 
-
 
164894
  }
-
 
164895
 
-
 
164896
  public static class getAmazonFbaSalesLatestSnapshotForItem_args implements org.apache.thrift.TBase<getAmazonFbaSalesLatestSnapshotForItem_args, getAmazonFbaSalesLatestSnapshotForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
164897
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaSalesLatestSnapshotForItem_args");
-
 
164898
 
-
 
164899
    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);
-
 
164900
 
-
 
164901
    private long item_id; // required
-
 
164902
 
-
 
164903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
164904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
164905
      ITEM_ID((short)1, "item_id");
-
 
164906
 
-
 
164907
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
164908
 
-
 
164909
      static {
-
 
164910
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
164911
          byName.put(field.getFieldName(), field);
-
 
164912
        }
-
 
164913
      }
-
 
164914
 
-
 
164915
      /**
-
 
164916
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
164917
       */
-
 
164918
      public static _Fields findByThriftId(int fieldId) {
-
 
164919
        switch(fieldId) {
-
 
164920
          case 1: // ITEM_ID
-
 
164921
            return ITEM_ID;
-
 
164922
          default:
-
 
164923
            return null;
-
 
164924
        }
-
 
164925
      }
-
 
164926
 
-
 
164927
      /**
-
 
164928
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
164929
       * if it is not found.
-
 
164930
       */
-
 
164931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
164932
        _Fields fields = findByThriftId(fieldId);
-
 
164933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
164934
        return fields;
-
 
164935
      }
-
 
164936
 
-
 
164937
      /**
-
 
164938
       * Find the _Fields constant that matches name, or null if its not found.
-
 
164939
       */
-
 
164940
      public static _Fields findByName(String name) {
-
 
164941
        return byName.get(name);
-
 
164942
      }
-
 
164943
 
-
 
164944
      private final short _thriftId;
-
 
164945
      private final String _fieldName;
-
 
164946
 
-
 
164947
      _Fields(short thriftId, String fieldName) {
-
 
164948
        _thriftId = thriftId;
-
 
164949
        _fieldName = fieldName;
-
 
164950
      }
-
 
164951
 
-
 
164952
      public short getThriftFieldId() {
-
 
164953
        return _thriftId;
-
 
164954
      }
-
 
164955
 
-
 
164956
      public String getFieldName() {
-
 
164957
        return _fieldName;
-
 
164958
      }
-
 
164959
    }
-
 
164960
 
-
 
164961
    // isset id assignments
-
 
164962
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
164963
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
164964
 
-
 
164965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
164966
    static {
-
 
164967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
164968
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
164970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
164971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaSalesLatestSnapshotForItem_args.class, metaDataMap);
-
 
164972
    }
-
 
164973
 
-
 
164974
    public getAmazonFbaSalesLatestSnapshotForItem_args() {
-
 
164975
    }
-
 
164976
 
-
 
164977
    public getAmazonFbaSalesLatestSnapshotForItem_args(
-
 
164978
      long item_id)
-
 
164979
    {
-
 
164980
      this();
-
 
164981
      this.item_id = item_id;
-
 
164982
      setItem_idIsSet(true);
-
 
164983
    }
-
 
164984
 
-
 
164985
    /**
-
 
164986
     * Performs a deep copy on <i>other</i>.
-
 
164987
     */
-
 
164988
    public getAmazonFbaSalesLatestSnapshotForItem_args(getAmazonFbaSalesLatestSnapshotForItem_args other) {
-
 
164989
      __isset_bit_vector.clear();
-
 
164990
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
164991
      this.item_id = other.item_id;
-
 
164992
    }
-
 
164993
 
-
 
164994
    public getAmazonFbaSalesLatestSnapshotForItem_args deepCopy() {
-
 
164995
      return new getAmazonFbaSalesLatestSnapshotForItem_args(this);
-
 
164996
    }
-
 
164997
 
-
 
164998
    @Override
-
 
164999
    public void clear() {
-
 
165000
      setItem_idIsSet(false);
-
 
165001
      this.item_id = 0;
-
 
165002
    }
-
 
165003
 
-
 
165004
    public long getItem_id() {
-
 
165005
      return this.item_id;
-
 
165006
    }
-
 
165007
 
-
 
165008
    public void setItem_id(long item_id) {
-
 
165009
      this.item_id = item_id;
-
 
165010
      setItem_idIsSet(true);
-
 
165011
    }
-
 
165012
 
-
 
165013
    public void unsetItem_id() {
-
 
165014
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
165015
    }
-
 
165016
 
-
 
165017
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
165018
    public boolean isSetItem_id() {
-
 
165019
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
165020
    }
-
 
165021
 
-
 
165022
    public void setItem_idIsSet(boolean value) {
-
 
165023
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
165024
    }
-
 
165025
 
-
 
165026
    public void setFieldValue(_Fields field, Object value) {
-
 
165027
      switch (field) {
-
 
165028
      case ITEM_ID:
-
 
165029
        if (value == null) {
-
 
165030
          unsetItem_id();
-
 
165031
        } else {
-
 
165032
          setItem_id((Long)value);
-
 
165033
        }
-
 
165034
        break;
-
 
165035
 
-
 
165036
      }
-
 
165037
    }
-
 
165038
 
-
 
165039
    public Object getFieldValue(_Fields field) {
-
 
165040
      switch (field) {
-
 
165041
      case ITEM_ID:
-
 
165042
        return Long.valueOf(getItem_id());
-
 
165043
 
-
 
165044
      }
-
 
165045
      throw new IllegalStateException();
-
 
165046
    }
-
 
165047
 
-
 
165048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
165049
    public boolean isSet(_Fields field) {
-
 
165050
      if (field == null) {
-
 
165051
        throw new IllegalArgumentException();
-
 
165052
      }
-
 
165053
 
-
 
165054
      switch (field) {
-
 
165055
      case ITEM_ID:
-
 
165056
        return isSetItem_id();
-
 
165057
      }
-
 
165058
      throw new IllegalStateException();
-
 
165059
    }
-
 
165060
 
-
 
165061
    @Override
-
 
165062
    public boolean equals(Object that) {
-
 
165063
      if (that == null)
-
 
165064
        return false;
-
 
165065
      if (that instanceof getAmazonFbaSalesLatestSnapshotForItem_args)
-
 
165066
        return this.equals((getAmazonFbaSalesLatestSnapshotForItem_args)that);
-
 
165067
      return false;
-
 
165068
    }
-
 
165069
 
-
 
165070
    public boolean equals(getAmazonFbaSalesLatestSnapshotForItem_args that) {
-
 
165071
      if (that == null)
-
 
165072
        return false;
-
 
165073
 
-
 
165074
      boolean this_present_item_id = true;
-
 
165075
      boolean that_present_item_id = true;
-
 
165076
      if (this_present_item_id || that_present_item_id) {
-
 
165077
        if (!(this_present_item_id && that_present_item_id))
-
 
165078
          return false;
-
 
165079
        if (this.item_id != that.item_id)
-
 
165080
          return false;
-
 
165081
      }
-
 
165082
 
-
 
165083
      return true;
-
 
165084
    }
-
 
165085
 
-
 
165086
    @Override
-
 
165087
    public int hashCode() {
-
 
165088
      return 0;
-
 
165089
    }
-
 
165090
 
-
 
165091
    public int compareTo(getAmazonFbaSalesLatestSnapshotForItem_args other) {
-
 
165092
      if (!getClass().equals(other.getClass())) {
-
 
165093
        return getClass().getName().compareTo(other.getClass().getName());
-
 
165094
      }
-
 
165095
 
-
 
165096
      int lastComparison = 0;
-
 
165097
      getAmazonFbaSalesLatestSnapshotForItem_args typedOther = (getAmazonFbaSalesLatestSnapshotForItem_args)other;
-
 
165098
 
-
 
165099
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
165100
      if (lastComparison != 0) {
-
 
165101
        return lastComparison;
-
 
165102
      }
-
 
165103
      if (isSetItem_id()) {
-
 
165104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
165105
        if (lastComparison != 0) {
-
 
165106
          return lastComparison;
-
 
165107
        }
-
 
165108
      }
-
 
165109
      return 0;
-
 
165110
    }
-
 
165111
 
-
 
165112
    public _Fields fieldForId(int fieldId) {
-
 
165113
      return _Fields.findByThriftId(fieldId);
-
 
165114
    }
-
 
165115
 
-
 
165116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
165117
      org.apache.thrift.protocol.TField field;
-
 
165118
      iprot.readStructBegin();
-
 
165119
      while (true)
-
 
165120
      {
-
 
165121
        field = iprot.readFieldBegin();
-
 
165122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
165123
          break;
-
 
165124
        }
-
 
165125
        switch (field.id) {
-
 
165126
          case 1: // ITEM_ID
-
 
165127
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
165128
              this.item_id = iprot.readI64();
-
 
165129
              setItem_idIsSet(true);
-
 
165130
            } else { 
-
 
165131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
165132
            }
-
 
165133
            break;
-
 
165134
          default:
-
 
165135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
165136
        }
-
 
165137
        iprot.readFieldEnd();
-
 
165138
      }
-
 
165139
      iprot.readStructEnd();
-
 
165140
      validate();
-
 
165141
    }
-
 
165142
 
-
 
165143
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
165144
      validate();
-
 
165145
 
-
 
165146
      oprot.writeStructBegin(STRUCT_DESC);
-
 
165147
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
165148
      oprot.writeI64(this.item_id);
-
 
165149
      oprot.writeFieldEnd();
-
 
165150
      oprot.writeFieldStop();
-
 
165151
      oprot.writeStructEnd();
-
 
165152
    }
-
 
165153
 
-
 
165154
    @Override
-
 
165155
    public String toString() {
-
 
165156
      StringBuilder sb = new StringBuilder("getAmazonFbaSalesLatestSnapshotForItem_args(");
-
 
165157
      boolean first = true;
-
 
165158
 
-
 
165159
      sb.append("item_id:");
-
 
165160
      sb.append(this.item_id);
-
 
165161
      first = false;
-
 
165162
      sb.append(")");
-
 
165163
      return sb.toString();
-
 
165164
    }
-
 
165165
 
-
 
165166
    public void validate() throws org.apache.thrift.TException {
-
 
165167
      // check for required fields
-
 
165168
    }
-
 
165169
 
-
 
165170
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
165171
      try {
-
 
165172
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
165173
      } catch (org.apache.thrift.TException te) {
-
 
165174
        throw new java.io.IOException(te);
-
 
165175
      }
-
 
165176
    }
-
 
165177
 
-
 
165178
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
165179
      try {
-
 
165180
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
165181
        __isset_bit_vector = new BitSet(1);
-
 
165182
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
165183
      } catch (org.apache.thrift.TException te) {
-
 
165184
        throw new java.io.IOException(te);
-
 
165185
      }
-
 
165186
    }
-
 
165187
 
-
 
165188
  }
-
 
165189
 
-
 
165190
  public static class getAmazonFbaSalesLatestSnapshotForItem_result implements org.apache.thrift.TBase<getAmazonFbaSalesLatestSnapshotForItem_result, getAmazonFbaSalesLatestSnapshotForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
165191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaSalesLatestSnapshotForItem_result");
-
 
165192
 
-
 
165193
    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);
-
 
165194
 
-
 
165195
    private AmazonFbaSalesSnapshot success; // required
-
 
165196
 
-
 
165197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
165198
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
165199
      SUCCESS((short)0, "success");
-
 
165200
 
-
 
165201
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
165202
 
-
 
165203
      static {
-
 
165204
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
165205
          byName.put(field.getFieldName(), field);
-
 
165206
        }
-
 
165207
      }
-
 
165208
 
-
 
165209
      /**
-
 
165210
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
165211
       */
-
 
165212
      public static _Fields findByThriftId(int fieldId) {
-
 
165213
        switch(fieldId) {
-
 
165214
          case 0: // SUCCESS
-
 
165215
            return SUCCESS;
-
 
165216
          default:
-
 
165217
            return null;
-
 
165218
        }
-
 
165219
      }
-
 
165220
 
-
 
165221
      /**
-
 
165222
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
165223
       * if it is not found.
-
 
165224
       */
-
 
165225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
165226
        _Fields fields = findByThriftId(fieldId);
-
 
165227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
165228
        return fields;
-
 
165229
      }
-
 
165230
 
-
 
165231
      /**
-
 
165232
       * Find the _Fields constant that matches name, or null if its not found.
-
 
165233
       */
-
 
165234
      public static _Fields findByName(String name) {
-
 
165235
        return byName.get(name);
-
 
165236
      }
-
 
165237
 
-
 
165238
      private final short _thriftId;
-
 
165239
      private final String _fieldName;
-
 
165240
 
-
 
165241
      _Fields(short thriftId, String fieldName) {
-
 
165242
        _thriftId = thriftId;
-
 
165243
        _fieldName = fieldName;
-
 
165244
      }
-
 
165245
 
-
 
165246
      public short getThriftFieldId() {
-
 
165247
        return _thriftId;
-
 
165248
      }
-
 
165249
 
-
 
165250
      public String getFieldName() {
-
 
165251
        return _fieldName;
-
 
165252
      }
-
 
165253
    }
-
 
165254
 
-
 
165255
    // isset id assignments
-
 
165256
 
-
 
165257
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
165258
    static {
-
 
165259
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
165260
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
165261
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaSalesSnapshot.class)));
-
 
165262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
165263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaSalesLatestSnapshotForItem_result.class, metaDataMap);
-
 
165264
    }
-
 
165265
 
-
 
165266
    public getAmazonFbaSalesLatestSnapshotForItem_result() {
-
 
165267
    }
-
 
165268
 
-
 
165269
    public getAmazonFbaSalesLatestSnapshotForItem_result(
-
 
165270
      AmazonFbaSalesSnapshot success)
-
 
165271
    {
-
 
165272
      this();
-
 
165273
      this.success = success;
-
 
165274
    }
-
 
165275
 
-
 
165276
    /**
-
 
165277
     * Performs a deep copy on <i>other</i>.
-
 
165278
     */
-
 
165279
    public getAmazonFbaSalesLatestSnapshotForItem_result(getAmazonFbaSalesLatestSnapshotForItem_result other) {
-
 
165280
      if (other.isSetSuccess()) {
-
 
165281
        this.success = new AmazonFbaSalesSnapshot(other.success);
-
 
165282
      }
-
 
165283
    }
-
 
165284
 
-
 
165285
    public getAmazonFbaSalesLatestSnapshotForItem_result deepCopy() {
-
 
165286
      return new getAmazonFbaSalesLatestSnapshotForItem_result(this);
-
 
165287
    }
-
 
165288
 
-
 
165289
    @Override
-
 
165290
    public void clear() {
-
 
165291
      this.success = null;
-
 
165292
    }
-
 
165293
 
-
 
165294
    public AmazonFbaSalesSnapshot getSuccess() {
-
 
165295
      return this.success;
-
 
165296
    }
-
 
165297
 
-
 
165298
    public void setSuccess(AmazonFbaSalesSnapshot success) {
-
 
165299
      this.success = success;
-
 
165300
    }
-
 
165301
 
-
 
165302
    public void unsetSuccess() {
-
 
165303
      this.success = null;
-
 
165304
    }
-
 
165305
 
-
 
165306
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
165307
    public boolean isSetSuccess() {
-
 
165308
      return this.success != null;
-
 
165309
    }
-
 
165310
 
-
 
165311
    public void setSuccessIsSet(boolean value) {
-
 
165312
      if (!value) {
-
 
165313
        this.success = null;
-
 
165314
      }
-
 
165315
    }
-
 
165316
 
-
 
165317
    public void setFieldValue(_Fields field, Object value) {
-
 
165318
      switch (field) {
-
 
165319
      case SUCCESS:
-
 
165320
        if (value == null) {
-
 
165321
          unsetSuccess();
-
 
165322
        } else {
-
 
165323
          setSuccess((AmazonFbaSalesSnapshot)value);
-
 
165324
        }
-
 
165325
        break;
-
 
165326
 
-
 
165327
      }
-
 
165328
    }
-
 
165329
 
-
 
165330
    public Object getFieldValue(_Fields field) {
-
 
165331
      switch (field) {
-
 
165332
      case SUCCESS:
-
 
165333
        return getSuccess();
-
 
165334
 
-
 
165335
      }
-
 
165336
      throw new IllegalStateException();
-
 
165337
    }
-
 
165338
 
-
 
165339
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
165340
    public boolean isSet(_Fields field) {
-
 
165341
      if (field == null) {
-
 
165342
        throw new IllegalArgumentException();
-
 
165343
      }
-
 
165344
 
-
 
165345
      switch (field) {
-
 
165346
      case SUCCESS:
-
 
165347
        return isSetSuccess();
-
 
165348
      }
-
 
165349
      throw new IllegalStateException();
-
 
165350
    }
-
 
165351
 
-
 
165352
    @Override
-
 
165353
    public boolean equals(Object that) {
-
 
165354
      if (that == null)
-
 
165355
        return false;
-
 
165356
      if (that instanceof getAmazonFbaSalesLatestSnapshotForItem_result)
-
 
165357
        return this.equals((getAmazonFbaSalesLatestSnapshotForItem_result)that);
-
 
165358
      return false;
-
 
165359
    }
-
 
165360
 
-
 
165361
    public boolean equals(getAmazonFbaSalesLatestSnapshotForItem_result that) {
-
 
165362
      if (that == null)
-
 
165363
        return false;
-
 
165364
 
-
 
165365
      boolean this_present_success = true && this.isSetSuccess();
-
 
165366
      boolean that_present_success = true && that.isSetSuccess();
-
 
165367
      if (this_present_success || that_present_success) {
-
 
165368
        if (!(this_present_success && that_present_success))
-
 
165369
          return false;
-
 
165370
        if (!this.success.equals(that.success))
-
 
165371
          return false;
-
 
165372
      }
-
 
165373
 
-
 
165374
      return true;
-
 
165375
    }
-
 
165376
 
-
 
165377
    @Override
-
 
165378
    public int hashCode() {
-
 
165379
      return 0;
-
 
165380
    }
-
 
165381
 
-
 
165382
    public int compareTo(getAmazonFbaSalesLatestSnapshotForItem_result other) {
-
 
165383
      if (!getClass().equals(other.getClass())) {
-
 
165384
        return getClass().getName().compareTo(other.getClass().getName());
-
 
165385
      }
-
 
165386
 
-
 
165387
      int lastComparison = 0;
-
 
165388
      getAmazonFbaSalesLatestSnapshotForItem_result typedOther = (getAmazonFbaSalesLatestSnapshotForItem_result)other;
-
 
165389
 
-
 
165390
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
165391
      if (lastComparison != 0) {
-
 
165392
        return lastComparison;
-
 
165393
      }
-
 
165394
      if (isSetSuccess()) {
-
 
165395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
165396
        if (lastComparison != 0) {
-
 
165397
          return lastComparison;
-
 
165398
        }
-
 
165399
      }
-
 
165400
      return 0;
-
 
165401
    }
-
 
165402
 
-
 
165403
    public _Fields fieldForId(int fieldId) {
-
 
165404
      return _Fields.findByThriftId(fieldId);
-
 
165405
    }
-
 
165406
 
-
 
165407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
165408
      org.apache.thrift.protocol.TField field;
-
 
165409
      iprot.readStructBegin();
-
 
165410
      while (true)
-
 
165411
      {
-
 
165412
        field = iprot.readFieldBegin();
-
 
165413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
165414
          break;
-
 
165415
        }
-
 
165416
        switch (field.id) {
-
 
165417
          case 0: // SUCCESS
-
 
165418
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
165419
              this.success = new AmazonFbaSalesSnapshot();
-
 
165420
              this.success.read(iprot);
-
 
165421
            } else { 
-
 
165422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
165423
            }
-
 
165424
            break;
-
 
165425
          default:
-
 
165426
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
165427
        }
-
 
165428
        iprot.readFieldEnd();
-
 
165429
      }
-
 
165430
      iprot.readStructEnd();
-
 
165431
      validate();
-
 
165432
    }
-
 
165433
 
-
 
165434
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
165435
      oprot.writeStructBegin(STRUCT_DESC);
-
 
165436
 
-
 
165437
      if (this.isSetSuccess()) {
-
 
165438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
165439
        this.success.write(oprot);
-
 
165440
        oprot.writeFieldEnd();
-
 
165441
      }
-
 
165442
      oprot.writeFieldStop();
-
 
165443
      oprot.writeStructEnd();
-
 
165444
    }
-
 
165445
 
-
 
165446
    @Override
-
 
165447
    public String toString() {
-
 
165448
      StringBuilder sb = new StringBuilder("getAmazonFbaSalesLatestSnapshotForItem_result(");
-
 
165449
      boolean first = true;
-
 
165450
 
-
 
165451
      sb.append("success:");
-
 
165452
      if (this.success == null) {
-
 
165453
        sb.append("null");
163522
      } else {
165454
      } else {
163523
        sb.append(this.success);
165455
        sb.append(this.success);
163524
      }
165456
      }
163525
      first = false;
165457
      first = false;
163526
      sb.append(")");
165458
      sb.append(")");