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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.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.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.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()
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;
getAddressNList
in interface TrezorType.TxInputTypeOrBuilder
public int getAddressNCount()
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;
getAddressNCount
in interface TrezorType.TxInputTypeOrBuilder
public int getAddressN(int index)
BIP-32 path to derive the key from master node
repeated uint32 address_n = 1;
getAddressN
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public com.google.protobuf.ByteString getPrevHash()
hash of previous transaction output to spend by this input
required bytes prev_hash = 2;
getPrevHash
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public int getPrevIndex()
index of previous output to spend
required uint32 prev_index = 3;
getPrevIndex
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public com.google.protobuf.ByteString getScriptSig()
script signature, unset for tx to sign
optional bytes script_sig = 4;
getScriptSig
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public int getSequence()
sequence
optional uint32 sequence = 5 [default = 4294967295];
getSequence
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public TrezorType.InputScriptType getScriptType()
defines template of input script
optional .InputScriptType script_type = 6 [default = SPENDADDRESS];
getScriptType
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public TrezorType.MultisigRedeemScriptType getMultisig()
Filled if input is going to spend multisig tx
optional .MultisigRedeemScriptType multisig = 7;
getMultisig
in interface TrezorType.TxInputTypeOrBuilder
public 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.TxInputTypeOrBuilder
public boolean hasAmount()
amount of previous transaction output (for segwit only)
optional uint64 amount = 8;
hasAmount
in interface TrezorType.TxInputTypeOrBuilder
public long getAmount()
amount of previous transaction output (for segwit only)
optional uint64 amount = 8;
getAmount
in interface TrezorType.TxInputTypeOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorType.TxInputType.Builder>
Copyright © 2013–2019 Bitcoin Solutions Ltd. All rights reserved.