Subversion Repositories SmartDukaan

Rev

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

Rev 7560 Rev 7572
Line 991... Line 991...
991
 
991
 
992
    public boolean updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException;
992
    public boolean updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException;
993
 
993
 
994
    public boolean updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException;
994
    public boolean updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException;
995
 
995
 
-
 
996
    public List<Order> getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException;
-
 
997
 
-
 
998
    public List<Order> getOrdersByAmazonOrderItemCode(String amazonId) throws org.apache.thrift.TException;
-
 
999
 
996
  }
1000
  }
997
 
1001
 
998
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1002
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
999
 
1003
 
1000
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1004
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1375... Line 1379...
1375
 
1379
 
1376
    public void updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1380
    public void updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1377
 
1381
 
1378
    public void updateSourceDetailTimestamp(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSourceDetailTimestamp_call> resultHandler) throws org.apache.thrift.TException;
1382
    public void updateSourceDetailTimestamp(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSourceDetailTimestamp_call> resultHandler) throws org.apache.thrift.TException;
1379
 
1383
 
-
 
1384
    public void getOrdersByMobileNumber(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
1385
 
-
 
1386
    public void getOrdersByAmazonOrderItemCode(String amazonId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByAmazonOrderItemCode_call> resultHandler) throws org.apache.thrift.TException;
-
 
1387
 
1380
  }
1388
  }
1381
 
1389
 
1382
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1390
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1383
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1391
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1384
      public Factory() {}
1392
      public Factory() {}
Line 6132... Line 6140...
6132
        return result.success;
6140
        return result.success;
6133
      }
6141
      }
6134
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateSourceDetailTimestamp failed: unknown result");
6142
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateSourceDetailTimestamp failed: unknown result");
6135
    }
6143
    }
6136
 
6144
 
-
 
6145
    public List<Order> getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException
-
 
6146
    {
-
 
6147
      send_getOrdersByMobileNumber(mobileNumber);
-
 
6148
      return recv_getOrdersByMobileNumber();
-
 
6149
    }
-
 
6150
 
-
 
6151
    public void send_getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException
-
 
6152
    {
-
 
6153
      getOrdersByMobileNumber_args args = new getOrdersByMobileNumber_args();
-
 
6154
      args.setMobileNumber(mobileNumber);
-
 
6155
      sendBase("getOrdersByMobileNumber", args);
-
 
6156
    }
-
 
6157
 
-
 
6158
    public List<Order> recv_getOrdersByMobileNumber() throws org.apache.thrift.TException
-
 
6159
    {
-
 
6160
      getOrdersByMobileNumber_result result = new getOrdersByMobileNumber_result();
-
 
6161
      receiveBase(result, "getOrdersByMobileNumber");
-
 
6162
      if (result.isSetSuccess()) {
-
 
6163
        return result.success;
-
 
6164
      }
-
 
6165
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByMobileNumber failed: unknown result");
-
 
6166
    }
-
 
6167
 
-
 
6168
    public List<Order> getOrdersByAmazonOrderItemCode(String amazonId) throws org.apache.thrift.TException
-
 
6169
    {
-
 
6170
      send_getOrdersByAmazonOrderItemCode(amazonId);
-
 
6171
      return recv_getOrdersByAmazonOrderItemCode();
-
 
6172
    }
-
 
6173
 
-
 
6174
    public void send_getOrdersByAmazonOrderItemCode(String amazonId) throws org.apache.thrift.TException
-
 
6175
    {
-
 
6176
      getOrdersByAmazonOrderItemCode_args args = new getOrdersByAmazonOrderItemCode_args();
-
 
6177
      args.setAmazonId(amazonId);
-
 
6178
      sendBase("getOrdersByAmazonOrderItemCode", args);
-
 
6179
    }
-
 
6180
 
-
 
6181
    public List<Order> recv_getOrdersByAmazonOrderItemCode() throws org.apache.thrift.TException
-
 
6182
    {
-
 
6183
      getOrdersByAmazonOrderItemCode_result result = new getOrdersByAmazonOrderItemCode_result();
-
 
6184
      receiveBase(result, "getOrdersByAmazonOrderItemCode");
-
 
6185
      if (result.isSetSuccess()) {
-
 
6186
        return result.success;
-
 
6187
      }
-
 
6188
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByAmazonOrderItemCode failed: unknown result");
-
 
6189
    }
-
 
6190
 
6137
  }
6191
  }
6138
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6192
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6139
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6193
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6140
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6194
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6141
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6195
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12785... Line 12839...
12785
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12839
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12786
        return (new Client(prot)).recv_updateSourceDetailTimestamp();
12840
        return (new Client(prot)).recv_updateSourceDetailTimestamp();
12787
      }
12841
      }
12788
    }
12842
    }
12789
 
12843
 
-
 
12844
    public void getOrdersByMobileNumber(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<getOrdersByMobileNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
12845
      checkReady();
-
 
12846
      getOrdersByMobileNumber_call method_call = new getOrdersByMobileNumber_call(mobileNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
12847
      this.___currentMethod = method_call;
-
 
12848
      ___manager.call(method_call);
-
 
12849
    }
-
 
12850
 
-
 
12851
    public static class getOrdersByMobileNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12852
      private String mobileNumber;
-
 
12853
      public getOrdersByMobileNumber_call(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<getOrdersByMobileNumber_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 {
-
 
12854
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12855
        this.mobileNumber = mobileNumber;
-
 
12856
      }
-
 
12857
 
-
 
12858
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12859
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByMobileNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12860
        getOrdersByMobileNumber_args args = new getOrdersByMobileNumber_args();
-
 
12861
        args.setMobileNumber(mobileNumber);
-
 
12862
        args.write(prot);
-
 
12863
        prot.writeMessageEnd();
-
 
12864
      }
-
 
12865
 
-
 
12866
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
12867
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12868
          throw new IllegalStateException("Method call not finished!");
-
 
12869
        }
-
 
12870
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12871
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12872
        return (new Client(prot)).recv_getOrdersByMobileNumber();
-
 
12873
      }
-
 
12874
    }
-
 
12875
 
-
 
12876
    public void getOrdersByAmazonOrderItemCode(String amazonId, org.apache.thrift.async.AsyncMethodCallback<getOrdersByAmazonOrderItemCode_call> resultHandler) throws org.apache.thrift.TException {
-
 
12877
      checkReady();
-
 
12878
      getOrdersByAmazonOrderItemCode_call method_call = new getOrdersByAmazonOrderItemCode_call(amazonId, resultHandler, this, ___protocolFactory, ___transport);
-
 
12879
      this.___currentMethod = method_call;
-
 
12880
      ___manager.call(method_call);
-
 
12881
    }
-
 
12882
 
-
 
12883
    public static class getOrdersByAmazonOrderItemCode_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12884
      private String amazonId;
-
 
12885
      public getOrdersByAmazonOrderItemCode_call(String amazonId, org.apache.thrift.async.AsyncMethodCallback<getOrdersByAmazonOrderItemCode_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 {
-
 
12886
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12887
        this.amazonId = amazonId;
-
 
12888
      }
-
 
12889
 
-
 
12890
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12891
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByAmazonOrderItemCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12892
        getOrdersByAmazonOrderItemCode_args args = new getOrdersByAmazonOrderItemCode_args();
-
 
12893
        args.setAmazonId(amazonId);
-
 
12894
        args.write(prot);
-
 
12895
        prot.writeMessageEnd();
-
 
12896
      }
-
 
12897
 
-
 
