Subversion Repositories SmartDukaan

Rev

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

Rev 20930 Rev 20954
Line 1254... Line 1254...
1254
 
1254
 
1255
    public long createPayment(long userId, long txnId, int gatewayId) throws org.apache.thrift.TException;
1255
    public long createPayment(long userId, long txnId, int gatewayId) throws org.apache.thrift.TException;
1256
 
1256
 
1257
    public double calculatePaymentAmount(long txnId) throws org.apache.thrift.TException;
1257
    public double calculatePaymentAmount(long txnId) throws org.apache.thrift.TException;
1258
 
1258
 
-
 
1259
    public List<Order> getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod) throws org.apache.thrift.TException;
-
 
1260
 
1259
  }
1261
  }
1260
 
1262
 
1261
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1263
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1262
 
1264
 
1263
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1265
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1876... Line 1878...
1876
 
1878
 
1877
    public void createPayment(long userId, long txnId, int gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
1879
    public void createPayment(long userId, long txnId, int gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
1878
 
1880
 
1879
    public void calculatePaymentAmount(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.calculatePaymentAmount_call> resultHandler) throws org.apache.thrift.TException;
1881
    public void calculatePaymentAmount(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.calculatePaymentAmount_call> resultHandler) throws org.apache.thrift.TException;
1880
 
1882
 
-
 
1883
    public void getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrdersForManifestGen_call> resultHandler) throws org.apache.thrift.TException;
-
 
1884
 
1881
  }
1885
  }
1882
 
1886
 
1883
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1887
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1884
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1888
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1885
      public Factory() {}
1889
      public Factory() {}
Line 9542... Line 9546...
9542
        return result.success;
9546
        return result.success;
9543
      }
9547
      }
9544
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "calculatePaymentAmount failed: unknown result");
9548
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "calculatePaymentAmount failed: unknown result");
9545
    }
9549
    }
9546
 
9550
 
-
 
9551
    public List<Order> getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod) throws org.apache.thrift.TException
-
 
9552
    {
-
 
9553
      send_getBilledOrdersForManifestGen(warehouse_id, logistics_provider_id, cod);
-
 
9554
      return recv_getBilledOrdersForManifestGen();
-
 
9555
    }
-
 
9556
 
-
 
9557
    public void send_getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod) throws org.apache.thrift.TException
-
 
9558
    {
-
 
9559
      getBilledOrdersForManifestGen_args args = new getBilledOrdersForManifestGen_args();
-
 
9560
      args.setWarehouse_id(warehouse_id);
-
 
9561
      args.setLogistics_provider_id(logistics_provider_id);
-
 
9562
      args.setCod(cod);
-
 
9563
      sendBase("getBilledOrdersForManifestGen", args);
-
 
9564
    }
-
 
9565
 
-
 
9566
    public List<Order> recv_getBilledOrdersForManifestGen() throws org.apache.thrift.TException
-
 
9567
    {
-
 
9568
      getBilledOrdersForManifestGen_result result = new getBilledOrdersForManifestGen_result();
-
 
9569
      receiveBase(result, "getBilledOrdersForManifestGen");
-
 
9570
      if (result.isSetSuccess()) {
-
 
9571
        return result.success;
-
 
9572
      }
-
 
9573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBilledOrdersForManifestGen failed: unknown result");
-
 
9574
    }
-
 
9575
 
9547
  }
9576
  }
9548
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9577
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9549
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9578
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9550
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9579
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9551
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9580
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 20321... Line 20350...
20321
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20350
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20322
        return (new Client(prot)).recv_calculatePaymentAmount();
20351
        return (new Client(prot)).recv_calculatePaymentAmount();
20323
      }
20352
      }
20324
    }
20353
    }
20325
 
20354
 
-
 
20355
    public void getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod, org.apache.thrift.async.AsyncMethodCallback<getBilledOrdersForManifestGen_call> resultHandler) throws org.apache.thrift.TException {
-
 
20356
      checkReady();
-
 
20357
      getBilledOrdersForManifestGen_call method_call = new getBilledOrdersForManifestGen_call(warehouse_id, logistics_provider_id, cod, resultHandler, this, ___protocolFactory, ___transport);
-
 
20358
      this.___currentMethod = method_call;
-
 
20359
      ___manager.call(method_call);
-
 
20360
    }
-
 
20361
 
-
 
20362
    public static class getBilledOrdersForManifestGen_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
20363
      private long warehouse_id;
-
 
20364
      private long logistics_provider_id;
-
 
20365
      private boolean cod;
-
 
20366
      public getBilledOrdersForManifestGen_call(long warehouse_id, long logistics_provider_id, boolean cod, org.apache.thrift.async.AsyncMethodCallback<getBilledOrdersForManifestGen_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 {
-
 
20367
        super(client, protocolFactory, transport, resultHandler, false);
-
 
20368
        this.warehouse_id = warehouse_id;
-
 
20369
        this.logistics_provider_id = logistics_provider_id;
-
 
20370
        this.cod = cod;
-
 
20371
      }
-
 
20372
 
-
 
20373
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
20374
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBilledOrdersForManifestGen", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
20375
        getBilledOrdersForManifestGen_args args = new getBilledOrdersForManifestGen_args();
-
 
20376
        args.setWarehouse_id(warehouse_id);
-
 
20377
        args.setLogistics_provider_id(logistics_provider_id);
-
 
20378
        args.setCod(cod);
-
 
20379
        args.write(prot);
-
 
20380
        prot.writeMessageEnd();
-
 
20381
      }
