Subversion Repositories SmartDukaan

Rev

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

Rev 9630 Rev 9651
Line 1055... Line 1055...
1055
 
1055
 
1056
    public Map<Long,Long> getOrdersCreatedAfterTimestampForSource(long timestamp, long source) throws org.apache.thrift.TException;
1056
    public Map<Long,Long> getOrdersCreatedAfterTimestampForSource(long timestamp, long source) throws org.apache.thrift.TException;
1057
 
1057
 
1058
    public Order getOrderForAirwayBillNo(String airwaybillNo) throws TransactionServiceException, org.apache.thrift.TException;
1058
    public Order getOrderForAirwayBillNo(String airwaybillNo) throws TransactionServiceException, org.apache.thrift.TException;
1059
 
1059
 
-
 
1060
    public long getMinCreatedTimeStampUndeliveredOrdersForSource(int source) throws org.apache.thrift.TException;
-
 
1061
 
-
 
1062
    public void updateSnapdealOrdersStatus(List<List<String>> delivered_orders) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1063
 
-
 
1064
    public void updateFlipkartOrdersStatus(List<List<String>> delivered_orders) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1065
 
1060
  }
1066
  }
1061
 
1067
 
1062
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1068
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1063
 
1069
 
1064
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1070
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1497... Line 1503...
1497
 
1503
 
1498
    public void getOrdersCreatedAfterTimestampForSource(long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCreatedAfterTimestampForSource_call> resultHandler) throws org.apache.thrift.TException;
1504
    public void getOrdersCreatedAfterTimestampForSource(long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCreatedAfterTimestampForSource_call> resultHandler) throws org.apache.thrift.TException;
1499
 
1505
 
1500
    public void getOrderForAirwayBillNo(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAirwayBillNo_call> resultHandler) throws org.apache.thrift.TException;
1506
    public void getOrderForAirwayBillNo(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAirwayBillNo_call> resultHandler) throws org.apache.thrift.TException;
1501
 
1507
 
-
 
1508
    public void getMinCreatedTimeStampUndeliveredOrdersForSource(int source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMinCreatedTimeStampUndeliveredOrdersForSource_call> resultHandler) throws org.apache.thrift.TException;
-
 
1509
 
-
 
1510
    public void updateSnapdealOrdersStatus(List<List<String>> delivered_orders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSnapdealOrdersStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
1511
 
-
 
1512
    public void updateFlipkartOrdersStatus(List<List<String>> delivered_orders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartOrdersStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
1513
 
1502
  }
1514
  }
1503
 
1515
 
1504
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1516
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1505
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1517
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1506
      public Factory() {}
1518
      public Factory() {}
Line 6920... Line 6932...
6920
        throw result.ex;
6932
        throw result.ex;
6921
      }
6933
      }
6922
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAirwayBillNo failed: unknown result");
6934
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAirwayBillNo failed: unknown result");
6923
    }
6935
    }
6924
 
6936
 
-
 
6937
    public long getMinCreatedTimeStampUndeliveredOrdersForSource(int source) throws org.apache.thrift.TException
-
 
6938
    {
-
 
6939
      send_getMinCreatedTimeStampUndeliveredOrdersForSource(source);
-
 
6940
      return recv_getMinCreatedTimeStampUndeliveredOrdersForSource();
-
 
6941
    }
-
 
6942
 
-
 
6943
    public void send_getMinCreatedTimeStampUndeliveredOrdersForSource(int source) throws org.apache.thrift.TException
-
 
6944
    {
-
 
6945
      getMinCreatedTimeStampUndeliveredOrdersForSource_args args = new getMinCreatedTimeStampUndeliveredOrdersForSource_args();
-
 
6946
      args.setSource(source);
-
 
6947
      sendBase("getMinCreatedTimeStampUndeliveredOrdersForSource", args);
-
 
6948
    }
-
 
6949
 
-
 
6950
    public long recv_getMinCreatedTimeStampUndeliveredOrdersForSource() throws org.apache.thrift.TException
-
 
6951
    {
-
 
6952
      getMinCreatedTimeStampUndeliveredOrdersForSource_result result = new getMinCreatedTimeStampUndeliveredOrdersForSource_result();
-
 
6953
      receiveBase(result, "getMinCreatedTimeStampUndeliveredOrdersForSource");
-
 
6954
      if (result.isSetSuccess()) {
-
 
6955
        return result.success;
-
 
6956
      }
-
 
6957
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMinCreatedTimeStampUndeliveredOrdersForSource failed: unknown result");
-
 
6958
    }
-
 
6959
 
-
 
6960
    public void updateSnapdealOrdersStatus(List<List<String>> delivered_orders) throws TransactionServiceException, org.apache.thrift.TException
-
 
6961
    {
-
 
6962
      send_updateSnapdealOrdersStatus(delivered_orders);
-
 
6963
      recv_updateSnapdealOrdersStatus();
-
 
6964
    }
-
 
6965
 
-
 
6966
    public void send_updateSnapdealOrdersStatus(List<List<String>> delivered_orders) throws org.apache.thrift.TException
-
 
6967
    {
-
 
6968
      updateSnapdealOrdersStatus_args args = new updateSnapdealOrdersStatus_args();
-
 
6969
      args.setDelivered_orders(delivered_orders);
-
 
6970
      sendBase("updateSnapdealOrdersStatus", args);
-
 
6971
    }
-
 
6972
 
-
 
6973
    public void recv_updateSnapdealOrdersStatus() throws TransactionServiceException, org.apache.thrift.TException
-
 
6974
    {
-
 
6975
      updateSnapdealOrdersStatus_result result = new updateSnapdealOrdersStatus_result();
-
 
6976
      receiveBase(result, "updateSnapdealOrdersStatus");
-
 
6977
      if (result.ex != null) {
-
 
6978
        throw result.ex;
-
 
6979
      }
-
 
6980
      return;
-
 
6981
    }
-
 
6982
 
-
 
6983
    public void updateFlipkartOrdersStatus(List<List<String>> delivered_orders) throws TransactionServiceException, org.apache.thrift.TException
-
 
6984
    {
-
 
6985
      send_updateFlipkartOrdersStatus(delivered_orders);
-
 
6986
      recv_updateFlipkartOrdersStatus();
-
 
6987
    }
-
 
6988
 
-
 
6989
    public void send_updateFlipkartOrdersStatus(List<List<String>> delivered_orders) throws org.apache.thrift.TException
-
 
6990
    {
-
 
6991
      updateFlipkartOrdersStatus_args args = new updateFlipkartOrdersStatus_args();
-
 
6992
      args.setDelivered_orders(delivered_orders);
-
 
6993
      sendBase("updateFlipkartOrdersStatus", args);
-
 
6994
    }
-
 
6995
 
-
 
6996
    public void recv_updateFlipkartOrdersStatus() throws TransactionServiceException, org.apache.thrift.TException
-
 
6997
    {
-
 
6998
      updateFlipkartOrdersStatus_result result = new updateFlipkartOrdersStatus_result();
-
 
6999
      receiveBase(result, "updateFlipkartOrdersStatus");
-
 
7000
      if (result.ex != null) {
-
 
7001
        throw result.ex;
-
 
7002
      }
-
 
7003
      return;
-
 
7004
    }
-
 
7005
 
6925
  }
7006
  }
6926
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7007
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6927
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7008
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6928
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7009
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6929
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7010
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 14552... Line 14633...
14552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14633
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14553
        return (new Client(prot)).recv_getOrderForAirwayBillNo();
14634
        return (new Client(prot)).recv_getOrderForAirwayBillNo();
14554
      }
14635
      }
14555
    }
14636
    }
14556
 
14637
 
-
 
14638
    public void getMinCreatedTimeStampUndeliveredOrdersForSource(int source, org.apache.thrift.async.AsyncMethodCallback<getMinCreatedTimeStampUndeliveredOrdersForSource_call> resultHandler) throws org.apache.thrift.TException {
-
 
14639
      checkReady();
-
 
14640
      getMinCreatedTimeStampUndeliveredOrdersForSource_call method_call = new getMinCreatedTimeStampUndeliveredOrdersForSource_call(source, resultHandler, this, ___protocolFactory, ___transport);
-
 
14641
      this.___currentMethod = method_call;
-
 
14642
      ___manager.call(method_call);
-
 
14643
    }
-
 
14644
 
-
 
14645
    public static class getMinCreatedTimeStampUndeliveredOrdersForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14646
      private int source;
-
 
14647
      public getMinCreatedTimeStampUndeliveredOrdersForSource_call(int source, org.apache.thrift.async.AsyncMethodCallback<getMinCreatedTimeStampUndeliveredOrdersForSource_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 {
-
 
14648
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14649
        this.source = source;
-
 
14650
      }
-
 
14651
 
-
 
14652
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14653
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMinCreatedTimeStampUndeliveredOrdersForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14654
        getMinCreatedTimeStampUndeliveredOrdersForSource_args args = new getMinCreatedTimeStampUndeliveredOrdersForSource_args();
-
 
14655
        args.setSource(source);
-
 
14656
        args.write(prot);
-
 
14657
        prot.writeMessageEnd();
-
 
14658
      }
-
 
14659
 
-
 
14660
      public long getResult() throws org.apache.thrift.TException {
-
 
14661
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14662
          throw new IllegalStateException("Method call not finished!");
-
 
14663
        }
-
 
14664
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14665
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14666
        return (new Client(prot)).recv_getMinCreatedTimeStampUndeliveredOrdersForSource();
-
 
14667
      }
-
 
14668
    }
-
 
14669
 
-
 
14670
    public void updateSnapdealOrdersStatus(List<List<String>> delivered_orders, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealOrdersStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
14671
      checkReady();
-
 
14672
      updateSnapdealOrdersStatus_call method_call = new updateSnapdealOrdersStatus_call(delivered_orders, resultHandler, this, ___protocolFactory, ___transport);
-
 
14673
      this.___currentMethod = method_call;
-
 
14674
      ___manager.call(method_call);
-
 
14675
    }
-
 
14676
 
-
 
14677
    public static class updateSnapdealOrdersStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14678
      private List<List<String>> delivered_orders;
-
 
14679
      public updateSnapdealOrdersStatus_call(List<List<String>> delivered_orders, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealOrdersStatus_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 {
-
 
14680
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14681
        this.delivered_orders = delivered_orders;
-
 
14682
      }
-
 
14683
 
-
 
14684
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14685
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSnapdealOrdersStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14686
        updateSnapdealOrdersStatus_args args = new updateSnapdealOrdersStatus_args();
-
 
14687
        args.setDelivered_orders(delivered_orders);
-
 
14688
        args.write(prot);
-
 
14689
        prot.writeMessageEnd();
-
 
14690
      }
-
 
14691
 
-
 
14692
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
14693
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14694
          throw new IllegalStateException("Method call not finished!");
-
 
14695
        }
-
 
14696
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14697
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14698
        (new Client(prot)).recv_updateSnapdealOrdersStatus();
-
 
14699
      }
-
 
14700
    }
-
 
14701
 
-
 
14702
    public void updateFlipkartOrdersStatus(List<List<String>> delivered_orders, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartOrdersStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
14703
      checkReady();
-
 
14704
      updateFlipkartOrdersStatus_call method_call = new updateFlipkartOrdersStatus_call(delivered_orders, resultHandler, this, ___protocolFactory, ___transport);
-
 
14705
      this.___currentMethod = method_call;
-
 
14706
      ___manager.call(method_call);
-
 
14707
    }
-
 
14708
 
-
 
14709
    public static class updateFlipkartOrdersStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14710
      private List<List<String>> delivered_orders;
-
 
14711
      public updateFlipkartOrdersStatus_call(List<List<String>> delivered_orders, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartOrdersStatus_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 {
-
 
14712
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14713
        this.delivered_orders = delivered_orders;
-
 
14714
      }
-
 
14715
 
-
 
14716
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14717
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateFlipkartOrdersStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14718
        updateFlipkartOrdersStatus_args args = new updateFlipkartOrdersStatus_args();
-
 
14719
        args.setDelivered_orders(delivered_orders);
-
 
14720
        args.write(prot);
-
 
14721
        prot.writeMessageEnd();
-
 
14722
      }
-
 
14723
 
-
 
14724
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
14725
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14726
          throw new IllegalStateException("Method call not finished!");
-
 
14727
        }
-
 
14728
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14729
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14730
        (new Client(prot)).recv_updateFlipkartOrdersStatus();
-
 
14731
      }
-
 
14732
    }
-
 
14733
 
14557
  }
14734
  }
14558
 
14735
 
14559
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14736
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14560
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14737
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14561
    public Processor(I iface) {
14738
    public Processor(I iface) {
Line 14784... Line 14961...
14784
      processMap.put("getFlipkartOrder", new getFlipkartOrder());
14961
      processMap.put("getFlipkartOrder", new getFlipkartOrder());
14785
      processMap.put("getFlipkartOrderByOrderItemId", new getFlipkartOrderByOrderItemId());
14962
      processMap.put("getFlipkartOrderByOrderItemId", new getFlipkartOrderByOrderItemId());
14786
      processMap.put("updateFlipkartOrderDatesAndAWB", new updateFlipkartOrderDatesAndAWB());
14963
      processMap.put("updateFlipkartOrderDatesAndAWB", new updateFlipkartOrderDatesAndAWB());
14787
      processMap.put("getOrdersCreatedAfterTimestampForSource", new getOrdersCreatedAfterTimestampForSource());
14964
      processMap.put("getOrdersCreatedAfterTimestampForSource", new getOrdersCreatedAfterTimestampForSource());
14788
      processMap.put("getOrderForAirwayBillNo", new getOrderForAirwayBillNo());
14965
      processMap.put("getOrderForAirwayBillNo", new getOrderForAirwayBillNo());
-
 
14966
      processMap.put("getMinCreatedTimeStampUndeliveredOrdersForSource", new getMinCreatedTimeStampUndeliveredOrdersForSource());
-
 
14967
      processMap.put("updateSnapdealOrdersStatus", new updateSnapdealOrdersStatus());
-
 
14968
      processMap.put("updateFlipkartOrdersStatus", new updateFlipkartOrdersStatus());
14789
      return processMap;
14969
      return processMap;
14790
    }
14970
    }
14791
 
14971
 
14792
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14972
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14793
      public createTransaction() {
14973
      public createTransaction() {
Line 18746... Line 18926...
18746
        }
18926
        }
18747
        return result;
18927
        return result;
18748
      }
18928
      }
18749
    }
18929
    }
18750
 
18930
 
-
 
18931
    private static class getMinCreatedTimeStampUndeliveredOrdersForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMinCreatedTimeStampUndeliveredOrdersForSource_args> {
-
 
18932
      public getMinCreatedTimeStampUndeliveredOrdersForSource() {
-
 
18933
        super("getMinCreatedTimeStampUndeliveredOrdersForSource");
-
 
18934
      }
-
 
18935
 
-
 
18936
      protected getMinCreatedTimeStampUndeliveredOrdersForSource_args getEmptyArgsInstance() {
-
 
18937
        return new getMinCreatedTimeStampUndeliveredOrdersForSource_args();
-
 
18938
      }
-
 
18939
 
-
 
18940
      protected getMinCreatedTimeStampUndeliveredOrdersForSource_result getResult(I iface, getMinCreatedTimeStampUndeliveredOrdersForSource_args args) throws org.apache.thrift.TException {
-
 
18941
        getMinCreatedTimeStampUndeliveredOrdersForSource_result result = new getMinCreatedTimeStampUndeliveredOrdersForSource_result();
-
 
18942
        result.success = iface.getMinCreatedTimeStampUndeliveredOrdersForSource(args.source);
-
 
18943
        result.setSuccessIsSet(true);
-
 
18944
        return result;
-
 
18945
      }
-
 
18946
    }
-
 
18947
 
-
 
18948
    private static class updateSnapdealOrdersStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateSnapdealOrdersStatus_args> {
-
 
18949
      public updateSnapdealOrdersStatus() {
-
 
18950
        super("updateSnapdealOrdersStatus");
-
 
18951
      }
-
 
18952
 
-
 
18953
      protected updateSnapdealOrdersStatus_args getEmptyArgsInstance() {
-
 
18954
        return new updateSnapdealOrdersStatus_args();
-
 
18955
      }
-
 
18956
 
-
 
18957
      protected updateSnapdealOrdersStatus_result getResult(I iface, updateSnapdealOrdersStatus_args args) throws org.apache.thrift.TException {
-
 
18958
        updateSnapdealOrdersStatus_result result = new updateSnapdealOrdersStatus_result();
-
 
18959
        try {
-
 
18960
          iface.updateSnapdealOrdersStatus(args.delivered_orders);
-
 
18961
        } catch (TransactionServiceException ex) {
-
 
18962
          result.ex = ex;
-
 
18963
        }
-
 
18964
        return result;
-
 
18965
      }
-
 
18966
    }
-
 
18967
 
-
 
18968
    private static class updateFlipkartOrdersStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateFlipkartOrdersStatus_args> {
-
 
18969
      public updateFlipkartOrdersStatus() {
-
 
18970
        super("updateFlipkartOrdersStatus");
-
 
18971
      }
-
 
18972
 
-
 
18973
      protected updateFlipkartOrdersStatus_args getEmptyArgsInstance() {
-
 
18974
        return new updateFlipkartOrdersStatus_args();
-
 
18975
      }
-
 
18976
 
-
 
18977
      protected updateFlipkartOrdersStatus_result getResult(I iface, updateFlipkartOrdersStatus_args args) throws org.apache.thrift.TException {
-
 
18978
        updateFlipkartOrdersStatus_result result = new updateFlipkartOrdersStatus_result();
-
 
18979
        try {
-
 
18980
          iface.updateFlipkartOrdersStatus(args.delivered_orders);
-
 
18981
        } catch (TransactionServiceException ex) {
-
 
18982
          result.ex = ex;
-
 
18983
        }
-
 
18984
        return result;
-
 
18985
      }
-
 
18986
    }
-
 
18987
 
18751
  }
18988
  }
18752
 
18989
 
18753
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18990
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18755
 
18992
 
Line 173405... Line 173642...
173405
      sb.append("ex:");
173642
      sb.append("ex:");
173406
      if (this.ex == null) {
173643
      if (this.ex == null) {
173407
        sb.append("null");
173644
        sb.append("null");
173408
      } else {
173645
      } else {
173409
        sb.append(this.ex);
173646
        sb.append(this.ex);
-
 
173647
      }
-
 
173648
      first = false;
-
 
173649
      sb.append(")");
-
 
173650
      return sb.toString();
-
 
173651
    }
-
 
173652
 
-
 
173653
    public void validate() throws org.apache.thrift.TException {
-
 
173654
      // check for required fields
-
 
173655
    }
-
 
173656
 
-
 
173657
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
173658
      try {
-
 
173659
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
173660
      } catch (org.apache.thrift.TException te) {
-
 
173661
        throw new java.io.IOException(te);
-
 
173662
      }
-
 
173663
    }
-
 
173664
 
-
 
173665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
173666
      try {
-
 
173667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
173668
      } catch (org.apache.thrift.TException te) {
-
 
173669
        throw new java.io.IOException(te);
-
 
173670
      }
-
 
173671
    }
-
 
173672
 
-
 
173673
  }
-
 
173674
 
-
 
173675
  public static class getMinCreatedTimeStampUndeliveredOrdersForSource_args implements org.apache.thrift.TBase<getMinCreatedTimeStampUndeliveredOrdersForSource_args, getMinCreatedTimeStampUndeliveredOrdersForSource_args._Fields>, java.io.Serializable, Cloneable   {
-
 
173676
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMinCreatedTimeStampUndeliveredOrdersForSource_args");
-
 
173677
 
-
 
173678
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
173679
 
-
 
173680
    private int source; // required
-
 
173681
 
-
 
173682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
173683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
173684
      SOURCE((short)1, "source");
-
 
173685
 
-
 
173686
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
173687
 
-
 
173688
      static {
-
 
173689
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
173690
          byName.put(field.getFieldName(), field);
-
 
173691
        }
-
 
173692
      }
-
 
173693
 
-
 
173694
      /**
-
 
173695
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
173696
       */
-
 
173697
      public static _Fields findByThriftId(int fieldId) {
-
 
173698
        switch(fieldId) {
-
 
173699
          case 1: // SOURCE
-
 
173700
            return SOURCE;
-
 
173701
          default:
-
 
173702
            return null;
-
 
173703
        }
-
 
173704
      }
-
 
173705
 
-
 
173706
      /**
-
 
173707
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
173708
       * if it is not found.
-
 
173709
       */
-
 
173710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
173711
        _Fields fields = findByThriftId(fieldId);
-
 
173712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
173713
        return fields;
-
 
173714
      }
-
 
173715
 
-
 
173716
      /**
-
 
173717
       * Find the _Fields constant that matches name, or null if its not found.
-
 
173718
       */
-
 
173719
      public static _Fields findByName(String name) {
-
 
173720
        return byName.get(name);
-
 
173721
      }
-
 
173722
 
-
 
173723
      private final short _thriftId;
-
 
173724
      private final String _fieldName;
-
 
173725
 
-
 
173726
      _Fields(short thriftId, String fieldName) {
-
 
173727
        _thriftId = thriftId;
-
 
173728
        _fieldName = fieldName;
-
 
173729
      }
-
 
173730
 
-
 
173731
      public short getThriftFieldId() {
-
 
173732
        return _thriftId;
-
 
173733
      }
-
 
173734
 
-
 
173735
      public String getFieldName() {
-
 
173736
        return _fieldName;
-
 
173737
      }
-
 
173738
    }
-
 
173739
 
-
 
173740
    // isset id assignments
-
 
173741
    private static final int __SOURCE_ISSET_ID = 0;
-
 
173742
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
173743
 
-
 
173744
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
173745
    static {
-
 
173746
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
173747
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
173748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
173749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
173750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMinCreatedTimeStampUndeliveredOrdersForSource_args.class, metaDataMap);
-
 
173751
    }
-
 
173752
 
-
 
173753
    public getMinCreatedTimeStampUndeliveredOrdersForSource_args() {
-
 
173754
    }
-
 
173755
 
-
 
173756
    public getMinCreatedTimeStampUndeliveredOrdersForSource_args(
-
 
173757
      int source)
-
 
173758
    {
-
 
173759
      this();
-
 
173760
      this.source = source;
-
 
173761
      setSourceIsSet(true);
-
 
173762
    }
-
 
173763
 
-
 
173764
    /**
-
 
173765
     * Performs a deep copy on <i>other</i>.
-
 
173766
     */
-
 
173767
    public getMinCreatedTimeStampUndeliveredOrdersForSource_args(getMinCreatedTimeStampUndeliveredOrdersForSource_args other) {
-
 
173768
      __isset_bit_vector.clear();
-
 
173769
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
173770
      this.source = other.source;
-
 
173771
    }
-
 
173772
 
-
 
173773
    public getMinCreatedTimeStampUndeliveredOrdersForSource_args deepCopy() {
-
 
173774
      return new getMinCreatedTimeStampUndeliveredOrdersForSource_args(this);
-
 
173775
    }
-
 
173776
 
-
 
173777
    @Override
-
 
173778
    public void clear() {
-
 
173779
      setSourceIsSet(false);
-
 
173780
      this.source = 0;
-
 
173781
    }
-
 
173782
 
-
 
173783
    public int getSource() {
-
 
173784
      return this.source;
-
 
173785
    }
-
 
173786
 
-
 
173787
    public void setSource(int source) {
-
 
173788
      this.source = source;
-
 
173789
      setSourceIsSet(true);
-
 
173790
    }
-
 
173791
 
-
 
173792
    public void unsetSource() {
-
 
173793
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
173794
    }
-
 
173795
 
-
 
173796
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
173797
    public boolean isSetSource() {
-
 
173798
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
173799
    }
-
 
173800
 
-
 
173801
    public void setSourceIsSet(boolean value) {
-
 
173802
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
173803
    }
-
 
173804
 
-
 
173805
    public void setFieldValue(_Fields field, Object value) {
-
 
173806
      switch (field) {
-
 
173807
      case SOURCE:
-
 
173808
        if (value == null) {
-
 
173809
          unsetSource();
-
 
173810
        } else {
-
 
173811
          setSource((Integer)value);
-
 
173812
        }
-
 
173813
        break;
-
 
173814
 
-
 
173815
      }
-
 
173816
    }
-
 
173817
 
-
 
173818
    public Object getFieldValue(_Fields field) {
-
 
173819
      switch (field) {
-
 
173820
      case SOURCE:
-
 
173821
        return Integer.valueOf(getSource());
-
 
173822
 
-
 
173823
      }
-
 
173824
      throw new IllegalStateException();
-
 
173825
    }
-
 
173826
 
-
 
173827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
173828
    public boolean isSet(_Fields field) {
-
 
173829
      if (field == null) {
-
 
173830
        throw new IllegalArgumentException();
-
 
173831
      }
-
 
173832
 
-
 
173833
      switch (field) {
-
 
173834
      case SOURCE:
-
 
173835
        return isSetSource();
-
 
173836
      }
-
 
173837
      throw new IllegalStateException();
-
 
173838
    }
-
 
173839
 
-
 
173840
    @Override
-
 
173841
    public boolean equals(Object that) {
-
 
173842
      if (that == null)
-
 
173843
        return false;
-
 
173844
      if (that instanceof getMinCreatedTimeStampUndeliveredOrdersForSource_args)
-
 
173845
        return this.equals((getMinCreatedTimeStampUndeliveredOrdersForSource_args)that);
-
 
173846
      return false;
-
 
173847
    }
-
 
173848
 
-
 
173849
    public boolean equals(getMinCreatedTimeStampUndeliveredOrdersForSource_args that) {
-
 
173850
      if (that == null)
-
 
173851
        return false;
-
 
173852
 
-
 
173853
      boolean this_present_source = true;
-
 
173854
      boolean that_present_source = true;
-
 
173855
      if (this_present_source || that_present_source) {
-
 
173856
        if (!(this_present_source && that_present_source))
-
 
173857
          return false;
-
 
173858
        if (this.source != that.source)
-
 
173859
          return false;
-
 
173860
      }
-
 
173861
 
-
 
173862
      return true;
-
 
173863
    }
-
 
173864
 
-
 
173865
    @Override
-
 
173866
    public int hashCode() {
-
 
173867
      return 0;
-
 
173868
    }
-
 
173869
 
-
 
173870
    public int compareTo(getMinCreatedTimeStampUndeliveredOrdersForSource_args other) {
-
 
173871
      if (!getClass().equals(other.getClass())) {
-
 
173872
        return getClass().getName().compareTo(other.getClass().getName());
-
 
173873
      }
-
 
173874
 
-
 
173875
      int lastComparison = 0;
-
 
173876
      getMinCreatedTimeStampUndeliveredOrdersForSource_args typedOther = (getMinCreatedTimeStampUndeliveredOrdersForSource_args)other;
-
 
173877
 
-
 
173878
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
173879
      if (lastComparison != 0) {
-
 
173880
        return lastComparison;
-
 
173881
      }
-
 
173882
      if (isSetSource()) {
-
 
173883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
173884
        if (lastComparison != 0) {
-
 
173885
          return lastComparison;
-
 
173886
        }
-
 
173887
      }
-
 
173888
      return 0;
-
 
173889
    }
-
 
173890
 
-
 
173891
    public _Fields fieldForId(int fieldId) {
-
 
173892
      return _Fields.findByThriftId(fieldId);
-
 
173893
    }
-
 
173894
 
-
 
173895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
173896
      org.apache.thrift.protocol.TField field;
-
 
173897
      iprot.readStructBegin();
-
 
173898
      while (true)
-
 
173899
      {
-
 
173900
        field = iprot.readFieldBegin();
-
 
173901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
173902
          break;
-
 
173903
        }
-
 
173904
        switch (field.id) {
-
 
173905
          case 1: // SOURCE
-
 
173906
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
173907
              this.source = iprot.readI32();
-
 
173908
              setSourceIsSet(true);
-
 
173909
            } else { 
-
 
173910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
173911
            }
-
 
173912
            break;
-
 
173913
          default:
-
 
173914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
173915
        }
-
 
173916
        iprot.readFieldEnd();
-
 
173917
      }
-
 
173918
      iprot.readStructEnd();
-
 
173919
      validate();
-
 
173920
    }
-
 
173921
 
-
 
173922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
173923
      validate();
-
 
173924
 
-
 
173925
      oprot.writeStructBegin(STRUCT_DESC);
-
 
173926
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
173927
      oprot.writeI32(this.source);
-
 
173928
      oprot.writeFieldEnd();
-
 
173929
      oprot.writeFieldStop();
-
 
173930
      oprot.writeStructEnd();
-
 
173931
    }
-
 
173932
 
-
 
173933
    @Override
-
 
173934
    public String toString() {
-
 
173935
      StringBuilder sb = new StringBuilder("getMinCreatedTimeStampUndeliveredOrdersForSource_args(");
-
 
173936
      boolean first = true;
-
 
173937
 
-
 
173938
      sb.append("source:");
-
 
173939
      sb.append(this.source);
-
 
173940
      first = false;
-
 
173941
      sb.append(")");
-
 
173942
      return sb.toString();
-
 
173943
    }
-
 
173944
 
-
 
173945
    public void validate() throws org.apache.thrift.TException {
-
 
173946
      // check for required fields
-
 
173947
    }
-
 
173948
 
-
 
173949
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
173950
      try {
-
 
173951
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
173952
      } catch (org.apache.thrift.TException te) {
-
 
173953
        throw new java.io.IOException(te);
-
 
173954
      }
-
 
173955
    }
-
 
173956
 
-
 
173957
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
173958
      try {
-
 
173959
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
173960
        __isset_bit_vector = new BitSet(1);
-
 
173961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
173962
      } catch (org.apache.thrift.TException te) {
-
 
173963
        throw new java.io.IOException(te);
-
 
173964
      }
-
 
173965
    }
-
 
173966
 
-
 
173967
  }
-
 
173968
 
-
 
173969
  public static class getMinCreatedTimeStampUndeliveredOrdersForSource_result implements org.apache.thrift.TBase<getMinCreatedTimeStampUndeliveredOrdersForSource_result, getMinCreatedTimeStampUndeliveredOrdersForSource_result._Fields>, java.io.Serializable, Cloneable   {
-
 
173970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMinCreatedTimeStampUndeliveredOrdersForSource_result");
-
 
173971
 
-
 
173972
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
173973
 
-
 
173974
    private long success; // required
-
 
173975
 
-
 
173976
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
173977
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
173978
      SUCCESS((short)0, "success");
-
 
173979
 
-
 
173980
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
173981
 
-
 
173982
      static {
-
 
173983
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
173984
          byName.put(field.getFieldName(), field);
-
 
173985
        }
-
 
173986
      }
-
 
173987
 
-
 
173988
      /**
-
 
173989
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
173990
       */
-
 
173991
      public static _Fields findByThriftId(int fieldId) {
-
 
173992
        switch(fieldId) {
-
 
173993
          case 0: // SUCCESS
-
 
173994
            return SUCCESS;
-
 
173995
          default:
-
 
173996
            return null;
-
 
173997
        }
-
 
173998
      }
-
 
173999
 
-
 
174000
      /**
-
 
174001
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
174002
       * if it is not found.
-
 
174003
       */
-
 
174004
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
174005
        _Fields fields = findByThriftId(fieldId);
-
 
174006
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
174007
        return fields;
-
 
174008
      }
-
 
174009
 
-
 
174010
      /**
-
 
174011
       * Find the _Fields constant that matches name, or null if its not found.
-
 
174012
       */
-
 
174013
      public static _Fields findByName(String name) {
-
 
174014
        return byName.get(name);
-
 
174015
      }
-
 
174016
 
-
 
174017
      private final short _thriftId;
-
 
174018
      private final String _fieldName;
-
 
174019
 
-
 
174020
      _Fields(short thriftId, String fieldName) {
-
 
174021
        _thriftId = thriftId;
-
 
174022
        _fieldName = fieldName;
-
 
174023
      }
-
 
174024
 
-
 
174025
      public short getThriftFieldId() {
-
 
174026
        return _thriftId;
-
 
174027
      }
-
 
174028
 
-
 
174029
      public String getFieldName() {
-
 
174030
        return _fieldName;
-
 
174031
      }
-
 
174032
    }
-
 
174033
 
-
 
174034
    // isset id assignments
-
 
174035
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
174036
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
174037
 
-
 
174038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
174039
    static {
-
 
174040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
174041
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
174042
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
174043
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
174044
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMinCreatedTimeStampUndeliveredOrdersForSource_result.class, metaDataMap);
-
 
174045
    }
-
 
174046
 
-
 
174047
    public getMinCreatedTimeStampUndeliveredOrdersForSource_result() {
-
 
174048
    }
-
 
174049
 
-
 
174050
    public getMinCreatedTimeStampUndeliveredOrdersForSource_result(
-
 
174051
      long success)
-
 
174052
    {
-
 
174053
      this();
-
 
174054
      this.success = success;
-
 
174055
      setSuccessIsSet(true);
-
 
174056
    }
-
 
174057
 
-
 
174058
    /**
-
 
174059
     * Performs a deep copy on <i>other</i>.
-
 
174060
     */
-
 
174061
    public getMinCreatedTimeStampUndeliveredOrdersForSource_result(getMinCreatedTimeStampUndeliveredOrdersForSource_result other) {
-
 
174062
      __isset_bit_vector.clear();
-
 
174063
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
174064
      this.success = other.success;
-
 
174065
    }
-
 
174066
 
-
 
174067
    public getMinCreatedTimeStampUndeliveredOrdersForSource_result deepCopy() {
-
 
174068
      return new getMinCreatedTimeStampUndeliveredOrdersForSource_result(this);
-
 
174069
    }
-
 
174070
 
-
 
174071
    @Override
-
 
174072
    public void clear() {
-
 
174073
      setSuccessIsSet(false);
-
 
174074
      this.success = 0;
-
 
174075
    }
-
 
174076
 
-
 
174077
    public long getSuccess() {
-
 
174078
      return this.success;
-
 
174079
    }
-
 
174080
 
-
 
174081
    public void setSuccess(long success) {
-
 
174082
      this.success = success;
-
 
174083
      setSuccessIsSet(true);
-
 
174084
    }
-
 
174085
 
-
 
174086
    public void unsetSuccess() {
-
 
174087
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
174088
    }
-
 
174089
 
-
 
174090
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
174091
    public boolean isSetSuccess() {
-
 
174092
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
174093
    }
-
 
174094
 
-
 
174095
    public void setSuccessIsSet(boolean value) {
-
 
174096
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
174097
    }
-
 
174098
 
-
 
174099
    public void setFieldValue(_Fields field, Object value) {
-
 
174100
      switch (field) {
-
 
174101
      case SUCCESS:
-
 
174102
        if (value == null) {
-
 
174103
          unsetSuccess();
-
 
174104
        } else {
-
 
174105
          setSuccess((Long)value);
-
 
174106
        }
-
 
174107
        break;
-
 
174108
 
-
 
174109
      }
-
 
174110
    }
-
 
174111
 
-
 
174112
    public Object getFieldValue(_Fields field) {
-
 
174113
      switch (field) {
-
 
174114
      case SUCCESS:
-
 
174115
        return Long.valueOf(getSuccess());
-
 
174116
 
-
 
174117
      }
-
 
174118
      throw new IllegalStateException();
-
 
174119
    }
-
 
174120
 
-
 
174121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
174122
    public boolean isSet(_Fields field) {
-
 
174123
      if (field == null) {
-
 
174124
        throw new IllegalArgumentException();
-
 
174125
      }
-
 
174126
 
-
 
174127
      switch (field) {
-
 
174128
      case SUCCESS:
-
 
174129
        return isSetSuccess();
-
 
174130
      }
-
 
174131
      throw new IllegalStateException();
-
 
174132
    }
-
 
174133
 
-
 
174134
    @Override
-
 
174135
    public boolean equals(Object that) {
-
 
174136
      if (that == null)
-
 
174137
        return false;
-
 
174138
      if (that instanceof getMinCreatedTimeStampUndeliveredOrdersForSource_result)
-
 
174139
        return this.equals((getMinCreatedTimeStampUndeliveredOrdersForSource_result)that);
-
 
174140
      return false;
-
 
174141
    }
-
 
174142
 
-
 
174143
    public boolean equals(getMinCreatedTimeStampUndeliveredOrdersForSource_result that) {
-
 
174144
      if (that == null)
-
 
174145
        return false;
-
 
174146
 
-
 
174147
      boolean this_present_success = true;
-
 
174148
      boolean that_present_success = true;
-
 
174149
      if (this_present_success || that_present_success) {
-
 
174150
        if (!(this_present_success && that_present_success))
-
 
174151
          return false;
-
 
174152
        if (this.success != that.success)
-
 
174153
          return false;
-
 
174154
      }
-
 
174155
 
-
 
174156
      return true;
-
 
174157
    }
-
 
174158
 
-
 
174159
    @Override
-
 
174160
    public int hashCode() {
-
 
174161
      return 0;
-
 
174162
    }
-
 
174163
 
-
 
174164
    public int compareTo(getMinCreatedTimeStampUndeliveredOrdersForSource_result other) {
-
 
174165
      if (!getClass().equals(other.getClass())) {
-
 
174166
        return getClass().getName().compareTo(other.getClass().getName());
-
 
174167
      }
-
 
174168
 
-
 
174169
      int lastComparison = 0;
-
 
174170
      getMinCreatedTimeStampUndeliveredOrdersForSource_result typedOther = (getMinCreatedTimeStampUndeliveredOrdersForSource_result)other;
-
 
174171
 
-
 
174172
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
174173
      if (lastComparison != 0) {
-
 
174174
        return lastComparison;
-
 
174175
      }
-
 
174176
      if (isSetSuccess()) {
-
 
174177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
174178
        if (lastComparison != 0) {
-
 
174179
          return lastComparison;
-
 
174180
        }
-
 
174181
      }
-
 
174182
      return 0;
-
 
174183
    }
-
 
174184
 
-
 
174185
    public _Fields fieldForId(int fieldId) {
-
 
174186
      return _Fields.findByThriftId(fieldId);
-
 
174187
    }
-
 
174188
 
-
 
174189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
174190
      org.apache.thrift.protocol.TField field;
-
 
174191
      iprot.readStructBegin();
-
 
174192
      while (true)
-
 
174193
      {
-
 
174194
        field = iprot.readFieldBegin();
-
 
174195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
174196
          break;
-
 
174197
        }
-
 
174198
        switch (field.id) {
-
 
174199
          case 0: // SUCCESS
-
 
174200
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
174201
              this.success = iprot.readI64();
-
 
174202
              setSuccessIsSet(true);
-
 
174203
            } else { 
-
 
174204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
174205
            }
-
 
174206
            break;
-
 
174207
          default:
-
 
174208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
174209
        }
-
 
174210
        iprot.readFieldEnd();
-
 
174211
      }
-
 
174212
      iprot.readStructEnd();
-
 
174213
      validate();
-
 
174214
    }
-
 
174215
 
-
 
174216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
174217
      oprot.writeStructBegin(STRUCT_DESC);
-
 
174218
 
-
 
174219
      if (this.isSetSuccess()) {
-
 
174220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
174221
        oprot.writeI64(this.success);
-
 
174222
        oprot.writeFieldEnd();
-
 
174223
      }
-
 
174224
      oprot.writeFieldStop();
-
 
174225
      oprot.writeStructEnd();
-
 
174226
    }
-
 
174227
 
-
 
174228
    @Override
-
 
174229
    public String toString() {
-
 
174230
      StringBuilder sb = new StringBuilder("getMinCreatedTimeStampUndeliveredOrdersForSource_result(");
-
 
174231
      boolean first = true;
-
 
174232
 
-
 
174233
      sb.append("success:");
-
 
174234
      sb.append(this.success);
-
 
174235
      first = false;
-
 
174236
      sb.append(")");
-
 
174237
      return sb.toString();
-
 
174238
    }
-
 
174239
 
-
 
174240
    public void validate() throws org.apache.thrift.TException {
-
 
174241
      // check for required fields
-
 
174242
    }
-
 
174243
 
-
 
174244
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
174245
      try {
-
 
174246
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
174247
      } catch (org.apache.thrift.TException te) {
-
 
174248
        throw new java.io.IOException(te);
-
 
174249
      }
-
 
174250
    }
-
 
174251
 
-
 
174252
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
174253
      try {
-
 
174254
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
174255
      } catch (org.apache.thrift.TException te) {
-
 
174256
        throw new java.io.IOException(te);
-
 
174257
      }
-
 
174258
    }
-
 
174259
 
-
 
174260
  }
-
 
174261
 
-
 
174262
  public static class updateSnapdealOrdersStatus_args implements org.apache.thrift.TBase<updateSnapdealOrdersStatus_args, updateSnapdealOrdersStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
174263
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealOrdersStatus_args");
-
 
174264
 
-
 
174265
    private static final org.apache.thrift.protocol.TField DELIVERED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("delivered_orders", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
174266
 
-
 
174267
    private List<List<String>> delivered_orders; // required
-
 
174268
 
-
 
174269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
174270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
174271
      DELIVERED_ORDERS((short)1, "delivered_orders");
-
 
174272
 
-
 
174273
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
174274
 
-
 
174275
      static {
-
 
174276
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
174277
          byName.put(field.getFieldName(), field);
-
 
174278
        }
-
 
174279
      }
-
 
174280
 
-
 
174281
      /**
-
 
174282
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
174283
       */
-
 
174284
      public static _Fields findByThriftId(int fieldId) {
-
 
174285
        switch(fieldId) {
-
 
174286
          case 1: // DELIVERED_ORDERS
-
 
174287
            return DELIVERED_ORDERS;
-
 
174288
          default:
-
 
174289
            return null;
-
 
174290
        }
-
 
174291
      }
-
 
174292
 
-
 
174293
      /**
-
 
174294
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
174295
       * if it is not found.
-
 
174296
       */
-
 
174297
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
174298
        _Fields fields = findByThriftId(fieldId);
-
 
174299
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
174300
        return fields;
-
 
174301
      }
-
 
174302
 
-
 
174303
      /**
-
 
174304
       * Find the _Fields constant that matches name, or null if its not found.
-
 
174305
       */
-
 
174306
      public static _Fields findByName(String name) {
-
 
174307
        return byName.get(name);
-
 
174308
      }
-
 
174309
 
-
 
174310
      private final short _thriftId;
-
 
174311
      private final String _fieldName;
-
 
174312
 
-
 
174313
      _Fields(short thriftId, String fieldName) {
-
 
174314
        _thriftId = thriftId;
-
 
174315
        _fieldName = fieldName;
-
 
174316
      }
-
 
174317
 
-
 
174318
      public short getThriftFieldId() {
-
 
174319
        return _thriftId;
-
 
174320
      }
-
 
174321
 
-
 
174322
      public String getFieldName() {
-
 
174323
        return _fieldName;
-
 
174324
      }
-
 
174325
    }
-
 
174326
 
-
 
174327
    // isset id assignments
-
 
174328
 
-
 
