Package org.bitcoinj.protobuf.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.protobuf.wallet.Protos.TransactionInput.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,java.lang.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 typewallet.TransactionInput
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.TransactionInput.Builder
clearScriptBytes()
Script that contains the signatures/pubkeys.Protos.TransactionInput.Builder
clearSequence()
Sequence number.Protos.TransactionInput.Builder
clearTransactionOutPointHash()
Hash of the transaction this input is using.Protos.TransactionInput.Builder
clearTransactionOutPointIndex()
Index of transaction output used by this input.Protos.TransactionInput.Builder
clearValue()
Value of connected output, if knownProtos.TransactionInput.Builder
clearWitness()
script witnesscom.google.protobuf.ByteString
getScriptBytes()
Script that contains the signatures/pubkeys.int
getSequence()
Sequence number.com.google.protobuf.ByteString
getTransactionOutPointHash()
Hash of the transaction this input is using.int
getTransactionOutPointIndex()
Index of transaction output used by this input.long
getValue()
Value of connected output, if knownProtos.ScriptWitness
getWitness()
script witnessboolean
hasScriptBytes()
Script that contains the signatures/pubkeys.boolean
hasSequence()
Sequence number.boolean
hasTransactionOutPointHash()
Hash of the transaction this input is using.boolean
hasTransactionOutPointIndex()
Index of transaction output used by this input.boolean
hasValue()
Value of connected output, if knownboolean
hasWitness()
script witnessProtos.TransactionInput.Builder
mergeWitness(Protos.ScriptWitness value)
script witnessProtos.TransactionInput.Builder
setScriptBytes(com.google.protobuf.ByteString value)
Script that contains the signatures/pubkeys.Protos.TransactionInput.Builder
setSequence(int value)
Sequence number.Protos.TransactionInput.Builder
setTransactionOutPointHash(com.google.protobuf.ByteString value)
Hash of the transaction this input is using.Protos.TransactionInput.Builder
setTransactionOutPointIndex(int value)
Index of transaction output used by this input.Protos.TransactionInput.Builder
setValue(long value)
Value of connected output, if knownProtos.TransactionInput.Builder
setWitness(Protos.ScriptWitness value)
script witnessProtos.TransactionInput.Builder
setWitness(Protos.ScriptWitness.Builder builderForValue)
script witness-
Methods 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
-
-
-
-
Method Detail
-
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
public Protos.TransactionInput.Builder 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
public Protos.TransactionInput.Builder setTransactionOutPointIndex(int value)
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
public Protos.TransactionInput.Builder 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
public Protos.TransactionInput.Builder setScriptBytes(com.google.protobuf.ByteString value)
Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;
- Parameters:
value
- The scriptBytes to set.- Returns:
- This builder for chaining.
-
clearScriptBytes
public Protos.TransactionInput.Builder 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
public Protos.TransactionInput.Builder setSequence(int value)
Sequence number.
optional uint32 sequence = 4;
- Parameters:
value
- The sequence to set.- Returns:
- This builder for chaining.
-
clearSequence
public Protos.TransactionInput.Builder 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
public Protos.TransactionInput.Builder setValue(long value)
Value of connected output, if known
optional int64 value = 5;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public Protos.TransactionInput.Builder 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
public Protos.ScriptWitness getWitness()
script witness
optional .wallet.ScriptWitness witness = 6;
- Specified by:
getWitness
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- The witness.
-
setWitness
public Protos.TransactionInput.Builder setWitness(Protos.ScriptWitness value)
script witness
optional .wallet.ScriptWitness witness = 6;
-
setWitness
public Protos.TransactionInput.Builder setWitness(Protos.ScriptWitness.Builder builderForValue)
script witness
optional .wallet.ScriptWitness witness = 6;
-
mergeWitness
public Protos.TransactionInput.Builder mergeWitness(Protos.ScriptWitness value)
script witness
optional .wallet.ScriptWitness witness = 6;
-
clearWitness
public Protos.TransactionInput.Builder clearWitness()
script witness
optional .wallet.ScriptWitness witness = 6;
-
-