Package org.bitcoinj.wallet
Enum Class Protos.TransactionConfidence.Source
java.lang.Object
java.lang.Enum<Protos.TransactionConfidence.Source>
org.bitcoinj.wallet.Protos.TransactionConfidence.Source
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<Protos.TransactionConfidence.Source>
,Constable
- Enclosing class:
- Protos.TransactionConfidence
public static enum Protos.TransactionConfidence.Source
extends Enum<Protos.TransactionConfidence.Source>
implements com.google.protobuf.Internal.EnumLite
Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.Protobuf enum
wallet.TransactionConfidence.Source
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWe received it from a network broadcast.We made it ourselves, so we know it should be valid.We don't know where it came from, or this is a wallet from the future. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
We received it from a network broadcast.static final int
We made it ourselves, so we know it should be valid.static final int
We don't know where it came from, or this is a wallet from the future. -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Source>
static com.google.protobuf.Internal.EnumVerifier
valueOf
(int value) Deprecated.Returns the enum constant of this class with the specified name.static Protos.TransactionConfidence.Source[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOURCE_UNKNOWN
We don't know where it came from, or this is a wallet from the future.
SOURCE_UNKNOWN = 0;
-
SOURCE_NETWORK
We received it from a network broadcast. This is the normal way to get payments.
SOURCE_NETWORK = 1;
-
SOURCE_SELF
We made it ourselves, so we know it should be valid.
SOURCE_SELF = 2;
-
-
Field Details
-
SOURCE_UNKNOWN_VALUE
public static final int SOURCE_UNKNOWN_VALUEWe don't know where it came from, or this is a wallet from the future.
SOURCE_UNKNOWN = 0;
- See Also:
-
SOURCE_NETWORK_VALUE
public static final int SOURCE_NETWORK_VALUEWe received it from a network broadcast. This is the normal way to get payments.
SOURCE_NETWORK = 1;
- See Also:
-
SOURCE_SELF_VALUE
public static final int SOURCE_SELF_VALUEWe made it ourselves, so we know it should be valid.
SOURCE_SELF = 2;
- 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.TransactionConfidence.Source> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-