Enum Class Protos.Transaction.Purpose

java.lang.Object
java.lang.Enum<Protos.Transaction.Purpose>
org.bitcoinj.wallet.Protos.Transaction.Purpose
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.Transaction.Purpose>, Constable
Enclosing class:
Protos.Transaction

public static enum Protos.Transaction.Purpose extends Enum<Protos.Transaction.Purpose> implements com.google.protobuf.Internal.EnumLite
 For what purpose the transaction was created.
 
Protobuf enum wallet.Transaction.Purpose
  • Enum Constant Details

    • UNKNOWN

      public static final Protos.Transaction.Purpose UNKNOWN
       Old wallets or the purpose genuinely is a mystery (e.g. imported from some external source).
       
      UNKNOWN = 0;
    • USER_PAYMENT

      public static final Protos.Transaction.Purpose USER_PAYMENT
       Created in response to a user request for payment. This is the normal case.
       
      USER_PAYMENT = 1;
    • KEY_ROTATION

      public static final Protos.Transaction.Purpose KEY_ROTATION
       Created automatically to move money from rotated keys.
       
      KEY_ROTATION = 2;
    • ASSURANCE_CONTRACT_CLAIM

      public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_CLAIM
       Stuff used by Lighthouse.
       
      ASSURANCE_CONTRACT_CLAIM = 3;
    • ASSURANCE_CONTRACT_PLEDGE

      public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_PLEDGE
      ASSURANCE_CONTRACT_PLEDGE = 4;
    • ASSURANCE_CONTRACT_STUB

      public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_STUB
      ASSURANCE_CONTRACT_STUB = 5;
    • RAISE_FEE

      public static final Protos.Transaction.Purpose RAISE_FEE
       Raise fee, e.g. child-pays-for-parent.
       
      RAISE_FEE = 6;
  • Field Details

    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       Old wallets or the purpose genuinely is a mystery (e.g. imported from some external source).
       
      UNKNOWN = 0;
      See Also:
    • USER_PAYMENT_VALUE

      public static final int USER_PAYMENT_VALUE
       Created in response to a user request for payment. This is the normal case.
       
      USER_PAYMENT = 1;
      See Also:
    • KEY_ROTATION_VALUE

      public static final int KEY_ROTATION_VALUE
       Created automatically to move money from rotated keys.
       
      KEY_ROTATION = 2;
      See Also:
    • ASSURANCE_CONTRACT_CLAIM_VALUE

      public static final int ASSURANCE_CONTRACT_CLAIM_VALUE
       Stuff used by Lighthouse.
       
      ASSURANCE_CONTRACT_CLAIM = 3;
      See Also:
    • ASSURANCE_CONTRACT_PLEDGE_VALUE

      public static final int ASSURANCE_CONTRACT_PLEDGE_VALUE
      ASSURANCE_CONTRACT_PLEDGE = 4;
      See Also:
    • ASSURANCE_CONTRACT_STUB_VALUE

      public static final int ASSURANCE_CONTRACT_STUB_VALUE
      ASSURANCE_CONTRACT_STUB = 5;
      See Also:
    • RAISE_FEE_VALUE

      public static final int RAISE_FEE_VALUE
       Raise fee, e.g. child-pays-for-parent.
       
      RAISE_FEE = 6;
      See Also:
  • Method Details

    • values

      public static Protos.Transaction.Purpose[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Protos.Transaction.Purpose valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static Protos.Transaction.Purpose valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static Protos.Transaction.Purpose forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()