Package org.bitcoinj.wallet
Class Protos.TransactionOutput.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionOutput,Protos.TransactionOutput.Builder>
-
- org.bitcoinj.wallet.Protos.TransactionOutput.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable,Protos.TransactionOutputOrBuilder
- Enclosing class:
- Protos.TransactionOutput
public static final class Protos.TransactionOutput.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionOutput,Protos.TransactionOutput.Builder> implements Protos.TransactionOutputOrBuilder
Protobuf typewallet.TransactionOutput
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.TransactionOutput.BuilderclearScriptBytes()script of transaction outputProtos.TransactionOutput.BuilderclearSpentByTransactionHash()If spent, the hash of the transaction doing the spend.Protos.TransactionOutput.BuilderclearSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.Protos.TransactionOutput.BuilderclearValue()required int64 value = 1;com.google.protobuf.ByteStringgetScriptBytes()script of transaction outputcom.google.protobuf.ByteStringgetSpentByTransactionHash()If spent, the hash of the transaction doing the spend.intgetSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.longgetValue()required int64 value = 1;booleanhasScriptBytes()script of transaction outputbooleanhasSpentByTransactionHash()If spent, the hash of the transaction doing the spend.booleanhasSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.booleanhasValue()required int64 value = 1;Protos.TransactionOutput.BuildersetScriptBytes(com.google.protobuf.ByteString value)script of transaction outputProtos.TransactionOutput.BuildersetSpentByTransactionHash(com.google.protobuf.ByteString value)If spent, the hash of the transaction doing the spend.Protos.TransactionOutput.BuildersetSpentByTransactionIndex(int value)If spent, the index of the transaction input of the transaction doing the spend.Protos.TransactionOutput.BuildersetValue(long value)required int64 value = 1;-
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
-
hasValue
public boolean hasValue()
required int64 value = 1;- Specified by:
hasValuein interfaceProtos.TransactionOutputOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public long getValue()
required int64 value = 1;- Specified by:
getValuein interfaceProtos.TransactionOutputOrBuilder- Returns:
- The value.
-
setValue
public Protos.TransactionOutput.Builder setValue(long value)
required int64 value = 1;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public Protos.TransactionOutput.Builder clearValue()
required int64 value = 1;- Returns:
- This builder for chaining.
-
hasScriptBytes
public boolean hasScriptBytes()
script of transaction output
required bytes script_bytes = 2;- Specified by:
hasScriptBytesin interfaceProtos.TransactionOutputOrBuilder- Returns:
- Whether the scriptBytes field is set.
-
getScriptBytes
public com.google.protobuf.ByteString getScriptBytes()
script of transaction output
required bytes script_bytes = 2;- Specified by:
getScriptBytesin interfaceProtos.TransactionOutputOrBuilder- Returns:
- The scriptBytes.
-
setScriptBytes
public Protos.TransactionOutput.Builder setScriptBytes(com.google.protobuf.ByteString value)
script of transaction output
required bytes script_bytes = 2;- Parameters:
value- The scriptBytes to set.- Returns:
- This builder for chaining.
-
clearScriptBytes
public Protos.TransactionOutput.Builder clearScriptBytes()
script of transaction output
required bytes script_bytes = 2;- Returns:
- This builder for chaining.
-
hasSpentByTransactionHash
public boolean hasSpentByTransactionHash()
If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Specified by:
hasSpentByTransactionHashin interfaceProtos.TransactionOutputOrBuilder- Returns:
- Whether the spentByTransactionHash field is set.
-
getSpentByTransactionHash
public com.google.protobuf.ByteString getSpentByTransactionHash()
If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Specified by:
getSpentByTransactionHashin interfaceProtos.TransactionOutputOrBuilder- Returns:
- The spentByTransactionHash.
-
setSpentByTransactionHash
public Protos.TransactionOutput.Builder setSpentByTransactionHash(com.google.protobuf.ByteString value)
If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Parameters:
value- The spentByTransactionHash to set.- Returns:
- This builder for chaining.
-
clearSpentByTransactionHash
public Protos.TransactionOutput.Builder clearSpentByTransactionHash()
If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Returns:
- This builder for chaining.
-
hasSpentByTransactionIndex
public boolean hasSpentByTransactionIndex()
If spent, the index of the transaction input of the transaction doing the spend.
optional int32 spent_by_transaction_index = 4;- Specified by:
hasSpentByTransactionIndexin interfaceProtos.TransactionOutputOrBuilder- Returns:
- Whether the spentByTransactionIndex field is set.
-
getSpentByTransactionIndex
public int getSpentByTransactionIndex()
If spent, the index of the transaction input of the transaction doing the spend.
optional int32 spent_by_transaction_index = 4;- Specified by:
getSpentByTransactionIndexin interfaceProtos.TransactionOutputOrBuilder- Returns:
- The spentByTransactionIndex.
-
setSpentByTransactionIndex
public Protos.TransactionOutput.Builder setSpentByTransactionIndex(int value)
If spent, the index of the transaction input of the transaction doing the spend.
optional int32 spent_by_transaction_index = 4;- Parameters:
value- The spentByTransactionIndex to set.- Returns:
- This builder for chaining.
-
clearSpentByTransactionIndex
public Protos.TransactionOutput.Builder clearSpentByTransactionIndex()
If spent, the index of the transaction input of the transaction doing the spend.
optional int32 spent_by_transaction_index = 4;- Returns:
- This builder for chaining.
-
-