Subversion Repositories SmartDukaan

Rev

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

Rev 6336 Rev 6371
Line 896... Line 896...
896
     * @param circleCode
896
     * @param circleCode
897
     * @param denominationType
897
     * @param denominationType
898
     */
898
     */
899
    public List<RechargeDenomination> getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType) throws TransactionServiceException, org.apache.thrift.TException;
899
    public List<RechargeDenomination> getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType) throws TransactionServiceException, org.apache.thrift.TException;
900
 
900
 
-
 
901
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException;
-
 
902
 
901
  }
903
  }
902
 
904
 
903
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
905
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
904
 
906
 
905
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
907
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1188... Line 1190...
1188
 
1190
 
1189
    public void getPlansForOperator(long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPlansForOperator_call> resultHandler) throws org.apache.thrift.TException;
1191
    public void getPlansForOperator(long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPlansForOperator_call> resultHandler) throws org.apache.thrift.TException;
1190
 
1192
 
1191
    public void getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeDenominations_call> resultHandler) throws org.apache.thrift.TException;
1193
    public void getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeDenominations_call> resultHandler) throws org.apache.thrift.TException;
1192
 
1194
 
-
 
1195
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAvailabilityStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
1196
 
1193
  }
1197
  }
1194
 
1198
 
1195
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1199
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1196
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1200
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1197
      public Factory() {}
1201
      public Factory() {}
Line 4845... Line 4849...
4845
        throw result.ex;
4849
        throw result.ex;
4846
      }
4850
      }
4847
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeDenominations failed: unknown result");
4851
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeDenominations failed: unknown result");
4848
    }
4852
    }
4849
 
4853
 
-
 
4854
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException
-
 
4855
    {
-
 
4856
      send_updateAvailabilityStatus(operatorId, circleId, isAvailable);
-
 
4857
      recv_updateAvailabilityStatus();
-
 
4858
    }
-
 
4859
 
-
 
4860
    public void send_updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException
-
 
4861
    {
-
 
4862
      updateAvailabilityStatus_args args = new updateAvailabilityStatus_args();
-
 
4863
      args.setOperatorId(operatorId);
-
 
4864
      args.setCircleId(circleId);
-
 
4865
      args.setIsAvailable(isAvailable);
-
 
4866
      sendBase("updateAvailabilityStatus", args);
-
 
4867
    }
-
 
4868
 
-
 
4869
    public void recv_updateAvailabilityStatus() throws org.apache.thrift.TException
-
 
4870
    {
-
 
4871
      updateAvailabilityStatus_result result = new updateAvailabilityStatus_result();
-
 
4872
      receiveBase(result, "updateAvailabilityStatus");
-
 
4873
      return;
-
 
4874
    }
-
 
4875
 
4850
  }
4876
  }
4851
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4877
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4852
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4878
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4853
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4879
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4854
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4880
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9891... Line 9917...
9891
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9917
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9892
        return (new Client(prot)).recv_getRechargeDenominations();
9918
        return (new Client(prot)).recv_getRechargeDenominations();
9893
      }
9919
      }
9894
    }
9920
    }
9895
 
9921
 
-
 
9922
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable, org.apache.thrift.async.AsyncMethodCallback<updateAvailabilityStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
9923
      checkReady();
-
 
9924
      updateAvailabilityStatus_call method_call = new updateAvailabilityStatus_call(operatorId, circleId, isAvailable, resultHandler, this, ___protocolFactory, ___transport);
-
 
9925
      this.___currentMethod = method_call;
-
 
9926
      ___manager.call(method_call);
-
 
9927
    }
-
 
9928
 
-
 
9929
    public static class updateAvailabilityStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9930
      private long operatorId;
-
 
9931
      private long circleId;
-
 
9932
      private boolean isAvailable;
-
 
9933
      public updateAvailabilityStatus_call(long operatorId, long circleId, boolean isAvailable, org.apache.thrift.async.AsyncMethodCallback<updateAvailabilityStatus_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 {
-
 
9934
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9935
        this.operatorId = operatorId;
-
 
9936
        this.circleId = circleId;
-
 
9937
        this.isAvailable = isAvailable;
-
 
9938
      }
-
 
9939
 
-
 
9940
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9941
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAvailabilityStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9942
        updateAvailabilityStatus_args args = new updateAvailabilityStatus_args();
-
 
9943
        args.setOperatorId(operatorId);
-
 
9944
        args.setCircleId(circleId);
-
 
9945
        args.setIsAvailable(isAvailable);
-
 
9946
        args.write(prot);
-
 
9947
        prot.writeMessageEnd();
-
 
9948
      }
-
 
9949
 
-
 
9950
      public void getResult() throws org.apache.thrift.TException {
-
 
9951
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9952
          throw new IllegalStateException("Method call not finished!");
-
 
9953
        }
-
 
9954
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9955
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9956
        (new Client(prot)).recv_updateAvailabilityStatus();
-
 
9957
      }
-
 
9958
    }
-
 
9959
 
9896
  }
9960
  }
9897
 
9961
 
9898
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9962
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9899
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9963
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9900
    public Processor(I iface) {
9964
    public Processor(I iface) {
Line 10048... Line 10112...
10048
      processMap.put("addAmountToWallet", new addAmountToWallet());
10112
      processMap.put("addAmountToWallet", new addAmountToWallet());
10049
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
10113
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
10050
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
10114
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
10051
      processMap.put("getPlansForOperator", new getPlansForOperator());
10115
      processMap.put("getPlansForOperator", new getPlansForOperator());
10052
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
10116
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
-
 
10117
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
10053
      return processMap;
10118
      return processMap;
10054
    }
10119
    }
10055
 
10120
 
10056
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10121
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10057
      public createTransaction() {
10122
      public createTransaction() {
Line 12777... Line 12842...
12777
        }
12842
        }
12778
        return result;
12843
        return result;
12779
      }
12844
      }
12780
    }
12845
    }
12781
 
12846
 
-
 
12847
    private static class updateAvailabilityStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAvailabilityStatus_args> {
-
 
12848
      public updateAvailabilityStatus() {
-
 
12849
        super("updateAvailabilityStatus");
-
 
12850
      }
-
 
12851
 
-
 
12852
      protected updateAvailabilityStatus_args getEmptyArgsInstance() {
-
 
12853
        return new updateAvailabilityStatus_args();
-
 
12854
      }
-
 
12855
 
-
 
12856
      protected updateAvailabilityStatus_result getResult(I iface, updateAvailabilityStatus_args args) throws org.apache.thrift.TException {
-
 
12857
        updateAvailabilityStatus_result result = new updateAvailabilityStatus_result();
-
 
12858
        iface.updateAvailabilityStatus(args.operatorId, args.circleId, args.isAvailable);
-
 
12859
        return result;
-
 
12860
      }
-
 
12861
    }
-
 
12862
 
12782
  }
12863
  }
12783
 
12864
 
12784
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12865
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12866
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12786
 
12867
 
Line 117683... Line 117764...
117683
      sb.append(")");
117764
      sb.append(")");
117684
      return sb.toString();
117765
      return sb.toString();
117685
    }
117766
    }
117686
 
117767
 
117687
    public void validate() throws org.apache.thrift.TException {
117768
    public void validate() throws org.apache.thrift.TException {
-
 
117769
      // check for required fields
-
 
117770
    }
-
 
117771
 
-
 
117772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
117773
      try {
-
 
117774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
117775
      } catch (org.apache.thrift.TException te) {
-
 
117776
        throw new java.io.IOException(te);
-
 
117777
      }
-
 
117778
    }
-
 
117779
 
-
 
117780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
117781
      try {
-
 
117782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
117783
      } catch (org.apache.thrift.TException te) {
-
 
117784
        throw new java.io.IOException(te);
-
 
117785
      }
-
 
117786
    }
-
 
117787
 
-
 
117788
  }
-
 
117789
 
-
 
117790
  public static class updateAvailabilityStatus_args implements org.apache.thrift.TBase<updateAvailabilityStatus_args, updateAvailabilityStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
117791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAvailabilityStatus_args");
-
 
117792
 
-
 
117793
    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)1);
-
 
117794
    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)2);
-
 
117795
    private static final org.apache.thrift.protocol.TField IS_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("isAvailable", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
117796
 
-
 
117797
    private long operatorId; // required
-
 
117798
    private long circleId; // required
-
 
117799
    private boolean isAvailable; // required
-
 
117800
 
-
 
117801
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
117802
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
117803
      OPERATOR_ID((short)1, "operatorId"),
-
 
117804
      CIRCLE_ID((short)2, "circleId"),
-
 
117805
      IS_AVAILABLE((short)3, "isAvailable");
-
 
117806
 
-
 
117807
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
117808
 
-
 
117809
      static {
-
 
117810
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
117811
          byName.put(field.getFieldName(), field);
-
 
117812
        }
-
 
117813
      }
-
 
117814
 
-
 
117815
      /**
-
 
117816
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
117817
       */
-
 
117818
      public static _Fields findByThriftId(int fieldId) {
-
 
117819
        switch(fieldId) {
-
 
117820
          case 1: // OPERATOR_ID
-
 
117821
            return OPERATOR_ID;
-
 
117822
          case 2: // CIRCLE_ID
-
 
117823
            return CIRCLE_ID;
-
 
117824
          case 3: // IS_AVAILABLE
-
 
117825
            return IS_AVAILABLE;
-
 
117826
          default:
-
 
117827
            return null;
-
 
117828
        }
-
 
117829
      }
-
 
117830
 
-
 
117831
      /**
-
 
117832
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
117833
       * if it is not found.
-
 
117834
       */
-
 
117835
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
117836
        _Fields fields = findByThriftId(fieldId);
-
 
117837
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
117838
        return fields;
-
 
117839
      }
-
 
117840
 
-
 
117841
      /**
-
 
117842
       * Find the _Fields constant that matches name, or null if its not found.
-
 
117843
       */
-
 
117844
      public static _Fields findByName(String name) {
-
 
117845
        return byName.get(name);
-
 
117846
      }
-
 
117847
 
-
 
117848
      private final short _thriftId;
-
 
117849
      private final String _fieldName;
-
 
117850
 
-
 
117851
      _Fields(short thriftId, String fieldName) {
-
 
117852
        _thriftId = thriftId;
-
 
117853
        _fieldName = fieldName;
-
 
117854
      }
-
 
117855
 
-
 
117856
      public short getThriftFieldId() {
-
 
117857
        return _thriftId;
-
 
117858
      }
-
 
117859
 
-
 
117860
      public String getFieldName() {
-
 
117861
        return _fieldName;
-
 
117862
      }
-
 
117863
    }
-
 
117864
 
-
 
117865
    // isset id assignments
-
 
117866
    private static final int __OPERATORID_ISSET_ID = 0;
-
 
117867
    private static final int __CIRCLEID_ISSET_ID = 1;
-
 
117868
    private static final int __ISAVAILABLE_ISSET_ID = 2;
-
 
117869
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
117870
 
-
 
117871
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
117872
    static {
-
 
117873
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
117874
      tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117875
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
117876
      tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117877
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
117878
      tmpMap.put(_Fields.IS_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("isAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
117880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
117881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAvailabilityStatus_args.class, metaDataMap);
-
 
117882
    }
-
 
117883
 
-
 
117884
    public updateAvailabilityStatus_args() {
-
 
117885
    }
-
 
117886
 
-
 
117887
    public updateAvailabilityStatus_args(
-
 
117888
      long operatorId,
-
 
117889
      long circleId,
-
 
117890
      boolean isAvailable)
-
 
117891
    {
-
 
117892
      this();
-
 
117893
      this.operatorId = operatorId;
-
 
117894
      setOperatorIdIsSet(true);
-
 
117895
      this.circleId = circleId;
-
 
117896
      setCircleIdIsSet(true);
-
 
117897
      this.isAvailable = isAvailable;
-
 
117898
      setIsAvailableIsSet(true);
-
 
117899
    }
-
 
117900
 
-
 
117901
    /**
-
 
117902
     * Performs a deep copy on <i>other</i>.
-
 
117903
     */
-
 
117904
    public updateAvailabilityStatus_args(updateAvailabilityStatus_args other) {
-
 
117905
      __isset_bit_vector.clear();
-
 
117906
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
117907
      this.operatorId = other.operatorId;
-
 
117908
      this.circleId = other.circleId;
-
 
117909
      this.isAvailable = other.isAvailable;
-
 
117910
    }
-
 
117911
 
-
 
117912
    public updateAvailabilityStatus_args deepCopy() {
-
 
117913
      return new updateAvailabilityStatus_args(this);
-
 
117914
    }
-
 
117915
 
-
 
117916
    @Override
-
 
117917
    public void clear() {
-
 
117918
      setOperatorIdIsSet(false);
-
 
117919
      this.operatorId = 0;
-
 
117920
      setCircleIdIsSet(false);
-
 
117921
      this.circleId = 0;
-
 
117922
      setIsAvailableIsSet(false);
-
 
117923
      this.isAvailable = false;
-
 
117924
    }
-
 
117925
 
-
 
117926
    public long getOperatorId() {
-
 
117927
      return this.operatorId;
-
 
117928
    }
-
 
117929
 
-
 
117930
    public void setOperatorId(long operatorId) {
-
 
117931
      this.operatorId = operatorId;
-
 
117932
      setOperatorIdIsSet(true);
-
 
117933
    }
-
 
117934
 
-
 
117935
    public void unsetOperatorId() {
-
 
117936
      __isset_bit_vector.clear(__OPERATORID_ISSET_ID);
-
 
117937
    }
-
 
117938
 
-
 
117939
    /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
-
 
117940
    public boolean isSetOperatorId() {
-
 
117941
      return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
-
 
117942
    }
-
 
117943
 
-
 
117944
    public void setOperatorIdIsSet(boolean value) {
-
 
117945
      __isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
-
 
117946
    }
-
 
117947
 
-
 
117948
    public long getCircleId() {
-
 
117949
      return this.circleId;
-
 
117950
    }
-
 
117951
 
-
 
117952
    public void setCircleId(long circleId) {
-
 
117953
      this.circleId = circleId;
-
 
117954
      setCircleIdIsSet(true);
-
 
117955
    }
-
 
117956
 
-
 
117957
    public void unsetCircleId() {
-
 
117958
      __isset_bit_vector.clear(__CIRCLEID_ISSET_ID);
-
 
117959
    }
-
 
117960
 
-
 
117961
    /** Returns true if field circleId is set (has been assigned a value) and false otherwise */
-
 
117962
    public boolean isSetCircleId() {
-
 
117963
      return __isset_bit_vector.get(__CIRCLEID_ISSET_ID);
-
 
117964
    }
-
 
117965
 
-
 
117966
    public void setCircleIdIsSet(boolean value) {
-
 
117967
      __isset_bit_vector.set(__CIRCLEID_ISSET_ID, value);
-
 
117968
    }
-
 
117969
 
-
 
117970
    public boolean isIsAvailable() {
-
 
117971
      return this.isAvailable;
-
 
117972
    }
-
 
117973
 
-
 
117974
    public void setIsAvailable(boolean isAvailable) {
-
 
117975
      this.isAvailable = isAvailable;
-
 
117976
      setIsAvailableIsSet(true);
-
 
117977
    }
-
 
117978
 
-
 
117979
    public void unsetIsAvailable() {
-
 
117980
      __isset_bit_vector.clear(__ISAVAILABLE_ISSET_ID);
-
 
117981
    }
-
 
117982
 
-
 
117983
    /** Returns true if field isAvailable is set (has been assigned a value) and false otherwise */
-
 
117984
    public boolean isSetIsAvailable() {
-
 
117985
      return __isset_bit_vector.get(__ISAVAILABLE_ISSET_ID);
-
 
117986
    }
-
 
117987
 
-
 
117988
    public void setIsAvailableIsSet(boolean value) {
-
 
117989
      __isset_bit_vector.set(__ISAVAILABLE_ISSET_ID, value);
-
 
117990
    }
-
 
117991
 
-
 
117992
    public void setFieldValue(_Fields field, Object value) {
-
 
117993
      switch (field) {
-
 
117994
      case OPERATOR_ID:
-
 
117995
        if (value == null) {
-
 
117996
          unsetOperatorId();
-
 
117997
        } else {
-
 
117998
          setOperatorId((Long)value);
-
 
117999
        }
-
 
118000
        break;
-
 
118001
 
-
 
118002
      case CIRCLE_ID:
-
 
118003
        if (value == null) {
-
 
118004
          unsetCircleId();
-
 
118005
        } else {
-
 
118006
          setCircleId((Long)value);
-
 
118007
        }
-
 
118008
        break;
-
 
118009
 
-
 
118010
      case IS_AVAILABLE:
-
 
118011
        if (value == null) {
-
 
118012
          unsetIsAvailable();
-
 
118013
        } else {
-
 
118014
          setIsAvailable((Boolean)value);
-
 
118015
        }
-
 
118016
        break;
-
 
118017
 
-
 
118018
      }
-
 
118019
    }
-
 
118020
 
-
 
118021
    public Object getFieldValue(_Fields field) {
-
 
118022
      switch (field) {
-
 
118023
      case OPERATOR_ID:
-
 
118024
        return Long.valueOf(getOperatorId());
-
 
118025
 
-
 
118026
      case CIRCLE_ID:
-
 
118027
        return Long.valueOf(getCircleId());
-
 
118028
 
-
 
118029
      case IS_AVAILABLE:
-
 
118030
        return Boolean.valueOf(isIsAvailable());
-
 
118031
 
-
 
118032
      }
-
 
118033
      throw new IllegalStateException();
-
 
118034
    }
-
 
118035
 
-
 
118036
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118037
    public boolean isSet(_Fields field) {
-
 
118038
      if (field == null) {
-
 
118039
        throw new IllegalArgumentException();
-
 
118040
      }
-
 
118041
 
-
 
118042
      switch (field) {
-
 
118043
      case OPERATOR_ID:
-
 
118044
        return isSetOperatorId();
-
 
118045
      case CIRCLE_ID:
-
 
118046
        return isSetCircleId();
-
 
118047
      case IS_AVAILABLE:
-
 
118048
        return isSetIsAvailable();
-
 
118049
      }
-
 
118050
      throw new IllegalStateException();
-
 
118051
    }
-
 
118052
 
-
 
118053
    @Override
-
 
118054
    public boolean equals(Object that) {
-
 
118055
      if (that == null)
-
 
118056
        return false;
-
 
118057
      if (that instanceof updateAvailabilityStatus_args)
-
 
118058
        return this.equals((updateAvailabilityStatus_args)that);
-
 
118059
      return false;
-
 
118060
    }
-
 
118061
 
-
 
118062
    public boolean equals(updateAvailabilityStatus_args that) {
-
 
118063
      if (that == null)
-
 
118064
        return false;
-
 
118065
 
-
 
118066
      boolean this_present_operatorId = true;
-
 
118067
      boolean that_present_operatorId = true;
-
 
118068
      if (this_present_operatorId || that_present_operatorId) {
-
 
118069
        if (!(this_present_operatorId && that_present_operatorId))
-
 
118070
          return false;
-
 
118071
        if (this.operatorId != that.operatorId)
-
 
118072
          return false;
-
 
118073
      }
-
 
118074
 
-
 
118075
      boolean this_present_circleId = true;
-
 
118076
      boolean that_present_circleId = true;
-
 
118077
      if (this_present_circleId || that_present_circleId) {
-
 
118078
        if (!(this_present_circleId && that_present_circleId))
-
 
118079
          return false;
-
 
118080
        if (this.circleId != that.circleId)
-
 
118081
          return false;
-
 
118082
      }
-
 
118083
 
-
 
118084
      boolean this_present_isAvailable = true;
-
 
118085
      boolean that_present_isAvailable = true;
-
 
118086
      if (this_present_isAvailable || that_present_isAvailable) {
-
 
118087
        if (!(this_present_isAvailable && that_present_isAvailable))
-
 
118088
          return false;
-
 
118089
        if (this.isAvailable != that.isAvailable)
-
 
118090
          return false;
-
 
118091
      }
-
 
118092
 
-
 
118093
      return true;
-
 
118094
    }
-
 
118095
 
-
 
118096
    @Override
-
 
118097
    public int hashCode() {
-
 
118098
      return 0;
-
 
118099
    }
-
 
118100
 
-
 
118101
    public int compareTo(updateAvailabilityStatus_args other) {
-
 
118102
      if (!getClass().equals(other.getClass())) {
-
 
118103
        return getClass().getName().compareTo(other.getClass().getName());
-
 
118104
      }
-
 
118105
 
-
 
118106
      int lastComparison = 0;
-
 
118107
      updateAvailabilityStatus_args typedOther = (updateAvailabilityStatus_args)other;
-
 
118108
 
-
 
118109
      lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
-
 
118110
      if (lastComparison != 0) {
-
 
118111
        return lastComparison;
-
 
118112
      }
-
 
118113
      if (isSetOperatorId()) {
-
 
118114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
-
 
118115
        if (lastComparison != 0) {
-
 
118116
          return lastComparison;
-
 
118117
        }
-
 
118118
      }
-
 
118119
      lastComparison = Boolean.valueOf(isSetCircleId()).compareTo(typedOther.isSetCircleId());
-
 
118120
      if (lastComparison != 0) {
-
 
118121
        return lastComparison;
-
 
118122
      }
-
 
118123
      if (isSetCircleId()) {
-
 
118124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleId, typedOther.circleId);
-
 
118125
        if (lastComparison != 0) {
-
 
118126
          return lastComparison;
-
 
118127
        }
-
 
118128
      }
-
 
118129
      lastComparison = Boolean.valueOf(isSetIsAvailable()).compareTo(typedOther.isSetIsAvailable());
-
 
118130
      if (lastComparison != 0) {
-
 
118131
        return lastComparison;
-
 
118132
      }
-
 
118133
      if (isSetIsAvailable()) {
-
 
118134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAvailable, typedOther.isAvailable);
-
 
118135
        if (lastComparison != 0) {
-
 
118136
          return lastComparison;
-
 
118137
        }
-
 
118138
      }
-
 
118139
      return 0;
-
 
118140
    }
-
 
118141
 
-
 
118142
    public _Fields fieldForId(int fieldId) {
-
 
118143
      return _Fields.findByThriftId(fieldId);
-
 
118144
    }
-
 
118145
 
-
 
118146
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
118147
      org.apache.thrift.protocol.TField field;
-
 
118148
      iprot.readStructBegin();
-
 
118149
      while (true)
-
 
118150
      {
-
 
118151
        field = iprot.readFieldBegin();
-
 
118152
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
118153
          break;
-
 
118154
        }
-
 
118155
        switch (field.id) {
-
 
118156
          case 1: // OPERATOR_ID
-
 
118157
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
118158
              this.operatorId = iprot.readI64();
-
 
118159
              setOperatorIdIsSet(true);
-
 
118160
            } else { 
-
 
118161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118162
            }
-
 
118163
            break;
-
 
118164
          case 2: // CIRCLE_ID
-
 
118165
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
118166
              this.circleId = iprot.readI64();
-
 
118167
              setCircleIdIsSet(true);
-
 
118168
            } else { 
-
 
118169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118170
            }
-
 
118171
            break;
-
 
118172
          case 3: // IS_AVAILABLE
-
 
118173
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
118174
              this.isAvailable = iprot.readBool();
-
 
118175
              setIsAvailableIsSet(true);
-
 
118176
            } else { 
-
 
118177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118178
            }
-
 
118179
            break;
-
 
118180
          default:
-
 
118181
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118182
        }
-
 
118183
        iprot.readFieldEnd();
-
 
118184
      }
-
 
118185
      iprot.readStructEnd();
-
 
118186
      validate();
-
 
118187
    }
-
 
118188
 
-
 
118189
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
118190
      validate();
-
 
118191
 
-
 
118192
      oprot.writeStructBegin(STRUCT_DESC);
-
 
118193
      oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
-
 
118194
      oprot.writeI64(this.operatorId);
-
 
118195
      oprot.writeFieldEnd();
-
 
118196
      oprot.writeFieldBegin(CIRCLE_ID_FIELD_DESC);
-
 
118197
      oprot.writeI64(this.circleId);
-
 
118198
      oprot.writeFieldEnd();
-
 
118199
      oprot.writeFieldBegin(IS_AVAILABLE_FIELD_DESC);
-
 
118200
      oprot.writeBool(this.isAvailable);
-
 
118201
      oprot.writeFieldEnd();
-
 
118202
      oprot.writeFieldStop();
-
 
118203
      oprot.writeStructEnd();
-
 
118204
    }
-
 
118205
 
-
 
118206
    @Override
-
 
118207
    public String toString() {
-
 
118208
      StringBuilder sb = new StringBuilder("updateAvailabilityStatus_args(");
-
 
118209
      boolean first = true;
-
 
118210
 
-
 
118211
      sb.append("operatorId:");
-
 
118212
      sb.append(this.operatorId);
-
 
118213
      first = false;
-
 
118214
      if (!first) sb.append(", ");
-
 
118215
      sb.append("circleId:");
-
 
118216
      sb.append(this.circleId);
-
 
118217
      first = false;
-
 
118218
      if (!first) sb.append(", ");
-
 
118219
      sb.append("isAvailable:");
-
 
118220
      sb.append(this.isAvailable);
-
 
118221
      first = false;
-
 
118222
      sb.append(")");
-
 
118223
      return sb.toString();
-
 
118224
    }
-
 
118225
 
-
 
118226
    public void validate() throws org.apache.thrift.TException {
-
 
118227
      // check for required fields
-
 
118228
    }
-
 
118229
 
-
 
118230
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
118231
      try {
-
 
118232
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
118233
      } catch (org.apache.thrift.TException te) {
-
 
118234
        throw new java.io.IOException(te);
-
 
118235
      }
-
 
118236
    }
-
 
118237
 
-
 
118238
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
118239
      try {
-
 
118240
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
118241
        __isset_bit_vector = new BitSet(1);
-
 
118242
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
118243
      } catch (org.apache.thrift.TException te) {
-
 
118244
        throw new java.io.IOException(te);
-
 
118245
      }
-
 
118246
    }
-
 
118247
 
-
 
118248
  }
-
 
118249
 
-
 
118250
  public static class updateAvailabilityStatus_result implements org.apache.thrift.TBase<updateAvailabilityStatus_result, updateAvailabilityStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
118251
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAvailabilityStatus_result");
-
 
118252
 
-
 
118253
 
-
 
118254
 
-
 
118255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
118256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
118257
;
-
 
118258
 
-
 
118259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
118260
 
-
 
118261
      static {
-
 
118262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
118263
          byName.put(field.getFieldName(), field);
-
 
118264
        }
-
 
118265
      }
-
 
118266
 
-
 
118267
      /**
-
 
118268
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
118269
       */
-
 
118270
      public static _Fields findByThriftId(int fieldId) {
-
 
118271
        switch(fieldId) {
-
 
118272
          default:
-
 
118273
            return null;
-
 
118274
        }
-
 
118275
      }
-
 
118276
 
-
 
118277
      /**
-
 
118278
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
118279
       * if it is not found.
-
 
118280
       */
-
 
118281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
118282
        _Fields fields = findByThriftId(fieldId);
-
 
118283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
118284
        return fields;
-
 
118285
      }
-
 
118286
 
-
 
118287
      /**
-
 
118288
       * Find the _Fields constant that matches name, or null if its not found.
-
 
118289
       */
-
 
118290
      public static _Fields findByName(String name) {
-
 
118291
        return byName.get(name);
-
 
118292
      }
-
 
118293
 
-
 
118294
      private final short _thriftId;
-
 
118295
      private final String _fieldName;
-
 
118296
 
-
 
118297
      _Fields(short thriftId, String fieldName) {
-
 
118298
        _thriftId = thriftId;
-
 
118299
        _fieldName = fieldName;
-
 
118300
      }
-
 
118301
 
-
 
118302
      public short getThriftFieldId() {
-
 
118303
        return _thriftId;
-
 
118304
      }
-
 
118305
 
-
 
118306
      public String getFieldName() {
-
 
118307
        return _fieldName;
-
 
118308
      }
-
 
118309
    }
-
 
118310
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
118311
    static {
-
 
118312
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
118313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
118314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAvailabilityStatus_result.class, metaDataMap);
-
 
118315
    }
-
 
118316
 
-
 
118317
    public updateAvailabilityStatus_result() {
-
 
118318
    }
-
 
118319
 
-
 
118320
    /**
-
 
118321
     * Performs a deep copy on <i>other</i>.
-
 
118322
     */
-
 
118323
    public updateAvailabilityStatus_result(updateAvailabilityStatus_result other) {
-
 
118324
    }
-
 
118325
 
-
 
118326
    public updateAvailabilityStatus_result deepCopy() {
-
 
118327
      return new updateAvailabilityStatus_result(this);
-
 
118328
    }
-
 
118329
 
-
 
118330
    @Override
-
 
118331
    public void clear() {
-
 
118332
    }
-
 
118333
 
-
 
118334
    public void setFieldValue(_Fields field, Object value) {
-
 
118335
      switch (field) {
-
 
118336
      }
-
 
118337
    }
-
 
118338
 
-
 
118339
    public Object getFieldValue(_Fields field) {
-
 
118340
      switch (field) {
-
 
118341
      }
-
 
118342
      throw new IllegalStateException();
-
 
118343
    }
-
 
118344
 
-
 
118345
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118346
    public boolean isSet(_Fields field) {
-
 
118347
      if (field == null) {
-
 
118348
        throw new IllegalArgumentException();
-
 
118349
      }
-
 
118350
 
-
 
118351
      switch (field) {
-
 
118352
      }
-
 
118353
      throw new IllegalStateException();
-
 
118354
    }
-
 
118355
 
-
 
118356
    @Override
-
 
118357
    public boolean equals(Object that) {
-
 
118358
      if (that == null)
-
 
118359
        return false;
-
 
118360
      if (that instanceof updateAvailabilityStatus_result)
-
 
118361
        return this.equals((updateAvailabilityStatus_result)that);
-
 
118362
      return false;
-
 
118363
    }
-
 
118364
 
-
 
118365
    public boolean equals(updateAvailabilityStatus_result that) {
-
 
118366
      if (that == null)
-
 
118367
        return false;
-
 
118368
 
-
 
118369
      return true;
-
 
118370
    }
-
 
118371
 
-
 
118372
    @Override
-
 
118373
    public int hashCode() {
-
 
118374
      return 0;
-
 
118375
    }
-
 
118376
 
-
 
118377
    public int compareTo(updateAvailabilityStatus_result other) {
-
 
118378
      if (!getClass().equals(other.getClass())) {
-
 
118379
        return getClass().getName().compareTo(other.getClass().getName());
-
 
118380
      }
-
 
118381
 
-
 
118382
      int lastComparison = 0;
-
 
118383
      updateAvailabilityStatus_result typedOther = (updateAvailabilityStatus_result)other;
-
 
118384
 
-
 
118385
      return 0;
-
 
118386
    }
-
 
118387
 
-
 
118388
    public _Fields fieldForId(int fieldId) {
-
 
118389
      return _Fields.findByThriftId(fieldId);
-
 
118390
    }
-
 
118391
 
-
 
118392
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
118393
      org.apache.thrift.protocol.TField field;
-
 
118394
      iprot.readStructBegin();
-
 
118395
      while (true)
-
 
118396
      {
-
 
118397
        field = iprot.readFieldBegin();
-
 
118398
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
118399
          break;
-
 
118400
        }
-
 
118401
        switch (field.id) {
-
 
118402
          default:
-
 
118403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118404
        }
-
 
118405
        iprot.readFieldEnd();
-
 
118406
      }
-
 
118407
      iprot.readStructEnd();
-
 
118408
      validate();
-
 
118409
    }
-
 
118410
 
-
 
118411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
118412
      oprot.writeStructBegin(STRUCT_DESC);
-
 
118413
 
-
 
118414
      oprot.writeFieldStop();
-
 
118415
      oprot.writeStructEnd();
-
 
118416
    }
-
 
118417
 
-
 
118418
    @Override
-
 
118419
    public String toString() {
-
 
118420
      StringBuilder sb = new StringBuilder("updateAvailabilityStatus_result(");
-
 
118421
      boolean first = true;
-
 
118422
 
-
 
118423
      sb.append(")");
-
 
118424
      return sb.toString();
-
 
118425
    }
-
 
118426
 
-
 
118427
    public void validate() throws org.apache.thrift.TException {
117688
      // check for required fields
118428
      // check for required fields
117689
    }
118429
    }
117690
 
118430
 
117691
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
118431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
117692
      try {
118432
      try {