174329
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
174330
    static {
-
 
174331
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
174332
      tmpMap.put(_Fields.DELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("delivered_orders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
174333
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
174334
              new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
174335
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
-
 
174336
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
174337
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealOrdersStatus_args.class, metaDataMap);
-
 
174338
    }
-
 
174339
 
-
 
174340
    public updateSnapdealOrdersStatus_args() {
-
 
174341
    }
-
 
174342
 
-
 
174343
    public updateSnapdealOrdersStatus_args(
-
 
174344
      List<List<String>> delivered_orders)
-
 
174345
    {
-
 
174346
      this();
-
 
174347
      this.delivered_orders = delivered_orders;
-
 
174348
    }
-
 
174349
 
-
 
174350
    /**
-
 
174351
     * Performs a deep copy on <i>other</i>.
-
 
174352
     */
-
 
174353
    public updateSnapdealOrdersStatus_args(updateSnapdealOrdersStatus_args other) {
-
 
174354
      if (other.isSetDelivered_orders()) {
-
 
174355
        List<List<String>> __this__delivered_orders = new ArrayList<List<String>>();
-
 
174356
        for (List<String> other_element : other.delivered_orders) {
-
 
174357
          List<String> __this__delivered_orders_copy = new ArrayList<String>();
-
 
174358
          for (String other_element_element : other_element) {
-
 
174359
            __this__delivered_orders_copy.add(other_element_element);
-
 
174360
          }
-
 
174361
          __this__delivered_orders.add(__this__delivered_orders_copy);
-
 
174362
        }
-
 
174363
        this.delivered_orders = __this__delivered_orders;
-
 
174364
      }
-
 
174365
    }
-
 
174366
 
-
 
174367
    public updateSnapdealOrdersStatus_args deepCopy() {
-
 
174368
      return new updateSnapdealOrdersStatus_args(this);
-
 
174369
    }
-
 
174370
 
-
 
174371
    @Override
-
 
174372
    public void clear() {
-
 
174373
      this.delivered_orders = null;
-
 
174374
    }
-
 
174375
 
-
 
174376
    public int getDelivered_ordersSize() {
-
 
174377
      return (this.delivered_orders == null) ? 0 : this.delivered_orders.size();
-
 
174378
    }
-
 
174379
 
-
 
174380
    public java.util.Iterator<List<String>> getDelivered_ordersIterator() {
-
 
174381
      return (this.delivered_orders == null) ? null : this.delivered_orders.iterator();
-
 
174382
    }
-
 
174383
 
-
 
174384
    public void addToDelivered_orders(List<String> elem) {
-
 
174385
      if (this.delivered_orders == null) {
-
 
174386
        this.delivered_orders = new ArrayList<List<String>>();
-
 
174387
      }
-
 
174388
      this.delivered_orders.add(elem);
-
 
174389
    }
-
 
174390
 
-
 
174391
    public List<List<String>> getDelivered_orders() {
-
 
174392
      return this.delivered_orders;
-
 
174393
    }
-
 
174394
 
-
 
174395
    public void setDelivered_orders(List<List<String>> delivered_orders) {
-
 
174396
      this.delivered_orders = delivered_orders;
-
 
174397
    }
-
 
174398
 
-
 
174399
    public void unsetDelivered_orders() {
-
 
174400
      this.delivered_orders = null;
-
 
174401
    }
-
 
174402
 
-
 
174403
    /** Returns true if field delivered_orders is set (has been assigned a value) and false otherwise */
-
 
174404
    public boolean isSetDelivered_orders() {
-
 
174405
      return this.delivered_orders != null;
-
 
174406
    }
-
 
174407
 
-
 
174408
    public void setDelivered_ordersIsSet(boolean value) {
-
 
174409
      if (!value) {
-
 
174410
        this.delivered_orders = null;
-
 
174411
      }
-
 
174412
    }
-
 
174413
 
-
 
174414
    public void setFieldValue(_Fields field, Object value) {
-
 
174415
      switch (field) {
-
 
174416
      case DELIVERED_ORDERS:
-
 
174417
        if (value == null) {
-
 
174418
          unsetDelivered_orders();
-
 
174419
        } else {
-
 
174420
          setDelivered_orders((List<List<String>>)value);
-
 
174421
        }
-
 
174422
        break;
-
 
174423
 
-
 
174424
      }
-
 
174425
    }
-
 
174426
 
-
 
174427
    public Object getFieldValue(_Fields field) {
-
 
174428
      switch (field) {
-
 
174429
      case DELIVERED_ORDERS:
-
 
174430
        return getDelivered_orders();
-
 
174431
 
-
 
174432
      }
-
 
174433
      throw new IllegalStateException();
-
 
174434
    }
-
 
174435
 
-
 
174436
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
174437
    public boolean isSet(_Fields field) {
-
 
174438
      if (field == null) {
-
 
174439
        throw new IllegalArgumentException();
-
 
174440
      }
-
 
174441
 
-
 
174442
      switch (field) {
-
 
174443
      case DELIVERED_ORDERS:
-
 
174444
        return isSetDelivered_orders();
-
 
174445
      }
-
 
174446
      throw new IllegalStateException();
-
 
174447
    }
-
 
174448
 
-
 
174449
    @Override
-
 
174450
    public boolean equals(Object that) {
-
 
174451
      if (that == null)
-
 
174452
        return false;
-
 
174453
      if (that instanceof updateSnapdealOrdersStatus_args)
-
 
174454
        return this.equals((updateSnapdealOrdersStatus_args)that);
-
 
174455
      return false;
-
 
174456
    }
-
 
174457
 
-
 
174458
    public boolean equals(updateSnapdealOrdersStatus_args that) {
-
 
174459
      if (that == null)
-
 
174460
        return false;
-
 
174461
 
-
 
174462
      boolean this_present_delivered_orders = true && this.isSetDelivered_orders();
-
 
174463
      boolean that_present_delivered_orders = true && that.isSetDelivered_orders();
-
 
174464
      if (this_present_delivered_orders || that_present_delivered_orders) {
-
 
174465
        if (!(this_present_delivered_orders && that_present_delivered_orders))
-
 
174466
          return false;
-
 
174467
        if (!this.delivered_orders.equals(that.delivered_orders))
-
 
174468
          return false;
-
 
174469
      }
-
 
174470
 
-
 
174471
      return true;
-
 
174472
    }
-
 
174473
 
-
 
174474
    @Override
-
 
174475
    public int hashCode() {
-
 
174476
      return 0;
-
 
174477
    }
-
 
174478
 
-
 
174479
    public int compareTo(updateSnapdealOrdersStatus_args other) {
-
 
174480
      if (!getClass().equals(other.getClass())) {
-
 
174481
        return getClass().getName().compareTo(other.getClass().getName());
-
 
174482
      }
-
 
174483
 
-
 
174484
      int lastComparison = 0;
-
 
174485
      updateSnapdealOrdersStatus_args typedOther = (updateSnapdealOrdersStatus_args)other;
-
 
174486
 
-
 
174487
      lastComparison = Boolean.valueOf(isSetDelivered_orders()).compareTo(typedOther.isSetDelivered_orders());
-
 
174488
      if (lastComparison != 0) {
-
 
174489
        return lastComparison;
-
 
174490
      }
-
 
174491
      if (isSetDelivered_orders()) {
-
 
174492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delivered_orders, typedOther.delivered_orders);
-
 
174493
        if (lastComparison != 0) {
-
 
174494
          return lastComparison;
-
 
174495
        }
-
 
174496
      }
-
 
174497
      return 0;
-
 
174498
    }
-
 
174499
 
-
 
174500
    public _Fields fieldForId(int fieldId) {
-
 
174501
      return _Fields.findByThriftId(fieldId);
-
 
174502
    }
-
 
174503
 
-
 
174504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
174505
      org.apache.thrift.protocol.TField field;
-
 
174506
      iprot.readStructBegin();
-
 
174507
      while (true)
-
 
174508
      {
-
 
174509
        field = iprot.readFieldBegin();
-
 
174510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
174511
          break;
-
 
174512
        }
-
 
174513
        switch (field.id) {
-
 
174514
          case 1: // DELIVERED_ORDERS
-
 
174515
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
174516
              {
-
 
174517
                org.apache.thrift.protocol.TList _list521 = iprot.readListBegin();
-
 
174518
                this.delivered_orders = new ArrayList<List<String>>(_list521.size);
-
 
174519
                for (int _i522 = 0; _i522 < _list521.size; ++_i522)
-
 
174520
                {
-
 
174521
                  List<String> _elem523; // required
-
 
174522
                  {
-
 
174523
                    org.apache.thrift.protocol.TList _list524 = iprot.readListBegin();
-
 
174524
                    _elem523 = new ArrayList<String>(_list524.size);
-
 
174525
                    for (int _i525 = 0; _i525 < _list524.size; ++_i525)
-
 
174526
                    {
-
 
174527
                      String _elem526; // required
-
 
174528
                      _elem526 = iprot.readString();
-
 
174529
                      _elem523.add(_elem526);
-
 
174530
                    }
-
 
174531
                    iprot.readListEnd();
-
 
174532
                  }
-
 
174533
                  this.delivered_orders.add(_elem523);
-
 
174534
                }
-
 
174535
                iprot.readListEnd();
-
 
174536
              }
-
 
174537
            } else { 
-
 
174538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
174539
            }
-
 
174540
            break;
-
 
174541
          default:
-
 
174542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
174543
        }
-
 
174544
        iprot.readFieldEnd();
-
 
174545
      }
-
 
174546
      iprot.readStructEnd();
-
 
174547
      validate();
-
 
174548
    }
-
 
174549
 
-
 
174550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
174551
      validate();
-
 
174552
 
-
 
174553
      oprot.writeStructBegin(STRUCT_DESC);
-
 
174554
      if (this.delivered_orders != null) {
-
 
174555
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
-
 
174556
        {
-
 
174557
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, this.delivered_orders.size()));
-
 
174558
          for (List<String> _iter527 : this.delivered_orders)
-
 
174559
          {
-
 
174560
            {
-
 
174561
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter527.size()));
-
 
174562
              for (String _iter528 : _iter527)
-
 
174563
              {
-
 
174564
                oprot.writeString(_iter528);
-
 
174565
              }
-
 
174566
              oprot.writeListEnd();
-
 
174567
            }
-
 
174568
          }
-
 
174569
          oprot.writeListEnd();
-
 
174570
        }
-
 
174571
        oprot.writeFieldEnd();
-
 
174572
      }
-
 
174573
      oprot.writeFieldStop();
-
 
174574
      oprot.writeStructEnd();
-
 
174575
    }
-
 
174576
 
-
 
174577
    @Override
-
 
174578
    public String toString() {
-
 
174579
      StringBuilder sb = new StringBuilder("updateSnapdealOrdersStatus_args(");
-
 
174580
      boolean first = true;
-
 
174581
 
-
 
174582
      sb.append("delivered_orders:");
-
 
174583
      if (this.delivered_orders == null) {
-
 
174584
        sb.append("null");
-
 
174585
      } else {
-
 
174586
        sb.append(this.delivered_orders);
-
 
174587
      }
-
 
174588
      first = false;
-
 
174589
      sb.append(")");
-
 
174590
      return sb.toString();
-
 
174591
    }
-
 
174592
 
-
 
174593
    public void validate() throws org.apache.thrift.TException {
-
 
174594
      // check for required fields
-
 
174595
    }
-
 
174596
 
-
 
174597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
174598
      try {
-
 
174599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
174600
      } catch (org.apache.thrift.TException te) {
-
 
174601
        throw new java.io.IOException(te);
-
 
174602
      }
-
 
174603
    }
-
 
174604
 
-
 
174605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
174606
      try {
-
 
174607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
174608
      } catch (org.apache.thrift.TException te) {
-
 
174609
        throw new java.io.IOException(te);
-
 
174610
      }
-
 
174611
    }
-
 
174612
 
-
 
174613
  }
-
 
174614
 
-
 
174615
  public static class updateSnapdealOrdersStatus_result implements org.apache.thrift.TBase<updateSnapdealOrdersStatus_result, updateSnapdealOrdersStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
174616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealOrdersStatus_result");
-
 
174617
 
-
 
174618
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
174619
 
-
 
174620
    private TransactionServiceException ex; // required
-
 
174621
 
-
 
174622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
174623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
174624
      EX((short)1, "ex");
-
 
174625
 
-
 
174626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
174627
 
-
 
174628
      static {
-
 
174629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
174630
          byName.put(field.getFieldName(), field);
-
 
174631
        }
-
 
174632
      }
-
 
174633
 
-
 
174634
      /**
-
 
174635
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
174636
       */
-
 
174637
      public static _Fields findByThriftId(int fieldId) {
-
 
174638
        switch(fieldId) {
-
 
174639
          case 1: // EX
-
 
174640
            return EX;
-
 
174641
          default:
-
 
174642
            return null;
-
 
174643
        }
-
 
174644
      }
-
 
174645
 
-
 
174646
      /**
-
 
174647
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
174648
       * if it is not found.
-
 
174649
       */
-
 
174650
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
174651
        _Fields fields = findByThriftId(fieldId);
-
 
174652
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
174653
        return fields;
-
 
174654
      }
-
 
174655
 
-
 
174656
      /**
-
 
174657
       * Find the _Fields constant that matches name, or null if its not found.
-
 
174658
       */
-
 
174659
      public static _Fields findByName(String name) {
-
 
174660
        return byName.get(name);
-
 
174661
      }
-
 
174662
 
-
 
174663
      private final short _thriftId;
-
 
174664
      private final String _fieldName;
-
 
174665
 
-
 
174666
      _Fields(short thriftId, String fieldName) {
-
 
174667
        _thriftId = thriftId;
-
 
174668
        _fieldName = fieldName;
-
 
174669
      }
-
 
174670
 
-
 
174671
      public short getThriftFieldId() {
-
 
174672
        return _thriftId;
-
 
174673
      }
-
 
174674
 
-
 
174675
      public String getFieldName() {
-
 
174676
        return _fieldName;
-
 
174677
      }
-
 
174678
    }
-
 
174679
 
-
 
174680
    // isset id assignments
-
 
174681
 
-
 
174682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
174683
    static {
-
 
174684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
174685
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
174686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
174687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
174688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealOrdersStatus_result.class, metaDataMap);
-
 
174689
    }
-
 
174690
 
-
 
174691
    public updateSnapdealOrdersStatus_result() {
-
 
174692
    }
-
 
174693
 
-
 
174694
    public updateSnapdealOrdersStatus_result(
-
 
174695
      TransactionServiceException ex)
-
 
174696
    {
-
 
174697
      this();
-
 
174698
      this.ex = ex;
-
 
174699
    }
-
 
174700
 
-
 
174701
    /**
-
 
174702
     * Performs a deep copy on <i>other</i>.
-
 
174703
     */
-
 
174704
    public updateSnapdealOrdersStatus_result(updateSnapdealOrdersStatus_result other) {
-
 
174705
      if (other.isSetEx()) {
-
 
174706
        this.ex = new TransactionServiceException(other.ex);
-
 
174707
      }
-
 
174708
    }
-
 
174709
 
-
 
174710
    public updateSnapdealOrdersStatus_result deepCopy() {
-
 
174711
      return new updateSnapdealOrdersStatus_result(this);
-
 
174712
    }
-
 
174713
 
-
 
174714
    @Override
-
 
174715
    public void clear() {
-
 
174716
      this.ex = null;
-
 
174717
    }
-
 
174718
 
-
 
174719
    public TransactionServiceException getEx() {
-
 
174720
      return this.ex;
-
 
174721
    }
-
 
174722
 
-
 
174723
    public void setEx(TransactionServiceException ex) {
-
 
174724
      this.ex = ex;
-
 
174725
    }
-
 
174726
 
-
 
174727
    public void unsetEx() {
-
 
174728
      this.ex = null;
-
 
174729
    }
-
 
174730
 
-
 
174731
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
174732
    public boolean isSetEx() {
-
 
174733
      return this.ex != null;
-
 
174734
    }
-
 
174735
 
-
 
174736
    public void setExIsSet(boolean value) {
-
 
174737
      if (!value) {
-
 
174738
        this.ex = null;
-
 
174739
      }
-
 
174740
    }
-
 
174741
 
-
 
174742
    public void setFieldValue(_Fields field, Object value) {
-
 
174743
      switch (field) {
-
 
174744
      case EX:
-
 
174745
        if (value == null) {
-
 
174746
          unsetEx();
-
 
174747
        } else {
-
 
174748
          setEx((TransactionServiceException)value);
-
 
174749
        }
-
 
174750
        break;
-
 
174751
 
-
 
174752
      }
-
 
174753
    }
-
 
174754
 
-
 
174755
    public Object getFieldValue(_Fields field) {
-
 
174756
      switch (field) {
-
 
174757
      case EX:
-
 
174758
        return getEx();
-
 
174759
 
-
 
174760
      }
-
 
174761
      throw new IllegalStateException();
-
 
174762
    }
-
 
174763
 
-
 
174764
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
174765
    public boolean isSet(_Fields field) {
-
 
174766
      if (field == null) {
-
 
174767
        throw new IllegalArgumentException();
-
 
174768
      }
-
 
174769
 
-
 
174770
      switch (field) {
-
 
174771
      case EX:
-
 
174772
        return isSetEx();
-
 
174773
      }
-
 
174774
      throw new IllegalStateException();
-
 
174775
    }
-
 
174776
 
-
 
174777
    @Override
-
 
174778
    public boolean equals(Object that) {
-
 
174779
      if (that == null)
-
 
174780
        return false;
-
 
174781
      if (that instanceof updateSnapdealOrdersStatus_result)
-
 
174782
        return this.equals((updateSnapdealOrdersStatus_result)that);
-
 
174783
      return false;
-
 
174784
    }
-
 
174785
 
-
 
174786
    public boolean equals(updateSnapdealOrdersStatus_result that) {
-
 
174787
      if (that == null)
-
 
174788
        return false;
-
 
174789
 
-
 
174790
      boolean this_present_ex = true && this.isSetEx();
-
 
174791
      boolean that_present_ex = true && that.isSetEx();
-
 
174792
      if (this_present_ex || that_present_ex) {
-
 
174793
        if (!(this_present_ex && that_present_ex))
-
 
174794
          return false;
-
 
174795
        if (!this.ex.equals(that.ex))
-
 
174796
          return false;
-
 
174797
      }
-
 
174798
 
-
 
174799
      return true;
-
 
174800
    }
-
 
174801
 
-
 
174802
    @Override
-
 
174803
    public int hashCode() {
-
 
174804
      return 0;
-
 
174805
    }
-
 
174806
 
-
 
174807
    public int compareTo(updateSnapdealOrdersStatus_result other) {
-
 
174808
      if (!getClass().equals(other.getClass())) {
-
 
174809
        return getClass().getName().compareTo(other.getClass().getName());
-
 
174810
      }
-
 
174811
 
-
 
174812
      int lastComparison = 0;
-
 
174813
      updateSnapdealOrdersStatus_result typedOther = (updateSnapdealOrdersStatus_result)other;
-
 
174814
 
-
 
174815
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
174816
      if (lastComparison != 0) {
-
 
174817
        return lastComparison;
-
 
174818
      }
-
 
174819
      if (isSetEx()) {
-
 
174820
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
174821
        if (lastComparison != 0) {
-
 
174822
          return lastComparison;
-
 
174823
        }
-
 
174824
      }
-
 
174825
      return 0;
-
 
174826
    }
-
 
174827
 
-
 
174828
    public _Fields fieldForId(int fieldId) {
-
 
174829
      return _Fields.findByThriftId(fieldId);
-
 
174830
    }
-
 
174831
 
-
 
174832
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
174833
      org.apache.thrift.protocol.TField field;
-
 
174834
      iprot.readStructBegin();
-
 
174835
      while (true)
-
 
174836
      {
-
 
174837
        field = iprot.readFieldBegin();
-
 
174838
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
174839
          break;
-
 
174840
        }
-
 
174841
        switch (field.id) {
-
 
174842
          case 1: // EX
-
 
174843
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
174844
              this.ex = new TransactionServiceException();
-
 
174845
              this.ex.read(iprot);
-
 
174846
            } else { 
-
 
174847
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
174848
            }
-
 
174849
            break;
-
 
174850
          default:
-
 
174851
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
174852
        }
-
 
174853
        iprot.readFieldEnd();
-
 
174854
      }
-
 
174855
      iprot.readStructEnd();
-
 
174856
      validate();
-
 
174857
    }
-
 
174858
 
-
 
174859
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
174860
      oprot.writeStructBegin(STRUCT_DESC);
-
 
174861
 
-
 
174862
      if (this.isSetEx()) {
-
 
174863
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
174864
        this.ex.write(oprot);
-
 
174865
        oprot.writeFieldEnd();
-
 
174866
      }
-
 
174867
      oprot.writeFieldStop();
-
 
174868
      oprot.writeStructEnd();
-
 
174869
    }
-
 
174870
 
-
 
174871
    @Override
-
 
174872
    public String toString() {
-
 
174873
      StringBuilder sb = new StringBuilder("updateSnapdealOrdersStatus_result(");
-
 
174874
      boolean first = true;
-
 
174875
 
-
 
174876
      sb.append("ex:");
-
 
174877
      if (this.ex == null) {
-
 
174878
        sb.append("null");
-
 
174879
      } else {
-
 
174880
        sb.append(this.ex);
-
 
174881
      }
-
 
174882
      first = false;
-
 
174883
      sb.append(")");
-
 
174884
      return sb.toString();
-
 
174885
    }
-
 
174886
 
-
 
174887
    public void validate() throws org.apache.thrift.TException {
-
 
174888
      // check for required fields
-
 
174889
    }
-
 
174890
 
-
 
174891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
174892
      try {
-
 
174893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
174894
      } catch (org.apache.thrift.TException te) {
-
 
174895
        throw new java.io.IOException(te);
-
 
174896
      }
-
 
174897
    }
-
 
174898
 
-
 
174899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
174900
      try {
-
 
174901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
174902
      } catch (org.apache.thrift.TException te) {
-
 
174903
        throw new java.io.IOException(te);
-
 
174904
      }
-
 
174905
    }
-
 
174906
 
-
 
174907
  }
-
 
174908
 
-
 
174909
  public static class updateFlipkartOrdersStatus_args implements org.apache.thrift.TBase<updateFlipkartOrdersStatus_args, updateFlipkartOrdersStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
174910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartOrdersStatus_args");
-
 
174911
 
-
 
174912
    private static final org.apache.thrift.protocol.TField DELIVERED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("delivered_orders", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
174913
 
-
 
174914
    private List<List<String>> delivered_orders; // required
-
 
174915
 
-
 
174916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
174917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
174918
      DELIVERED_ORDERS((short)1, "delivered_orders");
-
 
174919
 
-
 
174920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
174921
 
-
 
174922
      static {
-
 
174923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
174924
          byName.put(field.getFieldName(), field);
-
 
174925
        }
-
 
174926
      }
-
 
174927
 
-
 
174928
      /**
-
 
174929
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
174930
       */
-
 
174931
      public static _Fields findByThriftId(int fieldId) {
-
 
174932
        switch(fieldId) {
-
 
174933
          case 1: // DELIVERED_ORDERS
-
 
174934
            return DELIVERED_ORDERS;
-
 
174935
          default:
-
 
174936
            return null;
-
 
174937
        }
-
 
174938
      }
-
 
174939
 
-
 
174940
      /**
-
 
174941
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
174942
       * if it is not found.
-
 
174943
       */
-
 
174944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
174945
        _Fields fields = findByThriftId(fieldId);
-
 
174946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
174947
        return fields;
-
 
174948
      }
-
 
174949
 
-
 
174950
      /**
-
 
174951
       * Find the _Fields constant that matches name, or null if its not found.
-
 
174952
       */
-
 
174953
      public static _Fields findByName(String name) {
-
 
174954
        return byName.get(name);
-
 
174955
      }
-
 
174956
 
-
 
174957
      private final short _thriftId;
-
 
174958
      private final String _fieldName;
-
 
174959
 
-
 
174960
      _Fields(short thriftId, String fieldName) {
-
 
174961
        _thriftId = thriftId;
-
 
174962
        _fieldName = fieldName;
-
 
174963
      }
-
 
174964
 
-
 
174965
      public short getThriftFieldId() {
-
 
174966
        return _thriftId;
-
 
174967
      }
-
 
174968
 
-
 
174969
      public String getFieldName() {
-
 
174970
        return _fieldName;
-
 
174971
      }
-
 
174972
    }
-
 
174973
 
-
 
174974
    // isset id assignments
-
 
174975
 
-
 
174976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
174977
    static {
-
 
174978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
174979
      tmpMap.put(_Fields.DELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("delivered_orders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
174980
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
174981
              new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
174982
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
-
 
174983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
174984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartOrdersStatus_args.class, metaDataMap);
-
 
174985
    }
-
 
174986
 
-
 
174987
    public updateFlipkartOrdersStatus_args() {
-
 
174988
    }
-
 
174989
 
-
 
174990
    public updateFlipkartOrdersStatus_args(
-
 
174991
      List<List<String>> delivered_orders)
-
 
174992
    {
-
 
174993
      this();
-
 
174994
      this.delivered_orders = delivered_orders;
-
 
174995
    }
-
 
174996
 
-
 
174997
    /**
-
 
174998
     * Performs a deep copy on <i>other</i>.
-
 
174999
     */
-
 
175000
    public updateFlipkartOrdersStatus_args(updateFlipkartOrdersStatus_args other) {
-
 
175001
      if (other.isSetDelivered_orders()) {
-
 
175002
        List<List<String>> __this__delivered_orders = new ArrayList<List<String>>();
-
 
175003
        for (List<String> other_element : other.delivered_orders) {
-
 
175004
          List<String> __this__delivered_orders_copy = new ArrayList<String>();
-
 
175005
          for (String other_element_element : other_element) {
-
 
175006
            __this__delivered_orders_copy.add(other_element_element);
-
 
175007
          }
-
 
175008
          __this__delivered_orders.add(__this__delivered_orders_copy);
-
 
175009
        }
-
 
175010
        this.delivered_orders = __this__delivered_orders;
-
 
175011
      }
-
 
175012
    }
-
 
175013
 
-
 
175014
    public updateFlipkartOrdersStatus_args deepCopy() {
-
 
175015
      return new updateFlipkartOrdersStatus_args(this);
-
 
175016
    }
-
 
175017
 
-
 
175018
    @Override
-
 
175019
    public void clear() {
-
 
175020
      this.delivered_orders = null;
-
 
175021
    }
-
 
175022
 
-
 
175023
    public int getDelivered_ordersSize() {
-
 
175024
      return (this.delivered_orders == null) ? 0 : this.delivered_orders.size();
-
 
175025
    }
-
 
175026
 
-
 
175027
    public java.util.Iterator<List<String>> getDelivered_ordersIterator() {
-
 
175028
      return (this.delivered_orders == null) ? null : this.delivered_orders.iterator();
-
 
175029
    }
-
 
175030
 
-
 
175031
    public void addToDelivered_orders(List<String> elem) {
-
 
175032
      if (this.delivered_orders == null) {
-
 
175033
        this.delivered_orders = new ArrayList<List<String>>();
-
 
175034
      }
-
 
175035
      this.delivered_orders.add(elem);
-
 
175036
    }
-
 
175037
 
-
 
175038
    public List<List<String>> getDelivered_orders() {
-
 
175039
      return this.delivered_orders;
-
 
175040
    }
-
 
175041
 
-
 
175042
    public void setDelivered_orders(List<List<String>> delivered_orders) {
-
 
175043
      this.delivered_orders = delivered_orders;
-
 
175044
    }
-
 
175045
 
-
 
175046
    public void unsetDelivered_orders() {
-
 
175047
      this.delivered_orders = null;
-
 
175048
    }
-
 
175049
 
-
 
175050
    /** Returns true if field delivered_orders is set (has been assigned a value) and false otherwise */
-
 
175051
    public boolean isSetDelivered_orders() {
-
 
175052
      return this.delivered_orders != null;
-
 
175053
    }
-
 
175054
 
-
 
175055
    public void setDelivered_ordersIsSet(boolean value) {
-
 
175056
      if (!value) {
-
 
175057
        this.delivered_orders = null;
-
 
175058
      }
-
 
175059
    }
-
 
175060
 
-
 
175061
    public void setFieldValue(_Fields field, Object value) {
-
 
175062
      switch (field) {
-
 
175063
      case DELIVERED_ORDERS:
-
 
175064
        if (value == null) {
-
 
175065
          unsetDelivered_orders();
-
 
175066
        } else {
-
 
175067
          setDelivered_orders((List<List<String>>)value);
-
 
175068
        }
-
 
175069
        break;
-
 
175070
 
-
 
175071
      }
-
 
175072
    }
-
 
175073
 
-
 
175074
    public Object getFieldValue(_Fields field) {
-
 
175075
      switch (field) {
-
 
175076
      case DELIVERED_ORDERS:
-
 
175077
        return getDelivered_orders();
-
 
175078
 
-
 
175079
      }
-
 
175080
      throw new IllegalStateException();
-
 
175081
    }
-
 
175082
 
-
 
175083
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
175084
    public boolean isSet(_Fields field) {
-
 
175085
      if (field == null) {
-
 
175086
        throw new IllegalArgumentException();
-
 
175087
      }
-
 
175088
 
-
 
175089
      switch (field) {
-
 
175090
      case DELIVERED_ORDERS:
-
 
175091
        return isSetDelivered_orders();
-
 
175092
      }
-
 
175093
      throw new IllegalStateException();
-
 
175094
    }
-
 
175095
 
-
 
175096
    @Override
-
 
175097
    public boolean equals(Object that) {
-
 
175098
      if (that == null)
-
 
175099
        return false;
-
 
175100
      if (that instanceof updateFlipkartOrdersStatus_args)
-
 
175101
        return this.equals((updateFlipkartOrdersStatus_args)that);
-
 
175102
      return false;
-
 
175103
    }
-
 
175104
 
-
 
175105
    public boolean equals(updateFlipkartOrdersStatus_args that) {
-
 
175106
      if (that == null)
-
 
175107
        return false;
-
 
175108
 
-
 
175109
      boolean this_present_delivered_orders = true && this.isSetDelivered_orders();
-
 
175110
      boolean that_present_delivered_orders = true && that.isSetDelivered_orders();
-
 
175111
      if (this_present_delivered_orders || that_present_delivered_orders) {
-
 
175112
        if (!(this_present_delivered_orders && that_present_delivered_orders))
-
 
175113
          return false;
-
 
175114
        if (!this.delivered_orders.equals(that.delivered_orders))
-
 
175115
          return false;
-
 
175116
      }
-
 
175117
 
-
 
175118
      return true;
-
 
175119
    }
-
 
175120
 
-
 
175121
    @Override
-
 
175122
    public int hashCode() {
-
 
175123
      return 0;
-
 
175124
    }
-
 
175125
 
-
 
175126
    public int compareTo(updateFlipkartOrdersStatus_args other) {
-
 
175127
      if (!getClass().equals(other.getClass())) {
-
 
175128
        return getClass().getName().compareTo(other.getClass().getName());
-
 
175129
      }
-
 
175130
 
-
 
175131
      int lastComparison = 0;
-
 
175132
      updateFlipkartOrdersStatus_args typedOther = (updateFlipkartOrdersStatus_args)other;
-
 
175133
 
-
 
175134
      lastComparison = Boolean.valueOf(isSetDelivered_orders()).compareTo(typedOther.isSetDelivered_orders());
-
 
175135
      if (lastComparison != 0) {
-
 
175136
        return lastComparison;
-
 
175137
      }
-
 
175138
      if (isSetDelivered_orders()) {
-
 
175139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delivered_orders, typedOther.delivered_orders);
-
 
175140
        if (lastComparison != 0) {
-
 
175141
          return lastComparison;
-
 
175142
        }
-
 
175143
      }
-
 
175144
      return 0;
-
 
175145
    }
-
 
175146
 
-
 
175147
    public _Fields fieldForId(int fieldId) {
-
 
175148
      return _Fields.findByThriftId(fieldId);
-
 
175149
    }
-
 
175150
 
-
 
175151
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
175152
      org.apache.thrift.protocol.TField field;
-
 
175153
      iprot.readStructBegin();
-
 
175154
      while (true)
-
 
175155
      {
-
 
175156
        field = iprot.readFieldBegin();
-
 
175157
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
175158
          break;
-
 
175159
        }
-
 
175160
        switch (field.id) {
-
 
175161
          case 1: // DELIVERED_ORDERS
-
 
175162
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
175163
              {
-
 
175164
                org.apache.thrift.protocol.TList _list529 = iprot.readListBegin();
-
 
175165
                this.delivered_orders = new ArrayList<List<String>>(_list529.size);
-
 
175166
                for (int _i530 = 0; _i530 < _list529.size; ++_i530)
-
 
175167
                {
-
 
175168
                  List<String> _elem531; // required
-
 
175169
                  {
-
 
175170
                    org.apache.thrift.protocol.TList _list532 = iprot.readListBegin();
-
 
175171
                    _elem531 = new ArrayList<String>(_list532.size);
-
 
175172
                    for (int _i533 = 0; _i533 < _list532.size; ++_i533)
-
 
175173
                    {
-
 
175174
                      String _elem534; // required
-
 
175175
                      _elem534 = iprot.readString();
-
 
175176
                      _elem531.add(_elem534);
-
 
175177
                    }
-
 
175178
                    iprot.readListEnd();
-
 
175179
                  }
-
 
175180
                  this.delivered_orders.add(_elem531);
-
 
175181
                }
-
 
175182
                iprot.readListEnd();
-
 
175183
              }
-
 
175184
            } else { 
-
 
175185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
175186
            }
-
 
175187
            break;
-
 
175188
          default:
-
 
175189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
175190
        }
-
 
175191
        iprot.readFieldEnd();
-
 
175192
      }
-
 
175193
      iprot.readStructEnd();
-
 
175194
      validate();
-
 
175195
    }
-
 
175196
 
-
 
175197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
175198
      validate();
-
 
175199
 
-
 
175200
      oprot.writeStructBegin(STRUCT_DESC);
-
 
175201
      if (this.delivered_orders != null) {
-
 
175202
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
-
 
175203
        {
-
 
175204
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, this.delivered_orders.size()));
-
 
175205
          for (List<String> _iter535 : this.delivered_orders)
-
 
175206
          {
-
 
175207
            {
-
 
175208
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter535.size()));
-
 
175209
              for (String _iter536 : _iter535)
-
 
175210
              {
-
 
175211
                oprot.writeString(_iter536);
-
 
175212
              }
-
 
175213
              oprot.writeListEnd();
-
 
175214
            }
-
 
175215
          }
-
 
175216
          oprot.writeListEnd();
-
 
175217
        }
-
 
175218
        oprot.writeFieldEnd();
-
 
175219
      }
-
 
175220
      oprot.writeFieldStop();
-
 
175221
      oprot.writeStructEnd();
-
 
175222
    }
-
 
175223
 
-
 
175224
    @Override
-
 
175225
    public String toString() {
-
 
175226
      StringBuilder sb = new StringBuilder("updateFlipkartOrdersStatus_args(");
-
 
175227
      boolean first = true;
-
 
175228
 
-
 
175229
      sb.append("delivered_orders:");
-
 
175230
      if (this.delivered_orders == null) {
-
 
175231
        sb.append("null");
-
 
175232
      } else {
-
 
175233
        sb.append(this.delivered_orders);
-
 
175234
      }
-
 
175235
      first = false;
-
 
175236
      sb.append(")");
-
 
175237
      return sb.toString();
-
 
175238
    }
-
 
175239
 
-
 
175240
    public void validate() throws org.apache.thrift.TException {
-
 
175241
      // check for required fields
-
 
175242
    }
-
 
175243
 
-
 
175244
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
175245
      try {
-
 
175246
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
175247
      } catch (org.apache.thrift.TException te) {
-
 
175248
        throw new java.io.IOException(te);
-
 
175249
      }
-
 
175250
    }
-
 
175251
 
-
 
175252
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
175253
      try {
-
 
175254
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
175255
      } catch (org.apache.thrift.TException te) {
-
 
175256
        throw new java.io.IOException(te);
-
 
175257
      }
-
 
175258
    }
-
 
175259
 
-
 
175260
  }
-
 
175261
 
-
 
175262
  public static class updateFlipkartOrdersStatus_result implements org.apache.thrift.TBase<updateFlipkartOrdersStatus_result, updateFlipkartOrdersStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
175263
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartOrdersStatus_result");
-
 
175264
 
-
 
175265
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
175266
 
-
 
175267
    private TransactionServiceException ex; // required
-
 
175268
 
-
 
175269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
175270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
175271
      EX((short)1, "ex");
-
 
175272
 
-
 
175273
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
175274
 
-
 
175275
      static {
-
 
175276
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
175277
          byName.put(field.getFieldName(), field);
-
 
175278
        }
-
 
175279
      }
-
 
175280
 
-
 
175281
      /**
-
 
175282
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
175283
       */
-
 
175284
      public static _Fields findByThriftId(int fieldId) {
-
 
175285
        switch(fieldId) {
-
 
175286
          case 1: // EX
-
 
175287
            return EX;
-
 
175288
          default:
-
 
175289
            return null;
-
 
175290
        }
-
 
175291
      }
-
 
175292
 
-
 
175293
      /**
-
 
175294
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
175295
       * if it is not found.
-
 
175296
       */
-
 
175297
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
175298
        _Fields fields = findByThriftId(fieldId);
-
 
175299
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
175300
        return fields;
-
 
175301
      }
-
 
175302
 
-
 
175303
      /**
-
 
175304
       * Find the _Fields constant that matches name, or null if its not found.
-
 
175305
       */
-
 
175306
      public static _Fields findByName(String name) {
-
 
175307
        return byName.get(name);
-
 
175308
      }
-
 
175309
 
-
 
175310
      private final short _thriftId;
-
 
175311
      private final String _fieldName;
-
 
175312
 
-
 
175313
      _Fields(short thriftId, String fieldName) {
-
 
175314
        _thriftId = thriftId;
-
 
175315
        _fieldName = fieldName;
-
 
175316
      }
-
 
175317
 
-
 
175318
      public short getThriftFieldId() {
-
 
175319
        return _thriftId;
-
 
175320
      }
-
 
175321
 
-
 
175322
      public String getFieldName() {
-
 
175323
        return _fieldName;
-
 
175324
      }
-
 
175325
    }
-
 
175326
 
-
 
175327
    // isset id assignments
-
 
175328
 
-
 
175329
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
175330
    static {
-
 
175331
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
175332
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
175333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
175334
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
175335
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartOrdersStatus_result.class, metaDataMap);
-
 
175336
    }
-
 
175337
 
-
 
175338
    public updateFlipkartOrdersStatus_result() {
-
 
175339
    }
-
 
175340
 
-
 
175341
    public updateFlipkartOrdersStatus_result(
-
 
175342
      TransactionServiceException ex)
-
 
175343
    {
-
 
175344
      this();
-
 
175345
      this.ex = ex;
-
 
175346
    }
-
 
175347
 
-
 
175348
    /**
-
 
175349
     * Performs a deep copy on <i>other</i>.
-
 
175350
     */
-
 
175351
    public updateFlipkartOrdersStatus_result(updateFlipkartOrdersStatus_result other) {
-
 
175352
      if (other.isSetEx()) {
-
 
175353
        this.ex = new TransactionServiceException(other.ex);
-
 
175354
      }
-
 
175355
    }
-
 
175356
 
-
 
175357
    public updateFlipkartOrdersStatus_result deepCopy() {
-
 
175358
      return new updateFlipkartOrdersStatus_result(this);
-
 
175359
    }
-
 
175360
 
-
 
175361
    @Override
-
 
175362
    public void clear() {
-
 
175363
      this.ex = null;
-
 
175364
    }
-
 
175365
 
-
 
175366
    public TransactionServiceException getEx() {
-
 
175367
      return this.ex;
-
 
175368
    }
-
 
175369
 
-
 
175370
    public void setEx(TransactionServiceException ex) {
-
 
175371
      this.ex = ex;
-
 
175372
    }
-
 
175373
 
-
 
175374
    public void unsetEx() {
-
 
175375
      this.ex = null;
-
 
175376
    }
-
 
175377
 
-
 
175378
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
175379
    public boolean isSetEx() {
-
 
175380
      return this.ex != null;
-
 
175381
    }
-
 
175382
 
-
 
175383
    public void setExIsSet(boolean value) {
-
 
175384
      if (!value) {
-
 
175385
        this.ex = null;
-
 
175386
      }
-
 
175387
    }
-
 
175388
 
-
 
175389
    public void setFieldValue(_Fields field, Object value) {
-
 
175390
      switch (field) {
-
 
175391
      case EX:
-
 
175392
        if (value == null) {
-
 
175393
          unsetEx();
-
 
175394
        } else {
-
 
175395
          setEx((TransactionServiceException)value);
-
 
175396
        }
-
 
175397
        break;
-
 
175398
 
-
 
175399
      }
-
 
175400
    }
-
 
175401
 
-
 
175402
    public Object getFieldValue(_Fields field) {
-
 
175403
      switch (field) {
-
 
175404
      case EX:
-
 
175405
        return getEx();
-
 
175406
 
-
 
175407
      }
-
 
175408
      throw new IllegalStateException();
-
 
175409
    }
-
 
175410
 
-
 
175411
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
175412
    public boolean isSet(_Fields field) {
-
 
175413
      if (field == null) {
-
 
175414
        throw new IllegalArgumentException();
-
 
175415
      }
-
 
175416
 
-
 
175417
      switch (field) {
-
 
175418
      case EX:
-
 
175419
        return isSetEx();
-
 
175420
      }
-
 
175421
      throw new IllegalStateException();
-
 
175422
    }
-
 
175423
 
-
 
175424
    @Override
-
 
175425
    public boolean equals(Object that) {
-
 
175426
      if (that == null)
-
 
175427
        return false;
-
 
175428
      if (that instanceof updateFlipkartOrdersStatus_result)
-
 
175429
        return this.equals((updateFlipkartOrdersStatus_result)that);
-
 
175430
      return false;
-
 
175431
    }
-
 
175432
 
-
 
175433
    public boolean equals(updateFlipkartOrdersStatus_result that) {
-
 
175434
      if (that == null)
-
 
175435
        return false;
-
 
175436
 
-
 
175437
      boolean this_present_ex = true && this.isSetEx();
-
 
175438
      boolean that_present_ex = true && that.isSetEx();
-
 
175439
      if (this_present_ex || that_present_ex) {
-
 
175440
        if (!(this_present_ex && that_present_ex))
-
 
175441
          return false;
-
 
175442
        if (!this.ex.equals(that.ex))
-
 
175443
          return false;
-
 
175444
      }
-
 
175445
 
-
 
175446
      return true;
-
 
175447
    }
-
 
175448
 
-
 
175449
    @Override
-
 
175450
    public int hashCode() {
-
 
175451
      return 0;
-
 
175452
    }
-
 
175453
 
-
 
175454
    public int compareTo(updateFlipkartOrdersStatus_result other) {
-
 
175455
      if (!getClass().equals(other.getClass())) {
-
 
175456
        return getClass().getName().compareTo(other.getClass().getName());
-
 
175457
      }
-
 
175458
 
-
 
175459
      int lastComparison = 0;
-
 
175460
      updateFlipkartOrdersStatus_result typedOther = (updateFlipkartOrdersStatus_result)other;
-
 
175461
 
-
 
175462
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
175463
      if (lastComparison != 0) {
-
 
175464
        return lastComparison;
-
 
175465
      }
-
 
175466
      if (isSetEx()) {
-
 
175467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
175468
        if (lastComparison != 0) {
-
 
175469
          return lastComparison;
-
 
175470
        }
-
 
175471
      }
-
 
175472
      return 0;
-
 
175473
    }
-
 
175474
 
-
 
175475
    public _Fields fieldForId(int fieldId) {
-
 
175476
      return _Fields.findByThriftId(fieldId);
-
 
175477
    }
-
 
175478
 
-
 
175479
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
175480
      org.apache.thrift.protocol.TField field;
-
 
175481
      iprot.readStructBegin();
-
 
175482
      while (true)
-
 
175483
      {
-
 
175484
        field = iprot.readFieldBegin();
-
 
175485
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
175486
          break;
-
 
175487
        }
-
 
175488
        switch (field.id) {
-
 
175489
          case 1: // EX
-
 
175490
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
175491
              this.ex = new TransactionServiceException();
-
 
175492
              this.ex.read(iprot);
-
 
175493
            } else { 
-
 
175494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
175495
            }
-
 
175496
            break;
-
 
175497
          default:
-
 
175498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
175499
        }
-
 
175500
        iprot.readFieldEnd();
-
 
175501
      }
-
 
175502
      iprot.readStructEnd();
-
 
175503
      validate();
-
 
175504
    }
-
 
175505
 
-
 
175506
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
175507
      oprot.writeStructBegin(STRUCT_DESC);
-
 
175508
 
-
 
175509
      if (this.isSetEx()) {
-
 
175510
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
175511
        this.ex.write(oprot);
-
 
175512
        oprot.writeFieldEnd();
-
 
175513
      }
-
 
175514
      oprot.writeFieldStop();
-
 
175515
      oprot.writeStructEnd();
-
 
175516
    }
-
 
175517
 
-
 
175518
    @Override
-
 
175519
    public String toString() {
-
 
175520
      StringBuilder sb = new StringBuilder("updateFlipkartOrdersStatus_result(");
-
 
175521
      boolean first = true;
-
 
175522
 
-
 
175523
      sb.append("ex:");
-
 
175524
      if (this.ex == null) {
-
 
175525
        sb.append("null");
-
 
175526
      } else {
-
 
175527
        sb.append(this.ex);
173410
      }
175528
      }
173411
      first = false;
175529
      first = false;
173412
      sb.append(")");
175530
      sb.append(")");
173413
      return sb.toString();
175531
      return sb.toString();
173414
    }
175532
    }