Package org.bitcoinj.wallet
Enum 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
,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 enumwallet.Transaction.Purpose
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSURANCE_CONTRACT_CLAIM
Stuff used by Lighthouse.ASSURANCE_CONTRACT_PLEDGE
ASSURANCE_CONTRACT_PLEDGE = 4;
ASSURANCE_CONTRACT_STUB
ASSURANCE_CONTRACT_STUB = 5;
KEY_ROTATION
Created automatically to move money from rotated keys.RAISE_FEE
Raise fee, e.g.UNKNOWN
Old wallets or the purpose genuinely is a mystery (e.g.USER_PAYMENT
Created in response to a user request for payment.
-
Field Summary
Fields Modifier and Type Field Description static int
ASSURANCE_CONTRACT_CLAIM_VALUE
Stuff used by Lighthouse.static int
ASSURANCE_CONTRACT_PLEDGE_VALUE
ASSURANCE_CONTRACT_PLEDGE = 4;
static int
ASSURANCE_CONTRACT_STUB_VALUE
ASSURANCE_CONTRACT_STUB = 5;
static int
KEY_ROTATION_VALUE
Created automatically to move money from rotated keys.static int
RAISE_FEE_VALUE
Raise fee, e.g.static int
UNKNOWN_VALUE
Old wallets or the purpose genuinely is a mystery (e.g.static int
USER_PAYMENT_VALUE
Created in response to a user request for payment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.Transaction.Purpose
forNumber(int value)
int
getNumber()
static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose>
internalGetValueMap()
static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier()
static Protos.Transaction.Purpose
valueOf(int value)
Deprecated.static Protos.Transaction.Purpose
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Protos.Transaction.Purpose[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
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 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 namejava.lang.NullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.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 namejava.lang.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()
-
-