Package org.bitcoinj.wallet
Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStuff used by Lighthouse.ASSURANCE_CONTRACT_PLEDGE = 4;
ASSURANCE_CONTRACT_STUB = 5;
Created automatically to move money from rotated keys.Raise fee, e.g.Old wallets or the purpose genuinely is a mystery (e.g.Created in response to a user request for payment. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Stuff used by Lighthouse.static final int
ASSURANCE_CONTRACT_PLEDGE = 4;
static final int
ASSURANCE_CONTRACT_STUB = 5;
static final int
Created automatically to move money from rotated keys.static final int
Raise fee, e.g.static final int
Old wallets or the purpose genuinely is a mystery (e.g.static final int
Created in response to a user request for payment. -
Method Summary
Modifier and TypeMethodDescriptionstatic Protos.Transaction.Purpose
forNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose>
static com.google.protobuf.Internal.EnumVerifier
static Protos.Transaction.Purpose
valueOf
(int value) Deprecated.static Protos.Transaction.Purpose
Returns the enum constant of this class with the specified name.static Protos.Transaction.Purpose[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Old wallets or the purpose genuinely is a mystery (e.g. imported from some external source).
UNKNOWN = 0;
-
USER_PAYMENT
Created in response to a user request for payment. This is the normal case.
USER_PAYMENT = 1;
-
KEY_ROTATION
Created automatically to move money from rotated keys.
KEY_ROTATION = 2;
-
ASSURANCE_CONTRACT_CLAIM
Stuff used by Lighthouse.
ASSURANCE_CONTRACT_CLAIM = 3;
-
ASSURANCE_CONTRACT_PLEDGE
ASSURANCE_CONTRACT_PLEDGE = 4;
-
ASSURANCE_CONTRACT_STUB
ASSURANCE_CONTRACT_STUB = 5;
-
RAISE_FEE
Raise fee, e.g. child-pays-for-parent.
RAISE_FEE = 6;
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEOld 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_VALUECreated 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_VALUECreated automatically to move money from rotated keys.
KEY_ROTATION = 2;
- See Also:
-
ASSURANCE_CONTRACT_CLAIM_VALUE
public static final int ASSURANCE_CONTRACT_CLAIM_VALUEStuff used by Lighthouse.
ASSURANCE_CONTRACT_CLAIM = 3;
- See Also:
-
ASSURANCE_CONTRACT_PLEDGE_VALUE
public static final int ASSURANCE_CONTRACT_PLEDGE_VALUEASSURANCE_CONTRACT_PLEDGE = 4;
- See Also:
-
ASSURANCE_CONTRACT_STUB_VALUE
public static final int ASSURANCE_CONTRACT_STUB_VALUEASSURANCE_CONTRACT_STUB = 5;
- See Also:
-
RAISE_FEE_VALUE
public static final int RAISE_FEE_VALUERaise fee, e.g. child-pays-for-parent.
RAISE_FEE = 6;
- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
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 nameNullPointerException
- if the argument is null
-
forNumber
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-