Subversion Repositories SmartDukaan

Rev

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

Rev 19474 Rev 19714
Line 1216... Line 1216...
1216
 
1216
 
1217
    public boolean updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException;
1217
    public boolean updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException;
1218
 
1218
 
1219
    public boolean addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails) throws org.apache.thrift.TException;
1219
    public boolean addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails) throws org.apache.thrift.TException;
1220
 
1220
 
-
 
1221
    public List<Order> getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException;
-
 
1222
 
-
 
1223
    public List<ReturnOrderInfo> getEligibleReturnOrdersForPickup(long customerId) throws org.apache.thrift.TException;
-
 
1224
 
1221
  }
1225
  }
1222
 
1226
 
1223
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1227
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1224
 
1228
 
1225
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1229
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1800... Line 1804...
1800
 
1804
 
1801
    public void updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMasterOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
1805
    public void updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMasterOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
1802
 
1806
 
1803
    public void addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateShipmentLogisticsCostDetails_call> resultHandler) throws org.apache.thrift.TException;
1807
    public void addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateShipmentLogisticsCostDetails_call> resultHandler) throws org.apache.thrift.TException;
1804
 
1808
 
-
 
1809
    public void getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEligibleOrdersForReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
1810
 
-
 
1811
    public void getEligibleReturnOrdersForPickup(long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEligibleReturnOrdersForPickup_call> resultHandler) throws org.apache.thrift.TException;
-
 
1812
 
1805
  }
1813
  }
1806
 
1814
 
1807
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1815
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1808
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1816
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1809
      public Factory() {}
1817
      public Factory() {}
Line 9012... Line 9020...
9012
        return result.success;
9020
        return result.success;
9013
      }
9021
      }
9014
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateShipmentLogisticsCostDetails failed: unknown result");
9022
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateShipmentLogisticsCostDetails failed: unknown result");
9015
    }
9023
    }
9016
 
9024
 
-
 
9025
    public List<Order> getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException
-
 
9026
    {
-
 
9027
      send_getEligibleOrdersForReturn(customerId, itemCondition, overrideWarranty);
-
 
9028
      return recv_getEligibleOrdersForReturn();
-
 
9029
    }
-
 
9030
 
-
 
9031
    public void send_getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException
-
 
9032
    {
-
 
9033
      getEligibleOrdersForReturn_args args = new getEligibleOrdersForReturn_args();
-
 
9034
      args.setCustomerId(customerId);
-
 
9035
      args.setItemCondition(itemCondition);
-
 
9036
      args.setOverrideWarranty(overrideWarranty);
-
 
9037
      sendBase("getEligibleOrdersForReturn", args);
-
 
9038
    }
-
 
9039
 
-
 
9040
    public List<Order> recv_getEligibleOrdersForReturn() throws org.apache.thrift.TException
-
 
9041
    {
-
 
9042
      getEligibleOrdersForReturn_result result = new getEligibleOrdersForReturn_result();
-
 
9043
      receiveBase(result, "getEligibleOrdersForReturn");
-
 
9044
      if (result.isSetSuccess()) {
-
 
9045
        return result.success;
-
 
9046
      }
-
 
9047
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEligibleOrdersForReturn failed: unknown result");
-
 
9048
    }
-
 
9049
 
-
 
9050
    public List<ReturnOrderInfo> getEligibleReturnOrdersForPickup(long customerId) throws org.apache.thrift.TException
-
 
9051
    {
-
 
9052
      send_getEligibleReturnOrdersForPickup(customerId);
-
 
9053
      return recv_getEligibleReturnOrdersForPickup();
-
 
9054
    }
-
 
9055
 
-
 
9056
    public void send_getEligibleReturnOrdersForPickup(long customerId) throws org.apache.thrift.TException
-
 
9057
    {
-
 
9058
      getEligibleReturnOrdersForPickup_args args = new getEligibleReturnOrdersForPickup_args();
-
 
9059
      args.setCustomerId(customerId);
-
 
9060
      sendBase("getEligibleReturnOrdersForPickup", args);
-
 
9061
    }
-
 
9062
 
-
 
9063
    public List<ReturnOrderInfo> recv_getEligibleReturnOrdersForPickup() throws org.apache.thrift.TException
-
 
9064
    {
-
 
9065
      getEligibleReturnOrdersForPickup_result result = new getEligibleReturnOrdersForPickup_result();
-
 
9066
      receiveBase(result, "getEligibleReturnOrdersForPickup");
-
 
9067
      if (result.isSetSuccess()) {
-
 
9068
        return result.success;
-
 
9069
      }
-
 
9070
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEligibleReturnOrdersForPickup failed: unknown result");
-
 
9071
    }
-
 
9072
 
9017
  }
9073
  }
9018
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9074
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9019
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9075
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9020
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9076
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9021
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9077
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 19141... Line 19197...
19141
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19142
        return (new Client(prot)).recv_addOrUpdateShipmentLogisticsCostDetails();
19198
        return (new Client(prot)).recv_addOrUpdateShipmentLogisticsCostDetails();
19143
      }
19199
      }
19144
    }
19200
    }
19145
 
19201
 
-
 
19202
    public void getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<getEligibleOrdersForReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
19203
      checkReady();
-
 
19204
      getEligibleOrdersForReturn_call method_call = new getEligibleOrdersForReturn_call(customerId, itemCondition, overrideWarranty, resultHandler, this, ___protocolFactory, ___transport);
-
 
19205
      this.___currentMethod = method_call;
-
 
19206
      ___manager.call(method_call);
-
 
19207
    }
-
 
19208
 
-
 
19209
    public static class getEligibleOrdersForReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19210
      private long customerId;
-
 
19211
      private String itemCondition;
-
 
19212
      private boolean overrideWarranty;
-
 
19213
      public getEligibleOrdersForReturn_call(long customerId, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<getEligibleOrdersForReturn_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 {
-
 
19214
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19215
        this.customerId = customerId;
-
 
19216
        this.itemCondition = itemCondition;
-
 
19217
        this.overrideWarranty = overrideWarranty;
-
 
19218
      }
-
 
19219
 
-
 
19220
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19221
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEligibleOrdersForReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19222
        getEligibleOrdersForReturn_args args = new getEligibleOrdersForReturn_args();
-
 
19223
        args.setCustomerId(customerId);
-
 
19224
        args.setItemCondition(itemCondition);
-
 
19225
        args.setOverrideWarranty(overrideWarranty);
-
 
19226
        args.write(prot);
-
 
19227
        prot.writeMessageEnd();
-
 
19228
      }
-
 
19229
 
-
 
19230
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
19231
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19232
          throw new IllegalStateException("Method call not finished!");
-
 
19233
        }
-
 
19234
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19235
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19236
        return (new Client(prot)).recv_getEligibleOrdersForReturn();
-
 
19237
      }
-
 
19238
    }
-
 
19239
 
-
 
19240
    public void getEligibleReturnOrdersForPickup(long customerId, org.apache.thrift.async.AsyncMethodCallback<getEligibleReturnOrdersForPickup_call> resultHandler) throws org.apache.thrift.TException {
-
 
19241
      checkReady();
-
 
19242
      getEligibleReturnOrdersForPickup_call method_call = new getEligibleReturnOrdersForPickup_call(customerId, resultHandler, this, ___protocolFactory, ___transport);
-
 
19243
      this.___currentMethod = method_call;
-
 
19244
      ___manager.call(method_call);
-
 
19245
    }
-
 
19246
 
-
 
19247
    public static class getEligibleReturnOrdersForPickup_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19248
      private long customerId;
-
 
19249
      public getEligibleReturnOrdersForPickup_call(long customerId, org.apache.thrift.async.AsyncMethodCallback<getEligibleReturnOrdersForPickup_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 {
-
 
19250
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19251
        this.customerId = customerId;
-
 
19252
      }
-
 
19253
 
-
 
19254
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19255
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEligibleReturnOrdersForPickup", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19256
        getEligibleReturnOrdersForPickup_args args = new getEligibleReturnOrdersForPickup_args();
-
 
19257
        args.setCustomerId(customerId);
-
 
19258
        args.write(prot);
-
 
19259
        prot.writeMessageEnd();
-
 
19260
      }
-
 
19261
 
-
 
19262
      public List<ReturnOrderInfo> getResult() throws org.apache.thrift.TException {
-
 
19263
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19264
          throw new IllegalStateException("Method call not finished!");
-
 
19265
        }
-
 
19266
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19267
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19268
        return (new Client(prot)).recv_getEligibleReturnOrdersForPickup();
-
 
19269
      }
-
 
19270
    }
-
 
19271
 
19146
  }
19272
  }
19147
 
19273
 
19148
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19274
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19149
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19275
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19150
    public Processor(I iface) {
19276
    public Processor(I iface) {
Line 19444... Line 19570...
19444
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19570
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19445
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
19571
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
19446
      processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
19572
      processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
19447
      processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
19573
      processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
19448
      processMap.put("addOrUpdateShipmentLogisticsCostDetails", new addOrUpdateShipmentLogisticsCostDetails());
19574
      processMap.put("addOrUpdateShipmentLogisticsCostDetails", new addOrUpdateShipmentLogisticsCostDetails());
-
 
19575
      processMap.put("getEligibleOrdersForReturn", new getEligibleOrdersForReturn());
-
 
19576
      processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
19449
      return processMap;
19577
      return processMap;
19450
    }
19578
    }
19451
 
19579
 
19452
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19580
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19453
      public createTransaction() {
19581
      public createTransaction() {
Line 24715... Line 24843...
24715
        result.setSuccessIsSet(true);
24843
        result.setSuccessIsSet(true);
24716
        return result;
24844
        return result;
24717
      }
24845
      }
24718
    }
24846
    }
24719
 
24847
 
-
 
24848
    private static class getEligibleOrdersForReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEligibleOrdersForReturn_args> {
-
 
24849
      public getEligibleOrdersForReturn() {
-
 
24850
        super("getEligibleOrdersForReturn");
-
 
24851
      }
-
 
24852
 
-
 
24853
      protected getEligibleOrdersForReturn_args getEmptyArgsInstance() {
-
 
24854
        return new getEligibleOrdersForReturn_args();
-
 
24855
      }
-
 
24856
 
-
 
24857
      protected getEligibleOrdersForReturn_result getResult(I iface, getEligibleOrdersForReturn_args args) throws org.apache.thrift.TException {
-
 
24858
        getEligibleOrdersForReturn_result result = new getEligibleOrdersForReturn_result();
-
 
24859
        result.success = iface.getEligibleOrdersForReturn(args.customerId, args.itemCondition, args.overrideWarranty);
-
 
24860
        return result;
-
 
24861
      }
-
 
24862
    }
-
 
24863
 
-
 
24864
    private static class getEligibleReturnOrdersForPickup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEligibleReturnOrdersForPickup_args> {
-
 
24865
      public getEligibleReturnOrdersForPickup() {
-
 
24866
        super("getEligibleReturnOrdersForPickup");
-
 
24867
      }
-
 
24868
 
-
 
24869
      protected getEligibleReturnOrdersForPickup_args getEmptyArgsInstance() {
-
 
24870
        return new getEligibleReturnOrdersForPickup_args();
-
 
24871
      }
-
 
24872
 
-
 
24873
      protected getEligibleReturnOrdersForPickup_result getResult(I iface, getEligibleReturnOrdersForPickup_args args) throws org.apache.thrift.TException {
-
 
24874
        getEligibleReturnOrdersForPickup_result result = new getEligibleReturnOrdersForPickup_result();
-
 
24875
        result.success = iface.getEligibleReturnOrdersForPickup(args.customerId);
-
 
24876
        return result;
-
 
24877
      }
-
 
24878
    }
-
 
24879
 
24720
  }
24880
  }
24721
 
24881
 
24722
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24882
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24724
 
24884
 
Line 232333... Line 232493...
232333
      first = false;
232493
      first = false;
232334
      sb.append(")");
232494
      sb.append(")");
232335
      return sb.toString();
232495
      return sb.toString();
232336
    }
232496
    }
232337
 
232497
 
-
 
232498
    public void validate() throws org.apache.thrift.TException {
-
 
232499
      // check for required fields
-
 
232500
    }
-
 
232501
 
-
 
232502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
232503
      try {
-
 
232504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
232505
      } catch (org.apache.thrift.TException te) {
-
 
232506
        throw new java.io.IOException(te);
-
 
232507
      }
-
 
232508
    }
-
 
232509
 
-
 
232510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
232511
      try {
-
 
232512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
232513
      } catch (org.apache.thrift.TException te) {
-
 
232514
        throw new java.io.IOException(te);
-
 
232515
      }
-
 
232516
    }
-
 
232517
 
-
 
232518
  }
-
 
232519
 
-
 
232520
  public static class getEligibleOrdersForReturn_args implements org.apache.thrift.TBase<getEligibleOrdersForReturn_args, getEligibleOrdersForReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
232521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEligibleOrdersForReturn_args");
-
 
232522
 
-
 
232523
    private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
232524
    private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
232525
    private static final org.apache.thrift.protocol.TField OVERRIDE_WARRANTY_FIELD_DESC = new org.apache.thrift.protocol.TField("overrideWarranty", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
232526
 
-
 
232527
    private long customerId; // required
-
 
232528
    private String itemCondition; // required
-
 
232529
    private boolean overrideWarranty; // required
-
 
232530
 
-
 
232531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
232532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
232533
      CUSTOMER_ID((short)1, "customerId"),
-
 
232534
      ITEM_CONDITION((short)2, "itemCondition"),
-
 
232535
      OVERRIDE_WARRANTY((short)3, "overrideWarranty");
-
 
232536
 
-
 
232537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
232538
 
-
 
232539
      static {
-
 
232540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
232541
          byName.put(field.getFieldName(), field);
-
 
232542
        }
-
 
232543
      }
-
 
232544
 
-
 
232545
      /**
-
 
232546
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
232547
       */
-
 
232548
      public static _Fields findByThriftId(int fieldId) {
-
 
232549
        switch(fieldId) {
-
 
232550
          case 1: // CUSTOMER_ID
-
 
232551
            return CUSTOMER_ID;
-
 
232552
          case 2: // ITEM_CONDITION
-
 
232553
            return ITEM_CONDITION;
-
 
232554
          case 3: // OVERRIDE_WARRANTY
-
 
232555
            return OVERRIDE_WARRANTY;
-
 
232556
          default:
-
 
232557
            return null;
-
 
232558
        }
-
 
232559
      }
-
 
232560
 
-
 
232561
      /**
-
 
232562
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
232563
       * if it is not found.
-
 
232564
       */
-
 
232565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
232566
        _Fields fields = findByThriftId(fieldId);
-
 
232567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
232568
        return fields;
-
 
232569
      }
-
 
232570
 
-
 
232571
      /**
-
 
232572
       * Find the _Fields constant that matches name, or null if its not found.
-
 
232573
       */
-
 
232574
      public static _Fields findByName(String name) {
-
 
232575
        return byName.get(name);
-
 
232576
      }
-
 
232577
 
-
 
232578
      private final short _thriftId;
-
 
232579
      private final String _fieldName;
-
 
232580
 
-
 
232581
      _Fields(short thriftId, String fieldName) {
-
 
232582
        _thriftId = thriftId;
-
 
232583
        _fieldName = fieldName;
-
 
232584
      }
-
 
232585
 
-
 
232586
      public short getThriftFieldId() {
-
 
232587
        return _thriftId;
-
 
232588
      }
-
 
232589
 
-
 
232590
      public String getFieldName() {
-
 
232591
        return _fieldName;
-
 
232592
      }
-
 
232593
    }
-
 
232594
 
-
 
232595
    // isset id assignments
-
 
232596
    private static final int __CUSTOMERID_ISSET_ID = 0;
-
 
232597
    private static final int __OVERRIDEWARRANTY_ISSET_ID = 1;
-
 
232598
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
232599
 
-
 
232600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
232601
    static {
-
 
232602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
232603
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
232604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
232605
      tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
232606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
232607
      tmpMap.put(_Fields.OVERRIDE_WARRANTY, new org.apache.thrift.meta_data.FieldMetaData("overrideWarranty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
232608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
232609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
232610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEligibleOrdersForReturn_args.class, metaDataMap);
-
 
232611
    }
-
 
232612
 
-
 
232613
    public getEligibleOrdersForReturn_args() {
-
 
232614
    }
-
 
232615
 
-
 
232616
    public getEligibleOrdersForReturn_args(
-
 
232617
      long customerId,
-
 
232618
      String itemCondition,
-
 
232619
      boolean overrideWarranty)
-
 
232620
    {
-
 
232621
      this();
-
 
232622
      this.customerId = customerId;
-
 
232623
      setCustomerIdIsSet(true);
-
 
232624
      this.itemCondition = itemCondition;
-
 
232625
      this.overrideWarranty = overrideWarranty;
-
 
232626
      setOverrideWarrantyIsSet(true);
-
 
232627
    }
-
 
232628
 
-
 
232629
    /**
-
 
232630
     * Performs a deep copy on <i>other</i>.
-
 
232631
     */
-
 
232632
    public getEligibleOrdersForReturn_args(getEligibleOrdersForReturn_args other) {
-
 
232633
      __isset_bit_vector.clear();
-
 
232634
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
232635
      this.customerId = other.customerId;
-
 
232636
      if (other.isSetItemCondition()) {
-
 
232637
        this.itemCondition = other.itemCondition;
-
 
232638
      }
-
 
232639
      this.overrideWarranty = other.overrideWarranty;
-
 
232640
    }
-
 
232641
 
-
 
232642
    public getEligibleOrdersForReturn_args deepCopy() {
-
 
232643
      return new getEligibleOrdersForReturn_args(this);
-
 
232644
    }
-
 
232645
 
-
 
232646
    @Override
-
 
232647
    public void clear() {
-
 
232648
      setCustomerIdIsSet(false);
-
 
232649
      this.customerId = 0;
-
 
232650
      this.itemCondition = null;
-
 
232651
      setOverrideWarrantyIsSet(false);
-
 
232652
      this.overrideWarranty = false;
-
 
232653
    }
-
 
232654
 
-
 
232655
    public long getCustomerId() {
-
 
232656
      return this.customerId;
-
 
232657
    }
-
 
232658
 
-
 
232659
    public void setCustomerId(long customerId) {
-
 
232660
      this.customerId = customerId;
-
 
232661
      setCustomerIdIsSet(true);
-
 
232662
    }
-
 
232663
 
-
 
232664
    public void unsetCustomerId() {
-
 
232665
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
-
 
232666
    }
-
 
232667
 
-
 
232668
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
-
 
232669
    public boolean isSetCustomerId() {
-
 
232670
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
-
 
232671
    }
-
 
232672
 
-
 
232673
    public void setCustomerIdIsSet(boolean value) {
-
 
232674
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
-
 
232675
    }
-
 
232676
 
-
 
232677
    public String getItemCondition() {
-
 
232678
      return this.itemCondition;
-
 
232679
    }
-
 
232680
 
-
 
232681
    public void setItemCondition(String itemCondition) {
-
 
232682
      this.itemCondition = itemCondition;
-
 
232683
    }
-
 
232684
 
-
 
232685
    public void unsetItemCondition() {
-
 
232686
      this.itemCondition = null;
-
 
232687
    }
-
 
232688
 
-
 
232689
    /** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */
-
 
232690
    public boolean isSetItemCondition() {
-
 
232691
      return this.itemCondition != null;
-
 
232692
    }
-
 
232693
 
-
 
232694
    public void setItemConditionIsSet(boolean value) {
-
 
232695
      if (!value) {
-
 
232696
        this.itemCondition = null;
-
 
232697
      }
-
 
232698
    }
-
 
232699
 
-
 
232700
    public boolean isOverrideWarranty() {
-
 
232701
      return this.overrideWarranty;
-
 
232702
    }
-
 
232703
 
-
 
232704
    public void setOverrideWarranty(boolean overrideWarranty) {
-
 
232705
      this.overrideWarranty = overrideWarranty;
-
 
232706
      setOverrideWarrantyIsSet(true);
-
 
232707
    }
-
 
232708
 
-
 
232709
    public void unsetOverrideWarranty() {
-
 
232710
      __isset_bit_vector.clear(__OVERRIDEWARRANTY_ISSET_ID);
-
 
232711
    }
-
 
232712
 
-
 
232713
    /** Returns true if field overrideWarranty is set (has been assigned a value) and false otherwise */
-
 
232714
    public boolean isSetOverrideWarranty() {
-
 
232715
      return __isset_bit_vector.get(__OVERRIDEWARRANTY_ISSET_ID);
-
 
232716
    }
-
 
232717
 
-
 
232718
    public void setOverrideWarrantyIsSet(boolean value) {
-
 
232719
      __isset_bit_vector.set(__OVERRIDEWARRANTY_ISSET_ID, value);
-
 
232720
    }
-
 
232721
 
-
 
232722
    public void setFieldValue(_Fields field, Object value) {
-
 
232723
      switch (field) {
-
 
232724
      case CUSTOMER_ID:
-
 
232725
        if (value == null) {
-
 
232726
          unsetCustomerId();
-
 
232727
        } else {
-
 
232728
          setCustomerId((Long)value);
-
 
232729
        }
-
 
232730
        break;
-
 
232731
 
-
 
232732
      case ITEM_CONDITION:
-
 
232733
        if (value == null) {
-
 
232734
          unsetItemCondition();
-
 
232735
        } else {
-
 
232736
          setItemCondition((String)value);
-
 
232737
        }
-
 
232738
        break;
-
 
232739
 
-
 
232740
      case OVERRIDE_WARRANTY:
-
 
232741
        if (value == null) {
-
 
232742
          unsetOverrideWarranty();
-
 
232743
        } else {
-
 
232744
          setOverrideWarranty((Boolean)value);
-
 
232745
        }
-
 
232746
        break;
-
 
232747
 
-
 
232748
      }
-
 
232749
    }
-
 
232750
 
-
 
232751
    public Object getFieldValue(_Fields field) {
-
 
232752
      switch (field) {
-
 
232753
      case CUSTOMER_ID:
-
 
232754
        return Long.valueOf(getCustomerId());
-
 
232755
 
-
 
232756
      case ITEM_CONDITION:
-
 
232757
        return getItemCondition();
-
 
232758
 
-
 
232759
      case OVERRIDE_WARRANTY:
-
 
232760
        return Boolean.valueOf(isOverrideWarranty());
-
 
232761
 
-
 
232762
      }
-
 
232763
      throw new IllegalStateException();
-
 
232764
    }
-
 
232765
 
-
 
232766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
232767
    public boolean isSet(_Fields field) {
-
 
232768
      if (field == null) {
-
 
232769
        throw new IllegalArgumentException();
-
 
232770
      }
-
 
232771
 
-
 
232772
      switch (field) {
-
 
232773
      case CUSTOMER_ID:
-
 
232774
        return isSetCustomerId();
-
 
232775
      case ITEM_CONDITION:
-
 
232776
        return isSetItemCondition();
-
 
232777
      case OVERRIDE_WARRANTY:
-
 
232778
        return isSetOverrideWarranty();
-
 
232779
      }
-
 
232780
      throw new IllegalStateException();
-
 
232781
    }
-
 
232782
 
-
 
232783
    @Override
-
 
232784
    public boolean equals(Object that) {
-
 
232785
      if (that == null)
-
 
232786
        return false;
-
 
232787
      if (that instanceof getEligibleOrdersForReturn_args)
-
 
232788
        return this.equals((getEligibleOrdersForReturn_args)that);
-
 
232789
      return false;
-
 
232790
    }
-
 
232791
 
-
 
232792
    public boolean equals(getEligibleOrdersForReturn_args that) {
-
 
232793
      if (that == null)
-
 
232794
        return false;
-
 
232795
 
-
 
232796
      boolean this_present_customerId = true;
-
 
232797
      boolean that_present_customerId = true;
-
 
232798
      if (this_present_customerId || that_present_customerId) {
-
 
232799
        if (!(this_present_customerId && that_present_customerId))
-
 
232800
          return false;
-
 
232801
        if (this.customerId != that.customerId)
-
 
232802
          return false;
-
 
232803
      }
-
 
232804
 
-
 
232805
      boolean this_present_itemCondition = true && this.isSetItemCondition();
-
 
232806
      boolean that_present_itemCondition = true && that.isSetItemCondition();
-
 
232807
      if (this_present_itemCondition || that_present_itemCondition) {
-
 
232808
        if (!(this_present_itemCondition && that_present_itemCondition))
-
 
232809
          return false;
-
 
232810
        if (!this.itemCondition.equals(that.itemCondition))
-
 
232811
          return false;
-
 
232812
      }
-
 
232813
 
-
 
232814
      boolean this_present_overrideWarranty = true;
-
 
232815
      boolean that_present_overrideWarranty = true;
-
 
232816
      if (this_present_overrideWarranty || that_present_overrideWarranty) {
-
 
232817
        if (!(this_present_overrideWarranty && that_present_overrideWarranty))
-
 
232818
          return false;
-
 
232819
        if (this.overrideWarranty != that.overrideWarranty)
-
 
232820
          return false;
-
 
232821
      }
-
 
232822
 
-
 
232823
      return true;
-
 
232824
    }
-
 
232825
 
-
 
232826
    @Override
-
 
232827
    public int hashCode() {
-
 
232828
      return 0;
-
 
232829
    }
-
 
232830
 
-
 
232831
    public int compareTo(getEligibleOrdersForReturn_args other) {
-
 
232832
      if (!getClass().equals(other.getClass())) {
-
 
232833
        return getClass().getName().compareTo(other.getClass().getName());
-
 
232834
      }
-
 
232835
 
-
 
232836
      int lastComparison = 0;
-
 
232837
      getEligibleOrdersForReturn_args typedOther = (getEligibleOrdersForReturn_args)other;
-
 
232838
 
-
 
232839
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
-
 
232840
      if (lastComparison != 0) {
-
 
232841
        return lastComparison;
-
 
232842
      }
-
 
232843
      if (isSetCustomerId()) {
-
 
232844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
-
 
232845
        if (lastComparison != 0) {
-
 
232846
          return lastComparison;
-
 
232847
        }
-
 
232848
      }
-
 
232849
      lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
-
 
232850
      if (lastComparison != 0) {
-
 
232851
        return lastComparison;
-
 
232852
      }
-
 
232853
      if (isSetItemCondition()) {
-
 
232854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);
-
 
232855
        if (lastComparison != 0) {
-
 
232856
          return lastComparison;
-
 
232857
        }
-
 
232858
      }
-
 
232859
      lastComparison = Boolean.valueOf(isSetOverrideWarranty()).compareTo(typedOther.isSetOverrideWarranty());
-
 
232860
      if (lastComparison != 0) {
-
 
232861
        return lastComparison;
-
 
232862
      }
-
 
232863
      if (isSetOverrideWarranty()) {
-
 
232864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.overrideWarranty, typedOther.overrideWarranty);
-
 
232865
        if (lastComparison != 0) {
-
 
232866
          return lastComparison;
-
 
232867
        }
-
 
232868
      }
-
 
232869
      return 0;
-
 
232870
    }
-
 
232871
 
-
 
232872
    public _Fields fieldForId(int fieldId) {
-
 
232873
      return _Fields.findByThriftId(fieldId);
-
 
232874
    }
-
 
232875
 
-
 
232876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
232877
      org.apache.thrift.protocol.TField field;
-
 
232878
      iprot.readStructBegin();
-
 
232879
      while (true)
-
 
232880
      {
-
 
232881
        field = iprot.readFieldBegin();
-
 
232882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
232883
          break;
-
 
232884
        }
-
 
232885
        switch (field.id) {
-
 
232886
          case 1: // CUSTOMER_ID
-
 
232887
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
232888
              this.customerId = iprot.readI64();
-
 
232889
              setCustomerIdIsSet(true);
-
 
232890
            } else { 
-
 
232891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232892
            }
-
 
232893
            break;
-
 
232894
          case 2: // ITEM_CONDITION
-
 
232895
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
232896
              this.itemCondition = iprot.readString();
-
 
232897
            } else { 
-
 
232898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232899
            }
-
 
232900
            break;
-
 
232901
          case 3: // OVERRIDE_WARRANTY
-
 
232902
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
232903
              this.overrideWarranty = iprot.readBool();
-
 
232904
              setOverrideWarrantyIsSet(true);
-
 
232905
            } else { 
-
 
232906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232907
            }
-
 
232908
            break;
-
 
232909
          default:
-
 
232910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232911
        }
-
 
232912
        iprot.readFieldEnd();
-
 
232913
      }
-
 
232914
      iprot.readStructEnd();
-
 
232915
      validate();
-
 
232916
    }
-
 
232917
 
-
 
232918
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
232919
      validate();
-
 
232920
 
-
 
232921
      oprot.writeStructBegin(STRUCT_DESC);
-
 
232922
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
232923
      oprot.writeI64(this.customerId);
-
 
232924
      oprot.writeFieldEnd();
-
 
232925
      if (this.itemCondition != null) {
-
 
232926
        oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
-
 
232927
        oprot.writeString(this.itemCondition);
-
 
232928
        oprot.writeFieldEnd();
-
 
232929
      }
-
 
232930
      oprot.writeFieldBegin(OVERRIDE_WARRANTY_FIELD_DESC);
-
 
232931
      oprot.writeBool(this.overrideWarranty);
-
 
232932
      oprot.writeFieldEnd();
-
 
232933
      oprot.writeFieldStop();
-
 
232934
      oprot.writeStructEnd();
-
 
232935
    }
-
 
232936
 
-
 
232937
    @Override
-
 
232938
    public String toString() {
-
 
232939
      StringBuilder sb = new StringBuilder("getEligibleOrdersForReturn_args(");
-
 
232940
      boolean first = true;
-
 
232941
 
-
 
232942
      sb.append("customerId:");
-
 
232943
      sb.append(this.customerId);
-
 
232944
      first = false;
-
 
232945
      if (!first) sb.append(", ");
-
 
232946
      sb.append("itemCondition:");
-
 
232947
      if (this.itemCondition == null) {
-
 
232948
        sb.append("null");
-
 
232949
      } else {
-
 
232950
        sb.append(this.itemCondition);
-
 
232951
      }
-
 
232952
      first = false;
-
 
232953
      if (!first) sb.append(", ");
-
 
232954
      sb.append("overrideWarranty:");
-
 
232955
      sb.append(this.overrideWarranty);
-
 
232956
      first = false;
-
 
232957
      sb.append(")");
-
 
232958
      return sb.toString();
-
 
232959
    }
-
 
232960
 
-
 
232961
    public void validate() throws org.apache.thrift.TException {
-
 
232962
      // check for required fields
-
 
232963
    }
-
 
232964
 
-
 
232965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
232966
      try {
-
 
232967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
232968
      } catch (org.apache.thrift.TException te) {
-
 
232969
        throw new java.io.IOException(te);
-
 
232970
      }
-
 
232971
    }
-
 
232972
 
-
 
232973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
232974
      try {
-
 
232975
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
232976
        __isset_bit_vector = new BitSet(1);
-
 
232977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
232978
      } catch (org.apache.thrift.TException te) {
-
 
232979
        throw new java.io.IOException(te);
-
 
232980
      }
-
 
232981
    }
-
 
232982
 
-
 
232983
  }
-
 
232984
 
-
 
232985
  public static class getEligibleOrdersForReturn_result implements org.apache.thrift.TBase<getEligibleOrdersForReturn_result, getEligibleOrdersForReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
232986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEligibleOrdersForReturn_result");
-
 
232987
 
-
 
232988
    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);
-
 
232989
 
-
 
232990
    private List<Order> success; // required
-
 
232991
 
-
 
232992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
232993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
232994
      SUCCESS((short)0, "success");
-
 
232995
 
-
 
232996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
232997
 
-
 
232998
      static {
-
 
232999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
233000
          byName.put(field.getFieldName(), field);
-
 
233001
        }
-
 
233002
      }
-
 
233003
 
-
 
233004
      /**
-
 
233005
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
233006
       */
-
 
233007
      public static _Fields findByThriftId(int fieldId) {
-
 
233008
        switch(fieldId) {
-
 
233009
          case 0: // SUCCESS
-
 
233010
            return SUCCESS;
-
 
233011
          default:
-
 
233012
            return null;
-
 
233013
        }
-
 
233014
      }
-
 
233015
 
-
 
233016
      /**
-
 
233017
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
233018
       * if it is not found.
-
 
233019
       */
-
 
233020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
233021
        _Fields fields = findByThriftId(fieldId);
-
 
233022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
233023
        return fields;
-
 
233024
      }
-
 
233025
 
-
 
233026
      /**
-
 
233027
       * Find the _Fields constant that matches name, or null if its not found.
-
 
233028
       */
-
 
233029
      public static _Fields findByName(String name) {
-
 
233030
        return byName.get(name);
-
 
233031
      }
-
 
233032
 
-
 
233033
      private final short _thriftId;
-
 
233034
      private final String _fieldName;
-
 
233035
 
-
 
233036
      _Fields(short thriftId, String fieldName) {
-
 
233037
        _thriftId = thriftId;
-
 
233038
        _fieldName = fieldName;
-
 
233039
      }
-
 
233040
 
-
 
233041
      public short getThriftFieldId() {
-
 
233042
        return _thriftId;
-
 
233043
      }
-
 
233044
 
-
 
233045
      public String getFieldName() {
-
 
233046
        return _fieldName;
-
 
233047
      }
-
 
233048
    }
-
 
233049
 
-
 
233050
    // isset id assignments
-
 
233051
 
-
 
233052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
233053
    static {
-
 
233054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
233055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
233056
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
233057
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
233058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
233059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEligibleOrdersForReturn_result.class, metaDataMap);
-
 
233060
    }
-
 
233061
 
-
 
233062
    public getEligibleOrdersForReturn_result() {
-
 
233063
    }
-
 
233064
 
-
 
233065
    public getEligibleOrdersForReturn_result(
-
 
233066
      List<Order> success)
-
 
233067
    {
-
 
233068
      this();
-
 
233069
      this.success = success;
-
 
233070
    }
-
 
233071
 
-
 
233072
    /**
-
 
233073
     * Performs a deep copy on <i>other</i>.
-
 
233074
     */
-
 
233075
    public getEligibleOrdersForReturn_result(getEligibleOrdersForReturn_result other) {
-
 
233076
      if (other.isSetSuccess()) {
-
 
233077
        List<Order> __this__success = new ArrayList<Order>();
-
 
233078
        for (Order other_element : other.success) {
-
 
233079
          __this__success.add(new Order(other_element));
-
 
233080
        }
-
 
233081
        this.success = __this__success;
-
 
233082
      }
-
 
233083
    }
-
 
233084
 
-
 
233085
    public getEligibleOrdersForReturn_result deepCopy() {
-
 
233086
      return new getEligibleOrdersForReturn_result(this);
-
 
233087
    }
-
 
233088
 
-
 
233089
    @Override
-
 
233090
    public void clear() {
-
 
233091
      this.success = null;
-
 
233092
    }
-
 
233093
 
-
 
233094
    public int getSuccessSize() {
-
 
233095
      return (this.success == null) ? 0 : this.success.size();
-
 
233096
    }
-
 
233097
 
-
 
233098
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
233099
      return (this.success == null) ? null : this.success.iterator();
-
 
233100
    }
-
 
233101
 
-
 
233102
    public void addToSuccess(Order elem) {
-
 
233103
      if (this.success == null) {
-
 
233104
        this.success = new ArrayList<Order>();
-
 
233105
      }
-
 
233106
      this.success.add(elem);
-
 
233107
    }
-
 
233108
 
-
 
233109
    public List<Order> getSuccess() {
-
 
233110
      return this.success;
-
 
233111
    }
-
 
233112
 
-
 
233113
    public void setSuccess(List<Order> success) {
-
 
233114
      this.success = success;
-
 
233115
    }
-
 
233116
 
-
 
233117
    public void unsetSuccess() {
-
 
233118
      this.success = null;
-
 
233119
    }
-
 
233120
 
-
 
233121
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
233122
    public boolean isSetSuccess() {
-
 
233123
      return this.success != null;
-
 
233124
    }
-
 
233125
 
-
 
233126
    public void setSuccessIsSet(boolean value) {
-
 
233127
      if (!value) {
-
 
233128
        this.success = null;
-
 
233129
      }
-
 
233130
    }
-
 
233131
 
-
 
233132
    public void setFieldValue(_Fields field, Object value) {
-
 
233133
      switch (field) {
-
 
233134
      case SUCCESS:
-
 
233135
        if (value == null) {
-
 
233136
          unsetSuccess();
-
 
233137
        } else {
-
 
233138
          setSuccess((List<Order>)value);
-
 
233139
        }
-
 
233140
        break;
-
 
233141
 
-
 
233142
      }
-
 
233143
    }
-
 
233144
 
-
 
233145
    public Object getFieldValue(_Fields field) {
-
 
233146
      switch (field) {
-
 
233147
      case SUCCESS:
-
 
233148
        return getSuccess();
-
 
233149
 
-
 
233150
      }
-
 
233151
      throw new IllegalStateException();
-
 
233152
    }
-
 
233153
 
-
 
233154
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
233155
    public boolean isSet(_Fields field) {
-
 
233156
      if (field == null) {
-
 
233157
        throw new IllegalArgumentException();
-
 
233158
      }
-
 
233159
 
-
 
233160
      switch (field) {
-
 
233161
      case SUCCESS:
-
 
233162
        return isSetSuccess();
-
 
233163
      }
-
 
233164
      throw new IllegalStateException();
-
 
233165
    }
-
 
233166
 
-
 
233167
    @Override
-
 
233168
    public boolean equals(Object that) {
-
 
233169
      if (that == null)
-
 
233170
        return false;
-
 
233171
      if (that instanceof getEligibleOrdersForReturn_result)
-
 
233172
        return this.equals((getEligibleOrdersForReturn_result)that);
-
 
233173
      return false;
-
 
233174
    }
-
 
233175
 
-
 
233176
    public boolean equals(getEligibleOrdersForReturn_result that) {
-
 
233177
      if (that == null)
-
 
233178
        return false;
-
 
233179
 
-
 
233180
      boolean this_present_success = true && this.isSetSuccess();
-
 
233181
      boolean that_present_success = true && that.isSetSuccess();
-
 
233182
      if (this_present_success || that_present_success) {
-
 
233183
        if (!(this_present_success && that_present_success))
-
 
233184
          return false;
-
 
233185
        if (!this.success.equals(that.success))
-
 
233186
          return false;
-
 
233187
      }
-
 
233188
 
-
 
233189
      return true;
-
 
233190
    }
-
 
233191
 
-
 
233192
    @Override
-
 
233193
    public int hashCode() {
-
 
233194
      return 0;
-
 
233195
    }
-
 
233196
 
-
 
233197
    public int compareTo(getEligibleOrdersForReturn_result other) {
-
 
233198
      if (!getClass().equals(other.getClass())) {
-
 
233199
        return getClass().getName().compareTo(other.getClass().getName());
-
 
233200
      }
-
 
233201
 
-
 
233202
      int lastComparison = 0;
-
 
233203
      getEligibleOrdersForReturn_result typedOther = (getEligibleOrdersForReturn_result)other;
-
 
233204
 
-
 
233205
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
233206
      if (lastComparison != 0) {
-
 
233207
        return lastComparison;
-
 
233208
      }
-
 
233209
      if (isSetSuccess()) {
-
 
233210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
233211
        if (lastComparison != 0) {
-
 
233212
          return lastComparison;
-
 
233213
        }
-
 
233214
      }
-
 
233215
      return 0;
-
 
233216
    }
-
 
233217
 
-
 
233218
    public _Fields fieldForId(int fieldId) {
-
 
233219
      return _Fields.findByThriftId(fieldId);
-
 
233220
    }
-
 
233221
 
-
 
233222
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
233223
      org.apache.thrift.protocol.TField field;
-
 
233224
      iprot.readStructBegin();
-
 
233225
      while (true)
-
 
233226
      {
-
 
233227
        field = iprot.readFieldBegin();
-
 
233228
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
233229
          break;
-
 
233230
        }
-
 
233231
        switch (field.id) {
-
 
233232
          case 0: // SUCCESS
-
 
233233
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
233234
              {
-
 
233235
                org.apache.thrift.protocol.TList _list815 = iprot.readListBegin();
-
 
233236
                this.success = new ArrayList<Order>(_list815.size);
-
 
233237
                for (int _i816 = 0; _i816 < _list815.size; ++_i816)
-
 
233238
                {
-
 
233239
                  Order _elem817; // required
-
 
233240
                  _elem817 = new Order();
-
 
233241
                  _elem817.read(iprot);
-
 
233242
                  this.success.add(_elem817);
-
 
233243
                }
-
 
233244
                iprot.readListEnd();
-
 
233245
              }
-
 
233246
            } else { 
-
 
233247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
233248
            }
-
 
233249
            break;
-
 
233250
          default:
-
 
233251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
233252
        }
-
 
233253
        iprot.readFieldEnd();
-
 
233254
      }
-
 
233255
      iprot.readStructEnd();
-
 
233256
      validate();
-
 
233257
    }
-
 
233258
 
-
 
233259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
233260
      oprot.writeStructBegin(STRUCT_DESC);
-
 
233261
 
-
 
233262
      if (this.isSetSuccess()) {
-
 
233263
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
233264
        {
-
 
233265
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
233266
          for (Order _iter818 : this.success)
-
 
233267
          {
-
 
233268
            _iter818.write(oprot);
-
 
233269
          }
-
 
233270
          oprot.writeListEnd();
-
 
233271
        }
-
 
233272
        oprot.writeFieldEnd();
-
 
233273
      }
-
 
233274
      oprot.writeFieldStop();
-
 
233275
      oprot.writeStructEnd();
-
 
233276
    }
-
 
233277
 
-
 
233278
    @Override
-
 
233279
    public String toString() {
-
 
233280
      StringBuilder sb = new StringBuilder("getEligibleOrdersForReturn_result(");
-
 
233281
      boolean first = true;
-
 
233282
 
-
 
233283
      sb.append("success:");
-
 
233284
      if (this.success == null) {
-
 
233285
        sb.append("null");
-
 
233286
      } else {
-
 
233287
        sb.append(this.success);
-
 
233288
      }
-
 
233289
      first = false;
-
 
233290
      sb.append(")");
-
 
233291
      return sb.toString();
-
 
233292
    }
-
 
233293
 
-
 
233294
    public void validate() throws org.apache.thrift.TException {
-
 
233295
      // check for required fields
-
 
233296
    }
-
 
233297
 
-
 
233298
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
233299
      try {
-
 
233300
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
233301
      } catch (org.apache.thrift.TException te) {
-
 
233302
        throw new java.io.IOException(te);
-
 
233303
      }
-
 
233304
    }
-
 
233305
 
-
 
233306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
233307
      try {
-
 
233308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
233309
      } catch (org.apache.thrift.TException te) {
-
 
233310
        throw new java.io.IOException(te);
-
 
233311
      }
-
 
233312
    }
-
 
233313
 
-
 
233314
  }
-
 
233315
 
-
 
233316
  public static class getEligibleReturnOrdersForPickup_args implements org.apache.thrift.TBase<getEligibleReturnOrdersForPickup_args, getEligibleReturnOrdersForPickup_args._Fields>, java.io.Serializable, Cloneable   {
-
 
233317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEligibleReturnOrdersForPickup_args");
-
 
233318
 
-
 
233319
    private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
233320
 
-
 
233321
    private long customerId; // required
-
 
233322
 
-
 
233323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
233324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
233325
      CUSTOMER_ID((short)1, "customerId");
-
 
233326
 
-
 
233327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
233328
 
-
 
233329
      static {
-
 
233330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
233331
          byName.put(field.getFieldName(), field);
-
 
233332
        }
-
 
233333
      }
-
 
233334
 
-
 
233335
      /**
-
 
233336
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
233337
       */
-
 
233338
      public static _Fields findByThriftId(int fieldId) {
-
 
233339
        switch(fieldId) {
-
 
233340
          case 1: // CUSTOMER_ID
-
 
233341
            return CUSTOMER_ID;
-
 
233342
          default:
-
 
233343
            return null;
-
 
233344
        }
-
 
233345
      }
-
 
233346
 
-
 
233347
      /**
-
 
233348
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
233349
       * if it is not found.
-
 
233350
       */
-
 
233351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
233352
        _Fields fields = findByThriftId(fieldId);
-
 
233353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
233354
        return fields;
-
 
233355
      }
-
 
233356
 
-
 
233357
      /**
-
 
233358
       * Find the _Fields constant that matches name, or null if its not found.
-
 
233359
       */
-
 
233360
      public static _Fields findByName(String name) {
-
 
233361
        return byName.get(name);
-
 
233362
      }
-
 
233363
 
-
 
233364
      private final short _thriftId;
-
 
233365
      private final String _fieldName;
-
 
233366
 
-
 
233367
      _Fields(short thriftId, String fieldName) {
-
 
233368
        _thriftId = thriftId;
-
 
233369
        _fieldName = fieldName;
-
 
233370
      }
-
 
233371
 
-
 
233372
      public short getThriftFieldId() {
-
 
233373
        return _thriftId;
-
 
233374
      }
-
 
233375
 
-
 
233376
      public String getFieldName() {
-
 
233377
        return _fieldName;
-
 
233378
      }
-
 
233379
    }
-
 
233380
 
-
 
233381
    // isset id assignments
-
 
233382
    private static final int __CUSTOMERID_ISSET_ID = 0;
-
 
233383
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
233384
 
-
 
233385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
233386
    static {
-
 
233387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
233388
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
233389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
233390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
233391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEligibleReturnOrdersForPickup_args.class, metaDataMap);
-
 
233392
    }
-
 
233393
 
-
 
233394
    public getEligibleReturnOrdersForPickup_args() {
-
 
233395
    }
-
 
233396
 
-
 
233397
    public getEligibleReturnOrdersForPickup_args(
-
 
233398
      long customerId)
-
 
233399
    {
-
 
233400
      this();
-
 
233401
      this.customerId = customerId;
-
 
233402
      setCustomerIdIsSet(true);
-
 
233403
    }
-
 
233404
 
-
 
233405
    /**
-
 
233406
     * Performs a deep copy on <i>other</i>.
-
 
233407
     */
-
 
233408
    public getEligibleReturnOrdersForPickup_args(getEligibleReturnOrdersForPickup_args other) {
-
 
233409
      __isset_bit_vector.clear();
-
 
233410
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
233411
      this.customerId = other.customerId;
-
 
233412
    }
-
 
233413
 
-
 
233414
    public getEligibleReturnOrdersForPickup_args deepCopy() {
-
 
233415
      return new getEligibleReturnOrdersForPickup_args(this);
-
 
233416
    }
-
 
233417
 
-
 
233418
    @Override
-
 
233419
    public void clear() {
-
 
233420
      setCustomerIdIsSet(false);
-
 
233421
      this.customerId = 0;
-
 
233422
    }
-
 
233423
 
-
 
233424
    public long getCustomerId() {
-
 
233425
      return this.customerId;
-
 
233426
    }
-
 
233427
 
-
 
233428
    public void setCustomerId(long customerId) {
-
 
233429
      this.customerId = customerId;
-
 
233430
      setCustomerIdIsSet(true);
-
 
233431
    }
-
 
233432
 
-
 
233433
    public void unsetCustomerId() {
-
 
233434
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
-
 
233435
    }
-
 
233436
 
-
 
233437
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
-
 
233438
    public boolean isSetCustomerId() {
-
 
233439
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
-
 
233440
    }
-
 
233441
 
-
 
233442
    public void setCustomerIdIsSet(boolean value) {
-
 
233443
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
-
 
233444
    }
-
 
233445
 
-
 
233446
    public void setFieldValue(_Fields field, Object value) {
-
 
233447
      switch (field) {
-
 
233448
      case CUSTOMER_ID:
-
 
233449
        if (value == null) {
-
 
233450
          unsetCustomerId();
-
 
233451
        } else {
-
 
233452
          setCustomerId((Long)value);
-
 
233453
        }
-
 
233454
        break;
-
 
233455
 
-
 
233456
      }
-
 
233457
    }
-
 
233458
 
-
 
233459
    public Object getFieldValue(_Fields field) {
-
 
233460
      switch (field) {
-
 
233461
      case CUSTOMER_ID:
-
 
233462
        return Long.valueOf(getCustomerId());
-
 
233463
 
-
 
233464
      }
-
 
233465
      throw new IllegalStateException();
-
 
233466
    }
-
 
233467
 
-
 
233468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
233469
    public boolean isSet(_Fields field) {
-
 
233470
      if (field == null) {
-
 
233471
        throw new IllegalArgumentException();
-
 
233472
      }
-
 
233473
 
-
 
233474
      switch (field) {
-
 
233475
      case CUSTOMER_ID:
-
 
233476
        return isSetCustomerId();
-
 
233477
      }
-
 
233478
      throw new IllegalStateException();
-
 
233479
    }
-
 
233480
 
-
 
233481
    @Override
-
 
233482
    public boolean equals(Object that) {
-
 
233483
      if (that == null)
-
 
233484
        return false;
-
 
233485
      if (that instanceof getEligibleReturnOrdersForPickup_args)
-
 
233486
        return this.equals((getEligibleReturnOrdersForPickup_args)that);
-
 
233487
      return false;
-
 
233488
    }
-
 
233489
 
-
 
233490
    public boolean equals(getEligibleReturnOrdersForPickup_args that) {
-
 
233491
      if (that == null)
-
 
233492
        return false;
-
 
233493
 
-
 
233494
      boolean this_present_customerId = true;
-
 
233495
      boolean that_present_customerId = true;
-
 
233496
      if (this_present_customerId || that_present_customerId) {
-
 
233497
        if (!(this_present_customerId && that_present_customerId))
-
 
233498
          return false;
-
 
233499
        if (this.customerId != that.customerId)
-
 
233500
          return false;
-
 
233501
      }
-
 
233502
 
-
 
233503
      return true;
-
 
233504
    }
-
 
233505
 
-
 
233506
    @Override
-
 
233507
    public int hashCode() {
-
 
233508
      return 0;
-
 
233509
    }
-
 
233510
 
-
 
233511
    public int compareTo(getEligibleReturnOrdersForPickup_args other) {
-
 
233512
      if (!getClass().equals(other.getClass())) {
-
 
233513
        return getClass().getName().compareTo(other.getClass().getName());
-
 
233514
      }
-
 
233515
 
-
 
233516
      int lastComparison = 0;
-
 
233517
      getEligibleReturnOrdersForPickup_args typedOther = (getEligibleReturnOrdersForPickup_args)other;
-
 
233518
 
-
 
233519
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
-
 
233520
      if (lastComparison != 0) {
-
 
233521
        return lastComparison;
-
 
233522
      }
-
 
233523
      if (isSetCustomerId()) {
-
 
233524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
-
 
233525
        if (lastComparison != 0) {
-
 
233526
          return lastComparison;
-
 
233527
        }
-
 
233528
      }
-
 
233529
      return 0;
-
 
233530
    }
-
 
233531
 
-
 
233532
    public _Fields fieldForId(int fieldId) {
-
 
233533
      return _Fields.findByThriftId(fieldId);
-
 
233534
    }
-
 
233535
 
-
 
233536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
233537
      org.apache.thrift.protocol.TField field;
-
 
233538
      iprot.readStructBegin();
-
 
233539
      while (true)
-
 
233540
      {
-
 
233541
        field = iprot.readFieldBegin();
-
 
233542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
233543
          break;
-
 
233544
        }
-
 
233545
        switch (field.id) {
-
 
233546
          case 1: // CUSTOMER_ID
-
 
233547
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
233548
              this.customerId = iprot.readI64();
-
 
233549
              setCustomerIdIsSet(true);
-
 
233550
            } else { 
-
 
233551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
233552
            }
-
 
233553
            break;
-
 
233554
          default:
-
 
233555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
233556
        }
-
 
233557
        iprot.readFieldEnd();
-
 
233558
      }
-
 
233559
      iprot.readStructEnd();
-
 
233560
      validate();
-
 
233561
    }
-
 
233562
 
-
 
233563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
233564
      validate();
-
 
233565
 
-
 
233566
      oprot.writeStructBegin(STRUCT_DESC);
-
 
233567
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
233568
      oprot.writeI64(this.customerId);
-
 
233569
      oprot.writeFieldEnd();
-
 
233570
      oprot.writeFieldStop();
-
 
233571
      oprot.writeStructEnd();
-
 
233572
    }
-
 
233573
 
-
 
233574
    @Override
-
 
233575
    public String toString() {
-
 
233576
      StringBuilder sb = new StringBuilder("getEligibleReturnOrdersForPickup_args(");
-
 
233577
      boolean first = true;
-
 
233578
 
-
 
233579
      sb.append("customerId:");
-
 
233580
      sb.append(this.customerId);
-
 
233581
      first = false;
-
 
233582
      sb.append(")");
-
 
233583
      return sb.toString();
-
 
233584
    }
-
 
233585
 
-
 
233586
    public void validate() throws org.apache.thrift.TException {
-
 
233587
      // check for required fields
-
 
233588
    }
-
 
233589
 
-
 
233590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
233591
      try {
-
 
233592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
233593
      } catch (org.apache.thrift.TException te) {
-
 
233594
        throw new java.io.IOException(te);
-
 
233595
      }
-
 
233596
    }
-
 
233597
 
-
 
233598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
233599
      try {
-
 
233600
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
233601
        __isset_bit_vector = new BitSet(1);
-
 
233602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
233603
      } catch (org.apache.thrift.TException te) {
-
 
233604
        throw new java.io.IOException(te);
-
 
233605
      }
-
 
233606
    }
-
 
233607
 
-
 
233608
  }
-
 
233609
 
-
 
233610
  public static class getEligibleReturnOrdersForPickup_result implements org.apache.thrift.TBase<getEligibleReturnOrdersForPickup_result, getEligibleReturnOrdersForPickup_result._Fields>, java.io.Serializable, Cloneable   {
-
 
233611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEligibleReturnOrdersForPickup_result");
-
 
233612
 
-
 
233613
    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);
-
 
233614
 
-
 
233615
    private List<ReturnOrderInfo> success; // required
-
 
233616
 
-
 
233617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
233618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
233619
      SUCCESS((short)0, "success");
-
 
233620
 
-
 
233621
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
233622
 
-
 
233623
      static {
-
 
233624
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
233625
          byName.put(field.getFieldName(), field);
-
 
233626
        }
-
 
233627
      }
-
 
233628
 
-
 
233629
      /**
-
 
233630
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
233631
       */
-
 
233632
      public static _Fields findByThriftId(int fieldId) {
-
 
233633
        switch(fieldId) {
-
 
233634
          case 0: // SUCCESS
-
 
233635
            return SUCCESS;
-
 
233636
          default:
-
 
233637
            return null;
-
 
233638
        }
-
 
233639
      }
-
 
233640
 
-
 
233641
      /**
-
 
233642
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
233643
       * if it is not found.
-
 
233644
       */
-
 
233645
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
233646
        _Fields fields = findByThriftId(fieldId);
-
 
233647
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
233648
        return fields;
-
 
233649
      }
-
 
233650
 
-
 
233651
      /**
-
 
233652
       * Find the _Fields constant that matches name, or null if its not found.
-
 
233653
       */
-
 
233654
      public static _Fields findByName(String name) {
-
 
233655
        return byName.get(name);
-
 
233656
      }
-
 
233657
 
-
 
233658
      private final short _thriftId;
-
 
233659
      private final String _fieldName;
-
 
233660
 
-
 
233661
      _Fields(short thriftId, String fieldName) {
-
 
233662
        _thriftId = thriftId;
-
 
233663
        _fieldName = fieldName;
-
 
233664
      }
-
 
233665
 
-
 
233666
      public short getThriftFieldId() {
-
 
233667
        return _thriftId;
-
 
233668
      }
-
 
233669
 
-
 
233670
      public String getFieldName() {
-
 
233671
        return _fieldName;
-
 
233672
      }
-
 
233673
    }
-
 
233674
 
-
 
233675
    // isset id assignments
-
 
233676
 
-
 
233677
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
233678
    static {
-
 
233679
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
233680
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
233681
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
233682
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrderInfo.class))));
-
 
233683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
233684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEligibleReturnOrdersForPickup_result.class, metaDataMap);
-
 
233685
    }
-
 
233686
 
-
 
233687
    public getEligibleReturnOrdersForPickup_result() {
-
 
233688
    }
-
 
233689
 
-
 
233690
    public getEligibleReturnOrdersForPickup_result(
-
 
233691
      List<ReturnOrderInfo> success)
-
 
233692
    {
-
 
233693
      this();
-
 
233694
      this.success = success;
-
 
233695
    }
-
 
233696
 
-
 
233697
    /**
-
 
233698
     * Performs a deep copy on <i>other</i>.
-
 
233699
     */
-
 
233700
    public getEligibleReturnOrdersForPickup_result(getEligibleReturnOrdersForPickup_result other) {
-
 
233701
      if (other.isSetSuccess()) {
-
 
233702
        List<ReturnOrderInfo> __this__success = new ArrayList<ReturnOrderInfo>();
-
 
233703
        for (ReturnOrderInfo other_element : other.success) {
-
 
233704
          __this__success.add(new ReturnOrderInfo(other_element));
-
 
233705
        }
-
 
233706
        this.success = __this__success;
-
 
233707
      }
-
 
233708
    }
-
 
233709
 
-
 
