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, 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 type wallet.Wallet
  • Method Details

    • hasNetworkIdentifier

      public boolean hasNetworkIdentifier()
       the network used by this wallet
       
      required string network_identifier = 1;
      Specified by:
      hasNetworkIdentifier in interface Protos.WalletOrBuilder
      Returns:
      Whether the networkIdentifier field is set.
    • getNetworkIdentifier

      public String getNetworkIdentifier()
       the network used by this wallet
       
      required string network_identifier = 1;
      Specified by:
      getNetworkIdentifier in interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      The bytes for networkIdentifier.
    • setNetworkIdentifier

      public Protos.Wallet.Builder setNetworkIdentifier(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 interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      Whether the lastSeenBlockTimeSecs field is set.
    • getLastSeenBlockTimeSecs

      public long getLastSeenBlockTimeSecs()
      optional int64 last_seen_block_time_secs = 14;
      Specified by:
      getLastSeenBlockTimeSecs in interface Protos.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 List<Protos.Key> getKeyList()
      repeated .wallet.Key key = 3;
      Specified by:
      getKeyList in interface Protos.WalletOrBuilder
    • getKeyCount

      public int getKeyCount()
      repeated .wallet.Key key = 3;
      Specified by:
      getKeyCount in interface Protos.WalletOrBuilder
    • getKey

      public Protos.Key getKey(int index)
      repeated .wallet.Key key = 3;
      Specified by:
      getKey in interface Protos.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(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 List<Protos.Transaction> getTransactionList()
      repeated .wallet.Transaction transaction = 4;
      Specified by:
      getTransactionList in interface Protos.WalletOrBuilder
    • getTransactionCount

      public int getTransactionCount()
      repeated .wallet.Transaction transaction = 4;
      Specified by:
      getTransactionCount in interface Protos.WalletOrBuilder
    • getTransaction

      public Protos.Transaction getTransaction(int index)
      repeated .wallet.Transaction transaction = 4;
      Specified by:
      getTransaction in interface Protos.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(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 List<Protos.Script> getWatchedScriptList()
      repeated .wallet.Script watched_script = 15;
      Specified by:
      getWatchedScriptList in interface Protos.WalletOrBuilder
    • getWatchedScriptCount

      public int getWatchedScriptCount()
      repeated .wallet.Script watched_script = 15;
      Specified by:
      getWatchedScriptCount in interface Protos.WalletOrBuilder
    • getWatchedScript

      public Protos.Script getWatchedScript(int index)
      repeated .wallet.Script watched_script = 15;
      Specified by:
      getWatchedScript in interface Protos.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(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 interface Protos.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 interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      Whether the encryptionParameters field is set.
    • getEncryptionParameters

      public Protos.ScryptParameters getEncryptionParameters()
      optional .wallet.ScryptParameters encryption_parameters = 6;
      Specified by:
      getEncryptionParameters in interface Protos.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 interface Protos.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 interface Protos.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 List<Protos.Extension> getExtensionList()
      repeated .wallet.Extension extension = 10;
      Specified by:
      getExtensionList in interface Protos.WalletOrBuilder
    • getExtensionCount

      public int getExtensionCount()
      repeated .wallet.Extension extension = 10;
      Specified by:
      getExtensionCount in interface Protos.WalletOrBuilder
    • getExtension

      public Protos.Extension getExtension(int index)
      repeated .wallet.Extension extension = 10;
      Specified by:
      getExtension in interface Protos.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(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 interface Protos.WalletOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public 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 interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Protos.Wallet.Builder setDescription(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 interface Protos.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 interface Protos.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 List<Protos.Tag> getTagsList()
      repeated .wallet.Tag tags = 16;
      Specified by:
      getTagsList in interface Protos.WalletOrBuilder
    • getTagsCount

      public int getTagsCount()
      repeated .wallet.Tag tags = 16;
      Specified by:
      getTagsCount in interface Protos.WalletOrBuilder
    • getTags

      public Protos.Tag getTags(int index)
      repeated .wallet.Tag tags = 16;
      Specified by:
      getTags in interface Protos.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(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;