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, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<TrezorType.TxInputType> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic List<Integer> getAddressNList()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNList in interface TrezorType.TxInputTypeOrBuilderpublic int getAddressNCount()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNCount in interface TrezorType.TxInputTypeOrBuilderpublic int getAddressN(int index)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressN in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasPrevHash()
required bytes prev_hash = 2;
hash of previous transaction output to spend by this input
hasPrevHash in interface TrezorType.TxInputTypeOrBuilderpublic com.google.protobuf.ByteString getPrevHash()
required bytes prev_hash = 2;
hash of previous transaction output to spend by this input
getPrevHash in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasPrevIndex()
required uint32 prev_index = 3;
index of previous output to spend
hasPrevIndex in interface TrezorType.TxInputTypeOrBuilderpublic int getPrevIndex()
required uint32 prev_index = 3;
index of previous output to spend
getPrevIndex in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasScriptSig()
optional bytes script_sig = 4;
script signature, unset for tx to sign
hasScriptSig in interface TrezorType.TxInputTypeOrBuilderpublic com.google.protobuf.ByteString getScriptSig()
optional bytes script_sig = 4;
script signature, unset for tx to sign
getScriptSig in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasSequence()
optional uint32 sequence = 5 [default = 4294967295];
sequence
hasSequence in interface TrezorType.TxInputTypeOrBuilderpublic int getSequence()
optional uint32 sequence = 5 [default = 4294967295];
sequence
getSequence in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
defines template of input script
hasScriptType in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.InputScriptType getScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
defines template of input script
getScriptType in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasMultisig()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
hasMultisig in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.MultisigRedeemScriptType getMultisig()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
getMultisig in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.MultisigRedeemScriptTypeOrBuilder getMultisigOrBuilder()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
getMultisigOrBuilder in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasAmount()
optional uint64 amount = 8;
amount of previous transaction output (for segwit only)
hasAmount in interface TrezorType.TxInputTypeOrBuilderpublic long getAmount()
optional uint64 amount = 8;
amount of previous transaction output (for segwit only)
getAmount in interface TrezorType.TxInputTypeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static TrezorType.TxInputType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorType.TxInputType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorType.TxInputType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorType.TxInputType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorType.TxInputType parseFrom(InputStream input) throws IOException
IOExceptionpublic static TrezorType.TxInputType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorType.TxInputType parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TrezorType.TxInputType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorType.TxInputType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TrezorType.TxInputType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorType.TxInputType.Builder newBuilder()
public TrezorType.TxInputType.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TrezorType.TxInputType.Builder newBuilder(TrezorType.TxInputType prototype)
public TrezorType.TxInputType.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TrezorType.TxInputType.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.