233710
    public getEligibleReturnOrdersForPickup_result deepCopy() {
-
 
233711
      return new getEligibleReturnOrdersForPickup_result(this);
-
 
233712
    }
-
 
233713
 
-
 
233714
    @Override
-
 
233715
    public void clear() {
-
 
233716
      this.success = null;
-
 
233717
    }
-
 
233718
 
-
 
233719
    public int getSuccessSize() {
-
 
233720
      return (this.success == null) ? 0 : this.success.size();
-
 
233721
    }
-
 
233722
 
-
 
233723
    public java.util.Iterator<ReturnOrderInfo> getSuccessIterator() {
-
 
233724
      return (this.success == null) ? null : this.success.iterator();
-
 
233725
    }
-
 
233726
 
-
 
233727
    public void addToSuccess(ReturnOrderInfo elem) {
-
 
233728
      if (this.success == null) {
-
 
233729
        this.success = new ArrayList<ReturnOrderInfo>();
-
 
233730
      }
-
 
233731
      this.success.add(elem);
-
 
233732
    }
-
 
233733
 
-
 
233734
    public List<ReturnOrderInfo> getSuccess() {
-
 
233735
      return this.success;
-
 
233736
    }
-
 
233737
 
-
 
233738
    public void setSuccess(List<ReturnOrderInfo> success) {
-
 
233739
      this.success = success;
-
 
233740
    }
-
 
233741
 
-
 
233742
    public void unsetSuccess() {
-
 
233743
      this.success = null;
-
 
233744
    }
-
 
233745
 
-
 
233746
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
233747
    public boolean isSetSuccess() {
-
 
233748
      return this.success != null;
-
 
233749
    }
-
 
233750
 
-
 
233751
    public void setSuccessIsSet(boolean value) {
-
 
233752
      if (!value) {
-
 
233753
        this.success = null;
-
 
233754
      }
-
 
233755
    }
-
 
233756
 
-
 
233757
    public void setFieldValue(_Fields field, Object value) {
-
 
233758
      switch (field) {
-
 
233759
      case SUCCESS:
-
 
233760
        if (value == null) {
-
 
233761
          unsetSuccess();
-
 
233762
        } else {
-
 
233763
          setSuccess((List<ReturnOrderInfo>)value);
-
 
233764
        }
-
 
233765
        break;
-
 
233766
 
-
 
233767
      }
-
 
233768
    }
-
 
233769
 
-
 
233770
    public Object getFieldValue(_Fields field) {
-
 
233771
      switch (field) {
-
 
233772
      case SUCCESS:
-
 
233773
        return getSuccess();
-
 
233774
 
-
 
233775
      }
-
 
233776
      throw new IllegalStateException();
-
 
233777
    }
-
 
233778
 
-
 
233779
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
233780
    public boolean isSet(_Fields field) {
-
 
233781
      if (field == null) {
-
 
233782
        throw new IllegalArgumentException();
-
 
233783
      }
-
 
233784
 
-
 
233785
      switch (field) {
-
 
233786
      case SUCCESS:
-
 
233787
        return isSetSuccess();
-
 
233788
      }
-
 
233789
      throw new IllegalStateException();
-
 
233790
    }
-
 
233791
 
-
 
233792
    @Override
-
 
233793
    public boolean equals(Object that) {
-
 
233794
      if (that == null)
-
 
233795
        return false;
-
 
233796
      if (that instanceof getEligibleReturnOrdersForPickup_result)
-
 
233797
        return this.equals((getEligibleReturnOrdersForPickup_result)that);
-
 
233798
      return false;
-
 
233799
    }
-
 
233800
 
-
 
233801
    public boolean equals(getEligibleReturnOrdersForPickup_result that) {
-
 
233802
      if (that == null)
-
 
233803
        return false;
-
 
233804
 
-
 
233805
      boolean this_present_success = true && this.isSetSuccess();
-
 
233806
      boolean that_present_success = true && that.isSetSuccess();
-
 
233807
      if (this_present_success || that_present_success) {
-
 
233808
        if (!(this_present_success && that_present_success))
-
 
233809
          return false;
-
 
233810
        if (!this.success.equals(that.success))
-
 
233811
          return false;
-
 
233812
      }
-
 
233813
 
-
 
233814
      return true;
-
 
233815
    }
-
 
233816
 
-
 
233817
    @Override
-
 
233818
    public int hashCode() {
-
 
233819
      return 0;
-
 
233820
    }
-
 
233821
 
-
 
233822
    public int compareTo(getEligibleReturnOrdersForPickup_result other) {
-
 
233823
      if (!getClass().equals(other.getClass())) {
-
 
233824
        return getClass().getName().compareTo(other.getClass().getName());
-
 
233825
      }
-
 
233826
 
-
 
233827
      int lastComparison = 0;
-
 
233828
      getEligibleReturnOrdersForPickup_result typedOther = (getEligibleReturnOrdersForPickup_result)other;
-
 
233829
 
-
 
233830
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
233831
      if (lastComparison != 0) {
-
 
233832
        return lastComparison;
-
 
233833
      }
-
 
233834
      if (isSetSuccess()) {
-
 
233835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
233836
        if (lastComparison != 0) {
-
 
233837
          return lastComparison;
-
 
233838
        }
-
 
233839
      }
-
 
233840
      return 0;
-
 
233841
    }
-
 
233842
 
-
 
233843
    public _Fields fieldForId(int fieldId) {
-
 
233844
      return _Fields.findByThriftId(fieldId);
-
 
233845
    }
-
 
233846
 
-
 
233847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
233848
      org.apache.thrift.protocol.TField field;
-
 
233849
      iprot.readStructBegin();
-
 
233850
      while (true)
-
 
233851
      {
-
 
233852
        field = iprot.readFieldBegin();
-
 
233853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
233854
          break;
-
 
233855
        }
-
 
233856
        switch (field.id) {
-
 
233857
          case 0: // SUCCESS
-
 
233858
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
233859
              {
-
 
233860
                org.apache.thrift.protocol.TList _list819 = iprot.readListBegin();
-
 
233861
                this.success = new ArrayList<ReturnOrderInfo>(_list819.size);
-
 
233862
                for (int _i820 = 0; _i820 < _list819.size; ++_i820)
-
 
233863
                {
-
 
233864
                  ReturnOrderInfo _elem821; // required
-
 
233865
                  _elem821 = new ReturnOrderInfo();
-
 
233866
                  _elem821.read(iprot);
-
 
233867
                  this.success.add(_elem821);
-
 
233868
                }
-
 
233869
                iprot.readListEnd();
-
 
233870
              }
-
 
233871
            } else { 
-
 
233872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
233873
            }
-
 
233874
            break;
-
 
233875
          default:
-
 
233876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
233877
        }
-
 
233878
        iprot.readFieldEnd();
-
 
233879
      }
-
 
233880
      iprot.readStructEnd();
-
 
233881
      validate();
-
 
233882
    }
-
 
233883
 
-
 
233884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
233885
      oprot.writeStructBegin(STRUCT_DESC);
-
 
233886
 
-
 
233887
      if (this.isSetSuccess()) {
-
 
233888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
233889
        {
-
 
233890
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
233891
          for (ReturnOrderInfo _iter822 : this.success)
-
 
233892
          {
-
 
233893
            _iter822.write(oprot);
-
 
233894
          }
-
 
233895
          oprot.writeListEnd();
-
 
233896
        }
-
 
233897
        oprot.writeFieldEnd();
-
 
233898
      }
-
 
233899
      oprot.writeFieldStop();
-
 
233900
      oprot.writeStructEnd();
-
 
233901
    }
-
 
233902
 
-
 
233903
    @Override
-
 
233904
    public String toString() {
-
 
233905
      StringBuilder sb = new StringBuilder("getEligibleReturnOrdersForPickup_result(");
-
 
233906
      boolean first = true;
-
 
233907
 
-
 
233908
      sb.append("success:");
-
 
233909
      if (this.success == null) {
-
 
233910
        sb.append("null");
-
 
233911
      } else {
-
 
233912
        sb.append(this.success);
-
 
233913
      }
-
 
233914
      first = false;
-
 
233915
      sb.append(")");
-
 
233916
      return sb.toString();
-
 
233917
    }
-
 
233918
 
232338
    public void validate() throws org.apache.thrift.TException {
233919
    public void validate() throws org.apache.thrift.TException {
232339
      // check for required fields
233920
      // check for required fields
232340
    }
233921
    }
232341
 
233922
 
232342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
233923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {