Subversion Repositories SmartDukaan

Rev

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

Rev 3469 Rev 3553
Line 433... Line 433...
433
     * @param orderId
433
     * @param orderId
434
     * @param warehouseId
434
     * @param warehouseId
435
     */
435
     */
436
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
436
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
437
 
437
 
-
 
438
    /**
-
 
439
     * Adds the given delay reason to the given order.
-
 
440
     * Raises an exception if no order with the given id can be found.
-
 
441
     * 
-
 
442
     * @param orderId
-
 
443
     * @param delayReason
-
 
444
     */
-
 
445
    public boolean addDelayReason(long orderId, DelayReason delayReason) throws TransactionServiceException, org.apache.thrift.TException;
-
 
446
 
438
  }
447
  }
439
 
448
 
440
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
449
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
441
 
450
 
442
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
451
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 543... Line 552...
543
 
552
 
544
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
553
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
545
 
554
 
546
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
555
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
547
 
556
 
-
 
557
    public void addDelayReason(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;
-
 
558
 
548
  }
559
  }
549
 
560
 
550
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
561
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
551
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
562
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
552
      public Factory() {}
563
      public Factory() {}
Line 1950... Line 1961...
1950
        throw result.ex;
1961
        throw result.ex;
1951
      }
1962
      }
1952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
1963
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
1953
    }
1964
    }
1954
 
1965
 
-
 
1966
    public boolean addDelayReason(long orderId, DelayReason delayReason) throws TransactionServiceException, org.apache.thrift.TException
-
 
1967
    {
-
 
1968
      send_addDelayReason(orderId, delayReason);
-
 
1969
      return recv_addDelayReason();
-
 
1970
    }
-
 
1971
 
-
 
1972
    public void send_addDelayReason(long orderId, DelayReason delayReason) throws org.apache.thrift.TException
-
 
1973
    {
-
 
1974
      addDelayReason_args args = new addDelayReason_args();
-
 
1975
      args.setOrderId(orderId);
-
 
1976
      args.setDelayReason(delayReason);
-
 
1977
      sendBase("addDelayReason", args);
-
 
1978
    }
-
 
1979
 
-
 
1980
    public boolean recv_addDelayReason() throws TransactionServiceException, org.apache.thrift.TException
-
 
1981
    {
-
 
1982
      addDelayReason_result result = new addDelayReason_result();
-
 
1983
      receiveBase(result, "addDelayReason");
-
 
1984
      if (result.isSetSuccess()) {
-
 
1985
        return result.success;
-
 
1986
      }
-
 
1987
      if (result.ex != null) {
-
 
1988
        throw result.ex;
-
 
1989
      }
-
 
1990
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");
-
 
1991
    }
-
 
1992
 
1955
  }
1993
  }
1956
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1994
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1957
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1995
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1958
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1996
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1959
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1997
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3811... Line 3849...
3811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3812
        return (new Client(prot)).recv_shiftToWarehouse();
3850
        return (new Client(prot)).recv_shiftToWarehouse();
3813
      }
3851
      }
3814
    }
3852
    }
3815
 
3853
 
-
 
3854
    public void addDelayReason(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler) throws org.apache.thrift.TException {
-
 
3855
      checkReady();
-
 
3856
      addDelayReason_call method_call = new addDelayReason_call(orderId, delayReason, resultHandler, this, ___protocolFactory, ___transport);
-
 
3857
      this.___currentMethod = method_call;
-
 
3858
      ___manager.call(method_call);
-
 
3859
    }
-
 
3860
 
-
 
3861
    public static class addDelayReason_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3862
      private long orderId;
-
 
3863
      private DelayReason delayReason;
-
 
3864
      public addDelayReason_call(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_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 {
-
 
3865
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3866
        this.orderId = orderId;
-
 
3867
        this.delayReason = delayReason;
-
 
3868
      }
-
 
3869
 
-
 
3870
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3871
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDelayReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3872
        addDelayReason_args args = new addDelayReason_args();
-
 
3873
        args.setOrderId(orderId);
-
 
3874
        args.setDelayReason(delayReason);
-
 
3875
        args.write(prot);
-
 
3876
        prot.writeMessageEnd();
-
 
3877
      }
-
 
3878
 
-
 
3879
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
3880
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3881
          throw new IllegalStateException("Method call not finished!");
-
 
3882
        }
-
 
3883
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3885
        return (new Client(prot)).recv_addDelayReason();
-
 
3886
      }
-
 
3887
    }
-
 
3888
 
3816
  }
3889
  }
3817
 
3890
 
3818
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3891
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3819
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3892
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3820
    public Processor(I iface) {
3893
    public Processor(I iface) {
Line 3877... Line 3950...
3877
      processMap.put("processReturn", new processReturn());
3950
      processMap.put("processReturn", new processReturn());
3878
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
3951
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
3879
      processMap.put("updateWeight", new updateWeight());
3952
      processMap.put("updateWeight", new updateWeight());
3880
      processMap.put("changeItem", new changeItem());
3953
      processMap.put("changeItem", new changeItem());
3881
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
3954
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
-
 
3955
      processMap.put("addDelayReason", new addDelayReason());
3882
      return processMap;
3956
      return processMap;
3883
    }
3957
    }
3884
 
3958
 
3885
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
3959
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
3886
      public createTransaction() {
3960
      public createTransaction() {
Line 4926... Line 5000...
4926
        }
5000
        }
4927
        return result;
5001
        return result;
4928
      }
5002
      }
4929
    }
5003
    }
4930
 
5004
 
-
 
5005
    private static class addDelayReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addDelayReason_args> {
-
 
5006
      public addDelayReason() {
-
 
5007
        super("addDelayReason");
-
 
5008
      }
-
 
5009
 
-
 
5010
      protected addDelayReason_args getEmptyArgsInstance() {
-
 
5011
        return new addDelayReason_args();
-
 
5012
      }
-
 
5013
 
-
 
5014
      protected addDelayReason_result getResult(I iface, addDelayReason_args args) throws org.apache.thrift.TException {
-
 
5015
        addDelayReason_result result = new addDelayReason_result();
-
 
5016
        try {
-
 
5017
          result.success = iface.addDelayReason(args.orderId, args.delayReason);
-
 
5018
          result.setSuccessIsSet(true);
-
 
5019
        } catch (TransactionServiceException ex) {
-
 
5020
          result.ex = ex;
-
 
5021
        }
-
 
5022
        return result;
-
 
5023
      }
-
 
5024
    }
-
 
5025
 
4931
  }
5026
  }
4932
 
5027
 
4933
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5028
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
4934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
4935
 
5030
 
Line 24147... Line 24242...
24147
      }
24242
      }
24148
    }
24243
    }
24149
 
24244
 
24150
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24245
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24151
      try {
24246
      try {
24152
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
24153
        __isset_bit_vector = new BitSet(1);
-
 
24154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24247
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24155
      } catch (org.apache.thrift.TException te) {
24248
      } catch (org.apache.thrift.TException te) {
24156
        throw new java.io.IOException(te);
24249
        throw new java.io.IOException(te);
24157
      }
24250
      }
24158
    }
24251
    }
Line 44544... Line 44637...
44544
      first = false;
44637
      first = false;
44545
      if (!first) sb.append(", ");
44638
      if (!first) sb.append(", ");
44546
      sb.append("ex:");
44639
      sb.append("ex:");
44547
      if (this.ex == null) {
44640
      if (this.ex == null) {
44548
        sb.append("null");
44641
        sb.append("null");
-
 
44642
      } else {
-
 
44643
        sb.append(this.ex);
-
 
44644
      }
-
 
44645
      first = false;
-
 
44646
      sb.append(")");
-
 
44647
      return sb.toString();
-
 
44648
    }
-
 
44649
 
-
 
44650
    public void validate() throws org.apache.thrift.TException {
-
 
44651
      // check for required fields
-
 
44652
    }
-
 
44653
 
-
 
44654
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
44655
      try {
-
 
44656
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
44657
      } catch (org.apache.thrift.TException te) {
-
 
44658
        throw new java.io.IOException(te);
-
 
44659
      }
-
 
44660
    }
-
 
44661
 
-
 
44662
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
44663
      try {
-
 
44664
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
44665
      } catch (org.apache.thrift.TException te) {
-
 
44666
        throw new java.io.IOException(te);
-
 
44667
      }
-
 
44668
    }
-
 
44669
 
-
 
44670
  }
-
 
44671
 
-
 
44672
  public static class addDelayReason_args implements org.apache.thrift.TBase<addDelayReason_args, addDelayReason_args._Fields>, java.io.Serializable, Cloneable   {
-
 
44673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_args");
-
 
44674
 
-
 
44675
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
44676
    private static final org.apache.thrift.protocol.TField DELAY_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReason", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
44677
 
-
 
44678
    private long orderId; // required
-
 
44679
    private DelayReason delayReason; // required
-
 
44680
 
-
 
44681
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
44682
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
44683
      ORDER_ID((short)1, "orderId"),
-
 
44684
      /**
-
 
44685
       * 
-
 
44686
       * @see DelayReason
-
 
44687
       */
-
 
44688
      DELAY_REASON((short)2, "delayReason");
-
 
44689
 
-
 
44690
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
44691
 
-
 
44692
      static {
-
 
44693
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
44694
          byName.put(field.getFieldName(), field);
-
 
44695
        }
-
 
44696
      }
-
 
44697
 
-
 
44698
      /**
-
 
44699
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
44700
       */
-
 
44701
      public static _Fields findByThriftId(int fieldId) {
-
 
44702
        switch(fieldId) {
-
 
44703
          case 1: // ORDER_ID
-
 
44704
            return ORDER_ID;
-
 
44705
          case 2: // DELAY_REASON
-
 
44706
            return DELAY_REASON;
-
 
44707
          default:
-
 
44708
            return null;
-
 
44709
        }
-
 
44710
      }
-
 
44711
 
-
 
44712
      /**
-
 
44713
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
44714
       * if it is not found.
-
 
44715
       */
-
 
44716
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
44717
        _Fields fields = findByThriftId(fieldId);
-
 
44718
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
44719
        return fields;
-
 
44720
      }
-
 
44721
 
-
 
44722
      /**
-
 
44723
       * Find the _Fields constant that matches name, or null if its not found.
-
 
44724
       */
-
 
44725
      public static _Fields findByName(String name) {
-
 
44726
        return byName.get(name);
-
 
44727
      }
-
 
44728
 
-
 
44729
      private final short _thriftId;
-
 
44730
      private final String _fieldName;
-
 
44731
 
-
 
44732
      _Fields(short thriftId, String fieldName) {
-
 
44733
        _thriftId = thriftId;
-
 
44734
        _fieldName = fieldName;
-
 
44735
      }
-
 
44736
 
-
 
44737
      public short getThriftFieldId() {
-
 
44738
        return _thriftId;
-
 
44739
      }
-
 
44740
 
-
 
44741
      public String getFieldName() {
-
 
44742
        return _fieldName;
-
 
44743
      }
-
 
44744
    }
-
 
44745
 
-
 
44746
    // isset id assignments
-
 
44747
    private static final int __ORDERID_ISSET_ID = 0;
-
 
44748
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
44749
 
-
 
44750
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44751
    static {
-
 
44752
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44753
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44754
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
44755
      tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44756
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));
-
 
44757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_args.class, metaDataMap);
-
 
44759
    }
-
 
44760
 
-
 
44761
    public addDelayReason_args() {
-
 
44762
    }
-
 
44763
 
-
 
44764
    public addDelayReason_args(
-
 
44765
      long orderId,
-
 
44766
      DelayReason delayReason)
-
 
44767
    {
-
 
44768
      this();
-
 
44769
      this.orderId = orderId;
-
 
44770
      setOrderIdIsSet(true);
-
 
44771
      this.delayReason = delayReason;
-
 
44772
    }
-
 
44773
 
-
 
44774
    /**
-
 
44775
     * Performs a deep copy on <i>other</i>.
-
 
44776
     */
-
 
44777
    public addDelayReason_args(addDelayReason_args other) {
-
 
44778
      __isset_bit_vector.clear();
-
 
44779
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
44780
      this.orderId = other.orderId;
-
 
44781
      if (other.isSetDelayReason()) {
-
 
44782
        this.delayReason = other.delayReason;
-
 
44783
      }
-
 
44784
    }
-
 
44785
 
-
 
44786
    public addDelayReason_args deepCopy() {
-
 
44787
      return new addDelayReason_args(this);
-
 
44788
    }
-
 
44789
 
-
 
44790
    @Override
-
 
44791
    public void clear() {
-
 
44792
      setOrderIdIsSet(false);
-
 
44793
      this.orderId = 0;
-
 
44794
      this.delayReason = null;
-
 
44795
    }
-
 
44796
 
-
 
44797
    public long getOrderId() {
-
 
44798
      return this.orderId;
-
 
44799
    }
-
 
44800
 
-
 
44801
    public void setOrderId(long orderId) {
-
 
44802
      this.orderId = orderId;
-
 
44803
      setOrderIdIsSet(true);
-
 
44804
    }
-
 
44805
 
-
 
44806
    public void unsetOrderId() {
-
 
44807
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
44808
    }
-
 
44809
 
-
 
44810
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
44811
    public boolean isSetOrderId() {
-
 
44812
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
44813
    }
-
 
44814
 
-
 
44815
    public void setOrderIdIsSet(boolean value) {
-
 
44816
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
44817
    }
-
 
44818
 
-
 
44819
    /**
-
 
44820
     * 
-
 
44821
     * @see DelayReason
-
 
44822
     */
-
 
44823
    public DelayReason getDelayReason() {
-
 
44824
      return this.delayReason;
-
 
44825
    }
-
 
44826
 
-
 
44827
    /**
-
 
44828
     * 
-
 
44829
     * @see DelayReason
-
 
44830
     */
-
 
44831
    public void setDelayReason(DelayReason delayReason) {
-
 
44832
      this.delayReason = delayReason;
-
 
44833
    }
-
 
44834
 
-
 
44835
    public void unsetDelayReason() {
-
 
44836
      this.delayReason = null;
-
 
44837
    }
-
 
44838
 
-
 
44839
    /** Returns true if field delayReason is set (has been assigned a value) and false otherwise */
-
 
44840
    public boolean isSetDelayReason() {
-
 
44841
      return this.delayReason != null;
-
 
44842
    }
-
 
44843
 
-
 
44844
    public void setDelayReasonIsSet(boolean value) {
-
 
44845
      if (!value) {
-
 
44846
        this.delayReason = null;
-
 
44847
      }
-
 
44848
    }
-
 
44849
 
-
 
44850
    public void setFieldValue(_Fields field, Object value) {
-
 
44851
      switch (field) {
-
 
44852
      case ORDER_ID:
-
 
44853
        if (value == null) {
-
 
44854
          unsetOrderId();
-
 
44855
        } else {
-
 
44856
          setOrderId((Long)value);
-
 
44857
        }
-
 
44858
        break;
-
 
44859
 
-
 
44860
      case DELAY_REASON:
-
 
44861
        if (value == null) {
-
 
44862
          unsetDelayReason();
-
 
44863
        } else {
-
 
44864
          setDelayReason((DelayReason)value);
-
 
44865
        }
-
 
44866
        break;
-
 
44867
 
-
 
44868
      }
-
 
44869
    }
-
 
44870
 
-
 
44871
    public Object getFieldValue(_Fields field) {
-
 
44872
      switch (field) {
-
 
44873
      case ORDER_ID:
-
 
44874
        return Long.valueOf(getOrderId());
-
 
44875
 
-
 
44876
      case DELAY_REASON:
-
 
44877
        return getDelayReason();
-
 
44878
 
-
 
44879
      }
-
 
44880
      throw new IllegalStateException();
-
 
44881
    }
-
 
44882
 
-
 
44883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
44884
    public boolean isSet(_Fields field) {
-
 
44885
      if (field == null) {
-
 
44886
        throw new IllegalArgumentException();
-
 
44887
      }
-
 
44888
 
-
 
44889
      switch (field) {
-
 
44890
      case ORDER_ID:
-
 
44891
        return isSetOrderId();
-
 
44892
      case DELAY_REASON:
-
 
44893
        return isSetDelayReason();
-
 
44894
      }
-
 
44895
      throw new IllegalStateException();
-
 
44896
    }
-
 
44897
 
-
 
44898
    @Override
-
 
44899
    public boolean equals(Object that) {
-
 
44900
      if (that == null)
-
 
44901
        return false;
-
 
44902
      if (that instanceof addDelayReason_args)
-
 
44903
        return this.equals((addDelayReason_args)that);
-
 
44904
      return false;
-
 
44905
    }
-
 
44906
 
-
 
44907
    public boolean equals(addDelayReason_args that) {
-
 
44908
      if (that == null)
-
 
44909
        return false;
-
 
44910
 
-
 
44911
      boolean this_present_orderId = true;
-
 
44912
      boolean that_present_orderId = true;
-
 
44913
      if (this_present_orderId || that_present_orderId) {
-
 
44914
        if (!(this_present_orderId && that_present_orderId))
-
 
44915
          return false;
-
 
44916
        if (this.orderId != that.orderId)
-
 
44917
          return false;
-
 
44918
      }
-
 
44919
 
-
 
44920
      boolean this_present_delayReason = true && this.isSetDelayReason();
-
 
44921
      boolean that_present_delayReason = true && that.isSetDelayReason();
-
 
44922
      if (this_present_delayReason || that_present_delayReason) {
-
 
44923
        if (!(this_present_delayReason && that_present_delayReason))
-
 
44924
          return false;
-
 
44925
        if (!this.delayReason.equals(that.delayReason))
-
 
44926
          return false;
-
 
44927
      }
-
 
44928
 
-
 
44929
      return true;
-
 
44930
    }
-
 
44931
 
-
 
44932
    @Override
-
 
44933
    public int hashCode() {
-
 
44934
      return 0;
-
 
44935
    }
-
 
44936
 
-
 
44937
    public int compareTo(addDelayReason_args other) {
-
 
44938
      if (!getClass().equals(other.getClass())) {
-
 
44939
        return getClass().getName().compareTo(other.getClass().getName());
-
 
44940
      }
-
 
44941
 
-
 
44942
      int lastComparison = 0;
-
 
44943
      addDelayReason_args typedOther = (addDelayReason_args)other;
-
 
44944
 
-
 
44945
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
44946
      if (lastComparison != 0) {
-
 
44947
        return lastComparison;
-
 
44948
      }
-
 
44949
      if (isSetOrderId()) {
-
 
44950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
44951
        if (lastComparison != 0) {
-
 
44952
          return lastComparison;
-
 
44953
        }
-
 
44954
      }
-
 
44955
      lastComparison = Boolean.valueOf(isSetDelayReason()).compareTo(typedOther.isSetDelayReason());
-
 
44956
      if (lastComparison != 0) {
-
 
44957
        return lastComparison;
-
 
44958
      }
-
 
44959
      if (isSetDelayReason()) {
-
 
44960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);
-
 
44961
        if (lastComparison != 0) {
-
 
44962
          return lastComparison;
-
 
44963
        }
-
 
44964
      }
-
 
44965
      return 0;
-
 
44966
    }
-
 
44967
 
-
 
44968
    public _Fields fieldForId(int fieldId) {
-
 
44969
      return _Fields.findByThriftId(fieldId);
-
 
44970
    }
-
 
44971
 
-
 
44972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
44973
      org.apache.thrift.protocol.TField field;
-
 
44974
      iprot.readStructBegin();
-
 
44975
      while (true)
-
 
44976
      {
-
 
44977
        field = iprot.readFieldBegin();
-
 
44978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
44979
          break;
-
 
44980
        }
-
 
44981
        switch (field.id) {
-
 
44982
          case 1: // ORDER_ID
-
 
44983
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
44984
              this.orderId = iprot.readI64();
-
 
44985
              setOrderIdIsSet(true);
-
 
44986
            } else { 
-
 
44987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44988
            }
-
 
44989
            break;
-
 
44990
          case 2: // DELAY_REASON
-
 
44991
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
44992
              this.delayReason = DelayReason.findByValue(iprot.readI32());
-
 
44993
            } else { 
-
 
44994
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44995
            }
-
 
44996
            break;
-
 
44997
          default:
-
 
44998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44999
        }
-
 
45000
        iprot.readFieldEnd();
-
 
45001
      }
-
 
45002
      iprot.readStructEnd();
-
 
45003
      validate();
-
 
45004
    }
-
 
45005
 
-
 
45006
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45007
      validate();
-
 
45008
 
-
 
45009
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45010
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
45011
      oprot.writeI64(this.orderId);
-
 
45012
      oprot.writeFieldEnd();
-
 
45013
      if (this.delayReason != null) {
-
 
45014
        oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);
-
 
45015
        oprot.writeI32(this.delayReason.getValue());
-
 
45016
        oprot.writeFieldEnd();
-
 
45017
      }
-
 
45018
      oprot.writeFieldStop();
-
 
45019
      oprot.writeStructEnd();
-
 
45020
    }
-
 
45021
 
-
 
45022
    @Override
-
 
45023
    public String toString() {
-
 
45024
      StringBuilder sb = new StringBuilder("addDelayReason_args(");
-
 
45025
      boolean first = true;
-
 
45026
 
-
 
45027
      sb.append("orderId:");
-
 
45028
      sb.append(this.orderId);
-
 
45029
      first = false;
-
 
45030
      if (!first) sb.append(", ");
-
 
45031
      sb.append("delayReason:");
-
 
45032
      if (this.delayReason == null) {
-
 
45033
        sb.append("null");
-
 
45034
      } else {
-
 
45035
        sb.append(this.delayReason);
-
 
45036
      }
-
 
45037
      first = false;
-
 
45038
      sb.append(")");
-
 
45039
      return sb.toString();
-
 
45040
    }
-
 
45041
 
-
 
45042
    public void validate() throws org.apache.thrift.TException {
-
 
45043
      // check for required fields
-
 
45044
    }
-
 
45045
 
-
 
45046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45047
      try {
-
 
45048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45049
      } catch (org.apache.thrift.TException te) {
-
 
45050
        throw new java.io.IOException(te);
-
 
45051
      }
-
 
45052
    }
-
 
45053
 
-
 
45054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45055
      try {
-
 
45056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45057
      } catch (org.apache.thrift.TException te) {
-
 
45058
        throw new java.io.IOException(te);
-
 
45059
      }
-
 
45060
    }
-
 
45061
 
-
 
45062
  }
-
 
45063
 
-
 
45064
  public static class addDelayReason_result implements org.apache.thrift.TBase<addDelayReason_result, addDelayReason_result._Fields>, java.io.Serializable, Cloneable   {
-
 
45065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_result");
-
 
45066
 
-
 
45067
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
45068
    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);
-
 
45069
 
-
 
45070
    private boolean success; // required
-
 
45071
    private TransactionServiceException ex; // required
-
 
45072
 
-
 
45073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45075
      SUCCESS((short)0, "success"),
-
 
45076
      EX((short)1, "ex");
-
 
45077
 
-
 
45078
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45079
 
-
 
45080
      static {
-
 
45081
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45082
          byName.put(field.getFieldName(), field);
-
 
45083
        }
-
 
45084
      }
-
 
45085
 
-
 
45086
      /**
-
 
45087
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45088
       */
-
 
45089
      public static _Fields findByThriftId(int fieldId) {
-
 
45090
        switch(fieldId) {
-
 
45091
          case 0: // SUCCESS
-
 
45092
            return SUCCESS;
-
 
45093
          case 1: // EX
-
 
45094
            return EX;
-
 
45095
          default:
-
 
45096
            return null;
-
 
45097
        }
-
 
45098
      }
-
 
45099
 
-
 
45100
      /**
-
 
45101
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45102
       * if it is not found.
-
 
45103
       */
-
 
45104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45105
        _Fields fields = findByThriftId(fieldId);
-
 
45106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45107
        return fields;
-
 
45108
      }
-
 
45109
 
-
 
45110
      /**
-
 
45111
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45112
       */
-
 
45113
      public static _Fields findByName(String name) {
-
 
45114
        return byName.get(name);
-
 
45115
      }
-
 
45116
 
-
 
45117
      private final short _thriftId;
-
 
45118
      private final String _fieldName;
-
 
45119
 
-
 
45120
      _Fields(short thriftId, String fieldName) {
-
 
45121
        _thriftId = thriftId;
-
 
45122
        _fieldName = fieldName;
-
 
45123
      }
-
 
45124
 
-
 
45125
      public short getThriftFieldId() {
-
 
45126
        return _thriftId;
-
 
45127
      }
-
 
45128
 
-
 
45129
      public String getFieldName() {
-
 
45130
        return _fieldName;
-
 
45131
      }
-
 
45132
    }
-
 
45133
 
-
 
45134
    // isset id assignments
-
 
45135
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
45136
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45137
 
-
 
45138
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45139
    static {
-
 
45140
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45141
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
45143
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
45145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_result.class, metaDataMap);
-
 
45147
    }
-
 
45148
 
-
 
45149
    public addDelayReason_result() {
-
 
45150
    }
-
 
45151
 
-
 
45152
    public addDelayReason_result(
-
 
45153
      boolean success,
-
 
45154
      TransactionServiceException ex)
-
 
45155
    {
-
 
45156
      this();
-
 
45157
      this.success = success;
-
 
45158
      setSuccessIsSet(true);
-
 
45159
      this.ex = ex;
-
 
45160
    }
-
 
45161
 
-
 
45162
    /**
-
 
45163
     * Performs a deep copy on <i>other</i>.
-
 
45164
     */
-
 
45165
    public addDelayReason_result(addDelayReason_result other) {
-
 
45166
      __isset_bit_vector.clear();
-
 
45167
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45168
      this.success = other.success;
-
 
45169
      if (other.isSetEx()) {
-
 
45170
        this.ex = new TransactionServiceException(other.ex);
-
 
45171
      }
-
 
45172
    }
-
 
45173
 
-
 
45174
    public addDelayReason_result deepCopy() {
-
 
45175
      return new addDelayReason_result(this);
-
 
45176
    }
-
 
45177
 
-
 
45178
    @Override
-
 
45179
    public void clear() {
-
 
45180
      setSuccessIsSet(false);
-
 
45181
      this.success = false;
-
 
45182
      this.ex = null;
-
 
45183
    }
-
 
45184
 
-
 
45185
    public boolean isSuccess() {
-
 
45186
      return this.success;
-
 
45187
    }
-
 
45188
 
-
 
45189
    public void setSuccess(boolean success) {
-
 
45190
      this.success = success;
-
 
45191
      setSuccessIsSet(true);
-
 
45192
    }
-
 
45193
 
-
 
45194
    public void unsetSuccess() {
-
 
45195
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
45196
    }
-
 
45197
 
-
 
45198
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
45199
    public boolean isSetSuccess() {
-
 
45200
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
45201
    }
-
 
45202
 
-
 
45203
    public void setSuccessIsSet(boolean value) {
-
 
45204
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
45205
    }
-
 
45206
 
-
 
45207
    public TransactionServiceException getEx() {
-
 
45208
      return this.ex;
-
 
45209
    }
-
 
45210
 
-
 
45211
    public void setEx(TransactionServiceException ex) {
-
 
45212
      this.ex = ex;
-
 
45213
    }
-
 
45214
 
-
 
45215
    public void unsetEx() {
-
 
45216
      this.ex = null;
-
 
45217
    }
-
 
45218
 
-
 
45219
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
45220
    public boolean isSetEx() {
-
 
45221
      return this.ex != null;
-
 
45222
    }
-
 
45223
 
-
 
45224
    public void setExIsSet(boolean value) {
-
 
45225
      if (!value) {
-
 
45226
        this.ex = null;
-
 
45227
      }
-
 
45228
    }
-
 
45229
 
-
 
45230
    public void setFieldValue(_Fields field, Object value) {
-
 
45231
      switch (field) {
-
 
45232
      case SUCCESS:
-
 
45233
        if (value == null) {
-
 
45234
          unsetSuccess();
-
 
45235
        } else {
-
 
45236
          setSuccess((Boolean)value);
-
 
45237
        }
-
 
45238
        break;
-
 
45239
 
-
 
45240
      case EX:
-
 
45241
        if (value == null) {
-
 
45242
          unsetEx();
-
 
45243
        } else {
-
 
45244
          setEx((TransactionServiceException)value);
-
 
45245
        }
-
 
45246
        break;
-
 
45247
 
-
 
45248
      }
-
 
45249
    }
-
 
45250
 
-
 
45251
    public Object getFieldValue(_Fields field) {
-
 
45252
      switch (field) {
-
 
45253
      case SUCCESS:
-
 
45254
        return Boolean.valueOf(isSuccess());
-
 
45255
 
-
 
45256
      case EX:
-
 
45257
        return getEx();
-
 
45258
 
-
 
45259
      }
-
 
45260
      throw new IllegalStateException();
-
 
45261
    }
-
 
45262
 
-
 
45263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45264
    public boolean isSet(_Fields field) {
-
 
45265
      if (field == null) {
-
 
45266
        throw new IllegalArgumentException();
-
 
45267
      }
-
 
45268
 
-
 
45269
      switch (field) {
-
 
45270
      case SUCCESS:
-
 
45271
        return isSetSuccess();
-
 
45272
      case EX:
-
 
45273
        return isSetEx();
-
 
45274
      }
-
 
45275
      throw new IllegalStateException();
-
 
45276
    }
-
 
45277
 
-
 
45278
    @Override
-
 
45279
    public boolean equals(Object that) {
-
 
45280
      if (that == null)
-
 
45281
        return false;
-
 
45282
      if (that instanceof addDelayReason_result)
-
 
45283
        return this.equals((addDelayReason_result)that);
-
 
45284
      return false;
-
 
45285
    }
-
 
45286
 
-
 
45287
    public boolean equals(addDelayReason_result that) {
-
 
45288
      if (that == null)
-
 
45289
        return false;
-
 
45290
 
-
 
45291
      boolean this_present_success = true;
-
 
45292
      boolean that_present_success = true;
-
 
45293
      if (this_present_success || that_present_success) {
-
 
45294
        if (!(this_present_success && that_present_success))
-
 
45295
          return false;
-
 
45296
        if (this.success != that.success)
-
 
45297
          return false;
-
 
45298
      }
-
 
45299
 
-
 
45300
      boolean this_present_ex = true && this.isSetEx();
-
 
45301
      boolean that_present_ex = true && that.isSetEx();
-
 
45302
      if (this_present_ex || that_present_ex) {
-
 
45303
        if (!(this_present_ex && that_present_ex))
-
 
45304
          return false;
-
 
45305
        if (!this.ex.equals(that.ex))
-
 
45306
          return false;
-
 
45307
      }
-
 
45308
 
-
 
45309
      return true;
-
 
45310
    }
-
 
45311
 
-
 
45312
    @Override
-
 
45313
    public int hashCode() {
-
 
45314
      return 0;
-
 
45315
    }
-
 
45316
 
-
 
45317
    public int compareTo(addDelayReason_result other) {
-
 
45318
      if (!getClass().equals(other.getClass())) {
-
 
45319
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45320
      }
-
 
45321
 
-
 
45322
      int lastComparison = 0;
-
 
45323
      addDelayReason_result typedOther = (addDelayReason_result)other;
-
 
45324
 
-
 
45325
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
45326
      if (lastComparison != 0) {
-
 
45327
        return lastComparison;
-
 
45328
      }
-
 
45329
      if (isSetSuccess()) {
-
 
45330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
45331
        if (lastComparison != 0) {
-
 
45332
          return lastComparison;
-
 
45333
        }
-
 
45334
      }
-
 
45335
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
45336
      if (lastComparison != 0) {
-
 
45337
        return lastComparison;
-
 
45338
      }
-
 
45339
      if (isSetEx()) {
-
 
45340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
45341
        if (lastComparison != 0) {
-
 
45342
          return lastComparison;
-
 
45343
        }
-
 
45344
      }
-
 
45345
      return 0;
-
 
45346
    }
-
 
45347
 
-
 
45348
    public _Fields fieldForId(int fieldId) {
-
 
45349
      return _Fields.findByThriftId(fieldId);
-
 
45350
    }
-
 
45351
 
-
 
45352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45353
      org.apache.thrift.protocol.TField field;
-
 
45354
      iprot.readStructBegin();
-
 
45355
      while (true)
-
 
45356
      {
-
 
45357
        field = iprot.readFieldBegin();
-
 
45358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45359
          break;
-
 
45360
        }
-
 
45361
        switch (field.id) {
-
 
45362
          case 0: // SUCCESS
-
 
45363
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
45364
              this.success = iprot.readBool();
-
 
45365
              setSuccessIsSet(true);
-
 
45366
            } else { 
-
 
45367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45368
            }
-
 
45369
            break;
-
 
45370
          case 1: // EX
-
 
45371
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
45372
              this.ex = new TransactionServiceException();
-
 
45373
              this.ex.read(iprot);
-
 
45374
            } else { 
-
 
45375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45376
            }
-
 
45377
            break;
-
 
45378
          default:
-
 
45379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45380
        }
-
 
45381
        iprot.readFieldEnd();
-
 
45382
      }
-
 
45383
      iprot.readStructEnd();
-
 
45384
      validate();
-
 
45385
    }
-
 
45386
 
-
 
45387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45388
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45389
 
-
 
45390
      if (this.isSetSuccess()) {
-
 
45391
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
45392
        oprot.writeBool(this.success);
-
 
45393
        oprot.writeFieldEnd();
-
 
45394
      } else if (this.isSetEx()) {
-
 
45395
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
45396
        this.ex.write(oprot);
-
 
45397
        oprot.writeFieldEnd();
-
 
45398
      }
-
 
45399
      oprot.writeFieldStop();
-
 
45400
      oprot.writeStructEnd();
-
 
45401
    }
-
 
45402
 
-
 
45403
    @Override
-
 
45404
    public String toString() {
-
 
45405
      StringBuilder sb = new StringBuilder("addDelayReason_result(");
-
 
45406
      boolean first = true;
-
 
45407
 
-
 
45408
      sb.append("success:");
-
 
45409
      sb.append(this.success);
-
 
45410
      first = false;
-
 
45411
      if (!first) sb.append(", ");
-
 
45412
      sb.append("ex:");
-
 
45413
      if (this.ex == null) {
-
 
45414
        sb.append("null");
44549
      } else {
45415
      } else {
44550
        sb.append(this.ex);
45416
        sb.append(this.ex);
44551
      }
45417
      }
44552
      first = false;
45418
      first = false;
44553
      sb.append(")");
45419
      sb.append(")");