public static final class TrezorType.TxInputType extends com.google.protobuf.GeneratedMessage implements TrezorType.TxInputTypeOrBuilder
TxInputType
Structure representing transaction input @used_in SimpleSignTx @used_in TransactionType
Modifier and Type | Class and Description |
---|---|
static class |
TrezorType.TxInputType.Builder
Protobuf type
TxInputType |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_N_FIELD_NUMBER |
static int |
AMOUNT_FIELD_NUMBER |
static int |
MULTISIG_FIELD_NUMBER |
static com.google.protobuf.Parser<TrezorType.TxInputType> |
PARSER |
static int |
PREV_HASH_FIELD_NUMBER |
static int |
PREV_INDEX_FIELD_NUMBER |
static int |
SCRIPT_SIG_FIELD_NUMBER |
static int |
SCRIPT_TYPE_FIELD_NUMBER |
static int |
SEQUENCE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
int |
getAddressN(int index)
repeated uint32 address_n = 1; |
int |
getAddressNCount()
repeated uint32 address_n = 1; |
List<Integer> |
getAddressNList()
repeated uint32 address_n = 1; |
long |
getAmount()
optional uint64 amount = 8; |
static TrezorType.TxInputType |
getDefaultInstance() |
TrezorType.TxInputType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
TrezorType.MultisigRedeemScriptType |
getMultisig()
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.MultisigRedeemScriptTypeOrBuilder |
getMultisigOrBuilder()
optional .MultisigRedeemScriptType multisig = 7; |
com.google.protobuf.Parser<TrezorType.TxInputType> |
getParserForType() |
com.google.protobuf.ByteString |
getPrevHash()
required bytes prev_hash = 2; |
int |
getPrevIndex()
required uint32 prev_index = 3; |
com.google.protobuf.ByteString |
getScriptSig()
optional bytes script_sig = 4; |
TrezorType.InputScriptType |
getScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS]; |
int |
getSequence()
optional uint32 sequence = 5 [default = 4294967295]; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAmount()
optional uint64 amount = 8; |
boolean |
hasMultisig()
optional .MultisigRedeemScriptType multisig = 7; |
boolean |
hasPrevHash()
required bytes prev_hash = 2; |
boolean |
hasPrevIndex()
required uint32 prev_index = 3; |
boolean |
hasScriptSig()
optional bytes script_sig = 4; |
boolean |
hasScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS]; |
boolean |
hasSequence()
optional uint32 sequence = 5 [default = 4294967295]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TrezorType.TxInputType.Builder |
newBuilder() |
static TrezorType.TxInputType.Builder |
newBuilder(TrezorType.TxInputType prototype) |
TrezorType.TxInputType.Builder |
newBuilderForType() |
protected TrezorType.TxInputType.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static TrezorType.TxInputType |
parseDelimitedFrom(InputStream input) |
static TrezorType.TxInputType |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorType.TxInputType |
parseFrom(byte[] data) |
static TrezorType.TxInputType |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorType.TxInputType |
parseFrom(com.google.protobuf.ByteString data) |
static TrezorType.TxInputType |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorType.TxInputType |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TrezorType.TxInputType |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorType.TxInputType |
parseFrom(InputStream input) |
static TrezorType.TxInputType |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorType.TxInputType.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<TrezorType.TxInputType> PARSER
public static final int ADDRESS_N_FIELD_NUMBER
public static final int PREV_HASH_FIELD_NUMBER
public static final int PREV_INDEX_FIELD_NUMBER
public static final int SCRIPT_SIG_FIELD_NUMBER
public static final int SEQUENCE_FIELD_NUMBER
public static final int SCRIPT_TYPE_FIELD_NUMBER
public static final int MULTISIG_FIELD_NUMBER
public static final int AMOUNT_FIELD_NUMBER
public static TrezorType.TxInputType getDefaultInstance()
public TrezorType.TxInputType getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<TrezorType.TxInputType> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public List<Integer> getAddressNList()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNList
in interface TrezorType.TxInputTypeOrBuilder
public int getAddressNCount()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNCount
in interface TrezorType.TxInputTypeOrBuilder
public int getAddressN(int index)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressN
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasPrevHash()
required bytes prev_hash = 2;
hash of previous transaction output to spend by this input
hasPrevHash
in interface TrezorType.TxInputTypeOrBuilder
public com.google.protobuf.ByteString getPrevHash()
required bytes prev_hash = 2;
hash of previous transaction output to spend by this input
getPrevHash
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasPrevIndex()
required uint32 prev_index = 3;
index of previous output to spend
hasPrevIndex
in interface TrezorType.TxInputTypeOrBuilder
public int getPrevIndex()
required uint32 prev_index = 3;
index of previous output to spend
getPrevIndex
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasScriptSig()
optional bytes script_sig = 4;
script signature, unset for tx to sign
hasScriptSig
in interface TrezorType.TxInputTypeOrBuilder
public com.google.protobuf.ByteString getScriptSig()
optional bytes script_sig = 4;
script signature, unset for tx to sign
getScriptSig
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasSequence()
optional uint32 sequence = 5 [default = 4294967295];
sequence
hasSequence
in interface TrezorType.TxInputTypeOrBuilder
public int getSequence()
optional uint32 sequence = 5 [default = 4294967295];
sequence
getSequence
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
defines template of input script
hasScriptType
in interface TrezorType.TxInputTypeOrBuilder
public TrezorType.InputScriptType getScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
defines template of input script
getScriptType
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasMultisig()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
hasMultisig
in interface TrezorType.TxInputTypeOrBuilder
public TrezorType.MultisigRedeemScriptType getMultisig()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
getMultisig
in interface TrezorType.TxInputTypeOrBuilder
public TrezorType.MultisigRedeemScriptTypeOrBuilder getMultisigOrBuilder()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
getMultisigOrBuilder
in interface TrezorType.TxInputTypeOrBuilder
public boolean hasAmount()
optional uint64 amount = 8;
amount of previous transaction output (for segwit only)
hasAmount
in interface TrezorType.TxInputTypeOrBuilder
public long getAmount()
optional uint64 amount = 8;
amount of previous transaction output (for segwit only)
getAmount
in interface TrezorType.TxInputTypeOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static TrezorType.TxInputType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorType.TxInputType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorType.TxInputType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorType.TxInputType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorType.TxInputType parseFrom(InputStream input) throws IOException
IOException
public static TrezorType.TxInputType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorType.TxInputType parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TrezorType.TxInputType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorType.TxInputType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TrezorType.TxInputType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorType.TxInputType.Builder newBuilder()
public TrezorType.TxInputType.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TrezorType.TxInputType.Builder newBuilder(TrezorType.TxInputType prototype)
public TrezorType.TxInputType.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TrezorType.TxInputType.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.