12898
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
12899
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12900
          throw new IllegalStateException("Method call not finished!");
-
 
12901
        }
-
 
12902
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12903
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12904
        return (new Client(prot)).recv_getOrdersByAmazonOrderItemCode();
-
 
12905
      }
-
 
12906
    }
-
 
12907
 
12790
  }
12908
  }
12791
 
12909
 
12792
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12910
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12793
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12911
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12794
    public Processor(I iface) {
12912
    public Processor(I iface) {
Line 12988... Line 13106...
12988
      processMap.put("getCollectionsForStore", new getCollectionsForStore());
13106
      processMap.put("getCollectionsForStore", new getCollectionsForStore());
12989
      processMap.put("getAmazonOrdersToAcknowledge", new getAmazonOrdersToAcknowledge());
13107
      processMap.put("getAmazonOrdersToAcknowledge", new getAmazonOrdersToAcknowledge());
12990
      processMap.put("changeAmazonOrderStatus", new changeAmazonOrderStatus());
13108
      processMap.put("changeAmazonOrderStatus", new changeAmazonOrderStatus());
12991
      processMap.put("updateTimestampForAmazonOrder", new updateTimestampForAmazonOrder());
13109
      processMap.put("updateTimestampForAmazonOrder", new updateTimestampForAmazonOrder());
12992
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
13110
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
-
 
13111
      processMap.put("getOrdersByMobileNumber", new getOrdersByMobileNumber());
-
 
13112
      processMap.put("getOrdersByAmazonOrderItemCode", new getOrdersByAmazonOrderItemCode());
12993
      return processMap;
13113
      return processMap;
12994
    }
13114
    }
12995
 
13115
 
12996
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13116
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12997
      public createTransaction() {
13117
      public createTransaction() {
Line 16474... Line 16594...
16474
        result.setSuccessIsSet(true);
16594
        result.setSuccessIsSet(true);
16475
        return result;
16595
        return result;
16476
      }
16596
      }
16477
    }
16597
    }
16478
 
16598
 
-
 
16599
    private static class getOrdersByMobileNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByMobileNumber_args> {
-
 
16600
      public getOrdersByMobileNumber() {
-
 
16601
        super("getOrdersByMobileNumber");
-
 
16602
      }
-
 
16603
 
-
 
16604
      protected getOrdersByMobileNumber_args getEmptyArgsInstance() {
-
 
16605
        return new getOrdersByMobileNumber_args();
-
 
16606
      }
-
 
16607
 
-
 
16608
      protected getOrdersByMobileNumber_result getResult(I iface, getOrdersByMobileNumber_args args) throws org.apache.thrift.TException {
-
 
16609
        getOrdersByMobileNumber_result result = new getOrdersByMobileNumber_result();
-
 
16610
        result.success = iface.getOrdersByMobileNumber(args.mobileNumber);
-
 
16611
        return result;
-
 
16612
      }
-
 
16613
    }
-
 
16614
 
-
 
16615
    private static class getOrdersByAmazonOrderItemCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByAmazonOrderItemCode_args> {
-
 
16616
      public getOrdersByAmazonOrderItemCode() {
-
 
16617
        super("getOrdersByAmazonOrderItemCode");
-
 
16618
      }
-
 
16619
 
-
 
16620
      protected getOrdersByAmazonOrderItemCode_args getEmptyArgsInstance() {
-
 
16621
        return new getOrdersByAmazonOrderItemCode_args();
-
 
16622
      }
-
 
16623
 
-
 
16624
      protected getOrdersByAmazonOrderItemCode_result getResult(I iface, getOrdersByAmazonOrderItemCode_args args) throws org.apache.thrift.TException {
-
 
16625
        getOrdersByAmazonOrderItemCode_result result = new getOrdersByAmazonOrderItemCode_result();
-
 
16626
        result.success = iface.getOrdersByAmazonOrderItemCode(args.amazonId);
-
 
16627
        return result;
-
 
16628
      }
-
 
16629
    }
-
 
16630
 
16479
  }
16631
  }
16480
 
16632
 
16481
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16633
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16634
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16483
 
16635
 
Line 60763... Line 60915...
60763
      }
60915
      }
60764
    }
60916
    }
60765
 
60917
 
60766
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60767
      try {
60919
      try {
60768
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
60769
        __isset_bit_vector = new BitSet(1);
-
 
60770
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60771
      } catch (org.apache.thrift.TException te) {
60921
      } catch (org.apache.thrift.TException te) {
60772
        throw new java.io.IOException(te);
60922
        throw new java.io.IOException(te);
60773
      }
60923
      }
60774
    }
60924
    }
Line 65615... Line 65765...
65615
      }
65765
      }
65616
    }
65766
    }
65617
 
65767
 
65618
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65768
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65619
      try {
65769
      try {
65620
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65621
        __isset_bit_vector = new BitSet(1);
-
 
65622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65770
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65623
      } catch (org.apache.thrift.TException te) {
65771
      } catch (org.apache.thrift.TException te) {
65624
        throw new java.io.IOException(te);
65772
        throw new java.io.IOException(te);
65625
      }
65773
      }
65626
    }
65774
    }
Line 67048... Line 67196...
67048
      }
67196
      }
67049
    }
67197
    }
67050
 
67198
 
67051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67052
      try {
67200
      try {
67053
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
67054
        __isset_bit_vector = new BitSet(1);
-
 
67055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67201
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67056
      } catch (org.apache.thrift.TException te) {
67202
      } catch (org.apache.thrift.TException te) {
67057
        throw new java.io.IOException(te);
67203
        throw new java.io.IOException(te);
67058
      }
67204
      }
67059
    }
67205
    }
Line 152814... Line 152960...
152814
      first = false;
152960
      first = false;
152815
      sb.append(")");
152961
      sb.append(")");
152816
      return sb.toString();
152962
      return sb.toString();
152817
    }
152963
    }
152818
 
152964
 
-
 
152965
    public void validate() throws org.apache.thrift.TException {
-
 
152966
      // check for required fields
-
 
152967
    }
-
 
152968
 
-
 
152969
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
152970
      try {
-
 
152971
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
152972
      } catch (org.apache.thrift.TException te) {
-
 
152973
        throw new java.io.IOException(te);
-
 
152974
      }
-
 
152975
    }
-
 
152976
 
-
 
152977
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
152978
      try {
-
 
152979
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
152980
      } catch (org.apache.thrift.TException te) {
-
 
152981
        throw new java.io.IOException(te);
-
 
152982
      }
-
 
152983
    }
-
 
152984
 
-
 
152985
  }
-
 
152986
 
-
 
152987
  public static class getOrdersByMobileNumber_args implements org.apache.thrift.TBase<getOrdersByMobileNumber_args, getOrdersByMobileNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
152988
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByMobileNumber_args");
-
 
152989
 
-
 
152990
    private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
152991
 
-
 
152992
    private String mobileNumber; // required
-
 
152993
 
-
 
152994
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
152995
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
152996
      MOBILE_NUMBER((short)1, "mobileNumber");
-
 
152997
 
-
 
152998
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
152999
 
-
 
153000
      static {
-
 
153001
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
153002
          byName.put(field.getFieldName(), field);
-
 
153003
        }
-
 
153004
      }
-
 
153005
 
-
 
153006
      /**
-
 
153007
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
153008
       */
-
 
153009
      public static _Fields findByThriftId(int fieldId) {
-
 
153010
        switch(fieldId) {
-
 
153011
          case 1: // MOBILE_NUMBER
-
 
153012
            return MOBILE_NUMBER;
-
 
153013
          default:
-
 
153014
            return null;
-
 
153015
        }
-
 
153016
      }
-
 
153017
 
-
 
153018
      /**
-
 
153019
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
153020
       * if it is not found.
-
 
153021
       */
-
 
153022
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
153023
        _Fields fields = findByThriftId(fieldId);
-
 
153024
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
153025
        return fields;
-
 
153026
      }
-
 
153027
 
-
 
153028
      /**
-
 
153029
       * Find the _Fields constant that matches name, or null if its not found.
-
 
153030
       */
-
 
153031
      public static _Fields findByName(String name) {
-
 
153032
        return byName.get(name);
-
 
153033
      }
-
 
153034
 
-
 
153035
      private final short _thriftId;
-
 
153036
      private final String _fieldName;
-
 
153037
 
-
 
153038
      _Fields(short thriftId, String fieldName) {
-
 
153039
        _thriftId = thriftId;
-
 
153040
        _fieldName = fieldName;
-
 
153041
      }
-
 
153042
 
-
 
153043
      public short getThriftFieldId() {
-
 
153044
        return _thriftId;
-
 
153045
      }
-
 
153046
 
-
 
153047
      public String getFieldName() {
-
 
153048
        return _fieldName;
-
 
153049
      }
-
 
153050
    }
-
 
153051
 
-
 
153052
    // isset id assignments
-
 
153053
 
-
 
153054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
153055
    static {
-
 
153056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
153057
      tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
153059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
153060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByMobileNumber_args.class, metaDataMap);
-
 
153061
    }
-
 
153062
 
-
 
153063
    public getOrdersByMobileNumber_args() {
-
 
153064
    }
-
 
153065
 
-
 
153066
    public getOrdersByMobileNumber_args(
-
 
153067
      String mobileNumber)
-
 
153068
    {
-
 
153069
      this();
-
 
153070
      this.mobileNumber = mobileNumber;
-
 
153071
    }
-
 
153072
 
-
 
153073
    /**
-
 
153074
     * Performs a deep copy on <i>other</i>.
-
 
153075
     */
-
 
153076
    public getOrdersByMobileNumber_args(getOrdersByMobileNumber_args other) {
-
 
153077
      if (other.isSetMobileNumber()) {
-
 
153078
        this.mobileNumber = other.mobileNumber;
-
 
153079
      }
-
 
153080
    }
-
 
153081
 
-
 
153082
    public getOrdersByMobileNumber_args deepCopy() {
-
 
153083
      return new getOrdersByMobileNumber_args(this);
-
 
153084
    }
-
 
153085
 
-
 
153086
    @Override
-
 
153087
    public void clear() {
-
 
153088
      this.mobileNumber = null;
-
 
153089
    }
-
 
153090
 
-
 
153091
    public String getMobileNumber() {
-
 
153092
      return this.mobileNumber;
-
 
153093
    }
-
 
153094
 
-
 
153095
    public void setMobileNumber(String mobileNumber) {
-
 
153096
      this.mobileNumber = mobileNumber;
-
 
153097
    }
-
 
153098
 
-
 
153099
    public void unsetMobileNumber() {
-
 
153100
      this.mobileNumber = null;
-
 
153101
    }
-
 
153102
 
-
 
153103
    /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
-
 
153104
    public boolean isSetMobileNumber() {
-
 
153105
      return this.mobileNumber != null;
-
 
153106
    }
-
 
153107
 
-
 
153108
    public void setMobileNumberIsSet(boolean value) {
-
 
153109
      if (!value) {
-
 
153110
        this.mobileNumber = null;
-
 
153111
      }
-
 
153112
    }
-
 
153113
 
-
 
153114
    public void setFieldValue(_Fields field, Object value) {
-
 
153115
      switch (field) {
-
 
153116
      case MOBILE_NUMBER:
-
 
153117
        if (value == null) {
-
 
153118
          unsetMobileNumber();
-
 
153119
        } else {
-
 
153120
          setMobileNumber((String)value);
-
 
153121
        }
-
 
153122
        break;
-
 
153123
 
-
 
153124
      }
-
 
153125
    }
-
 
153126
 
-
 
153127
    public Object getFieldValue(_Fields field) {
-
 
153128
      switch (field) {
-
 
153129
      case MOBILE_NUMBER:
-
 
153130
        return getMobileNumber();
-
 
153131
 
-
 
153132
      }
-
 
153133
      throw new IllegalStateException();
-
 
153134
    }
-
 
153135
 
-
 
153136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
153137
    public boolean isSet(_Fields field) {
-
 
153138
      if (field == null) {
-
 
153139
        throw new IllegalArgumentException();
-
 
153140
      }
-
 
153141
 
-
 
153142
      switch (field) {
-
 
153143
      case MOBILE_NUMBER:
-
 
153144
        return isSetMobileNumber();
-
 
153145
      }
-
 
153146
      throw new IllegalStateException();
-
 
153147
    }
-
 
153148
 
-
 
153149
    @Override
-
 
153150
    public boolean equals(Object that) {
-
 
153151
      if (that == null)
-
 
153152
        return false;
-
 
153153
      if (that instanceof getOrdersByMobileNumber_args)
-
 
153154
        return this.equals((getOrdersByMobileNumber_args)that);
-
 
153155
      return false;
-
 
153156
    }
-
 
153157
 
-
 
153158
    public boolean equals(getOrdersByMobileNumber_args that) {
-
 
153159
      if (that == null)
-
 
153160
        return false;
-
 
153161
 
-
 
153162
      boolean this_present_mobileNumber = true && this.isSetMobileNumber();
-
 
153163
      boolean that_present_mobileNumber = true && that.isSetMobileNumber();
-
 
153164
      if (this_present_mobileNumber || that_present_mobileNumber) {
-
 
153165
        if (!(this_present_mobileNumber && that_present_mobileNumber))
-
 
153166
          return false;
-
 
153167
        if (!this.mobileNumber.equals(that.mobileNumber))
-
 
153168
          return false;
-
 
153169
      }
-
 
153170
 
-
 
153171
      return true;
-
 
153172
    }
-
 
153173
 
-
 
153174
    @Override
-
 
153175
    public int hashCode() {
-
 
153176
      return 0;
-
 
153177
    }
-
 
153178
 
-
 
153179
    public int compareTo(getOrdersByMobileNumber_args other) {
-
 
153180
      if (!getClass().equals(other.getClass())) {
-
 
153181
        return getClass().getName().compareTo(other.getClass().getName());
-
 
153182
      }
-
 
153183
 
-
 
153184
      int lastComparison = 0;
-
 
153185
      getOrdersByMobileNumber_args typedOther = (getOrdersByMobileNumber_args)other;
-
 
153186
 
-
 
153187
      lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
-
 
153188
      if (lastComparison != 0) {
-
 
153189
        return lastComparison;
-
 
153190
      }
-
 
153191
      if (isSetMobileNumber()) {
-
 
153192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
-
 
153193
        if (lastComparison != 0) {
-
 
153194
          return lastComparison;
-
 
153195
        }
-
 
153196
      }
-
 
153197
      return 0;
-
 
153198
    }
-
 
153199
 
-
 
153200
    public _Fields fieldForId(int fieldId) {
-
 
153201
      return _Fields.findByThriftId(fieldId);
-
 
153202
    }
-
 
153203
 
-
 
153204
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
153205
      org.apache.thrift.protocol.TField field;
-
 
153206
      iprot.readStructBegin();
-
 
153207
      while (true)
-
 
153208
      {
-
 
153209
        field = iprot.readFieldBegin();
-
 
153210
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
153211
          break;
-
 
153212
        }
-
 
153213
        switch (field.id) {
-
 
153214
          case 1: // MOBILE_NUMBER
-
 
153215
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
153216
              this.mobileNumber = iprot.readString();
-
 
153217
            } else { 
-
 
153218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
153219
            }
-
 
153220
            break;
-
 
153221
          default:
-
 
153222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
153223
        }
-
 
153224
        iprot.readFieldEnd();
-
 
153225
      }
-
 
153226
      iprot.readStructEnd();
-
 
153227
      validate();
-
 
153228
    }
-
 
153229
 
-
 
153230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
153231
      validate();
-
 
153232
 
-
 
153233
      oprot.writeStructBegin(STRUCT_DESC);
-
 
153234
      if (this.mobileNumber != null) {
-
 
153235
        oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
-
 
153236
        oprot.writeString(this.mobileNumber);
-
 
153237
        oprot.writeFieldEnd();
-
 
153238
      }
-
 
153239
      oprot.writeFieldStop();
-
 
153240
      oprot.writeStructEnd();
-
 
153241
    }
-
 
153242
 
-
 
153243
    @Override
-
 
153244
    public String toString() {
-
 
153245
      StringBuilder sb = new StringBuilder("getOrdersByMobileNumber_args(");
-
 
153246
      boolean first = true;
-
 
153247
 
-
 
153248
      sb.append("mobileNumber:");
-
 
153249
      if (this.mobileNumber == null) {
-
 
153250
        sb.append("null");
-
 
153251
      } else {
-
 
153252
        sb.append(this.mobileNumber);
-
 
153253
      }
-
 
153254
      first = false;
-
 
153255
      sb.append(")");
-
 
153256
      return sb.toString();
-
 
153257
    }
-
 
153258
 
-
 
153259
    public void validate() throws org.apache.thrift.TException {
-
 
153260
      // check for required fields
-
 
153261
    }
-
 
153262
 
-
 
153263
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
153264
      try {
-
 
153265
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
153266
      } catch (org.apache.thrift.TException te) {
-
 
153267
        throw new java.io.IOException(te);
-
 
153268
      }
-
 
153269
    }
-
 
153270
 
-
 
153271
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
153272
      try {
-
 
153273
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
153274
      } catch (org.apache.thrift.TException te) {
-
 
153275
        throw new java.io.IOException(te);
-
 
153276
      }
-
 
153277
    }
-
 
153278
 
-
 
153279
  }
-
 
153280
 
-
 
153281
  public static class getOrdersByMobileNumber_result implements org.apache.thrift.TBase<getOrdersByMobileNumber_result, getOrdersByMobileNumber_result._Fields>, java.io.Serializable, Cloneable   {
-
 
153282
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByMobileNumber_result");
-
 
153283
 
-
 
153284
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
153285
 
-
 
153286
    private List<Order> success; // required
-
 
153287
 
-
 
153288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
153289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
153290
      SUCCESS((short)0, "success");
-
 
153291
 
-
 
153292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
153293
 
-
 
153294
      static {
-
 
153295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
153296
          byName.put(field.getFieldName(), field);
-
 
153297
        }
-
 
153298
      }
-
 
153299
 
-
 
153300
      /**
-
 
153301
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
153302
       */
-
 
153303
      public static _Fields findByThriftId(int fieldId) {
-
 
153304
        switch(fieldId) {
-
 
153305
          case 0: // SUCCESS
-
 
153306
            return SUCCESS;
-
 
153307
          default:
-
 
153308
            return null;
-
 
153309
        }
-
 
153310
      }
-
 
153311
 
-
 
153312
      /**
-
 
153313
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
153314
       * if it is not found.
-
 
153315
       */
-
 
153316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
153317
        _Fields fields = findByThriftId(fieldId);
-
 
153318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
153319
        return fields;
-
 
153320
      }
-
 
153321
 
-
 
153322
      /**
-
 
153323
       * Find the _Fields constant that matches name, or null if its not found.
-
 
153324
       */
-
 
153325
      public static _Fields findByName(String name) {
-
 
153326
        return byName.get(name);
-
 
153327
      }
-
 
153328
 
-
 
153329
      private final short _thriftId;
-
 
153330
      private final String _fieldName;
-
 
153331
 
-
 
153332
      _Fields(short thriftId, String fieldName) {
-
 
153333
        _thriftId = thriftId;
-
 
153334
        _fieldName = fieldName;
-
 
153335
      }
-
 
153336
 
-
 
153337
      public short getThriftFieldId() {
-
 
153338
        return _thriftId;
-
 
153339
      }
-
 
153340
 
-
 
153341
      public String getFieldName() {
-
 
153342
        return _fieldName;
-
 
153343
      }
-
 
153344
    }
-
 
153345
 
-
 
153346
    // isset id assignments
-
 
153347
 
-
 
153348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
153349
    static {
-
 
153350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
153351
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153352
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
153353
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
153354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
153355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByMobileNumber_result.class, metaDataMap);
-
 
153356
    }
-
 
153357
 
-
 
153358
    public getOrdersByMobileNumber_result() {
-
 
153359
    }
-
 
153360
 
-
 
153361
    public getOrdersByMobileNumber_result(
-
 
153362
      List<Order> success)
-
 
153363
    {
-
 
153364
      this();
-
 
153365
      this.success = success;
-
 
153366
    }
-
 
153367
 
-
 
153368
    /**
-
 
153369
     * Performs a deep copy on <i>other</i>.
-
 
153370
     */
-
 
153371
    public getOrdersByMobileNumber_result(getOrdersByMobileNumber_result other) {
-
 
153372
      if (other.isSetSuccess()) {
-
 
153373
        List<Order> __this__success = new ArrayList<Order>();
-
 
153374
        for (Order other_element : other.success) {
-
 
153375
          __this__success.add(new Order(other_element));
-
 
153376
        }
-
 
153377
        this.success = __this__success;
-
 
153378
      }
-
 
153379
    }
-
 
153380
 
-
 
153381
    public getOrdersByMobileNumber_result deepCopy() {
-
 
153382
      return new getOrdersByMobileNumber_result(this);
-
 
153383
    }
-
 
153384
 
-
 
153385
    @Override
-
 
153386
    public void clear() {
-
 
153387
      this.success = null;
-
 
153388
    }
-
 
153389
 
-
 
153390
    public int getSuccessSize() {
-
 
153391
      return (this.success == null) ? 0 : this.success.size();
-
 
153392
    }
-
 
153393
 
-
 
153394
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
153395
      return (this.success == null) ? null : this.success.iterator();
-
 
153396
    }
-
 
153397
 
-
 
153398
    public void addToSuccess(Order elem) {
-
 
153399
      if (this.success == null) {
-
 
153400
        this.success = new ArrayList<Order>();
-
 
153401
      }
-
 
153402
      this.success.add(elem);
-
 
153403
    }
-
 
153404
 
-
 
153405
    public List<Order> getSuccess() {
-
 
153406
      return this.success;
-
 
153407
    }
-
 
153408
 
-
 
153409
    public void setSuccess(List<Order> success) {
-
 
153410
      this.success = success;
-
 
153411
    }
-
 
153412
 
-
 
153413
    public void unsetSuccess() {
-
 
153414
      this.success = null;
-
 
153415
    }
-
 
153416
 
-
 
153417
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
153418
    public boolean isSetSuccess() {
-
 
153419
      return this.success != null;
-
 
153420
    }
-
 
153421
 
-
 
153422
    public void setSuccessIsSet(boolean value) {
-
 
153423
      if (!value) {
-
 
153424
        this.success = null;
-
 
153425
      }
-
 
153426
    }
-
 
153427
 
-
 
153428
    public void setFieldValue(_Fields field, Object value) {
-
 
153429
      switch (field) {
-
 
153430
      case SUCCESS:
-
 
153431
        if (value == null) {
-
 
153432
          unsetSuccess();
-
 
153433
        } else {
-
 
153434
          setSuccess((List<Order>)value);
-
 
153435
        }
-
 
153436
        break;
-
 
153437
 
-
 
153438
      }
-
 
153439
    }
-
 
153440
 
-
 
153441
    public Object getFieldValue(_Fields field) {
-
 
153442
      switch (field) {
-
 
153443
      case SUCCESS:
-
 
153444
        return getSuccess();
-
 
153445
 
-
 
153446
      }
-
 
153447
      throw new IllegalStateException();
-
 
153448
    }
-
 
153449
 
-
 
153450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
153451
    public boolean isSet(_Fields field) {
-
 
153452
      if (field == null) {
-
 
153453
        throw new IllegalArgumentException();
-
 
153454
      }
-
 
153455
 
-
 
153456
      switch (field) {
-
 
153457
      case SUCCESS:
-
 
153458
        return isSetSuccess();
-
 
153459
      }
-
 
153460
      throw new IllegalStateException();
-
 
153461
    }
-
 
153462
 
-
 
153463
    @Override
-
 
153464
    public boolean equals(Object that) {
-
 
153465
      if (that == null)
-
 
153466
        return false;
-
 
153467
      if (that instanceof getOrdersByMobileNumber_result)
-
 
153468
        return this.equals((getOrdersByMobileNumber_result)that);
-
 
153469
      return false;
-
 
153470
    }
-
 
153471
 
-
 
153472
    public boolean equals(getOrdersByMobileNumber_result that) {
-
 
153473
      if (that == null)
-
 
153474
        return false;
-
 
153475
 
-
 
153476
      boolean this_present_success = true && this.isSetSuccess();
-
 
153477
      boolean that_present_success = true && that.isSetSuccess();
-
 
153478
      if (this_present_success || that_present_success) {
-
 
153479
        if (!(this_present_success && that_present_success))
-
 
153480
          return false;
-
 
153481
        if (!this.success.equals(that.success))
-
 
153482
          return false;
-
 
153483
      }
-
 
153484
 
-
 
153485
      return true;
-
 
153486
    }
-
 
153487
 
-
 
153488
    @Override
-
 
153489
    public int hashCode() {
-
 
153490
      return 0;
-
 
153491
    }
-
 
153492
 
-
 
153493
    public int compareTo(getOrdersByMobileNumber_result other) {
-
 
153494
      if (!getClass().equals(other.getClass())) {
-
 
153495
        return getClass().getName().compareTo(other.getClass().getName());
-
 
153496
      }
-
 
153497
 
-
 
153498
      int lastComparison = 0;
-
 
153499
      getOrdersByMobileNumber_result typedOther = (getOrdersByMobileNumber_result)other;
-
 
153500
 
-
 
153501
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
153502
      if (lastComparison != 0) {
-
 
153503
        return lastComparison;
-
 
153504
      }
-
 
153505
      if (isSetSuccess()) {
-
 
153506
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
153507
        if (lastComparison != 0) {
-
 
153508
          return lastComparison;
-
 
153509
        }
-
 
153510
      }
-
 
153511
      return 0;
-
 
153512
    }
-
 
153513
 
-
 
153514
    public _Fields fieldForId(int fieldId) {
-
 
153515
      return _Fields.findByThriftId(fieldId);
-
 
153516
    }
-
 
153517
 
-
 
153518
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
153519
      org.apache.thrift.protocol.TField field;
-
 
153520
      iprot.readStructBegin();
-
 
153521
      while (true)
-
 
153522
      {
-
 
153523
        field = iprot.readFieldBegin();
-
 
153524
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
153525
          break;
-
 
153526
        }
-
 
153527
        switch (field.id) {
-
 
153528
          case 0: // SUCCESS
-
 
153529
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
153530
              {
-
 
153531
                org.apache.thrift.protocol.TList _list474 = iprot.readListBegin();
-
 
153532
                this.success = new ArrayList<Order>(_list474.size);
-
 
153533
                for (int _i475 = 0; _i475 < _list474.size; ++_i475)
-
 
153534
                {
-
 
153535
                  Order _elem476; // required
-
 
153536
                  _elem476 = new Order();
-
 
153537
                  _elem476.read(iprot);
-
 
153538
                  this.success.add(_elem476);
-
 
153539
                }
-
 
153540
                iprot.readListEnd();
-
 
153541
              }
-
 
153542
            } else { 
-
 
153543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
153544
            }
-
 
153545
            break;
-
 
153546
          default:
-
 
153547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
153548
        }
-
 
153549
        iprot.readFieldEnd();
-
 
153550
      }
-
 
153551
      iprot.readStructEnd();
-
 
153552
      validate();
-
 
153553
    }
-
 
153554
 
-
 
153555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
153556
      oprot.writeStructBegin(STRUCT_DESC);
-
 
153557
 
-
 
153558
      if (this.isSetSuccess()) {
-
 
153559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
153560
        {
-
 
153561
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
153562
          for (Order _iter477 : this.success)
-
 
153563
          {
-
 
153564
            _iter477.write(oprot);
-
 
153565
          }
-
 
153566
          oprot.writeListEnd();
-
 
153567
        }
-
 
153568
        oprot.writeFieldEnd();
-
 
153569
      }
-
 
153570
      oprot.writeFieldStop();
-
 
153571
      oprot.writeStructEnd();
-
 
153572
    }
-
 
153573
 
-
 
153574
    @Override
-
 
153575
    public String toString() {
-
 
153576
      StringBuilder sb = new StringBuilder("getOrdersByMobileNumber_result(");
-
 
153577
      boolean first = true;
-
 
153578
 
-
 
153579
      sb.append("success:");
-
 
153580
      if (this.success == null) {
-
 
153581
        sb.append("null");
-
 
153582
      } else {
-
 
153583
        sb.append(this.success);
-
 
153584
      }
-
 
153585
      first = false;
-
 
153586
      sb.append(")");
-
 
153587
      return sb.toString();
-
 
153588
    }
-
 
153589
 
-
 
153590
    public void validate() throws org.apache.thrift.TException {
-
 
153591
      // check for required fields
-
 
153592
    }
-
 
153593
 
-
 
153594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
153595
      try {
-
 
153596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
153597
      } catch (org.apache.thrift.TException te) {
-
 
153598
        throw new java.io.IOException(te);
-
 
153599
      }
-
 
153600
    }
-
 
153601
 
-
 
153602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
153603
      try {
-
 
153604
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
153605
      } catch (org.apache.thrift.TException te) {
-
 
153606
        throw new java.io.IOException(te);
-
 
153607
      }
-
 
153608
    }
-
 
153609
 
-
 
153610
  }
-
 
153611
 
-
 
153612
  public static class getOrdersByAmazonOrderItemCode_args implements org.apache.thrift.TBase<getOrdersByAmazonOrderItemCode_args, getOrdersByAmazonOrderItemCode_args._Fields>, java.io.Serializable, Cloneable   {
-
 
153613
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByAmazonOrderItemCode_args");
-
 
153614
 
-
 
153615
    private static final org.apache.thrift.protocol.TField AMAZON_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
153616
 
-
 
153617
    private String amazonId; // required
-
 
153618
 
-
 
153619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
153620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
153621
      AMAZON_ID((short)1, "amazonId");
-
 
153622
 
-
 
153623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
153624
 
-
 
153625
      static {
-
 
153626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
153627
          byName.put(field.getFieldName(), field);
-
 
153628
        }
-
 
153629
      }
-
 
153630
 
-
 
153631
      /**
-
 
153632
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
153633
       */
-
 
153634
      public static _Fields findByThriftId(int fieldId) {
-
 
153635
        switch(fieldId) {
-
 
153636
          case 1: // AMAZON_ID
-
 
153637
            return AMAZON_ID;
-
 
153638
          default:
-
 
153639
            return null;
-
 
153640
        }
-
 
153641
      }
-
 
153642
 
-
 
153643
      /**
-
 
153644
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
153645
       * if it is not found.
-
 
153646
       */
-
 
153647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
153648
        _Fields fields = findByThriftId(fieldId);
-
 
153649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
153650
        return fields;
-
 
153651
      }
-
 
153652
 
-
 
153653
      /**
-
 
153654
       * Find the _Fields constant that matches name, or null if its not found.
-
 
153655
       */
-
 
153656
      public static _Fields findByName(String name) {
-
 
153657
        return byName.get(name);
-
 
153658
      }
-
 
153659
 
-
 
153660
      private final short _thriftId;
-
 
153661
      private final String _fieldName;
-
 
153662
 
-
 
153663
      _Fields(short thriftId, String fieldName) {
-
 
153664
        _thriftId = thriftId;
-
 
153665
        _fieldName = fieldName;
-
 
153666
      }
-
 
153667
 
-
 
153668
      public short getThriftFieldId() {
-
 
153669
        return _thriftId;
-
 
153670
      }
-
 
153671
 
-
 
153672
      public String getFieldName() {
-
 
153673
        return _fieldName;
-
 
153674
      }
-
 
153675
    }
-
 
153676
 
-
 
153677
    // isset id assignments
-
 
153678
 
-
 
153679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
153680
    static {
-
 
153681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
153682
      tmpMap.put(_Fields.AMAZON_ID, new org.apache.thrift.meta_data.FieldMetaData("amazonId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
153684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
153685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByAmazonOrderItemCode_args.class, metaDataMap);
-
 
153686
    }
-
 
153687
 
-
 
153688
    public getOrdersByAmazonOrderItemCode_args() {
-
 
153689
    }
-
 
153690
 
-
 
153691
    public getOrdersByAmazonOrderItemCode_args(
-
 
153692
      String amazonId)
-
 
153693
    {
-
 
153694
      this();
-
 
153695
      this.amazonId = amazonId;
-
 
153696
    }
-
 
153697
 
-
 
153698
    /**
-
 
153699
     * Performs a deep copy on <i>other</i>.
-
 
153700
     */
-
 
153701
    public getOrdersByAmazonOrderItemCode_args(getOrdersByAmazonOrderItemCode_args other) {
-
 
153702
      if (other.isSetAmazonId()) {
-
 
153703
        this.amazonId = other.amazonId;
-
 
153704
      }
-
 
153705
    }
-
 
153706
 
-
 
153707
    public getOrdersByAmazonOrderItemCode_args deepCopy() {
-
 
153708
      return new getOrdersByAmazonOrderItemCode_args(this);
-
 
153709
    }
-
 
153710
 
-
 
153711
    @Override
-
 
153712
    public void clear() {
-
 
153713
      this.amazonId = null;
-
 
153714
    }
-
 
153715
 
-
 
153716
    public String getAmazonId() {
-
 
153717
      return this.amazonId;
-
 
153718
    }
-
 
153719
 
-
 
153720
    public void setAmazonId(String amazonId) {
-
 
153721
      this.amazonId = amazonId;
-
 
153722
    }
-
 
153723
 
-
 
153724
    public void unsetAmazonId() {
-
 
153725
      this.amazonId = null;
-
 
153726
    }
-
 
153727
 
-
 
153728
    /** Returns true if field amazonId is set (has been assigned a value) and false otherwise */
-
 
153729
    public boolean isSetAmazonId() {
-
 
153730
      return this.amazonId != null;
-
 
153731
    }
-
 
153732
 
-
 
153733
    public void setAmazonIdIsSet(boolean value) {
-
 
153734
      if (!value) {
-
 
153735
        this.amazonId = null;
-
 
153736
      }
-
 
153737
    }
-
 
153738
 
-
 
153739
    public void setFieldValue(_Fields field, Object value) {
-
 
153740
      switch (field) {
-
 
153741
      case AMAZON_ID:
-
 
153742
        if (value == null) {
-
 
153743
          unsetAmazonId();
-
 
153744
        } else {
-
 
153745
          setAmazonId((String)value);
-
 
153746
        }
-
 
153747
        break;
-
 
153748
 
-
 
153749
      }
-
 
153750
    }
-
 
153751
 
-
 
153752
    public Object getFieldValue(_Fields field) {
-
 
153753
      switch (field) {
-
 
153754
      case AMAZON_ID:
-
 
153755
        return getAmazonId();
-
 
153756
 
-
 
153757
      }
-
 
153758
      throw new IllegalStateException();
-
 
153759
    }
-
 
153760
 
-
 
153761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
153762
    public boolean isSet(_Fields field) {
-
 
153763
      if (field == null) {
-
 
153764
        throw new IllegalArgumentException();
-
 
153765
      }
-
 
153766
 
-
 
153767
      switch (field) {
-
 
153768
      case AMAZON_ID:
-
 
153769
        return isSetAmazonId();
-
 
153770
      }
-
 
153771
      throw new IllegalStateException();
-
 
153772
    }
-
 
153773
 
-
 
153774
    @Override
-
 
153775
    public boolean equals(Object that) {
-
 
153776
      if (that == null)
-
 
153777
        return false;
-
 
153778
      if (that instanceof getOrdersByAmazonOrderItemCode_args)
-
 
153779
        return this.equals((getOrdersByAmazonOrderItemCode_args)that);
-
 
153780
      return false;
-
 
153781
    }
-
 
153782
 
-
 
153783
    public boolean equals(getOrdersByAmazonOrderItemCode_args that) {
-
 
153784
      if (that == null)
-
 
153785
        return false;
-
 
153786
 
-
 
153787
      boolean this_present_amazonId = true && this.isSetAmazonId();
-
 
153788
      boolean that_present_amazonId = true && that.isSetAmazonId();
-
 
153789
      if (this_present_amazonId || that_present_amazonId) {
-
 
153790
        if (!(this_present_amazonId && that_present_amazonId))
-
 
153791
          return false;
-
 
153792
        if (!this.amazonId.equals(that.amazonId))
-
 
153793
          return false;
-
 
153794
      }
-
 
153795
 
-
 
153796
      return true;
-
 
153797
    }
-
 
153798
 
-
 
153799
    @Override
-
 
153800
    public int hashCode() {
-
 
153801
      return 0;
-
 
153802
    }
-
 
153803
 
-
 
153804
    public int compareTo(getOrdersByAmazonOrderItemCode_args other) {
-
 
153805
      if (!getClass().equals(other.getClass())) {
-
 
153806
        return getClass().getName().compareTo(other.getClass().getName());
-
 
153807
      }
-
 
153808
 
-
 
153809
      int lastComparison = 0;
-
 
153810
      getOrdersByAmazonOrderItemCode_args typedOther = (getOrdersByAmazonOrderItemCode_args)other;
-
 
153811
 
-
 
153812
      lastComparison = Boolean.valueOf(isSetAmazonId()).compareTo(typedOther.isSetAmazonId());
-
 
153813
      if (lastComparison != 0) {
-
 
153814
        return lastComparison;
-
 
153815
      }
-
 
153816
      if (isSetAmazonId()) {
-
 
153817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonId, typedOther.amazonId);
-
 
153818
        if (lastComparison != 0) {
-
 
153819
          return lastComparison;
-
 
153820
        }
-
 
153821
      }
-
 
153822
      return 0;
-
 
153823
    }
-
 
153824
 
-
 
153825
    public _Fields fieldForId(int fieldId) {
-
 
153826
      return _Fields.findByThriftId(fieldId);
-
 
153827
    }
-
 
153828
 
-
 
153829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
153830
      org.apache.thrift.protocol.TField field;
-
 
153831
      iprot.readStructBegin();
-
 
153832
      while (true)
-
 
153833
      {
-
 
153834
        field = iprot.readFieldBegin();
-
 
153835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
153836
          break;
-
 
153837
        }
-
 
153838
        switch (field.id) {
-
 
153839
          case 1: // AMAZON_ID
-
 
153840
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
153841
              this.amazonId = iprot.readString();
-
 
153842
            } else { 
-
 
153843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
153844
            }
-
 
153845
            break;
-
 
153846
          default:
-
 
153847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
153848
        }
-
 
153849
        iprot.readFieldEnd();
-
 
153850
      }
-
 
153851
      iprot.readStructEnd();
-
 
153852
      validate();
-
 
153853
    }
-
 
153854
 
-
 
153855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
153856
      validate();
-
 
153857
 
-
 
153858
      oprot.writeStructBegin(STRUCT_DESC);
-
 
153859
      if (this.amazonId != null) {
-
 
153860
        oprot.writeFieldBegin(AMAZON_ID_FIELD_DESC);
-
 
153861
        oprot.writeString(this.amazonId);
-
 
153862
        oprot.writeFieldEnd();
-
 
153863
      }
-
 
153864
      oprot.writeFieldStop();
-
 
153865
      oprot.writeStructEnd();
-
 
153866
    }
-
 
153867
 
-
 
153868
    @Override
-
 
153869
    public String toString() {
-
 
153870
      StringBuilder sb = new StringBuilder("getOrdersByAmazonOrderItemCode_args(");
-
 
153871
      boolean first = true;
-
 
153872
 
-
 
153873
      sb.append("amazonId:");
-
 
153874
      if (this.amazonId == null) {
-
 
153875
        sb.append("null");
-
 
153876
      } else {
-
 
153877
        sb.append(this.amazonId);
-
 
153878
      }
-
 
153879
      first = false;
-
 
153880
      sb.append(")");
-
 
153881
      return sb.toString();
-
 
153882
    }
-
 
153883
 
-
 
153884
    public void validate() throws org.apache.thrift.TException {
-
 
153885
      // check for required fields
-
 
153886
    }
-
 
153887
 
-
 
153888
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
153889
      try {
-
 
153890
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
153891
      } catch (org.apache.thrift.TException te) {
-
 
153892
        throw new java.io.IOException(te);
-
 
153893
      }
-
 
153894
    }
-
 
153895
 
-
 
153896
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
153897
      try {
-
 
153898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
153899
      } catch (org.apache.thrift.TException te) {
-
 
153900
        throw new java.io.IOException(te);
-
 
153901
      }
-
 
153902
    }
-
 
153903
 
-
 
153904
  }
-
 
153905
 
-
 
153906
  public static class getOrdersByAmazonOrderItemCode_result implements org.apache.thrift.TBase<getOrdersByAmazonOrderItemCode_result, getOrdersByAmazonOrderItemCode_result._Fields>, java.io.Serializable, Cloneable   {
-
 
153907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByAmazonOrderItemCode_result");
-
 
153908
 
-
 
153909
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
153910
 
-
 
153911
    private List<Order> success; // required
-
 
153912
 
-
 
153913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
153914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
153915
      SUCCESS((short)0, "success");
-
 
153916
 
-
 
153917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
153918
 
-
 
153919
      static {
-
 
153920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
153921
          byName.put(field.getFieldName(), field);
-
 
153922
        }
-
 
153923
      }
-
 
153924
 
-
 
153925
      /**
-
 
153926
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
153927
       */
-
 
153928
      public static _Fields findByThriftId(int fieldId) {
-
 
153929
        switch(fieldId) {
-
 
153930
          case 0: // SUCCESS
-
 
153931
            return SUCCESS;
-
 
153932
          default:
-
 
153933
            return null;
-
 
153934
        }
-
 
153935
      }
-
 
153936
 
-
 
153937
      /**
-
 
153938
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
153939
       * if it is not found.
-
 
153940
       */
-
 
153941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
153942
        _Fields fields = findByThriftId(fieldId);
-
 
153943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
153944
        return fields;
-
 
153945
      }
-
 
153946
 
-
 
153947
      /**
-
 
153948
       * Find the _Fields constant that matches name, or null if its not found.
-
 
153949
       */
-
 
153950
      public static _Fields findByName(String name) {
-
 
153951
        return byName.get(name);
-
 
153952
      }
-
 
153953
 
-
 
153954
      private final short _thriftId;
-
 
153955
      private final String _fieldName;
-
 
153956
 
-
 
153957
      _Fields(short thriftId, String fieldName) {
-
 
153958
        _thriftId = thriftId;
-
 
153959
        _fieldName = fieldName;
-
 
153960
      }
-
 
153961
 
-
 
153962
      public short getThriftFieldId() {
-
 
153963
        return _thriftId;
-
 
153964
      }
-
 
153965
 
-
 
153966
      public String getFieldName() {
-
 
153967
        return _fieldName;
-
 
153968
      }
-
 
153969
    }
-
 
153970
 
-
 
153971
    // isset id assignments
-
 
153972
 
-
 
153973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
153974
    static {
-
 
153975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
153976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153977
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
153978
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
153979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
153980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByAmazonOrderItemCode_result.class, metaDataMap);
-
 
153981
    }
-
 
153982
 
-
 
153983
    public getOrdersByAmazonOrderItemCode_result() {
-
 
153984
    }
-
 
153985
 
-
 
153986
    public getOrdersByAmazonOrderItemCode_result(
-
 
153987
      List<Order> success)
-
 
153988
    {
-
 
153989
      this();
-
 
153990
      this.success = success;
-
 
153991
    }
-
 
153992
 
-
 
153993
    /**
-
 
153994
     * Performs a deep copy on <i>other</i>.
-
 
153995
     */
-
 
153996
    public getOrdersByAmazonOrderItemCode_result(getOrdersByAmazonOrderItemCode_result other) {
-
 
153997
      if (other.isSetSuccess()) {
-
 
153998
        List<Order> __this__success = new ArrayList<Order>();
-
 
153999
        for (Order other_element : other.success) {
-
 
154000
          __this__success.add(new Order(other_element));
-
 
154001
        }
-
 
154002
        this.success = __this__success;
-
 
154003
      }
-
 
154004
    }
-
 
154005
 
-
 
154006
    public getOrdersByAmazonOrderItemCode_result deepCopy() {
-
 
154007
      return new getOrdersByAmazonOrderItemCode_result(this);
-
 
154008
    }
-
 
154009
 
-
 
154010
    @Override
-
 
154011
    public void clear() {
-
 
154012
      this.success = null;
-
 
154013
    }
-
 
154014
 
-
 
154015
    public int getSuccessSize() {
-
 
154016
      return (this.success == null) ? 0 : this.success.size();
-
 
154017
    }
-
 
154018
 
-
 
154019
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
154020
      return (this.success == null) ? null : this.success.iterator();
-
 
154021
    }
-
 
154022
 
-
 
154023
    public void addToSuccess(Order elem) {
-
 
154024
      if (this.success == null) {
-
 
154025
        this.success = new ArrayList<Order>();
-
 
154026
      }
-
 
154027
      this.success.add(elem);
-
 
154028
    }
-
 
154029
 
-
 
154030
    public List<Order> getSuccess() {
-
 
154031
      return this.success;
-
 
154032
    }
-
 
154033
 
-
 
154034
    public void setSuccess(List<Order> success) {
-
 
154035
      this.success = success;
-
 
154036
    }
-
 
154037
 
-
 
154038
    public void unsetSuccess() {
-
 
154039
      this.success = null;
-
 
154040
    }
-
 
154041
 
-
 
154042
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
154043
    public boolean isSetSuccess() {
-
 
154044
      return this.success != null;
-
 
154045
    }
-
 
154046
 
-
 
154047
    public void setSuccessIsSet(boolean value) {
-
 
154048
      if (!value) {
-
 
154049
        this.success = null;
-
 
154050
      }
-
 
154051
    }
-
 
154052
 
-
 
154053
    public void setFieldValue(_Fields field, Object value) {
-
 
154054
      switch (field) {
-
 
154055
      case SUCCESS:
-
 
154056
        if (value == null) {
-
 
154057
          unsetSuccess();
-
 
154058
        } else {
-
 
154059
          setSuccess((List<Order>)value);
-
 
154060
        }
-
 
154061
        break;
-
 
154062
 
-
 
154063
      }
-
 
154064
    }
-
 
154065
 
-
 
154066
    public Object getFieldValue(_Fields field) {
-
 
154067
      switch (field) {
-
 
154068
      case SUCCESS:
-
 
154069
        return getSuccess();
-
 
154070
 
-
 
154071
      }
-
 
154072
      throw new IllegalStateException();
-
 
154073
    }
-
 
154074
 
-
 
154075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
154076
    public boolean isSet(_Fields field) {
-
 
154077
      if (field == null) {
-
 
154078
        throw new IllegalArgumentException();
-
 
154079
      }
-
 
154080
 
-
 
154081
      switch (field) {
-
 
154082
      case SUCCESS:
-
 
154083
        return isSetSuccess();
-
 
154084
      }
-
 
154085
      throw new IllegalStateException();
-
 
154086
    }
-
 
154087
 
-
 
154088
    @Override
-
 
154089
    public boolean equals(Object that) {
-
 
154090
      if (that == null)
-
 
154091
        return false;
-
 
154092
      if (that instanceof getOrdersByAmazonOrderItemCode_result)
-
 
154093
        return this.equals((getOrdersByAmazonOrderItemCode_result)that);
-
 
154094
      return false;
-
 
154095
    }
-
 
154096
 
-
 
154097
    public boolean equals(getOrdersByAmazonOrderItemCode_result that) {
-
 
154098
      if (that == null)
-
 
154099
        return false;
-
 
154100
 
-
 
154101
      boolean this_present_success = true && this.isSetSuccess();
-
 
154102
      boolean that_present_success = true && that.isSetSuccess();
-
 
154103
      if (this_present_success || that_present_success) {
-
 
154104
        if (!(this_present_success && that_present_success))
-
 
154105
          return false;
-
 
154106
        if (!this.success.equals(that.success))
-
 
154107
          return false;
-
 
154108
      }
-
 
154109
 
-
 
154110
      return true;
-
 
154111
    }
-
 
154112
 
-
 
154113
    @Override
-
 
154114
    public int hashCode() {
-
 
154115
      return 0;
-
 
154116
    }
-
 
154117
 
-
 
154118
    public int compareTo(getOrdersByAmazonOrderItemCode_result other) {
-
 
154119
      if (!getClass().equals(other.getClass())) {
-
 
154120
        return getClass().getName().compareTo(other.getClass().getName());
-
 
154121
      }
-
 
154122
 
-
 
154123
      int lastComparison = 0;
-
 
154124
      getOrdersByAmazonOrderItemCode_result typedOther = (getOrdersByAmazonOrderItemCode_result)other;
-
 
154125
 
-
 
154126
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
154127
      if (lastComparison != 0) {
-
 
154128
        return lastComparison;
-
 
154129
      }
-
 
154130
      if (isSetSuccess()) {
-
 
154131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
154132
        if (lastComparison != 0) {
-
 
154133
          return lastComparison;
-
 
154134
        }
-
 
154135
      }
-
 
154136
      return 0;
-
 
154137
    }
-
 
154138
 
-
 
154139
    public _Fields fieldForId(int fieldId) {
-
 
154140
      return _Fields.findByThriftId(fieldId);
-
 
154141
    }
-
 
154142
 
-
 
154143
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
154144
      org.apache.thrift.protocol.TField field;
-
 
154145
      iprot.readStructBegin();
-
 
154146
      while (true)
-
 
154147
      {
-
 
154148
        field = iprot.readFieldBegin();
-
 
154149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
154150
          break;
-
 
154151
        }
-
 
154152
        switch (field.id) {
-
 
154153
          case 0: // SUCCESS
-
 
154154
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
154155
              {
-
 
154156
                org.apache.thrift.protocol.TList _list478 = iprot.readListBegin();
-
 
154157
                this.success = new ArrayList<Order>(_list478.size);
-
 
154158
                for (int _i479 = 0; _i479 < _list478.size; ++_i479)
-
 
154159
                {
-
 
154160
                  Order _elem480; // required
-
 
154161
                  _elem480 = new Order();
-
 
154162
                  _elem480.read(iprot);
-
 
154163
                  this.success.add(_elem480);
-
 
154164
                }
-
 
154165
                iprot.readListEnd();
-
 
154166
              }
-
 
154167
            } else { 
-
 
154168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
154169
            }
-
 
154170
            break;
-
 
154171
          default:
-
 
154172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
154173
        }
-
 
154174
        iprot.readFieldEnd();
-
 
154175
      }
-
 
154176
      iprot.readStructEnd();
-
 
154177
      validate();
-
 
154178
    }
-
 
154179
 
-
 
154180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
154181
      oprot.writeStructBegin(STRUCT_DESC);
-
 
154182
 
-
 
154183
      if (this.isSetSuccess()) {
-
 
154184
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
154185
        {
-
 
154186
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
154187
          for (Order _iter481 : this.success)
-
 
154188
          {
-
 
154189
            _iter481.write(oprot);
-
 
154190
          }
-
 
154191
          oprot.writeListEnd();
-
 
154192
        }
-
 
154193
        oprot.writeFieldEnd();
-
 
154194
      }
-
 
154195
      oprot.writeFieldStop();
-
 
154196
      oprot.writeStructEnd();
-
 
154197
    }
-
 
154198
 
-
 
154199
    @Override
-
 
154200
    public String toString() {
-
 
154201
      StringBuilder sb = new StringBuilder("getOrdersByAmazonOrderItemCode_result(");
-
 
154202
      boolean first = true;
-
 
154203
 
-
 
154204
      sb.append("success:");
-
 
154205
      if (this.success == null) {
-
 
154206
        sb.append("null");
-
 
154207
      } else {
-
 
154208
        sb.append(this.success);
-
 
154209
      }
-
 
154210
      first = false;
-
 
154211
      sb.append(")");
-
 
154212
      return sb.toString();
-
 
154213
    }
-
 
154214
 
152819
    public void validate() throws org.apache.thrift.TException {
154215
    public void validate() throws org.apache.thrift.TException {
152820
      // check for required fields
154216
      // check for required fields
152821
    }
154217
    }
152822
 
154218
 
152823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
154219
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {