Package org.bitcoinj.protobuf.wallet
Enum Protos.TransactionConfidence.Source
- java.lang.Object
-
- java.lang.Enum<Protos.TransactionConfidence.Source>
-
- org.bitcoinj.protobuf.wallet.Protos.TransactionConfidence.Source
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,java.io.Serializable
,java.lang.Comparable<Protos.TransactionConfidence.Source>
- Enclosing class:
- Protos.TransactionConfidence
public static enum Protos.TransactionConfidence.Source extends java.lang.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 enumwallet.TransactionConfidence.Source
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SOURCE_NETWORK
We received it from a network broadcast.SOURCE_SELF
We made it ourselves, so we know it should be valid.SOURCE_UNKNOWN
We don't know where it came from, or this is a wallet from the future.
-
Field Summary
Fields Modifier and Type Field Description static int
SOURCE_NETWORK_VALUE
We received it from a network broadcast.static int
SOURCE_SELF_VALUE
We made it ourselves, so we know it should be valid.static int
SOURCE_UNKNOWN_VALUE
We don't know where it came from, or this is a wallet from the future.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.TransactionConfidence.Source
forNumber(int value)
int
getNumber()
static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Source>
internalGetValueMap()
static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier()
static Protos.TransactionConfidence.Source
valueOf(int value)
Deprecated.static Protos.TransactionConfidence.Source
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Protos.TransactionConfidence.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOURCE_UNKNOWN
public static final Protos.TransactionConfidence.Source SOURCE_UNKNOWN
We don't know where it came from, or this is a wallet from the future.
SOURCE_UNKNOWN = 0;
-
SOURCE_NETWORK
public static final Protos.TransactionConfidence.Source SOURCE_NETWORK
We received it from a network broadcast. This is the normal way to get payments.
SOURCE_NETWORK = 1;
-
SOURCE_SELF
public static final Protos.TransactionConfidence.Source SOURCE_SELF
We made it ourselves, so we know it should be valid.
SOURCE_SELF = 2;
-
-
Field Detail
-
SOURCE_UNKNOWN_VALUE
public static final int SOURCE_UNKNOWN_VALUE
We don't know where it came from, or this is a wallet from the future.
SOURCE_UNKNOWN = 0;
- See Also:
- Constant Field Values
-
SOURCE_NETWORK_VALUE
public static final int SOURCE_NETWORK_VALUE
We received it from a network broadcast. This is the normal way to get payments.
SOURCE_NETWORK = 1;
- See Also:
- Constant Field Values
-
SOURCE_SELF_VALUE
public static final int SOURCE_SELF_VALUE
We made it ourselves, so we know it should be valid.
SOURCE_SELF = 2;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Protos.TransactionConfidence.Source[] 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.TransactionConfidence.Source c : Protos.TransactionConfidence.Source.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.TransactionConfidence.Source 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.TransactionConfidence.Source 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.TransactionConfidence.Source forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Source> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-