-
 
20382
 
-
 
20383
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
20384
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
20385
          throw new IllegalStateException("Method call not finished!");
-
 
20386
        }
-
 
20387
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
20388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
20389
        return (new Client(prot)).recv_getBilledOrdersForManifestGen();
-
 
20390
      }
-
 
20391
    }
-
 
20392
 
20326
  }
20393
  }
20327
 
20394
 
20328
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20395
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20329
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20396
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20330
    public Processor(I iface) {
20397
    public Processor(I iface) {
Line 20643... Line 20710...
20643
      processMap.put("addShipmentDelay", new addShipmentDelay());
20710
      processMap.put("addShipmentDelay", new addShipmentDelay());
20644
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20711
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20645
      processMap.put("addShipmentLogisticDetail", new addShipmentLogisticDetail());
20712
      processMap.put("addShipmentLogisticDetail", new addShipmentLogisticDetail());
20646
      processMap.put("createPayment", new createPayment());
20713
      processMap.put("createPayment", new createPayment());
20647
      processMap.put("calculatePaymentAmount", new calculatePaymentAmount());
20714
      processMap.put("calculatePaymentAmount", new calculatePaymentAmount());
-
 
20715
      processMap.put("getBilledOrdersForManifestGen", new getBilledOrdersForManifestGen());
20648
      return processMap;
20716
      return processMap;
20649
    }
20717
    }
20650
 
20718
 
20651
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20719
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20652
      public createTransaction() {
20720
      public createTransaction() {
Line 26228... Line 26296...
26228
        result.setSuccessIsSet(true);
26296
        result.setSuccessIsSet(true);
26229
        return result;
26297
        return result;
26230
      }
26298
      }
26231
    }
26299
    }
26232
 
26300
 
-
 
26301
    private static class getBilledOrdersForManifestGen<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBilledOrdersForManifestGen_args> {
-
 
26302
      public getBilledOrdersForManifestGen() {
-
 
26303
        super("getBilledOrdersForManifestGen");
-
 
26304
      }
-
 
26305
 
-
 
26306
      protected getBilledOrdersForManifestGen_args getEmptyArgsInstance() {
-
 
26307
        return new getBilledOrdersForManifestGen_args();
-
 
26308
      }
-
 
26309
 
-
 
26310
      protected getBilledOrdersForManifestGen_result getResult(I iface, getBilledOrdersForManifestGen_args args) throws org.apache.thrift.TException {
-
 
26311
        getBilledOrdersForManifestGen_result result = new getBilledOrdersForManifestGen_result();
-
 
26312
        result.success = iface.getBilledOrdersForManifestGen(args.warehouse_id, args.logistics_provider_id, args.cod);
-
 
26313
        return result;
-
 
26314
      }
-
 
26315
    }
-
 
26316
 
26233
  }
26317
  }
26234
 
26318
 
26235
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26319
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26237
 
26321
 
Line 246653... Line 246737...
246653
      first = false;
246737
      first = false;
246654
      sb.append(")");
246738
      sb.append(")");
246655
      return sb.toString();
246739
      return sb.toString();
246656
    }
246740
    }
246657
 
246741
 
-
 
246742
    public void validate() throws org.apache.thrift.TException {
-
 
246743
      // check for required fields
-
 
246744
    }
-
 
246745
 
-
 
246746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
246747
      try {
-
 
246748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
246749
      } catch (org.apache.thrift.TException te) {
-
 
246750
        throw new java.io.IOException(te);
-
 
246751
      }
-
 
246752
    }
-
 
246753
 
-
 
246754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
246755
      try {
-
 
246756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
246757
      } catch (org.apache.thrift.TException te) {
-
 
246758
        throw new java.io.IOException(te);
-
 
246759
      }
-
 
246760
    }
-
 
246761
 
-
 
246762
  }
-
 
246763
 
-
 
246764
  public static class getBilledOrdersForManifestGen_args implements org.apache.thrift.TBase<getBilledOrdersForManifestGen_args, getBilledOrdersForManifestGen_args._Fields>, java.io.Serializable, Cloneable   {
-
 
246765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBilledOrdersForManifestGen_args");
-
 
246766
 
-
 
246767
    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)1);
-
 
246768
    private static final org.apache.thrift.protocol.TField LOGISTICS_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logistics_provider_id", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
246769
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
246770
 
-
 
246771
    private long warehouse_id; // required
-
 
246772
    private long logistics_provider_id; // required
-
 
246773
    private boolean cod; // required
-
 
246774
 
-
 
246775
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
246776
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
246777
      WAREHOUSE_ID((short)1, "warehouse_id"),
-
 
246778
      LOGISTICS_PROVIDER_ID((short)2, "logistics_provider_id"),
-
 
246779
      COD((short)3, "cod");
-
 
246780
 
-
 
246781
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
246782
 
-
 
246783
      static {
-
 
246784
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
246785
          byName.put(field.getFieldName(), field);
-
 
246786
        }
-
 
246787
      }
-
 
246788
 
-
 
246789
      /**
-
 
246790
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
246791
       */
-
 
246792
      public static _Fields findByThriftId(int fieldId) {
-
 
246793
        switch(fieldId) {
-
 
246794
          case 1: // WAREHOUSE_ID
-
 
246795
            return WAREHOUSE_ID;
-
 
246796
          case 2: // LOGISTICS_PROVIDER_ID
-
 
246797
            return LOGISTICS_PROVIDER_ID;
-
 
246798
          case 3: // COD
-
 
246799
            return COD;
-
 
246800
          default:
-
 
246801
            return null;
-
 
246802
        }
-
 
246803
      }
-
 
246804
 
-
 
246805
      /**
-
 
246806
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
246807
       * if it is not found.
-
 
246808
       */
-
 
246809
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
246810
        _Fields fields = findByThriftId(fieldId);
-
 
246811
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
246812
        return fields;
-
 
246813
      }
-
 
246814
 
-
 
246815
      /**
-
 
246816
       * Find the _Fields constant that matches name, or null if its not found.
-
 
246817
       */
-
 
246818
      public static _Fields findByName(String name) {
-
 
246819
        return byName.get(name);
-
 
246820
      }
-
 
246821
 
-
 
246822
      private final short _thriftId;
-
 
246823
      private final String _fieldName;
-
 
246824
 
-
 
246825
      _Fields(short thriftId, String fieldName) {
-
 
246826
        _thriftId = thriftId;
-
 
246827
        _fieldName = fieldName;
-
 
246828
      }
-
 
246829
 
-
 
246830
      public short getThriftFieldId() {
-
 
246831
        return _thriftId;
-
 
246832
      }
-
 
246833
 
-
 
246834
      public String getFieldName() {
-
 
246835
        return _fieldName;
-
 
246836
      }
-
 
246837
    }
-
 
246838
 
-
 
246839
    // isset id assignments
-
 
246840
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
246841
    private static final int __LOGISTICS_PROVIDER_ID_ISSET_ID = 1;
-
 
246842
    private static final int __COD_ISSET_ID = 2;
-
 
246843
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
246844
 
-
 
246845
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
246846
    static {
-
 
246847
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
246848
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246849
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
246850
      tmpMap.put(_Fields.LOGISTICS_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("logistics_provider_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
246852
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
246854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
246855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBilledOrdersForManifestGen_args.class, metaDataMap);
-
 
246856
    }
-
 
246857
 
-
 
246858
    public getBilledOrdersForManifestGen_args() {
-
 
246859
    }
-
 
246860
 
-
 
246861
    public getBilledOrdersForManifestGen_args(
-
 
246862
      long warehouse_id,
-
 
246863
      long logistics_provider_id,
-
 
246864
      boolean cod)
-
 
246865
    {
-
 
246866
      this();
-
 
246867
      this.warehouse_id = warehouse_id;
-
 
246868
      setWarehouse_idIsSet(true);
-
 
246869
      this.logistics_provider_id = logistics_provider_id;
-
 
246870
      setLogistics_provider_idIsSet(true);
-
 
246871
      this.cod = cod;
-
 
246872
      setCodIsSet(true);
-
 
246873
    }
-
 
246874
 
-
 
246875
    /**
-
 
246876
     * Performs a deep copy on <i>other</i>.
-
 
246877
     */
-
 
246878
    public getBilledOrdersForManifestGen_args(getBilledOrdersForManifestGen_args other) {
-
 
246879
      __isset_bit_vector.clear();
-
 
246880
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
246881
      this.warehouse_id = other.warehouse_id;
-
 
246882
      this.logistics_provider_id = other.logistics_provider_id;
-
 
246883
      this.cod = other.cod;
-
 
246884
    }
-
 
246885
 
-
 
246886
    public getBilledOrdersForManifestGen_args deepCopy() {
-
 
246887
      return new getBilledOrdersForManifestGen_args(this);
-
 
246888
    }
-
 
246889
 
-
 
246890
    @Override
-
 
246891
    public void clear() {
-
 
246892
      setWarehouse_idIsSet(false);
-
 
246893
      this.warehouse_id = 0;
-
 
246894
      setLogistics_provider_idIsSet(false);
-
 
246895
      this.logistics_provider_id = 0;
-
 
246896
      setCodIsSet(false);
-
 
246897
      this.cod = false;
-
 
246898
    }
-
 
246899
 
-
 
246900
    public long getWarehouse_id() {
-
 
246901
      return this.warehouse_id;
-
 
246902
    }
-
 
246903
 
-
 
246904
    public void setWarehouse_id(long warehouse_id) {
-
 
246905
      this.warehouse_id = warehouse_id;
-
 
246906
      setWarehouse_idIsSet(true);
-
 
246907
    }
-
 
246908
 
-
 
246909
    public void unsetWarehouse_id() {
-
 
246910
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
246911
    }
-
 
246912
 
-
 
246913
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
246914
    public boolean isSetWarehouse_id() {
-
 
246915
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
246916
    }
-
 
246917
 
-
 
246918
    public void setWarehouse_idIsSet(boolean value) {
-
 
246919
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
246920
    }
-
 
246921
 
-
 
246922
    public long getLogistics_provider_id() {
-
 
246923
      return this.logistics_provider_id;
-
 
246924
    }
-
 
246925
 
-
 
246926
    public void setLogistics_provider_id(long logistics_provider_id) {
-
 
246927
      this.logistics_provider_id = logistics_provider_id;
-
 
246928
      setLogistics_provider_idIsSet(true);
-
 
246929
    }
-
 
246930
 
-
 
246931
    public void unsetLogistics_provider_id() {
-
 
246932
      __isset_bit_vector.clear(__LOGISTICS_PROVIDER_ID_ISSET_ID);
-
 
246933
    }
-
 
246934
 
-
 
246935
    /** Returns true if field logistics_provider_id is set (has been assigned a value) and false otherwise */
-
 
246936
    public boolean isSetLogistics_provider_id() {
-
 
246937
      return __isset_bit_vector.get(__LOGISTICS_PROVIDER_ID_ISSET_ID);
-
 
246938
    }
-
 
246939
 
-
 
246940
    public void setLogistics_provider_idIsSet(boolean value) {
-
 
246941
      __isset_bit_vector.set(__LOGISTICS_PROVIDER_ID_ISSET_ID, value);
-
 
246942
    }
-
 
246943
 
-
 
246944
    public boolean isCod() {
-
 
246945
      return this.cod;
-
 
246946
    }
-
 
246947
 
-
 
246948
    public void setCod(boolean cod) {
-
 
246949
      this.cod = cod;
-
 
246950
      setCodIsSet(true);
-
 
246951
    }
-
 
246952
 
-
 
246953
    public void unsetCod() {
-
 
246954
      __isset_bit_vector.clear(__COD_ISSET_ID);
-
 
246955
    }
-
 
246956
 
-
 
246957
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
-
 
246958
    public boolean isSetCod() {
-
 
246959
      return __isset_bit_vector.get(__COD_ISSET_ID);
-
 
246960
    }
-
 
246961
 
-
 
246962
    public void setCodIsSet(boolean value) {
-
 
246963
      __isset_bit_vector.set(__COD_ISSET_ID, value);
-
 
246964
    }
-
 
246965
 
-
 
246966
    public void setFieldValue(_Fields field, Object value) {
-
 
246967
      switch (field) {
-
 
246968
      case WAREHOUSE_ID:
-
 
246969
        if (value == null) {
-
 
246970
          unsetWarehouse_id();
-
 
246971
        } else {
-
 
246972
          setWarehouse_id((Long)value);
-
 
246973
        }
-
 
246974
        break;
-
 
246975
 
-
 
246976
      case LOGISTICS_PROVIDER_ID:
-
 
246977
        if (value == null) {
-
 
246978
          unsetLogistics_provider_id();
-
 
246979
        } else {
-
 
246980
          setLogistics_provider_id((Long)value);
-
 
246981
        }
-
 
246982
        break;
-
 
246983
 
-
 
246984
      case COD:
-
 
246985
        if (value == null) {
-
 
246986
          unsetCod();
-
 
246987
        } else {
-
 
246988
          setCod((Boolean)value);
-
 
246989
        }
-
 
246990
        break;
-
 
246991
 
-
 
246992
      }
-
 
246993
    }
-
 
246994
 
-
 
246995
    public Object getFieldValue(_Fields field) {
-
 
246996
      switch (field) {
-
 
246997
      case WAREHOUSE_ID:
-
 
246998
        return Long.valueOf(getWarehouse_id());
-
 
246999
 
-
 
247000
      case LOGISTICS_PROVIDER_ID:
-
 
247001
        return Long.valueOf(getLogistics_provider_id());
-
 
247002
 
-
 
247003
      case COD:
-
 
247004
        return Boolean.valueOf(isCod());
-
 
247005
 
-
 
247006
      }
-
 
247007
      throw new IllegalStateException();
-
 
247008
    }
-
 
247009
 
-
 
247010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
247011
    public boolean isSet(_Fields field) {
-
 
247012
      if (field == null) {
-
 
247013
        throw new IllegalArgumentException();
-
 
247014
      }
-
 
247015
 
-
 
247016
      switch (field) {
-
 
247017
      case WAREHOUSE_ID:
-
 
247018
        return isSetWarehouse_id();
-
 
247019
      case LOGISTICS_PROVIDER_ID:
-
 
247020
        return isSetLogistics_provider_id();
-
 
247021
      case COD:
-
 
247022
        return isSetCod();
-
 
247023
      }
-
 
247024
      throw new IllegalStateException();
-
 
247025
    }
-
 
247026
 
-
 
247027
    @Override
-
 
247028
    public boolean equals(Object that) {
-
 
247029
      if (that == null)
-
 
247030
        return false;
-
 
247031
      if (that instanceof getBilledOrdersForManifestGen_args)
-
 
247032
        return this.equals((getBilledOrdersForManifestGen_args)that);
-
 
247033
      return false;
-
 
247034
    }
-
 
247035
 
-
 
247036
    public boolean equals(getBilledOrdersForManifestGen_args that) {
-
 
247037
      if (that == null)
-
 
247038
        return false;
-
 
247039
 
-
 
247040
      boolean this_present_warehouse_id = true;
-
 
247041
      boolean that_present_warehouse_id = true;
-
 
247042
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
247043
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
247044
          return false;
-
 
247045
        if (this.warehouse_id != that.warehouse_id)
-
 
247046
          return false;
-
 
247047
      }
-
 
247048
 
-
 
247049
      boolean this_present_logistics_provider_id = true;
-
 
247050
      boolean that_present_logistics_provider_id = true;
-
 
247051
      if (this_present_logistics_provider_id || that_present_logistics_provider_id) {
-
 
247052
        if (!(this_present_logistics_provider_id && that_present_logistics_provider_id))
-
 
247053
          return false;
-
 
247054
        if (this.logistics_provider_id != that.logistics_provider_id)
-
 
247055
          return false;
-
 
247056
      }
-
 
247057
 
-
 
247058
      boolean this_present_cod = true;
-
 
247059
      boolean that_present_cod = true;
-
 
247060
      if (this_present_cod || that_present_cod) {
-
 
247061
        if (!(this_present_cod && that_present_cod))
-
 
247062
          return false;
-
 
247063
        if (this.cod != that.cod)
-
 
247064
          return false;
-
 
247065
      }
-
 
247066
 
-
 
247067
      return true;
-
 
247068
    }
-
 
247069
 
-
 
247070
    @Override
-
 
247071
    public int hashCode() {
-
 
247072
      return 0;
-
 
247073
    }
-
 
247074
 
-
 
247075
    public int compareTo(getBilledOrdersForManifestGen_args other) {
-
 
247076
      if (!getClass().equals(other.getClass())) {
-
 
247077
        return getClass().getName().compareTo(other.getClass().getName());
-
 
247078
      }
-
 
247079
 
-
 
247080
      int lastComparison = 0;
-
 
247081
      getBilledOrdersForManifestGen_args typedOther = (getBilledOrdersForManifestGen_args)other;
-
 
247082
 
-
 
247083
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
247084
      if (lastComparison != 0) {
-
 
247085
        return lastComparison;
-
 
247086
      }
-
 
247087
      if (isSetWarehouse_id()) {
-
 
247088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
247089
        if (lastComparison != 0) {
-
 
247090
          return lastComparison;
-
 
247091
        }
-
 
247092
      }
-
 
247093
      lastComparison = Boolean.valueOf(isSetLogistics_provider_id()).compareTo(typedOther.isSetLogistics_provider_id());
-
 
247094
      if (lastComparison != 0) {
-
 
247095
        return lastComparison;
-
 
247096
      }
-
 
247097
      if (isSetLogistics_provider_id()) {
-
 
247098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logistics_provider_id, typedOther.logistics_provider_id);
-
 
247099
        if (lastComparison != 0) {
-
 
247100
          return lastComparison;
-
 
247101
        }
-
 
247102
      }
-
 
247103
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
-
 
247104
      if (lastComparison != 0) {
-
 
247105
        return lastComparison;
-
 
247106
      }
-
 
247107
      if (isSetCod()) {
-
 
247108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
-
 
247109
        if (lastComparison != 0) {
-
 
247110
          return lastComparison;
-
 
247111
        }
-
 
247112
      }
-
 
247113
      return 0;
-
 
247114
    }
-
 
247115
 
-
 
247116
    public _Fields fieldForId(int fieldId) {
-
 
247117
      return _Fields.findByThriftId(fieldId);
-
 
247118
    }
-
 
247119
 
-
 
247120
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
247121
      org.apache.thrift.protocol.TField field;
-
 
247122
      iprot.readStructBegin();
-
 
247123
      while (true)
-
 
247124
      {
-
 
247125
        field = iprot.readFieldBegin();
-
 
247126
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
247127
          break;
-
 
247128
        }
-
 
247129
        switch (field.id) {
-
 
247130
          case 1: // WAREHOUSE_ID
-
 
247131
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
247132
              this.warehouse_id = iprot.readI64();
-
 
247133
              setWarehouse_idIsSet(true);
-
 
247134
            } else { 
-
 
247135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247136
            }
-
 
247137
            break;
-
 
247138
          case 2: // LOGISTICS_PROVIDER_ID
-
 
247139
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
247140
              this.logistics_provider_id = iprot.readI64();
-
 
247141
              setLogistics_provider_idIsSet(true);
-
 
247142
            } else { 
-
 
247143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247144
            }
-
 
247145
            break;
-
 
247146
          case 3: // COD
-
 
247147
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
247148
              this.cod = iprot.readBool();
-
 
247149
              setCodIsSet(true);
-
 
247150
            } else { 
-
 
247151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247152
            }
-
 
247153
            break;
-
 
247154
          default:
-
 
247155
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247156
        }
-
 
247157
        iprot.readFieldEnd();
-
 
247158
      }
-
 
247159
      iprot.readStructEnd();
-
 
247160
      validate();
-
 
247161
    }
-
 
247162
 
-
 
247163
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
247164
      validate();
-
 
247165
 
-
 
247166
      oprot.writeStructBegin(STRUCT_DESC);
-
 
247167
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
247168
      oprot.writeI64(this.warehouse_id);
-
 
247169
      oprot.writeFieldEnd();
-
 
247170
      oprot.writeFieldBegin(LOGISTICS_PROVIDER_ID_FIELD_DESC);
-
 
247171
      oprot.writeI64(this.logistics_provider_id);
-
 
247172
      oprot.writeFieldEnd();
-
 
247173
      oprot.writeFieldBegin(COD_FIELD_DESC);
-
 
247174
      oprot.writeBool(this.cod);
-
 
247175
      oprot.writeFieldEnd();
-
 
247176
      oprot.writeFieldStop();
-
 
247177
      oprot.writeStructEnd();
-
 
247178
    }
-
 
247179
 
-
 
247180
    @Override
-
 
247181
    public String toString() {
-
 
247182
      StringBuilder sb = new StringBuilder("getBilledOrdersForManifestGen_args(");
-
 
247183
      boolean first = true;
-
 
247184
 
-
 
247185
      sb.append("warehouse_id:");
-
 
247186
      sb.append(this.warehouse_id);
-
 
247187
      first = false;
-
 
247188
      if (!first) sb.append(", ");
-
 
247189
      sb.append("logistics_provider_id:");
-
 
247190
      sb.append(this.logistics_provider_id);
-
 
247191
      first = false;
-
 
247192
      if (!first) sb.append(", ");
-
 
247193
      sb.append("cod:");
-
 
247194
      sb.append(this.cod);
-
 
247195
      first = false;
-
 
247196
      sb.append(")");
-
 
247197
      return sb.toString();
-
 
247198
    }
-
 
247199
 
-
 
247200
    public void validate() throws org.apache.thrift.TException {
-
 
247201
      // check for required fields
-
 
247202
    }
-
 
247203
 
-
 
247204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
247205
      try {
-
 
247206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
247207
      } catch (org.apache.thrift.TException te) {
-
 
247208
        throw new java.io.IOException(te);
-
 
247209
      }
-
 
247210
    }
-
 
247211
 
-
 
247212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
247213
      try {
-
 
247214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
247215
        __isset_bit_vector = new BitSet(1);
-
 
247216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
247217
      } catch (org.apache.thrift.TException te) {
-
 
247218
        throw new java.io.IOException(te);
-
 
247219
      }
-
 
247220
    }
-
 
247221
 
-
 
247222
  }
-
 
247223
 
-
 
247224
  public static class getBilledOrdersForManifestGen_result implements org.apache.thrift.TBase<getBilledOrdersForManifestGen_result, getBilledOrdersForManifestGen_result._Fields>, java.io.Serializable, Cloneable   {
-
 
247225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBilledOrdersForManifestGen_result");
-
 
247226
 
-
 
247227
    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);
-
 
247228
 
-
 
247229
    private List<Order> success; // required
-
 
247230
 
-
 
247231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
247232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
247233
      SUCCESS((short)0, "success");
-
 
247234
 
-
 
247235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
247236
 
-
 
247237
      static {
-
 
247238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
247239
          byName.put(field.getFieldName(), field);
-
 
247240
        }
-
 
247241
      }
-
 
247242
 
-
 
247243
      /**
-
 
247244
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
247245
       */
-
 
247246
      public static _Fields findByThriftId(int fieldId) {
-
 
247247
        switch(fieldId) {
-
 
247248
          case 0: // SUCCESS
-
 
247249
            return SUCCESS;
-
 
247250
          default:
-
 
247251
            return null;
-
 
247252
        }
-
 
247253
      }
-
 
247254
 
-
 
247255
      /**
-
 
247256
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
247257
       * if it is not found.
-
 
247258
       */
-
 
247259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
247260
        _Fields fields = findByThriftId(fieldId);
-
 
247261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
247262
        return fields;
-
 
247263
      }
-
 
247264
 
-
 
247265
      /**
-
 
247266
       * Find the _Fields constant that matches name, or null if its not found.
-
 
247267
       */
-
 
247268
      public static _Fields findByName(String name) {
-
 
247269
        return byName.get(name);
-
 
247270
      }
-
 
247271
 
-
 
247272
      private final short _thriftId;
-
 
247273
      private final String _fieldName;
-
 
247274
 
-
 
247275
      _Fields(short thriftId, String fieldName) {
-
 
247276
        _thriftId = thriftId;
-
 
247277
        _fieldName = fieldName;
-
 
247278
      }
-
 
247279
 
-
 
247280
      public short getThriftFieldId() {
-
 
247281
        return _thriftId;
-
 
247282
      }
-
 
247283
 
-
 
247284
      public String getFieldName() {
-
 
247285
        return _fieldName;
-
 
247286
      }
-
 
247287
    }
-
 
247288
 
-
 
247289
    // isset id assignments
-
 
247290
 
-
 
247291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
247292
    static {
-
 
247293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
247294
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
247295
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
247296
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
247297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
247298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBilledOrdersForManifestGen_result.class, metaDataMap);
-
 
247299
    }
-
 
247300
 
-
 
247301
    public getBilledOrdersForManifestGen_result() {
-
 
247302
    }
-
 
247303
 
-
 
247304
    public getBilledOrdersForManifestGen_result(
-
 
247305
      List<Order> success)
-
 
247306
    {
-
 
247307
      this();
-
 
247308
      this.success = success;
-
 
247309
    }
-
 
247310
 
-
 
247311
    /**
-
 
247312
     * Performs a deep copy on <i>other</i>.
-
 
247313
     */
-
 
247314
    public getBilledOrdersForManifestGen_result(getBilledOrdersForManifestGen_result other) {
-
 
247315
      if (other.isSetSuccess()) {
-
 
247316
        List<Order> __this__success = new ArrayList<Order>();
-
 
247317
        for (Order other_element : other.success) {
-
 
247318
          __this__success.add(new Order(other_element));
-
 
247319
        }
-
 
247320
        this.success = __this__success;
-
 
247321
      }
-
 
247322
    }
-
 
247323
 
-
 
247324
    public getBilledOrdersForManifestGen_result deepCopy() {
-
 
247325
      return new getBilledOrdersForManifestGen_result(this);
-
 
247326
    }
-
 
247327
 
-
 
247328
    @Override
-
 
247329
    public void clear() {
-
 
247330
      this.success = null;
-
 
247331
    }
-
 
247332
 
-
 
247333
    public int getSuccessSize() {
-
 
247334
      return (this.success == null) ? 0 : this.success.size();
-
 
247335
    }
-
 
247336
 
-
 
247337
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
247338
      return (this.success == null) ? null : this.success.iterator();
-
 
247339
    }
-
 
247340
 
-
 
247341
    public void addToSuccess(Order elem) {
-
 
247342
      if (this.success == null) {
-
 
247343
        this.success = new ArrayList<Order>();
-
 
247344
      }
-
 
247345
      this.success.add(elem);
-
 
247346
    }
-
 
247347
 
-
 
247348
    public List<Order> getSuccess() {
-
 
247349
      return this.success;
-
 
247350
    }
-
 
247351
 
-
 
247352
    public void setSuccess(List<Order> success) {
-
 
247353
      this.success = success;
-
 
247354
    }
-
 
247355
 
-
 
247356
    public void unsetSuccess() {
-
 
247357
      this.success = null;
-
 
247358
    }
-
 
247359
 
-
 
247360
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
247361
    public boolean isSetSuccess() {
-
 
247362
      return this.success != null;
-
 
247363
    }
-
 
247364
 
-
 
247365
    public void setSuccessIsSet(boolean value) {
-
 
247366
      if (!value) {
-
 
247367
        this.success = null;
-
 
247368
      }
-
 
247369
    }
-
 
247370
 
-
 
247371
    public void setFieldValue(_Fields field, Object value) {
-
 
247372
      switch (field) {
-
 
247373
      case SUCCESS:
-
 
247374
        if (value == null) {
-
 
247375
          unsetSuccess();
-
 
247376
        } else {
-
 
247377
          setSuccess((List<Order>)value);
-
 
247378
        }
-
 
247379
        break;
-
 
247380
 
-
 
247381
      }
-
 
247382
    }
-
 
247383
 
-
 
247384
    public Object getFieldValue(_Fields field) {
-
 
247385
      switch (field) {
-
 
247386
      case SUCCESS:
-
 
247387
        return getSuccess();
-
 
247388
 
-
 
247389
      }
-
 
247390
      throw new IllegalStateException();
-
 
247391
    }
-
 
247392
 
-
 
247393
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
247394
    public boolean isSet(_Fields field) {
-
 
247395
      if (field == null) {
-
 
247396
        throw new IllegalArgumentException();
-
 
247397
      }
-
 
247398
 
-
 
247399
      switch (field) {
-
 
247400
      case SUCCESS:
-
 
247401
        return isSetSuccess();
-
 
247402
      }
-
 
247403
      throw new IllegalStateException();
-
 
247404
    }
-
 
247405
 
-
 
247406
    @Override
-
 
247407
    public boolean equals(Object that) {
-
 
247408
      if (that == null)
-
 
247409
        return false;
-
 
247410
      if (that instanceof getBilledOrdersForManifestGen_result)
-
 
247411
        return this.equals((getBilledOrdersForManifestGen_result)that);
-
 
247412
      return false;
-
 
247413
    }
-
 
247414
 
-
 
247415
    public boolean equals(getBilledOrdersForManifestGen_result that) {
-
 
247416
      if (that == null)
-
 
247417
        return false;
-
 
247418
 
-
 
247419
      boolean this_present_success = true && this.isSetSuccess();
-
 
247420
      boolean that_present_success = true && that.isSetSuccess();
-
 
247421
      if (this_present_success || that_present_success) {
-
 
247422
        if (!(this_present_success && that_present_success))
-
 
247423
          return false;
-
 
247424
        if (!this.success.equals(that.success))
-
 
247425
          return false;
-
 
247426
      }
-
 
247427
 
-
 
247428
      return true;
-
 
247429
    }
-
 
247430
 
-
 
247431
    @Override
-
 
247432
    public int hashCode() {
-
 
247433
      return 0;
-
 
247434
    }
-
 
247435
 
-
 
247436
    public int compareTo(getBilledOrdersForManifestGen_result other) {
-
 
247437
      if (!getClass().equals(other.getClass())) {
-
 
247438
        return getClass().getName().compareTo(other.getClass().getName());
-
 
247439
      }
-
 
247440
 
-
 
247441
      int lastComparison = 0;
-
 
247442
      getBilledOrdersForManifestGen_result typedOther = (getBilledOrdersForManifestGen_result)other;
-
 
247443
 
-
 
247444
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
247445
      if (lastComparison != 0) {
-
 
247446
        return lastComparison;
-
 
247447
      }
-
 
247448
      if (isSetSuccess()) {
-
 
247449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
247450
        if (lastComparison != 0) {
-
 
247451
          return lastComparison;
-
 
247452
        }
-
 
247453
      }
-
 
247454
      return 0;
-
 
247455
    }
-
 
247456
 
-
 
247457
    public _Fields fieldForId(int fieldId) {
-
 
247458
      return _Fields.findByThriftId(fieldId);
-
 
247459
    }
-
 
247460
 
-
 
247461
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
247462
      org.apache.thrift.protocol.TField field;
-
 
247463
      iprot.readStructBegin();
-
 
247464
      while (true)
-
 
247465
      {
-
 
247466
        field = iprot.readFieldBegin();
-
 
247467
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
247468
          break;
-
 
247469
        }
-
 
247470
        switch (field.id) {
-
 
247471
          case 0: // SUCCESS
-
 
247472
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
247473
              {
-
 
247474
                org.apache.thrift.protocol.TList _list853 = iprot.readListBegin();
-
 
247475
                this.success = new ArrayList<Order>(_list853.size);
-
 
247476
                for (int _i854 = 0; _i854 < _list853.size; ++_i854)
-
 
247477
                {
-
 
247478
                  Order _elem855; // required
-
 
247479
                  _elem855 = new Order();
-
 
247480
                  _elem855.read(iprot);
-
 
247481
                  this.success.add(_elem855);
-
 
247482
                }
-
 
247483
                iprot.readListEnd();
-
 
247484
              }
-
 
247485
            } else { 
-
 
247486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247487
            }
-
 
247488
            break;
-
 
247489
          default:
-
 
247490
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247491
        }
-
 
247492
        iprot.readFieldEnd();
-
 
247493
      }
-
 
247494
      iprot.readStructEnd();
-
 
247495
      validate();
-
 
247496
    }
-
 
247497
 
-
 
247498
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
247499
      oprot.writeStructBegin(STRUCT_DESC);
-
 
247500
 
-
 
247501
      if (this.isSetSuccess()) {
-
 
247502
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
247503
        {
-
 
247504
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
247505
          for (Order _iter856 : this.success)
-
 
247506
          {
-
 
247507
            _iter856.write(oprot);
-
 
247508
          }
-
 
247509
          oprot.writeListEnd();
-
 
247510
        }
-
 
247511
        oprot.writeFieldEnd();
-
 
247512
      }
-
 
247513
      oprot.writeFieldStop();
-
 
247514
      oprot.writeStructEnd();
-
 
247515
    }
-
 
247516
 
-
 
247517
    @Override
-
 
247518
    public String toString() {
-
 
247519
      StringBuilder sb = new StringBuilder("getBilledOrdersForManifestGen_result(");
-
 
247520
      boolean first = true;
-
 
247521
 
-
 
247522
      sb.append("success:");
-
 
247523
      if (this.success == null) {
-
 
247524
        sb.append("null");
-
 
247525
      } else {
-
 
247526
        sb.append(this.success);
-
 
247527
      }
-
 
247528
      first = false;
-
 
247529
      sb.append(")");
-
 
247530
      return sb.toString();
-
 
247531
    }
-
 
247532
 
246658
    public void validate() throws org.apache.thrift.TException {
247533
    public void validate() throws org.apache.thrift.TException {
246659
      // check for required fields
247534
      // check for required fields
246660
    }
247535
    }
246661
 
247536
 
246662
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
247537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {