Subversion Repositories SmartDukaan

Rev

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

Rev 8303 Rev 8488
Line 1033... Line 1033...
1033
 
1033
 
1034
    public List<AmazonFbaSalesSnapshot> getAmazonFbaSalesSnapshotForDays(int days) throws org.apache.thrift.TException;
1034
    public List<AmazonFbaSalesSnapshot> getAmazonFbaSalesSnapshotForDays(int days) throws org.apache.thrift.TException;
1035
 
1035
 
1036
    public AmazonFbaSalesSnapshot getAmazonFbaSalesLatestSnapshotForItem(long item_id) throws org.apache.thrift.TException;
1036
    public AmazonFbaSalesSnapshot getAmazonFbaSalesLatestSnapshotForItem(long item_id) throws org.apache.thrift.TException;
1037
 
1037
 
-
 
1038
    public void createSnapdealOrder(SnapdealOrder snapdealOrder) throws org.apache.thrift.TException;
-
 
1039
 
-
 
1040
    public SnapdealOrder getSnapdealOrder(long orderId, String referenceCode, long subrderId) throws org.apache.thrift.TException;
-
 
1041
 
-
 
1042
    public boolean snapdealOrderExists(long subOrderId) throws org.apache.thrift.TException;
-
 
1043
 
1038
  }
1044
  }
1039
 
1045
 
1040
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1046
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1041
 
1047
 
1042
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1048
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1453... Line 1459...
1453
 
1459
 
1454
    public void getAmazonFbaSalesSnapshotForDays(int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaSalesSnapshotForDays_call> resultHandler) throws org.apache.thrift.TException;
1460
    public void getAmazonFbaSalesSnapshotForDays(int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaSalesSnapshotForDays_call> resultHandler) throws org.apache.thrift.TException;
1455
 
1461
 
1456
    public void getAmazonFbaSalesLatestSnapshotForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaSalesLatestSnapshotForItem_call> resultHandler) throws org.apache.thrift.TException;
1462
    public void getAmazonFbaSalesLatestSnapshotForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaSalesLatestSnapshotForItem_call> resultHandler) throws org.apache.thrift.TException;
1457
 
1463
 
-
 
1464
    public void createSnapdealOrder(SnapdealOrder snapdealOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSnapdealOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1465
 
-
 
1466
    public void getSnapdealOrder(long orderId, String referenceCode, long subrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1467
 
-
 
1468
    public void snapdealOrderExists(long subOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.snapdealOrderExists_call> resultHandler) throws org.apache.thrift.TException;
-
 
1469
 
1458
  }
1470
  }
1459
 
1471
 
1460
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1472
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1461
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1473
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1462
      public Factory() {}
1474
      public Factory() {}
Line 6624... Line 6636...
6624
        return result.success;
6636
        return result.success;
6625
      }
6637
      }
6626
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaSalesLatestSnapshotForItem failed: unknown result");
6638
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaSalesLatestSnapshotForItem failed: unknown result");
6627
    }
6639
    }
6628
 
6640
 
-
 
6641
    public void createSnapdealOrder(SnapdealOrder snapdealOrder) throws org.apache.thrift.TException
-
 
6642
    {
-
 
6643
      send_createSnapdealOrder(snapdealOrder);
-
 
6644
      recv_createSnapdealOrder();
-
 
6645
    }
-
 
6646
 
-
 
6647
    public void send_createSnapdealOrder(SnapdealOrder snapdealOrder) throws org.apache.thrift.TException
-
 
6648
    {
-
 
6649
      createSnapdealOrder_args args = new createSnapdealOrder_args();
-
 
6650
      args.setSnapdealOrder(snapdealOrder);
-
 
6651
      sendBase("createSnapdealOrder", args);
-
 
6652
    }
-
 
6653
 
-
 
6654
    public void recv_createSnapdealOrder() throws org.apache.thrift.TException
-
 
6655
    {
-
 
6656
      createSnapdealOrder_result result = new createSnapdealOrder_result();
-
 
6657
      receiveBase(result, "createSnapdealOrder");
-
 
6658
      return;
-
 
6659
    }
-
 
6660
 
-
 
6661
    public SnapdealOrder getSnapdealOrder(long orderId, String referenceCode, long subrderId) throws org.apache.thrift.TException
-
 
6662
    {
-
 
6663
      send_getSnapdealOrder(orderId, referenceCode, subrderId);
-
 
6664
      return recv_getSnapdealOrder();
-
 
6665
    }
-
 
6666
 
-
 
6667
    public void send_getSnapdealOrder(long orderId, String referenceCode, long subrderId) throws org.apache.thrift.TException
-
 
6668
    {
-
 
6669
      getSnapdealOrder_args args = new getSnapdealOrder_args();
-
 
6670
      args.setOrderId(orderId);
-
 
6671
      args.setReferenceCode(referenceCode);
-
 
6672
      args.setSubrderId(subrderId);
-
 
6673
      sendBase("getSnapdealOrder", args);
-
 
6674
    }
-
 
6675
 
-
 
6676
    public SnapdealOrder recv_getSnapdealOrder() throws org.apache.thrift.TException
-
 
6677
    {
-
 
6678
      getSnapdealOrder_result result = new getSnapdealOrder_result();
-
 
6679
      receiveBase(result, "getSnapdealOrder");
-
 
6680
      if (result.isSetSuccess()) {
-
 
6681
        return result.success;
-
 
6682
      }
-
 
6683
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealOrder failed: unknown result");
-
 
6684
    }
-
 
6685
 
-
 
6686
    public boolean snapdealOrderExists(long subOrderId) throws org.apache.thrift.TException
-
 
6687
    {
-
 
6688
      send_snapdealOrderExists(subOrderId);
-
 
6689
      return recv_snapdealOrderExists();
-
 
6690
    }
-
 
6691
 
-
 
6692
    public void send_snapdealOrderExists(long subOrderId) throws org.apache.thrift.TException
-
 
6693
    {
-
 
6694
      snapdealOrderExists_args args = new snapdealOrderExists_args();
-
 
6695
      args.setSubOrderId(subOrderId);
-
 
6696
      sendBase("snapdealOrderExists", args);
-
 
6697
    }
-
 
6698
 
-
 
6699
    public boolean recv_snapdealOrderExists() throws org.apache.thrift.TException
-
 
6700
    {
-
 
6701
      snapdealOrderExists_result result = new snapdealOrderExists_result();
-
 
6702
      receiveBase(result, "snapdealOrderExists");
-
 
6703
      if (result.isSetSuccess()) {
-
 
6704
        return result.success;
-
 
6705
      }
-
 
6706
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "snapdealOrderExists failed: unknown result");
-
 
6707
    }
-
 
6708
 
6629
  }
6709
  }
6630
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6710
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6631
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6711
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6632
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6712
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6633
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6713
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 13880... Line 13960...
13880
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13960
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13881
        return (new Client(prot)).recv_getAmazonFbaSalesLatestSnapshotForItem();
13961
        return (new Client(prot)).recv_getAmazonFbaSalesLatestSnapshotForItem();
13882
      }
13962
      }
13883
    }
13963
    }
13884
 
13964
 
-
 
13965
    public void createSnapdealOrder(SnapdealOrder snapdealOrder, org.apache.thrift.async.AsyncMethodCallback<createSnapdealOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
13966
      checkReady();
-
 
13967
      createSnapdealOrder_call method_call = new createSnapdealOrder_call(snapdealOrder, resultHandler, this, ___protocolFactory, ___transport);
-
 
13968
      this.___currentMethod = method_call;
-
 
13969
      ___manager.call(method_call);
-
 
13970
    }
-
 
13971
 
-
 
13972
    public static class createSnapdealOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13973
      private SnapdealOrder snapdealOrder;
-
 
13974
      public createSnapdealOrder_call(SnapdealOrder snapdealOrder, org.apache.thrift.async.AsyncMethodCallback<createSnapdealOrder_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 {
-
 
13975
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13976
        this.snapdealOrder = snapdealOrder;
-
 
13977
      }
-
 
13978
 
-
 
13979
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13980
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createSnapdealOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13981
        createSnapdealOrder_args args = new createSnapdealOrder_args();
-
 
13982
        args.setSnapdealOrder(snapdealOrder);
-
 
13983
        args.write(prot);
-
 
13984
        prot.writeMessageEnd();
-
 
13985
      }
-
 
13986
 
-
 
13987
      public void getResult() throws org.apache.thrift.TException {
-
 
13988
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13989
          throw new IllegalStateException("Method call not finished!");
-
 
13990
        }
-
 
13991
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13993
        (new Client(prot)).recv_createSnapdealOrder();
-
 
13994
      }
-
 
13995
    }
-
 
13996
 
-
 
13997
    public void getSnapdealOrder(long orderId, String referenceCode, long subrderId, org.apache.thrift.async.AsyncMethodCallback<getSnapdealOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
13998
      checkReady();
-
 
13999
      getSnapdealOrder_call method_call = new getSnapdealOrder_call(orderId, referenceCode, subrderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
14000
      this.___currentMethod = method_call;
-
 
14001
      ___manager.call(method_call);
-
 
14002
    }
-
 
14003
 
-
 
14004
    public static class getSnapdealOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14005
      private long orderId;
-
 
14006
      private String referenceCode;
-
 
14007
      private long subrderId;
-
 
14008
      public getSnapdealOrder_call(long orderId, String referenceCode, long subrderId, org.apache.thrift.async.AsyncMethodCallback<getSnapdealOrder_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 {
-
 
14009
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14010
        this.orderId = orderId;
-
 
14011
        this.referenceCode = referenceCode;
-
 
14012
        this.subrderId = subrderId;
-
 
14013
      }
-
 
14014
 
-
 
14015
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14016
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14017
        getSnapdealOrder_args args = new getSnapdealOrder_args();
-
 
14018
        args.setOrderId(orderId);
-
 
14019
        args.setReferenceCode(referenceCode);
-
 
14020
        args.setSubrderId(subrderId);
-
 
14021
        args.write(prot);
-
 
14022
        prot.writeMessageEnd();
-
 
14023
      }
-
 
14024
 
-
 
14025
      public SnapdealOrder getResult() throws org.apache.thrift.TException {
-
 
14026
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14027
          throw new IllegalStateException("Method call not finished!");
-
 
14028
        }
-
 
14029
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14030
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14031
        return (new Client(prot)).recv_getSnapdealOrder();
-
 
14032
      }
-
 
14033
    }
-
 
14034
 
-
 
14035
    public void snapdealOrderExists(long subOrderId, org.apache.thrift.async.AsyncMethodCallback<snapdealOrderExists_call> resultHandler) throws org.apache.thrift.TException {
-
 
14036
      checkReady();
-
 
14037
      snapdealOrderExists_call method_call = new snapdealOrderExists_call(subOrderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
14038
      this.___currentMethod = method_call;
-
 
14039
      ___manager.call(method_call);
-
 
14040
    }
-
 
14041
 
-
 
14042
    public static class snapdealOrderExists_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14043
      private long subOrderId;
-
 
14044
      public snapdealOrderExists_call(long subOrderId, org.apache.thrift.async.AsyncMethodCallback<snapdealOrderExists_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 {
-
 
14045
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14046
        this.subOrderId = subOrderId;
-
 
14047
      }
-
 
14048
 
-
 
14049
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14050
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("snapdealOrderExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14051
        snapdealOrderExists_args args = new snapdealOrderExists_args();
-
 
14052
        args.setSubOrderId(subOrderId);
-
 
14053
        args.write(prot);
-
 
14054
        prot.writeMessageEnd();
-
 
14055
      }
-
 
14056
 
-
 
14057
      public boolean getResult() throws org.apache.thrift.TException {
-
 
14058
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14059
          throw new IllegalStateException("Method call not finished!");
-
 
14060
        }
-
 
14061
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14062
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14063
        return (new Client(prot)).recv_snapdealOrderExists();
-
 
14064
      }
-
 
14065
    }
-
 
14066
 
13885
  }
14067
  }
13886
 
14068
 
13887
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14069
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13888
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14070
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13889
    public Processor(I iface) {
14071
    public Processor(I iface) {
Line 14101... Line 14283...
14101
      processMap.put("updateOrderForEbay", new updateOrderForEbay());
14283
      processMap.put("updateOrderForEbay", new updateOrderForEbay());
14102
      processMap.put("splitEbayOrder", new splitEbayOrder());
14284
      processMap.put("splitEbayOrder", new splitEbayOrder());
14103
      processMap.put("addOrUpdateAmazonFbaSalesSnapshot", new addOrUpdateAmazonFbaSalesSnapshot());
14285
      processMap.put("addOrUpdateAmazonFbaSalesSnapshot", new addOrUpdateAmazonFbaSalesSnapshot());
14104
      processMap.put("getAmazonFbaSalesSnapshotForDays", new getAmazonFbaSalesSnapshotForDays());
14286
      processMap.put("getAmazonFbaSalesSnapshotForDays", new getAmazonFbaSalesSnapshotForDays());
14105
      processMap.put("getAmazonFbaSalesLatestSnapshotForItem", new getAmazonFbaSalesLatestSnapshotForItem());
14287
      processMap.put("getAmazonFbaSalesLatestSnapshotForItem", new getAmazonFbaSalesLatestSnapshotForItem());
-
 
14288
      processMap.put("createSnapdealOrder", new createSnapdealOrder());
-
 
14289
      processMap.put("getSnapdealOrder", new getSnapdealOrder());
-
 
14290
      processMap.put("snapdealOrderExists", new snapdealOrderExists());
14106
      return processMap;
14291
      return processMap;
14107
    }
14292
    }
14108
 
14293
 
14109
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14294
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14110
      public createTransaction() {
14295
      public createTransaction() {
Line 17881... Line 18066...
17881
        result.success = iface.getAmazonFbaSalesLatestSnapshotForItem(args.item_id);
18066
        result.success = iface.getAmazonFbaSalesLatestSnapshotForItem(args.item_id);
17882
        return result;
18067
        return result;
17883
      }
18068
      }
17884
    }
18069
    }
17885
 
18070
 
-
 
18071
    private static class createSnapdealOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSnapdealOrder_args> {
-
 
18072
      public createSnapdealOrder() {
-
 
18073
        super("createSnapdealOrder");
-
 
18074
      }
-
 
18075
 
-
 
18076
      protected createSnapdealOrder_args getEmptyArgsInstance() {
-
 
18077
        return new createSnapdealOrder_args();
-
 
18078
      }
-
 
18079
 
-
 
18080
      protected createSnapdealOrder_result getResult(I iface, createSnapdealOrder_args args) throws org.apache.thrift.TException {
-
 
18081
        createSnapdealOrder_result result = new createSnapdealOrder_result();
-
 
18082
        iface.createSnapdealOrder(args.snapdealOrder);
-
 
18083
        return result;
-
 
18084
      }
-
 
18085
    }
-
 
18086
 
-
 
18087
    private static class getSnapdealOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealOrder_args> {
-
 
18088
      public getSnapdealOrder() {
-
 
18089
        super("getSnapdealOrder");
-
 
18090
      }
-
 
18091
 
-
 
18092
      protected getSnapdealOrder_args getEmptyArgsInstance() {
-
 
18093
        return new getSnapdealOrder_args();
-
 
18094
      }
-
 
18095
 
-
 
18096
      protected getSnapdealOrder_result getResult(I iface, getSnapdealOrder_args args) throws org.apache.thrift.TException {
-
 
18097
        getSnapdealOrder_result result = new getSnapdealOrder_result();
-
 
18098
        result.success = iface.getSnapdealOrder(args.orderId, args.referenceCode, args.subrderId);
-
 
18099
        return result;
-
 
18100
      }
-
 
18101
    }
-
 
18102
 
-
 
18103
    private static class snapdealOrderExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, snapdealOrderExists_args> {
-
 
18104
      public snapdealOrderExists() {
-
 
18105
        super("snapdealOrderExists");
-
 
18106
      }
-
 
18107
 
-
 
18108
      protected snapdealOrderExists_args getEmptyArgsInstance() {
-
 
18109
        return new snapdealOrderExists_args();
-
 
18110
      }
-
 
18111
 
-
 
18112
      protected snapdealOrderExists_result getResult(I iface, snapdealOrderExists_args args) throws org.apache.thrift.TException {
-
 
18113
        snapdealOrderExists_result result = new snapdealOrderExists_result();
-
 
18114
        result.success = iface.snapdealOrderExists(args.subOrderId);
-
 
18115
        result.setSuccessIsSet(true);
-
 
18116
        return result;
-
 
18117
      }
-
 
18118
    }
-
 
18119
 
17886
  }
18120
  }
17887
 
18121
 
17888
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18122
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
17889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18123
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
17890
 
18124
 
Line 165633... Line 165867...
165633
      first = false;
165867
      first = false;
165634
      sb.append(")");
165868
      sb.append(")");
165635
      return sb.toString();
165869
      return sb.toString();
165636
    }
165870
    }
165637
 
165871
 
-
 
165872
    public void validate() throws org.apache.thrift.TException {
-
 
165873
      // check for required fields
-
 
165874
    }
-
 
165875
 
-
 
165876
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
165877
      try {
-
 
165878
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
165879
      } catch (org.apache.thrift.TException te) {
-
 
165880
        throw new java.io.IOException(te);
-
 
165881
      }
-
 
165882
    }
-
 
165883
 
-
 
165884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
165885
      try {
-
 
165886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
165887
      } catch (org.apache.thrift.TException te) {
-
 
165888
        throw new java.io.IOException(te);
-
 
165889
      }
-
 
165890
    }
-
 
165891
 
-
 
165892
  }
-
 
165893
 
-
 
165894
  public static class createSnapdealOrder_args implements org.apache.thrift.TBase<createSnapdealOrder_args, createSnapdealOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
165895
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSnapdealOrder_args");
-
 
165896
 
-
 
165897
    private static final org.apache.thrift.protocol.TField SNAPDEAL_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
165898
 
-
 
165899
    private SnapdealOrder snapdealOrder; // required
-
 
165900
 
-
 
165901
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
165902
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
165903
      SNAPDEAL_ORDER((short)1, "snapdealOrder");
-
 
165904
 
-
 
165905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
165906
 
-
 
165907
      static {
-
 
165908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
165909
          byName.put(field.getFieldName(), field);
-
 
165910
        }
-
 
165911
      }
-
 
165912
 
-
 
165913
      /**
-
 
165914
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
165915
       */
-
 
165916
      public static _Fields findByThriftId(int fieldId) {
-
 
165917
        switch(fieldId) {
-
 
165918
          case 1: // SNAPDEAL_ORDER
-
 
165919
            return SNAPDEAL_ORDER;
-
 
165920
          default:
-
 
165921
            return null;
-
 
165922
        }
-
 
165923
      }
-
 
165924
 
-
 
165925
      /**
-
 
165926
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
165927
       * if it is not found.
-
 
165928
       */
-
 
165929
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
165930
        _Fields fields = findByThriftId(fieldId);
-
 
165931
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
165932
        return fields;
-
 
165933
      }
-
 
165934
 
-
 
165935
      /**
-
 
165936
       * Find the _Fields constant that matches name, or null if its not found.
-
 
165937
       */
-
 
165938
      public static _Fields findByName(String name) {
-
 
165939
        return byName.get(name);
-
 
165940
      }
-
 
165941
 
-
 
165942
      private final short _thriftId;
-
 
165943
      private final String _fieldName;
-
 
165944
 
-
 
165945
      _Fields(short thriftId, String fieldName) {
-
 
165946
        _thriftId = thriftId;
-
 
165947
        _fieldName = fieldName;
-
 
165948
      }
-
 
165949
 
-
 
165950
      public short getThriftFieldId() {
-
 
165951
        return _thriftId;
-
 
165952
      }
-
 
165953
 
-
 
165954
      public String getFieldName() {
-
 
165955
        return _fieldName;
-
 
165956
      }
-
 
165957
    }
-
 
165958
 
-
 
165959
    // isset id assignments
-
 
165960
 
-
 
165961
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
165962
    static {
-
 
165963
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
165964
      tmpMap.put(_Fields.SNAPDEAL_ORDER, new org.apache.thrift.meta_data.FieldMetaData("snapdealOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
165965
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealOrder.class)));
-
 
165966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
165967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSnapdealOrder_args.class, metaDataMap);
-
 
165968
    }
-
 
165969
 
-
 
165970
    public createSnapdealOrder_args() {
-
 
165971
    }
-
 
165972
 
-
 
165973
    public createSnapdealOrder_args(
-
 
165974
      SnapdealOrder snapdealOrder)
-
 
165975
    {
-
 
165976
      this();
-
 
165977
      this.snapdealOrder = snapdealOrder;
-
 
165978
    }
-
 
165979
 
-
 
165980
    /**
-
 
165981
     * Performs a deep copy on <i>other</i>.
-
 
165982
     */
-
 
165983
    public createSnapdealOrder_args(createSnapdealOrder_args other) {
-
 
165984
      if (other.isSetSnapdealOrder()) {
-
 
165985
        this.snapdealOrder = new SnapdealOrder(other.snapdealOrder);
-
 
165986
      }
-
 
165987
    }
-
 
165988
 
-
 
165989
    public createSnapdealOrder_args deepCopy() {
-
 
165990
      return new createSnapdealOrder_args(this);
-
 
165991
    }
-
 
165992
 
-
 
165993
    @Override
-
 
165994
    public void clear() {
-
 
165995
      this.snapdealOrder = null;
-
 
165996
    }
-
 
165997
 
-
 
165998
    public SnapdealOrder getSnapdealOrder() {
-
 
165999
      return this.snapdealOrder;
-
 
166000
    }
-
 
166001
 
-
 
166002
    public void setSnapdealOrder(SnapdealOrder snapdealOrder) {
-
 
166003
      this.snapdealOrder = snapdealOrder;
-
 
166004
    }
-
 
166005
 
-
 
166006
    public void unsetSnapdealOrder() {
-
 
166007
      this.snapdealOrder = null;
-
 
166008
    }
-
 
166009
 
-
 
166010
    /** Returns true if field snapdealOrder is set (has been assigned a value) and false otherwise */
-
 
166011
    public boolean isSetSnapdealOrder() {
-
 
166012
      return this.snapdealOrder != null;
-
 
166013
    }
-
 
166014
 
-
 
166015
    public void setSnapdealOrderIsSet(boolean value) {
-
 
166016
      if (!value) {
-
 
166017
        this.snapdealOrder = null;
-
 
166018
      }
-
 
166019
    }
-
 
166020
 
-
 
166021
    public void setFieldValue(_Fields field, Object value) {
-
 
166022
      switch (field) {
-
 
166023
      case SNAPDEAL_ORDER:
-
 
166024
        if (value == null) {
-
 
166025
          unsetSnapdealOrder();
-
 
166026
        } else {
-
 
166027
          setSnapdealOrder((SnapdealOrder)value);
-
 
166028
        }
-
 
166029
        break;
-
 
166030
 
-
 
166031
      }
-
 
166032
    }
-
 
166033
 
-
 
166034
    public Object getFieldValue(_Fields field) {
-
 
166035
      switch (field) {
-
 
166036
      case SNAPDEAL_ORDER:
-
 
166037
        return getSnapdealOrder();
-
 
166038
 
-
 
166039
      }
-
 
166040
      throw new IllegalStateException();
-
 
166041
    }
-
 
166042
 
-
 
166043
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
166044
    public boolean isSet(_Fields field) {
-
 
166045
      if (field == null) {
-
 
166046
        throw new IllegalArgumentException();
-
 
166047
      }
-
 
166048
 
-
 
166049
      switch (field) {
-
 
166050
      case SNAPDEAL_ORDER:
-
 
166051
        return isSetSnapdealOrder();
-
 
166052
      }
-
 
166053
      throw new IllegalStateException();
-
 
166054
    }
-
 
166055
 
-
 
166056
    @Override
-
 
166057
    public boolean equals(Object that) {
-
 
166058
      if (that == null)
-
 
166059
        return false;
-
 
166060
      if (that instanceof createSnapdealOrder_args)
-
 
166061
        return this.equals((createSnapdealOrder_args)that);
-
 
166062
      return false;
-
 
166063
    }
-
 
166064
 
-
 
166065
    public boolean equals(createSnapdealOrder_args that) {
-
 
166066
      if (that == null)
-
 
166067
        return false;
-
 
166068
 
-
 
166069
      boolean this_present_snapdealOrder = true && this.isSetSnapdealOrder();
-
 
166070
      boolean that_present_snapdealOrder = true && that.isSetSnapdealOrder();
-
 
166071
      if (this_present_snapdealOrder || that_present_snapdealOrder) {
-
 
166072
        if (!(this_present_snapdealOrder && that_present_snapdealOrder))
-
 
166073
          return false;
-
 
166074
        if (!this.snapdealOrder.equals(that.snapdealOrder))
-
 
166075
          return false;
-
 
166076
      }
-
 
166077
 
-
 
166078
      return true;
-
 
166079
    }
-
 
166080
 
-
 
166081
    @Override
-
 
166082
    public int hashCode() {
-
 
166083
      return 0;
-
 
166084
    }
-
 
166085
 
-
 
166086
    public int compareTo(createSnapdealOrder_args other) {
-
 
166087
      if (!getClass().equals(other.getClass())) {
-
 
166088
        return getClass().getName().compareTo(other.getClass().getName());
-
 
166089
      }
-
 
166090
 
-
 
166091
      int lastComparison = 0;
-
 
166092
      createSnapdealOrder_args typedOther = (createSnapdealOrder_args)other;
-
 
166093
 
-
 
166094
      lastComparison = Boolean.valueOf(isSetSnapdealOrder()).compareTo(typedOther.isSetSnapdealOrder());
-
 
166095
      if (lastComparison != 0) {
-
 
166096
        return lastComparison;
-
 
166097
      }
-
 
166098
      if (isSetSnapdealOrder()) {
-
 
166099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealOrder, typedOther.snapdealOrder);
-
 
166100
        if (lastComparison != 0) {
-
 
166101
          return lastComparison;
-
 
166102
        }
-
 
166103
      }
-
 
166104
      return 0;
-
 
166105
    }
-
 
166106
 
-
 
166107
    public _Fields fieldForId(int fieldId) {
-
 
166108
      return _Fields.findByThriftId(fieldId);
-
 
166109
    }
-
 
166110
 
-
 
166111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
166112
      org.apache.thrift.protocol.TField field;
-
 
166113
      iprot.readStructBegin();
-
 
166114
      while (true)
-
 
166115
      {
-
 
166116
        field = iprot.readFieldBegin();
-
 
166117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
166118
          break;
-
 
166119
        }
-
 
166120
        switch (field.id) {
-
 
166121
          case 1: // SNAPDEAL_ORDER
-
 
166122
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
166123
              this.snapdealOrder = new SnapdealOrder();
-
 
166124
              this.snapdealOrder.read(iprot);
-
 
166125
            } else { 
-
 
166126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166127
            }
-
 
166128
            break;
-
 
166129
          default:
-
 
166130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166131
        }
-
 
166132
        iprot.readFieldEnd();
-
 
166133
      }
-
 
166134
      iprot.readStructEnd();
-
 
166135
      validate();
-
 
166136
    }
-
 
166137
 
-
 
166138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
166139
      validate();
-
 
166140
 
-
 
166141
      oprot.writeStructBegin(STRUCT_DESC);
-
 
166142
      if (this.snapdealOrder != null) {
-
 
166143
        oprot.writeFieldBegin(SNAPDEAL_ORDER_FIELD_DESC);
-
 
166144
        this.snapdealOrder.write(oprot);
-
 
166145
        oprot.writeFieldEnd();
-
 
166146
      }
-
 
166147
      oprot.writeFieldStop();
-
 
166148
      oprot.writeStructEnd();
-
 
166149
    }
-
 
166150
 
-
 
166151
    @Override
-
 
166152
    public String toString() {
-
 
166153
      StringBuilder sb = new StringBuilder("createSnapdealOrder_args(");
-
 
166154
      boolean first = true;
-
 
166155
 
-
 
166156
      sb.append("snapdealOrder:");
-
 
166157
      if (this.snapdealOrder == null) {
-
 
166158
        sb.append("null");
-
 
166159
      } else {
-
 
166160
        sb.append(this.snapdealOrder);
-
 
166161
      }
-
 
166162
      first = false;
-
 
166163
      sb.append(")");
-
 
166164
      return sb.toString();
-
 
166165
    }
-
 
166166
 
-
 
166167
    public void validate() throws org.apache.thrift.TException {
-
 
166168
      // check for required fields
-
 
166169
    }
-
 
166170
 
-
 
166171
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
166172
      try {
-
 
166173
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
166174
      } catch (org.apache.thrift.TException te) {
-
 
166175
        throw new java.io.IOException(te);
-
 
166176
      }
-
 
166177
    }
-
 
166178
 
-
 
166179
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
166180
      try {
-
 
166181
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
166182
      } catch (org.apache.thrift.TException te) {
-
 
166183
        throw new java.io.IOException(te);
-
 
166184
      }
-
 
166185
    }
-
 
166186
 
-
 
166187
  }
-
 
166188
 
-
 
166189
  public static class createSnapdealOrder_result implements org.apache.thrift.TBase<createSnapdealOrder_result, createSnapdealOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
166190
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSnapdealOrder_result");
-
 
166191
 
-
 
166192
 
-
 
166193
 
-
 
166194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
166195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
166196
;
-
 
166197
 
-
 
166198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
166199
 
-
 
166200
      static {
-
 
166201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
166202
          byName.put(field.getFieldName(), field);
-
 
166203
        }
-
 
166204
      }
-
 
166205
 
-
 
166206
      /**
-
 
166207
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
166208
       */
-
 
166209
      public static _Fields findByThriftId(int fieldId) {
-
 
166210
        switch(fieldId) {
-
 
166211
          default:
-
 
166212
            return null;
-
 
166213
        }
-
 
166214
      }
-
 
166215
 
-
 
166216
      /**
-
 
166217
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
166218
       * if it is not found.
-
 
166219
       */
-
 
166220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
166221
        _Fields fields = findByThriftId(fieldId);
-
 
166222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
166223
        return fields;
-
 
166224
      }
-
 
166225
 
-
 
166226
      /**
-
 
166227
       * Find the _Fields constant that matches name, or null if its not found.
-
 
166228
       */
-
 
166229
      public static _Fields findByName(String name) {
-
 
166230
        return byName.get(name);
-
 
166231
      }
-
 
166232
 
-
 
166233
      private final short _thriftId;
-
 
166234
      private final String _fieldName;
-
 
166235
 
-
 
166236
      _Fields(short thriftId, String fieldName) {
-
 
166237
        _thriftId = thriftId;
-
 
166238
        _fieldName = fieldName;
-
 
166239
      }
-
 
166240
 
-
 
166241
      public short getThriftFieldId() {
-
 
166242
        return _thriftId;
-
 
166243
      }
-
 
166244
 
-
 
166245
      public String getFieldName() {
-
 
166246
        return _fieldName;
-
 
166247
      }
-
 
166248
    }
-
 
166249
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
166250
    static {
-
 
166251
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
166252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
166253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSnapdealOrder_result.class, metaDataMap);
-
 
166254
    }
-
 
166255
 
-
 
166256
    public createSnapdealOrder_result() {
-
 
166257
    }
-
 
166258
 
-
 
166259
    /**
-
 
166260
     * Performs a deep copy on <i>other</i>.
-
 
166261
     */
-
 
166262
    public createSnapdealOrder_result(createSnapdealOrder_result other) {
-
 
166263
    }
-
 
166264
 
-
 
166265
    public createSnapdealOrder_result deepCopy() {
-
 
166266
      return new createSnapdealOrder_result(this);
-
 
166267
    }
-
 
166268
 
-
 
166269
    @Override
-
 
166270
    public void clear() {
-
 
166271
    }
-
 
166272
 
-
 
166273
    public void setFieldValue(_Fields field, Object value) {
-
 
166274
      switch (field) {
-
 
166275
      }
-
 
166276
    }
-
 
166277
 
-
 
166278
    public Object getFieldValue(_Fields field) {
-
 
166279
      switch (field) {
-
 
166280
      }
-
 
166281
      throw new IllegalStateException();
-
 
166282
    }
-
 
166283
 
-
 
166284
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
166285
    public boolean isSet(_Fields field) {
-
 
166286
      if (field == null) {
-
 
166287
        throw new IllegalArgumentException();
-
 
166288
      }
-
 
166289
 
-
 
166290
      switch (field) {
-
 
166291
      }
-
 
166292
      throw new IllegalStateException();
-
 
166293
    }
-
 
166294
 
-
 
166295
    @Override
-
 
166296
    public boolean equals(Object that) {
-
 
166297
      if (that == null)
-
 
166298
        return false;
-
 
166299
      if (that instanceof createSnapdealOrder_result)
-
 
166300
        return this.equals((createSnapdealOrder_result)that);
-
 
166301
      return false;
-
 
166302
    }
-
 
166303
 
-
 
166304
    public boolean equals(createSnapdealOrder_result that) {
-
 
166305
      if (that == null)
-
 
166306
        return false;
-
 
166307
 
-
 
166308
      return true;
-
 
166309
    }
-
 
166310
 
-
 
166311
    @Override
-
 
166312
    public int hashCode() {
-
 
166313
      return 0;
-
 
166314
    }
-
 
166315
 
-
 
166316
    public int compareTo(createSnapdealOrder_result other) {
-
 
166317
      if (!getClass().equals(other.getClass())) {
-
 
166318
        return getClass().getName().compareTo(other.getClass().getName());
-
 
166319
      }
-
 
166320
 
-
 
166321
      int lastComparison = 0;
-
 
166322
      createSnapdealOrder_result typedOther = (createSnapdealOrder_result)other;
-
 
166323
 
-
 
166324
      return 0;
-
 
166325
    }
-
 
166326
 
-
 
166327
    public _Fields fieldForId(int fieldId) {
-
 
166328
      return _Fields.findByThriftId(fieldId);
-
 
166329
    }
-
 
166330
 
-
 
166331
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
166332
      org.apache.thrift.protocol.TField field;
-
 
166333
      iprot.readStructBegin();
-
 
166334
      while (true)
-
 
166335
      {
-
 
166336
        field = iprot.readFieldBegin();
-
 
166337
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
166338
          break;
-
 
166339
        }
-
 
166340
        switch (field.id) {
-
 
166341
          default:
-
 
166342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166343
        }
-
 
166344
        iprot.readFieldEnd();
-
 
166345
      }
-
 
166346
      iprot.readStructEnd();
-
 
166347
      validate();
-
 
166348
    }
-
 
166349
 
-
 
166350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
166351
      oprot.writeStructBegin(STRUCT_DESC);
-
 
166352
 
-
 
166353
      oprot.writeFieldStop();
-
 
166354
      oprot.writeStructEnd();
-
 
166355
    }
-
 
166356
 
-
 
166357
    @Override
-
 
166358
    public String toString() {
-
 
166359
      StringBuilder sb = new StringBuilder("createSnapdealOrder_result(");
-
 
166360
      boolean first = true;
-
 
166361
 
-
 
166362
      sb.append(")");
-
 
166363
      return sb.toString();
-
 
166364
    }
-
 
166365
 
-
 
166366
    public void validate() throws org.apache.thrift.TException {
-
 
166367
      // check for required fields
-
 
166368
    }
-
 
166369
 
-
 
166370
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
166371
      try {
-
 
166372
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
166373
      } catch (org.apache.thrift.TException te) {
-
 
166374
        throw new java.io.IOException(te);
-
 
166375
      }
-
 
166376
    }
-
 
166377
 
-
 
166378
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
166379
      try {
-
 
166380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
166381
      } catch (org.apache.thrift.TException te) {
-
 
166382
        throw new java.io.IOException(te);
-
 
166383
      }
-
 
166384
    }
-
 
166385
 
-
 
166386
  }
-
 
166387
 
-
 
166388
  public static class getSnapdealOrder_args implements org.apache.thrift.TBase<getSnapdealOrder_args, getSnapdealOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
166389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealOrder_args");
-
 
166390
 
-
 
166391
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
166392
    private static final org.apache.thrift.protocol.TField REFERENCE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceCode", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
166393
    private static final org.apache.thrift.protocol.TField SUBRDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("subrderId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
166394
 
-
 
166395
    private long orderId; // required
-
 
166396
    private String referenceCode; // required
-
 
166397
    private long subrderId; // required
-
 
166398
 
-
 
166399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
166400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
166401
      ORDER_ID((short)1, "orderId"),
-
 
166402
      REFERENCE_CODE((short)2, "referenceCode"),
-
 
166403
      SUBRDER_ID((short)3, "subrderId");
-
 
166404
 
-
 
166405
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
166406
 
-
 
166407
      static {
-
 
166408
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
166409
          byName.put(field.getFieldName(), field);
-
 
166410
        }
-
 
166411
      }
-
 
166412
 
-
 
166413
      /**
-
 
166414
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
166415
       */
-
 
166416
      public static _Fields findByThriftId(int fieldId) {
-
 
166417
        switch(fieldId) {
-
 
166418
          case 1: // ORDER_ID
-
 
166419
            return ORDER_ID;
-
 
166420
          case 2: // REFERENCE_CODE
-
 
166421
            return REFERENCE_CODE;
-
 
166422
          case 3: // SUBRDER_ID
-
 
166423
            return SUBRDER_ID;
-
 
166424
          default:
-
 
166425
            return null;
-
 
166426
        }
-
 
166427
      }
-
 
166428
 
-
 
166429
      /**
-
 
166430
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
166431
       * if it is not found.
-
 
166432
       */
-
 
166433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
166434
        _Fields fields = findByThriftId(fieldId);
-
 
166435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
166436
        return fields;
-
 
166437
      }
-
 
166438
 
-
 
166439
      /**
-
 
166440
       * Find the _Fields constant that matches name, or null if its not found.
-
 
166441
       */
-
 
166442
      public static _Fields findByName(String name) {
-
 
166443
        return byName.get(name);
-
 
166444
      }
-
 
166445
 
-
 
166446
      private final short _thriftId;
-
 
166447
      private final String _fieldName;
-
 
166448
 
-
 
166449
      _Fields(short thriftId, String fieldName) {
-
 
166450
        _thriftId = thriftId;
-
 
166451
        _fieldName = fieldName;
-
 
166452
      }
-
 
166453
 
-
 
166454
      public short getThriftFieldId() {
-
 
166455
        return _thriftId;
-
 
166456
      }
-
 
166457
 
-
 
166458
      public String getFieldName() {
-
 
166459
        return _fieldName;
-
 
166460
      }
-
 
166461
    }
-
 
166462
 
-
 
166463
    // isset id assignments
-
 
166464
    private static final int __ORDERID_ISSET_ID = 0;
-
 
166465
    private static final int __SUBRDERID_ISSET_ID = 1;
-
 
166466
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
166467
 
-
 
166468
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
166469
    static {
-
 
166470
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
166471
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166472
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
166473
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166474
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
166475
      tmpMap.put(_Fields.SUBRDER_ID, new org.apache.thrift.meta_data.FieldMetaData("subrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
166477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
166478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealOrder_args.class, metaDataMap);
-
 
166479
    }
-
 
166480
 
-
 
166481
    public getSnapdealOrder_args() {
-
 
166482
    }
-
 
166483
 
-
 
166484
    public getSnapdealOrder_args(
-
 
166485
      long orderId,
-
 
166486
      String referenceCode,
-
 
166487
      long subrderId)
-
 
166488
    {
-
 
166489
      this();
-
 
166490
      this.orderId = orderId;
-
 
166491
      setOrderIdIsSet(true);
-
 
166492
      this.referenceCode = referenceCode;
-
 
166493
      this.subrderId = subrderId;
-
 
166494
      setSubrderIdIsSet(true);
-
 
166495
    }
-
 
166496
 
-
 
166497
    /**
-
 
166498
     * Performs a deep copy on <i>other</i>.
-
 
166499
     */
-
 
166500
    public getSnapdealOrder_args(getSnapdealOrder_args other) {
-
 
166501
      __isset_bit_vector.clear();
-
 
166502
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
166503
      this.orderId = other.orderId;
-
 
166504
      if (other.isSetReferenceCode()) {
-
 
166505
        this.referenceCode = other.referenceCode;
-
 
166506
      }
-
 
166507
      this.subrderId = other.subrderId;
-
 
166508
    }
-
 
166509
 
-
 
166510
    public getSnapdealOrder_args deepCopy() {
-
 
166511
      return new getSnapdealOrder_args(this);
-
 
166512
    }
-
 
166513
 
-
 
166514
    @Override
-
 
166515
    public void clear() {
-
 
166516
      setOrderIdIsSet(false);
-
 
166517
      this.orderId = 0;
-
 
166518
      this.referenceCode = null;
-
 
166519
      setSubrderIdIsSet(false);
-
 
166520
      this.subrderId = 0;
-
 
166521
    }
-
 
166522
 
-
 
166523
    public long getOrderId() {
-
 
166524
      return this.orderId;
-
 
166525
    }
-
 
166526
 
-
 
166527
    public void setOrderId(long orderId) {
-
 
166528
      this.orderId = orderId;
-
 
166529
      setOrderIdIsSet(true);
-
 
166530
    }
-
 
166531
 
-
 
166532
    public void unsetOrderId() {
-
 
166533
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
166534
    }
-
 
166535
 
-
 
166536
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
166537
    public boolean isSetOrderId() {
-
 
166538
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
166539
    }
-
 
166540
 
-
 
166541
    public void setOrderIdIsSet(boolean value) {
-
 
166542
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
166543
    }
-
 
166544
 
-
 
166545
    public String getReferenceCode() {
-
 
166546
      return this.referenceCode;
-
 
166547
    }
-
 
166548
 
-
 
166549
    public void setReferenceCode(String referenceCode) {
-
 
166550
      this.referenceCode = referenceCode;
-
 
166551
    }
-
 
166552
 
-
 
166553
    public void unsetReferenceCode() {
-
 
166554
      this.referenceCode = null;
-
 
166555
    }
-
 
166556
 
-
 
166557
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
-
 
166558
    public boolean isSetReferenceCode() {
-
 
166559
      return this.referenceCode != null;
-
 
166560
    }
-
 
166561
 
-
 
166562
    public void setReferenceCodeIsSet(boolean value) {
-
 
166563
      if (!value) {
-
 
166564
        this.referenceCode = null;
-
 
166565
      }
-
 
166566
    }
-
 
166567
 
-
 
166568
    public long getSubrderId() {
-
 
166569
      return this.subrderId;
-
 
166570
    }
-
 
166571
 
-
 
166572
    public void setSubrderId(long subrderId) {
-
 
166573
      this.subrderId = subrderId;
-
 
166574
      setSubrderIdIsSet(true);
-
 
166575
    }
-
 
166576
 
-
 
166577
    public void unsetSubrderId() {
-
 
166578
      __isset_bit_vector.clear(__SUBRDERID_ISSET_ID);
-
 
166579
    }
-
 
166580
 
-
 
166581
    /** Returns true if field subrderId is set (has been assigned a value) and false otherwise */
-
 
166582
    public boolean isSetSubrderId() {
-
 
166583
      return __isset_bit_vector.get(__SUBRDERID_ISSET_ID);
-
 
166584
    }
-
 
166585
 
-
 
166586
    public void setSubrderIdIsSet(boolean value) {
-
 
166587
      __isset_bit_vector.set(__SUBRDERID_ISSET_ID, value);
-
 
166588
    }
-
 
166589
 
-
 
166590
    public void setFieldValue(_Fields field, Object value) {
-
 
166591
      switch (field) {
-
 
166592
      case ORDER_ID:
-
 
166593
        if (value == null) {
-
 
166594
          unsetOrderId();
-
 
166595
        } else {
-
 
166596
          setOrderId((Long)value);
-
 
166597
        }
-
 
166598
        break;
-
 
166599
 
-
 
166600
      case REFERENCE_CODE:
-
 
166601
        if (value == null) {
-
 
166602
          unsetReferenceCode();
-
 
166603
        } else {
-
 
166604
          setReferenceCode((String)value);
-
 
166605
        }
-
 
166606
        break;
-
 
166607
 
-
 
166608
      case SUBRDER_ID:
-
 
166609
        if (value == null) {
-
 
166610
          unsetSubrderId();
-
 
166611
        } else {
-
 
166612
          setSubrderId((Long)value);
-
 
166613
        }
-
 
166614
        break;
-
 
166615
 
-
 
166616
      }
-
 
166617
    }
-
 
166618
 
-
 
166619
    public Object getFieldValue(_Fields field) {
-
 
166620
      switch (field) {
-
 
166621
      case ORDER_ID:
-
 
166622
        return Long.valueOf(getOrderId());
-
 
166623
 
-
 
166624
      case REFERENCE_CODE:
-
 
166625
        return getReferenceCode();
-
 
166626
 
-
 
166627
      case SUBRDER_ID:
-
 
166628
        return Long.valueOf(getSubrderId());
-
 
166629
 
-
 
166630
      }
-
 
166631
      throw new IllegalStateException();
-
 
166632
    }
-
 
166633
 
-
 
166634
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
166635
    public boolean isSet(_Fields field) {
-
 
166636
      if (field == null) {
-
 
166637
        throw new IllegalArgumentException();
-
 
166638
      }
-
 
166639
 
-
 
166640
      switch (field) {
-
 
166641
      case ORDER_ID:
-
 
166642
        return isSetOrderId();
-
 
166643
      case REFERENCE_CODE:
-
 
166644
        return isSetReferenceCode();
-
 
166645
      case SUBRDER_ID:
-
 
166646
        return isSetSubrderId();
-
 
166647
      }
-
 
166648
      throw new IllegalStateException();
-
 
166649
    }
-
 
166650
 
-
 
166651
    @Override
-
 
166652
    public boolean equals(Object that) {
-
 
166653
      if (that == null)
-
 
166654
        return false;
-
 
166655
      if (that instanceof getSnapdealOrder_args)
-
 
166656
        return this.equals((getSnapdealOrder_args)that);
-
 
166657
      return false;
-
 
166658
    }
-
 
166659
 
-
 
166660
    public boolean equals(getSnapdealOrder_args that) {
-
 
166661
      if (that == null)
-
 
166662
        return false;
-
 
166663
 
-
 
166664
      boolean this_present_orderId = true;
-
 
166665
      boolean that_present_orderId = true;
-
 
166666
      if (this_present_orderId || that_present_orderId) {
-
 
166667
        if (!(this_present_orderId && that_present_orderId))
-
 
166668
          return false;
-
 
166669
        if (this.orderId != that.orderId)
-
 
166670
          return false;
-
 
166671
      }
-
 
166672
 
-
 
166673
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
-
 
166674
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
-
 
166675
      if (this_present_referenceCode || that_present_referenceCode) {
-
 
166676
        if (!(this_present_referenceCode && that_present_referenceCode))
-
 
166677
          return false;
-
 
166678
        if (!this.referenceCode.equals(that.referenceCode))
-
 
166679
          return false;
-
 
166680
      }
-
 
166681
 
-
 
166682
      boolean this_present_subrderId = true;
-
 
166683
      boolean that_present_subrderId = true;
-
 
166684
      if (this_present_subrderId || that_present_subrderId) {
-
 
166685
        if (!(this_present_subrderId && that_present_subrderId))
-
 
166686
          return false;
-
 
166687
        if (this.subrderId != that.subrderId)
-
 
166688
          return false;
-
 
166689
      }
-
 
166690
 
-
 
166691
      return true;
-
 
166692
    }
-
 
166693
 
-
 
166694
    @Override
-
 
166695
    public int hashCode() {
-
 
166696
      return 0;
-
 
166697
    }
-
 
166698
 
-
 
166699
    public int compareTo(getSnapdealOrder_args other) {
-
 
166700
      if (!getClass().equals(other.getClass())) {
-
 
166701
        return getClass().getName().compareTo(other.getClass().getName());
-
 
166702
      }
-
 
166703
 
-
 
166704
      int lastComparison = 0;
-
 
166705
      getSnapdealOrder_args typedOther = (getSnapdealOrder_args)other;
-
 
166706
 
-
 
166707
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
166708
      if (lastComparison != 0) {
-
 
166709
        return lastComparison;
-
 
166710
      }
-
 
166711
      if (isSetOrderId()) {
-
 
166712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
166713
        if (lastComparison != 0) {
-
 
166714
          return lastComparison;
-
 
166715
        }
-
 
166716
      }
-
 
166717
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
-
 
166718
      if (lastComparison != 0) {
-
 
166719
        return lastComparison;
-
 
166720
      }
-
 
166721
      if (isSetReferenceCode()) {
-
 
166722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
-
 
166723
        if (lastComparison != 0) {
-
 
166724
          return lastComparison;
-
 
166725
        }
-
 
166726
      }
-
 
166727
      lastComparison = Boolean.valueOf(isSetSubrderId()).compareTo(typedOther.isSetSubrderId());
-
 
166728
      if (lastComparison != 0) {
-
 
166729
        return lastComparison;
-
 
166730
      }
-
 
166731
      if (isSetSubrderId()) {
-
 
166732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subrderId, typedOther.subrderId);
-
 
166733
        if (lastComparison != 0) {
-
 
166734
          return lastComparison;
-
 
166735
        }
-
 
166736
      }
-
 
166737
      return 0;
-
 
166738
    }
-
 
166739
 
-
 
166740
    public _Fields fieldForId(int fieldId) {
-
 
166741
      return _Fields.findByThriftId(fieldId);
-
 
166742
    }
-
 
166743
 
-
 
166744
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
166745
      org.apache.thrift.protocol.TField field;
-
 
166746
      iprot.readStructBegin();
-
 
166747
      while (true)
-
 
166748
      {
-
 
166749
        field = iprot.readFieldBegin();
-
 
166750
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
166751
          break;
-
 
166752
        }
-
 
166753
        switch (field.id) {
-
 
166754
          case 1: // ORDER_ID
-
 
166755
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
166756
              this.orderId = iprot.readI64();
-
 
166757
              setOrderIdIsSet(true);
-
 
166758
            } else { 
-
 
166759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166760
            }
-
 
166761
            break;
-
 
166762
          case 2: // REFERENCE_CODE
-
 
166763
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
166764
              this.referenceCode = iprot.readString();
-
 
166765
            } else { 
-
 
166766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166767
            }
-
 
166768
            break;
-
 
166769
          case 3: // SUBRDER_ID
-
 
166770
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
166771
              this.subrderId = iprot.readI64();
-
 
166772
              setSubrderIdIsSet(true);
-
 
166773
            } else { 
-
 
166774
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166775
            }
-
 
166776
            break;
-
 
166777
          default:
-
 
166778
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
166779
        }
-
 
166780
        iprot.readFieldEnd();
-
 
166781
      }
-
 
166782
      iprot.readStructEnd();
-
 
166783
      validate();
-
 
166784
    }
-
 
166785
 
-
 
166786
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
166787
      validate();
-
 
166788
 
-
 
166789
      oprot.writeStructBegin(STRUCT_DESC);
-
 
166790
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
166791
      oprot.writeI64(this.orderId);
-
 
166792
      oprot.writeFieldEnd();
-
 
166793
      if (this.referenceCode != null) {
-
 
166794
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
-
 
166795
        oprot.writeString(this.referenceCode);
-
 
166796
        oprot.writeFieldEnd();
-
 
166797
      }
-
 
166798
      oprot.writeFieldBegin(SUBRDER_ID_FIELD_DESC);
-
 
166799
      oprot.writeI64(this.subrderId);
-
 
166800
      oprot.writeFieldEnd();
-
 
166801
      oprot.writeFieldStop();
-
 
166802
      oprot.writeStructEnd();
-
 
166803
    }
-
 
166804
 
-
 
166805
    @Override
-
 
166806
    public String toString() {
-
 
166807
      StringBuilder sb = new StringBuilder("getSnapdealOrder_args(");
-
 
166808
      boolean first = true;
-
 
166809
 
-
 
166810
      sb.append("orderId:");
-
 
166811
      sb.append(this.orderId);
-
 
166812
      first = false;
-
 
166813
      if (!first) sb.append(", ");
-
 
166814
      sb.append("referenceCode:");
-
 
166815
      if (this.referenceCode == null) {
-
 
166816
        sb.append("null");
-
 
166817
      } else {
-
 
166818
        sb.append(this.referenceCode);
-
 
166819
      }
-
 
166820
      first = false;
-
 
166821
      if (!first) sb.append(", ");
-
 
166822
      sb.append("subrderId:");
-
 
166823
      sb.append(this.subrderId);
-
 
166824
      first = false;
-
 
166825
      sb.append(")");
-
 
166826
      return sb.toString();
-
 
166827
    }
-
 
166828
 
-
 
166829
    public void validate() throws org.apache.thrift.TException {
-
 
166830
      // check for required fields
-
 
166831
    }
-
 
166832
 
-
 
166833
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
166834
      try {
-
 
166835
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
166836
      } catch (org.apache.thrift.TException te) {
-
 
166837
        throw new java.io.IOException(te);
-
 
166838
      }
-
 
166839
    }
-
 
166840
 
-
 
166841
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
166842
      try {
-
 
166843
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
166844
        __isset_bit_vector = new BitSet(1);
-
 
166845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
166846
      } catch (org.apache.thrift.TException te) {
-
 
166847
        throw new java.io.IOException(te);
-
 
166848
      }
-
 
166849
    }
-
 
166850
 
-
 
166851
  }
-
 
166852
 
-
 
166853
  public static class getSnapdealOrder_result implements org.apache.thrift.TBase<getSnapdealOrder_result, getSnapdealOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
166854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealOrder_result");
-
 
166855
 
-
 
166856
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
166857
 
-
 
166858
    private SnapdealOrder success; // required
-
 
166859
 
-
 
166860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
166861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
166862
      SUCCESS((short)0, "success");
-
 
166863
 
-
 
166864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
166865
 
-
 
166866
      static {
-
 
166867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
166868
          byName.put(field.getFieldName(), field);
-
 
166869
        }
-
 
166870
      }
-
 
166871
 
-
 
166872
      /**
-
 
166873
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
166874
       */
-
 
166875
      public static _Fields findByThriftId(int fieldId) {
-
 
166876
        switch(fieldId) {
-
 
166877
          case 0: // SUCCESS
-
 
166878
            return SUCCESS;
-
 
166879
          default:
-
 
166880
            return null;
-
 
166881
        }
-
 
166882
      }
-
 
166883
 
-
 
166884
      /**
-
 
166885
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
166886
       * if it is not found.
-
 
166887
       */
-
 
166888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
166889
        _Fields fields = findByThriftId(fieldId);
-
 
166890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
166891
        return fields;
-
 
166892
      }
-
 
166893
 
-
 
166894
      /**
-
 
166895
       * Find the _Fields constant that matches name, or null if its not found.
-
 
166896
       */
-
 
166897
      public static _Fields findByName(String name) {
-
 
166898
        return byName.get(name);
-
 
166899
      }
-
 
166900
 
-
 
166901
      private final short _thriftId;
-
 
166902
      private final String _fieldName;
-
 
166903
 
-
 
166904
      _Fields(short thriftId, String fieldName) {
-
 
166905
        _thriftId = thriftId;
-
 
166906
        _fieldName = fieldName;
-
 
166907
      }
-
 
166908
 
-
 
166909
      public short getThriftFieldId() {
-
 
166910
        return _thriftId;
-
 
166911
      }
-
 
166912
 
-
 
166913
      public String getFieldName() {
-
 
166914
        return _fieldName;
-
 
166915
      }
-
 
166916
    }
-
 
166917
 
-
 
166918
    // isset id assignments
-
 
166919
 
-
 
166920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
166921
    static {
-
 
166922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
166923
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166924
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealOrder.class)));
-
 
166925
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
166926
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealOrder_result.class, metaDataMap);
-
 
166927
    }
-
 
166928
 
-
 
166929
    public getSnapdealOrder_result() {
-
 
166930
    }
-
 
166931
 
-
 
166932
    public getSnapdealOrder_result(
-
 
166933
      SnapdealOrder success)
-
 
166934
    {
-
 
166935
      this();
-
 
166936
      this.success = success;
-
 
166937
    }
-
 
166938
 
-
 
166939
    /**
-
 
166940
     * Performs a deep copy on <i>other</i>.
-
 
166941
     */
-
 
166942
    public getSnapdealOrder_result(getSnapdealOrder_result other) {
-
 
166943
      if (other.isSetSuccess()) {
-
 
166944
        this.success = new SnapdealOrder(other.success);
-
 
166945
      }
-
 
166946
    }
-
 
166947
 
-
 
166948
    public getSnapdealOrder_result deepCopy() {
-
 
166949
      return new getSnapdealOrder_result(this);
-
 
166950
    }
-
 
166951
 
-
 
166952
    @Override
-
 
166953
    public void clear() {
-
 
166954
      this.success = null;
-
 
166955
    }
-
 
166956
 
-
 
166957
    public SnapdealOrder getSuccess() {
-
 
166958
      return this.success;
-
 
166959
    }
-
 
166960
 
-
 
166961
    public void setSuccess(SnapdealOrder success) {
-
 
166962
      this.success = success;
-
 
166963
    }
-
 
166964
 
-
 
166965
    public void unsetSuccess() {
-
 
166966
      this.success = null;
-
 
166967
    }
-
 
166968
 
-
 
166969
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
166970
    public boolean isSetSuccess() {
-
 
166971
      return this.success != null;
-
 
166972
    }
-
 
166973
 
-
 
166974
    public void setSuccessIsSet(boolean value) {
-
 
166975
      if (!value) {
-
 
166976
        this.success = null;
-
 
166977
      }
-
 
166978
    }
-
 
166979
 
-
 
166980
    public void setFieldValue(_Fields field, Object value) {
-
 
166981
      switch (field) {
-
 
166982
      case SUCCESS:
-
 
166983
        if (value == null) {
-
 
166984
          unsetSuccess();
-
 
166985
        } else {
-
 
166986
          setSuccess((SnapdealOrder)value);
-
 
166987
        }
-
 
166988
        break;
-
 
166989
 
-
 
166990
      }
-
 
166991
    }
-
 
166992
 
-
 
166993
    public Object getFieldValue(_Fields field) {
-
 
166994
      switch (field) {
-
 
166995
      case SUCCESS:
-
 
166996
        return getSuccess();
-
 
166997
 
-
 
166998
      }
-
 
166999
      throw new IllegalStateException();
-
 
167000
    }
-
 
167001
 
-
 
167002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
167003
    public boolean isSet(_Fields field) {
-
 
167004
      if (field == null) {
-
 
167005
        throw new IllegalArgumentException();
-
 
167006
      }
-
 
167007
 
-
 
167008
      switch (field) {
-
 
167009
      case SUCCESS:
-
 
167010
        return isSetSuccess();
-
 
167011
      }
-
 
167012
      throw new IllegalStateException();
-
 
167013
    }
-
 
167014
 
-
 
167015
    @Override
-
 
167016
    public boolean equals(Object that) {
-
 
167017
      if (that == null)
-
 
167018
        return false;
-
 
167019
      if (that instanceof getSnapdealOrder_result)
-
 
167020
        return this.equals((getSnapdealOrder_result)that);
-
 
167021
      return false;
-
 
167022
    }
-
 
167023
 
-
 
167024
    public boolean equals(getSnapdealOrder_result that) {
-
 
167025
      if (that == null)
-
 
167026
        return false;
-
 
167027
 
-
 
167028
      boolean this_present_success = true && this.isSetSuccess();
-
 
167029
      boolean that_present_success = true && that.isSetSuccess();
-
 
167030
      if (this_present_success || that_present_success) {
-
 
167031
        if (!(this_present_success && that_present_success))
-
 
167032
          return false;
-
 
167033
        if (!this.success.equals(that.success))
-
 
167034
          return false;
-
 
167035
      }
-
 
167036
 
-
 
167037
      return true;
-
 
167038
    }
-
 
167039
 
-
 
167040
    @Override
-
 
167041
    public int hashCode() {
-
 
167042
      return 0;
-
 
167043
    }
-
 
167044
 
-
 
167045
    public int compareTo(getSnapdealOrder_result other) {
-
 
167046
      if (!getClass().equals(other.getClass())) {
-
 
167047
        return getClass().getName().compareTo(other.getClass().getName());
-
 
167048
      }
-
 
167049
 
-
 
167050
      int lastComparison = 0;
-
 
167051
      getSnapdealOrder_result typedOther = (getSnapdealOrder_result)other;
-
 
167052
 
-
 
167053
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
167054
      if (lastComparison != 0) {
-
 
167055
        return lastComparison;
-
 
167056
      }
-
 
167057
      if (isSetSuccess()) {
-
 
167058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
167059
        if (lastComparison != 0) {
-
 
167060
          return lastComparison;
-
 
167061
        }
-
 
167062
      }
-
 
167063
      return 0;
-
 
167064
    }
-
 
167065
 
-
 
167066
    public _Fields fieldForId(int fieldId) {
-
 
167067
      return _Fields.findByThriftId(fieldId);
-
 
167068
    }
-
 
167069
 
-
 
167070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
167071
      org.apache.thrift.protocol.TField field;
-
 
167072
      iprot.readStructBegin();
-
 
167073
      while (true)
-
 
167074
      {
-
 
167075
        field = iprot.readFieldBegin();
-
 
167076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
167077
          break;
-
 
167078
        }
-
 
167079
        switch (field.id) {
-
 
167080
          case 0: // SUCCESS
-
 
167081
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
167082
              this.success = new SnapdealOrder();
-
 
167083
              this.success.read(iprot);
-
 
167084
            } else { 
-
 
167085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
167086
            }
-
 
167087
            break;
-
 
167088
          default:
-
 
167089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
167090
        }
-
 
167091
        iprot.readFieldEnd();
-
 
167092
      }
-
 
167093
      iprot.readStructEnd();
-
 
167094
      validate();
-
 
167095
    }
-
 
167096
 
-
 
167097
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
167098
      oprot.writeStructBegin(STRUCT_DESC);
-
 
167099
 
-
 
167100
      if (this.isSetSuccess()) {
-
 
167101
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
167102
        this.success.write(oprot);
-
 
167103
        oprot.writeFieldEnd();
-
 
167104
      }
-
 
167105
      oprot.writeFieldStop();
-
 
167106
      oprot.writeStructEnd();
-
 
167107
    }
-
 
167108
 
-
 
167109
    @Override
-
 
167110
    public String toString() {
-
 
167111
      StringBuilder sb = new StringBuilder("getSnapdealOrder_result(");
-
 
167112
      boolean first = true;
-
 
167113
 
-
 
167114
      sb.append("success:");
-
 
167115
      if (this.success == null) {
-
 
167116
        sb.append("null");
-
 
167117
      } else {
-
 
167118
        sb.append(this.success);
-
 
167119
      }
-
 
167120
      first = false;
-
 
167121
      sb.append(")");
-
 
167122
      return sb.toString();
-
 
167123
    }
-
 
167124
 
-
 
167125
    public void validate() throws org.apache.thrift.TException {
-
 
167126
      // check for required fields
-
 
167127
    }
-
 
167128
 
-
 
167129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
167130
      try {
-
 
167131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
167132
      } catch (org.apache.thrift.TException te) {
-
 
167133
        throw new java.io.IOException(te);
-
 
167134
      }
-
 
167135
    }
-
 
167136
 
-
 
167137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
167138
      try {
-
 
167139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
167140
      } catch (org.apache.thrift.TException te) {
-
 
167141
        throw new java.io.IOException(te);
-
 
167142
      }
-
 
167143
    }
-
 
167144
 
-
 
167145
  }
-
 
167146
 
-
 
167147
  public static class snapdealOrderExists_args implements org.apache.thrift.TBase<snapdealOrderExists_args, snapdealOrderExists_args._Fields>, java.io.Serializable, Cloneable   {
-
 
167148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("snapdealOrderExists_args");
-
 
167149
 
-
 
167150
    private static final org.apache.thrift.protocol.TField SUB_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("subOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
167151
 
-
 
167152
    private long subOrderId; // required
-
 
167153
 
-
 
167154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
167155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
167156
      SUB_ORDER_ID((short)1, "subOrderId");
-
 
167157
 
-
 
167158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
167159
 
-
 
167160
      static {
-
 
167161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
167162
          byName.put(field.getFieldName(), field);
-
 
167163
        }
-
 
167164
      }
-
 
167165
 
-
 
167166
      /**
-
 
167167
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
167168
       */
-
 
167169
      public static _Fields findByThriftId(int fieldId) {
-
 
167170
        switch(fieldId) {
-
 
167171
          case 1: // SUB_ORDER_ID
-
 
167172
            return SUB_ORDER_ID;
-
 
167173
          default:
-
 
167174
            return null;
-
 
167175
        }
-
 
167176
      }
-
 
167177
 
-
 
167178
      /**
-
 
167179
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
167180
       * if it is not found.
-
 
167181
       */
-
 
167182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
167183
        _Fields fields = findByThriftId(fieldId);
-
 
167184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
167185
        return fields;
-
 
167186
      }
-
 
167187
 
-
 
167188
      /**
-
 
167189
       * Find the _Fields constant that matches name, or null if its not found.
-
 
167190
       */
-
 
167191
      public static _Fields findByName(String name) {
-
 
167192
        return byName.get(name);
-
 
167193
      }
-
 
167194
 
-
 
167195
      private final short _thriftId;
-
 
167196
      private final String _fieldName;
-
 
167197
 
-
 
167198
      _Fields(short thriftId, String fieldName) {
-
 
167199
        _thriftId = thriftId;
-
 
167200
        _fieldName = fieldName;
-
 
167201
      }
-
 
167202
 
-
 
167203
      public short getThriftFieldId() {
-
 
167204
        return _thriftId;
-
 
167205
      }
-
 
167206
 
-
 
167207
      public String getFieldName() {
-
 
167208
        return _fieldName;
-
 
167209
      }
-
 
167210
    }
-
 
167211
 
-
 
167212
    // isset id assignments
-
 
167213
    private static final int __SUBORDERID_ISSET_ID = 0;
-
 
167214
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
167215
 
-
 
167216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
167217
    static {
-
 
167218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
167219
      tmpMap.put(_Fields.SUB_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("subOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
167221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
167222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(snapdealOrderExists_args.class, metaDataMap);
-
 
167223
    }
-
 
167224
 
-
 
167225
    public snapdealOrderExists_args() {
-
 
167226
    }
-
 
167227
 
-
 
167228
    public snapdealOrderExists_args(
-
 
167229
      long subOrderId)
-
 
167230
    {
-
 
167231
      this();
-
 
167232
      this.subOrderId = subOrderId;
-
 
167233
      setSubOrderIdIsSet(true);
-
 
167234
    }
-
 
167235
 
-
 
167236
    /**
-
 
167237
     * Performs a deep copy on <i>other</i>.
-
 
167238
     */
-
 
167239
    public snapdealOrderExists_args(snapdealOrderExists_args other) {
-
 
167240
      __isset_bit_vector.clear();
-
 
167241
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
167242
      this.subOrderId = other.subOrderId;
-
 
167243
    }
-
 
167244
 
-
 
167245
    public snapdealOrderExists_args deepCopy() {
-
 
167246
      return new snapdealOrderExists_args(this);
-
 
167247
    }
-
 
167248
 
-
 
167249
    @Override
-
 
167250
    public void clear() {
-
 
167251
      setSubOrderIdIsSet(false);
-
 
167252
      this.subOrderId = 0;
-
 
167253
    }
-
 
167254
 
-
 
167255
    public long getSubOrderId() {
-
 
167256
      return this.subOrderId;
-
 
167257
    }
-
 
167258
 
-
 
167259
    public void setSubOrderId(long subOrderId) {
-
 
167260
      this.subOrderId = subOrderId;
-
 
167261
      setSubOrderIdIsSet(true);
-
 
167262
    }
-
 
167263
 
-
 
167264
    public void unsetSubOrderId() {
-
 
167265
      __isset_bit_vector.clear(__SUBORDERID_ISSET_ID);
-
 
167266
    }
-
 
167267
 
-
 
167268
    /** Returns true if field subOrderId is set (has been assigned a value) and false otherwise */
-
 
167269
    public boolean isSetSubOrderId() {
-
 
167270
      return __isset_bit_vector.get(__SUBORDERID_ISSET_ID);
-
 
167271
    }
-
 
167272
 
-
 
167273
    public void setSubOrderIdIsSet(boolean value) {
-
 
167274
      __isset_bit_vector.set(__SUBORDERID_ISSET_ID, value);
-
 
167275
    }
-
 
167276
 
-
 
167277
    public void setFieldValue(_Fields field, Object value) {
-
 
167278
      switch (field) {
-
 
167279
      case SUB_ORDER_ID:
-
 
167280
        if (value == null) {
-
 
167281
          unsetSubOrderId();
-
 
167282
        } else {
-
 
167283
          setSubOrderId((Long)value);
-
 
167284
        }
-
 
167285
        break;
-
 
167286
 
-
 
167287
      }
-
 
167288
    }
-
 
167289
 
-
 
167290
    public Object getFieldValue(_Fields field) {
-
 
167291
      switch (field) {
-
 
167292
      case SUB_ORDER_ID:
-
 
167293
        return Long.valueOf(getSubOrderId());
-
 
167294
 
-
 
167295
      }
-
 
167296
      throw new IllegalStateException();
-
 
167297
    }
-
 
167298
 
-
 
167299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
167300
    public boolean isSet(_Fields field) {
-
 
167301
      if (field == null) {
-
 
167302
        throw new IllegalArgumentException();
-
 
167303
      }
-
 
167304
 
-
 
167305
      switch (field) {
-
 
167306
      case SUB_ORDER_ID:
-
 
167307
        return isSetSubOrderId();
-
 
167308
      }
-
 
167309
      throw new IllegalStateException();
-
 
167310
    }
-
 
167311
 
-
 
167312
    @Override
-
 
167313
    public boolean equals(Object that) {
-
 
167314
      if (that == null)
-
 
167315
        return false;
-
 
167316
      if (that instanceof snapdealOrderExists_args)
-
 
167317
        return this.equals((snapdealOrderExists_args)that);
-
 
167318
      return false;
-
 
167319
    }
-
 
167320
 
-
 
167321
    public boolean equals(snapdealOrderExists_args that) {
-
 
167322
      if (that == null)
-
 
167323
        return false;
-
 
167324
 
-
 
167325
      boolean this_present_subOrderId = true;
-
 
167326
      boolean that_present_subOrderId = true;
-
 
167327
      if (this_present_subOrderId || that_present_subOrderId) {
-
 
167328
        if (!(this_present_subOrderId && that_present_subOrderId))
-
 
167329
          return false;
-
 
167330
        if (this.subOrderId != that.subOrderId)
-
 
167331
          return false;
-
 
167332
      }
-
 
167333
 
-
 
167334
      return true;
-
 
167335
    }
-
 
167336
 
-
 
167337
    @Override
-
 
167338
    public int hashCode() {
-
 
167339
      return 0;
-
 
167340
    }
-
 
167341
 
-
 
167342
    public int compareTo(snapdealOrderExists_args other) {
-
 
167343
      if (!getClass().equals(other.getClass())) {
-
 
167344
        return getClass().getName().compareTo(other.getClass().getName());
-
 
167345
      }
-
 
167346
 
-
 
167347
      int lastComparison = 0;
-
 
167348
      snapdealOrderExists_args typedOther = (snapdealOrderExists_args)other;
-
 
167349
 
-
 
167350
      lastComparison = Boolean.valueOf(isSetSubOrderId()).compareTo(typedOther.isSetSubOrderId());
-
 
167351
      if (lastComparison != 0) {
-
 
167352
        return lastComparison;
-
 
167353
      }
-
 
167354
      if (isSetSubOrderId()) {
-
 
167355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subOrderId, typedOther.subOrderId);
-
 
167356
        if (lastComparison != 0) {
-
 
167357
          return lastComparison;
-
 
167358
        }
-
 
167359
      }
-
 
167360
      return 0;
-
 
167361
    }
-
 
167362
 
-
 
167363
    public _Fields fieldForId(int fieldId) {
-
 
167364
      return _Fields.findByThriftId(fieldId);
-
 
167365
    }
-
 
167366
 
-
 
167367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
167368
      org.apache.thrift.protocol.TField field;
-
 
167369
      iprot.readStructBegin();
-
 
167370
      while (true)
-
 
167371
      {
-
 
167372
        field = iprot.readFieldBegin();
-
 
167373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
167374
          break;
-
 
167375
        }
-
 
167376
        switch (field.id) {
-
 
167377
          case 1: // SUB_ORDER_ID
-
 
167378
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
167379
              this.subOrderId = iprot.readI64();
-
 
167380
              setSubOrderIdIsSet(true);
-
 
167381
            } else { 
-
 
167382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
167383
            }
-
 
167384
            break;
-
 
167385
          default:
-
 
167386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
167387
        }
-
 
167388
        iprot.readFieldEnd();
-
 
167389
      }
-
 
167390
      iprot.readStructEnd();
-
 
167391
      validate();
-
 
167392
    }
-
 
167393
 
-
 
167394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
167395
      validate();
-
 
167396
 
-
 
167397
      oprot.writeStructBegin(STRUCT_DESC);
-
 
167398
      oprot.writeFieldBegin(SUB_ORDER_ID_FIELD_DESC);
-
 
167399
      oprot.writeI64(this.subOrderId);
-
 
167400
      oprot.writeFieldEnd();
-
 
167401
      oprot.writeFieldStop();
-
 
167402
      oprot.writeStructEnd();
-
 
167403
    }
-
 
167404
 
-
 
167405
    @Override
-
 
167406
    public String toString() {
-
 
167407
      StringBuilder sb = new StringBuilder("snapdealOrderExists_args(");
-
 
167408
      boolean first = true;
-
 
167409
 
-
 
167410
      sb.append("subOrderId:");
-
 
167411
      sb.append(this.subOrderId);
-
 
167412
      first = false;
-
 
167413
      sb.append(")");
-
 
167414
      return sb.toString();
-
 
167415
    }
-
 
167416
 
-
 
167417
    public void validate() throws org.apache.thrift.TException {
-
 
167418
      // check for required fields
-
 
167419
    }
-
 
167420
 
-
 
167421
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
167422
      try {
-
 
167423
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
167424
      } catch (org.apache.thrift.TException te) {
-
 
167425
        throw new java.io.IOException(te);
-
 
167426
      }
-
 
167427
    }
-
 
167428
 
-
 
167429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
167430
      try {
-
 
167431
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
167432
        __isset_bit_vector = new BitSet(1);
-
 
167433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
167434
      } catch (org.apache.thrift.TException te) {
-
 
167435
        throw new java.io.IOException(te);
-
 
167436
      }
-
 
167437
    }
-
 
167438
 
-
 
167439
  }
-
 
167440
 
-
 
167441
  public static class snapdealOrderExists_result implements org.apache.thrift.TBase<snapdealOrderExists_result, snapdealOrderExists_result._Fields>, java.io.Serializable, Cloneable   {
-
 
167442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("snapdealOrderExists_result");
-
 
167443
 
-
 
167444
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
167445
 
-
 
167446
    private boolean success; // required
-
 
167447
 
-
 
167448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
167449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
167450
      SUCCESS((short)0, "success");
-
 
167451
 
-
 
167452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
167453
 
-
 
167454
      static {
-
 
167455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
167456
          byName.put(field.getFieldName(), field);
-
 
167457
        }
-
 
167458
      }
-
 
167459
 
-
 
167460
      /**
-
 
167461
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
167462
       */
-
 
167463
      public static _Fields findByThriftId(int fieldId) {
-
 
167464
        switch(fieldId) {
-
 
167465
          case 0: // SUCCESS
-
 
167466
            return SUCCESS;
-
 
167467
          default:
-
 
167468
            return null;
-
 
167469
        }
-
 
167470
      }
-
 
167471
 
-
 
167472
      /**
-
 
167473
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
167474
       * if it is not found.
-
 
167475
       */
-
 
167476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
167477
        _Fields fields = findByThriftId(fieldId);
-
 
167478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
167479
        return fields;
-
 
167480
      }
-
 
167481
 
-
 
167482
      /**
-
 
167483
       * Find the _Fields constant that matches name, or null if its not found.
-
 
167484
       */
-
 
167485
      public static _Fields findByName(String name) {
-
 
167486
        return byName.get(name);
-
 
167487
      }
-
 
167488
 
-
 
167489
      private final short _thriftId;
-
 
167490
      private final String _fieldName;
-
 
167491
 
-
 
167492
      _Fields(short thriftId, String fieldName) {
-
 
167493
        _thriftId = thriftId;
-
 
167494
        _fieldName = fieldName;
-
 
167495
      }
-
 
167496
 
-
 
167497
      public short getThriftFieldId() {
-
 
167498
        return _thriftId;
-
 
167499
      }
-
 
167500
 
-
 
167501
      public String getFieldName() {
-
 
167502
        return _fieldName;
-
 
167503
      }
-
 
167504
    }
-
 
167505
 
-
 
167506
    // isset id assignments
-
 
167507
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
167508
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
167509
 
-
 
167510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
167511
    static {
-
 
167512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
167513
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
167515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
167516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(snapdealOrderExists_result.class, metaDataMap);
-
 
167517
    }
-
 
167518
 
-
 
167519
    public snapdealOrderExists_result() {
-
 
167520
    }
-
 
167521
 
-
 
167522
    public snapdealOrderExists_result(
-
 
167523
      boolean success)
-
 
167524
    {
-
 
167525
      this();
-
 
167526
      this.success = success;
-
 
167527
      setSuccessIsSet(true);
-
 
167528
    }
-
 
167529
 
-
 
167530
    /**
-
 
167531
     * Performs a deep copy on <i>other</i>.
-
 
167532
     */
-
 
167533
    public snapdealOrderExists_result(snapdealOrderExists_result other) {
-
 
167534
      __isset_bit_vector.clear();
-
 
167535
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
167536
      this.success = other.success;
-
 
167537
    }
-
 
167538
 
-
 
167539
    public snapdealOrderExists_result deepCopy() {
-
 
167540
      return new snapdealOrderExists_result(this);
-
 
167541
    }
-
 
167542
 
-
 
167543
    @Override
-
 
167544
    public void clear() {
-
 
167545
      setSuccessIsSet(false);
-
 
167546
      this.success = false;
-
 
167547
    }
-
 
167548
 
-
 
167549
    public boolean isSuccess() {
-
 
167550
      return this.success;
-
 
167551
    }
-
 
167552
 
-
 
167553
    public void setSuccess(boolean success) {
-
 
167554
      this.success = success;
-
 
167555
      setSuccessIsSet(true);
-
 
167556
    }
-
 
167557
 
-
 
167558
    public void unsetSuccess() {
-
 
167559
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
167560
    }
-
 
167561
 
-
 
167562
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
167563
    public boolean isSetSuccess() {
-
 
167564
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
167565
    }
-
 
167566
 
-
 
167567
    public void setSuccessIsSet(boolean value) {
-
 
167568
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
167569
    }
-
 
167570
 
-
 
167571
    public void setFieldValue(_Fields field, Object value) {
-
 
167572
      switch (field) {
-
 
167573
      case SUCCESS:
-
 
167574
        if (value == null) {
-
 
167575
          unsetSuccess();
-
 
167576
        } else {
-
 
167577
          setSuccess((Boolean)value);
-
 
167578
        }
-
 
167579
        break;
-
 
167580
 
-
 
167581
      }
-
 
167582
    }
-
 
167583
 
-
 
167584
    public Object getFieldValue(_Fields field) {
-
 
167585
      switch (field) {
-
 
167586
      case SUCCESS:
-
 
167587
        return Boolean.valueOf(isSuccess());
-
 
167588
 
-
 
167589
      }
-
 
167590
      throw new IllegalStateException();
-
 
167591
    }
-
 
167592
 
-
 
167593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
167594
    public boolean isSet(_Fields field) {
-
 
167595
      if (field == null) {
-
 
167596
        throw new IllegalArgumentException();
-
 
167597
      }
-
 
167598
 
-
 
167599
      switch (field) {
-
 
167600
      case SUCCESS:
-
 
167601
        return isSetSuccess();
-
 
167602
      }
-
 
167603
      throw new IllegalStateException();
-
 
167604
    }
-
 
167605
 
-
 
167606
    @Override
-
 
167607
    public boolean equals(Object that) {
-
 
167608
      if (that == null)
-
 
167609
        return false;
-
 
167610
      if (that instanceof snapdealOrderExists_result)
-
 
167611
        return this.equals((snapdealOrderExists_result)that);
-
 
167612
      return false;
-
 
167613
    }
-
 
167614
 
-
 
167615
    public boolean equals(snapdealOrderExists_result that) {
-
 
167616
      if (that == null)
-
 
167617
        return false;
-
 
167618
 
-
 
167619
      boolean this_present_success = true;
-
 
167620
      boolean that_present_success = true;
-
 
167621
      if (this_present_success || that_present_success) {
-
 
167622
        if (!(this_present_success && that_present_success))
-
 
167623
          return false;
-
 
167624
        if (this.success != that.success)
-
 
167625
          return false;
-
 
167626
      }
-
 
167627
 
-
 
167628
      return true;
-
 
167629
    }
-
 
167630
 
-
 
167631
    @Override
-
 
167632
    public int hashCode() {
-
 
167633
      return 0;
-
 
167634
    }
-
 
167635
 
-
 
167636
    public int compareTo(snapdealOrderExists_result other) {
-
 
167637
      if (!getClass().equals(other.getClass())) {
-
 
167638
        return getClass().getName().compareTo(other.getClass().getName());
-
 
167639
      }
-
 
167640
 
-
 
167641
      int lastComparison = 0;
-
 
167642
      snapdealOrderExists_result typedOther = (snapdealOrderExists_result)other;
-
 
167643
 
-
 
167644
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
167645
      if (lastComparison != 0) {
-
 
167646
        return lastComparison;
-
 
167647
      }
-
 
167648
      if (isSetSuccess()) {
-
 
167649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
167650
        if (lastComparison != 0) {
-
 
167651
          return lastComparison;
-
 
167652
        }
-
 
167653
      }
-
 
167654
      return 0;
-
 
167655
    }
-
 
167656
 
-
 
167657
    public _Fields fieldForId(int fieldId) {
-
 
167658
      return _Fields.findByThriftId(fieldId);
-
 
167659
    }
-
 
167660
 
-
 
167661
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
167662
      org.apache.thrift.protocol.TField field;
-
 
167663
      iprot.readStructBegin();
-
 
167664
      while (true)
-
 
167665
      {
-
 
167666
        field = iprot.readFieldBegin();
-
 
167667
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
167668
          break;
-
 
167669
        }
-
 
167670
        switch (field.id) {
-
 
167671
          case 0: // SUCCESS
-
 
167672
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
167673
              this.success = iprot.readBool();
-
 
167674
              setSuccessIsSet(true);
-
 
167675
            } else { 
-
 
167676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
167677
            }
-
 
167678
            break;
-
 
167679
          default:
-
 
167680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
167681
        }
-
 
167682
        iprot.readFieldEnd();
-
 
167683
      }
-
 
167684
      iprot.readStructEnd();
-
 
167685
      validate();
-
 
167686
    }
-
 
167687
 
-
 
167688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
167689
      oprot.writeStructBegin(STRUCT_DESC);
-
 
167690
 
-
 
167691
      if (this.isSetSuccess()) {
-
 
167692
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
167693
        oprot.writeBool(this.success);
-
 
167694
        oprot.writeFieldEnd();
-
 
167695
      }
-
 
167696
      oprot.writeFieldStop();
-
 
167697
      oprot.writeStructEnd();
-
 
167698
    }
-
 
167699
 
-
 
167700
    @Override
-
 
167701
    public String toString() {
-
 
167702
      StringBuilder sb = new StringBuilder("snapdealOrderExists_result(");
-
 
167703
      boolean first = true;
-
 
167704
 
-
 
167705
      sb.append("success:");
-
 
167706
      sb.append(this.success);
-
 
167707
      first = false;
-
 
167708
      sb.append(")");
-
 
167709
      return sb.toString();
-
 
167710
    }
-
 
167711
 
165638
    public void validate() throws org.apache.thrift.TException {
167712
    public void validate() throws org.apache.thrift.TException {
165639
      // check for required fields
167713
      // check for required fields
165640
    }
167714
    }
165641
 
167715
 
165642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
167716
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {