Enum Protos.Transaction.Purpose

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, java.io.Serializable, java.lang.Comparable<Protos.Transaction.Purpose>
    Enclosing class:
    Protos.Transaction

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

      • 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;
    • Field Detail

      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • KEY_ROTATION_VALUE

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

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

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

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

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

      • values

        public static Protos.Transaction.Purpose[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Protos.Transaction.Purpose c : Protos.Transaction.Purpose.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Protos.Transaction.Purpose valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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 type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • internalGetVerifier

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