public static final class TrezorType.TxInputType.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrezorType.TxInputType.Builder> implements TrezorType.TxInputTypeOrBuilder
TxInputType
Structure representing transaction input @used_in SimpleSignTx @used_in TransactionType
Modifier and Type | Method and Description |
---|---|
TrezorType.TxInputType.Builder |
addAddressN(int value)
repeated uint32 address_n = 1; |
TrezorType.TxInputType.Builder |
addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 1; |
TrezorType.TxInputType |
build() |
TrezorType.TxInputType |
buildPartial() |
TrezorType.TxInputType.Builder |
clear() |
TrezorType.TxInputType.Builder |
clearAddressN()
repeated uint32 address_n = 1; |
TrezorType.TxInputType.Builder |
clearAmount()
optional uint64 amount = 8; |
TrezorType.TxInputType.Builder |
clearMultisig()
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.TxInputType.Builder |
clearPrevHash()
required bytes prev_hash = 2; |
TrezorType.TxInputType.Builder |
clearPrevIndex()
required uint32 prev_index = 3; |
TrezorType.TxInputType.Builder |
clearScriptSig()
optional bytes script_sig = 4; |
TrezorType.TxInputType.Builder |
clearScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS]; |
TrezorType.TxInputType.Builder |
clearSequence()
optional uint32 sequence = 5 [default = 4294967295]; |
TrezorType.TxInputType.Builder |
clone() |
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; |
TrezorType.TxInputType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TrezorType.MultisigRedeemScriptType |
getMultisig()
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.MultisigRedeemScriptType.Builder |
getMultisigBuilder()
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.MultisigRedeemScriptTypeOrBuilder |
getMultisigOrBuilder()
optional .MultisigRedeemScriptType multisig = 7; |
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]; |
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() |
TrezorType.TxInputType.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorType.TxInputType.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrezorType.TxInputType.Builder |
mergeFrom(TrezorType.TxInputType other) |
TrezorType.TxInputType.Builder |
mergeMultisig(TrezorType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.TxInputType.Builder |
setAddressN(int index,
int value)
repeated uint32 address_n = 1; |
TrezorType.TxInputType.Builder |
setAmount(long value)
optional uint64 amount = 8; |
TrezorType.TxInputType.Builder |
setMultisig(TrezorType.MultisigRedeemScriptType.Builder builderForValue)
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.TxInputType.Builder |
setMultisig(TrezorType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 7; |
TrezorType.TxInputType.Builder |
setPrevHash(com.google.protobuf.ByteString value)
required bytes prev_hash = 2; |
TrezorType.TxInputType.Builder |
setPrevIndex(int value)
required uint32 prev_index = 3; |
TrezorType.TxInputType.Builder |
setScriptSig(com.google.protobuf.ByteString value)
optional bytes script_sig = 4; |
TrezorType.TxInputType.Builder |
setScriptType(TrezorType.InputScriptType value)
optional .InputScriptType script_type = 6 [default = SPENDADDRESS]; |
TrezorType.TxInputType.Builder |
setSequence(int value)
optional uint32 sequence = 5 [default = 4294967295]; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<TrezorType.TxInputType.Builder>
public TrezorType.TxInputType.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<TrezorType.TxInputType.Builder>
public TrezorType.TxInputType.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<TrezorType.TxInputType.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<TrezorType.TxInputType.Builder>
public TrezorType.TxInputType getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TrezorType.TxInputType build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TrezorType.TxInputType buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TrezorType.TxInputType.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorType.TxInputType.Builder>
public TrezorType.TxInputType.Builder mergeFrom(TrezorType.TxInputType other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<TrezorType.TxInputType.Builder>
public TrezorType.TxInputType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorType.TxInputType.Builder>
IOException
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 TrezorType.TxInputType.Builder setAddressN(int index, int value)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorType.TxInputType.Builder addAddressN(int value)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorType.TxInputType.Builder addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorType.TxInputType.Builder clearAddressN()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
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 TrezorType.TxInputType.Builder setPrevHash(com.google.protobuf.ByteString value)
required bytes prev_hash = 2;
hash of previous transaction output to spend by this input
public TrezorType.TxInputType.Builder clearPrevHash()
required bytes prev_hash = 2;
hash of previous transaction output to spend by this input
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 TrezorType.TxInputType.Builder setPrevIndex(int value)
required uint32 prev_index = 3;
index of previous output to spend
public TrezorType.TxInputType.Builder clearPrevIndex()
required uint32 prev_index = 3;
index of previous output to spend
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 TrezorType.TxInputType.Builder setScriptSig(com.google.protobuf.ByteString value)
optional bytes script_sig = 4;
script signature, unset for tx to sign
public TrezorType.TxInputType.Builder clearScriptSig()
optional bytes script_sig = 4;
script signature, unset for tx to sign
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 TrezorType.TxInputType.Builder setSequence(int value)
optional uint32 sequence = 5 [default = 4294967295];
sequence
public TrezorType.TxInputType.Builder clearSequence()
optional uint32 sequence = 5 [default = 4294967295];
sequence
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 TrezorType.TxInputType.Builder setScriptType(TrezorType.InputScriptType value)
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
defines template of input script
public TrezorType.TxInputType.Builder clearScriptType()
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
defines template of input script
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.TxInputType.Builder setMultisig(TrezorType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
public TrezorType.TxInputType.Builder setMultisig(TrezorType.MultisigRedeemScriptType.Builder builderForValue)
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
public TrezorType.TxInputType.Builder mergeMultisig(TrezorType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
public TrezorType.TxInputType.Builder clearMultisig()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
public TrezorType.MultisigRedeemScriptType.Builder getMultisigBuilder()
optional .MultisigRedeemScriptType multisig = 7;
Filled if input is going to spend multisig tx
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 TrezorType.TxInputType.Builder setAmount(long value)
optional uint64 amount = 8;
amount of previous transaction output (for segwit only)
public TrezorType.TxInputType.Builder clearAmount()
optional uint64 amount = 8;
amount of previous transaction output (for segwit only)
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.