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.ByteString
Script that contains the signatures/pubkeys.int
Sequence number.com.google.protobuf.ByteString
Hash of the transaction this input is using.int
Index of transaction output used by this input.long
getValue()
Value of connected output, if knownscript witnessboolean
Script that contains the signatures/pubkeys.boolean
Sequence number.boolean
Hash of the transaction this input is using.boolean
Index of transaction output used by this input.boolean
hasValue()
Value of connected output, if knownboolean
script 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, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
hasTransactionOutPointHash
in 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:
getTransactionOutPointHash
in 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:
hasTransactionOutPointIndex
in 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:
getTransactionOutPointIndex
in 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:
hasScriptBytes
in 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:
getScriptBytes
in 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:
hasSequence
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- Whether the sequence field is set.
-
getSequence
public int getSequence()Sequence number.
optional uint32 sequence = 4;
- Specified by:
getSequence
in 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:
hasValue
in 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:
getValue
in 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:
hasWitness
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- Whether the witness field is set.
-
getWitness
script witness
optional .wallet.ScriptWitness witness = 6;
- Specified by:
getWitness
in 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;
-