Package org.bitcoinj.wallet
Class Protos.Wallet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.Wallet,Protos.Wallet.Builder>
-
- org.bitcoinj.wallet.Protos.Wallet.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,java.lang.Cloneable
,Protos.WalletOrBuilder
- Enclosing class:
- Protos.Wallet
public static final class Protos.Wallet.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Wallet,Protos.Wallet.Builder> implements Protos.WalletOrBuilder
A bitcoin wallet
Protobuf typewallet.Wallet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.Wallet.Builder
addAllExtension(java.lang.Iterable<? extends Protos.Extension> values)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
addAllKey(java.lang.Iterable<? extends Protos.Key> values)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
addAllTags(java.lang.Iterable<? extends Protos.Tag> values)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
addAllTransaction(java.lang.Iterable<? extends Protos.Transaction> values)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
addAllWatchedScript(java.lang.Iterable<? extends Protos.Script> values)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
addExtension(int index, Protos.Extension value)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
addExtension(int index, Protos.Extension.Builder builderForValue)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
addExtension(Protos.Extension value)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
addExtension(Protos.Extension.Builder builderForValue)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
addKey(int index, Protos.Key value)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
addKey(int index, Protos.Key.Builder builderForValue)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
addKey(Protos.Key value)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
addKey(Protos.Key.Builder builderForValue)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
addTags(int index, Protos.Tag value)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
addTags(int index, Protos.Tag.Builder builderForValue)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
addTags(Protos.Tag value)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
addTags(Protos.Tag.Builder builderForValue)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
addTransaction(int index, Protos.Transaction value)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
addTransaction(int index, Protos.Transaction.Builder builderForValue)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
addTransaction(Protos.Transaction value)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
addTransaction(Protos.Transaction.Builder builderForValue)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
addWatchedScript(int index, Protos.Script value)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
addWatchedScript(int index, Protos.Script.Builder builderForValue)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
addWatchedScript(Protos.Script value)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
addWatchedScript(Protos.Script.Builder builderForValue)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
clearDescription()
A UTF8 encoded text description of the wallet that is intended for end user provided text.Protos.Wallet.Builder
clearEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
Protos.Wallet.Builder
clearEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
Protos.Wallet.Builder
clearExtension()
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
clearKey()
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
clearKeyRotationTime()
UNIX time in seconds since the epoch.Protos.Wallet.Builder
clearLastSeenBlockHash()
The SHA256 hash of the head of the best chain seen by this wallet.Protos.Wallet.Builder
clearLastSeenBlockHeight()
The height in the chain of the last seen block.Protos.Wallet.Builder
clearLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
Protos.Wallet.Builder
clearNetworkIdentifier()
the network used by this walletProtos.Wallet.Builder
clearTags()
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
clearTransaction()
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
clearVersion()
The version number of the wallet - used to detect wallets that were produced in the future (i.e.Protos.Wallet.Builder
clearWatchedScript()
repeated .wallet.Script watched_script = 15;
java.lang.String
getDescription()
A UTF8 encoded text description of the wallet that is intended for end user provided text.com.google.protobuf.ByteString
getDescriptionBytes()
A UTF8 encoded text description of the wallet that is intended for end user provided text.Protos.ScryptParameters
getEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
Protos.Wallet.EncryptionType
getEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
Protos.Extension
getExtension(int index)
repeated .wallet.Extension extension = 10;
int
getExtensionCount()
repeated .wallet.Extension extension = 10;
java.util.List<Protos.Extension>
getExtensionList()
repeated .wallet.Extension extension = 10;
Protos.Key
getKey(int index)
repeated .wallet.Key key = 3;
int
getKeyCount()
repeated .wallet.Key key = 3;
java.util.List<Protos.Key>
getKeyList()
repeated .wallet.Key key = 3;
long
getKeyRotationTime()
UNIX time in seconds since the epoch.com.google.protobuf.ByteString
getLastSeenBlockHash()
The SHA256 hash of the head of the best chain seen by this wallet.int
getLastSeenBlockHeight()
The height in the chain of the last seen block.long
getLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
java.lang.String
getNetworkIdentifier()
the network used by this walletcom.google.protobuf.ByteString
getNetworkIdentifierBytes()
the network used by this walletProtos.Tag
getTags(int index)
repeated .wallet.Tag tags = 16;
int
getTagsCount()
repeated .wallet.Tag tags = 16;
java.util.List<Protos.Tag>
getTagsList()
repeated .wallet.Tag tags = 16;
Protos.Transaction
getTransaction(int index)
repeated .wallet.Transaction transaction = 4;
int
getTransactionCount()
repeated .wallet.Transaction transaction = 4;
java.util.List<Protos.Transaction>
getTransactionList()
repeated .wallet.Transaction transaction = 4;
int
getVersion()
The version number of the wallet - used to detect wallets that were produced in the future (i.e.Protos.Script
getWatchedScript(int index)
repeated .wallet.Script watched_script = 15;
int
getWatchedScriptCount()
repeated .wallet.Script watched_script = 15;
java.util.List<Protos.Script>
getWatchedScriptList()
repeated .wallet.Script watched_script = 15;
boolean
hasDescription()
A UTF8 encoded text description of the wallet that is intended for end user provided text.boolean
hasEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
boolean
hasEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
boolean
hasKeyRotationTime()
UNIX time in seconds since the epoch.boolean
hasLastSeenBlockHash()
The SHA256 hash of the head of the best chain seen by this wallet.boolean
hasLastSeenBlockHeight()
The height in the chain of the last seen block.boolean
hasLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
boolean
hasNetworkIdentifier()
the network used by this walletboolean
hasVersion()
The version number of the wallet - used to detect wallets that were produced in the future (i.e.Protos.Wallet.Builder
mergeEncryptionParameters(Protos.ScryptParameters value)
optional .wallet.ScryptParameters encryption_parameters = 6;
Protos.Wallet.Builder
removeExtension(int index)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
removeKey(int index)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
removeTags(int index)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
removeTransaction(int index)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
removeWatchedScript(int index)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
setDescription(java.lang.String value)
A UTF8 encoded text description of the wallet that is intended for end user provided text.Protos.Wallet.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A UTF8 encoded text description of the wallet that is intended for end user provided text.Protos.Wallet.Builder
setEncryptionParameters(Protos.ScryptParameters value)
optional .wallet.ScryptParameters encryption_parameters = 6;
Protos.Wallet.Builder
setEncryptionParameters(Protos.ScryptParameters.Builder builderForValue)
optional .wallet.ScryptParameters encryption_parameters = 6;
Protos.Wallet.Builder
setEncryptionType(Protos.Wallet.EncryptionType value)
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
Protos.Wallet.Builder
setExtension(int index, Protos.Extension value)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
setExtension(int index, Protos.Extension.Builder builderForValue)
repeated .wallet.Extension extension = 10;
Protos.Wallet.Builder
setKey(int index, Protos.Key value)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
setKey(int index, Protos.Key.Builder builderForValue)
repeated .wallet.Key key = 3;
Protos.Wallet.Builder
setKeyRotationTime(long value)
UNIX time in seconds since the epoch.Protos.Wallet.Builder
setLastSeenBlockHash(com.google.protobuf.ByteString value)
The SHA256 hash of the head of the best chain seen by this wallet.Protos.Wallet.Builder
setLastSeenBlockHeight(int value)
The height in the chain of the last seen block.Protos.Wallet.Builder
setLastSeenBlockTimeSecs(long value)
optional int64 last_seen_block_time_secs = 14;
Protos.Wallet.Builder
setNetworkIdentifier(java.lang.String value)
the network used by this walletProtos.Wallet.Builder
setNetworkIdentifierBytes(com.google.protobuf.ByteString value)
the network used by this walletProtos.Wallet.Builder
setTags(int index, Protos.Tag value)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
setTags(int index, Protos.Tag.Builder builderForValue)
repeated .wallet.Tag tags = 16;
Protos.Wallet.Builder
setTransaction(int index, Protos.Transaction value)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
setTransaction(int index, Protos.Transaction.Builder builderForValue)
repeated .wallet.Transaction transaction = 4;
Protos.Wallet.Builder
setVersion(int value)
The version number of the wallet - used to detect wallets that were produced in the future (i.e.Protos.Wallet.Builder
setWatchedScript(int index, Protos.Script value)
repeated .wallet.Script watched_script = 15;
Protos.Wallet.Builder
setWatchedScript(int index, Protos.Script.Builder builderForValue)
repeated .wallet.Script watched_script = 15;
-
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
-
hasNetworkIdentifier
public boolean hasNetworkIdentifier()
the network used by this wallet
required string network_identifier = 1;
- Specified by:
hasNetworkIdentifier
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the networkIdentifier field is set.
-
getNetworkIdentifier
public java.lang.String getNetworkIdentifier()
the network used by this wallet
required string network_identifier = 1;
- Specified by:
getNetworkIdentifier
in interfaceProtos.WalletOrBuilder
- Returns:
- The networkIdentifier.
-
getNetworkIdentifierBytes
public com.google.protobuf.ByteString getNetworkIdentifierBytes()
the network used by this wallet
required string network_identifier = 1;
- Specified by:
getNetworkIdentifierBytes
in interfaceProtos.WalletOrBuilder
- Returns:
- The bytes for networkIdentifier.
-
setNetworkIdentifier
public Protos.Wallet.Builder setNetworkIdentifier(java.lang.String value)
the network used by this wallet
required string network_identifier = 1;
- Parameters:
value
- The networkIdentifier to set.- Returns:
- This builder for chaining.
-
clearNetworkIdentifier
public Protos.Wallet.Builder clearNetworkIdentifier()
the network used by this wallet
required string network_identifier = 1;
- Returns:
- This builder for chaining.
-
setNetworkIdentifierBytes
public Protos.Wallet.Builder setNetworkIdentifierBytes(com.google.protobuf.ByteString value)
the network used by this wallet
required string network_identifier = 1;
- Parameters:
value
- The bytes for networkIdentifier to set.- Returns:
- This builder for chaining.
-
hasLastSeenBlockHash
public boolean hasLastSeenBlockHash()
The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;
- Specified by:
hasLastSeenBlockHash
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the lastSeenBlockHash field is set.
-
getLastSeenBlockHash
public com.google.protobuf.ByteString getLastSeenBlockHash()
The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;
- Specified by:
getLastSeenBlockHash
in interfaceProtos.WalletOrBuilder
- Returns:
- The lastSeenBlockHash.
-
setLastSeenBlockHash
public Protos.Wallet.Builder setLastSeenBlockHash(com.google.protobuf.ByteString value)
The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;
- Parameters:
value
- The lastSeenBlockHash to set.- Returns:
- This builder for chaining.
-
clearLastSeenBlockHash
public Protos.Wallet.Builder clearLastSeenBlockHash()
The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;
- Returns:
- This builder for chaining.
-
hasLastSeenBlockHeight
public boolean hasLastSeenBlockHeight()
The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;
- Specified by:
hasLastSeenBlockHeight
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the lastSeenBlockHeight field is set.
-
getLastSeenBlockHeight
public int getLastSeenBlockHeight()
The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;
- Specified by:
getLastSeenBlockHeight
in interfaceProtos.WalletOrBuilder
- Returns:
- The lastSeenBlockHeight.
-
setLastSeenBlockHeight
public Protos.Wallet.Builder setLastSeenBlockHeight(int value)
The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;
- Parameters:
value
- The lastSeenBlockHeight to set.- Returns:
- This builder for chaining.
-
clearLastSeenBlockHeight
public Protos.Wallet.Builder clearLastSeenBlockHeight()
The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;
- Returns:
- This builder for chaining.
-
hasLastSeenBlockTimeSecs
public boolean hasLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
- Specified by:
hasLastSeenBlockTimeSecs
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the lastSeenBlockTimeSecs field is set.
-
getLastSeenBlockTimeSecs
public long getLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
- Specified by:
getLastSeenBlockTimeSecs
in interfaceProtos.WalletOrBuilder
- Returns:
- The lastSeenBlockTimeSecs.
-
setLastSeenBlockTimeSecs
public Protos.Wallet.Builder setLastSeenBlockTimeSecs(long value)
optional int64 last_seen_block_time_secs = 14;
- Parameters:
value
- The lastSeenBlockTimeSecs to set.- Returns:
- This builder for chaining.
-
clearLastSeenBlockTimeSecs
public Protos.Wallet.Builder clearLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
- Returns:
- This builder for chaining.
-
getKeyList
public java.util.List<Protos.Key> getKeyList()
repeated .wallet.Key key = 3;
- Specified by:
getKeyList
in interfaceProtos.WalletOrBuilder
-
getKeyCount
public int getKeyCount()
repeated .wallet.Key key = 3;
- Specified by:
getKeyCount
in interfaceProtos.WalletOrBuilder
-
getKey
public Protos.Key getKey(int index)
repeated .wallet.Key key = 3;
- Specified by:
getKey
in interfaceProtos.WalletOrBuilder
-
setKey
public Protos.Wallet.Builder setKey(int index, Protos.Key value)
repeated .wallet.Key key = 3;
-
setKey
public Protos.Wallet.Builder setKey(int index, Protos.Key.Builder builderForValue)
repeated .wallet.Key key = 3;
-
addKey
public Protos.Wallet.Builder addKey(Protos.Key value)
repeated .wallet.Key key = 3;
-
addKey
public Protos.Wallet.Builder addKey(int index, Protos.Key value)
repeated .wallet.Key key = 3;
-
addKey
public Protos.Wallet.Builder addKey(Protos.Key.Builder builderForValue)
repeated .wallet.Key key = 3;
-
addKey
public Protos.Wallet.Builder addKey(int index, Protos.Key.Builder builderForValue)
repeated .wallet.Key key = 3;
-
addAllKey
public Protos.Wallet.Builder addAllKey(java.lang.Iterable<? extends Protos.Key> values)
repeated .wallet.Key key = 3;
-
clearKey
public Protos.Wallet.Builder clearKey()
repeated .wallet.Key key = 3;
-
removeKey
public Protos.Wallet.Builder removeKey(int index)
repeated .wallet.Key key = 3;
-
getTransactionList
public java.util.List<Protos.Transaction> getTransactionList()
repeated .wallet.Transaction transaction = 4;
- Specified by:
getTransactionList
in interfaceProtos.WalletOrBuilder
-
getTransactionCount
public int getTransactionCount()
repeated .wallet.Transaction transaction = 4;
- Specified by:
getTransactionCount
in interfaceProtos.WalletOrBuilder
-
getTransaction
public Protos.Transaction getTransaction(int index)
repeated .wallet.Transaction transaction = 4;
- Specified by:
getTransaction
in interfaceProtos.WalletOrBuilder
-
setTransaction
public Protos.Wallet.Builder setTransaction(int index, Protos.Transaction value)
repeated .wallet.Transaction transaction = 4;
-
setTransaction
public Protos.Wallet.Builder setTransaction(int index, Protos.Transaction.Builder builderForValue)
repeated .wallet.Transaction transaction = 4;
-
addTransaction
public Protos.Wallet.Builder addTransaction(Protos.Transaction value)
repeated .wallet.Transaction transaction = 4;
-
addTransaction
public Protos.Wallet.Builder addTransaction(int index, Protos.Transaction value)
repeated .wallet.Transaction transaction = 4;
-
addTransaction
public Protos.Wallet.Builder addTransaction(Protos.Transaction.Builder builderForValue)
repeated .wallet.Transaction transaction = 4;
-
addTransaction
public Protos.Wallet.Builder addTransaction(int index, Protos.Transaction.Builder builderForValue)
repeated .wallet.Transaction transaction = 4;
-
addAllTransaction
public Protos.Wallet.Builder addAllTransaction(java.lang.Iterable<? extends Protos.Transaction> values)
repeated .wallet.Transaction transaction = 4;
-
clearTransaction
public Protos.Wallet.Builder clearTransaction()
repeated .wallet.Transaction transaction = 4;
-
removeTransaction
public Protos.Wallet.Builder removeTransaction(int index)
repeated .wallet.Transaction transaction = 4;
-
getWatchedScriptList
public java.util.List<Protos.Script> getWatchedScriptList()
repeated .wallet.Script watched_script = 15;
- Specified by:
getWatchedScriptList
in interfaceProtos.WalletOrBuilder
-
getWatchedScriptCount
public int getWatchedScriptCount()
repeated .wallet.Script watched_script = 15;
- Specified by:
getWatchedScriptCount
in interfaceProtos.WalletOrBuilder
-
getWatchedScript
public Protos.Script getWatchedScript(int index)
repeated .wallet.Script watched_script = 15;
- Specified by:
getWatchedScript
in interfaceProtos.WalletOrBuilder
-
setWatchedScript
public Protos.Wallet.Builder setWatchedScript(int index, Protos.Script value)
repeated .wallet.Script watched_script = 15;
-
setWatchedScript
public Protos.Wallet.Builder setWatchedScript(int index, Protos.Script.Builder builderForValue)
repeated .wallet.Script watched_script = 15;
-
addWatchedScript
public Protos.Wallet.Builder addWatchedScript(Protos.Script value)
repeated .wallet.Script watched_script = 15;
-
addWatchedScript
public Protos.Wallet.Builder addWatchedScript(int index, Protos.Script value)
repeated .wallet.Script watched_script = 15;
-
addWatchedScript
public Protos.Wallet.Builder addWatchedScript(Protos.Script.Builder builderForValue)
repeated .wallet.Script watched_script = 15;
-
addWatchedScript
public Protos.Wallet.Builder addWatchedScript(int index, Protos.Script.Builder builderForValue)
repeated .wallet.Script watched_script = 15;
-
addAllWatchedScript
public Protos.Wallet.Builder addAllWatchedScript(java.lang.Iterable<? extends Protos.Script> values)
repeated .wallet.Script watched_script = 15;
-
clearWatchedScript
public Protos.Wallet.Builder clearWatchedScript()
repeated .wallet.Script watched_script = 15;
-
removeWatchedScript
public Protos.Wallet.Builder removeWatchedScript(int index)
repeated .wallet.Script watched_script = 15;
-
hasEncryptionType
public boolean hasEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
- Specified by:
hasEncryptionType
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the encryptionType field is set.
-
getEncryptionType
public Protos.Wallet.EncryptionType getEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
- Specified by:
getEncryptionType
in interfaceProtos.WalletOrBuilder
- Returns:
- The encryptionType.
-
setEncryptionType
public Protos.Wallet.Builder setEncryptionType(Protos.Wallet.EncryptionType value)
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
- Parameters:
value
- The enum numeric value on the wire for encryptionType to set.- Returns:
- This builder for chaining.
-
clearEncryptionType
public Protos.Wallet.Builder clearEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
- Returns:
- This builder for chaining.
-
hasEncryptionParameters
public boolean hasEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
- Specified by:
hasEncryptionParameters
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the encryptionParameters field is set.
-
getEncryptionParameters
public Protos.ScryptParameters getEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
- Specified by:
getEncryptionParameters
in interfaceProtos.WalletOrBuilder
- Returns:
- The encryptionParameters.
-
setEncryptionParameters
public Protos.Wallet.Builder setEncryptionParameters(Protos.ScryptParameters value)
optional .wallet.ScryptParameters encryption_parameters = 6;
-
setEncryptionParameters
public Protos.Wallet.Builder setEncryptionParameters(Protos.ScryptParameters.Builder builderForValue)
optional .wallet.ScryptParameters encryption_parameters = 6;
-
mergeEncryptionParameters
public Protos.Wallet.Builder mergeEncryptionParameters(Protos.ScryptParameters value)
optional .wallet.ScryptParameters encryption_parameters = 6;
-
clearEncryptionParameters
public Protos.Wallet.Builder clearEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
-
hasVersion
public boolean hasVersion()
The version number of the wallet - used to detect wallets that were produced in the future (i.e. the wallet may contain some future format this protobuf or parser code does not know about). A version that's higher than the default is considered from the future.
optional int32 version = 7 [default = 1];
- Specified by:
hasVersion
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
public int getVersion()
The version number of the wallet - used to detect wallets that were produced in the future (i.e. the wallet may contain some future format this protobuf or parser code does not know about). A version that's higher than the default is considered from the future.
optional int32 version = 7 [default = 1];
- Specified by:
getVersion
in interfaceProtos.WalletOrBuilder
- Returns:
- The version.
-
setVersion
public Protos.Wallet.Builder setVersion(int value)
The version number of the wallet - used to detect wallets that were produced in the future (i.e. the wallet may contain some future format this protobuf or parser code does not know about). A version that's higher than the default is considered from the future.
optional int32 version = 7 [default = 1];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Protos.Wallet.Builder clearVersion()
The version number of the wallet - used to detect wallets that were produced in the future (i.e. the wallet may contain some future format this protobuf or parser code does not know about). A version that's higher than the default is considered from the future.
optional int32 version = 7 [default = 1];
- Returns:
- This builder for chaining.
-
getExtensionList
public java.util.List<Protos.Extension> getExtensionList()
repeated .wallet.Extension extension = 10;
- Specified by:
getExtensionList
in interfaceProtos.WalletOrBuilder
-
getExtensionCount
public int getExtensionCount()
repeated .wallet.Extension extension = 10;
- Specified by:
getExtensionCount
in interfaceProtos.WalletOrBuilder
-
getExtension
public Protos.Extension getExtension(int index)
repeated .wallet.Extension extension = 10;
- Specified by:
getExtension
in interfaceProtos.WalletOrBuilder
-
setExtension
public Protos.Wallet.Builder setExtension(int index, Protos.Extension value)
repeated .wallet.Extension extension = 10;
-
setExtension
public Protos.Wallet.Builder setExtension(int index, Protos.Extension.Builder builderForValue)
repeated .wallet.Extension extension = 10;
-
addExtension
public Protos.Wallet.Builder addExtension(Protos.Extension value)
repeated .wallet.Extension extension = 10;
-
addExtension
public Protos.Wallet.Builder addExtension(int index, Protos.Extension value)
repeated .wallet.Extension extension = 10;
-
addExtension
public Protos.Wallet.Builder addExtension(Protos.Extension.Builder builderForValue)
repeated .wallet.Extension extension = 10;
-
addExtension
public Protos.Wallet.Builder addExtension(int index, Protos.Extension.Builder builderForValue)
repeated .wallet.Extension extension = 10;
-
addAllExtension
public Protos.Wallet.Builder addAllExtension(java.lang.Iterable<? extends Protos.Extension> values)
repeated .wallet.Extension extension = 10;
-
clearExtension
public Protos.Wallet.Builder clearExtension()
repeated .wallet.Extension extension = 10;
-
removeExtension
public Protos.Wallet.Builder removeExtension(int index)
repeated .wallet.Extension extension = 10;
-
hasDescription
public boolean hasDescription()
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;
- Specified by:
hasDescription
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public java.lang.String getDescription()
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;
- Specified by:
getDescription
in interfaceProtos.WalletOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;
- Specified by:
getDescriptionBytes
in interfaceProtos.WalletOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Protos.Wallet.Builder setDescription(java.lang.String value)
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Protos.Wallet.Builder clearDescription()
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Protos.Wallet.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasKeyRotationTime
public boolean hasKeyRotationTime()
UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
optional uint64 key_rotation_time = 13;
- Specified by:
hasKeyRotationTime
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the keyRotationTime field is set.
-
getKeyRotationTime
public long getKeyRotationTime()
UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
optional uint64 key_rotation_time = 13;
- Specified by:
getKeyRotationTime
in interfaceProtos.WalletOrBuilder
- Returns:
- The keyRotationTime.
-
setKeyRotationTime
public Protos.Wallet.Builder setKeyRotationTime(long value)
UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
optional uint64 key_rotation_time = 13;
- Parameters:
value
- The keyRotationTime to set.- Returns:
- This builder for chaining.
-
clearKeyRotationTime
public Protos.Wallet.Builder clearKeyRotationTime()
UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
optional uint64 key_rotation_time = 13;
- Returns:
- This builder for chaining.
-
getTagsList
public java.util.List<Protos.Tag> getTagsList()
repeated .wallet.Tag tags = 16;
- Specified by:
getTagsList
in interfaceProtos.WalletOrBuilder
-
getTagsCount
public int getTagsCount()
repeated .wallet.Tag tags = 16;
- Specified by:
getTagsCount
in interfaceProtos.WalletOrBuilder
-
getTags
public Protos.Tag getTags(int index)
repeated .wallet.Tag tags = 16;
- Specified by:
getTags
in interfaceProtos.WalletOrBuilder
-
setTags
public Protos.Wallet.Builder setTags(int index, Protos.Tag value)
repeated .wallet.Tag tags = 16;
-
setTags
public Protos.Wallet.Builder setTags(int index, Protos.Tag.Builder builderForValue)
repeated .wallet.Tag tags = 16;
-
addTags
public Protos.Wallet.Builder addTags(Protos.Tag value)
repeated .wallet.Tag tags = 16;
-
addTags
public Protos.Wallet.Builder addTags(int index, Protos.Tag value)
repeated .wallet.Tag tags = 16;
-
addTags
public Protos.Wallet.Builder addTags(Protos.Tag.Builder builderForValue)
repeated .wallet.Tag tags = 16;
-
addTags
public Protos.Wallet.Builder addTags(int index, Protos.Tag.Builder builderForValue)
repeated .wallet.Tag tags = 16;
-
addAllTags
public Protos.Wallet.Builder addAllTags(java.lang.Iterable<? extends Protos.Tag> values)
repeated .wallet.Tag tags = 16;
-
clearTags
public Protos.Wallet.Builder clearTags()
repeated .wallet.Tag tags = 16;
-
removeTags
public Protos.Wallet.Builder removeTags(int index)
repeated .wallet.Tag tags = 16;
-
-