public static enum Protos.Transaction.Purpose extends java.lang.Enum<Protos.Transaction.Purpose> implements com.google.protobuf.ProtocolMessageEnum
For what purpose the transaction was created.Protobuf enum
wallet.Transaction.Purpose| Enum Constant and Description | 
|---|
| ASSURANCE_CONTRACT_CLAIM
 Stuff used by Lighthouse. | 
| ASSURANCE_CONTRACT_PLEDGEASSURANCE_CONTRACT_PLEDGE = 4; | 
| ASSURANCE_CONTRACT_STUBASSURANCE_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. | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | ASSURANCE_CONTRACT_CLAIM_VALUE
 Stuff used by Lighthouse. | 
| static int | ASSURANCE_CONTRACT_PLEDGE_VALUEASSURANCE_CONTRACT_PLEDGE = 4; | 
| static int | ASSURANCE_CONTRACT_STUB_VALUEASSURANCE_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. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Protos.Transaction.Purpose | forNumber(int value) | 
| static com.google.protobuf.Descriptors.EnumDescriptor | getDescriptor() | 
| com.google.protobuf.Descriptors.EnumDescriptor | getDescriptorForType() | 
| int | getNumber() | 
| com.google.protobuf.Descriptors.EnumValueDescriptor | getValueDescriptor() | 
| static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose> | internalGetValueMap() | 
| static Protos.Transaction.Purpose | valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) | 
| static Protos.Transaction.Purpose | valueOf(int value)Deprecated. 
 Use  forNumber(int)instead. | 
| 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. | 
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;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;public static final Protos.Transaction.Purpose KEY_ROTATION
Created automatically to move money from rotated keys.
KEY_ROTATION = 2;public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_CLAIM
Stuff used by Lighthouse.
ASSURANCE_CONTRACT_CLAIM = 3;public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_PLEDGE
ASSURANCE_CONTRACT_PLEDGE = 4;public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_STUB
ASSURANCE_CONTRACT_STUB = 5;public static final Protos.Transaction.Purpose RAISE_FEE
Raise fee, e.g. child-pays-for-parent.
RAISE_FEE = 6;public static final int UNKNOWN_VALUE
Old wallets or the purpose genuinely is a mystery (e.g. imported from some external source).
UNKNOWN = 0;public static final int USER_PAYMENT_VALUE
Created in response to a user request for payment. This is the normal case.
USER_PAYMENT = 1;public static final int KEY_ROTATION_VALUE
Created automatically to move money from rotated keys.
KEY_ROTATION = 2;public static final int ASSURANCE_CONTRACT_CLAIM_VALUE
Stuff used by Lighthouse.
ASSURANCE_CONTRACT_CLAIM = 3;public static final int ASSURANCE_CONTRACT_PLEDGE_VALUE
ASSURANCE_CONTRACT_PLEDGE = 4;public static final int ASSURANCE_CONTRACT_STUB_VALUE
ASSURANCE_CONTRACT_STUB = 5;public static final int RAISE_FEE_VALUE
Raise fee, e.g. child-pays-for-parent.
RAISE_FEE = 6;public static Protos.Transaction.Purpose[] values()
for (Protos.Transaction.Purpose c : Protos.Transaction.Purpose.values()) System.out.println(c);
public static Protos.Transaction.Purpose valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Protos.Transaction.Purpose valueOf(int value)
forNumber(int) instead.public static Protos.Transaction.Purpose forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.Transaction.Purpose valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)