Enum 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 enum wallet.TransactionConfidence.Source
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.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 name
        java.lang.NullPointerException - if the argument is null
      • internalGetVerifier

        public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()