Subversion Repositories SmartDukaan

Rev

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

Rev 18794 Rev 19004
Line 1191... Line 1191...
1191
 
1191
 
1192
    public List<ReturnTransaction> getReturnTransactionsForCustomer(List<ReturnTransactionStatus> statusList, String customerMobile, String customerEmail, long returnTransactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
1192
    public List<ReturnTransaction> getReturnTransactionsForCustomer(List<ReturnTransactionStatus> statusList, String customerMobile, String customerEmail, long returnTransactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
1193
 
1193
 
1194
    public boolean verifyOrderForTransaction(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
1194
    public boolean verifyOrderForTransaction(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
1195
 
1195
 
-
 
1196
    /**
-
 
1197
     * Returns at most 'limit' orders with the given statuses for the given warehouse starting from the given offset.
-
 
1198
     * These orders should be in order of promised shipping time.
-
 
1199
     * Pass the status as null and the limit as 0 to ignore them.
-
 
1200
     * 
-
 
1201
     * @param statuses
-
 
1202
     * @param offset
-
 
1203
     * @param limit
-
 
1204
     * @param warehouse_id
-
 
1205
     * @param source
-
 
1206
     */
-
 
1207
    public List<Order> getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1208
 
1196
  }
1209
  }
1197
 
1210
 
1198
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1211
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1199
 
1212
 
1200
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1213
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1767... Line 1780...
1767
 
1780
 
1768
    public void getReturnTransactionsForCustomer(List<ReturnTransactionStatus> statusList, String customerMobile, String customerEmail, long returnTransactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnTransactionsForCustomer_call> resultHandler) throws org.apache.thrift.TException;
1781
    public void getReturnTransactionsForCustomer(List<ReturnTransactionStatus> statusList, String customerMobile, String customerEmail, long returnTransactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnTransactionsForCustomer_call> resultHandler) throws org.apache.thrift.TException;
1769
 
1782
 
1770
    public void verifyOrderForTransaction(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrderForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1783
    public void verifyOrderForTransaction(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrderForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1771
 
1784
 
-
 
1785
    public void getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatchAsPromisedShipping_call> resultHandler) throws org.apache.thrift.TException;
-
 
1786
 
1772
  }
1787
  }
1773
 
1788
 
1774
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1789
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1775
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1790
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1776
      public Factory() {}
1791
      public Factory() {}
Line 8881... Line 8896...
8881
        throw result.ex;
8896
        throw result.ex;
8882
      }
8897
      }
8883
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyOrderForTransaction failed: unknown result");
8898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyOrderForTransaction failed: unknown result");
8884
    }
8899
    }
8885
 
8900
 
-
 
8901
    public List<Order> getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws TransactionServiceException, org.apache.thrift.TException
-
 
8902
    {
-
 
8903
      send_getOrdersInBatchAsPromisedShipping(statuses, offset, limit, warehouse_id, source);
-
 
8904
      return recv_getOrdersInBatchAsPromisedShipping();
-
 
8905
    }
-
 
8906
 
-
 
8907
    public void send_getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws org.apache.thrift.TException
-
 
8908
    {
-
 
8909
      getOrdersInBatchAsPromisedShipping_args args = new getOrdersInBatchAsPromisedShipping_args();
-
 
8910
      args.setStatuses(statuses);
-
 
8911
      args.setOffset(offset);
-
 
8912
      args.setLimit(limit);
-
 
8913
      args.setWarehouse_id(warehouse_id);
-
 
8914
      args.setSource(source);
-
 
8915
      sendBase("getOrdersInBatchAsPromisedShipping", args);
-
 
8916
    }
-
 
8917
 
-
 
8918
    public List<Order> recv_getOrdersInBatchAsPromisedShipping() throws TransactionServiceException, org.apache.thrift.TException
-
 
8919
    {
-
 
8920
      getOrdersInBatchAsPromisedShipping_result result = new getOrdersInBatchAsPromisedShipping_result();
-
 
8921
      receiveBase(result, "getOrdersInBatchAsPromisedShipping");
-
 
8922
      if (result.isSetSuccess()) {
-
 
8923
        return result.success;
-
 
8924
      }
-
 
8925
      if (result.ex != null) {
-
 
8926
        throw result.ex;
-
 
8927
      }
-
 
8928
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatchAsPromisedShipping failed: unknown result");
-
 
8929
    }
-
 
8930
 
8886
  }
8931
  }
8887
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
8932
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
8888
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
8933
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
8889
      private org.apache.thrift.async.TAsyncClientManager clientManager;
8934
      private org.apache.thrift.async.TAsyncClientManager clientManager;
8890
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
8935
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 18864... Line 18909...
18864
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
18909
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
18865
        return (new Client(prot)).recv_verifyOrderForTransaction();
18910
        return (new Client(prot)).recv_verifyOrderForTransaction();
18866
      }
18911
      }
18867
    }
18912
    }
18868
 
18913
 
-
 
18914
    public void getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatchAsPromisedShipping_call> resultHandler) throws org.apache.thrift.TException {
-
 
18915
      checkReady();
-
 
18916
      getOrdersInBatchAsPromisedShipping_call method_call = new getOrdersInBatchAsPromisedShipping_call(statuses, offset, limit, warehouse_id, source, resultHandler, this, ___protocolFactory, ___transport);
-
 
18917
      this.___currentMethod = method_call;
-
 
18918
      ___manager.call(method_call);
-
 
18919
    }
-
 
18920
 
-
 
18921
    public static class getOrdersInBatchAsPromisedShipping_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
18922
      private List<OrderStatus> statuses;
-
 
18923
      private long offset;
-
 
18924
      private long limit;
-
 
18925
      private long warehouse_id;
-
 
18926
      private long source;
-
 
18927
      public getOrdersInBatchAsPromisedShipping_call(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatchAsPromisedShipping_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 {
-
 
18928
        super(client, protocolFactory, transport, resultHandler, false);
-
 
18929
        this.statuses = statuses;
-
 
18930
        this.offset = offset;
-
 
18931
        this.limit = limit;
-
 
18932
        this.warehouse_id = warehouse_id;
-
 
18933
        this.source = source;
-
 
18934
      }
-
 
18935
 
-
 
18936
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
18937
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatchAsPromisedShipping", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
18938
        getOrdersInBatchAsPromisedShipping_args args = new getOrdersInBatchAsPromisedShipping_args();
-
 
18939
        args.setStatuses(statuses);
-
 
18940
        args.setOffset(offset);
-
 
18941
        args.setLimit(limit);
-
 
18942
        args.setWarehouse_id(warehouse_id);
-
 
18943
        args.setSource(source);
-
 
18944
        args.write(prot);
-
 
18945
        prot.writeMessageEnd();
-
 
18946
      }
-
 
18947
 
-
 
18948
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
18949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
18950
          throw new IllegalStateException("Method call not finished!");
-
 
18951
        }
-
 
18952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
18953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
18954
        return (new Client(prot)).recv_getOrdersInBatchAsPromisedShipping();
-
 
18955
      }
-
 
18956
    }
-
 
18957
 
18869
  }
18958
  }
18870
 
18959
 
18871
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
18960
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
18872
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
18961
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
18873
    public Processor(I iface) {
18962
    public Processor(I iface) {
Line 19163... Line 19252...
19163
      processMap.put("processReturnPickup", new processReturnPickup());
19252
      processMap.put("processReturnPickup", new processReturnPickup());
19164
      processMap.put("markReturnTransactionComplete", new markReturnTransactionComplete());
19253
      processMap.put("markReturnTransactionComplete", new markReturnTransactionComplete());
19165
      processMap.put("refundReturnTransactionPayment", new refundReturnTransactionPayment());
19254
      processMap.put("refundReturnTransactionPayment", new refundReturnTransactionPayment());
19166
      processMap.put("getReturnTransactionsForCustomer", new getReturnTransactionsForCustomer());
19255
      processMap.put("getReturnTransactionsForCustomer", new getReturnTransactionsForCustomer());
19167
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19256
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
-
 
19257
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
19168
      return processMap;
19258
      return processMap;
19169
    }
19259
    }
19170
 
19260
 
19171
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19261
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19172
      public createTransaction() {
19262
      public createTransaction() {
Line 24364... Line 24454...
24364
        }
24454
        }
24365
        return result;
24455
        return result;
24366
      }
24456
      }
24367
    }
24457
    }
24368
 
24458
 
-
 
24459
    private static class getOrdersInBatchAsPromisedShipping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersInBatchAsPromisedShipping_args> {
-
 
24460
      public getOrdersInBatchAsPromisedShipping() {
-
 
24461
        super("getOrdersInBatchAsPromisedShipping");
-
 
24462
      }
-
 
24463
 
-
 
24464
      protected getOrdersInBatchAsPromisedShipping_args getEmptyArgsInstance() {
-
 
24465
        return new getOrdersInBatchAsPromisedShipping_args();
-
 
24466
      }
-
 
24467
 
-
 
24468
      protected getOrdersInBatchAsPromisedShipping_result getResult(I iface, getOrdersInBatchAsPromisedShipping_args args) throws org.apache.thrift.TException {
-
 
24469
        getOrdersInBatchAsPromisedShipping_result result = new getOrdersInBatchAsPromisedShipping_result();
-
 
24470
        try {
-
 
24471
          result.success = iface.getOrdersInBatchAsPromisedShipping(args.statuses, args.offset, args.limit, args.warehouse_id, args.source);
-
 
24472
        } catch (TransactionServiceException ex) {
-
 
24473
          result.ex = ex;
-
 
24474
        }
-
 
24475
        return result;
-
 
24476
      }
-
 
24477
    }
-
 
24478
 
24369
  }
24479
  }
24370
 
24480
 
24371
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24481
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24372
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24373
 
24483
 
Line 67179... Line 67289...
67179
      }
67289
      }
67180
    }
67290
    }
67181
 
67291
 
67182
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67183
      try {
67293
      try {
-
 
67294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
67295
        __isset_bit_vector = new BitSet(1);
67184
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67185
      } catch (org.apache.thrift.TException te) {
67297
      } catch (org.apache.thrift.TException te) {
67186
        throw new java.io.IOException(te);
67298
        throw new java.io.IOException(te);
67187
      }
67299
      }
67188
    }
67300
    }
Line 228970... Line 229082...
228970
      first = false;
229082
      first = false;
228971
      if (!first) sb.append(", ");
229083
      if (!first) sb.append(", ");
228972
      sb.append("ex:");
229084
      sb.append("ex:");
228973
      if (this.ex == null) {
229085
      if (this.ex == null) {
228974
        sb.append("null");
229086
        sb.append("null");
-
 
229087
      } else {
-
 
229088
        sb.append(this.ex);
-
 
229089
      }
-
 
229090
      first = false;
-
 
229091
      sb.append(")");
-
 
229092
      return sb.toString();
-
 
229093
    }
-
 
229094
 
-
 
229095
    public void validate() throws org.apache.thrift.TException {
-
 
229096
      // check for required fields
-
 
229097
    }
-
 
229098
 
-
 
229099
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
229100
      try {
-
 
229101
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
229102
      } catch (org.apache.thrift.TException te) {
-
 
229103
        throw new java.io.IOException(te);
-
 
229104
      }
-
 
229105
    }
-
 
229106
 
-
 
229107
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
229108
      try {
-
 
229109
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
229110
      } catch (org.apache.thrift.TException te) {
-
 
229111
        throw new java.io.IOException(te);
-
 
229112
      }
-
 
229113
    }
-
 
229114
 
-
 
229115
  }
-
 
229116
 
-
 
229117
  public static class getOrdersInBatchAsPromisedShipping_args implements org.apache.thrift.TBase<getOrdersInBatchAsPromisedShipping_args, getOrdersInBatchAsPromisedShipping_args._Fields>, java.io.Serializable, Cloneable   {
-
 
229118
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatchAsPromisedShipping_args");
-
 
229119
 
-
 
229120
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
229121
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
229122
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
229123
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
229124
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
229125
 
-
 
229126
    private List<OrderStatus> statuses; // required
-
 
229127
    private long offset; // required
-
 
229128
    private long limit; // required
-
 
229129
    private long warehouse_id; // required
-
 
229130
    private long source; // required
-
 
229131
 
-
 
229132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
229133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
229134
      STATUSES((short)1, "statuses"),
-
 
229135
      OFFSET((short)2, "offset"),
-
 
229136
      LIMIT((short)3, "limit"),
-
 
229137
      WAREHOUSE_ID((short)4, "warehouse_id"),
-
 
229138
      SOURCE((short)5, "source");
-
 
229139
 
-
 
229140
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
229141
 
-
 
229142
      static {
-
 
229143
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
229144
          byName.put(field.getFieldName(), field);
-
 
229145
        }
-
 
229146
      }
-
 
229147
 
-
 
229148
      /**
-
 
229149
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
229150
       */
-
 
229151
      public static _Fields findByThriftId(int fieldId) {
-
 
229152
        switch(fieldId) {
-
 
229153
          case 1: // STATUSES
-
 
229154
            return STATUSES;
-
 
229155
          case 2: // OFFSET
-
 
229156
            return OFFSET;
-
 
229157
          case 3: // LIMIT
-
 
229158
            return LIMIT;
-
 
229159
          case 4: // WAREHOUSE_ID
-
 
229160
            return WAREHOUSE_ID;
-
 
229161
          case 5: // SOURCE
-
 
229162
            return SOURCE;
-
 
229163
          default:
-
 
229164
            return null;
-
 
229165
        }
-
 
229166
      }
-
 
229167
 
-
 
229168
      /**
-
 
229169
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
229170
       * if it is not found.
-
 
229171
       */
-
 
229172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
229173
        _Fields fields = findByThriftId(fieldId);
-
 
229174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
229175
        return fields;
-
 
229176
      }
-
 
229177
 
-
 
229178
      /**
-
 
229179
       * Find the _Fields constant that matches name, or null if its not found.
-
 
229180
       */
-
 
229181
      public static _Fields findByName(String name) {
-
 
229182
        return byName.get(name);
-
 
229183
      }
-
 
229184
 
-
 
229185
      private final short _thriftId;
-
 
229186
      private final String _fieldName;
-
 
229187
 
-
 
229188
      _Fields(short thriftId, String fieldName) {
-
 
229189
        _thriftId = thriftId;
-
 
229190
        _fieldName = fieldName;
-
 
229191
      }
-
 
229192
 
-
 
229193
      public short getThriftFieldId() {
-
 
229194
        return _thriftId;
-
 
229195
      }
-
 
229196
 
-
 
229197
      public String getFieldName() {
-
 
229198
        return _fieldName;
-
 
229199
      }
-
 
229200
    }
-
 
229201
 
-
 
229202
    // isset id assignments
-
 
229203
    private static final int __OFFSET_ISSET_ID = 0;
-
 
229204
    private static final int __LIMIT_ISSET_ID = 1;
-
 
229205
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
-
 
229206
    private static final int __SOURCE_ISSET_ID = 3;
-
 
229207
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
229208
 
-
 
229209
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
229210
    static {
-
 
229211
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
229212
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229213
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
229214
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
-
 
229215
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
229217
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
229219
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
229221
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
229223
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
229224
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatchAsPromisedShipping_args.class, metaDataMap);
-
 
229225
    }
-
 
229226
 
-
 
229227
    public getOrdersInBatchAsPromisedShipping_args() {
-
 
229228
    }
-
 
229229
 
-
 
229230
    public getOrdersInBatchAsPromisedShipping_args(
-
 
229231
      List<OrderStatus> statuses,
-
 
229232
      long offset,
-
 
229233
      long limit,
-
 
229234
      long warehouse_id,
-
 
229235
      long source)
-
 
229236
    {
-
 
229237
      this();
-
 
229238
      this.statuses = statuses;
-
 
229239
      this.offset = offset;
-
 
229240
      setOffsetIsSet(true);
-
 
229241
      this.limit = limit;
-
 
229242
      setLimitIsSet(true);
-
 
229243
      this.warehouse_id = warehouse_id;
-
 
229244
      setWarehouse_idIsSet(true);
-
 
229245
      this.source = source;
-
 
229246
      setSourceIsSet(true);
-
 
229247
    }
-
 
229248
 
-
 
229249
    /**
-
 
229250
     * Performs a deep copy on <i>other</i>.
-
 
229251
     */
-
 
229252
    public getOrdersInBatchAsPromisedShipping_args(getOrdersInBatchAsPromisedShipping_args other) {
-
 
229253
      __isset_bit_vector.clear();
-
 
229254
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
229255
      if (other.isSetStatuses()) {
-
 
229256
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
-
 
229257
        for (OrderStatus other_element : other.statuses) {
-
 
229258
          __this__statuses.add(other_element);
-
 
229259
        }
-
 
229260
        this.statuses = __this__statuses;
-
 
229261
      }
-
 
229262
      this.offset = other.offset;
-
 
229263
      this.limit = other.limit;
-
 
229264
      this.warehouse_id = other.warehouse_id;
-
 
229265
      this.source = other.source;
-
 
229266
    }
-
 
229267
 
-
 
229268
    public getOrdersInBatchAsPromisedShipping_args deepCopy() {
-
 
229269
      return new getOrdersInBatchAsPromisedShipping_args(this);
-
 
229270
    }
-
 
229271
 
-
 
229272
    @Override
-
 
229273
    public void clear() {
-
 
229274
      this.statuses = null;
-
 
229275
      setOffsetIsSet(false);
-
 
229276
      this.offset = 0;
-
 
229277
      setLimitIsSet(false);
-
 
229278
      this.limit = 0;
-
 
229279
      setWarehouse_idIsSet(false);
-
 
229280
      this.warehouse_id = 0;
-
 
229281
      setSourceIsSet(false);
-
 
229282
      this.source = 0;
-
 
229283
    }
-
 
229284
 
-
 
229285
    public int getStatusesSize() {
-
 
229286
      return (this.statuses == null) ? 0 : this.statuses.size();
-
 
229287
    }
-
 
229288
 
-
 
229289
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
-
 
229290
      return (this.statuses == null) ? null : this.statuses.iterator();
-
 
229291
    }
-
 
229292
 
-
 
229293
    public void addToStatuses(OrderStatus elem) {
-
 
229294
      if (this.statuses == null) {
-
 
229295
        this.statuses = new ArrayList<OrderStatus>();
-
 
229296
      }
-
 
229297
      this.statuses.add(elem);
-
 
229298
    }
-
 
229299
 
-
 
229300
    public List<OrderStatus> getStatuses() {
-
 
229301
      return this.statuses;
-
 
229302
    }
-
 
229303
 
-
 
229304
    public void setStatuses(List<OrderStatus> statuses) {
-
 
229305
      this.statuses = statuses;
-
 
229306
    }
-
 
229307
 
-
 
229308
    public void unsetStatuses() {
-
 
229309
      this.statuses = null;
-
 
229310
    }
-
 
229311
 
-
 
229312
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
-
 
229313
    public boolean isSetStatuses() {
-
 
229314
      return this.statuses != null;
-
 
229315
    }
-
 
229316
 
-
 
229317
    public void setStatusesIsSet(boolean value) {
-
 
229318
      if (!value) {
-
 
229319
        this.statuses = null;
-
 
229320
      }
-
 
229321
    }
-
 
229322
 
-
 
229323
    public long getOffset() {
-
 
229324
      return this.offset;
-
 
229325
    }
-
 
229326
 
-
 
229327
    public void setOffset(long offset) {
-
 
229328
      this.offset = offset;
-
 
229329
      setOffsetIsSet(true);
-
 
229330
    }
-
 
229331
 
-
 
229332
    public void unsetOffset() {
-
 
229333
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
229334
    }
-
 
229335
 
-
 
229336
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
229337
    public boolean isSetOffset() {
-
 
229338
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
229339
    }
-
 
229340
 
-
 
229341
    public void setOffsetIsSet(boolean value) {
-
 
229342
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
229343
    }
-
 
229344
 
-
 
229345
    public long getLimit() {
-
 
229346
      return this.limit;
-
 
229347
    }
-
 
229348
 
-
 
229349
    public void setLimit(long limit) {
-
 
229350
      this.limit = limit;
-
 
229351
      setLimitIsSet(true);
-
 
229352
    }
-
 
229353
 
-
 
229354
    public void unsetLimit() {
-
 
229355
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
229356
    }
-
 
229357
 
-
 
229358
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
229359
    public boolean isSetLimit() {
-
 
229360
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
229361
    }
-
 
229362
 
-
 
229363
    public void setLimitIsSet(boolean value) {
-
 
229364
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
229365
    }
-
 
229366
 
-
 
229367
    public long getWarehouse_id() {
-
 
229368
      return this.warehouse_id;
-
 
229369
    }
-
 
229370
 
-
 
229371
    public void setWarehouse_id(long warehouse_id) {
-
 
229372
      this.warehouse_id = warehouse_id;
-
 
229373
      setWarehouse_idIsSet(true);
-
 
229374
    }
-
 
229375
 
-
 
229376
    public void unsetWarehouse_id() {
-
 
229377
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
229378
    }
-
 
229379
 
-
 
229380
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
229381
    public boolean isSetWarehouse_id() {
-
 
229382
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
229383
    }
-
 
229384
 
-
 
229385
    public void setWarehouse_idIsSet(boolean value) {
-
 
229386
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
229387
    }
-
 
229388
 
-
 
229389
    public long getSource() {
-
 
229390
      return this.source;
-
 
229391
    }
-
 
229392
 
-
 
229393
    public void setSource(long source) {
-
 
229394
      this.source = source;
-
 
229395
      setSourceIsSet(true);
-
 
229396
    }
-
 
229397
 
-
 
229398
    public void unsetSource() {
-
 
229399
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
229400
    }
-
 
229401
 
-
 
229402
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
229403
    public boolean isSetSource() {
-
 
229404
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
229405
    }
-
 
229406
 
-
 
229407
    public void setSourceIsSet(boolean value) {
-
 
229408
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
229409
    }
-
 
229410
 
-
 
229411
    public void setFieldValue(_Fields field, Object value) {
-
 
229412
      switch (field) {
-
 
229413
      case STATUSES:
-
 
229414
        if (value == null) {
-
 
229415
          unsetStatuses();
-
 
229416
        } else {
-
 
229417
          setStatuses((List<OrderStatus>)value);
-
 
229418
        }
-
 
229419
        break;
-
 
229420
 
-
 
229421
      case OFFSET:
-
 
229422
        if (value == null) {
-
 
229423
          unsetOffset();
-
 
229424
        } else {
-
 
229425
          setOffset((Long)value);
-
 
229426
        }
-
 
229427
        break;
-
 
229428
 
-
 
229429
      case LIMIT:
-
 
229430
        if (value == null) {
-
 
229431
          unsetLimit();
-
 
229432
        } else {
-
 
229433
          setLimit((Long)value);
-
 
229434
        }
-
 
229435
        break;
-
 
229436
 
-
 
229437
      case WAREHOUSE_ID:
-
 
229438
        if (value == null) {
-
 
229439
          unsetWarehouse_id();
-
 
229440
        } else {
-
 
229441
          setWarehouse_id((Long)value);
-
 
229442
        }
-
 
229443
        break;
-
 
229444
 
-
 
229445
      case SOURCE:
-
 
229446
        if (value == null) {
-
 
229447
          unsetSource();
-
 
229448
        } else {
-
 
229449
          setSource((Long)value);
-
 
229450
        }
-
 
229451
        break;
-
 
229452
 
-
 
229453
      }
-
 
229454
    }
-
 
229455
 
-
 
229456
    public Object getFieldValue(_Fields field) {
-
 
229457
      switch (field) {
-
 
229458
      case STATUSES:
-
 
229459
        return getStatuses();
-
 
229460
 
-
 
229461
      case OFFSET:
-
 
229462
        return Long.valueOf(getOffset());
-
 
229463
 
-
 
229464
      case LIMIT:
-
 
229465
        return Long.valueOf(getLimit());
-
 
229466
 
-
 
229467
      case WAREHOUSE_ID:
-
 
229468
        return Long.valueOf(getWarehouse_id());
-
 
229469
 
-
 
229470
      case SOURCE:
-
 
229471
        return Long.valueOf(getSource());
-
 
229472
 
-
 
229473
      }
-
 
229474
      throw new IllegalStateException();
-
 
229475
    }
-
 
229476
 
-
 
229477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
229478
    public boolean isSet(_Fields field) {
-
 
229479
      if (field == null) {
-
 
229480
        throw new IllegalArgumentException();
-
 
229481
      }
-
 
229482
 
-
 
229483
      switch (field) {
-
 
229484
      case STATUSES:
-
 
229485
        return isSetStatuses();
-
 
229486
      case OFFSET:
-
 
229487
        return isSetOffset();
-
 
229488
      case LIMIT:
-
 
229489
        return isSetLimit();
-
 
229490
      case WAREHOUSE_ID:
-
 
229491
        return isSetWarehouse_id();
-
 
229492
      case SOURCE:
-
 
229493
        return isSetSource();
-
 
229494
      }
-
 
229495
      throw new IllegalStateException();
-
 
229496
    }
-
 
229497
 
-
 
229498
    @Override
-
 
229499
    public boolean equals(Object that) {
-
 
229500
      if (that == null)
-
 
229501
        return false;
-
 
229502
      if (that instanceof getOrdersInBatchAsPromisedShipping_args)
-
 
229503
        return this.equals((getOrdersInBatchAsPromisedShipping_args)that);
-
 
229504
      return false;
-
 
229505
    }
-
 
229506
 
-
 
229507
    public boolean equals(getOrdersInBatchAsPromisedShipping_args that) {
-
 
229508
      if (that == null)
-
 
229509
        return false;
-
 
229510
 
-
 
229511
      boolean this_present_statuses = true && this.isSetStatuses();
-
 
229512
      boolean that_present_statuses = true && that.isSetStatuses();
-
 
229513
      if (this_present_statuses || that_present_statuses) {
-
 
229514
        if (!(this_present_statuses && that_present_statuses))
-
 
229515
          return false;
-
 
229516
        if (!this.statuses.equals(that.statuses))
-
 
229517
          return false;
-
 
229518
      }
-
 
229519
 
-
 
229520
      boolean this_present_offset = true;
-
 
229521
      boolean that_present_offset = true;
-
 
229522
      if (this_present_offset || that_present_offset) {
-
 
229523
        if (!(this_present_offset && that_present_offset))
-
 
229524
          return false;
-
 
229525
        if (this.offset != that.offset)
-
 
229526
          return false;
-
 
229527
      }
-
 
229528
 
-
 
229529
      boolean this_present_limit = true;
-
 
229530
      boolean that_present_limit = true;
-
 
229531
      if (this_present_limit || that_present_limit) {
-
 
229532
        if (!(this_present_limit && that_present_limit))
-
 
229533
          return false;
-
 
229534
        if (this.limit != that.limit)
-
 
229535
          return false;
-
 
229536
      }
-
 
229537
 
-
 
229538
      boolean this_present_warehouse_id = true;
-
 
229539
      boolean that_present_warehouse_id = true;
-
 
229540
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
229541
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
229542
          return false;
-
 
229543
        if (this.warehouse_id != that.warehouse_id)
-
 
229544
          return false;
-
 
229545
      }
-
 
229546
 
-
 
229547
      boolean this_present_source = true;
-
 
229548
      boolean that_present_source = true;
-
 
229549
      if (this_present_source || that_present_source) {
-
 
229550
        if (!(this_present_source && that_present_source))
-
 
229551
          return false;
-
 
229552
        if (this.source != that.source)
-
 
229553
          return false;
-
 
229554
      }
-
 
229555
 
-
 
229556
      return true;
-
 
229557
    }
-
 
229558
 
-
 
229559
    @Override
-
 
229560
    public int hashCode() {
-
 
229561
      return 0;
-
 
229562
    }
-
 
229563
 
-
 
229564
    public int compareTo(getOrdersInBatchAsPromisedShipping_args other) {
-
 
229565
      if (!getClass().equals(other.getClass())) {
-
 
229566
        return getClass().getName().compareTo(other.getClass().getName());
-
 
229567
      }
-
 
229568
 
-
 
229569
      int lastComparison = 0;
-
 
229570
      getOrdersInBatchAsPromisedShipping_args typedOther = (getOrdersInBatchAsPromisedShipping_args)other;
-
 
229571
 
-
 
229572
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
-
 
229573
      if (lastComparison != 0) {
-
 
229574
        return lastComparison;
-
 
229575
      }
-
 
229576
      if (isSetStatuses()) {
-
 
229577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
-
 
229578
        if (lastComparison != 0) {
-
 
229579
          return lastComparison;
-
 
229580
        }
-
 
229581
      }
-
 
229582
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
229583
      if (lastComparison != 0) {
-
 
229584
        return lastComparison;
-
 
229585
      }
-
 
229586
      if (isSetOffset()) {
-
 
229587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
229588
        if (lastComparison != 0) {
-
 
229589
          return lastComparison;
-
 
229590
        }
-
 
229591
      }
-
 
229592
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
229593
      if (lastComparison != 0) {
-
 
229594
        return lastComparison;
-
 
229595
      }
-
 
229596
      if (isSetLimit()) {
-
 
229597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
229598
        if (lastComparison != 0) {
-
 
229599
          return lastComparison;
-
 
229600
        }
-
 
229601
      }
-
 
229602
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
229603
      if (lastComparison != 0) {
-
 
229604
        return lastComparison;
-
 
229605
      }
-
 
229606
      if (isSetWarehouse_id()) {
-
 
229607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
229608
        if (lastComparison != 0) {
-
 
229609
          return lastComparison;
-
 
229610
        }
-
 
229611
      }
-
 
229612
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
229613
      if (lastComparison != 0) {
-
 
229614
        return lastComparison;
-
 
229615
      }
-
 
229616
      if (isSetSource()) {
-
 
229617
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
229618
        if (lastComparison != 0) {
-
 
229619
          return lastComparison;
-
 
229620
        }
-
 
229621
      }
-
 
229622
      return 0;
-
 
229623
    }
-
 
229624
 
-
 
229625
    public _Fields fieldForId(int fieldId) {
-
 
229626
      return _Fields.findByThriftId(fieldId);
-
 
229627
    }
-
 
229628
 
-
 
229629
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
229630
      org.apache.thrift.protocol.TField field;
-
 
229631
      iprot.readStructBegin();
-
 
229632
      while (true)
-
 
229633
      {
-
 
229634
        field = iprot.readFieldBegin();
-
 
229635
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
229636
          break;
-
 
229637
        }
-
 
229638
        switch (field.id) {
-
 
229639
          case 1: // STATUSES
-
 
229640
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
229641
              {
-
 
229642
                org.apache.thrift.protocol.TList _list799 = iprot.readListBegin();
-
 
229643
                this.statuses = new ArrayList<OrderStatus>(_list799.size);
-
 
229644
                for (int _i800 = 0; _i800 < _list799.size; ++_i800)
-
 
229645
                {
-
 
229646
                  OrderStatus _elem801; // required
-
 
229647
                  _elem801 = OrderStatus.findByValue(iprot.readI32());
-
 
229648
                  this.statuses.add(_elem801);
-
 
229649
                }
-
 
229650
                iprot.readListEnd();
-
 
229651
              }
-
 
229652
            } else { 
-
 
229653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
229654
            }
-
 
229655
            break;
-
 
229656
          case 2: // OFFSET
-
 
229657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
229658
              this.offset = iprot.readI64();
-
 
229659
              setOffsetIsSet(true);
-
 
229660
            } else { 
-
 
229661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
229662
            }
-
 
229663
            break;
-
 
229664
          case 3: // LIMIT
-
 
229665
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
229666
              this.limit = iprot.readI64();
-
 
229667
              setLimitIsSet(true);
-
 
229668
            } else { 
-
 
229669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
229670
            }
-
 
229671
            break;
-
 
229672
          case 4: // WAREHOUSE_ID
-
 
229673
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
229674
              this.warehouse_id = iprot.readI64();
-
 
229675
              setWarehouse_idIsSet(true);
-
 
229676
            } else { 
-
 
229677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
229678
            }
-
 
229679
            break;
-
 
229680
          case 5: // SOURCE
-
 
229681
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
229682
              this.source = iprot.readI64();
-
 
229683
              setSourceIsSet(true);
-
 
229684
            } else { 
-
 
229685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
229686
            }
-
 
229687
            break;
-
 
229688
          default:
-
 
229689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
229690
        }
-
 
229691
        iprot.readFieldEnd();
-
 
229692
      }
-
 
229693
      iprot.readStructEnd();
-
 
229694
      validate();
-
 
229695
    }
-
 
229696
 
-
 
229697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
229698
      validate();
-
 
229699
 
-
 
229700
      oprot.writeStructBegin(STRUCT_DESC);
-
 
229701
      if (this.statuses != null) {
-
 
229702
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
-
 
229703
        {
-
 
229704
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
-
 
229705
          for (OrderStatus _iter802 : this.statuses)
-
 
229706
          {
-
 
229707
            oprot.writeI32(_iter802.getValue());
-
 
229708
          }
-
 
229709
          oprot.writeListEnd();
-
 
229710
        }
-
 
229711
        oprot.writeFieldEnd();
-
 
229712
      }
-
 
229713
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
229714
      oprot.writeI64(this.offset);
-
 
229715
      oprot.writeFieldEnd();
-
 
229716
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
229717
      oprot.writeI64(this.limit);
-
 
229718
      oprot.writeFieldEnd();
-
 
229719
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
229720
      oprot.writeI64(this.warehouse_id);
-
 
229721
      oprot.writeFieldEnd();
-
 
229722
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
229723
      oprot.writeI64(this.source);
-
 
229724
      oprot.writeFieldEnd();
-
 
229725
      oprot.writeFieldStop();
-
 
229726
      oprot.writeStructEnd();
-
 
229727
    }
-
 
229728
 
-
 
229729
    @Override
-
 
229730
    public String toString() {
-
 
229731
      StringBuilder sb = new StringBuilder("getOrdersInBatchAsPromisedShipping_args(");
-
 
229732
      boolean first = true;
-
 
229733
 
-
 
229734
      sb.append("statuses:");
-
 
229735
      if (this.statuses == null) {
-
 
229736
        sb.append("null");
-
 
229737
      } else {
-
 
229738
        sb.append(this.statuses);
-
 
229739
      }
-
 
229740
      first = false;
-
 
229741
      if (!first) sb.append(", ");
-
 
229742
      sb.append("offset:");
-
 
229743
      sb.append(this.offset);
-
 
229744
      first = false;
-
 
229745
      if (!first) sb.append(", ");
-
 
229746
      sb.append("limit:");
-
 
229747
      sb.append(this.limit);
-
 
229748
      first = false;
-
 
229749
      if (!first) sb.append(", ");
-
 
229750
      sb.append("warehouse_id:");
-
 
229751
      sb.append(this.warehouse_id);
-
 
229752
      first = false;
-
 
229753
      if (!first) sb.append(", ");
-
 
229754
      sb.append("source:");
-
 
229755
      sb.append(this.source);
-
 
229756
      first = false;
-
 
229757
      sb.append(")");
-
 
229758
      return sb.toString();
-
 
229759
    }
-
 
229760
 
-
 
229761
    public void validate() throws org.apache.thrift.TException {
-
 
229762
      // check for required fields
-
 
229763
    }
-
 
229764
 
-
 
229765
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
229766
      try {
-
 
229767
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
229768
      } catch (org.apache.thrift.TException te) {
-
 
229769
        throw new java.io.IOException(te);
-
 
229770
      }
-
 
229771
    }
-
 
229772
 
-
 
229773
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
229774
      try {
-
 
229775
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
229776
      } catch (org.apache.thrift.TException te) {
-
 
229777
        throw new java.io.IOException(te);
-
 
229778
      }
-
 
229779
    }
-
 
229780
 
-
 
229781
  }
-
 
229782
 
-
 
229783
  public static class getOrdersInBatchAsPromisedShipping_result implements org.apache.thrift.TBase<getOrdersInBatchAsPromisedShipping_result, getOrdersInBatchAsPromisedShipping_result._Fields>, java.io.Serializable, Cloneable   {
-
 
229784
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatchAsPromisedShipping_result");
-
 
229785
 
-
 
229786
    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);
-
 
229787
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
229788
 
-
 
229789
    private List<Order> success; // required
-
 
229790
    private TransactionServiceException ex; // required
-
 
229791
 
-
 
229792
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
229793
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
229794
      SUCCESS((short)0, "success"),
-
 
229795
      EX((short)1, "ex");
-
 
229796
 
-
 
229797
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
229798
 
-
 
229799
      static {
-
 
229800
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
229801
          byName.put(field.getFieldName(), field);
-
 
229802
        }
-
 
229803
      }
-
 
229804
 
-
 
229805
      /**
-
 
229806
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
229807
       */
-
 
229808
      public static _Fields findByThriftId(int fieldId) {
-
 
229809
        switch(fieldId) {
-
 
229810
          case 0: // SUCCESS
-
 
229811
            return SUCCESS;
-
 
229812
          case 1: // EX
-
 
229813
            return EX;
-
 
229814
          default:
-
 
229815
            return null;
-
 
229816
        }
-
 
229817
      }
-
 
229818
 
-
 
229819
      /**
-
 
229820
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
229821
       * if it is not found.
-
 
229822
       */
-
 
229823
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
229824
        _Fields fields = findByThriftId(fieldId);
-
 
229825
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
229826
        return fields;
-
 
229827
      }
-
 
229828
 
-
 
229829
      /**
-
 
229830
       * Find the _Fields constant that matches name, or null if its not found.
-
 
229831
       */
-
 
229832
      public static _Fields findByName(String name) {
-
 
229833
        return byName.get(name);
-
 
229834
      }
-
 
229835
 
-
 
229836
      private final short _thriftId;
-
 
229837
      private final String _fieldName;
-
 
229838
 
-
 
229839
      _Fields(short thriftId, String fieldName) {
-
 
229840
        _thriftId = thriftId;
-
 
229841
        _fieldName = fieldName;
-
 
229842
      }
-
 
229843
 
-
 
229844
      public short getThriftFieldId() {
-
 
229845
        return _thriftId;
-
 
229846
      }
-
 
229847
 
-
 
229848
      public String getFieldName() {
-
 
229849
        return _fieldName;
-
 
229850
      }
-
 
229851
    }
-
 
229852
 
-
 
229853
    // isset id assignments
-
 
229854
 
-
 
229855
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
229856
    static {
-
 
229857
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
229858
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229859
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
229860
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
229861
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
229862
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
229863
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
229864
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatchAsPromisedShipping_result.class, metaDataMap);
-
 
229865
    }
-
 
229866
 
-
 
229867
    public getOrdersInBatchAsPromisedShipping_result() {
-
 
229868
    }
-
 
229869
 
-
 
229870
    public getOrdersInBatchAsPromisedShipping_result(
-
 
229871
      List<Order> success,
-
 
229872
      TransactionServiceException ex)
-
 
229873
    {
-
 
229874
      this();
-
 
229875
      this.success = success;
-
 
229876
      this.ex = ex;
-
 
229877
    }
-
 
229878
 
-
 
229879
    /**
-
 
229880
     * Performs a deep copy on <i>other</i>.
-
 
229881
     */
-
 
229882
    public getOrdersInBatchAsPromisedShipping_result(getOrdersInBatchAsPromisedShipping_result other) {
-
 
229883
      if (other.isSetSuccess()) {
-
 
229884
        List<Order> __this__success = new ArrayList<Order>();
-
 
229885
        for (Order other_element : other.success) {
-
 
229886
          __this__success.add(new Order(other_element));
-
 
229887
        }
-
 
229888
        this.success = __this__success;
-
 
229889
      }
-
 
229890
      if (other.isSetEx()) {
-
 
229891
        this.ex = new TransactionServiceException(other.ex);
-
 
229892
      }
-
 
229893
    }
-
 
229894
 
-
 
229895
    public getOrdersInBatchAsPromisedShipping_result deepCopy() {
-
 
229896
      return new getOrdersInBatchAsPromisedShipping_result(this);
-
 
229897
    }
-
 
229898
 
-
 
229899
    @Override
-
 
229900
    public void clear() {
-
 
229901
      this.success = null;
-
 
229902
      this.ex = null;
-
 
229903
    }
-
 
229904
 
-
 
229905
    public int getSuccessSize() {
-
 
229906
      return (this.success == null) ? 0 : this.success.size();
-
 
229907
    }
-
 
229908
 
-
 
229909
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
229910
      return (this.success == null) ? null : this.success.iterator();
-
 
229911
    }
-
 
229912
 
-
 
229913
    public void addToSuccess(Order elem) {
-
 
229914
      if (this.success == null) {
-
 
229915
        this.success = new ArrayList<Order>();
-
 
229916
      }
-
 
229917
      this.success.add(elem);
-
 
229918
    }
-
 
229919
 
-
 
229920
    public List<Order> getSuccess() {
-
 
229921
      return this.success;
-
 
229922
    }
-
 
229923
 
-
 
229924
    public void setSuccess(List<Order> success) {
-
 
229925
      this.success = success;
-
 
229926
    }
-
 
229927
 
-
 
229928
    public void unsetSuccess() {
-
 
229929
      this.success = null;
-
 
229930
    }
-
 
229931
 
-
 
229932
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
229933
    public boolean isSetSuccess() {
-
 
229934
      return this.success != null;
-
 
229935
    }
-
 
229936
 
-
 
229937
    public void setSuccessIsSet(boolean value) {
-
 
229938
      if (!value) {
-
 
229939
        this.success = null;
-
 
229940
      }
-
 
229941
    }
-
 
229942
 
-
 
229943
    public TransactionServiceException getEx() {
-
 
229944
      return this.ex;
-
 
229945
    }
-
 
229946
 
-
 
229947
    public void setEx(TransactionServiceException ex) {
-
 
229948
      this.ex = ex;
-
 
229949
    }
-
 
229950
 
-
 
229951
    public void unsetEx() {
-
 
229952
      this.ex = null;
-
 
229953
    }
-
 
229954
 
-
 
229955
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
229956
    public boolean isSetEx() {
-
 
229957
      return this.ex != null;
-
 
229958
    }
-
 
229959
 
-
 
229960
    public void setExIsSet(boolean value) {
-
 
229961
      if (!value) {
-
 
229962
        this.ex = null;
-
 
229963
      }
-
 
229964
    }
-
 
229965
 
-
 
229966
    public void setFieldValue(_Fields field, Object value) {
-
 
229967
      switch (field) {
-
 
229968
      case SUCCESS:
-
 
229969
        if (value == null) {
-
 
229970
          unsetSuccess();
-
 
229971
        } else {
-
 
229972
          setSuccess((List<Order>)value);
-
 
229973
        }
-
 
229974
        break;
-
 
229975
 
-
 
229976
      case EX:
-
 
229977
        if (value == null) {
-
 
229978
          unsetEx();
-
 
229979
        } else {
-
 
229980
          setEx((TransactionServiceException)value);
-
 
229981
        }
-
 
229982
        break;
-
 
229983
 
-
 
229984
      }
-
 
229985
    }
-
 
229986
 
-
 
229987
    public Object getFieldValue(_Fields field) {
-
 
229988
      switch (field) {
-
 
229989
      case SUCCESS:
-
 
229990
        return getSuccess();
-
 
229991
 
-
 
229992
      case EX:
-
 
229993
        return getEx();
-
 
229994
 
-
 
229995
      }
-
 
229996
      throw new IllegalStateException();
-
 
229997
    }
-
 
229998
 
-
 
229999
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
230000
    public boolean isSet(_Fields field) {
-
 
230001
      if (field == null) {
-
 
230002
        throw new IllegalArgumentException();
-
 
230003
      }
-
 
230004
 
-
 
230005
      switch (field) {
-
 
230006
      case SUCCESS:
-
 
230007
        return isSetSuccess();
-
 
230008
      case EX:
-
 
230009
        return isSetEx();
-
 
230010
      }
-
 
230011
      throw new IllegalStateException();
-
 
230012
    }
-
 
230013
 
-
 
230014
    @Override
-
 
230015
    public boolean equals(Object that) {
-
 
230016
      if (that == null)
-
 
230017
        return false;
-
 
230018
      if (that instanceof getOrdersInBatchAsPromisedShipping_result)
-
 
230019
        return this.equals((getOrdersInBatchAsPromisedShipping_result)that);
-
 
230020
      return false;
-
 
230021
    }
-
 
230022
 
-
 
230023
    public boolean equals(getOrdersInBatchAsPromisedShipping_result that) {
-
 
230024
      if (that == null)
-
 
230025
        return false;
-
 
230026
 
-
 
230027
      boolean this_present_success = true && this.isSetSuccess();
-
 
230028
      boolean that_present_success = true && that.isSetSuccess();
-
 
230029
      if (this_present_success || that_present_success) {
-
 
230030
        if (!(this_present_success && that_present_success))
-
 
230031
          return false;
-
 
230032
        if (!this.success.equals(that.success))
-
 
230033
          return false;
-
 
230034
      }
-
 
230035
 
-
 
230036
      boolean this_present_ex = true && this.isSetEx();
-
 
230037
      boolean that_present_ex = true && that.isSetEx();
-
 
230038
      if (this_present_ex || that_present_ex) {
-
 
230039
        if (!(this_present_ex && that_present_ex))
-
 
230040
          return false;
-
 
230041
        if (!this.ex.equals(that.ex))
-
 
230042
          return false;
-
 
230043
      }
-
 
230044
 
-
 
230045
      return true;
-
 
230046
    }
-
 
230047
 
-
 
230048
    @Override
-
 
230049
    public int hashCode() {
-
 
230050
      return 0;
-
 
230051
    }
-
 
230052
 
-
 
230053
    public int compareTo(getOrdersInBatchAsPromisedShipping_result other) {
-
 
230054
      if (!getClass().equals(other.getClass())) {
-
 
230055
        return getClass().getName().compareTo(other.getClass().getName());
-
 
230056
      }
-
 
230057
 
-
 
230058
      int lastComparison = 0;
-
 
230059
      getOrdersInBatchAsPromisedShipping_result typedOther = (getOrdersInBatchAsPromisedShipping_result)other;
-
 
230060
 
-
 
230061
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
230062
      if (lastComparison != 0) {
-
 
230063
        return lastComparison;
-
 
230064
      }
-
 
230065
      if (isSetSuccess()) {
-
 
230066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
230067
        if (lastComparison != 0) {
-
 
230068
          return lastComparison;
-
 
230069
        }
-
 
230070
      }
-
 
230071
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
230072
      if (lastComparison != 0) {
-
 
230073
        return lastComparison;
-
 
230074
      }
-
 
230075
      if (isSetEx()) {
-
 
230076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
230077
        if (lastComparison != 0) {
-
 
230078
          return lastComparison;
-
 
230079
        }
-
 
230080
      }
-
 
230081
      return 0;
-
 
230082
    }
-
 
230083
 
-
 
230084
    public _Fields fieldForId(int fieldId) {
-
 
230085
      return _Fields.findByThriftId(fieldId);
-
 
230086
    }
-
 
230087
 
-
 
230088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
230089
      org.apache.thrift.protocol.TField field;
-
 
230090
      iprot.readStructBegin();
-
 
230091
      while (true)
-
 
230092
      {
-
 
230093
        field = iprot.readFieldBegin();
-
 
230094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
230095
          break;
-
 
230096
        }
-
 
230097
        switch (field.id) {
-
 
230098
          case 0: // SUCCESS
-
 
230099
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
230100
              {
-
 
230101
                org.apache.thrift.protocol.TList _list803 = iprot.readListBegin();
-
 
230102
                this.success = new ArrayList<Order>(_list803.size);
-
 
230103
                for (int _i804 = 0; _i804 < _list803.size; ++_i804)
-
 
230104
                {
-
 
230105
                  Order _elem805; // required
-
 
230106
                  _elem805 = new Order();
-
 
230107
                  _elem805.read(iprot);
-
 
230108
                  this.success.add(_elem805);
-
 
230109
                }
-
 
230110
                iprot.readListEnd();
-
 
230111
              }
-
 
230112
            } else { 
-
 
230113
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230114
            }
-
 
230115
            break;
-
 
230116
          case 1: // EX
-
 
230117
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
230118
              this.ex = new TransactionServiceException();
-
 
230119
              this.ex.read(iprot);
-
 
230120
            } else { 
-
 
230121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230122
            }
-
 
230123
            break;
-
 
230124
          default:
-
 
230125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230126
        }
-
 
230127
        iprot.readFieldEnd();
-
 
230128
      }
-
 
230129
      iprot.readStructEnd();
-
 
230130
      validate();
-
 
230131
    }
-
 
230132
 
-
 
230133
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
230134
      oprot.writeStructBegin(STRUCT_DESC);
-
 
230135
 
-
 
230136
      if (this.isSetSuccess()) {
-
 
230137
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
230138
        {
-
 
230139
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
230140
          for (Order _iter806 : this.success)
-
 
230141
          {
-
 
230142
            _iter806.write(oprot);
-
 
230143
          }
-
 
230144
          oprot.writeListEnd();
-
 
230145
        }
-
 
230146
        oprot.writeFieldEnd();
-
 
230147
      } else if (this.isSetEx()) {
-
 
230148
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
230149
        this.ex.write(oprot);
-
 
230150
        oprot.writeFieldEnd();
-
 
230151
      }
-
 
230152
      oprot.writeFieldStop();
-
 
230153
      oprot.writeStructEnd();
-
 
230154
    }
-
 
230155
 
-
 
230156
    @Override
-
 
230157
    public String toString() {
-
 
230158
      StringBuilder sb = new StringBuilder("getOrdersInBatchAsPromisedShipping_result(");
-
 
230159
      boolean first = true;
-
 
230160
 
-
 
230161
      sb.append("success:");
-
 
230162
      if (this.success == null) {
-
 
230163
        sb.append("null");
-
 
230164
      } else {
-
 
230165
        sb.append(this.success);
-
 
230166
      }
-
 
230167
      first = false;
-
 
230168
      if (!first) sb.append(", ");
-
 
230169
      sb.append("ex:");
-
 
230170
      if (this.ex == null) {
-
 
230171
        sb.append("null");
228975
      } else {
230172
      } else {
228976
        sb.append(this.ex);
230173
        sb.append(this.ex);
228977
      }
230174
      }
228978
      first = false;
230175
      first = false;
228979
      sb.append(")");
230176
      sb.append(")");