Package org.bitcoinj.protobuf.wallet
Class Protos.Transaction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.Transaction,Protos.Transaction.Builder>
-
- org.bitcoinj.protobuf.wallet.Protos.Transaction.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,java.lang.Cloneable
,Protos.TransactionOrBuilder
- Enclosing class:
- Protos.Transaction
public static final class Protos.Transaction.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Transaction,Protos.Transaction.Builder> implements Protos.TransactionOrBuilder
Protobuf typewallet.Transaction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.Transaction.Builder
addAllBlockHash(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
A list of blocks in which the transaction has been observed (on any chain).Protos.Transaction.Builder
addAllBlockRelativityOffsets(java.lang.Iterable<? extends java.lang.Integer> values)
repeated int32 block_relativity_offsets = 11;
Protos.Transaction.Builder
addAllTransactionInput(java.lang.Iterable<? extends Protos.TransactionInput> values)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
addAllTransactionOutput(java.lang.Iterable<? extends Protos.TransactionOutput> values)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
addBlockHash(com.google.protobuf.ByteString value)
A list of blocks in which the transaction has been observed (on any chain).Protos.Transaction.Builder
addBlockRelativityOffsets(int value)
repeated int32 block_relativity_offsets = 11;
Protos.Transaction.Builder
addTransactionInput(int index, Protos.TransactionInput value)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
addTransactionInput(int index, Protos.TransactionInput.Builder builderForValue)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
addTransactionInput(Protos.TransactionInput value)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
addTransactionInput(Protos.TransactionInput.Builder builderForValue)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
addTransactionOutput(int index, Protos.TransactionOutput value)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
addTransactionOutput(int index, Protos.TransactionOutput.Builder builderForValue)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
addTransactionOutput(Protos.TransactionOutput value)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
addTransactionOutput(Protos.TransactionOutput.Builder builderForValue)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
clearBlockHash()
A list of blocks in which the transaction has been observed (on any chain).Protos.Transaction.Builder
clearBlockRelativityOffsets()
repeated int32 block_relativity_offsets = 11;
Protos.Transaction.Builder
clearConfidence()
Data describing where the transaction is in the chain.Protos.Transaction.Builder
clearExchangeRate()
Exchange rate that was valid when the transaction was sent.Protos.Transaction.Builder
clearHash()
required bytes hash = 2;
Protos.Transaction.Builder
clearLockTime()
The nLockTime field is useful for contracts.Protos.Transaction.Builder
clearMemo()
Memo of the transaction.Protos.Transaction.Builder
clearPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.Protos.Transaction.Builder
clearPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
Protos.Transaction.Builder
clearTransactionInput()
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
clearTransactionOutput()
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
clearUpdatedAt()
millis since epoch the transaction was last updatedProtos.Transaction.Builder
clearVersion()
See Wallet.java for detailed description of pool semanticscom.google.protobuf.ByteString
getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain).int
getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain).java.util.List<com.google.protobuf.ByteString>
getBlockHashList()
A list of blocks in which the transaction has been observed (on any chain).int
getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11;
int
getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;
java.util.List<java.lang.Integer>
getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;
Protos.TransactionConfidence
getConfidence()
Data describing where the transaction is in the chain.Protos.ExchangeRate
getExchangeRate()
Exchange rate that was valid when the transaction was sent.com.google.protobuf.ByteString
getHash()
required bytes hash = 2;
int
getLockTime()
The nLockTime field is useful for contracts.java.lang.String
getMemo()
Memo of the transaction.com.google.protobuf.ByteString
getMemoBytes()
Memo of the transaction.Protos.Transaction.Pool
getPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.Protos.Transaction.Purpose
getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
Protos.TransactionInput
getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
int
getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;
java.util.List<Protos.TransactionInput>
getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;
Protos.TransactionOutput
getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
int
getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;
java.util.List<Protos.TransactionOutput>
getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;
long
getUpdatedAt()
millis since epoch the transaction was last updatedint
getVersion()
See Wallet.java for detailed description of pool semanticsboolean
hasConfidence()
Data describing where the transaction is in the chain.boolean
hasExchangeRate()
Exchange rate that was valid when the transaction was sent.boolean
hasHash()
required bytes hash = 2;
boolean
hasLockTime()
The nLockTime field is useful for contracts.boolean
hasMemo()
Memo of the transaction.boolean
hasPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.boolean
hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
boolean
hasUpdatedAt()
millis since epoch the transaction was last updatedboolean
hasVersion()
See Wallet.java for detailed description of pool semanticsProtos.Transaction.Builder
mergeConfidence(Protos.TransactionConfidence value)
Data describing where the transaction is in the chain.Protos.Transaction.Builder
mergeExchangeRate(Protos.ExchangeRate value)
Exchange rate that was valid when the transaction was sent.Protos.Transaction.Builder
removeTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
removeTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
setBlockHash(int index, com.google.protobuf.ByteString value)
A list of blocks in which the transaction has been observed (on any chain).Protos.Transaction.Builder
setBlockRelativityOffsets(int index, int value)
repeated int32 block_relativity_offsets = 11;
Protos.Transaction.Builder
setConfidence(Protos.TransactionConfidence value)
Data describing where the transaction is in the chain.Protos.Transaction.Builder
setConfidence(Protos.TransactionConfidence.Builder builderForValue)
Data describing where the transaction is in the chain.Protos.Transaction.Builder
setExchangeRate(Protos.ExchangeRate value)
Exchange rate that was valid when the transaction was sent.Protos.Transaction.Builder
setExchangeRate(Protos.ExchangeRate.Builder builderForValue)
Exchange rate that was valid when the transaction was sent.Protos.Transaction.Builder
setHash(com.google.protobuf.ByteString value)
required bytes hash = 2;
Protos.Transaction.Builder
setLockTime(int value)
The nLockTime field is useful for contracts.Protos.Transaction.Builder
setMemo(java.lang.String value)
Memo of the transaction.Protos.Transaction.Builder
setMemoBytes(com.google.protobuf.ByteString value)
Memo of the transaction.Protos.Transaction.Builder
setPool(Protos.Transaction.Pool value)
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.Protos.Transaction.Builder
setPurpose(Protos.Transaction.Purpose value)
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
Protos.Transaction.Builder
setTransactionInput(int index, Protos.TransactionInput value)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
setTransactionInput(int index, Protos.TransactionInput.Builder builderForValue)
repeated .wallet.TransactionInput transaction_input = 6;
Protos.Transaction.Builder
setTransactionOutput(int index, Protos.TransactionOutput value)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
setTransactionOutput(int index, Protos.TransactionOutput.Builder builderForValue)
repeated .wallet.TransactionOutput transaction_output = 7;
Protos.Transaction.Builder
setUpdatedAt(long value)
millis since epoch the transaction was last updatedProtos.Transaction.Builder
setVersion(int value)
See Wallet.java for detailed description of pool semantics-
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
-
hasVersion
public boolean hasVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;
- Specified by:
hasVersion
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
public int getVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;
- Specified by:
getVersion
in interfaceProtos.TransactionOrBuilder
- Returns:
- The version.
-
setVersion
public Protos.Transaction.Builder setVersion(int value)
See Wallet.java for detailed description of pool semantics
required int32 version = 1;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Protos.Transaction.Builder clearVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;
- Returns:
- This builder for chaining.
-
hasHash
public boolean hasHash()
required bytes hash = 2;
- Specified by:
hasHash
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the hash field is set.
-
getHash
public com.google.protobuf.ByteString getHash()
required bytes hash = 2;
- Specified by:
getHash
in interfaceProtos.TransactionOrBuilder
- Returns:
- The hash.
-
setHash
public Protos.Transaction.Builder setHash(com.google.protobuf.ByteString value)
required bytes hash = 2;
- Parameters:
value
- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
public Protos.Transaction.Builder clearHash()
required bytes hash = 2;
- Returns:
- This builder for chaining.
-
hasPool
public boolean hasPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;
- Specified by:
hasPool
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the pool field is set.
-
getPool
public Protos.Transaction.Pool getPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;
- Specified by:
getPool
in interfaceProtos.TransactionOrBuilder
- Returns:
- The pool.
-
setPool
public Protos.Transaction.Builder setPool(Protos.Transaction.Pool value)
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;
- Parameters:
value
- The enum numeric value on the wire for pool to set.- Returns:
- This builder for chaining.
-
clearPool
public Protos.Transaction.Builder clearPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;
- Returns:
- This builder for chaining.
-
hasLockTime
public boolean hasLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
- Specified by:
hasLockTime
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the lockTime field is set.
-
getLockTime
public int getLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
- Specified by:
getLockTime
in interfaceProtos.TransactionOrBuilder
- Returns:
- The lockTime.
-
setLockTime
public Protos.Transaction.Builder setLockTime(int value)
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
- Parameters:
value
- The lockTime to set.- Returns:
- This builder for chaining.
-
clearLockTime
public Protos.Transaction.Builder clearLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
- Returns:
- This builder for chaining.
-
hasUpdatedAt
public boolean hasUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;
- Specified by:
hasUpdatedAt
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the updatedAt field is set.
-
getUpdatedAt
public long getUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;
- Specified by:
getUpdatedAt
in interfaceProtos.TransactionOrBuilder
- Returns:
- The updatedAt.
-
setUpdatedAt
public Protos.Transaction.Builder setUpdatedAt(long value)
millis since epoch the transaction was last updated
optional int64 updated_at = 5;
- Parameters:
value
- The updatedAt to set.- Returns:
- This builder for chaining.
-
clearUpdatedAt
public Protos.Transaction.Builder clearUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;
- Returns:
- This builder for chaining.
-
getTransactionInputList
public java.util.List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;
- Specified by:
getTransactionInputList
in interfaceProtos.TransactionOrBuilder
-
getTransactionInputCount
public int getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;
- Specified by:
getTransactionInputCount
in interfaceProtos.TransactionOrBuilder
-
getTransactionInput
public Protos.TransactionInput getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
- Specified by:
getTransactionInput
in interfaceProtos.TransactionOrBuilder
-
setTransactionInput
public Protos.Transaction.Builder setTransactionInput(int index, Protos.TransactionInput value)
repeated .wallet.TransactionInput transaction_input = 6;
-
setTransactionInput
public Protos.Transaction.Builder setTransactionInput(int index, Protos.TransactionInput.Builder builderForValue)
repeated .wallet.TransactionInput transaction_input = 6;
-
addTransactionInput
public Protos.Transaction.Builder addTransactionInput(Protos.TransactionInput value)
repeated .wallet.TransactionInput transaction_input = 6;
-
addTransactionInput
public Protos.Transaction.Builder addTransactionInput(int index, Protos.TransactionInput value)
repeated .wallet.TransactionInput transaction_input = 6;
-
addTransactionInput
public Protos.Transaction.Builder addTransactionInput(Protos.TransactionInput.Builder builderForValue)
repeated .wallet.TransactionInput transaction_input = 6;
-
addTransactionInput
public Protos.Transaction.Builder addTransactionInput(int index, Protos.TransactionInput.Builder builderForValue)
repeated .wallet.TransactionInput transaction_input = 6;
-
addAllTransactionInput
public Protos.Transaction.Builder addAllTransactionInput(java.lang.Iterable<? extends Protos.TransactionInput> values)
repeated .wallet.TransactionInput transaction_input = 6;
-
clearTransactionInput
public Protos.Transaction.Builder clearTransactionInput()
repeated .wallet.TransactionInput transaction_input = 6;
-
removeTransactionInput
public Protos.Transaction.Builder removeTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionOutputList
public java.util.List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;
- Specified by:
getTransactionOutputList
in interfaceProtos.TransactionOrBuilder
-
getTransactionOutputCount
public int getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;
- Specified by:
getTransactionOutputCount
in interfaceProtos.TransactionOrBuilder
-
getTransactionOutput
public Protos.TransactionOutput getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
- Specified by:
getTransactionOutput
in interfaceProtos.TransactionOrBuilder
-
setTransactionOutput
public Protos.Transaction.Builder setTransactionOutput(int index, Protos.TransactionOutput value)
repeated .wallet.TransactionOutput transaction_output = 7;
-
setTransactionOutput
public Protos.Transaction.Builder setTransactionOutput(int index, Protos.TransactionOutput.Builder builderForValue)
repeated .wallet.TransactionOutput transaction_output = 7;
-
addTransactionOutput
public Protos.Transaction.Builder addTransactionOutput(Protos.TransactionOutput value)
repeated .wallet.TransactionOutput transaction_output = 7;
-
addTransactionOutput
public Protos.Transaction.Builder addTransactionOutput(int index, Protos.TransactionOutput value)
repeated .wallet.TransactionOutput transaction_output = 7;
-
addTransactionOutput
public Protos.Transaction.Builder addTransactionOutput(Protos.TransactionOutput.Builder builderForValue)
repeated .wallet.TransactionOutput transaction_output = 7;
-
addTransactionOutput
public Protos.Transaction.Builder addTransactionOutput(int index, Protos.TransactionOutput.Builder builderForValue)
repeated .wallet.TransactionOutput transaction_output = 7;
-
addAllTransactionOutput
public Protos.Transaction.Builder addAllTransactionOutput(java.lang.Iterable<? extends Protos.TransactionOutput> values)
repeated .wallet.TransactionOutput transaction_output = 7;
-
clearTransactionOutput
public Protos.Transaction.Builder clearTransactionOutput()
repeated .wallet.TransactionOutput transaction_output = 7;
-
removeTransactionOutput
public Protos.Transaction.Builder removeTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
-
getBlockHashList
public java.util.List<com.google.protobuf.ByteString> getBlockHashList()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Specified by:
getBlockHashList
in interfaceProtos.TransactionOrBuilder
- Returns:
- A list containing the blockHash.
-
getBlockHashCount
public int getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Specified by:
getBlockHashCount
in interfaceProtos.TransactionOrBuilder
- Returns:
- The count of blockHash.
-
getBlockHash
public com.google.protobuf.ByteString getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Specified by:
getBlockHash
in interfaceProtos.TransactionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The blockHash at the given index.
-
setBlockHash
public Protos.Transaction.Builder setBlockHash(int index, com.google.protobuf.ByteString value)
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Parameters:
value
- The blockHash to set.- Returns:
- This builder for chaining.
-
addBlockHash
public Protos.Transaction.Builder addBlockHash(com.google.protobuf.ByteString value)
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Parameters:
value
- The blockHash to add.- Returns:
- This builder for chaining.
-
addAllBlockHash
public Protos.Transaction.Builder addAllBlockHash(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Parameters:
values
- The blockHash to add.- Returns:
- This builder for chaining.
-
clearBlockHash
public Protos.Transaction.Builder clearBlockHash()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Returns:
- This builder for chaining.
-
getBlockRelativityOffsetsList
public java.util.List<java.lang.Integer> getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;
- Specified by:
getBlockRelativityOffsetsList
in interfaceProtos.TransactionOrBuilder
- Returns:
- A list containing the blockRelativityOffsets.
-
getBlockRelativityOffsetsCount
public int getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;
- Specified by:
getBlockRelativityOffsetsCount
in interfaceProtos.TransactionOrBuilder
- Returns:
- The count of blockRelativityOffsets.
-
getBlockRelativityOffsets
public int getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11;
- Specified by:
getBlockRelativityOffsets
in interfaceProtos.TransactionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The blockRelativityOffsets at the given index.
-
setBlockRelativityOffsets
public Protos.Transaction.Builder setBlockRelativityOffsets(int index, int value)
repeated int32 block_relativity_offsets = 11;
- Parameters:
value
- The blockRelativityOffsets to set.- Returns:
- This builder for chaining.
-
addBlockRelativityOffsets
public Protos.Transaction.Builder addBlockRelativityOffsets(int value)
repeated int32 block_relativity_offsets = 11;
- Parameters:
value
- The blockRelativityOffsets to add.- Returns:
- This builder for chaining.
-
addAllBlockRelativityOffsets
public Protos.Transaction.Builder addAllBlockRelativityOffsets(java.lang.Iterable<? extends java.lang.Integer> values)
repeated int32 block_relativity_offsets = 11;
- Parameters:
values
- The blockRelativityOffsets to add.- Returns:
- This builder for chaining.
-
clearBlockRelativityOffsets
public Protos.Transaction.Builder clearBlockRelativityOffsets()
repeated int32 block_relativity_offsets = 11;
- Returns:
- This builder for chaining.
-
hasConfidence
public boolean hasConfidence()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
- Specified by:
hasConfidence
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the confidence field is set.
-
getConfidence
public Protos.TransactionConfidence getConfidence()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
- Specified by:
getConfidence
in interfaceProtos.TransactionOrBuilder
- Returns:
- The confidence.
-
setConfidence
public Protos.Transaction.Builder setConfidence(Protos.TransactionConfidence value)
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
-
setConfidence
public Protos.Transaction.Builder setConfidence(Protos.TransactionConfidence.Builder builderForValue)
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
-
mergeConfidence
public Protos.Transaction.Builder mergeConfidence(Protos.TransactionConfidence value)
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
-
clearConfidence
public Protos.Transaction.Builder clearConfidence()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
-
hasPurpose
public boolean hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
- Specified by:
hasPurpose
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the purpose field is set.
-
getPurpose
public Protos.Transaction.Purpose getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
- Specified by:
getPurpose
in interfaceProtos.TransactionOrBuilder
- Returns:
- The purpose.
-
setPurpose
public Protos.Transaction.Builder setPurpose(Protos.Transaction.Purpose value)
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
- Parameters:
value
- The enum numeric value on the wire for purpose to set.- Returns:
- This builder for chaining.
-
clearPurpose
public Protos.Transaction.Builder clearPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
- Returns:
- This builder for chaining.
-
hasExchangeRate
public boolean hasExchangeRate()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
- Specified by:
hasExchangeRate
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the exchangeRate field is set.
-
getExchangeRate
public Protos.ExchangeRate getExchangeRate()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
- Specified by:
getExchangeRate
in interfaceProtos.TransactionOrBuilder
- Returns:
- The exchangeRate.
-
setExchangeRate
public Protos.Transaction.Builder setExchangeRate(Protos.ExchangeRate value)
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
-
setExchangeRate
public Protos.Transaction.Builder setExchangeRate(Protos.ExchangeRate.Builder builderForValue)
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
-
mergeExchangeRate
public Protos.Transaction.Builder mergeExchangeRate(Protos.ExchangeRate value)
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
-
clearExchangeRate
public Protos.Transaction.Builder clearExchangeRate()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
-
hasMemo
public boolean hasMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Specified by:
hasMemo
in interfaceProtos.TransactionOrBuilder
- Returns:
- Whether the memo field is set.
-
getMemo
public java.lang.String getMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Specified by:
getMemo
in interfaceProtos.TransactionOrBuilder
- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Specified by:
getMemoBytes
in interfaceProtos.TransactionOrBuilder
- Returns:
- The bytes for memo.
-
setMemo
public Protos.Transaction.Builder setMemo(java.lang.String value)
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Parameters:
value
- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
public Protos.Transaction.Builder clearMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Returns:
- This builder for chaining.
-
setMemoBytes
public Protos.Transaction.Builder setMemoBytes(com.google.protobuf.ByteString value)
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Parameters:
value
- The bytes for memo to set.- Returns:
- This builder for chaining.
-
-