Class PaymentTool

java.lang.Object
org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
dev.vality.damsel.merch_stat.PaymentTool
All Implemented Interfaces:
Serializable, Comparable<PaymentTool>, org.apache.thrift.TBase<PaymentTool,PaymentTool._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.19.0)", date="2024-08-02") public class PaymentTool extends org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
See Also:
  • Field Details

    • metaDataMap

      public static final Map<PaymentTool._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

  • Method Details

    • deepCopy

      public PaymentTool deepCopy()
    • bank_card

      public static PaymentTool bank_card(BankCard value)
    • payment_terminal

      public static PaymentTool payment_terminal(PaymentTerminal value)
    • digital_wallet

      public static PaymentTool digital_wallet(DigitalWallet value)
    • mobile_commerce

      public static PaymentTool mobile_commerce(MobileCommerce value)
    • crypto_currency

      public static PaymentTool crypto_currency(CryptoCurrency value)
    • checkType

      protected void checkType(PaymentTool._Fields setField, Object value) throws ClassCastException
      Specified by:
      checkType in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
      Throws:
      ClassCastException
    • standardSchemeReadValue

      protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException
      Specified by:
      standardSchemeReadValue in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
      Throws:
      org.apache.thrift.TException
    • standardSchemeWriteValue

      protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      standardSchemeWriteValue in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeReadValue

      protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeReadValue in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeWriteValue

      protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeWriteValue in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
      Throws:
      org.apache.thrift.TException
    • getFieldDesc

      protected org.apache.thrift.protocol.TField getFieldDesc(PaymentTool._Fields setField)
      Specified by:
      getFieldDesc in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
    • getStructDesc

      protected org.apache.thrift.protocol.TStruct getStructDesc()
      Specified by:
      getStructDesc in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
    • enumForId

      protected PaymentTool._Fields enumForId(short id)
      Specified by:
      enumForId in class org.apache.thrift.TUnion<PaymentTool,PaymentTool._Fields>
    • getFields

      public PaymentTool._Fields[] getFields()
    • getFieldMetaData

      public Map<PaymentTool._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • fieldForId

      public PaymentTool._Fields fieldForId(int fieldId)
    • getBankCard

      public BankCard getBankCard()
    • setBankCard

      public void setBankCard(BankCard value)
    • getPaymentTerminal

      public PaymentTerminal getPaymentTerminal()
    • setPaymentTerminal

      public void setPaymentTerminal(PaymentTerminal value)
    • getDigitalWallet

      public DigitalWallet getDigitalWallet()
    • setDigitalWallet

      public void setDigitalWallet(DigitalWallet value)
    • getMobileCommerce

      public MobileCommerce getMobileCommerce()
    • setMobileCommerce

      public void setMobileCommerce(MobileCommerce value)
    • getCryptoCurrency

      public CryptoCurrency getCryptoCurrency()
    • setCryptoCurrency

      public void setCryptoCurrency(CryptoCurrency value)
    • isSetBankCard

      public boolean isSetBankCard()
    • isSetPaymentTerminal

      public boolean isSetPaymentTerminal()
    • isSetDigitalWallet

      public boolean isSetDigitalWallet()
    • isSetMobileCommerce

      public boolean isSetMobileCommerce()
    • isSetCryptoCurrency

      public boolean isSetCryptoCurrency()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(PaymentTool other)
    • compareTo

      public int compareTo(PaymentTool other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object