Package org.bitcoinj.wallet
Class Protos.TransactionInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionInput,Protos.TransactionInput.Builder>
org.bitcoinj.wallet.Protos.TransactionInput.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,Protos.TransactionInputOrBuilder
- Enclosing class:
- Protos.TransactionInput
public static final class Protos.TransactionInput.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionInput,Protos.TransactionInput.Builder>
implements Protos.TransactionInputOrBuilder
Protobuf type
wallet.TransactionInput-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt -
Method Summary
Modifier and TypeMethodDescriptionScript that contains the signatures/pubkeys.Sequence number.Hash of the transaction this input is using.Index of transaction output used by this input.Value of connected output, if knownscript witnesscom.google.protobuf.ByteStringScript that contains the signatures/pubkeys.intSequence number.com.google.protobuf.ByteStringHash of the transaction this input is using.intIndex of transaction output used by this input.longgetValue()Value of connected output, if knownscript witnessbooleanScript that contains the signatures/pubkeys.booleanSequence number.booleanHash of the transaction this input is using.booleanIndex of transaction output used by this input.booleanhasValue()Value of connected output, if knownbooleanscript witnessmergeWitness(Protos.ScriptWitness value) script witnesssetScriptBytes(com.google.protobuf.ByteString value) Script that contains the signatures/pubkeys.setSequence(int value) Sequence number.setTransactionOutPointHash(com.google.protobuf.ByteString value) Hash of the transaction this input is using.setTransactionOutPointIndex(int value) Index of transaction output used by this input.setValue(long value) Value of connected output, if knownsetWitness(Protos.ScriptWitness value) script witnesssetWitness(Protos.ScriptWitness.Builder builderForValue) script witnessMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasTransactionOutPointHash
public boolean hasTransactionOutPointHash()Hash of the transaction this input is using.
required bytes transaction_out_point_hash = 1;- Specified by:
hasTransactionOutPointHashin interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the transactionOutPointHash field is set.
-
getTransactionOutPointHash
public com.google.protobuf.ByteString getTransactionOutPointHash()Hash of the transaction this input is using.
required bytes transaction_out_point_hash = 1;- Specified by:
getTransactionOutPointHashin interfaceProtos.TransactionInputOrBuilder- Returns:
- The transactionOutPointHash.
-
setTransactionOutPointHash
public Protos.TransactionInput.Builder setTransactionOutPointHash(com.google.protobuf.ByteString value) Hash of the transaction this input is using.
required bytes transaction_out_point_hash = 1;- Parameters:
value- The transactionOutPointHash to set.- Returns:
- This builder for chaining.
-
clearTransactionOutPointHash
Hash of the transaction this input is using.
required bytes transaction_out_point_hash = 1;- Returns:
- This builder for chaining.
-
hasTransactionOutPointIndex
public boolean hasTransactionOutPointIndex()Index of transaction output used by this input.
required uint32 transaction_out_point_index = 2;- Specified by:
hasTransactionOutPointIndexin interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the transactionOutPointIndex field is set.
-
getTransactionOutPointIndex
public int getTransactionOutPointIndex()Index of transaction output used by this input.
required uint32 transaction_out_point_index = 2;- Specified by:
getTransactionOutPointIndexin interfaceProtos.TransactionInputOrBuilder- Returns:
- The transactionOutPointIndex.
-
setTransactionOutPointIndex
Index of transaction output used by this input.
required uint32 transaction_out_point_index = 2;- Parameters:
value- The transactionOutPointIndex to set.- Returns:
- This builder for chaining.
-
clearTransactionOutPointIndex
Index of transaction output used by this input.
required uint32 transaction_out_point_index = 2;- Returns:
- This builder for chaining.
-
hasScriptBytes
public boolean hasScriptBytes()Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;- Specified by:
hasScriptBytesin interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the scriptBytes field is set.
-
getScriptBytes
public com.google.protobuf.ByteString getScriptBytes()Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;- Specified by:
getScriptBytesin interfaceProtos.TransactionInputOrBuilder- Returns:
- The scriptBytes.
-
setScriptBytes
Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;- Parameters:
value- The scriptBytes to set.- Returns:
- This builder for chaining.
-
clearScriptBytes
Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;- Returns:
- This builder for chaining.
-
hasSequence
public boolean hasSequence()Sequence number.
optional uint32 sequence = 4;- Specified by:
hasSequencein interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the sequence field is set.
-
getSequence
public int getSequence()Sequence number.
optional uint32 sequence = 4;- Specified by:
getSequencein interfaceProtos.TransactionInputOrBuilder- Returns:
- The sequence.
-
setSequence
Sequence number.
optional uint32 sequence = 4;- Parameters:
value- The sequence to set.- Returns:
- This builder for chaining.
-
clearSequence
Sequence number.
optional uint32 sequence = 4;- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()Value of connected output, if known
optional int64 value = 5;- Specified by:
hasValuein interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public long getValue()Value of connected output, if known
optional int64 value = 5;- Specified by:
getValuein interfaceProtos.TransactionInputOrBuilder- Returns:
- The value.
-
setValue
Value of connected output, if known
optional int64 value = 5;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Value of connected output, if known
optional int64 value = 5;- Returns:
- This builder for chaining.
-
hasWitness
public boolean hasWitness()script witness
optional .wallet.ScriptWitness witness = 6;- Specified by:
hasWitnessin interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the witness field is set.
-
getWitness
script witness
optional .wallet.ScriptWitness witness = 6;- Specified by:
getWitnessin interfaceProtos.TransactionInputOrBuilder- Returns:
- The witness.
-
setWitness
script witness
optional .wallet.ScriptWitness witness = 6; -
setWitness
script witness
optional .wallet.ScriptWitness witness = 6; -
mergeWitness
script witness
optional .wallet.ScriptWitness witness = 6; -
clearWitness
script witness
optional .wallet.ScriptWitness witness = 6;
-