public static final class TrezorType.TxInputType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder> implements TrezorType.TxInputTypeOrBuilder
Structure representing transaction input @used_in SimpleSignTx @used_in TransactionTypeProtobuf type
TxInputType| Modifier and Type | Method and Description |
|---|---|
TrezorType.TxInputType.Builder |
addAddressN(int value)
BIP-32 path to derive the key from master node
|
TrezorType.TxInputType.Builder |
addAllAddressN(Iterable<? extends Integer> values)
BIP-32 path to derive the key from master node
|
TrezorType.TxInputType.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrezorType.TxInputType |
build() |
TrezorType.TxInputType |
buildPartial() |
TrezorType.TxInputType.Builder |
clear() |
TrezorType.TxInputType.Builder |
clearAddressN()
BIP-32 path to derive the key from master node
|
TrezorType.TxInputType.Builder |
clearAmount()
amount of previous transaction output (for segwit only)
|
TrezorType.TxInputType.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrezorType.TxInputType.Builder |
clearMultisig()
Filled if input is going to spend multisig tx
|
TrezorType.TxInputType.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TrezorType.TxInputType.Builder |
clearPrevHash()
hash of previous transaction output to spend by this input
|
TrezorType.TxInputType.Builder |
clearPrevIndex()
index of previous output to spend
|
TrezorType.TxInputType.Builder |
clearScriptSig()
script signature, unset for tx to sign
|
TrezorType.TxInputType.Builder |
clearScriptType()
defines template of input script
|
TrezorType.TxInputType.Builder |
clearSequence()
sequence
|
TrezorType.TxInputType.Builder |
clone() |
int |
getAddressN(int index)
BIP-32 path to derive the key from master node
|
int |
getAddressNCount()
BIP-32 path to derive the key from master node
|
List<Integer> |
getAddressNList()
BIP-32 path to derive the key from master node
|
long |
getAmount()
amount of previous transaction output (for segwit only)
|
TrezorType.TxInputType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TrezorType.MultisigRedeemScriptType |
getMultisig()
Filled if input is going to spend multisig tx
|
TrezorType.MultisigRedeemScriptType.Builder |
getMultisigBuilder()
Filled if input is going to spend multisig tx
|
TrezorType.MultisigRedeemScriptTypeOrBuilder |
getMultisigOrBuilder()
Filled if input is going to spend multisig tx
|
com.google.protobuf.ByteString |
getPrevHash()
hash of previous transaction output to spend by this input
|
int |
getPrevIndex()
index of previous output to spend
|
com.google.protobuf.ByteString |
getScriptSig()
script signature, unset for tx to sign
|
TrezorType.InputScriptType |
getScriptType()
defines template of input script
|
int |
getSequence()
sequence
|
boolean |
hasAmount()
amount of previous transaction output (for segwit only)
|
boolean |
hasMultisig()
Filled if input is going to spend multisig tx
|
boolean |
hasPrevHash()
hash of previous transaction output to spend by this input
|
boolean |
hasPrevIndex()
index of previous output to spend
|
boolean |
hasScriptSig()
script signature, unset for tx to sign
|
boolean |
hasScriptType()
defines template of input script
|
boolean |
hasSequence()
sequence
|
protected com.google.protobuf.GeneratedMessageV3.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)
Filled if input is going to spend multisig tx
|
TrezorType.TxInputType.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrezorType.TxInputType.Builder |
setAddressN(int index,
int value)
BIP-32 path to derive the key from master node
|
TrezorType.TxInputType.Builder |
setAmount(long value)
amount of previous transaction output (for segwit only)
|
TrezorType.TxInputType.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrezorType.TxInputType.Builder |
setMultisig(TrezorType.MultisigRedeemScriptType.Builder builderForValue)
Filled if input is going to spend multisig tx
|
TrezorType.TxInputType.Builder |
setMultisig(TrezorType.MultisigRedeemScriptType value)
Filled if input is going to spend multisig tx
|
TrezorType.TxInputType.Builder |
setPrevHash(com.google.protobuf.ByteString value)
hash of previous transaction output to spend by this input
|
TrezorType.TxInputType.Builder |
setPrevIndex(int value)
index of previous output to spend
|
TrezorType.TxInputType.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TrezorType.TxInputType.Builder |
setScriptSig(com.google.protobuf.ByteString value)
script signature, unset for tx to sign
|
TrezorType.TxInputType.Builder |
setScriptType(TrezorType.InputScriptType value)
defines template of input script
|
TrezorType.TxInputType.Builder |
setSequence(int value)
sequence
|
TrezorType.TxInputType.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrezorType.TxInputType build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrezorType.TxInputType buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrezorType.TxInputType.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public TrezorType.TxInputType.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrezorType.TxInputType.Builder>IOExceptionpublic List<Integer> getAddressNList()
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;getAddressNList in interface TrezorType.TxInputTypeOrBuilderpublic int getAddressNCount()
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;getAddressNCount in interface TrezorType.TxInputTypeOrBuilderpublic int getAddressN(int index)
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;getAddressN in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setAddressN(int index, int value)
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;public TrezorType.TxInputType.Builder addAddressN(int value)
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;public TrezorType.TxInputType.Builder addAllAddressN(Iterable<? extends Integer> values)
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;public TrezorType.TxInputType.Builder clearAddressN()
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;public boolean hasPrevHash()
hash of previous transaction output to spend by this input
required bytes prev_hash = 2;hasPrevHash in interface TrezorType.TxInputTypeOrBuilderpublic com.google.protobuf.ByteString getPrevHash()
hash of previous transaction output to spend by this input
required bytes prev_hash = 2;getPrevHash in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setPrevHash(com.google.protobuf.ByteString value)
hash of previous transaction output to spend by this input
required bytes prev_hash = 2;public TrezorType.TxInputType.Builder clearPrevHash()
hash of previous transaction output to spend by this input
required bytes prev_hash = 2;public boolean hasPrevIndex()
index of previous output to spend
required uint32 prev_index = 3;hasPrevIndex in interface TrezorType.TxInputTypeOrBuilderpublic int getPrevIndex()
index of previous output to spend
required uint32 prev_index = 3;getPrevIndex in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setPrevIndex(int value)
index of previous output to spend
required uint32 prev_index = 3;public TrezorType.TxInputType.Builder clearPrevIndex()
index of previous output to spend
required uint32 prev_index = 3;public boolean hasScriptSig()
script signature, unset for tx to sign
optional bytes script_sig = 4;hasScriptSig in interface TrezorType.TxInputTypeOrBuilderpublic com.google.protobuf.ByteString getScriptSig()
script signature, unset for tx to sign
optional bytes script_sig = 4;getScriptSig in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setScriptSig(com.google.protobuf.ByteString value)
script signature, unset for tx to sign
optional bytes script_sig = 4;public TrezorType.TxInputType.Builder clearScriptSig()
script signature, unset for tx to sign
optional bytes script_sig = 4;public boolean hasSequence()
sequence
optional uint32 sequence = 5 [default = 4294967295];hasSequence in interface TrezorType.TxInputTypeOrBuilderpublic int getSequence()
sequence
optional uint32 sequence = 5 [default = 4294967295];getSequence in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setSequence(int value)
sequence
optional uint32 sequence = 5 [default = 4294967295];public TrezorType.TxInputType.Builder clearSequence()
sequence
optional uint32 sequence = 5 [default = 4294967295];public boolean hasScriptType()
defines template of input script
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];hasScriptType in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.InputScriptType getScriptType()
defines template of input script
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];getScriptType in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setScriptType(TrezorType.InputScriptType value)
defines template of input script
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];public TrezorType.TxInputType.Builder clearScriptType()
defines template of input script
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];public boolean hasMultisig()
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;hasMultisig in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.MultisigRedeemScriptType getMultisig()
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;getMultisig in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setMultisig(TrezorType.MultisigRedeemScriptType value)
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;public TrezorType.TxInputType.Builder setMultisig(TrezorType.MultisigRedeemScriptType.Builder builderForValue)
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;public TrezorType.TxInputType.Builder mergeMultisig(TrezorType.MultisigRedeemScriptType value)
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;public TrezorType.TxInputType.Builder clearMultisig()
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;public TrezorType.MultisigRedeemScriptType.Builder getMultisigBuilder()
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;public TrezorType.MultisigRedeemScriptTypeOrBuilder getMultisigOrBuilder()
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;getMultisigOrBuilder in interface TrezorType.TxInputTypeOrBuilderpublic boolean hasAmount()
amount of previous transaction output (for segwit only)
optional uint64 amount = 8;hasAmount in interface TrezorType.TxInputTypeOrBuilderpublic long getAmount()
amount of previous transaction output (for segwit only)
optional uint64 amount = 8;getAmount in interface TrezorType.TxInputTypeOrBuilderpublic TrezorType.TxInputType.Builder setAmount(long value)
amount of previous transaction output (for segwit only)
optional uint64 amount = 8;public TrezorType.TxInputType.Builder clearAmount()
amount of previous transaction output (for segwit only)
optional uint64 amount = 8;public final TrezorType.TxInputType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>public final TrezorType.TxInputType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>Copyright © 2013–2017 Bitcoin Solutions Ltd. All rights reserved.