Subversion Repositories SmartDukaan

Rev

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

Rev 7363 Rev 7370
Line 965... Line 965...
965
 
965
 
966
    public List<Order> getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses) throws org.apache.thrift.TException;
966
    public List<Order> getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses) throws org.apache.thrift.TException;
967
 
967
 
968
    public ByteBuffer getStoreOrderAdvanceInvoice(long orderId) throws org.apache.thrift.TException;
968
    public ByteBuffer getStoreOrderAdvanceInvoice(long orderId) throws org.apache.thrift.TException;
969
 
969
 
-
 
970
    public boolean addFrc(long circleId, long operatorId, long denomination, long maxDiscount) throws org.apache.thrift.TException;
-
 
971
 
970
  }
972
  }
971
 
973
 
972
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
974
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
973
 
975
 
974
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
976
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1323... Line 1325...
1323
 
1325
 
1324
    public void getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForStore_call> resultHandler) throws org.apache.thrift.TException;
1326
    public void getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForStore_call> resultHandler) throws org.apache.thrift.TException;
1325
 
1327
 
1326
    public void getStoreOrderAdvanceInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStoreOrderAdvanceInvoice_call> resultHandler) throws org.apache.thrift.TException;
1328
    public void getStoreOrderAdvanceInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStoreOrderAdvanceInvoice_call> resultHandler) throws org.apache.thrift.TException;
1327
 
1329
 
-
 
1330
    public void addFrc(long circleId, long operatorId, long denomination, long maxDiscount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addFrc_call> resultHandler) throws org.apache.thrift.TException;
-
 
1331
 
1328
  }
1332
  }
1329
 
1333
 
1330
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1334
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1331
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1335
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1332
      public Factory() {}
1336
      public Factory() {}
Line 5764... Line 5768...
5764
        return result.success;
5768
        return result.success;
5765
      }
5769
      }
5766
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStoreOrderAdvanceInvoice failed: unknown result");
5770
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStoreOrderAdvanceInvoice failed: unknown result");
5767
    }
5771
    }
5768
 
5772
 
-
 
5773
    public boolean addFrc(long circleId, long operatorId, long denomination, long maxDiscount) throws org.apache.thrift.TException
-
 
5774
    {
-
 
5775
      send_addFrc(circleId, operatorId, denomination, maxDiscount);
-
 
5776
      return recv_addFrc();
-
 
5777
    }
-
 
5778
 
-
 
5779
    public void send_addFrc(long circleId, long operatorId, long denomination, long maxDiscount) throws org.apache.thrift.TException
-
 
5780
    {
-
 
5781
      addFrc_args args = new addFrc_args();
-
 
5782
      args.setCircleId(circleId);
-
 
5783
      args.setOperatorId(operatorId);
-
 
5784
      args.setDenomination(denomination);
-
 
5785
      args.setMaxDiscount(maxDiscount);
-
 
5786
      sendBase("addFrc", args);
-
 
5787
    }
-
 
5788
 
-
 
5789
    public boolean recv_addFrc() throws org.apache.thrift.TException
-
 
5790
    {
-
 
5791
      addFrc_result result = new addFrc_result();
-
 
5792
      receiveBase(result, "addFrc");
-
 
5793
      if (result.isSetSuccess()) {
-
 
5794
        return result.success;
-
 
5795
      }
-
 
5796
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addFrc failed: unknown result");
-
 
5797
    }
-
 
5798
 
5769
  }
5799
  }
5770
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5800
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5771
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5801
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5772
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5802
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5773
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5803
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11950... Line 11980...
11950
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11951
        return (new Client(prot)).recv_getStoreOrderAdvanceInvoice();
11981
        return (new Client(prot)).recv_getStoreOrderAdvanceInvoice();
11952
      }
11982
      }
11953
    }
11983
    }
11954
 
11984
 
-
 
11985
    public void addFrc(long circleId, long operatorId, long denomination, long maxDiscount, org.apache.thrift.async.AsyncMethodCallback<addFrc_call> resultHandler) throws org.apache.thrift.TException {
-
 
11986
      checkReady();
-
 
11987
      addFrc_call method_call = new addFrc_call(circleId, operatorId, denomination, maxDiscount, resultHandler, this, ___protocolFactory, ___transport);
-
 
11988
      this.___currentMethod = method_call;
-
 
11989
      ___manager.call(method_call);
-
 
11990
    }
-
 
11991
 
-
 
11992
    public static class addFrc_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11993
      private long circleId;
-
 
11994
      private long operatorId;
-
 
11995
      private long denomination;
-
 
11996
      private long maxDiscount;
-
 
11997
      public addFrc_call(long circleId, long operatorId, long denomination, long maxDiscount, org.apache.thrift.async.AsyncMethodCallback<addFrc_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 {
-
 
11998
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11999
        this.circleId = circleId;
-
 
12000
        this.operatorId = operatorId;
-
 
12001
        this.denomination = denomination;
-
 
12002
        this.maxDiscount = maxDiscount;
-
 
12003
      }
-
 
12004
 
-
 
12005
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12006
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addFrc", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12007
        addFrc_args args = new addFrc_args();
-
 
12008
        args.setCircleId(circleId);
-
 
12009
        args.setOperatorId(operatorId);
-
 
12010
        args.setDenomination(denomination);
-
 
12011
        args.setMaxDiscount(maxDiscount);
-
 
12012
        args.write(prot);
-
 
12013
        prot.writeMessageEnd();
-
 
12014
      }
-
 
12015
 
-
 
12016
      public boolean getResult() throws org.apache.thrift.TException {
-
 
12017
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12018
          throw new IllegalStateException("Method call not finished!");
-
 
12019
        }
-
 
12020
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12021
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12022
        return (new Client(prot)).recv_addFrc();
-
 
12023
      }
-
 
12024
    }
-
 
12025
 
11955
  }
12026
  }
11956
 
12027
 
11957
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12028
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11958
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12029
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11959
    public Processor(I iface) {
12030
    public Processor(I iface) {
Line 12140... Line 12211...
12140
      processMap.put("getAmazonOrdersShipped", new getAmazonOrdersShipped());
12211
      processMap.put("getAmazonOrdersShipped", new getAmazonOrdersShipped());
12141
      processMap.put("getAmazonOrdersCancelled", new getAmazonOrdersCancelled());
12212
      processMap.put("getAmazonOrdersCancelled", new getAmazonOrdersCancelled());
12142
      processMap.put("getAmazonOrder", new getAmazonOrder());
12213
      processMap.put("getAmazonOrder", new getAmazonOrder());
12143
      processMap.put("getOrdersForStore", new getOrdersForStore());
12214
      processMap.put("getOrdersForStore", new getOrdersForStore());
12144
      processMap.put("getStoreOrderAdvanceInvoice", new getStoreOrderAdvanceInvoice());
12215
      processMap.put("getStoreOrderAdvanceInvoice", new getStoreOrderAdvanceInvoice());
-
 
12216
      processMap.put("addFrc", new addFrc());
12145
      return processMap;
12217
      return processMap;
12146
    }
12218
    }
12147
 
12219
 
12148
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12220
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12149
      public createTransaction() {
12221
      public createTransaction() {
Line 15409... Line 15481...
15409
        result.success = iface.getStoreOrderAdvanceInvoice(args.orderId);
15481
        result.success = iface.getStoreOrderAdvanceInvoice(args.orderId);
15410
        return result;
15482
        return result;
15411
      }
15483
      }
15412
    }
15484
    }
15413
 
15485
 
-
 
15486
    private static class addFrc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addFrc_args> {
-
 
15487
      public addFrc() {
-
 
15488
        super("addFrc");
-
 
15489
      }
-
 
15490
 
-
 
15491
      protected addFrc_args getEmptyArgsInstance() {
-
 
15492
        return new addFrc_args();
-
 
15493
      }
-
 
15494
 
-
 
15495
      protected addFrc_result getResult(I iface, addFrc_args args) throws org.apache.thrift.TException {
-
 
15496
        addFrc_result result = new addFrc_result();
-
 
15497
        result.success = iface.addFrc(args.circleId, args.operatorId, args.denomination, args.maxDiscount);
-
 
15498
        result.setSuccessIsSet(true);
-
 
15499
        return result;
-
 
15500
      }
-
 
15501
    }
-
 
15502
 
15414
  }
15503
  }
15415
 
15504
 
15416
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15505
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
15506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
15418
 
15507
 
Line 59698... Line 59787...
59698
      }
59787
      }
59699
    }
59788
    }
59700
 
59789
 
59701
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59790
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59702
      try {
59791
      try {
59703
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
59704
        __isset_bit_vector = new BitSet(1);
-
 
59705
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59792
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59706
      } catch (org.apache.thrift.TException te) {
59793
      } catch (org.apache.thrift.TException te) {
59707
        throw new java.io.IOException(te);
59794
        throw new java.io.IOException(te);
59708
      }
59795
      }
59709
    }
59796
    }
Line 64550... Line 64637...
64550
      }
64637
      }
64551
    }
64638
    }
64552
 
64639
 
64553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64640
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64554
      try {
64641
      try {
64555
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
64556
        __isset_bit_vector = new BitSet(1);
-
 
64557
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64642
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64558
      } catch (org.apache.thrift.TException te) {
64643
      } catch (org.apache.thrift.TException te) {
64559
        throw new java.io.IOException(te);
64644
        throw new java.io.IOException(te);
64560
      }
64645
      }
64561
    }
64646
    }
Line 65983... Line 66068...
65983
      }
66068
      }
65984
    }
66069
    }
65985
 
66070
 
65986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65987
      try {
66072
      try {
65988
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65989
        __isset_bit_vector = new BitSet(1);
-
 
65990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65991
      } catch (org.apache.thrift.TException te) {
66074
      } catch (org.apache.thrift.TException te) {
65992
        throw new java.io.IOException(te);
66075
        throw new java.io.IOException(te);
65993
      }
66076
      }
65994
    }
66077
    }
Line 142576... Line 142659...
142576
      first = false;
142659
      first = false;
142577
      sb.append(")");
142660
      sb.append(")");
142578
      return sb.toString();
142661
      return sb.toString();
142579
    }
142662
    }
142580
 
142663
 
-
 
142664
    public void validate() throws org.apache.thrift.TException {
-
 
142665
      // check for required fields
-
 
142666
    }
-
 
142667
 
-
 
142668
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
142669
      try {
-
 
142670
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
142671
      } catch (org.apache.thrift.TException te) {
-
 
142672
        throw new java.io.IOException(te);
-
 
142673
      }
-
 
142674
    }
-
 
142675
 
-
 
142676
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
142677
      try {
-
 
142678
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
142679
      } catch (org.apache.thrift.TException te) {
-
 
142680
        throw new java.io.IOException(te);
-
 
142681
      }
-
 
142682
    }
-
 
142683
 
-
 
142684
  }
-
 
142685
 
-
 
142686
  public static class addFrc_args implements org.apache.thrift.TBase<addFrc_args, addFrc_args._Fields>, java.io.Serializable, Cloneable   {
-
 
142687
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addFrc_args");
-
 
142688
 
-
 
142689
    private static final org.apache.thrift.protocol.TField CIRCLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("circleId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
142690
    private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
142691
    private static final org.apache.thrift.protocol.TField DENOMINATION_FIELD_DESC = new org.apache.thrift.protocol.TField("denomination", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
142692
    private static final org.apache.thrift.protocol.TField MAX_DISCOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("maxDiscount", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
142693
 
-
 
142694
    private long circleId; // required
-
 
142695
    private long operatorId; // required
-
 
142696
    private long denomination; // required
-
 
142697
    private long maxDiscount; // required
-
 
142698
 
-
 
142699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
142700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
142701
      CIRCLE_ID((short)1, "circleId"),
-
 
142702
      OPERATOR_ID((short)2, "operatorId"),
-
 
142703
      DENOMINATION((short)3, "denomination"),
-
 
142704
      MAX_DISCOUNT((short)4, "maxDiscount");
-
 
142705
 
-
 
142706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
142707
 
-
 
142708
      static {
-
 
142709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
142710
          byName.put(field.getFieldName(), field);
-
 
142711
        }
-
 
142712
      }
-
 
142713
 
-
 
142714
      /**
-
 
142715
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
142716
       */
-
 
142717
      public static _Fields findByThriftId(int fieldId) {
-
 
142718
        switch(fieldId) {
-
 
142719
          case 1: // CIRCLE_ID
-
 
142720
            return CIRCLE_ID;
-
 
142721
          case 2: // OPERATOR_ID
-
 
142722
            return OPERATOR_ID;
-
 
142723
          case 3: // DENOMINATION
-
 
142724
            return DENOMINATION;
-
 
142725
          case 4: // MAX_DISCOUNT
-
 
142726
            return MAX_DISCOUNT;
-
 
142727
          default:
-
 
142728
            return null;
-
 
142729
        }
-
 
142730
      }
-
 
142731
 
-
 
142732
      /**
-
 
142733
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
142734
       * if it is not found.
-
 
142735
       */
-
 
142736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
142737
        _Fields fields = findByThriftId(fieldId);
-
 
142738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
142739
        return fields;
-
 
142740
      }
-
 
142741
 
-
 
142742
      /**
-
 
142743
       * Find the _Fields constant that matches name, or null if its not found.
-
 
142744
       */
-
 
142745
      public static _Fields findByName(String name) {
-
 
142746
        return byName.get(name);
-
 
142747
      }
-
 
142748
 
-
 
142749
      private final short _thriftId;
-
 
142750
      private final String _fieldName;
-
 
142751
 
-
 
142752
      _Fields(short thriftId, String fieldName) {
-
 
142753
        _thriftId = thriftId;
-
 
142754
        _fieldName = fieldName;
-
 
142755
      }
-
 
142756
 
-
 
142757
      public short getThriftFieldId() {
-
 
142758
        return _thriftId;
-
 
142759
      }
-
 
142760
 
-
 
142761
      public String getFieldName() {
-
 
142762
        return _fieldName;
-
 
142763
      }
-
 
142764
    }
-
 
142765
 
-
 
142766
    // isset id assignments
-
 
142767
    private static final int __CIRCLEID_ISSET_ID = 0;
-
 
142768
    private static final int __OPERATORID_ISSET_ID = 1;
-
 
142769
    private static final int __DENOMINATION_ISSET_ID = 2;
-
 
142770
    private static final int __MAXDISCOUNT_ISSET_ID = 3;
-
 
142771
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
142772
 
-
 
142773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
142774
    static {
-
 
142775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
142776
      tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
142778
      tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
142780
      tmpMap.put(_Fields.DENOMINATION, new org.apache.thrift.meta_data.FieldMetaData("denomination", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
142782
      tmpMap.put(_Fields.MAX_DISCOUNT, new org.apache.thrift.meta_data.FieldMetaData("maxDiscount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
142784
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
142785
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addFrc_args.class, metaDataMap);
-
 
142786
    }
-
 
142787
 
-
 
142788
    public addFrc_args() {
-
 
142789
    }
-
 
142790
 
-
 
142791
    public addFrc_args(
-
 
142792
      long circleId,
-
 
142793
      long operatorId,
-
 
142794
      long denomination,
-
 
142795
      long maxDiscount)
-
 
142796
    {
-
 
142797
      this();
-
 
142798
      this.circleId = circleId;
-
 
142799
      setCircleIdIsSet(true);
-
 
142800
      this.operatorId = operatorId;
-
 
142801
      setOperatorIdIsSet(true);
-
 
142802
      this.denomination = denomination;
-
 
142803
      setDenominationIsSet(true);
-
 
142804
      this.maxDiscount = maxDiscount;
-
 
142805
      setMaxDiscountIsSet(true);
-
 
142806
    }
-
 
142807
 
-
 
142808
    /**
-
 
142809
     * Performs a deep copy on <i>other</i>.
-
 
142810
     */
-
 
142811
    public addFrc_args(addFrc_args other) {
-
 
142812
      __isset_bit_vector.clear();
-
 
142813
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
142814
      this.circleId = other.circleId;
-
 
142815
      this.operatorId = other.operatorId;
-
 
142816
      this.denomination = other.denomination;
-
 
142817
      this.maxDiscount = other.maxDiscount;
-
 
142818
    }
-
 
142819
 
-
 
142820
    public addFrc_args deepCopy() {
-
 
142821
      return new addFrc_args(this);
-
 
142822
    }
-
 
142823
 
-
 
142824
    @Override
-
 
142825
    public void clear() {
-
 
142826
      setCircleIdIsSet(false);
-
 
142827
      this.circleId = 0;
-
 
142828
      setOperatorIdIsSet(false);
-
 
142829
      this.operatorId = 0;
-
 
142830
      setDenominationIsSet(false);
-
 
142831
      this.denomination = 0;
-
 
142832
      setMaxDiscountIsSet(false);
-
 
142833
      this.maxDiscount = 0;
-
 
142834
    }
-
 
142835
 
-
 
142836
    public long getCircleId() {
-
 
142837
      return this.circleId;
-
 
142838
    }
-
 
142839
 
-
 
142840
    public void setCircleId(long circleId) {
-
 
142841
      this.circleId = circleId;
-
 
142842
      setCircleIdIsSet(true);
-
 
142843
    }
-
 
142844
 
-
 
142845
    public void unsetCircleId() {
-
 
142846
      __isset_bit_vector.clear(__CIRCLEID_ISSET_ID);
-
 
142847
    }
-
 
142848
 
-
 
142849
    /** Returns true if field circleId is set (has been assigned a value) and false otherwise */
-
 
142850
    public boolean isSetCircleId() {
-
 
142851
      return __isset_bit_vector.get(__CIRCLEID_ISSET_ID);
-
 
142852
    }
-
 
142853
 
-
 
142854
    public void setCircleIdIsSet(boolean value) {
-
 
142855
      __isset_bit_vector.set(__CIRCLEID_ISSET_ID, value);
-
 
142856
    }
-
 
142857
 
-
 
142858
    public long getOperatorId() {
-
 
142859
      return this.operatorId;
-
 
142860
    }
-
 
142861
 
-
 
142862
    public void setOperatorId(long operatorId) {
-
 
142863
      this.operatorId = operatorId;
-
 
142864
      setOperatorIdIsSet(true);
-
 
142865
    }
-
 
142866
 
-
 
142867
    public void unsetOperatorId() {
-
 
142868
      __isset_bit_vector.clear(__OPERATORID_ISSET_ID);
-
 
142869
    }
-
 
142870
 
-
 
142871
    /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
-
 
142872
    public boolean isSetOperatorId() {
-
 
142873
      return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
-
 
142874
    }
-
 
142875
 
-
 
142876
    public void setOperatorIdIsSet(boolean value) {
-
 
142877
      __isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
-
 
142878
    }
-
 
142879
 
-
 
142880
    public long getDenomination() {
-
 
142881
      return this.denomination;
-
 
142882
    }
-
 
142883
 
-
 
142884
    public void setDenomination(long denomination) {
-
 
142885
      this.denomination = denomination;
-
 
142886
      setDenominationIsSet(true);
-
 
142887
    }
-
 
142888
 
-
 
142889
    public void unsetDenomination() {
-
 
142890
      __isset_bit_vector.clear(__DENOMINATION_ISSET_ID);
-
 
142891
    }
-
 
142892
 
-
 
142893
    /** Returns true if field denomination is set (has been assigned a value) and false otherwise */
-
 
142894
    public boolean isSetDenomination() {
-
 
142895
      return __isset_bit_vector.get(__DENOMINATION_ISSET_ID);
-
 
142896
    }
-
 
142897
 
-
 
142898
    public void setDenominationIsSet(boolean value) {
-
 
142899
      __isset_bit_vector.set(__DENOMINATION_ISSET_ID, value);
-
 
142900
    }
-
 
142901
 
-
 
142902
    public long getMaxDiscount() {
-
 
142903
      return this.maxDiscount;
-
 
142904
    }
-
 
142905
 
-
 
142906
    public void setMaxDiscount(long maxDiscount) {
-
 
142907
      this.maxDiscount = maxDiscount;
-
 
142908
      setMaxDiscountIsSet(true);
-
 
142909
    }
-
 
142910
 
-
 
142911
    public void unsetMaxDiscount() {
-
 
142912
      __isset_bit_vector.clear(__MAXDISCOUNT_ISSET_ID);
-
 
142913
    }
-
 
142914
 
-
 
142915
    /** Returns true if field maxDiscount is set (has been assigned a value) and false otherwise */
-
 
142916
    public boolean isSetMaxDiscount() {
-
 
142917
      return __isset_bit_vector.get(__MAXDISCOUNT_ISSET_ID);
-
 
142918
    }
-
 
142919
 
-
 
142920
    public void setMaxDiscountIsSet(boolean value) {
-
 
142921
      __isset_bit_vector.set(__MAXDISCOUNT_ISSET_ID, value);
-
 
142922
    }
-
 
142923
 
-
 
142924
    public void setFieldValue(_Fields field, Object value) {
-
 
142925
      switch (field) {
-
 
142926
      case CIRCLE_ID:
-
 
142927
        if (value == null) {
-
 
142928
          unsetCircleId();
-
 
142929
        } else {
-
 
142930
          setCircleId((Long)value);
-
 
142931
        }
-
 
142932
        break;
-
 
142933
 
-
 
142934
      case OPERATOR_ID:
-
 
142935
        if (value == null) {
-
 
142936
          unsetOperatorId();
-
 
142937
        } else {
-
 
142938
          setOperatorId((Long)value);
-
 
142939
        }
-
 
142940
        break;
-
 
142941
 
-
 
142942
      case DENOMINATION:
-
 
142943
        if (value == null) {
-
 
142944
          unsetDenomination();
-
 
142945
        } else {
-
 
142946
          setDenomination((Long)value);
-
 
142947
        }
-
 
142948
        break;
-
 
142949
 
-
 
142950
      case MAX_DISCOUNT:
-
 
142951
        if (value == null) {
-
 
142952
          unsetMaxDiscount();
-
 
142953
        } else {
-
 
142954
          setMaxDiscount((Long)value);
-
 
142955
        }
-
 
142956
        break;
-
 
142957
 
-
 
142958
      }
-
 
142959
    }
-
 
142960
 
-
 
142961
    public Object getFieldValue(_Fields field) {
-
 
142962
      switch (field) {
-
 
142963
      case CIRCLE_ID:
-
 
142964
        return Long.valueOf(getCircleId());
-
 
142965
 
-
 
142966
      case OPERATOR_ID:
-
 
142967
        return Long.valueOf(getOperatorId());
-
 
142968
 
-
 
142969
      case DENOMINATION:
-
 
142970
        return Long.valueOf(getDenomination());
-
 
142971
 
-
 
142972
      case MAX_DISCOUNT:
-
 
142973
        return Long.valueOf(getMaxDiscount());
-
 
142974
 
-
 
142975
      }
-
 
142976
      throw new IllegalStateException();
-
 
142977
    }
-
 
142978
 
-
 
142979
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
142980
    public boolean isSet(_Fields field) {
-
 
142981
      if (field == null) {
-
 
142982
        throw new IllegalArgumentException();
-
 
142983
      }
-
 
142984
 
-
 
142985
      switch (field) {
-
 
142986
      case CIRCLE_ID:
-
 
142987
        return isSetCircleId();
-
 
142988
      case OPERATOR_ID:
-
 
142989
        return isSetOperatorId();
-
 
142990
      case DENOMINATION:
-
 
142991
        return isSetDenomination();
-
 
142992
      case MAX_DISCOUNT:
-
 
142993
        return isSetMaxDiscount();
-
 
142994
      }
-
 
142995
      throw new IllegalStateException();
-
 
142996
    }
-
 
142997
 
-
 
142998
    @Override
-
 
142999
    public boolean equals(Object that) {
-
 
143000
      if (that == null)
-
 
143001
        return false;
-
 
143002
      if (that instanceof addFrc_args)
-
 
143003
        return this.equals((addFrc_args)that);
-
 
143004
      return false;
-
 
143005
    }
-
 
143006
 
-
 
143007
    public boolean equals(addFrc_args that) {
-
 
143008
      if (that == null)
-
 
143009
        return false;
-
 
143010
 
-
 
143011
      boolean this_present_circleId = true;
-
 
143012
      boolean that_present_circleId = true;
-
 
143013
      if (this_present_circleId || that_present_circleId) {
-
 
143014
        if (!(this_present_circleId && that_present_circleId))
-
 
143015
          return false;
-
 
143016
        if (this.circleId != that.circleId)
-
 
143017
          return false;
-
 
143018
      }
-
 
143019
 
-
 
143020
      boolean this_present_operatorId = true;
-
 
143021
      boolean that_present_operatorId = true;
-
 
143022
      if (this_present_operatorId || that_present_operatorId) {
-
 
143023
        if (!(this_present_operatorId && that_present_operatorId))
-
 
143024
          return false;
-
 
143025
        if (this.operatorId != that.operatorId)
-
 
143026
          return false;
-
 
143027
      }
-
 
143028
 
-
 
143029
      boolean this_present_denomination = true;
-
 
143030
      boolean that_present_denomination = true;
-
 
143031
      if (this_present_denomination || that_present_denomination) {
-
 
143032
        if (!(this_present_denomination && that_present_denomination))
-
 
143033
          return false;
-
 
143034
        if (this.denomination != that.denomination)
-
 
143035
          return false;
-
 
143036
      }
-
 
143037
 
-
 
143038
      boolean this_present_maxDiscount = true;
-
 
143039
      boolean that_present_maxDiscount = true;
-
 
143040
      if (this_present_maxDiscount || that_present_maxDiscount) {
-
 
143041
        if (!(this_present_maxDiscount && that_present_maxDiscount))
-
 
143042
          return false;
-
 
143043
        if (this.maxDiscount != that.maxDiscount)
-
 
143044
          return false;
-
 
143045
      }
-
 
143046
 
-
 
143047
      return true;
-
 
143048
    }
-
 
143049
 
-
 
143050
    @Override
-
 
143051
    public int hashCode() {
-
 
143052
      return 0;
-
 
143053
    }
-
 
143054
 
-
 
143055
    public int compareTo(addFrc_args other) {
-
 
143056
      if (!getClass().equals(other.getClass())) {
-
 
143057
        return getClass().getName().compareTo(other.getClass().getName());
-
 
143058
      }
-
 
143059
 
-
 
143060
      int lastComparison = 0;
-
 
143061
      addFrc_args typedOther = (addFrc_args)other;
-
 
143062
 
-
 
143063
      lastComparison = Boolean.valueOf(isSetCircleId()).compareTo(typedOther.isSetCircleId());
-
 
143064
      if (lastComparison != 0) {
-
 
143065
        return lastComparison;
-
 
143066
      }
-
 
143067
      if (isSetCircleId()) {
-
 
143068
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleId, typedOther.circleId);
-
 
143069
        if (lastComparison != 0) {
-
 
143070
          return lastComparison;
-
 
143071
        }
-
 
143072
      }
-
 
143073
      lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
-
 
143074
      if (lastComparison != 0) {
-
 
143075
        return lastComparison;
-
 
143076
      }
-
 
143077
      if (isSetOperatorId()) {
-
 
143078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
-
 
143079
        if (lastComparison != 0) {
-
 
143080
          return lastComparison;
-
 
143081
        }
-
 
143082
      }
-
 
143083
      lastComparison = Boolean.valueOf(isSetDenomination()).compareTo(typedOther.isSetDenomination());
-
 
143084
      if (lastComparison != 0) {
-
 
143085
        return lastComparison;
-
 
143086
      }
-
 
143087
      if (isSetDenomination()) {
-
 
143088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.denomination, typedOther.denomination);
-
 
143089
        if (lastComparison != 0) {
-
 
143090
          return lastComparison;
-
 
143091
        }
-
 
143092
      }
-
 
143093
      lastComparison = Boolean.valueOf(isSetMaxDiscount()).compareTo(typedOther.isSetMaxDiscount());
-
 
143094
      if (lastComparison != 0) {
-
 
143095
        return lastComparison;
-
 
143096
      }
-
 
143097
      if (isSetMaxDiscount()) {
-
 
143098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxDiscount, typedOther.maxDiscount);
-
 
143099
        if (lastComparison != 0) {
-
 
143100
          return lastComparison;
-
 
143101
        }
-
 
143102
      }
-
 
143103
      return 0;
-
 
143104
    }
-
 
143105
 
-
 
143106
    public _Fields fieldForId(int fieldId) {
-
 
143107
      return _Fields.findByThriftId(fieldId);
-
 
143108
    }
-
 
143109
 
-
 
143110
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
143111
      org.apache.thrift.protocol.TField field;
-
 
143112
      iprot.readStructBegin();
-
 
143113
      while (true)
-
 
143114
      {
-
 
143115
        field = iprot.readFieldBegin();
-
 
143116
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
143117
          break;
-
 
143118
        }
-
 
143119
        switch (field.id) {
-
 
143120
          case 1: // CIRCLE_ID
-
 
143121
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
143122
              this.circleId = iprot.readI64();
-
 
143123
              setCircleIdIsSet(true);
-
 
143124
            } else { 
-
 
143125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143126
            }
-
 
143127
            break;
-
 
143128
          case 2: // OPERATOR_ID
-
 
143129
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
143130
              this.operatorId = iprot.readI64();
-
 
143131
              setOperatorIdIsSet(true);
-
 
143132
            } else { 
-
 
143133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143134
            }
-
 
143135
            break;
-
 
143136
          case 3: // DENOMINATION
-
 
143137
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
143138
              this.denomination = iprot.readI64();
-
 
143139
              setDenominationIsSet(true);
-
 
143140
            } else { 
-
 
143141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143142
            }
-
 
143143
            break;
-
 
143144
          case 4: // MAX_DISCOUNT
-
 
143145
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
143146
              this.maxDiscount = iprot.readI64();
-
 
143147
              setMaxDiscountIsSet(true);
-
 
143148
            } else { 
-
 
143149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143150
            }
-
 
143151
            break;
-
 
143152
          default:
-
 
143153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143154
        }
-
 
143155
        iprot.readFieldEnd();
-
 
143156
      }
-
 
143157
      iprot.readStructEnd();
-
 
143158
      validate();
-
 
143159
    }
-
 
143160
 
-
 
143161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
143162
      validate();
-
 
143163
 
-
 
143164
      oprot.writeStructBegin(STRUCT_DESC);
-
 
143165
      oprot.writeFieldBegin(CIRCLE_ID_FIELD_DESC);
-
 
143166
      oprot.writeI64(this.circleId);
-
 
143167
      oprot.writeFieldEnd();
-
 
143168
      oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
-
 
143169
      oprot.writeI64(this.operatorId);
-
 
143170
      oprot.writeFieldEnd();
-
 
143171
      oprot.writeFieldBegin(DENOMINATION_FIELD_DESC);
-
 
143172
      oprot.writeI64(this.denomination);
-
 
143173
      oprot.writeFieldEnd();
-
 
143174
      oprot.writeFieldBegin(MAX_DISCOUNT_FIELD_DESC);
-
 
143175
      oprot.writeI64(this.maxDiscount);
-
 
143176
      oprot.writeFieldEnd();
-
 
143177
      oprot.writeFieldStop();
-
 
143178
      oprot.writeStructEnd();
-
 
143179
    }
-
 
143180
 
-
 
143181
    @Override
-
 
143182
    public String toString() {
-
 
143183
      StringBuilder sb = new StringBuilder("addFrc_args(");
-
 
143184
      boolean first = true;
-
 
143185
 
-
 
143186
      sb.append("circleId:");
-
 
143187
      sb.append(this.circleId);
-
 
143188
      first = false;
-
 
143189
      if (!first) sb.append(", ");
-
 
143190
      sb.append("operatorId:");
-
 
143191
      sb.append(this.operatorId);
-
 
143192
      first = false;
-
 
143193
      if (!first) sb.append(", ");
-
 
143194
      sb.append("denomination:");
-
 
143195
      sb.append(this.denomination);
-
 
143196
      first = false;
-
 
143197
      if (!first) sb.append(", ");
-
 
143198
      sb.append("maxDiscount:");
-
 
143199
      sb.append(this.maxDiscount);
-
 
143200
      first = false;
-
 
143201
      sb.append(")");
-
 
143202
      return sb.toString();
-
 
143203
    }
-
 
143204
 
-
 
143205
    public void validate() throws org.apache.thrift.TException {
-
 
143206
      // check for required fields
-
 
143207
    }
-
 
143208
 
-
 
143209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
143210
      try {
-
 
143211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
143212
      } catch (org.apache.thrift.TException te) {
-
 
143213
        throw new java.io.IOException(te);
-
 
143214
      }
-
 
143215
    }
-
 
143216
 
-
 
143217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
143218
      try {
-
 
143219
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
143220
        __isset_bit_vector = new BitSet(1);
-
 
143221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
143222
      } catch (org.apache.thrift.TException te) {
-
 
143223
        throw new java.io.IOException(te);
-
 
143224
      }
-
 
143225
    }
-
 
143226
 
-
 
143227
  }
-
 
143228
 
-
 
143229
  public static class addFrc_result implements org.apache.thrift.TBase<addFrc_result, addFrc_result._Fields>, java.io.Serializable, Cloneable   {
-
 
143230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addFrc_result");
-
 
143231
 
-
 
143232
    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);
-
 
143233
 
-
 
143234
    private boolean success; // required
-
 
143235
 
-
 
143236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
143237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
143238
      SUCCESS((short)0, "success");
-
 
143239
 
-
 
143240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
143241
 
-
 
143242
      static {
-
 
143243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
143244
          byName.put(field.getFieldName(), field);
-
 
143245
        }
-
 
143246
      }
-
 
143247
 
-
 
143248
      /**
-
 
143249
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
143250
       */
-
 
143251
      public static _Fields findByThriftId(int fieldId) {
-
 
143252
        switch(fieldId) {
-
 
143253
          case 0: // SUCCESS
-
 
143254
            return SUCCESS;
-
 
143255
          default:
-
 
143256
            return null;
-
 
143257
        }
-
 
143258
      }
-
 
143259
 
-
 
143260
      /**
-
 
143261
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
143262
       * if it is not found.
-
 
143263
       */
-
 
143264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
143265
        _Fields fields = findByThriftId(fieldId);
-
 
143266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
143267
        return fields;
-
 
143268
      }
-
 
143269
 
-
 
143270
      /**
-
 
143271
       * Find the _Fields constant that matches name, or null if its not found.
-
 
143272
       */
-
 
143273
      public static _Fields findByName(String name) {
-
 
143274
        return byName.get(name);
-
 
143275
      }
-
 
143276
 
-
 
143277
      private final short _thriftId;
-
 
143278
      private final String _fieldName;
-
 
143279
 
-
 
143280
      _Fields(short thriftId, String fieldName) {
-
 
143281
        _thriftId = thriftId;
-
 
143282
        _fieldName = fieldName;
-
 
143283
      }
-
 
143284
 
-
 
143285
      public short getThriftFieldId() {
-
 
143286
        return _thriftId;
-
 
143287
      }
-
 
143288
 
-
 
143289
      public String getFieldName() {
-
 
143290
        return _fieldName;
-
 
143291
      }
-
 
143292
    }
-
 
143293
 
-
 
143294
    // isset id assignments
-
 
143295
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
143296
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
143297
 
-
 
143298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
143299
    static {
-
 
143300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
143301
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
143303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
143304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addFrc_result.class, metaDataMap);
-
 
143305
    }
-
 
143306
 
-
 
143307
    public addFrc_result() {
-
 
143308
    }
-
 
143309
 
-
 
143310
    public addFrc_result(
-
 
143311
      boolean success)
-
 
143312
    {
-
 
143313
      this();
-
 
143314
      this.success = success;
-
 
143315
      setSuccessIsSet(true);
-
 
143316
    }
-
 
143317
 
-
 
143318
    /**
-
 
143319
     * Performs a deep copy on <i>other</i>.
-
 
143320
     */
-
 
143321
    public addFrc_result(addFrc_result other) {
-
 
143322
      __isset_bit_vector.clear();
-
 
143323
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
143324
      this.success = other.success;
-
 
143325
    }
-
 
143326
 
-
 
143327
    public addFrc_result deepCopy() {
-
 
143328
      return new addFrc_result(this);
-
 
143329
    }
-
 
143330
 
-
 
143331
    @Override
-
 
143332
    public void clear() {
-
 
143333
      setSuccessIsSet(false);
-
 
143334
      this.success = false;
-
 
143335
    }
-
 
143336
 
-
 
143337
    public boolean isSuccess() {
-
 
143338
      return this.success;
-
 
143339
    }
-
 
143340
 
-
 
143341
    public void setSuccess(boolean success) {
-
 
143342
      this.success = success;
-
 
143343
      setSuccessIsSet(true);
-
 
143344
    }
-
 
143345
 
-
 
143346
    public void unsetSuccess() {
-
 
143347
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
143348
    }
-
 
143349
 
-
 
143350
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
143351
    public boolean isSetSuccess() {
-
 
143352
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
143353
    }
-
 
143354
 
-
 
143355
    public void setSuccessIsSet(boolean value) {
-
 
143356
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
143357
    }
-
 
143358
 
-
 
143359
    public void setFieldValue(_Fields field, Object value) {
-
 
143360
      switch (field) {
-
 
143361
      case SUCCESS:
-
 
143362
        if (value == null) {
-
 
143363
          unsetSuccess();
-
 
143364
        } else {
-
 
143365
          setSuccess((Boolean)value);
-
 
143366
        }
-
 
143367
        break;
-
 
143368
 
-
 
143369
      }
-
 
143370
    }
-
 
143371
 
-
 
143372
    public Object getFieldValue(_Fields field) {
-
 
143373
      switch (field) {
-
 
143374
      case SUCCESS:
-
 
143375
        return Boolean.valueOf(isSuccess());
-
 
143376
 
-
 
143377
      }
-
 
143378
      throw new IllegalStateException();
-
 
143379
    }
-
 
143380
 
-
 
143381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
143382
    public boolean isSet(_Fields field) {
-
 
143383
      if (field == null) {
-
 
143384
        throw new IllegalArgumentException();
-
 
143385
      }
-
 
143386
 
-
 
143387
      switch (field) {
-
 
143388
      case SUCCESS:
-
 
143389
        return isSetSuccess();
-
 
143390
      }
-
 
143391
      throw new IllegalStateException();
-
 
143392
    }
-
 
143393
 
-
 
143394
    @Override
-
 
143395
    public boolean equals(Object that) {
-
 
143396
      if (that == null)
-
 
143397
        return false;
-
 
143398
      if (that instanceof addFrc_result)
-
 
143399
        return this.equals((addFrc_result)that);
-
 
143400
      return false;
-
 
143401
    }
-
 
143402
 
-
 
143403
    public boolean equals(addFrc_result that) {
-
 
143404
      if (that == null)
-
 
143405
        return false;
-
 
143406
 
-
 
143407
      boolean this_present_success = true;
-
 
143408
      boolean that_present_success = true;
-
 
143409
      if (this_present_success || that_present_success) {
-
 
143410
        if (!(this_present_success && that_present_success))
-
 
143411
          return false;
-
 
143412
        if (this.success != that.success)
-
 
143413
          return false;
-
 
143414
      }
-
 
143415
 
-
 
143416
      return true;
-
 
143417
    }
-
 
143418
 
-
 
143419
    @Override
-
 
143420
    public int hashCode() {
-
 
143421
      return 0;
-
 
143422
    }
-
 
143423
 
-
 
143424
    public int compareTo(addFrc_result other) {
-
 
143425
      if (!getClass().equals(other.getClass())) {
-
 
143426
        return getClass().getName().compareTo(other.getClass().getName());
-
 
143427
      }
-
 
143428
 
-
 
143429
      int lastComparison = 0;
-
 
143430
      addFrc_result typedOther = (addFrc_result)other;
-
 
143431
 
-
 
143432
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
143433
      if (lastComparison != 0) {
-
 
143434
        return lastComparison;
-
 
143435
      }
-
 
143436
      if (isSetSuccess()) {
-
 
143437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
143438
        if (lastComparison != 0) {
-
 
143439
          return lastComparison;
-
 
143440
        }
-
 
143441
      }
-
 
143442
      return 0;
-
 
143443
    }
-
 
143444
 
-
 
143445
    public _Fields fieldForId(int fieldId) {
-
 
143446
      return _Fields.findByThriftId(fieldId);
-
 
143447
    }
-
 
143448
 
-
 
143449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
143450
      org.apache.thrift.protocol.TField field;
-
 
143451
      iprot.readStructBegin();
-
 
143452
      while (true)
-
 
143453
      {
-
 
143454
        field = iprot.readFieldBegin();
-
 
143455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
143456
          break;
-
 
143457
        }
-
 
143458
        switch (field.id) {
-
 
143459
          case 0: // SUCCESS
-
 
143460
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
143461
              this.success = iprot.readBool();
-
 
143462
              setSuccessIsSet(true);
-
 
143463
            } else { 
-
 
143464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143465
            }
-
 
143466
            break;
-
 
143467
          default:
-
 
143468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143469
        }
-
 
143470
        iprot.readFieldEnd();
-
 
143471
      }
-
 
143472
      iprot.readStructEnd();
-
 
143473
      validate();
-
 
143474
    }
-
 
143475
 
-
 
143476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
143477
      oprot.writeStructBegin(STRUCT_DESC);
-
 
143478
 
-
 
143479
      if (this.isSetSuccess()) {
-
 
143480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
143481
        oprot.writeBool(this.success);
-
 
143482
        oprot.writeFieldEnd();
-
 
143483
      }
-
 
143484
      oprot.writeFieldStop();
-
 
143485
      oprot.writeStructEnd();
-
 
143486
    }
-
 
143487
 
-
 
143488
    @Override
-
 
143489
    public String toString() {
-
 
143490
      StringBuilder sb = new StringBuilder("addFrc_result(");
-
 
143491
      boolean first = true;
-
 
143492
 
-
 
143493
      sb.append("success:");
-
 
143494
      sb.append(this.success);
-
 
143495
      first = false;
-
 
143496
      sb.append(")");
-
 
143497
      return sb.toString();
-
 
143498
    }
-
 
143499
 
142581
    public void validate() throws org.apache.thrift.TException {
143500
    public void validate() throws org.apache.thrift.TException {
142582
      // check for required fields
143501
      // check for required fields
142583
    }
143502
    }
142584
 
143503
 
142585
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
143504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {