public static enum Protos.Key.OutputScriptType extends java.lang.Enum<Protos.Key.OutputScriptType> implements com.google.protobuf.Internal.EnumLite
wallet.Key.OutputScriptType
Enum Constant and Description |
---|
P2PKH
P2PKH = 1; |
P2WPKH
P2WPKH = 2; |
Modifier and Type | Field and Description |
---|---|
static int |
P2PKH_VALUE
P2PKH = 1; |
static int |
P2WPKH_VALUE
P2WPKH = 2; |
Modifier and Type | Method and Description |
---|---|
static Protos.Key.OutputScriptType |
forNumber(int value) |
int |
getNumber() |
static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.OutputScriptType> |
internalGetValueMap() |
static com.google.protobuf.Internal.EnumVerifier |
internalGetVerifier() |
static Protos.Key.OutputScriptType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.Key.OutputScriptType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.Key.OutputScriptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.Key.OutputScriptType P2PKH
P2PKH = 1;
public static final Protos.Key.OutputScriptType P2WPKH
P2WPKH = 2;
public static final int P2PKH_VALUE
P2PKH = 1;
public static final int P2WPKH_VALUE
P2WPKH = 2;
public static Protos.Key.OutputScriptType[] values()
for (Protos.Key.OutputScriptType c : Protos.Key.OutputScriptType.values()) System.out.println(c);
public static Protos.Key.OutputScriptType 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.EnumLite
@Deprecated public static Protos.Key.OutputScriptType valueOf(int value)
forNumber(int)
instead.value
- The number of the enum to look for.public static Protos.Key.OutputScriptType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.OutputScriptType> internalGetValueMap()
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()